/* ============================================
   CZ SHOP - Premium Dark Theme (Ghosty Style)
   ============================================ */

/* Anti-FOUC: hide branding text until JS replaces with correct store name */
.logo-icon,
.navbar-brand > span,
.drawer-brand > span,
.footer-brand > span,
.footer-copy,
.sb-brand-logo,
.sidebar-footer,
#hero-title-el,
#hero-badge,
#hero-tagline,
#hero-highlight,
#nav-site-name,
#footer-site-name,
#footer-copy-name {
    opacity: 0;
    transition: opacity 0.18s ease;
}
body.brand-ready .logo-icon,
body.brand-ready .navbar-brand > span,
body.brand-ready .drawer-brand > span,
body.brand-ready .footer-brand > span,
body.brand-ready .footer-copy,
body.brand-ready .sb-brand-logo,
body.brand-ready .sidebar-footer,
body.brand-ready #hero-title-el,
body.brand-ready #hero-badge,
body.brand-ready #hero-tagline,
body.brand-ready #hero-highlight,
body.brand-ready .hero-entrance,
body.brand-ready #nav-site-name,
body.brand-ready #footer-site-name,
body.brand-ready #footer-copy-name {
    opacity: 1;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    /* Color Palette */
    --bg-main: #09090f;
    --bg-surface: #111118;
    --bg-surface-hover: #1a1a24;
    --bg-card: #12121a;
    --card-bg: rgba(255, 255, 255, 0.02);
    --bg-secondary: #0f0f17;

    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-light: rgba(124, 58, 237, 0.1);
    --primary-glow: rgba(124, 58, 237, 0.4);
    --primary-gradient: linear-gradient(135deg, #7c3aed, #a855f7);

    --accent: #7c3aed;
    --accent-hover: #6d28d9;

    --text-main: #f0f0f5;
    --text-primary: #f0f0f5;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a72;

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --divider: rgba(255, 255, 255, 0.04);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);

    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius: 12px;
    --container-width: 1200px;
    --header-height: 64px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --font-main: 'Inter', 'Noto Sans Thai', -apple-system, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Selection */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: white;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.w-full { width: 100%; }

/* ============================================
   Background Effects
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Grid Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    white-space: nowrap;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
}
.btn-discord:hover {
    background: #4752c4;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Navbar - Dark with menu button on left
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(17, 17, 24, 0.50);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar.scrolled {
    background: rgba(9, 9, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Left section: mobile menu btn + logo + desktop links */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    transition: var(--transition);
    flex-shrink: 0;
}

.navbar-brand:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
    transition: var(--transition);
}

.navbar-brand:hover .logo-icon {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    transform: scale(1.05);
}

/* Desktop navigation links */
.navbar-desktop-links {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 1.5rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: white;
    background: rgba(9, 9, 15, 0.50);
}

/* ============================================
   Navbar Dropdown
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
    line-height: inherit;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-toggle svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 180px;
    background: rgba(22, 22, 34, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-dropdown-item:hover svg {
    opacity: 1;
}

/* Mobile hosting links */
.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0.75rem;
}

