:root {
    /* Color System */
    --primary: #E5B842;
    --primary-rgb: 229, 184, 66;
    --primary-glow: rgba(229, 184, 66, 0.45);
    --secondary: #FFF5D0;
    --secondary-glow: rgba(255, 245, 208, 0.35);
    --bg-main: #0B0E14;
    --bg-surface: #141822;
    --bg-surface-2: #1D2331;
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-main: #F1F5F9;
    --text-muted: #64748B;
    --card-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.6);
    
    /* Effects */
    --blur: blur(16px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --neon-border: 1px solid rgba(229, 184, 66, 0.35);
}

[data-theme="light"] {
    --primary: #B8860B;
    --primary-rgb: 184, 134, 11;
    --primary-glow: rgba(184, 134, 11, 0.25);
    --secondary: #D4AF37;
    --secondary-glow: rgba(212, 175, 55, 0.25);
    --bg-main: #EAEFF5;
    --bg-surface: #F5F8FA;
    --bg-surface-2: #DFE6ED;
    --border-glass: rgba(15, 23, 42, 0.08);
    --text-main: #1E293B;
    --text-muted: #475569;
    --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --neon-border: 1px solid rgba(184, 134, 11, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(16, 21, 36, 0.6);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: var(--border-glass);
    box-shadow: var(--card-shadow);
}
[data-theme="light"] .glass-panel {
    background: rgba(245, 248, 250, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 25px -5px rgba(15, 23, 42, 0.06);
}

/* Layout container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
.navbar {
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--border-glass);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
/* Header Menu & Dropdowns */
.nav-links li {
    position: relative;
}
.nav-links li a {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}
.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary);
}

.simple-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    margin-top: 10px;
    border-radius: 12px;
    z-index: 1000;
}
.simple-dropdown a {
    display: block;
    padding: 10px 20px;
}
.nav-links li:hover .simple-dropdown {
    display: block;
}

.mega-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: 90vw;
    padding: 24px;
    margin-top: 10px;
    border-radius: 12px;
    z-index: 1000;
    cursor: default;
}
.nav-links li:hover .mega-menu-dropdown, .menu:hover .mega-menu-dropdown, .menu.active .mega-menu-dropdown {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

@media (max-width: 768px) {
    .mega-menu-dropdown {
        position: fixed;
        top: 105px;
        left: 0;
        right: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        border-radius: 0 0 16px 16px;
        max-height: calc(100vh - 105px);
        overflow-y: auto;
        z-index: 999999;
        background: var(--bg-surface) !important;
        border-top: 1px solid var(--border-glass) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }
    
    /* Override inline grid for mobile */
    .mega-menu-dropdown > div {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 8px !important;
    }

    /* Target the third child (Hot Selling Banner) to span both columns */
    .mega-menu-dropdown > div > div:last-child {
        grid-column: 1 / -1 !important;
    }

    .mega-menu-dropdown h4 {
        margin-bottom: 8px !important;
        font-size: 0.95rem !important;
    }

    /* Make categories smaller */
    .mega-menu-dropdown a {
        padding: 6px 10px !important;
        gap: 10px !important;
    }
    .mega-menu-dropdown a > div:first-child {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
    .mega-menu-dropdown a > div > div:first-child {
        font-size: 0.85rem !important;
    }
    .mega-menu-dropdown a > div > div:last-child {
        font-size: 0.65rem !important;
    }

    /* Make quick links smaller */
    .mega-menu-dropdown > div > div:nth-child(2) a {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }

    /* Make banner smaller */
    .mega-menu-dropdown > div > div:last-child > div:first-child {
        padding: 12px !important;
    }
    .mega-menu-dropdown > div > div:last-child h3 {
        font-size: 1.1rem !important;
        margin: 8px 0 4px 0 !important;
    }
    .mega-menu-dropdown > div > div:last-child p {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
    }
    .mega-menu-dropdown > div > div:last-child a.btn {
        padding: 6px !important;
        font-size: 0.75rem !important;
    }
}
.mega-menu-dropdown a {
    display: inline-block;
}

/* User Dropdown */.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Wallet Pill button */
.wallet-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 184, 66, 0.08);
    border: 1px solid rgba(229, 184, 66, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
.wallet-pill:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Custom buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}
.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    background: #F7CB55;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}
.btn-secondary {
    background: var(--bg-surface-2);
    color: var(--text-main);
    border: var(--border-glass);
}
.btn-secondary:hover {
    background: var(--border-glass);
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* Hero Slider Carousel */
.hero-slider {
    margin-top: 24px;
    height: 360px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border: var(--border-glass);
}
.slide-track {
    display: flex;
    width: 300%;
    height: 100%;
    animation: autoScroll 15s infinite ease-in-out;
}
.slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px;
}
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #070B13 30%, transparent 100%);
}
/* In light theme, keeping slider dark is better for gaming, or we can use a softer gradient */
[data-theme="light"] .slide-overlay {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 10%, rgba(15, 23, 42, 0.6) 50%, transparent 100%);
}
.slide-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}
.slide-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}
.slide-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

