/* =============================================================================
   DIGISTORE PRO — LUXURY DARK AESTHETIC OVERHAUL v3.0
   Design Philosophy: Dark Luxury · Spatial 3D · Cinematic Glassmorphism
   ─────────────────────────────────────────────────────────────────────────────
   CONSTRAINT: No backend logic or functional JS altered.
               All element IDs, form names, data-* attrs preserved.
   =============================================================================
   TABLE OF CONTENTS:
   00. Google Fonts Import (Space Grotesk + Plus Jakarta Sans + Inter)
   01. Design Token Revolution — :root variables
   02. Aggressive CSS Reset Layer
   03. Living Background — Animated Mesh Gradient
   04. Typography Architecture
   05. Floating Glass Pill Navigation (Desktop)
   06. Mobile Bottom Navigation Bar
   07. Hero Section — Cinematic Remaster
   08. Premium Button System
   09. Form & Input Deep Pit Design
   10. Product Cards — 3D Tilt + Skeleton
   11. Glassmorphism Cards & Surfaces
   12. Badge & Status — Neon LED Indicators
   13. Cart Sidebar — Premium Remaster
   14. Auth Pages — Immersive Design
   15. Footer — Luxury Remaster
   16. Trust Strip & Section Headers
   17. Premium Micro-Animations & Keyframes
   18. Responsive — Mobile Bottom Nav Integration
   19. Scrollbar Luxury Treatment
   20. Telegram Support Float Button
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   00. GOOGLE FONTS — Premium Typography Stack
   ───────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');


/* ─────────────────────────────────────────────────────────────────────────────
   01. DESIGN TOKEN REVOLUTION
   Completely overrides the legacy color system with cinematic dark luxury.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* ── Background Architecture (Deep Space Layers) ── */
    --bg-base:              #080A0F;      /* Absolute void — page base */
    --bg-surface:           #0D1017;      /* Primary surface */
    --bg-surface-2:         #111521;      /* Elevated surface */
    --bg-surface-3:         #161C2E;      /* Card level */
    --bg-glass:             rgba(16, 20, 35, 0.55);
    --bg-glass-heavy:       rgba(8, 10, 15, 0.88);
    --bg-input-pit:         rgba(0, 0, 0, 0.45);  /* Deep input pit */

    /* ── Override legacy bg tokens to match new system ── */
    --bg-main:              var(--bg-base);
    --bg-secondary:         var(--bg-surface);
    --bg-tertiary:          var(--bg-surface-2);
    --bg-card:              var(--bg-surface-3);
    --bg-input:             var(--bg-input-pit);
    --glass-bg:             var(--bg-glass);
    --glass-bg-heavy:       var(--bg-glass-heavy);

    /* ── Cinematic Accent System ── */
    /* Primary: Electric Violet → Cyan (the hero gradient) */
    --accent-grad-primary:  linear-gradient(135deg, #7B2FFF 0%, #00D4FF 100%);
    /* Secondary: Crimson → Amber (danger/action gradient) */
    --accent-grad-secondary:linear-gradient(135deg, #FF1654 0%, #FF9500 100%);
    /* Warm glow accent (kept for legacy compatibility) */
    --accent-primary:       #8B5CF6;
    --accent-hover:         #A78BFA;
    --accent-primary-rgb:   139, 92, 246;
    --accent-glow:          rgba(139, 92, 246, 0.45);
    --accent-glow-sm:       rgba(139, 92, 246, 0.20);
    --accent-secondary:     #00D4FF;
    --accent-sec-glow:      rgba(0, 212, 255, 0.30);

    /* ── Glow Arsenal ── */
    --glow-primary:         0 0 20px rgba(139, 92, 246, 0.45),
                            0 0 60px rgba(139, 92, 246, 0.15);
    --glow-cyan:            0 0 20px rgba(0, 212, 255, 0.40),
                            0 0 60px rgba(0, 212, 255, 0.12);
    --glow-intense:         0 0 40px rgba(139, 92, 246, 0.60),
                            0 0 100px rgba(139, 92, 246, 0.20);
    --glow-card:            0 0 0 1px rgba(139, 92, 246, 0.08),
                            0 20px 60px rgba(0, 0, 0, 0.55),
                            0 0 40px rgba(139, 92, 246, 0.06);

    /* ── Text Hierarchy ── */
    --text-main:            #F0F2F8;
    --text-muted:           #8892A4;
    --text-subtle:          #3D4560;
    --text-inverse:         #080A0F;

    /* ── Glass & Border System ── */
    /* Top-lit glass simulates a light source from above (3D cinematic) */
    --glass-border-top:     rgba(255, 255, 255, 0.18);
    --glass-border:         rgba(255, 255, 255, 0.07);
    --glass-border-sm:      rgba(255, 255, 255, 0.04);
    --glass-border-accent:  rgba(139, 92, 246, 0.25);
    --glass-blur:           blur(20px) saturate(180%);
    --glass-blur-sm:        blur(10px) saturate(140%);

    /* ── Gradient Override System ── */
    --grad-accent:          var(--accent-grad-primary);
    --grad-card:            linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
    --grad-hero:            radial-gradient(ellipse at 20% 50%, rgba(123, 47, 255, 0.18) 0%, transparent 55%),
                            radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.10) 0%, transparent 50%),
                            radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
                            #080A0F;
    --grad-overlay:         linear-gradient(180deg, transparent 40%, rgba(8, 10, 15, 0.96) 100%);

    /* ── Premium Shadow System (multi-layer cinematic lighting) ── */
    --shadow-card:          0 4px 24px rgba(0, 0, 0, 0.50),
                            0 1px 0 rgba(255, 255, 255, 0.04) inset;
    --shadow-card-hover:    0 24px 80px rgba(0, 0, 0, 0.65),
                            0 0 40px rgba(139, 92, 246, 0.12),
                            0 1px 0 rgba(255, 255, 255, 0.08) inset;
    --shadow-btn:           0 4px 24px rgba(139, 92, 246, 0.35),
                            inset 0 1px 1px rgba(255, 255, 255, 0.20);
    --shadow-btn-hover:     0 8px 40px rgba(139, 92, 246, 0.50),
                            inset 0 1px 1px rgba(255, 255, 255, 0.25);
    --shadow-nav:           0 8px 40px rgba(0, 0, 0, 0.60),
                            0 1px 0 rgba(255, 255, 255, 0.08) inset;
    --shadow-modal:         0 32px 100px rgba(0, 0, 0, 0.80),
                            0 0 0 1px rgba(255, 255, 255, 0.06);

    /* ── Typography Tokens ── */
    --font-display:         'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body:            'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-mono:            'JetBrains Mono', 'Fira Code', monospace;

    /* ── Spacing (preserved) ── */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* ── Radius ── */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   18px;
    --radius-xl:   24px;
    --radius-pill: 999px;

    /* ── Z-Index ── */
    --z-below:   -1;
    --z-base:     0;
    --z-raised:   10;
    --z-overlay:  100;
    --z-nav:      200;
    --z-modal:    300;
    --z-toast:    400;

    /* ── Premium Easing Curves (no linear allowed) ── */
    --ease-smooth:  cubic-bezier(0.25, 1, 0.5, 1);
    --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap:    cubic-bezier(0.77, 0, 0.18, 1);

    --transition-fast:   all 0.18s var(--ease-smooth);
    --transition-base:   all 0.32s var(--ease-smooth);
    --transition-slow:   all 0.50s var(--ease-expo);
    --transition-bounce: all 0.40s var(--ease-bounce);

    /* ── Status Colors (neon-enhanced) ── */
    --color-success:   #10D876;
    --color-warning:   #F59E0B;
    --color-error:     #FF3B5C;
    --color-info:      #00D4FF;
}