.mobile-menu-label {
    display: block;
    padding: 0.5rem 0.75rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-auth {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
}

.mobile-menu-auth .btn {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* Drawer hosting section */
.drawer-section-label {
    display: block;
    padding: 16px 16px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right section: auth / user */
.navbar-right-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hide old navbar-links */
.navbar-links {
    display: none;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-user:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.navbar-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    transition: var(--transition);
    outline: 2px solid transparent;
    outline-offset: -1px;
}

.navbar-user:hover .avatar {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.navbar-user .user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-user .user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
}

.navbar-user .user-balance {
    font-size: 0.72rem;
    color: var(--success);
    font-weight: 600;
    font-family: 'Inter', monospace;
}

/* ============================================
   Mobile Menu Button (left side)
   ============================================ */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.55);
    margin-right: 0.25rem;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-toggle:active {
    transform: scale(0.93);
}

.menu-toggle .icon-open,
.menu-toggle .icon-close {
    width: 24px;
    height: 24px;
}

.menu-toggle .icon-close {
    display: none;
}

.menu-toggle.active .icon-open {
    display: none;
}

.menu-toggle.active .icon-close {
    display: block;
}

.menu-toggle.active {
    color: white;
}

/* ============================================
   Mobile Menu Panel (below navbar)
   ============================================ */
.mobile-menu {
    display: block;
    padding: 0.25rem 0.5rem 0.75rem;
    background: rgba(17, 17, 24, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.mobile-menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-link.active {
    color: white;
    background: rgba(9, 9, 15, 0.50);
}

/* Show desktop links on sm+ */
@media (min-width: 640px) {
    .navbar-desktop-links {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }
}

/* ============================================
   Bottom Navigation Bar — Floating App Bar (Mobile)
   ============================================ */
.bottom-nav {
    display: none;
}

@media (max-width: 639px) {
    /* Hide hamburger & dropdown mobile-menu on mobile — replaced by bottom nav */
    .menu-toggle {
        display: none !important;
    }
    .mobile-menu {
        display: none !important;
    }

    .bottom-nav {
        display: block;
        position: fixed;
        z-index: 1050;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 420px;
        height: 60px;
        background: rgba(17, 17, 26, 0.88);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 9999px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .bottom-nav-inner {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: 100%;
        align-items: center;
    }

    .bottom-nav-item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.40);
        padding: 6px 0;
        gap: 2px;
        position: relative;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item:first-child {
        border-radius: 9999px 0 0 9999px;
    }

    .bottom-nav-item:last-child {
        border-radius: 0 9999px 9999px 0;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item:active {
        color: rgba(255, 255, 255, 0.7);
    }

    .bottom-nav-item svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        transition: transform 0.15s ease;
    }

    .bottom-nav-item span {
        font-size: 0.58rem;
        font-weight: 500;
        white-space: nowrap;
        line-height: 1;
        letter-spacing: 0.01em;
    }

    .bottom-nav-item:active svg {
        transform: scale(0.88);
    }

    .bottom-nav-item.active {
        color: var(--primary, #7c3aed);
    }

    .bottom-nav-item.active svg {
        filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.35));
    }

    /* Center FAB button */
    .bottom-nav-fab {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bottom-nav-fab a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--primary-gradient, linear-gradient(135deg, #7c3aed, #a855f7));
        color: white;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-fab a:active {
        transform: scale(0.92);
    }

    .bottom-nav-fab a svg {
        width: 24px;
        height: 24px;
    }

    .bottom-nav-fab a.active {
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.6), 0 0 0 3px rgba(124, 58, 237, 0.2);
    }

    /* Bottom padding so content doesn't get hidden behind the floating bar */
    body {
        padding-bottom: 84px;
    }
}

/* Legacy hamburger spans (keep for backward compat) */
.menu-toggle .hamburger {
    display: none;
}

/* Guest Auth CTA Bar (below hero, visible when not logged in) */
.guest-auth-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    max-width: 420px;
    margin: 0 auto;
}
.guest-auth-bar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: background 0.15s;
}
.guest-auth-bar .btn .btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.guest-auth-bar .btn-primary .btn-icon {
    margin-right: 6px;
    margin-left: -2px;
}
.guest-auth-bar .btn-secondary .btn-icon {
    margin-left: 6px;
    margin-right: -2px;
}

/* Desktop: hide guest-auth-bar entirely (navbar already has login/register) */
@media (min-width: 640px) {
    .guest-auth-bar {
        display: none !important;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 80px 1.5rem 30px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 200vw);
    height: min(800px, 200vw);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 1.25rem;
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-auth-mobile { display: none; }
.hero-shop-btn-wrap { display: none; }
.hero-register-btn { display: none; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Hero Banner Mode */
.hero--banner {
    padding: 0;
}
.hero--banner::before {
    display: none;
}
.hero-banner {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.banner-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}
.banner-slide {
    min-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.banner-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.banner-dot.active {
    background: white;
    transform: scale(1.2);
}
.banner-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
@media (min-width: 769px) {
    .hero--banner {
        padding: 80px 1.5rem 30px;
    }
    .banner-carousel {
        border-radius: var(--radius);
    }
}
@media (max-width: 768px) {
    .hero--banner {
        padding: 60px 0 0;
    }
    .banner-carousel {
        border-radius: 0;
    }
    .banner-nav {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .banner-prev { left: 8px; }
    .banner-next { right: 8px; }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

#categories-section {
    padding-top: 14px;
    padding-bottom: 0;
}

#topup-rec-section {
    padding-top: 2px;
    padding-bottom: 6px;
    margin-top: -4px;
}

#featured-section {
    padding-top: 0;
}

#categories-section .section-title,
#topup-rec-section .section-title,
#featured-section .section-title {
    margin-bottom: 1rem;
}

#categories-section .category-previews {
    margin-bottom: 0.35rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    background: var(--card-bg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    filter: brightness(1.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ============================================
   Shop Page & Products Grid
   ============================================ */

/* Logo image inside logo-icon */
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.shop-page {
    padding: 110px 1.5rem 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.shop-header {
    text-align: center;
    margin-bottom: 3rem;
}

.shop-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.shop-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 8px;
    max-width: 450px;
    margin: 0 auto;
}

/* ===== Category Previews Grid ===== */
.category-previews {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.category-previews .cat-preview-card {
    width: calc(50% - 0.375rem);
    max-width: 400px;
}
@media (min-width: 640px) {
    .category-previews {
        gap: 1.25rem;
    }
    .category-previews .cat-preview-card {
        width: calc(50% - 0.625rem);
    }
}
@media (min-width: 1024px) {
    .category-previews .cat-preview-card {
        width: calc(33.333% - 0.834rem);
    }
}
.cat-preview-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.cat-preview-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    filter: brightness(1.15);
}
.cat-preview-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: rgba(124,58,237,0.05);
}
.cat-preview-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.cat-preview-card:hover .cat-preview-img img {
    transform: scale(1.05);
}
.cat-preview-overlay {
    display: none;
}
.cat-preview-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.2;
}

/* Back button when inside a category */
.category-back-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.category-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.category-back-btn:hover {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.3);
    color: var(--primary);
}
.category-back-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}
.cat-preview-info {
    padding: 0.75rem;
}
.cat-preview-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .cat-preview-info {
        padding: 1rem 1.25rem;
    }
    .cat-preview-info h3 {
        font-size: 1rem;
        white-space: normal;
    }
}
.cat-preview-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-tabs {
    display: none;
}

