/* ================= VARIABLES & THEME SETUP ================= */
        :root {
            --primary: #00aaff;
            --primary-dark: #008ecc;
            --primary-light: #e0f2fe;
            --bg-body: #f8faff;
            --bg-card: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
            --sidebar-width: 260px;
            --header-height: 70px;
            --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            --radius: 16px;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --purple: #8b5cf6;
            --nav-height: 70px;
        }

        body.dark-mode {
            --primary: #53d6ff;
            --primary-dark: #00aaff;
            --primary-light: #1e3a8a;
            --bg-body: #0f172a;
            --bg-card: #1e293b;
            --text-main: #f1f5f9;
            --text-muted: #94a3b8;
            --border-color: #334155;
            --shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
        }

        body {
            background-color: var(--bg-body);
            color: var(--text-main);
            overflow-x: hidden;
            min-height: 100vh;
            display: flex;
            padding-bottom: var(--nav-height);
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        /* ================= SIDEBAR ================= */
        .sidebar {
            width: var(--sidebar-width);
            height: 100vh;
            background: var(--bg-card);
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1300;
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
        }
        
        @media (max-width: 768px) {
            .sidebar { 
                transform: translateX(-100%); 
                width: 280px; 
                padding-bottom: 50px;
            }
            .sidebar.active { 
                transform: translateX(0); 
                box-shadow: 0 0 50px rgba(0,0,0,0.5); 
            }
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            backdrop-filter: blur(3px);
        }
        
        .sidebar-overlay.active {
            display: block;
        }

        .brand {
            height: var(--header-height);
            display: flex;
            align-items: center;
            padding: 0 20px;
            border-bottom: 1px solid var(--border-color);
            gap: 12px;
        }

        .brand-logo {
            width: 45px; 
            height: 45px; 
            overflow: hidden;
            flex-shrink: 0;
        }

        .brand-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .brand-text {
            font-size: 23px;
            font-weight: 700;
            color: var(--primary);
        }

        .sidebar-menu {
            padding: 20px 0;
            flex: 1;
            overflow-y: auto;
        }

        .sidebar-menu::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar-menu::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 3px;
        }

        .menu-item {
            padding: 12px 24px;
            display: flex;
            align-items: center;
            color: var(--text-muted);
            font-weight: 500;
            border-left: 4px solid transparent;
            margin-bottom: 2px;
        }

        .menu-item i { 
            width: 25px; 
            font-size: 18px; 
            margin-right: 12px; 
        }

        .menu-item:hover, .menu-item.active {
            background: var(--primary-light);
            color: var(--primary);
            border-left-color: var(--primary);
        }

        .sidebar-footer { 
            padding: 10px; 
            border-top: 1px solid var(--border-color); 
            margin-top: 20px;
        }

        .logout-btn {
            width: 100%; 
            padding: 12px; 
            background: rgba(239, 68, 68, 0.1); 
            color: #ef4444; 
            border: none;
            border-radius: 8px; 
            cursor: pointer; 
            font-weight: 600; 
            display: flex; 
            align-items: center; 
            justify-content: center;
            gap: 10px;
        }
        .logout-btn:hover { background: #ef4444; color: white; }
        
        /* ================= MAIN CONTENT ================= */
        .main-content {
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            width: calc(100% - var(--sidebar-width));
        }
        
        @media (max-width: 768px) {
            .main-content { margin-left: 0; width: 100%; }
        }

        .top-header {
            height: var(--header-height);
            background: var(--bg-card);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 30px;
            position: sticky;
            top: 0;
            z-index: 900;
            border-bottom: 1px solid var(--border-color);
        }

        .menu-toggle { 
            display: none; 
            font-size: 24px; 
            cursor: pointer; 
        }
        
        @media (max-width: 768px) { 
            .menu-toggle { display: block; } 
        }

        .header-logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-logo-img {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            overflow: hidden;
        }

        .header-logo-img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .header-brand-text {
            font-size: 23px;
            font-weight: 700;
            color: var(--primary);
        }

        .header-right { 
            display: flex; 
            align-items: center; 
            gap: 15px; 
        }

        .eye-toggle {
            background: var(--primary-light); 
            border: none; 
            color: var(--text-main);
            width: 40px; 
            height: 40px; 
            border-radius: 50%; 
            cursor: pointer;
            display: flex; 
            align-items: center; 
            justify-content: center;
            font-size: 18px;
        }

        .container {
            padding: 25px;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            flex: 1;
            position: relative;
        }

        /* ================= COMING SOON OVERLAY ================= */
        .coming-soon-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 170, 255, 0.95), rgba(0, 142, 204, 0.95));
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .coming-soon-overlay.hidden {
            display: none;
        }

        .coming-soon-content {
            text-align: center;
            color: white;
            padding: 40px;
            max-width: 600px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .coming-soon-icon {
            font-size: 100px;
            margin-bottom: 30px;
            animation: pulse 2s infinite;
            filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .coming-soon-content h1 {
            font-size: 48px;
            margin-bottom: 20px;
            color: white;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .coming-soon-content p {
            font-size: 18px;
            opacity: 0.95;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .notify-btn {
            padding: 15px 40px;
            background: white;
            color: var(--primary);
            border: none;
            border-radius: 50px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: transform 0.3s;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .notify-btn:hover {
            transform: scale(1.05);
        }

        /* ================= MARKETPLACE HEADER ================= */
        .marketplace-header {
            margin-bottom: 30px;
        }

        .marketplace-header h2 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .marketplace-header p {
            color: var(--text-muted);
            font-size: 15px;
        }

        /* ================= SEARCH & FILTER ================= */
        .search-filter-section {
            background: var(--bg-card);
            padding: 20px;
            border-radius: var(--radius);
            margin-bottom: 30px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .search-bar {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        .search-input {
            flex: 1;
            padding: 12px 20px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-body);
            color: var(--text-main);
            font-size: 15px;
        }

        .search-btn {
            padding: 12px 30px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-chips {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .filter-chip {
            padding: 8px 16px;
            background: var(--bg-body);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: 0.3s;
        }

        .filter-chip:hover, .filter-chip.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* ================= PRODUCTS GRID ================= */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        .product-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            transition: transform 0.3s;
            cursor: pointer;
        }

        .product-card:hover {
            transform: translateY(-5px);
        }

        .product-image {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--primary);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .product-badge.hot {
            background: var(--danger);
        }

        .product-badge.new {
            background: var(--success);
        }

        .product-info {
            padding: 20px;
        }

        .product-category {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .product-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .product-description {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .seller-info {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: var(--bg-body);
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .seller-logo {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            border: 2px solid var(--border-color);
        }

        .seller-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .seller-details {
            flex: 1;
        }

        .seller-name {
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .verified-badge {
            color: var(--primary);
            font-size: 14px;
            display: none;
        }

        .seller-name.verified .verified-badge {
            display: inline;
        }

        .seller-shop {
            font-size: 11px;
            color: var(--text-muted);
        }

        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .product-price {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary);
        }

        .product-btn {
            padding: 8px 20px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .product-actions {
            display: flex;
            gap: 10px;
        }

        .btn-view-details {
            flex: 1;
            padding: 8px 16px;
            background: transparent;
            color: var(--primary);
            border: 1px solid var(--primary);
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: 0.3s;
        }

        .btn-view-details:hover {
            background: var(--primary);
            color: white;
        }

        .btn-buy-now {
            flex: 1;
            padding: 8px 16px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        /* ================= PRODUCT MODAL ================= */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            backdrop-filter: blur(8px);
            padding: 20px;
        }
        
        .modal-content {
            background: var(--bg-card);
            width: 95%;
            max-width: 1000px;
            border-radius: 20px;
            padding: 40px;
            position: relative;
            max-height: 92vh;
            overflow-y: auto;
            border: 1px solid var(--border-color);
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 32px;
            cursor: pointer;
            color: var(--text-muted);
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--bg-body);
            transition: 0.3s;
            z-index: 10;
            border: 2px solid var(--border-color);
        }

        .close-modal:hover {
            background: var(--danger);
            color: white;
            transform: scale(1.1);
            border-color: var(--danger);
        }

        .product-modal-slider {
            width: 100%;
            height: 450px;
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 30px;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

        .product-modal-slider img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .slider-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: 0.3s;
        }

        .slider-nav:hover {
            background: var(--primary);
        }

        .slider-nav.prev {
            left: 15px;
        }

        .slider-nav.next {
            right: 15px;
        }

        .slider-indicators {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
        }

        .slider-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: 0.3s;
        }

        .slider-dot.active {
            background: white;
            width: 30px;
            border-radius: 5px;
        }

        .modal-product-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 20px;
            gap: 20px;
        }

        .modal-product-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 10px;
            line-height: 1.2;
        }

        .modal-product-category {
            font-size: 14px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .modal-product-price {
            font-size: 38px;
            font-weight: 700;
            color: var(--primary);
            white-space: nowrap;
        }

        .modal-seller-section {
            background: var(--bg-body);
            padding: 25px;
            border-radius: 16px;
            margin-bottom: 30px;
            border: 2px solid var(--border-color);
        }

        .modal-seller-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--border-color);
        }

        .modal-seller-logo {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid var(--primary);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .modal-seller-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .modal-seller-info h4 {
            font-size: 20px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }

        .modal-seller-info p {
            font-size: 15px;
            color: var(--text-muted);
        }

        .seller-stats {
            display: flex;
            gap: 30px;
            padding-top: 20px;
        }

        .seller-stat {
            text-align: center;
            flex: 1;
        }

        .seller-stat-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 5px;
        }

        .seller-stat-label {
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .modal-product-description {
            line-height: 1.8;
            color: var(--text-main);
            margin-bottom: 30px;
            font-size: 16px;
        }

        .product-features {
            background: var(--bg-body);
            padding: 25px;
            border-radius: 16px;
            margin-bottom: 30px;
            border: 2px solid var(--border-color);
        }

        .product-features h4 {
            font-size: 18px;
            margin-bottom: 20px;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
        }

        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 15px;
        }

        .feature-item i {
            color: var(--success);
            font-size: 18px;
        }

        .modal-actions {
            display: flex;
            gap: 20px;
            padding-top: 30px;
            border-top: 2px solid var(--border-color);
        }

        .modal-btn {
            flex: 1;
            padding: 18px 35px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 17px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: 0.3s;
        }

        .modal-btn-primary {
            background: var(--primary);
            color: white;
            border: none;
        }

        .modal-btn-primary:hover {
            background: var(--primary-dark);
        }

        .modal-btn-secondary {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .modal-btn-secondary:hover {
            background: var(--primary-light);
        }

        /* ================= BOTTOM NAV BAR ================= */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--nav-height);
            background: var(--bg-card);
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 1000;
            padding: 0 20px;
            box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            color: var(--text-muted);
            cursor: pointer;
            padding: 10px 15px;
            border-radius: 10px;
            transition: 0.3s;
            flex: 1;
            max-width: 80px;
        }

        .nav-item i {
            font-size: 22px;
        }

        .nav-item span {
            font-size: 11px;
            font-weight: 500;
        }

        .nav-item.active, .nav-item:hover {
            color: var(--primary);
            background: var(--primary-light);
        }

        /* ================= SUCCESS TOAST NOTIFICATION ================= */
        .toast-notification {
            position: fixed;
            bottom: 100px;
            right: 30px;
            background: var(--bg-card);
            padding: 20px 25px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-color);
            display: none;
            align-items: center;
            gap: 15px;
            z-index: 10000;
            animation: slideIn 0.3s ease;
            min-width: 320px;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .toast-notification.show {
            display: flex;
        }

        .toast-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .toast-success .toast-icon {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }

        .toast-info .toast-icon {
            background: rgba(0, 170, 255, 0.1);
            color: var(--primary);
        }

        .toast-content {
            flex: 1;
        }

        .toast-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .toast-message {
            font-size: 13px;
            color: var(--text-muted);
        }

        .toast-close {
            cursor: pointer;
            color: var(--text-muted);
            font-size: 20px;
            padding: 5px;
        }

        @media (max-width: 768px) {
            .container {
                padding: 15px;
                padding-bottom: calc(var(--nav-height) + 20px);
            }

            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 15px;
            }

            .search-bar {
                flex-direction: column;
            }

            .toast-notification {
                right: 15px;
                left: 15px;
                bottom: 90px;
                min-width: unset;
            }

            .modal-content {
                padding: 25px;
                width: 98%;
            }

            .product-modal-slider {
                height: 300px;
            }

            .modal-product-title {
                font-size: 24px;
            }

            .modal-product-price {
                font-size: 28px;
            }

            .modal-seller-logo {
                width: 60px;
                height: 60px;
            }

            .modal-seller-info h4 {
                font-size: 16px;
            }

            .seller-stats {
                gap: 15px;
            }

            .modal-actions {
                flex-direction: column;
                gap: 12px;
            }

            .modal-btn {
                width: 100%;
            }
        }