/* ─────────────────────────────────────────────────────────────────────────────
   02. AGGRESSIVE CSS RESET LAYER
   Kill all browser defaults that fight the luxury aesthetic.
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    /* Living background — extremely slow animated mesh */
    background-image:
        radial-gradient(ellipse at 15% 15%, rgba(123, 47, 255, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
input, select, textarea { font-family: inherit; }

/* Kill all default outlines — replaced by glow focus states */
*:focus { outline: none; }
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}


/* ─────────────────────────────────────────────────────────────────────────────
   03. LIVING BACKGROUND — Animated ambient orbs
   ───────────────────────────────────────────────────────────────────────────── */

/* Ambient orb layer injected behind all content */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-below);
    background:
        radial-gradient(ellipse 800px 600px at 10% 20%, rgba(123, 47, 255, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 90% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
    animation: ambient-drift 30s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-below);
    /* Subtle grid texture */
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift-luxury 40s linear infinite;
}

@keyframes ambient-drift {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-30px) scale(1.02); }
    100% { transform: translateY(15px) scale(0.98); }
}

@keyframes grid-drift-luxury {
    0%   { transform: translateY(0) translateX(0); }
    100% { transform: translateY(60px) translateX(60px); }
}


/* ─────────────────────────────────────────────────────────────────────────────
   04. TYPOGRAPHY ARCHITECTURE
   Premium editorial type with fluid scaling and tight tracking on display.
   ───────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

/* Fluid type scale — no abrupt jumps */
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw,  1.75rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
h5 { font-size: 0.95rem; font-weight: 600; }
h6 { font-size: 0.85rem; font-weight: 600; }

p  { color: var(--text-muted); line-height: 1.75; }

/* Premium gradient text — electric violet to cyan */
.text-gradient {
    background: var(--accent-grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Warm orange gradient (keep for legacy .text-gradient usage in PHP) */
.text-gradient-warm {
    background: linear-gradient(135deg, #FF6B00, #FF3D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted   { color: var(--text-muted) !important; }
.text-accent  { color: var(--accent-primary) !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }


/* ─────────────────────────────────────────────────────────────────────────────
   05. FLOATING GLASS PILL NAVIGATION (Desktop)
   A floating, frosted-glass pill that hovers above content.
   ───────────────────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-nav);
    width: min(calc(100% - 32px), 1100px);
    /* Pill shape */
    border-radius: var(--radius-pill);
    /* Frosted glass */
    background: rgba(13, 16, 23, 0.72);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    /* Cinematic border — top-lit glass */
    border-top:    1px solid rgba(255, 255, 255, 0.18);
    border-left:   1px solid rgba(255, 255, 255, 0.10);
    border-right:  1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(139, 92, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    transition: all 0.40s var(--ease-expo);
}

/* Scrolled state — slightly more opaque */
.navbar.scrolled {
    background: rgba(10, 12, 18, 0.90);
    backdrop-filter: blur(32px) saturate(220%);
    -webkit-backdrop-filter: blur(32px) saturate(220%);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.70),
        0 0 0 1px rgba(139, 92, 246, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    top: 12px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    max-width: 100%;
    padding: 0;
}

/* ── Logo ── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo .logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-grad-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: var(--transition-base);
}

.nav-logo:hover .logo-icon {
    box-shadow: var(--glow-primary);
    transform: scale(1.08) rotate(-5deg);
}

.nav-logo .logo-text span { color: var(--accent-secondary); }

/* ── Nav Links — center expander underline ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition-base);
    white-space: nowrap;
    letter-spacing: 0.01em;
    overflow: hidden;
}

/* Sliding underline from center */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--accent-grad-primary);
    border-radius: var(--radius-pill);
    transition: left 0.30s var(--ease-expo), right 0.30s var(--ease-expo);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    left: 14px;
    right: 14px;
}

/* ── Nav Right ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ── Cart Button ── */
.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.cart-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--glass-border-accent);
    color: var(--accent-primary);
    box-shadow: var(--glow-primary);
    transform: scale(1.08);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-grad-primary);
    color: #fff;
    font-size: 0.60rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.60);
    animation: pulse-badge-luxury 2.5s var(--ease-smooth) infinite;
}