.category-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-tab:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--primary);
}

.category-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.products-grid {
    --shop-columns: 4;
    display: grid;
    grid-template-columns: repeat(var(--shop-columns), 1fr);
    gap: 1.5rem;
}

/* Product cards: AR/VR animations handled by animations.css */

/* Product Cards - Ghosty Style */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    filter: brightness(1.15);
}

.product-card:hover::before {
    opacity: 1;
}

.product-img {
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}

.product-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.badge-new, .badge-hot {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-new { background: var(--success); box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
.badge-hot { background: var(--error); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }

.product-stock-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.stock-dot.out {
    background: var(--error);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: none;
}

.product-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.product-price .price-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.btn-buy-card {
    margin-top: auto;
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.btn-buy-card:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-buy-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 1.5rem 50px;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.4rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    font-family: var(--font-main);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: rgba(124, 58, 237, 0.02);
}

.form-input::placeholder {
    color: var(--text-muted);
}

select.form-input option {
    background: #1a1a2e;
    color: #f0f0f5;
}

select.form-input {
    appearance: auto;
    -webkit-appearance: auto;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 1.5rem 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 3.5rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    margin-top: auto;
    overflow-x: hidden;
    width: 100%;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-cols-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    border-radius: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Legacy footer (simple) */
.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ============================================
   Toasts (legacy container)
   ============================================ */

/* ============================================
   Notify Modal Dialog - Centered with Wide Buttons
   ============================================ */
.notify-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.notify-modal-overlay.notify-modal-active {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.notify-modal-overlay.notify-modal-closing {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.notify-modal {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 20px;
    padding: 2rem 1.75rem 1.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.21, 1.02, 0.73, 1), opacity 0.25s ease;
}

.notify-modal-active .notify-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.notify-modal-closing .notify-modal {
    transform: scale(0.92) translateY(10px);
    opacity: 0;
}

/* Icon Circle */
.notify-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
}

.notify-icon-svg {
    width: 28px;
    height: 28px;
}

/* Icon type colors */
.notify-modal-icon-success {
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.06);
}
.notify-modal-icon-success .notify-icon-svg { color: #10b981; }

.notify-modal-icon-error {
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.06);
}
.notify-modal-icon-error .notify-icon-svg { color: #ef4444; }

.notify-modal-icon-warning {
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.06);
}
.notify-modal-icon-warning .notify-icon-svg { color: #f59e0b; }

.notify-modal-icon-info {
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.06);
}
.notify-modal-icon-info .notify-icon-svg { color: #6366f1; }

/* Icon entrance animation */
.notify-modal-active .notify-modal-icon {
    animation: notifyIconPop 0.5s 0.15s cubic-bezier(0.21, 1.02, 0.73, 1) both;
}

/* Title */
.notify-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main, #f0f0f5);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

/* Message */
.notify-modal-message {
    font-size: 0.88rem;
    color: var(--text-muted, #8b8b9e);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    word-break: break-word;
}

/* Actions */
.notify-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Wide Button */
.notify-modal-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    font-family: inherit;
}

.notify-modal-btn:active {
    transform: scale(0.98);
}

/* Button type styles */
.notify-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.notify-btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.notify-btn-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.notify-btn-error:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.notify-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.notify-btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.notify-btn-info {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.notify-btn-info:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Notify Modal Animations */
@keyframes notifyIconPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.12);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Notify Modal Mobile */
@media (max-width: 480px) {
    .notify-modal-overlay {
        padding: 1rem;
    }
    .notify-modal {
        padding: 1.5rem 1.25rem 1.25rem;
        max-width: 100%;
        border-radius: 16px;
    }
    .notify-modal-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    .notify-icon-svg {
        width: 24px;
        height: 24px;
    }
    .notify-modal-title {
        font-size: 1rem;
    }
    .notify-modal-message {
        font-size: 0.82rem;
    }
    .notify-modal-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   Modals
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-active {
    opacity: 1;
}

.modal-overlay.modal-closing {
    opacity: 0;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1080px;
    max-height: 92vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.03);
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-closing .modal-card {
    transform: translateY(20px) scale(0.97);
}

/* Image Section - Split Left */
.modal-img-section {
    position: relative;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    overflow: hidden;
    padding: 0;
}

.modal-img-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex: 1;
}

.modal-img-main img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform 0.4s ease;
}

.modal-img-main img:hover {
    transform: scale(1.03);
}

.modal-img-main .modal-img-placeholder {
    font-size: 5rem;
    opacity: 0.12;
    user-select: none;
}

/* Thumbnail strip */
.modal-img-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 2rem 16px;
    width: 100%;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--border);
}