@keyframes autoScroll {
    0%, 30% { transform: translateX(0); }
    33.33%, 63.33% { transform: translateX(-33.333%); }
    66.66%, 96.66% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

/* Categories Section */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}
.category-card {
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: var(--border-glass);
    position: relative;
    overflow: hidden;
    width: 180px;
    flex: 1 1 180px;
    max-width: 220px;
}
.category-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 2px solid var(--border-glass);
}
.category-card h3 {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -10px var(--primary-glow);
}

/* Products Section & Cards */
.products-grid, .gaming-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}
.product-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: var(--border-glass);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.product-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 40%, var(--bg-surface) 100%);
}
.product-card-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    bottom: -15px;
    left: 20px;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.product-card-body {
    padding: 14px 14px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.product-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-digital  { background: rgba(229, 184, 66,0.12); color: var(--primary); border: 1px solid rgba(229, 184, 66,0.25); }
.badge-downloadable { background: rgba(255, 245, 208,0.12); color: var(--secondary); border: 1px solid rgba(255, 245, 208,0.25); }
.badge-affiliate { background: rgba(245,158,11,0.12); color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); }
.status-working  { background: rgba(16,185,129,0.12); color: #10B981; border: 1px solid rgba(16,185,129,0.25); }
.status-pending  { background: rgba(245,158,11,0.12); color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); }
.status-maintenance { background: rgba(239,68,68,0.12); color: #EF4444; border: 1px solid rgba(239,68,68,0.25); }
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
    flex-shrink: 0;
}
.product-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.product-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}
/* Buy Now button â€” always theme primary, no custom color override */
.card-buy-btn {
    background: linear-gradient(135deg, var(--primary), #C59A27) !important;
    color: #fff !important;
    border: none !important;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(229, 184, 66,0.35);
    transition: box-shadow 0.25s, transform 0.2s;
}
.card-buy-btn:hover {
    box-shadow: 0 6px 20px rgba(229, 184, 66,0.55);
    transform: translateY(-1px);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

/* Glowing Border effect using animated line (gaming feel) */
.glowing-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}
.glowing-card:hover::after {
    width: 100%;
}

/* User profile dropdown styling */
.user-dropdown {
    position: relative;
    display: inline-block;
}
.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
}
.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 180px;
    border-radius: 8px;
    /* Removed overflow: hidden so ::before can bridge the gap, instead we clip children */
    z-index: 1001;
}
.user-dropdown-content a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.user-dropdown-content a:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.user-dropdown::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: 100%;
    height: 20px;
    z-index: 1000;
}
.user-dropdown:hover .user-dropdown-content {
    display: block;
}
.user-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.user-dropdown-content a:hover {
    background: rgba(229, 184, 66, 0.1);
    color: var(--primary);
}

/* Details Page (Game Topup Style) */
.product-banner {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    margin-bottom: 42px;
    border: var(--border-glass);
}
.product-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, var(--bg-main) 0%, rgba(7, 11, 19, 0.4) 100%);
}
.product-header-container {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.product-banner-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--bg-main);
}
.product-header-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

/* Details Page Layout Columns */
.topup-grid {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 32px;
    margin-bottom: 60px;
}
.topup-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}
.topup-step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
}