@keyframes pulse-badge-luxury {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(139,92,246,0.5); }
    50%       { transform: scale(1.2); box-shadow: 0 0 18px rgba(139,92,246,0.8); }
}

/* ── User Avatar ── */
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
        var(--accent-grad-primary) border-box,
        rgba(0,0,0,0) padding-box;
    /* Gradient border trick */
    outline: 2px solid rgba(139, 92, 246, 0.5);
    outline-offset: 1px;
    cursor: pointer;
    object-fit: cover;
    transition: var(--transition-base);
}

.user-avatar:hover {
    outline-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
    transform: scale(1.08);
}

/* ── User Dropdown ── */
.user-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 230px;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: var(--space-sm);
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
    pointer-events: none;
    transition: all 0.28s var(--ease-expo);
    z-index: var(--z-overlay);
}

.user-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.user-dropdown-header {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: var(--space-xs);
}

.user-dropdown-header .name  { font-weight: 700; font-size: 0.9rem; color: var(--text-main); }
.user-dropdown-header .email { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.10);
    color: var(--text-main);
}

.dropdown-item .icon { font-size: 1rem; width: 20px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--glass-border); margin: var(--space-xs) 0; }

/* ── Hamburger (hidden on desktop) ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.hamburger:hover { background: rgba(255,255,255,0.06); }

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: var(--radius-pill);
    transition: var(--transition-base);
}


/* ─────────────────────────────────────────────────────────────────────────────
   06. MOBILE BOTTOM NAVIGATION BAR
   App-style bottom nav replaces standard hamburger menu on mobile.
   ───────────────────────────────────────────────────────────────────────────── */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop — shown only on mobile via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 12, 18, 0.92);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-top:   1px solid var(--glass-border-top);
    border-left:  1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    box-shadow:
        0 -8px 40px rgba(0, 0, 0, 0.60),
        0 -1px 0 rgba(255, 255, 255, 0.06) inset;
}

.mobile-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 64px;
    padding: 0 var(--space-sm);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 48px;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-subtle);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-nav-item:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.06);
}

.mobile-nav-item.active {
    color: var(--accent-primary);
}

.mobile-nav-item.active .mobile-nav-icon {
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.mobile-nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    transition: var(--transition-base);
}

.mobile-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: inherit;
}

/* Cart count on mobile nav */
.mobile-nav-item .mobile-cart-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--accent-grad-primary);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.mobile-nav-item .mobile-cart-badge.show {
    display: flex;
}


/* ─────────────────────────────────────────────────────────────────────────────
   07. HERO SECTION — Cinematic Remaster
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 120px;
    background: var(--grad-hero);
}

/* Removed the old orange grid — replaced with violet precision grid */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift-luxury 50s linear infinite;
    z-index: 0;
}

/* Radial hero glow source */
.hero::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 45%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse,
        rgba(123, 47, 255, 0.14) 0%,
        rgba(0, 212, 255, 0.05) 50%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: hero-glow-drift 8s ease-in-out infinite alternate;
}

@keyframes hero-glow-drift {
    0%   { transform: translateX(-50%) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* Hero label badge */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    background: rgba(139, 92, 246, 0.10);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    animation: fade-slide-up-luxury 0.6s var(--ease-expo) both;
    animation-delay: 0.1s;
}

.hero-label .dot {
    width: 7px;
    height: 7px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-dot-luxury 1.8s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-primary), 0 0 16px rgba(139,92,246,0.4);
}

@keyframes pulse-dot-luxury {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.6; }
}

.hero-title {
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-lg);
    animation: fade-slide-up-luxury 0.7s var(--ease-expo) both;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 540px;
    animation: fade-slide-up-luxury 0.7s var(--ease-expo) both;
    animation-delay: 0.35s;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fade-slide-up-luxury 0.7s var(--ease-expo) both;
    animation-delay: 0.50s;
}

/* ── Hero Stats ── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
    animation: fade-slide-up-luxury 0.7s var(--ease-expo) both;
    animation-delay: 0.65s;
}

.hero-stat .number {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--accent-grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Floating product icons ── */
.hero-visual {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 540px;
    height: 540px;
    z-index: 1;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top:   1px solid var(--glass-border-top);
    border-left:  1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border-sm);
    border-bottom:1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    animation: float-y-luxury 4s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

.floating-icon:nth-child(1) { width:82px; height:82px; top:10%;  left:20%;  animation-delay:0s;    animation-duration:3.5s; }
.floating-icon:nth-child(2) { width:72px; height:72px; top:35%;  left:62%;  animation-delay:0.8s;  animation-duration:4.2s; }
.floating-icon:nth-child(3) { width:92px; height:92px; top:62%;  left:10%;  animation-delay:1.5s;  animation-duration:5s; }
.floating-icon:nth-child(4) { width:66px; height:66px; top:15%;  left:76%;  animation-delay:2s;    animation-duration:3.8s; }
.floating-icon:nth-child(5) { width:78px; height:78px; top:76%;  left:56%;  animation-delay:0.4s;  animation-duration:4.5s; }
.floating-icon:nth-child(6) { width:62px; height:62px; top:50%;  left:38%;  animation-delay:2.5s;  animation-duration:3.2s; }

@keyframes float-y-luxury {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(2deg); }
}