.modal-img-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-img-thumb.active,
.modal-img-thumb:hover {
    border-color: var(--primary);
    opacity: 1;
}

.modal-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section - Split Right */
.modal-info-section {
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 92vh;
}

.modal-info-section::-webkit-scrollbar {
    width: 4px;
}

.modal-info-section::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
    transform: rotate(90deg);
}

/* Breadcrumb nav */
.modal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-breadcrumb span {
    color: var(--text-secondary);
}

.modal-breadcrumb .breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* Product title */
.modal-product-name {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Star rating row */
.modal-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-stars {
    display: flex;
    gap: 2px;
    color: #facc15;
    font-size: 0.95rem;
}

.modal-rating-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    margin-left: auto;
}

.modal-stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.modal-stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.modal-stock-badge .stock-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Price section */
.modal-product-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.modal-product-price .price-val {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.modal-product-price .price-val.price-discounted {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-original {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.75em;
    -webkit-text-fill-color: var(--text-muted);
    margin-right: 0.3rem;
}

.modal-product-price .price-unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

/* Description */
.modal-desc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.88rem;
}

/* Section divider */
.modal-section-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0 1.25rem;
}

/* Variant Options - Tailwind-inspired selector */
.modal-option-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-option-label .selected-name {
    color: var(--text-main);
    font-weight: 500;
}

.variant-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 1.5rem;
}

.variant-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--card-bg);
    position: relative;
    text-align: center;
    gap: 4px;
}

.variant-option:hover {
    border-color: var(--primary-light);
    filter: brightness(1.15);
}

.variant-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.variant-option.selected .variant-check {
    display: flex;
}

.variant-check {
    display: none;
    position: absolute;
    top: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 0 var(--radius-md) 0 6px;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
}

.variant-option.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.variant-option.disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 5px,
        rgba(255,255,255,0.02) 5px,
        rgba(255,255,255,0.02) 10px
    );
}

.variant-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.variant-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.variant-price {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
}

.variant-stock {
    font-size: 0.72rem;
    color: var(--success);
    font-weight: 500;
}

.variant-stock.out {
    color: var(--error);
}

.modal-stock {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.modal-stock.out {
    color: var(--error);
}

/* Quantity Selector */
.qty-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card-bg);
    flex-shrink: 0;
    min-height: 44px;
}

.qty-btn {
    width: 48px;
    min-width: 48px;
    height: 44px;
    border: none;
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: var(--font-main);
    user-select: none;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-btn:active {
    transform: scale(0.92);
}

.qty-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    outline: none;
    font-family: var(--font-main);
    padding: 0 4px;
    line-height: 44px;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.coupon-row {
    margin-bottom: 1.25rem;
}

.coupon-row label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: block;
    font-weight: 500;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.coupon-row input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-main);
}