/* Denomination Picker (Grid of Cards) */
.denom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.denom-card {
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    border: var(--border-glass);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.denom-card.selected, .denom-card:hover {
    border-color: var(--primary);
    background: rgba(229, 184, 66, 0.04);
}
.denom-card.selected::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 24px; height: 24px;
    background: var(--primary);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.denom-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.denom-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Payment Selector Column */
.payment-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.payment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}
.payment-card:hover {
    border-color: var(--primary);
    background: rgba(229, 184, 66, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}
.payment-card.selected {
    border-color: var(--primary);
    background: rgba(229, 184, 66, 0.12);
    box-shadow: 0 0 20px rgba(229, 184, 66, 0.25), inset 0 0 12px rgba(229, 184, 66, 0.1);
    transform: translateY(-2px);
}
/* Optional subtle pulse for selected */
@keyframes pulseSelected {
    0% { box-shadow: 0 0 15px rgba(229, 184, 66, 0.2), inset 0 0 10px rgba(229, 184, 66, 0.05); }
    50% { box-shadow: 0 0 25px rgba(229, 184, 66, 0.35), inset 0 0 15px rgba(229, 184, 66, 0.15); }
    100% { box-shadow: 0 0 15px rgba(229, 184, 66, 0.2), inset 0 0 10px rgba(229, 184, 66, 0.05); }
}
.payment-card.selected {
    animation: pulseSelected 2.5s infinite;
}
.payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.payment-logo {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* Footer styling */
.footer {
    margin-top: auto;
    background-color: #070B13;
    color: #F1F5F9;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 24px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #F1F5F9;
}
.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-column p {
    color: #64748B !important;
}
.footer-column a {
    color: #64748B;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-column a:hover {
    color: var(--primary);
}
.footer-bottom {
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

/* Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Star Rating Input */
.star-rating-input .star-pick:hover,
.star-rating-input .star-pick.active {
    color: #F59E0B !important;
}

/* Variation selector animations */
.denom-card {
    transition: all 0.3s ease;
}
.denom-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Form controls for frontend */
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 184, 66, 0.15);
}
textarea.form-control {
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10B981;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
}

/* Gaming Account Feature Badges */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(229, 184, 66, 0.06);
    border: 1px solid rgba(229, 184, 66, 0.15);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

/* Gaming Account Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.gallery-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

/* Dashboard Tab Navigation */
.dash-tab {
    position: relative;
}
.dash-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.dash-tab:hover {
    color: var(--primary) !important;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.mobile-menu-content {
    margin: 0 16px;
    margin-top: 8px;
    padding: 16px 20px;
    border-radius: 12px;
    display: block;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu-content a {
    display: block;
    padding: 12px 16px;
    margin-bottom: 4px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.mobile-menu-content a:hover,
.mobile-menu-content a.active {
    background: rgba(229, 184, 66, 0.08);
    color: var(--primary);
}

/* Leaderboard & Live Stats Classes */
.leaderboard-panel, .live-stats-panel { padding: 24px; }
.leaderboard-icon { width: 48px; height: 48px; border-radius: 8px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--primary); }
.leaderboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.leaderboard-rank { font-size: 1.5rem; font-weight: 800; width: 30px; text-align: center; }
.leaderboard-title { font-size: 1rem; }
.leaderboard-price { font-size: 1.1rem; }
.leaderboard-card > div:nth-child(3) > div { font-size: 0.8rem; }
.leaderboard-card > div:nth-child(4) > div:last-child { font-size: 0.75rem; }

.live-stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.live-stat-value { font-size: 2.5rem; font-weight: 800; font-family: monospace; }
.live-stat-value#stat-users { font-size: 2rem; font-weight: 700; }
.live-stat-value:last-of-type:not(#stat-keys):not(#stat-users) { font-size: 1.5rem; font-weight: 600; }

/* Responsive queries */
@media (max-width: 992px) {
    .topup-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 280px; }
    .slide-content h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    
    /* Product page banner */
    .product-header-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .product-header-info h1 {
        font-size: 1.5rem;
    }
    
    /* Payment grid */
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    /* Denomination grid */
    .denom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Navbar */
    .navbar {
        height: auto;
        min-height: 60px;
    }
    
    .header-search-container {
        display: none !important;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block !important;
    }
    .user-name-text {
        display: none;
    }
    .mobile-menu-overlay {
        top: 60px;
    }
    .nav-actions {
        gap: 8px;
    }
    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Hero */
    .hero-slider { height: 220px; padding: 16px; }
    .slide { padding: 16px; }
    .slide-content h2 { font-size: 1.6rem; }
    .slide-content p { font-size: 0.85rem; }
    
    /* Categories - Horizontal Scroll on Mobile */
    .categories-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .categories-grid::-webkit-scrollbar { height: 4px; }
    .categories-grid::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
    .category-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Product detail page */
    .product-banner {
        min-height: 180px;
        padding: 20px 16px;
    }
    .product-banner-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    /* Dashboard tabs scroll */
    .dash-tab {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    /* Dashboard welcome stats */
    .topup-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Tables responsive */
    .table {
        font-size: 0.82rem;
    }
    .table th, .table td {
        padding: 10px 8px;
    }
    
    /* Share buttons */
    .share-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    /* Leaderboard mobile */
    .leaderboard-panel, .live-stats-panel { padding: 12px; }
    .leaderboard-card { padding: 8px 10px !important; gap: 10px !important; }
    .leaderboard-icon { width: 36px; height: 36px; font-size: 0.6rem; }
    .leaderboard-rank { font-size: 1.1rem; width: 20px; }
    .leaderboard-grid { grid-template-columns: 1fr; gap: 16px; }
    .leaderboard-rank { font-size: 1.1rem; width: 22px; }
    .leaderboard-title { font-size: 0.85rem; }
    .leaderboard-price { font-size: 0.95rem; }
    .leaderboard-card > div:nth-child(3) > div { font-size: 0.7rem; }
    .leaderboard-card > div:nth-child(4) > div:last-child { font-size: 0.65rem; }
    
    .live-stat-label { font-size: 0.7rem; }
    .live-stat-value { font-size: 1.8rem; }
    .live-stat-value#stat-users { font-size: 1.5rem; }
    .live-stat-value:last-of-type:not(#stat-keys):not(#stat-users) { font-size: 1.2rem; }
    .navbar { height: auto; min-height: 56px; }
    .nav-links { display: none; }
    .mobile-menu-overlay { top: 56px; }
    .wallet-pill span { display: none; }
    .wallet-pill { padding: 6px 8px; }
    .hero-slider { height: 180px; padding: 12px; }
    .slide { padding: 12px; }
    .slide-content h2 { font-size: 1.3rem; }
    .slide-content p { display: none; }
    
    /* Categories */
    .categories-grid { gap: 12px; padding-bottom: 10px; }
    .category-card { flex: 0 0 130px; padding: 16px 8px; }
    .category-card img { width: 48px; height: 48px; }
    .category-card h3 { font-size: 0.8rem; word-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    /* Products - 2 columns on mobile */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gaming-accounts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card-banner { height: 100px; }
    .product-card-thumbnail { width: 52px; height: 52px; bottom: -12px; left: 14px; }
    .product-card-body { padding: 20px 10px 12px 10px; gap: 0; }
    .product-card-title { font-size: 0.78rem; margin-bottom: 6px; }
    .product-card-meta { gap: 4px; margin-bottom: 8px; }
    .product-card-badge { font-size: 0.58rem; padding: 2px 6px; }
    .product-card-price { font-size: 0.9rem; }
    .product-card-footer { padding-top: 8px; gap: 6px; }
    .card-buy-btn { font-size: 0.7rem; padding: 6px 10px; }
    
    /* Product detail page mobile */
    .product-banner { min-height: 150px; padding: 16px 12px; }
    .product-banner-thumbnail { width: 56px; height: 56px; }
    .product-header-info h1 { font-size: 1.2rem; }
    .product-header-info .product-card-badge { font-size: 0.65rem; padding: 2px 6px; }
    
    /* Denom grid mobile */
    .denom-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .denom-card { padding: 12px 8px; }
    
    /* Payment cards mobile */
    .payment-card { padding: 12px; }
    .payment-info { gap: 8px; }
    
    /* Step titles */
    .topup-step-title h3 { font-size: 0.95rem; }
    .topup-step-num { width: 28px; height: 28px; font-size: 0.8rem; }
    
    /* Share buttons wrap */
    .share-btn { padding: 6px 8px; font-size: 0.72rem; flex: 1; min-width: 70px; justify-content: center; }
    
    /* Glass panel padding */
    .glass-panel { padding: 16px; }
    
    /* Section titles */
    .section-title { font-size: 1.15rem; }
    
    /* Dashboard welcome banner */
    .container > section:first-of-type {
        padding: 20px !important;
    }
    .container > section:first-of-type h1 {
        font-size: 1.3rem !important;
    }
    .container > section:first-of-type > div:first-child {
        flex-direction: column;
        text-align: center;
    }
    .container > section:first-of-type > div:first-child > div:last-child {
        flex-direction: column;
        align-items: center;
    }
    
    /* Dashboard tabs mobile scroll */
    .dash-tab {
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
    }
    .dash-tab svg {
        display: none;
    }
    
    /* Tables - horizontal scroll on mobile */
    .table-container, .card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table {
        min-width: 500px;
        font-size: 0.78rem;
    }
    
    /* Reviews mobile */
    .star-rating-input { font-size: 1.5rem !important; }
    
    /* Feature badges mobile */
    .feature-badge { padding: 4px 8px; font-size: 0.75rem; }
    
    /* Gallery grid mobile */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-grid img { height: 80px; }
    
    /* Alerts mobile */
    .alert { padding: 10px 14px; font-size: 0.82rem; }
    
    /* Buttons mobile */
    .btn { padding: 8px 16px; font-size: 0.85rem; }
    .btn-sm { padding: 5px 10px; font-size: 0.78rem; }
    
    /* Footer mobile */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { font-size: 0.75rem; }
}





.simple-dropdown::before,
.mega-menu-dropdown::before,
.user-dropdown-content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
}




/* --- PREMIUM STOREFRONT HEADER STYLES --- */
.premium-navbar {
    background: #0a0e14 !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    backdrop-filter: blur(10px);
}
@media (min-width: 769px) {
    .premium-navbar {
        margin: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        left: 0;
        right: 0;
        top: 0;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
    }
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-pill:hover, .nav-pill.active {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}
.nav-pill svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}
.nav-pill.active svg {
    color: var(--primary);
    opacity: 1;
}

.sf-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}
.sf-icon-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}
.sf-icon-btn svg {
    width: 18px;
    height: 18px;
}

.sf-dropdown-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sf-dropdown-pill:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}
.sf-dropdown-pill svg {
    width: 14px;
    height: 14px;
}

.sf-notification-btn {
    position: relative;
}
.sf-notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0e14;
}

.sf-wallet-icon {
    color: var(--primary);
    opacity: 1 !important;
}

.sf-profile-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sf-profile-dropdown:hover {
    background: rgba(255,255,255,0.05);
}
.sf-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    position: relative;
}
.sf-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0a0e14;
}
.sf-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.sf-profile-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}
.sf-profile-role {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Mobile specific styling for premium header */
@media (max-width: 768px) {
    .premium-navbar {
        border-radius: 0 !important;
        border-bottom: none !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .mobile-sf-drawer {
        background: #0a0e14 !important;
        border-right: 1px solid rgba(255,255,255,0.05);
    }
    .mobile-sf-profile-card {
        padding: 24px 16px;
        display: flex;
        align-items: center;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        margin-bottom: 12px;
    }
    .mobile-sf-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(0,0,0,0.2);
        border: 2px solid var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        position: relative;
    }
    .mobile-sf-profile-info {
        display: flex;
        flex-direction: column;
    }
    .mobile-sf-name {
    }
    .premium-navbar .sf-avatar {
        width: 26px !important;
        height: 26px !important;
    }
    .premium-navbar .sf-avatar svg {
        width: 14px !important;
        height: 14px !important;
    }
    .premium-navbar .sf-profile-name {
        font-size: 0.75rem !important;
    }
    .premium-navbar .sf-profile-role {
        display: none !important;
    }
    .premium-navbar .sf-profile-dropdown > svg:last-child {
        display: none !important;
    }
    .premium-navbar .nav-currency-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) { .premium-navbar .nav-currency-toggle { display: block !important; } }


/* Light Mode overrides for Premium Header */
[data-theme="light"] .premium-navbar {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .mobile-sf-drawer {
    background: #ffffff !important;
    border-right-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .mobile-sf-profile-card {
    border-bottom-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .nav-pill:hover, 
[data-theme="light"] .nav-pill.active {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .sf-icon-btn, 
[data-theme="light"] .sf-dropdown-pill, 
[data-theme="light"] .sf-profile-dropdown {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.05);
}
[data-theme="light"] .sf-icon-btn:hover, 
[data-theme="light"] .sf-dropdown-pill:hover, 
[data-theme="light"] .sf-profile-dropdown:hover {
    background: rgba(0,0,0,0.08);
}
[data-theme="light"] .logo {
    border-right-color: rgba(0,0,0,0.1) !important;
}

/* Light Mode Card & Stat Enhancements */
[data-theme="light"] .live-stat-value#stat-users {
    color: #B8860B !important;
    text-shadow: none !important;
}
[data-theme="light"] .live-stat-value#stat-keys {
    color: #8C6200 !important;
}
[data-theme="light"] .live-stats-panel {
    background: #FFFFFF !important;
    border: 1px solid rgba(184, 134, 11, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}
[data-theme="light"] .product-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .product-card-banner {
    background-color: #f1f5f9 !important;
}
[data-theme="light"] .product-card-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(255, 255, 255, 0.25) 50%, #FFFFFF 100%) !important;
}
[data-theme="light"] .product-card-thumbnail {
    border-color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .product-card-title {
    color: #1E293B !important;
}
[data-theme="light"] .product-card-price span {
    color: var(--primary) !important;
}

/* Sub-nav menu light theme */
[data-theme="light"] .sub-nav-wrapper {
    background: #FFFFFF !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
[data-theme="light"] .hList .menu-title {
    background: #FFFFFF !important;
    color: #1E293B !important;
    border-right: 1px solid rgba(15, 23, 42, 0.06) !important;
    transition: all 0.2s ease !important;
}
[data-theme="light"] .hList .menu:hover .menu-title,
[data-theme="light"] .hList .menu.active .menu-title {
    background: #F8FAFC !important;
    color: var(--primary) !important;
}
[data-theme="light"] .hList .menu-title:before,
[data-theme="light"] .hList .menu-title:after {
    display: none !important;
}

/* Google Translate Overrides */
body { top: 0 !important; position: static !important; }
.skiptranslate iframe { display: none !important; }
#goog-gt-tt { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Comprehensive Google Translate Widget Hide */
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc { display: none !important; }
div.skiptranslate { display: none !important; }
.goog-te-gadget-icon { display: none !important; }
.goog-te-gadget-simple { display: none !important; }

/* Premium Mobile Menu Styling */
.mobile-sf-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin: 2px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.mobile-sf-nav-link:hover, .mobile-sf-nav-link.active {
    background: var(--bg-surface);
    border-color: var(--border-glass);
    color: var(--text-main);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.mobile-sf-nav-link .nav-icon-wrapper {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.mobile-sf-nav-link .nav-icon-wrapper svg {
    width: 18px;
    height: 18px;
}
.child-link {
    padding: 8px 16px 8px 42px;
    margin: 1px 16px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .premium-navbar {
        position: sticky !important;
        top: 0;
        z-index: 990;
    }
}

/* Fix select options visibility in dropdown */
.mobile-sf-bottom-actions select option {
    background: #0f1520;
    color: #fff;
}
[data-theme="light"] .mobile-sf-bottom-actions select option {
    background: #ffffff;
    color: #000;
}

/* Complete Sticky Header Fix */
.premium-navbar {
    position: fixed !important;
    top: 0;
    z-index: 990;
}

/* Fake Notification Toast */
.fake-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fake-toast {
    background: rgba(16, 21, 36, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateX(-150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    max-width: 380px;
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .fake-toast {
    background: rgba(245, 248, 250, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.fake-toast.show {
    transform: translateX(0);
    opacity: 1;
}
.fake-toast::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 4px;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
}
.fake-toast-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(229, 184, 66, 0.1);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fake-toast-content {
    flex: 1;
}
.fake-toast-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}
.fake-toast-content small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.fake-toast-content a {
    color: var(--text-main);
    text-decoration: none;
}
.fake-toast-content a:hover {
    text-decoration: none;
}
@media (max-width: 768px) {
    .fake-toast-container {
        left: 12px; right: auto; bottom: 20px;
        max-width: 85%;
    }
    .fake-toast {
        max-width: 100%;
        transform: translateX(-150%);
        padding: 8px 10px;
        gap: 8px;
        border-radius: 8px;
    }
    .fake-toast .fake-toast-icon {
        width: 26px; height: 26px;
    }
    .fake-toast .fake-toast-icon svg {
        width: 14px !important; height: 14px !important;
    }
    .fake-toast-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    .fake-toast-content small {
        font-size: 0.65rem;
        margin-top: 2px;
    }
    .fake-toast.show {
        transform: translateX(0);
    }
}
@media (min-width: 769px) {
    .main-wrapper {
        padding-top: 140px; /* Increased to account for sub-nav */
    }
}

/* Sub-Header Categorical Menu */
.sub-nav-wrapper {
  background-color: transparent;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 900;
}
.hList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.hList > * {
  margin-left: 0;
}

.menu {
  display: block;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.menu-title {
  display: block;
  width: 150px;
  height: 40px;
  margin: 0;
  padding: 12px 0 0;
  background: var(--primary);
  text-align: center;
  color: #101524; /* Dark text for contrast on primary color */
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  transition: 0.3s background-color;
}

.menu-title:before {
  content: "";
  display: block;
  height: 0;
  border-top: 5px solid var(--primary);
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 0 solid transparent;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 101;
  transition:
    0.2s 0.2s border-top ease-out,
    0.3s border-top-color;
}

.menu-title:hover { background: rgba(var(--primary-rgb), 0.85); }
.menu-title:hover:before { border-top-color: rgba(var(--primary-rgb), 0.85); }

.menu:hover > .menu-title:before {
  border-top-width: 0;
  transition:
    0.2s border-top-width ease-in,
    0.3s border-top-color;
}

.menu-title:after {
  content: "";
  display: block;
  height: 0;
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 0 solid var(--bg-surface);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 101;
  transition: 0.2s border-bottom ease-in;
}

.menu:hover > .menu-title:after {
  border-bottom-width: 5px;
  transition: 0.2s 0.2s border-bottom-width ease-out;
}

.menu-dropdown {
  min-width: 100%;
  padding: 15px 0;
  margin: 0;
  list-style: none;
  position: absolute;
  background: var(--bg-surface);
  z-index: 100;
  transition:
    0.5s padding,
    0.5s background;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid var(--border-glass);
}

.menu-dropdown:after {
  content: "";
  display: block;
  height: 0;
  border-top: 5px solid var(--bg-surface);
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 101;
  transition: 0.5s border-top;
}

.menu:not(:hover) > .menu-dropdown {
  padding: 4px 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  z-index: 99;
}

.menu:not(:hover) > .menu-dropdown:after {
  border-top-color: transparent;
}

.menu:not(:hover) > .menu-title:after {
  border-bottom-color: transparent;
}

.dropdown-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.menu-dropdown > * {
  overflow: hidden;
  height: 30px;
  padding: 5px 10px;
  background: rgba(0,0,0,0);
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-main);
  border-left: 2px solid transparent;
  transition: 
    0.5s height cubic-bezier(.73,.32,.34,1.5),
    0.5s padding cubic-bezier(.73,.32,.34,1.5),
    0.5s margin cubic-bezier(.73,.32,.34,1.5),
    0.3s border-left-color ease,
    0.3s background-color ease;
}

.menu-dropdown > *:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-left-color: var(--primary);
}

.menu-dropdown > *:hover .dropdown-link {
  color: var(--primary);
  transform: translateX(6px);
}

.menu:not(:hover) > .menu-dropdown > * {
  visibility: hidden;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  color: rgba(25,25,25,0);
  transition: 
    0.5s 0.1s height,
    0.5s 0.1s padding,
    0.5s 0.1s margin,
    0.3s color,
    0.6s visibility;
  z-index: 99;
}

/* Mobile Responsiveness for Sub-Header Menu */
@media (max-width: 768px) {
  .sub-nav-wrapper {
    display: block;
    width: 100%;
    overflow: visible; /* Prevents dropdown clipping */
  }
  .hList {
    display: flex;
    flex-wrap: nowrap; /* Single row */
    width: 100%;
  }
  .hList > li {
    width: calc(100% / var(--item-count)); /* Dynamic width based on menu items */
  }
  .menu-title {
    width: 100%;
    font-size: 11px;
    padding: 12px 0 0;
    letter-spacing: 0px;
  }
  .menu-title:before, .menu-title:after, .menu-dropdown:after {
    border-left: calc(50vw / var(--item-count)) solid transparent !important;
    border-right: calc(50vw / var(--item-count)) solid transparent !important;
  }
  .menu-dropdown > * {
    font-size: 12px;
    height: 35px;
    padding: 8px 6px;
  }
}
@media (max-width: 768px) {
    .main-wrapper {
        padding-top: 115px; /* Increased to account for sub-nav */
    }
    .premium-navbar {
        left: 0;
        right: 0;
    }
}

/* Global Header Search */
.header-search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin: 0 24px;
}

.header-search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 10px 20px 10px 45px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.header-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
    overflow: hidden;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease forwards;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

.search-result-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0,0,0,0.2);
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.search-result-price {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

        . m o b i l e - s f - n a m e   { 
                 f o n t - s i z e :   1 . 0 5 r e m ; 
                 f o n t - w e i g h t :   6 0 0 ; 
                 c o l o r :   v a r ( - - t e x t - m a i n ) ; 
         } 
         . m o b i l e - s f - r o l e   { 
                 f o n t - s i z e :   0 . 8 r e m ; 
                 c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         } 
         . m o b i l e - s f - n a v - l i n k   { 
                 d i s p l a y :   f l e x ; 
                 a l i g n - i t e m s :   c e n t e r ; 
                 g a p :   1 0 p x ; 
                 p a d d i n g :   8 p x   1 4 p x ; 
                 c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
                 t e x t - d e c o r a t i o n :   n o n e ; 
                 f o n t - w e i g h t :   5 0 0 ; 
                 f o n t - s i z e :   0 . 8 5 r e m ; 
                 b o r d e r - r a d i u s :   8 p x ; 
                 m a r g i n :   2 p x   1 6 p x ; 
                 t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
         } 
         . m o b i l e - s f - n a v - l i n k . a c t i v e   { 
                 b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 3 ) ; 
                 c o l o r :   v a r ( - - t e x t - m a i n ) ; 
         } 
         . m o b i l e - s f - n a v - l i n k   s v g   { 
                 w i d t h :   1 6 p x ; 
                 h e i g h t :   1 6 p x ; 
                 o p a c i t y :   0 . 7 ; 
         } 
         . m o b i l e - s f - n a v - l i n k . a c t i v e   s v g   { 
                 c o l o r :   v a r ( - - p r i m a r y ) ; 
                 o p a c i t y :   1 ; 
         } 
         . m o b i l e - s f - b o t t o m - a c t i o n s   { 
                 m a r g i n - t o p :   1 0 0 p x ; 
                 p a d d i n g :   1 6 p x ; 
                 b o r d e r - t o p :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ; 
         } 
         . m o b i l e - s f - b o t t o m - r o w   { 
                 d i s p l a y :   f l e x ; 
                 g a p :   8 p x ; 
                 m a r g i n - b o t t o m :   1 6 p x ; 
         } 
         . m o b i l e - s f - l o g o u t   { 
                 d i s p l a y :   f l e x ; 
                 a l i g n - i t e m s :   c e n t e r ; 
                 g a p :   1 0 p x ; 
                 p a d d i n g :   8 p x   1 4 p x ; 
                 c o l o r :   # e f 4 4 4 4 ; 
                 t e x t - d e c o r a t i o n :   n o n e ; 
                 f o n t - w e i g h t :   6 0 0 ; 
                 f o n t - s i z e :   0 . 8 5 r e m ; 
                 b a c k g r o u n d :   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 0 5 ) ; 
                 b o r d e r - r a d i u s :   8 p x ; 
                 b o r d e r :   1 p x   s o l i d   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 1 ) ; 
         } 
         . p r e m i u m - n a v b a r   . m o b i l e - m e n u - b t n   { 
                 m a r g i n - r i g h t :   1 2 p x ; 
         } 
 
 

@media (max-width: 768px) {
    .desktop-only-icon { display: none !important; }
}