/* ─────────────────────────────────────────────────────────────────────────────
   08. PREMIUM BUTTON SYSTEM
   3D volume, glow halos, sweep animation on hover.
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 13px 30px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.32s var(--ease-expo), box-shadow 0.32s var(--ease-expo), filter 0.25s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

/* Light sweep animation on hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );
    transition: left 0.5s var(--ease-expo);
    pointer-events: none;
    transform: skewX(-20deg);
}

.btn:hover::before { left: 150%; }

/* ── Primary Button — Gradient with 3D volume ── */
.btn-primary {
    background: var(--accent-grad-primary);
    color: #fff;
    box-shadow:
        0 4px 24px rgba(139, 92, 246, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        inset 0 -1px 1px rgba(0, 0, 0, 0.20);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.55),
        0 0 60px rgba(139, 92, 246, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.30),
        inset 0 -1px 1px rgba(0, 0, 0, 0.20);
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.30),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* ── Secondary — Glassmorphic outline ── */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(139, 92, 246, 0.30);
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 20px rgba(139, 92, 246, 0.08);
}

/* ── Ghost / Text CTA ── */
.btn-ghost {
    background: transparent;
    color: var(--accent-primary);
    padding: 11px 22px;
}

.btn-ghost:hover {
    background: rgba(139, 92, 246, 0.10);
    transform: translateY(-2px) scale(1.02);
}

/* ── Danger ── */
.btn-danger {
    background: linear-gradient(135deg, #FF1654, #CC0033);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 22, 84, 0.40), inset 0 1px 1px rgba(255,255,255,0.20);
}

.btn-danger:hover {
    filter: brightness(1.12);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 36px rgba(255, 22, 84, 0.55), inset 0 1px 1px rgba(255,255,255,0.25);
}

/* ── Sizes ── */
.btn-sm  { padding: 8px 18px;  font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 16px 44px; font-size: 1.02rem; }
.btn-xl  { padding: 18px 56px; font-size: 1.08rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-pill { border-radius: var(--radius-pill) !important; }

/* ── Icon button ── */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: var(--transition-base);
}

.btn-icon:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--glass-border-accent);
    color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

/* ── Loading state ── */
.btn.loading { pointer-events: none; opacity: 0.70; }
.btn.loading::after {
    content: '';
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-luxury 0.7s linear infinite;
    margin-left: 8px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   09. FORMS & INPUT — Deep Pit Design
   ───────────────────────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.form-label span.req,
.form-label .req { color: var(--accent-primary); margin-left: 2px; }

/* ── The Deep Pit input design ── */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    /* Deep dark pit */
    background: var(--bg-input-pit);
    /* Bottom border illuminates on focus (simulates neon lit edge) */
    border: 1px solid var(--glass-border);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.94rem;
    padding: 13px 16px;
    outline: none;
    transition: all 0.30s var(--ease-smooth);
    /* Inner shadow for depth */
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.40);
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    /* Glowing bottom border illumination */
    border-color: rgba(139, 92, 246, 0.40);
    border-bottom-color: var(--accent-primary);
    /* Outer glow ring */
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.50),
        0 0 0 3px rgba(139, 92, 246, 0.12),
        0 0 20px rgba(139, 92, 246, 0.08);
    background: rgba(0, 0, 0, 0.55);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-subtle); }

.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.65;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892A4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-select option { background: var(--bg-surface-2); color: var(--text-main); }

.form-error {
    font-size: 0.78rem;
    color: var(--color-error);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.form-error.visible { display: flex; }

/* ── Input with Icon ── */
.input-icon-wrap { position: relative; }

.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.input-icon-wrap .form-input { padding-left: 44px; }
.input-icon-wrap .form-input:focus + .input-icon,
.input-icon-wrap:focus-within .input-icon { opacity: 1; color: var(--accent-primary); }

/* ── Password Toggle ── */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    font-size: 0.9rem;
}

.toggle-password:hover { opacity: 1; color: var(--accent-primary); }

/* ── Auth Card ── */
.auth-card {
    width: 100%;
    max-width: 480px;
    /* Deep glass surface */
    background: rgba(13, 16, 23, 0.70);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    /* Top-lit border */
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.70),
        0 0 0 1px rgba(139, 92, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    margin: var(--space-xl) auto;
    animation: fade-slide-up-luxury 0.5s var(--ease-expo) both;
}

.auth-card h2 {
    font-size: clamp(1.6rem, 3vw, 1.9rem);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.04em;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px var(--space-xl) var(--space-xl);
    background:
        radial-gradient(ellipse at 25% 40%, rgba(123, 47, 255, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 70%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
        var(--bg-base);
}


/* ─────────────────────────────────────────────────────────────────────────────
   10. PRODUCT CARDS — Glassmorphic 3D + Premium Image Zoom
   ───────────────────────────────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    /* Glassmorphic dark surface */
    background: rgba(17, 21, 33, 0.60);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    /* Top-lit border — simulates light from above */
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.50s var(--ease-expo);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

/* Gradient wash on card top — subtle color tint */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.40s var(--ease-expo);
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.25);
    border-top-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--shadow-card-hover);
}

.product-card:hover::before { opacity: 1; }

/* ── Image Wrap — Cinematic zoom ── */
.product-card-image-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-surface-2);
    flex-shrink: 0;
}

.product-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease-expo);
}

.product-card:hover .product-card-image-wrap img {
    transform: scale(1.10);
}

/* Gradient overlay on image */
.product-card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(8, 10, 15, 0.85) 100%
    );
}

/* Service icon pill */
.product-card-icon {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    z-index: 1;
    width: 52px;
    height: 52px;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(12px);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.product-card:hover .product-card-icon {
    transform: scale(1.08);
    box-shadow: var(--glow-primary);
}

/* Featured / Discount Badge */
.product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 1;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent-grad-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Card Body */
.product-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.product-category {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.product-short-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    flex: 1;
    line-height: 1.6;
}

/* Card Footer */
.product-card-footer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--glass-border-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

.product-price-wrap { display: flex; flex-direction: column; }
.product-original-price { font-size: 0.75rem; color: var(--text-subtle); text-decoration: line-through; }
.product-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    /* Gradient price text */
    background: var(--accent-grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-duration { font-size: 0.70rem; color: var(--text-muted); margin-top: 1px; }

/* Full-width CTA link under card */
.product-card-buy-full {
    display: block;
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--glass-border-sm);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent-primary);
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.product-card-buy-full:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-hover);
}