.coupon-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-verify-coupon {
    padding: 0.7rem 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #6d28d9));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-verify-coupon:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-verify-coupon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#coupon-result {
    margin-top: 0.6rem;
    min-height: 0;
}

/* Coupon Alert Card */
@keyframes couponAlertIn {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes couponCircleDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes couponCheckDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes couponPulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.35); }
    70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
@keyframes couponErrorPulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.35); }
    70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes couponShine {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.coupon-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    animation: couponAlertIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.coupon-alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.coupon-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.coupon-alert-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.coupon-alert-icon svg {
    width: 36px;
    height: 36px;
}

/* Success check animation */
.coupon-check-circle {
    stroke: #10b981;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: couponCircleDraw 0.5s 0.1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.coupon-check-path {
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: couponCheckDraw 0.35s 0.45s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.coupon-check-svg {
    animation: couponPulse 0.8s 0.6s ease-out;
    border-radius: 50%;
}

/* Error X animation */
.coupon-x-circle {
    stroke: #ef4444;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: couponCircleDraw 0.5s 0.1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.coupon-x-path {
    stroke: #ef4444;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 29;
    stroke-dashoffset: 29;
    animation: couponCheckDraw 0.3s 0.45s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.coupon-x-svg {
    animation: couponErrorPulse 0.8s 0.6s ease-out;
    border-radius: 50%;
}

/* Alert text */
.coupon-alert-body {
    flex: 1;
    min-width: 0;
}

.coupon-alert-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.coupon-alert-success .coupon-alert-title {
    color: #10b981;
}

.coupon-alert-error .coupon-alert-title {
    color: #ef4444;
}

.coupon-alert-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.coupon-save {
    display: inline-block;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: couponShine 2s linear infinite;
}

.coupon-alert-price {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.coupon-alert-price strong {
    color: #10b981;
    font-size: 0.95rem;
    -webkit-text-fill-color: #10b981;
}

/* Coupon Timer */
@keyframes couponTimerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.coupon-timer-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.35rem 0.6rem;
    background: rgba(16, 185, 129, 0.06);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.coupon-timer-row svg {
    flex-shrink: 0;
    color: #10b981;
}

.coupon-timer-value {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 0.85rem;
    color: #10b981;
    -webkit-text-fill-color: #10b981;
    letter-spacing: 0.04em;
    margin-left: 0.15rem;
}

.coupon-timer-urgent {
    background: rgba(239, 68, 68, 0.08);
}

.coupon-timer-urgent svg {
    color: #ef4444;
}

.coupon-timer-urgent .coupon-timer-value {
    color: #ef4444;
    -webkit-text-fill-color: #ef4444;
    animation: couponTimerPulse 1s ease-in-out infinite;
}

.btn-buy-modal {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    letter-spacing: 0.01em;
}

.btn-buy-modal:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

.btn-buy-modal:active {
    transform: translateY(0);
}

.btn-buy-modal:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
}

/* Product highlights / features list */
.modal-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.modal-highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}

.modal-highlight-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================
   Profile Page
   ============================================ */
.profile-page {
    padding: 110px 1.5rem 80px;
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-id {
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.user-id:hover {
    color: var(--primary);
}

.role-badge {
    display: inline-flex;
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.03);
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.stat-card .value.balance {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .value.points {
    color: var(--warning);
}

.stat-card .label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.profile-section h3 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.referral-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.referral-box code {
    flex: 1;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 600;
    font-family: 'Inter', monospace;
    font-size: 0.95rem;
}

/* ============================================
   Newsletter / CTA Section
   ============================================ */
.newsletter {
    background: rgba(124, 58, 237, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.4), transparent);
}

.newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 1.5rem auto 0;
}

/* ============================================
   Announcement Cards
   ============================================ */
.announcement-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.announcement-card:hover {
    border-color: var(--primary-light);
    background: var(--card-bg);
    transform: translateX(4px);
    filter: brightness(1.15);
}

.announcement-card .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.announcement-card .content {
    flex: 1;
}

.announcement-card .title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.announcement-card .date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   How It Works Section (Horizontal)
   ============================================ */
.steps-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    counter-reset: step;
}

.steps-horizontal .step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.steps-horizontal .step-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    filter: brightness(1.15);
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 0 1rem;
    padding-top: 2.5rem;
    font-weight: 700;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    filter: brightness(1.15);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
    background: var(--card-bg);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary-light);
    background: var(--card-bg);
    filter: brightness(1.15);
}

