
        :root {
            /* Light theme variables */
            --bg-primary: #f5f5f5;
            --bg-secondary: white;
            --text-primary: #333;
            --text-secondary: #666;
            --border-color: #e0e0e0;
            --card-shadow: rgba(0,0,0,0.1);
            --input-bg: white;
            --input-border: #E3F2FD;
        }

        [data-theme="dark"] {
            /* Dark theme variables */
            --bg-primary: #121212;
            --bg-secondary: #1e1e1e;
            --text-primary: #ffffff;
            --text-secondary: #b3b3b3;
            --border-color: #333333;
            --card-shadow: rgba(0,0,0,0.3);
            --input-bg: #2d2d2d;
            --input-border: #444444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .app-container {
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg-secondary);
            min-height: 100vh;
            position: relative;
            transition: background-color 0.3s ease;
        }

        /* App Header */
        .app-header {
            background: var(--bg-secondary);
            padding: 20px 16px 16px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        .app-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            transition: color 0.3s ease;
        }

        .header-actions {
            display: flex;
            gap: 16px;
            align-items: center;
        }

        .header-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .moon-icon {
            background: var(--border-color);
            color: var(--text-secondary);
            transition: background-color 0.3s ease, color 0.3s ease;
            cursor: pointer;
        }

        .moon-icon:hover {
            background: #007AFF;
            color: white;
        }

        .bell-icon {
            background: var(--border-color);
            color: var(--text-secondary);
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .profile-icon {
            background: #007AFF;
            color: white;
            font-weight: bold;
            cursor: pointer;
            position: relative;
        }

        .login-icon {
            background: var(--border-color);
            color: var(--text-secondary);
            transition: background-color 0.3s ease, color 0.3s ease;
            cursor: pointer;
        }

        .login-icon:hover {
            background: #007AFF;
            color: white;
        }

        /* Profile Menu */
        .profile-menu {
            position: absolute;
            top: 50px;
            right: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 8px 20px var(--card-shadow);
            min-width: 200px;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .profile-info {
            padding: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .profile-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
            margin-bottom: 4px;
            transition: color 0.3s ease;
        }

        .profile-email {
            font-size: 12px;
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }

        .profile-actions {
            padding: 8px;
        }

        .profile-btn {
            width: 100%;
            padding: 10px 16px;
            background: transparent;
            border: none;
            text-align: left;
            font-size: 14px;
            color: var(--text-primary);
            cursor: pointer;
            border-radius: 8px;
            margin-bottom: 4px;
            transition: all 0.3s ease;
        }

        .profile-btn:hover {
            background: var(--border-color);
        }

        .logout-btn {
            color: #FF3B30 !important;
        }

        .logout-btn:hover {
            background: rgba(255, 59, 48, 0.1) !important;
        }

        /* Search and Filter Section */
        .search-section {
            padding: 16px;
            background: var(--bg-secondary);
            transition: background-color 0.3s ease;
        }

        .search-container {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .search-bar {
            flex: 1;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 12px 16px 12px 44px;
            border: 2px solid var(--input-border);
            border-radius: 12px;
            font-size: 16px;
            background: var(--input-bg);
            color: var(--text-primary);
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }

        .filter-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #007AFF;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
        }

        /* Business Cards */
        .business-list {
            padding: 0 16px 100px;
        }

        .business-card {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px var(--card-shadow);
            border: 2px solid #007AFF; /* Blue border */
            position: relative;
            overflow: hidden;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        .business-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: var(--card-accent);
        }

        .card-header {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
        }

        .profile-pic {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            color: #666;
            flex-shrink: 0;
            overflow: hidden;
        }

        .profile-pic img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        .company-info {
            flex: 1;
        }

        .company-name {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 24ch; /* Limit to approximately 24 characters */
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.3s ease;
        }

        .verification-badge {
            background: #007AFF;
            color: white;
            font-size: 12px;
            font-weight: bold;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .company-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* OLD CSS RULES REMOVED - USING NEW LAYOUT */

/* Product tag styles moved to avoid duplication */

.product-tag.hidden {
    display: none;
}

.products-remaining {
    background: #9E9E9E;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.company-type {
    color: white;
    font-weight: 500;
    background: #4CAF50;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 14px;
}

.first-product {
    color: white;
    font-weight: 500;
    background: #4CAF50;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

        .star-icon {
            color: #FFD700;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .tag {
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 500;
            color: white;
        }

        .tag.purple { background: #9C27B0; }
        .tag.green { background: #4CAF50; }
        .tag.grey { background: #9E9E9E; }
        .tag.blue { background: #2196F3; }
        .tag.orange { background: #FF9800; }

        .description {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 16px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.3s ease;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            flex: 1;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .btn-outline {
            background: white;
            border: 2px solid #007AFF;
            color: #007AFF;
        }

        .btn-outline:hover {
    background: #f0f8ff;
}

.btn-whatsapp {
    background: white;
    border: 2px solid #007AFF;
    color: #007AFF;
}

.btn-whatsapp:hover {
    background: #f0f8ff;
}

.btn-whatsapp .whatsapp-icon {
    width: 20px;
    height: 20px;
    color: #007AFF;
}

.btn-primary {
    background: #007AFF;
    border: 2px solid #007AFF;
    color: white;
}

        .btn-primary:hover {
            background: #0056b3;
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 480px;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            padding: 12px 0;
            display: flex;
            justify-content: space-around;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .nav-item.active {
            color: #007AFF;
        }

        .nav-item:not(.active) {
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }

        .nav-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-label {
            font-size: 12px;
            font-weight: 500;
        }

        /* Loading state */
        .loading {
            text-align: center;
            padding: 40px;
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }

        .error {
            text-align: center;
            padding: 40px;
            color: #f44336;
            transition: color 0.3s ease;
        }

        /* New Products Layout */
        .products-layout {
            margin-bottom: 8px;
        }

        .location-and-first-line {
            display: flex;
            align-items: flex-start; /* Changed from center to flex-start */
            gap: 8px;
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 6px;
            width: 100%; /* Ensure full width */
            overflow: visible; /* Allow overflow for detection */
            transition: color 0.3s ease;
        }

        .location-and-first-line .location-text {
            white-space: nowrap;
            flex-shrink: 0;
        }

        .location-and-first-line .products-first-line {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap; /* Allow wrapping to detect overflow */
            overflow: visible; /* Don't hide overflow, we'll detect it */
            max-height: none; /* Remove height restrictions */
            flex: 1; /* Take remaining space */
            min-width: 0; /* Allow shrinking */
        }

        .products-second-line {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
            overflow: hidden;
            margin-left: 0;
            margin-bottom: 8px; /* Space before description */
            /* Now this is a direct child of business-card, so it aligns with description naturally */
        }

        /* Product tag styles */
        .product-tag {
            background: white;
            color: black;
            padding: 2px 8px;
            border-radius: 12px;
            border: 1px solid black;
            font-size: 11px;
            font-weight: 500;
            white-space: nowrap;
            display: inline-block;
            margin-left: 0; /* Reset any inherited margins */
        }

        /* Filter Modal Styles */
        .filter-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }

        .filter-content {
            background: var(--bg-secondary);
            width: 100%;
            max-width: 480px;
            max-height: 80vh;
            border-radius: 20px 20px 0 0;
            padding: 20px;
            overflow-y: auto;
            animation: slideUp 0.3s ease-out;
            transition: background-color 0.3s ease;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }
            to {
                transform: translateY(0);
            }
        }

        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e0e0e0;
        }

        .filter-header h2 {
            margin: 0;
            color: var(--text-primary);
            font-size: 18px;
            transition: color 0.3s ease;
        }

        .close-filter {
            background: none;
            border: none;
            font-size: 24px;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.3s ease;
        }

        .filter-section {
            margin-bottom: 25px;
        }

        .filter-section h3 {
            margin: 0 0 15px 0;
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .filter-options {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .filter-type-btn {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border: 2px solid var(--border-color);
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            min-width: 60px;
        }

        .filter-type-btn.active {
            background: #007AFF;
            color: white;
            border-color: #007AFF;
        }

        .country-search {
            margin-bottom: 15px;
        }

        .country-search input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 16px; /* Prevent mobile zoom-in */
            outline: none;
            background: var(--input-bg);
            color: var(--text-primary);
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        }

        .country-search input:focus {
            border-color: #007AFF;
        }

        .countries-list {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-secondary);
            transition: border-color 0.3s ease, background-color 0.3s ease;
        }

        .country-item {
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
            transition: background 0.2s, color 0.3s ease;
            color: var(--text-primary);
        }

        .country-item:last-child {
            border-bottom: none;
        }

        .country-item:hover {
            background: #f8f9fa;
        }

        .country-item.active {
            background: #e3f2fd;
            color: #007AFF;
        }

        .filter-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }

        .clear-filters-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #666;
            background: white;
            color: #666;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
        }

        .apply-filters-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #007AFF;
            background: #007AFF;
            color: white;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
        }

        /* No Results Message Styles */
        .no-results {
            padding: 40px 16px;
            text-align: center;
            background: var(--bg-secondary);
            margin: 0 16px;
            border-radius: 16px;
            box-shadow: 0 2px 8px var(--card-shadow);
            border: 2px solid #007AFF;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        .no-results-content {
            max-width: 300px;
            margin: 0 auto;
        }

        .no-results-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.7;
        }

        .no-results h3 {
            margin: 0 0 8px 0;
            color: var(--text-primary);
            font-size: 20px;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .no-results p {
            margin: 0 0 24px 0;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.4;
            transition: color 0.3s ease;
        }

        .reset-filters-btn {
            background: #007AFF;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
        }

        .reset-filters-btn:hover {
            background: #0056b3;
        }

        /* Filter Status Bar Styles */
        .filter-status-bar {
            margin: 16px 0 20px 0; /* Top margin to separate from cards, bottom margin before nav */
            background: #e3f2fd;
            border: 1px solid #007AFF;
            border-radius: 8px;
            padding: 12px 16px;
        }

        .filter-status-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .filter-status-text {
            color: #007AFF;
            font-size: 14px;
            font-weight: 500;
            flex: 1;
        }

        .reset-filters-btn-small {
            background: #007AFF;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
            white-space: nowrap;
        }

        .reset-filters-btn-small:hover {
            background: #0056b3;
        }

        /* Responsive adjustments */
        @media (max-width: 480px) {
            .app-container {
                max-width: 100%;
            }
            
            .bottom-nav {
                max-width: 100%;
            }
        }

        /* ===== STYLE2.CSS CONTENT MERGED ===== */
        
        /* Mobile App Style Profile */
        .profile-container {
           max-width: 414px;
           margin: 0 auto;
           background: #1E3A5F !important;
           min-height: 100vh;
           transition: all 0.3s ease;
           font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
           overflow-x: hidden;
        }

        /* Header with back button and edit icon */
        .profile-header {
            background: #1E3A5F;
            padding: 16px 20px;
            color: white;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .back-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
            flex: 1;
            text-align: center;
            margin: 0 16px;
        }

        .edit-btn {
            background: none;
            border: none;
            color: #FFA500;
            font-size: 20px;
            cursor: pointer;
            padding: 8px;
        }

        /* Company Profile Section */
        .company-profile-section {
            background: #1E3A5F;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .company-avatar {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            object-fit: cover;
            background: #FFF;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            color: #1E3A5F;
        }

        .company-info {
            flex: 1;
        }

        .company-name {
            font-size: 18px;
            font-weight: 600;
            color: white;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .verification-badge {
            width: 18px;
            height: 18px;
            background: #007AFF;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

        .company-badges {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
        }

        .badge {
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 500;
        }

        .badge-importer {
            background: #27ae60;
            color: white;
        }

        .badge-exporter {
            background: #27ae60;
            color: white;
        }

        .badge-both {
            background: #27ae60;
            color: white;
        }

        .badge-other {
            background: #FFA500;
            color: white;
        }

        /* Tab Navigation */
        .tab-navigation {
            background: #1E3A5F !important;
            padding: 0 20px;
            border-bottom: 1px solid #34495E;
            width: 100%;
            display: block;
        }

        .tab-list {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
        }

        .tab-item {
            flex: 1;
            text-align: center;
            padding: 16px 8px;
            color: #95A5A6 !important;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
            user-select: none;
            white-space: nowrap;
        }

        .tab-item:hover {
            color: #BDC3C7 !important;
        }

        .tab-item.active {
            color: #FFA500 !important;
            font-weight: 600;
        }

        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: #FFA500;
            border-radius: 2px 2px 0 0;
        }

        /* Tab Content */
        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Company Information Card */
        .company-info-card {
            background: white;
            margin: 16px 0;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .card-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 16px;
            font-weight: 600;
            color: #2C3E50;
            margin-bottom: 20px;
        }

        .card-icon {
            font-size: 20px;
        }

        .info-field {
            margin-bottom: 20px;
        }

        .field-label {
            font-size: 14px;
            font-weight: 500;
            color: #7F8C8D;
            margin-bottom: 8px;
        }

        .field-value {
            font-size: 16px;
            color: #2C3E50;
            background: #F8F9FA;
            padding: 12px 16px;
            border-radius: 8px;
            border: 1px solid #E9ECEF;
        }

        .field-value.empty {
            color: #BDC3C7;
            font-style: italic;
        }

        /* Products Grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .product-card {
            background: #f5f5f5;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 12px;
            transition: all 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .product-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .product-price {
            font-size: 16px;
            font-weight: 700;
            color: #4CAF50;
        }

        /* Social Media Icons */
        .social-media-icons {
            display: flex;
            gap: 12px;
            align-items: center;
            background: #F8F9FA;
            padding: 12px 16px;
            border-radius: 8px;
            border: 1px solid #E9ECEF;
        }

        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            text-decoration: none;
            font-size: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .social-icon:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .linkedin-icon {
            background: #0077B5;
        }

        .twitter-icon {
            background: #1DA1F2;
        }

        .facebook-icon {
            background: #1877F2;
        }

        .instagram-icon {
            background: linear-gradient(45deg, #F56040, #C13584, #405DE6);
        }

        .whatsapp-icon {
            background: #25D366;
        }

        .whatsapp-icon.unavailable {
            background: #E9ECEF !important;
            color: #6C757D !important;
            cursor: not-allowed !important;
        }

        .whatsapp-icon.unavailable:hover {
            transform: none !important;
            box-shadow: none !important;
        }

        /* Photos Tab */
        .photos-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2px;
            padding: 0;
            margin: 0;
        }

        .photo-item {
            aspect-ratio: 3/4;
            background: #F8F9FA;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #BDC3C7;
            font-size: 24px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
        }

        .company-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .company-photo:hover {
            transform: scale(1.05);
        }

        .photo-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #BDC3C7;
        }

        /* Fullscreen Modal */
        .photo-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            animation: fadeIn 0.3s ease;
        }

        .photo-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: opacity 0.3s ease;
        }

        .close-modal:hover {
            opacity: 0.7;
        }

        .photo-caption {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 18px;
            font-weight: 500;
            text-align: center;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px 20px;
            border-radius: 20px;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .debug-info {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            margin: 16px 0;
            word-break: break-all;
            line-height: 1.4;
        }

        /* Partners Tab */
        .partners-list {
            padding: 16px 0;
        }

        .partner-item {
            background: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .partner-avatar {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: #E9ECEF;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #6C757D;
        }

        .partner-info {
            flex: 1;
        }

        .partner-name {
            font-weight: 600;
            color: #2C3E50;
            margin-bottom: 4px;
        }

        .partner-type {
            font-size: 12px;
            color: #7F8C8D;
        }

        /* Settings Tab */
        .settings-list {
            background: white;
            margin: 16px 0;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .setting-item {
            padding: 16px 20px;
            border-bottom: 1px solid #F1F3F4;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
        }

        .setting-item:last-child {
            border-bottom: none;
        }

        .setting-item:hover {
            background: #F8F9FA;
        }

        .setting-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .setting-icon {
            font-size: 18px;
            color: #6C757D;
        }

        .setting-text {
            font-size: 16px;
            color: #2C3E50;
        }

        .setting-arrow {
            color: #BDC3C7;
            font-size: 14px;
        }

        .no-data {
            text-align: center;
            color: #7F8C8D;
            font-style: italic;
            padding: 40px 20px;
        }

        /* Full width no-data for photos tab */
        #photos-tab .no-data {
            padding: 40px 20px;
            margin: 0;
        }

        .error-message {
            background: #FF3B30;
            color: white;
            padding: 16px;
            border-radius: 12px;
            text-align: center;
            margin: 24px;
        }

        /* Dark theme adjustments */
        [data-theme="dark"] .profile-container {
            background: #1E3A5F;
        }

        [data-theme="dark"] .profile-header {
            background: #1E3A5F;
        }

        [data-theme="dark"] .tab-navigation {
            background: #1E3A5F;
            border-bottom-color: #34495E;
        }

        [data-theme="dark"] .company-profile-section {
            background: #1E3A5F;
        }

        [data-theme="dark"] .company-info-card,
        [data-theme="dark"] .settings-list,
        [data-theme="dark"] .partner-item {
            background: #2A2A2A;
            border-color: #333;
        }

        [data-theme="dark"] .field-value {
            background: #1A1A1A;
            border-color: #333;
            color: #FFF;
        }

        [data-theme="dark"] .card-title,
        [data-theme="dark"] .setting-text,
        [data-theme="dark"] .partner-name {
            color: #FFF;
        }

        [data-theme="dark"] .field-label,
        [data-theme="dark"] .partner-type {
            color: #BBB;
        }

        @media (max-width: 480px) {
            .profile-container {
                max-width: 100%;
            }
        }
    