/* Featured card variant */
.product-card.featured-highlight {
    border-color: rgba(139, 92, 246, 0.22);
    border-top-color: rgba(139, 92, 246, 0.38);
    box-shadow:
        var(--shadow-card),
        0 0 0 1px rgba(139, 92, 246, 0.08);
}

/* Skeleton loader */
.skeleton-card {
    background: var(--bg-surface-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-surface-2)   25%,
        var(--bg-surface-3)   50%,
        var(--bg-surface-2)   75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer-luxury 1.8s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer-luxury {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   11. GLASSMORPHISM SURFACES — Cards, Modals, Sidebars
   ───────────────────────────────────────────────────────────────────────────── */

/* Generic glass card */
.glass {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
}

.glass-heavy {
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(32px) saturate(220%);
    -webkit-backdrop-filter: blur(32px) saturate(220%);
    border-top: 1px solid var(--glass-border-top);
    border: 1px solid var(--glass-border);
}

/* Generic .card upgrade */
.card {
    background: rgba(17, 21, 33, 0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover::before { opacity: 1; }

/* ── Modals ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: rgba(13, 16, 23, 0.88);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    transform: scale(0.90) translateY(24px);
    transition: transform 0.35s var(--ease-bounce);
    position: relative;
}

.modal-backdrop.open .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 { font-size: 1.12rem; letter-spacing: -0.02em; }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
}

.modal-close:hover {
    background: rgba(255, 59, 92, 0.15);
    color: var(--color-error);
    border-color: rgba(255, 59, 92, 0.30);
    transform: rotate(90deg);
}

.modal-body   { padding: var(--space-xl); }
.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

/* ── Cart Sidebar ── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: var(--z-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 95vw;
    background: rgba(10, 12, 18, 0.94);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-left: 1px solid var(--glass-border-top);
    z-index: calc(var(--z-overlay) + 1);
    transform: translateX(100%);
    transition: transform 0.40s var(--ease-expo);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 60px rgba(0, 0, 0, 0.60), -1px 0 0 rgba(139,92,246,0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cart-sidebar-header h3 {
    font-size: 1.05rem;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255,255,255,0.03);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.cart-item:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.05);
}

.cart-item-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price {
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--accent-grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2px;
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 59, 92, 0.10);
    border: 1px solid rgba(255, 59, 92, 0.20);
    color: var(--color-error);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: rgba(255, 59, 92, 0.25);
    transform: scale(1.10);
}

.cart-sidebar-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total .label { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; }
.cart-total .amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--accent-grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ─────────────────────────────────────────────────────────────────────────────
   12. BADGE & STATUS — Neon LED Indicators
   ───────────────────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Neon LED glow badges */
.badge-pending   { background: rgba(100,116,139,0.12); color: #94A3B8; border: 1px solid rgba(100,116,139,0.20); }
.badge-verifying { background: rgba(245,158,11,0.10);  color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); text-shadow: 0 0 8px rgba(245,158,11,0.4); }
.badge-paid      { background: rgba(0,212,255,0.08);   color: #00D4FF; border: 1px solid rgba(0,212,255,0.25); text-shadow: 0 0 8px rgba(0,212,255,0.4); }
.badge-preparing { background: rgba(139,92,246,0.10);  color: #A78BFA; border: 1px solid rgba(139,92,246,0.28); text-shadow: 0 0 8px rgba(139,92,246,0.4); }
.badge-delivered { background: rgba(16,216,118,0.10);  color: #10D876; border: 1px solid rgba(16,216,118,0.28); text-shadow: 0 0 8px rgba(16,216,118,0.4); }
.badge-cancelled { background: rgba(255,59,92,0.10);   color: #FF3B5C; border: 1px solid rgba(255,59,92,0.25); text-shadow: 0 0 8px rgba(255,59,92,0.3); }
.badge-refunded  { background: rgba(251,191,36,0.10);  color: #FBBF24; border: 1px solid rgba(251,191,36,0.25); text-shadow: 0 0 8px rgba(251,191,36,0.3); }
.badge-failed    { background: rgba(255,59,92,0.08);   color: #FF6B81; border: 1px solid rgba(255,59,92,0.18); }

/* Neon pulse dot for active/delivered */
.badge-delivered::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10D876;
    box-shadow: 0 0 6px #10D876, 0 0 14px rgba(16,216,118,0.6);
    animation: neon-pulse-green 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes neon-pulse-green {
    0%, 100% { box-shadow: 0 0 4px #10D876; opacity: 1; }
    50%       { box-shadow: 0 0 14px #10D876, 0 0 28px rgba(16,216,118,0.5); opacity: 0.7; }
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.70rem;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.10);
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.22);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ─────────────────────────────────────────────────────────────────────────────
   13. SECTION LAYOUT — Headers, Trust Strip, Promo Banner
   ───────────────────────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-sm  { max-width: 880px;  margin: 0 auto; padding: 0 var(--space-xl); }
.container-lg  { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-xl); }

.section { padding: var(--space-4xl) 0; }

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .label {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
    padding: 5px 16px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-pill);
    background: rgba(139, 92, 246, 0.08);
}

.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { max-width: 560px; margin: 0 auto; color: var(--text-muted); }

/* ── Trust Strip ── */
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.trust-item:hover { color: var(--text-main); }
.trust-item .trust-icon { font-size: 1.35rem; }

/* ── Promo Banner ── */
.promo-banner {
    background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(0,212,255,0.05));
    border-top:    1px solid rgba(139, 92, 246, 0.20);
    border-left:   1px solid rgba(139, 92, 246, 0.14);
    border-right:  1px solid rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid rgba(139, 92, 246, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.promo-banner h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: var(--space-sm); }
.promo-banner p  { font-size: 0.92rem; max-width: 480px; }


/* ─────────────────────────────────────────────────────────────────────────────
   14. ALERTS, TOASTS & FLASH MESSAGES
   ───────────────────────────────────────────────────────────────────────────── */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    border: 1px solid;
    animation: fade-slide-down-luxury 0.35s var(--ease-expo) both;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(16,216,118,0.08); color: #10D876; border-color: rgba(16,216,118,0.22); }
.alert-error   { background: rgba(255,59,92,0.08);  color: #FF6B81; border-color: rgba(255,59,92,0.22); }
.alert-warning { background: rgba(245,158,11,0.08); color: #FBBF24; border-color: rgba(245,158,11,0.22); }
.alert-info    { background: rgba(0,212,255,0.08);  color: #00D4FF; border-color: rgba(0,212,255,0.22); }

/* Toast */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 380px;
}

.toast {
    background: rgba(13, 16, 23, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: 0 16px 48px rgba(0,0,0,0.60), 0 0 0 1px rgba(139,92,246,0.06);
    animation: toast-in-luxury 0.40s var(--ease-bounce) both;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.toast:hover { transform: translateX(-6px); }
.toast.removing { animation: toast-out-luxury 0.30s var(--ease-snap) both; }

.toast-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.toast.success .toast-bar { background: var(--color-success); box-shadow: 0 0 8px var(--color-success); }
.toast.error   .toast-bar { background: var(--color-error);   box-shadow: 0 0 8px var(--color-error); }
.toast.warning .toast-bar { background: var(--color-warning); box-shadow: 0 0 8px var(--color-warning); }
.toast.info    .toast-bar { background: var(--color-info);    box-shadow: 0 0 8px var(--color-info); }

@keyframes toast-in-luxury {
    from { opacity: 0; transform: translateX(100%) scale(0.90); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-out-luxury {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(120%); }
}


/* ─────────────────────────────────────────────────────────────────────────────
   15. FOOTER — Luxury Remaster
   ───────────────────────────────────────────────────────────────────────────── */
.footer {
    background: rgba(8, 10, 15, 0.95);
    border-top: 1px solid var(--glass-border-top);
    padding: var(--space-4xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 280px; line-height: 1.75; margin-top: var(--space-md); }

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: var(--space-lg);
    font-family: var(--font-body);
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.80rem;
    color: var(--text-subtle);
}

/* Social links */
.social-links { display: flex; gap: var(--space-sm); }

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--glass-border-accent);
    color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}


/* ─────────────────────────────────────────────────────────────────────────────
   16. DASHBOARD, STATS, SIDEBAR — Premium Upgrades
   ───────────────────────────────────────────────────────────────────────────── */

/* Stat cards */
.stat-card {
    background: rgba(17, 21, 33, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

/* Glow orb in corner */
.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(139, 92, 246, 0.20);
    border-top-color: rgba(139, 92, 246, 0.35);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-label { font-size: 0.80rem; color: var(--text-muted); font-weight: 500; }
.stat-icon  { font-size: 1.7rem; }

/* Admin stat cards */
.admin-stat-card {
    background: rgba(17, 21, 33, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.admin-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-grad-primary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.admin-stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }

/* Dashboard sidebar */
.dashboard-sidebar {
    background: rgba(10, 12, 18, 0.90);
    border-right: 1px solid var(--glass-border-top);
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 11px var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    border: 1px solid transparent;
}

.sidebar-nav-item .icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
}

.sidebar-nav-item.active {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-primary);
    border-color: rgba(139, 92, 246, 0.20);
}

/* Data tables */
.data-table-wrap {
    background: rgba(13, 16, 23, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.orders-table-wrap {
    background: rgba(13, 16, 23, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Table rows */
table.data-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.04);
}


/* ─────────────────────────────────────────────────────────────────────────────
   17. ANIMATIONS & MICRO-INTERACTIONS
   ───────────────────────────────────────────────────────────────────────────── */

@keyframes fade-slide-up-luxury {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-slide-down-luxury {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes spin-luxury { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.99);
    transition:
        opacity 0.70s var(--ease-expo),
        transform 0.70s var(--ease-expo);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Step cards */
.step-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: rgba(17, 21, 33, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    position: relative;
    transition: var(--transition-slow);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.40s ease;
}

.step-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    border-top-color: rgba(139, 92, 246, 0.40);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.step-card:hover::before { opacity: 1; }

.step-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--accent-grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.06em;
}

.step-icon { font-size: 2.5rem; margin-bottom: var(--space-md); display: block; }
.step-card h3 { font-size: 1.05rem; margin-bottom: var(--space-sm); letter-spacing: -0.02em; }
.step-card p  { font-size: 0.86rem; }

/* Category filter buttons */
.category-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    min-height: 36px;
}

.category-filter-btn:hover {
    border-color: rgba(139, 92, 246, 0.30);
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.08);
}

.category-filter-btn.active {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-primary);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.12);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner::before {
    border-top-color: var(--accent-primary);
    animation: spin-luxury 0.8s linear infinite;
    box-shadow: 0 0 14px var(--accent-glow);
}

.spinner::after {
    border-bottom-color: rgba(139, 92, 246, 0.25);
    animation: spin-luxury 0.8s linear infinite reverse;
}


/* ─────────────────────────────────────────────────────────────────────────────
   18. RESPONSIVE — Mobile Bottom Nav Integration
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Large Desktop ── */
@media (min-width: 1280px) {
    .hero-content { max-width: 740px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    .navbar {
        top: 10px;
        width: calc(100% - 24px);
        padding: 10px 16px;
    }

    .hero-visual { display: none; }
    .hero-content { max-width: 100%; }
    .hero-stats { gap: var(--space-lg); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
    .container, .container-sm, .container-lg { padding: 0 var(--space-lg); }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

    /* ── Hide desktop nav pill on mobile ── */
    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 10px 16px;
    }

    /* Hide nav links & auth buttons — bottom nav handles navigation */
    .nav-links { display: none; }
    .hamburger { display: none !important; }

    /* Hide desktop auth buttons on mobile */
    .nav-right .btn-secondary,
    .nav-right .btn-primary {
        display: none;
    }

    /* ── SHOW MOBILE BOTTOM NAV ── */
    .mobile-bottom-nav { display: block; }

    /* Add padding to body so content isn't hidden behind bottom nav */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* Push toast above bottom nav */
    .toast-container {
        bottom: calc(72px + env(safe-area-inset-bottom, 12px));
        right: var(--space-md);
        left: var(--space-md);
        max-width: none;
    }

    /* ── Mobile touch targets — 48px minimum ── */
    .mobile-nav-item { min-height: 48px; min-width: 48px; }
    .btn              { min-height: 48px; }
    .dropdown-item    { padding: 14px var(--space-md); }
    .sidebar-nav-item { padding: 14px var(--space-md); }

    /* ── Hero ── */
    .hero {
        padding-top: 80px;
        padding-bottom: var(--space-2xl);
        min-height: 100svh;
        text-align: center;
    }

    .hero-label  { margin: 0 auto var(--space-lg); }
    .hero-title  { font-size: clamp(2rem, 9vw, 2.9rem); }
    .hero-subtitle { font-size: 0.98rem; margin-bottom: var(--space-lg); }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .hero-actions .btn { width: 100%; justify-content: center; }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
        padding-top: var(--space-lg);
        margin-top: var(--space-lg);
        justify-content: center;
    }

    .hero-stat .number { font-size: 1.5rem; }
    .hero-stat { text-align: center; }

    /* ── Sections ── */
    .section { padding: var(--space-2xl) 0; }
    .section-header { margin-bottom: var(--space-xl); }

    /* ── Products ── */
    .products-grid { grid-template-columns: 1fr; }
    .product-card-image-wrap { height: 170px; }
    .product-card-footer { flex-wrap: wrap; gap: var(--space-sm); }

    /* ── Category filter — horizontal scroll ── */
    .categories-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .categories-bar::-webkit-scrollbar { display: none; }
    .category-filter-btn { flex-shrink: 0; }

    /* ── Footer ── */
    .footer { padding: var(--space-2xl) 0 var(--space-xl); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

    /* ── Auth ── */
    .auth-page {
        padding: 80px var(--space-md) var(--space-xl);
        align-items: flex-start;
        min-height: 100svh;
    }

    .auth-card {
        padding: var(--space-xl) var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .auth-card h2 { font-size: 1.5rem; }

    /* ── Cart ── */
    .cart-sidebar { width: 100%; max-width: 100%; }
    .cart-sidebar-header { padding: var(--space-md) var(--space-lg); }

    /* ── Modals ── */
    .modal-backdrop { padding: var(--space-md); align-items: flex-end; }
    .modal {
        max-width: 100%;
        max-height: 95svh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .modal-footer { flex-direction: column; gap: var(--space-sm); }
    .modal-footer .btn { width: 100%; justify-content: center; }

    /* ── Promo banner ── */
    .promo-banner { flex-direction: column; text-align: center; padding: var(--space-xl); }
    .promo-banner h2 { font-size: 1.4rem; }
    .promo-banner .btn { width: 100%; }

    /* ── Step/Feature cards ── */
    .steps-grid { grid-template-columns: 1fr; }

    /* ── Trust grid ── */
    .trust-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md) var(--space-lg);
    }

    .trust-grid .trust-item { justify-content: center; }

    /* ── Container ── */
    .container, .container-sm, .container-lg { padding: 0 var(--space-md); }

    /* ── Dashboard ── */
    .dashboard-main { padding: var(--space-lg); }
    .stat-cards-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

    /* Disable hover transforms on touch to prevent sticky states */
    .product-card:hover { transform: none; box-shadow: var(--shadow-card); }
    .stat-card:hover    { transform: none; }
    .admin-stat-card:hover { transform: none; }
    .step-card:hover    { transform: none; }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
    :root {
        --space-xl:  20px;
        --space-2xl: 32px;
        --space-3xl: 44px;
        --space-4xl: 60px;
    }

    h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
    h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }

    .btn-xl { padding: 14px 28px; font-size: 0.93rem; }
    .btn-lg { padding: 13px 24px; font-size: 0.9rem; }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
        justify-items: center;
    }

    .stat-cards-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .auth-card { padding: var(--space-lg) var(--space-md); }

    .product-card-footer { flex-direction: column; align-items: stretch; }
    .product-buy-btn { width: 100%; }
    .product-buy-btn .btn { width: 100%; justify-content: center; }
}

/* ── Very Small (≤360px) ── */
@media (max-width: 360px) {
    :root { --space-md: 12px; }

    .stat-cards-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .btn { padding: 11px 18px; font-size: 0.86rem; }
    .nav-logo { font-size: 1rem; }
    .product-price { font-size: 1.1rem; }
}

/* ── Touch devices — remove hover transforms ── */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover   { transform: none; }
    .stat-card:hover      { transform: none; }
    .btn-primary:hover    { transform: none; }
    .btn-secondary:hover  { transform: none; }
    .step-card:hover      { transform: none; }
    .footer-col a:hover   { transform: none; }
    .social-link:hover    { transform: none; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   19. CUSTOM SCROLLBARS — Luxury Dark Treatment
   ───────────────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }

::-webkit-scrollbar-track { background: var(--bg-surface); }

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.50);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.25) var(--bg-surface);
}


/* ─────────────────────────────────────────────────────────────────────────────
   20. TELEGRAM SUPPORT FLOAT BUTTON
   Fixed floating button linking to @Saraa1823s
   ───────────────────────────────────────────────────────────────────────────── */
.telegram-float {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    z-index: calc(var(--z-overlay) + 5);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #229ED9, #0088CC);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow:
        0 6px 24px rgba(34, 158, 217, 0.50),
        0 0 0 1px rgba(34, 158, 217, 0.20),
        inset 0 1px 0 rgba(255,255,255,0.25);
    transition: all 0.35s var(--ease-bounce);
    cursor: pointer;
    animation: float-telegram 3s ease-in-out infinite;
}

@keyframes float-telegram {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.telegram-float:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow:
        0 12px 40px rgba(34, 158, 217, 0.70),
        0 0 0 2px rgba(34, 158, 217, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.30);
    animation-play-state: paused;
}

.telegram-float::after {
    content: 'Support';
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 16, 23, 0.90);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    letter-spacing: 0.03em;
}

.telegram-float:hover::after { opacity: 1; }

/* On desktop, position above cart area; on mobile, adjust for bottom nav */
@media (max-width: 768px) {
    .telegram-float {
        bottom: calc(72px + env(safe-area-inset-bottom, 8px));
        right: 16px;
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }

    .telegram-float::after { display: none; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   21. MISC UTILITIES — Preserved & Upgraded
   ───────────────────────────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.visible  { display: block !important; }
.pointer  { cursor: pointer; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-select { -webkit-user-select: none; user-select: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-xl) 0;
}

.accent-line {
    height: 2px;
    width: 40px;
    background: var(--accent-grad-primary);
    border-radius: var(--radius-pill);
    margin: var(--space-md) 0;
}

/* Flex utilities */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.grid { display: grid; }

/* Status colors preserved */
.wallet-amount-positive { color: var(--color-success); font-weight: 700; }
.wallet-amount-negative { color: var(--color-error);   font-weight: 700; }

/* OTP inputs */
.otp-digit {
    width: 56px;
    height: 64px;
    background: var(--bg-input-pit);
    border: 1px solid var(--glass-border);
    border-bottom: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: var(--transition-base);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.40);
}

.otp-digit:focus {
    border-color: rgba(139, 92, 246, 0.40);
    border-bottom-color: var(--accent-primary);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.50), 0 0 0 3px rgba(139,92,246,0.12);
}

.otp-digit.filled {
    border-bottom-color: rgba(139, 92, 246, 0.60);
}

/* Navigation body spacing — accounts for floating pill nav */
body:not(.admin-body) main,
body:not(.admin-body) > section:first-of-type {
    /* Floating nav sits at top:16px, height ~60px, so 80px clearance */
    /* But hero section handles its own padding-top */
}

/* Print */
@media print {
    .navbar, .footer, .cart-sidebar, .cart-overlay,
    .modal-backdrop, .toast-container, .hamburger,
    .mobile-bottom-nav, .telegram-float,
    .dash-mobile-toggle, .admin-sidebar {
        display: none !important;
    }
    body { background: #fff; color: #000; padding-bottom: 0; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   22. BUTTON RIPPLE EFFECT
   Used by main.js initRipple() — expands from click point.
   ───────────────────────────────────────────────────────────────────────────── */
.btn { overflow: hidden; }

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transform: scale(0);
    pointer-events: none;
    animation: ripple-expand 0.60s var(--ease-expo) forwards;
}

@keyframes ripple-expand {
    from { transform: scale(0); opacity: 0.50; }
    to   { transform: scale(1); opacity: 0; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   23. CHECKOUT PAGE — Luxury Card Overrides
   ───────────────────────────────────────────────────────────────────────────── */
.checkout-card {
    background: rgba(13, 16, 23, 0.70);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition-slow);
}

.checkout-card:hover {
    border-top-color: rgba(139, 92, 246, 0.20);
}

.payment-method-card {
    background: rgba(255, 255, 255, 0.03);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.payment-method-card:hover,
.payment-method-card.selected {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.28);
    border-top-color: rgba(139, 92, 246, 0.40);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.10);
}

.payment-method-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 14px;
    width: 22px;
    height: 22px;
    background: var(--accent-grad-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 12px var(--accent-glow);
}

.pay-btn {
    width: 100%;
    background: var(--accent-grad-primary);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-expo);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.40), inset 0 1px 1px rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.pay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.55), inset 0 1px 1px rgba(255,255,255,0.30);
}

.pay-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.30);
}

/* Summary card */
.summary-card {
    background: rgba(13, 16, 23, 0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top:    1px solid var(--glass-border-top);
    border-left:   1px solid var(--glass-border);
    border-right:  1px solid var(--glass-border-sm);
    border-bottom: 1px solid var(--glass-border-sm);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: sticky;
    top: 100px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   24. WALLET PAGE — Luxury UI
   ───────────────────────────────────────────────────────────────────────────── */
.wallet-balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: rgba(16, 216, 118, 0.10);
    border: 1px solid rgba(16, 216, 118, 0.25);
    color: var(--color-success);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 0 20px rgba(16, 216, 118, 0.12);
}

.wallet-balance-chip.zero {
    background: rgba(100, 116, 139, 0.10);
    color: var(--text-muted);
    border-color: rgba(100, 116, 139, 0.20);
    box-shadow: none;
}

.wallet-balance-chip.negative {
    background: rgba(255, 59, 92, 0.10);
    color: var(--color-error);
    border-color: rgba(255, 59, 92, 0.25);
    box-shadow: 0 0 20px rgba(255, 59, 92, 0.12);
}


/* ─────────────────────────────────────────────────────────────────────────────
   25. ADMIN TOPBAR
   ───────────────────────────────────────────────────────────────────────────── */
.admin-topbar {
    background: rgba(10, 12, 18, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--glass-border-top);
    box-shadow: 0 1px 20px rgba(0,0,0,0.40);
}

.admin-sidebar-logo {
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-lg) var(--space-md);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   26. ADMIN NAV ITEMS — Active State Glow
   ───────────────────────────────────────────────────────────────────────────── */
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 11px var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.admin-nav-item.active {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-primary);
    border-color: rgba(139, 92, 246, 0.20);
}