.faq-question {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    background: transparent;
}

.faq-question:hover {
    background: transparent;
}

.faq-question .faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   CTA / Ready Section
   ============================================ */
.cta-section {
    padding: 80px 1.5rem;
    text-align: center;
}

/* ============================================
   Announcements Bar (Top)
   ============================================ */
.announcements-bar {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(245, 158, 11, 0.08));
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    padding: 10px 1.5rem;
    margin-top: 64px;
}

.announcements-bar-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

@media (max-width: 639px) {
    .announcement-chip {
        white-space: normal;
        text-align: center;
    }
}

.announcement-chip:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--text-main);
}

.announcement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   Why Us Section (Bottom, Horizontal)
   ============================================ */
.why-us-section {
    padding: 60px 1.5rem;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.03), rgba(10, 10, 15, 0.5));
    border-top: 1px solid var(--border);
    overflow-x: hidden;
    width: 100%;
}

.why-us-section .section-title {
    text-align: center;
    max-width: var(--container-width);
    margin: 0 auto 2rem;
}

.why-us-section .section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-us-section .section-title p {
    color: var(--text-secondary);
}

.why-us-horizontal {
    display: flex;
    gap: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.why-us-item {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.why-us-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    filter: brightness(1.15);
}

.why-us-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.why-us-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.why-us-item p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 3rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.cta-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cta-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero { padding: 100px 1.25rem 50px; overflow: hidden; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
    .hero p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-badge { margin-bottom: 1.25rem; font-size: 0.78rem; padding: 0.35rem 1rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.5rem; }
    .hero-stat .number { font-size: 1.5rem; }
    .hero-actions { flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
    
    .section-title { margin-bottom: 2rem; }
    .section-title h2 { font-size: 1.6rem; }
    .section-title p { font-size: 0.9rem; }
    
    .faq-question { padding: 0.85rem 1rem; font-size: 0.9rem; }
    .faq-answer p { padding: 0 1rem 0.85rem; font-size: 0.85rem; }
    .faq-item { border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
    
    .why-us-section { padding: 40px 1.25rem; }
    .why-us-section .section-title { margin-bottom: 1.5rem; }
    .why-us-section .section-title h2 { font-size: 1.5rem; }
    .why-us-item { min-width: 150px; max-width: 180px; }
    
    .navbar-inner { padding: 0 1rem; }
    .navbar-auth #auth-buttons { display: none; }
    .navbar-user .user-info { display: none; }
    .drawer { width: 280px; }
    .hero-actions .hero-auth-mobile { display: flex; gap: 0.75rem; justify-content: center; }
    .hero-actions .hero-auth-mobile .btn { font-size: 0.95rem; padding: 0.6rem 1.5rem; }
    .hero-actions .hero-shop-btn-wrap { display: none; }
    .hero-actions .hero-register-btn { display: none; }
    
    .footer { padding: 2rem 1.25rem 1.5rem; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }
    .footer-brand { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
    .footer-brand .logo { justify-content: center; margin-bottom: 0.75rem; }
    .footer-brand p { margin-bottom: 1rem; font-size: 0.82rem; }
    .footer-social { justify-content: center; }
    .footer-cols-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        text-align: center;
    }
    .footer-col h4 { font-size: 0.75rem; margin-bottom: 0.75rem; }
    .footer-col a { font-size: 0.8rem; padding: 0.2rem 0; }
    .footer-bottom { justify-content: center; text-align: center; padding-top: 1.25rem; margin-top: 0.5rem; }
    
    .modal-overlay {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    .modal-card {
        grid-template-columns: 1fr;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal-img-section { 
        border-radius: 0;
        min-height: 220px;
        max-height: 320px;
        flex-shrink: 0;
    }
    .modal-info-section {
        max-height: none;
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        overflow-y: visible;
        flex-shrink: 0;
    }
    .modal-product-name { font-size: 1.3rem; }
    .modal-product-price { font-size: 1.4rem; }
    .variant-options { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    
    .shop-header { text-align: center; }
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
    
    .profile-header { flex-direction: column; text-align: center; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    
    .steps-grid { grid-template-columns: 1fr; }
    .steps-horizontal { flex-direction: column; align-items: center; width: 100%; }
    .step-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
    .steps-horizontal .step-card { max-width: 100%; width: 100%; box-sizing: border-box; }
    .features-grid { grid-template-columns: 1fr; }
    .why-us-horizontal { flex-direction: column; align-items: center; width: 100%; }
    .why-us-item { max-width: 100%; width: 100%; box-sizing: border-box; }
    
    .newsletter-form { flex-direction: column; }
    
    .cta-box { padding: 2.5rem 1.5rem; }
    .cta-badges { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero { padding: 80px 1rem 40px; overflow: hidden; }
    .hero h1 { font-size: 1.8rem; margin-bottom: 0.75rem; }
    .hero p { font-size: 0.88rem; margin-bottom: 1.25rem; line-height: 1.6; }
    .hero-badge { margin-bottom: 1rem; font-size: 0.75rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding-top: 1.25rem; }
    .hero-stat .number { font-size: 1.25rem; margin-bottom: 0.25rem; }
    .hero-stat .label { font-size: 0.7rem; letter-spacing: 0.05em; }
    .hero-actions { margin-bottom: 1.5rem; }
    .hero-actions .btn-lg { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .section { padding: 50px 1rem; }
    
    .section-title { margin-bottom: 1.5rem; }
    .section-title h2 { font-size: 1.4rem; }
    .section-title p { font-size: 0.82rem; }
    
    .faq-question { padding: 0.75rem 0.85rem; font-size: 0.85rem; }
    .faq-answer p { padding: 0 0.85rem 0.75rem; font-size: 0.82rem; }
    .faq-item { margin-bottom: 0.4rem; }
    
    .why-us-section { padding: 35px 1rem; }
    .why-us-horizontal { gap: 1rem; }
    .why-us-item { min-width: 130px; max-width: 160px; }
    
    .profile-stats { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    .footer { padding: 1.5rem 1rem 1rem; }
    .footer-content { gap: 0; }
    .footer-brand p { font-size: 0.78rem; margin-bottom: 0.75rem; }
    .footer-cols-wrap { gap: 0.5rem; }
    .footer-col h4 { font-size: 0.7rem; margin-bottom: 0.5rem; }
    .footer-col a { font-size: 0.75rem; padding: 0.15rem 0; }
    .footer-bottom { padding-top: 1rem; }
    .footer-copy { font-size: 0.75rem; }
}

@media (max-width: 360px) {
    .products-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   Animation Classes (DEPRECATED – use data-anim)
   Kept as noop fallback so old references don't break
   ============================================ */
.fade-in {
    opacity: 1;
    transform: none;
}

.fade-in-delay-1 { animation-delay: 0; }
.fade-in-delay-2 { animation-delay: 0; }
.fade-in-delay-3 { animation-delay: 0; }
.fade-in-delay-4 { animation-delay: 0; }

/* Glow effect on special elements */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--primary-gradient);
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.3s ease;
}

.glow:hover::after {
    opacity: 0.3;
}

/* Hide old mobile-menu-btn (replaced by .menu-toggle) */
.mobile-menu-btn {
    display: none !important;
}

/* ============================================
   Side Drawer (Off-canvas Menu)
   ============================================ */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100dvh;
    background: linear-gradient(180deg, #0f0f1a 0%, rgba(17, 17, 24, 0.98) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1200;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.4s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.drawer.open {
    transform: translateX(0);
    visibility: visible;
    overflow-y: auto;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-header .drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}

.drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.drawer-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* Drawer Nav Links */
.drawer-nav {
    padding: 0.75rem 0.75rem;
    flex: 1;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.drawer-nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.04);
}

.drawer-nav-item.active {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.15);
    font-weight: 600;
}

.drawer-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
}

.drawer-nav-item .drawer-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    stroke-width: 1.8;
    flex-shrink: 0;
    transition: var(--transition);
}

.drawer svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    overflow: visible;
}

.drawer-nav-item.active .drawer-icon {
    stroke-width: 2.2;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.3));
}

.drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 1rem;
}

.drawer-section-label {
    padding: 0.5rem 1.1rem 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Drawer Footer (user info / auth) */
.drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.drawer-user:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 58, 237, 0.2);
}

.drawer-user .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
    flex-shrink: 0;
}

.drawer-user .drawer-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.drawer-user .drawer-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-user .drawer-user-balance {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    font-family: 'Inter', monospace;
}

.drawer-auth-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-auth-btns .btn {
    width: 100%;
    justify-content: center;
}

/* Old mobile-menu classes (legacy compat) */
.mobile-menu-overlay { display: none !important; }

/* ===== Admin Modal System ===== */
.adm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.adm-modal-overlay.active {
    opacity: 1;
}
.adm-modal {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 16px;
    padding: 0;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin: auto 0;
}
.adm-modal-overlay.active .adm-modal {
    transform: scale(1) translateY(0);
}
.adm-modal-wide {
    max-width: 580px;
}
.adm-modal-header {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main, #f0f0f5);
    padding: 1.25rem 1.5rem 0.5rem;
}
.adm-modal-body {
    padding: 0.75rem 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(124,58,237,0.2) transparent;
}
.adm-modal-body::-webkit-scrollbar{width:5px}
.adm-modal-body::-webkit-scrollbar-track{background:transparent}
.adm-modal-body::-webkit-scrollbar-thumb{background:rgba(124,58,237,0.2);border-radius:4px}
.adm-modal-body::-webkit-scrollbar-thumb:hover{background:rgba(124,58,237,0.35)}

/* Price editor category styles */
.tgs-price-scroll{max-height:55vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(124,58,237,0.2) transparent;padding-right:4px}
.tgs-price-scroll::-webkit-scrollbar{width:5px}
.tgs-price-scroll::-webkit-scrollbar-track{background:transparent}
.tgs-price-scroll::-webkit-scrollbar-thumb{background:rgba(124,58,237,0.2);border-radius:4px}
.tgs-cat-section{background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.06);border-radius:8px;margin-bottom:10px;overflow:hidden}
.tgs-cat-header{display:flex;align-items:center;padding:10px 14px;cursor:pointer;user-select:none;gap:8px;transition:background 0.15s}
.tgs-cat-header:hover{background:rgba(255,255,255,0.03)}
.tgs-cat-arrow{font-size:0.65rem;color:var(--primary,#22d3ee);transition:transform 0.2s;display:inline-block;width:12px}
.tgs-cat-section.collapsed .tgs-cat-arrow{transform:rotate(-90deg)}
.tgs-cat-title{font-size:0.82rem;font-weight:600;color:var(--primary,#22d3ee);flex:1}
.tgs-cat-count{font-size:0.7rem;color:var(--text-muted);background:rgba(255,255,255,0.05);padding:2px 8px;border-radius:10px}
.tgs-cat-body{border-top:1px solid rgba(255,255,255,0.04)}
.tgs-cat-section.collapsed .tgs-cat-body{display:none}
.tgs-cat-table{width:100%;border-collapse:collapse;font-size:0.82rem}
.tgs-cat-table thead th{padding:6px 10px;font-size:0.72rem;font-weight:500;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.3px;border-bottom:1px solid rgba(255,255,255,0.04)}
.tgs-cat-row{transition:background 0.1s}
.tgs-cat-row:hover{background:rgba(255,255,255,0.03)}
.tgs-cat-row+.tgs-cat-row{border-top:1px solid rgba(255,255,255,0.02)}
.tgs-cat-name{padding:7px 10px;color:var(--text-primary,#e0e0e5);font-size:0.8rem}
.tgs-cat-cost{padding:7px 10px;text-align:right;color:var(--text-muted);font-size:0.78rem;white-space:nowrap}
.tgs-cat-sell{padding:5px 8px;text-align:right}
.tgs-cat-sell .tgs-price-input{width:100px;height:30px;font-size:0.82rem;text-align:right;padding:4px 10px;border-radius:5px;-moz-appearance:textfield;appearance:textfield}

.adm-modal-body .form-group {
    margin-bottom: 1rem;
}
.adm-modal-body .form-group:last-child {
    margin-bottom: 0;
}
.adm-modal-msg {
    color: var(--text-secondary, #a0a0b8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}
.adm-modal-input {
    width: 100%;
    font-size: 0.9rem;
}
.adm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.25rem;
}
.adm-modal-actions .btn {
    min-width: 80px;
    justify-content: center;
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}

/* ===== Product Drag & Drop Reorder ===== */
.drag-row { transition: background 0.15s, opacity 0.15s, transform 0.15s; }
.drag-row .drag-handle { user-select: none; -webkit-user-select: none; }
.drag-row.drag-active { opacity: 0.45; background: rgba(99,102,241,0.08) !important; }
.drag-row.drag-over { background: rgba(99,102,241,0.15) !important; box-shadow: inset 0 -2px 0 0 #6366f1; }
.drag-handle:active { cursor: grabbing !important; }
.prod-sort-num {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 6px;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
}

/* test bump Sat Feb 21 01:32:28 PM UTC 2026 */
