/* ══════════════════════════════════════════════════════════════════
   NASA COMPUTERS — PREMIUM THEME ENGINE v2.0
   Modern Glassmorphism · Micro-Animations · Elegant Typography
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ── THEME TOKENS ─────────────────────────────────────────────── */

/* 🌑 Dark Cyberpunk (Default) */
:root, html[data-theme="dark-cyberpunk"] {
  --bg:            #030308;
  --surface:       #0b0c14;
  --surface-2:     #111220;
  --surface-hover: #161828;
  --accent:        #4f8fff;
  --accent-2:      #818cf8;
  --accent-glow:   rgba(79, 143, 255, 0.4);
  --accent-soft:   rgba(79, 143, 255, 0.12);
  --text-h:        #f0f4ff;
  --text-b:        #c8d4e8;
  --text-s:        #6b7f9e;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(79,143,255,0.4);
  --glass:         rgba(11,12,20,0.7);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.8);
  --shadow-accent: 0 8px 32px rgba(79,143,255,0.25);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,143,255,0.18) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* ☀️ Clean Light Modern */
html[data-theme="clean-light"] {
  --bg:            #f0f4f8;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --surface-hover: #eef2f7;
  --accent:        #2563eb;
  --accent-2:      #6366f1;
  --accent-glow:   rgba(37,99,235,0.3);
  --accent-soft:   rgba(37,99,235,0.08);
  --text-h:        #0f172a;
  --text-b:        #334155;
  --text-s:        #64748b;
  --border:        rgba(15,23,42,0.09);
  --border-hover:  rgba(37,99,235,0.4);
  --glass:         rgba(255,255,255,0.85);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(15,23,42,0.08);
  --shadow-md:     0 8px 32px rgba(15,23,42,0.12);
  --shadow-lg:     0 20px 60px rgba(15,23,42,0.16);
  --shadow-accent: 0 8px 32px rgba(37,99,235,0.2);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.1) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.7) 100%);
  --img-bg:        #f1f5f9;
}

/* 🌸 Midnight Neon (Pink/Purple) */
html[data-theme="midnight-neon"] {
  --bg:            #06040e;
  --surface:       #0e0a1c;
  --surface-2:     #140f24;
  --surface-hover: #1a132e;
  --accent:        #e879f9;
  --accent-2:      #a855f7;
  --accent-glow:   rgba(232,121,249,0.4);
  --accent-soft:   rgba(232,121,249,0.1);
  --text-h:        #fdf4ff;
  --text-b:        #e9d5ff;
  --text-s:        #7c6d8e;
  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(232,121,249,0.5);
  --glass:         rgba(14,10,28,0.75);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(232,121,249,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,121,249,0.2) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(232,121,249,0.05) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🌿 Emerald Obsidian */
html[data-theme="emerald-obsidian"] {
  --bg:            #020d09;
  --surface:       #061410;
  --surface-2:     #0a1f17;
  --surface-hover: #0f2a20;
  --accent:        #10b981;
  --accent-2:      #34d399;
  --accent-glow:   rgba(16,185,129,0.4);
  --accent-soft:   rgba(16,185,129,0.1);
  --text-h:        #ecfdf5;
  --text-b:        #a7f3d0;
  --text-s:        #4b7a62;
  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(16,185,129,0.45);
  --glass:         rgba(6,20,16,0.75);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(16,185,129,0.25);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16,185,129,0.2) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🌅 Sunset Amber */
html[data-theme="sunset-amber"] {
  --bg:            #0c0700;
  --surface:       #150e00;
  --surface-2:     #1d1400;
  --surface-hover: #261b00;
  --accent:        #f59e0b;
  --accent-2:      #fbbf24;
  --accent-glow:   rgba(245,158,11,0.45);
  --accent-soft:   rgba(245,158,11,0.1);
  --text-h:        #fffbeb;
  --text-b:        #fde68a;
  --text-s:        #7a6420;
  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(245,158,11,0.5);
  --glass:         rgba(21,14,0,0.75);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(245,158,11,0.25);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,158,11,0.2) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🌌 Deep Indigo Void (Royal Night) */
html[data-theme="deep-indigo"] {
  --bg:            #050814;
  --surface:       #0a0f26;
  --surface-2:     #11183c;
  --surface-hover: #182252;
  --accent:        #6366f1;
  --accent-2:      #06b6d4;
  --accent-glow:   rgba(99,102,241,0.45);
  --accent-soft:   rgba(99,102,241,0.12);
  --text-h:        #f0f4ff;
  --text-b:        #c7d2fe;
  --text-s:        #6366f1;
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(99,102,241,0.5);
  --glass:         rgba(10,15,38,0.75);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(99,102,241,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.22) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🔮 Synthwave Cyber-Neon (Vibrant Purple/Rose) */
html[data-theme="neon-synthwave"] {
  --bg:            #070210;
  --surface:       #120624;
  --surface-2:     #1d0a3a;
  --surface-hover: #290e50;
  --accent:        #8b5cf6;
  --accent-2:      #f43f5e;
  --accent-glow:   rgba(139,92,246,0.5);
  --accent-soft:   rgba(139,92,246,0.12);
  --text-h:        #faf5ff;
  --text-b:        #ddd6fe;
  --text-s:        #a78bfa;
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(139,92,246,0.55);
  --glass:         rgba(18,6,36,0.75);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(139,92,246,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139,92,246,0.22) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 💎 Corporate Slate (Sober & Decent) */
html[data-theme="corporate-slate"] {
  --bg:            #0f172a;
  --surface:       #1e293b;
  --surface-2:     #334155;
  --surface-hover: #475569;
  --accent:        #38bdf8;
  --accent-2:      #818cf8;
  --accent-glow:   rgba(56,189,248,0.4);
  --accent-soft:   rgba(56,189,248,0.1);
  --text-h:        #f8fafc;
  --text-b:        #cbd5e1;
  --text-s:        #94a3b8;
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(56,189,248,0.45);
  --glass:         rgba(30,41,59,0.8);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.8);
  --shadow-accent: 0 8px 32px rgba(56,189,248,0.25);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56,189,248,0.15) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🩸 Crimson Dark (Red Dragon Gaming) */
html[data-theme="crimson-dark"] {
  --bg:            #0b0304;
  --surface:       #180608;
  --surface-2:     #260a0e;
  --surface-hover: #360e14;
  --accent:        #f43f5e;
  --accent-2:      #fb7185;
  --accent-glow:   rgba(244,63,94,0.45);
  --accent-soft:   rgba(244,63,94,0.1);
  --text-h:        #fff1f2;
  --text-b:        #fecdd3;
  --text-s:        #fda4af;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(244,63,94,0.5);
  --glass:         rgba(24,6,8,0.78);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(244,63,94,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(244,63,94,0.2) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(244,63,94,0.06) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🏛️ Minimalist Platinum & Gold (Luxury Light) */
html[data-theme="minimalist-platinum"] {
  --bg:            #f8fafc;
  --surface:       #ffffff;
  --surface-2:     #f1f5f9;
  --surface-hover: #e2e8f0;
  --accent:        #d97706;
  --accent-2:      #0284c7;
  --accent-glow:   rgba(217,119,6,0.35);
  --accent-soft:   rgba(217,119,6,0.08);
  --text-h:        #0f172a;
  --text-b:        #334155;
  --text-s:        #64748b;
  --border:        rgba(15,23,42,0.1);
  --border-hover:  rgba(217,119,6,0.45);
  --glass:         rgba(255,255,255,0.88);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(15,23,42,0.06);
  --shadow-md:     0 8px 32px rgba(15,23,42,0.1);
  --shadow-lg:     0 20px 60px rgba(15,23,42,0.14);
  --shadow-accent: 0 8px 32px rgba(217,119,6,0.2);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(217,119,6,0.1) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(241,245,249,0.8) 100%);
  --img-bg:        #f1f5f9;
}

/* 🌌 Sapphire Navy & Coral Sunset */
html[data-theme="sapphire-navy"] {
  --bg:            #061325;
  --surface:       #0d2340;
  --surface-2:     #14325a;
  --surface-hover: #1c4275;
  --accent:        #ff6b6b;
  --accent-2:      #38bdf8;
  --accent-glow:   rgba(255,107,107,0.45);
  --accent-soft:   rgba(255,107,107,0.12);
  --text-h:        #f0f9ff;
  --text-b:        #bae6fd;
  --text-s:        #38bdf8;
  --border:        rgba(56,189,248,0.15);
  --border-hover:  rgba(255,107,107,0.55);
  --glass:         rgba(13,35,64,0.8);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(255,107,107,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,107,107,0.22) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(56,189,248,0.08) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🔮 Amethyst & Royal Magenta */
html[data-theme="amethyst-royal"] {
  --bg:            #160826;
  --surface:       #25103e;
  --surface-2:     #351757;
  --surface-hover: #472073;
  --accent:        #f43f5e;
  --accent-2:      #a855f7;
  --accent-glow:   rgba(244,63,94,0.48);
  --accent-soft:   rgba(244,63,94,0.12);
  --text-h:        #faf5ff;
  --text-b:        #e9d5ff;
  --text-s:        #c084fc;
  --border:        rgba(168,85,247,0.2);
  --border-hover:  rgba(244,63,94,0.6);
  --glass:         rgba(37,16,62,0.8);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(244,63,94,0.32);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(244,63,94,0.25) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(168,85,247,0.1) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🌿 Royal Emerald & Champagne Gold */
html[data-theme="emerald-gold"] {
  --bg:            #041a12;
  --surface:       #0b2e20;
  --surface-2:     #124430;
  --surface-hover: #1b5b42;
  --accent:        #f59e0b;
  --accent-2:      #10b981;
  --accent-glow:   rgba(245,158,11,0.48);
  --accent-soft:   rgba(245,158,11,0.12);
  --text-h:        #f0fdf4;
  --text-b:        #bbf7d0;
  --text-s:        #34d399;
  --border:        rgba(16,185,129,0.2);
  --border-hover:  rgba(245,158,11,0.6);
  --glass:         rgba(11,46,32,0.8);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(245,158,11,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,158,11,0.22) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* ⚡ Titanium Steel & Electric Cyan */
html[data-theme="titanium-cyan"] {
  --bg:            #111827;
  --surface:       #1e293b;
  --surface-2:     #334155;
  --surface-hover: #475569;
  --accent:        #06b6d4;
  --accent-2:      #84cc16;
  --accent-glow:   rgba(6,182,212,0.45);
  --accent-soft:   rgba(6,182,212,0.12);
  --text-h:        #f8fafc;
  --text-b:        #c8d4e8;
  --text-s:        #38bdf8;
  --border:        rgba(6,182,212,0.2);
  --border-hover:  rgba(6,182,212,0.6);
  --glass:         rgba(30,41,59,0.82);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.8);
  --shadow-accent: 0 8px 32px rgba(6,182,212,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(6,182,212,0.22) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(6,182,212,0.08) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🏆 Midnight Bronze & Amber Glow */
html[data-theme="bronze-amber"] {
  --bg:            #1a0f08;
  --surface:       #2c1a0e;
  --surface-2:     #3e2615;
  --surface-hover: #52331d;
  --accent:        #eab308;
  --accent-2:      #f97316;
  --accent-glow:   rgba(234,179,8,0.48);
  --accent-soft:   rgba(234,179,8,0.12);
  --text-h:        #fefce8;
  --text-b:        #fef08a;
  --text-s:        #fbbf24;
  --border:        rgba(234,179,8,0.2);
  --border-hover:  rgba(234,179,8,0.6);
  --glass:         rgba(44,26,14,0.8);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(234,179,8,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(234,179,8,0.22) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(234,179,8,0.08) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* ❄️ Frost Cyan & Glacier Blue */
html[data-theme="frost-cyan"] {
  --bg:            #081726;
  --surface:       #112940;
  --surface-2:     #1a3b5c;
  --surface-hover: #244f7b;
  --accent:        #22d3ee;
  --accent-2:      #38bdf8;
  --accent-glow:   rgba(34,211,238,0.48);
  --accent-soft:   rgba(34,211,238,0.12);
  --text-h:        #ecfeff;
  --text-b:        #cffafe;
  --text-s:        #67e8f9;
  --border:        rgba(34,211,238,0.2);
  --border-hover:  rgba(34,211,238,0.6);
  --glass:         rgba(17,41,64,0.8);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(34,211,238,0.3);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(34,211,238,0.22) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(34,211,238,0.08) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🍋 Solar Yellow & Electric Blue Light */
html[data-theme="solar-yellow-blue"] {
  --bg:            #fefce8;
  --surface:       #ffffff;
  --surface-2:     #fef9c3;
  --surface-hover: #fef08a;
  --accent:        #eab308;
  --accent-2:      #2563eb;
  --accent-glow:   rgba(234,179,8,0.45);
  --accent-soft:   rgba(234,179,8,0.12);
  --text-h:        #0f172a;
  --text-b:        #1e293b;
  --text-s:        #2563eb;
  --border:        rgba(234,179,8,0.25);
  --border-hover:  rgba(37,99,235,0.5);
  --glass:         rgba(255,255,255,0.92);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(234,179,8,0.1);
  --shadow-md:     0 8px 32px rgba(234,179,8,0.15);
  --shadow-lg:     0 20px 60px rgba(15,23,42,0.12);
  --shadow-accent: 0 8px 32px rgba(234,179,8,0.25);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(234,179,8,0.2) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(254,249,195,0.6) 100%);
  --img-bg:        #fef9c3;
}

/* 🍊 Royal Ultramarine & Tangerine Orange */
html[data-theme="royal-blue-orange"] {
  --bg:            #031b4e;
  --surface:       #0b296b;
  --surface-2:     #133887;
  --surface-hover: #1c47a4;
  --accent:        #ff6b00;
  --accent-2:      #ffb703;
  --accent-glow:   rgba(255,107,0,0.5);
  --accent-soft:   rgba(255,107,0,0.15);
  --text-h:        #ffffff;
  --text-b:        #dbeafe;
  --text-s:        #ffb703;
  --border:        rgba(255,107,0,0.25);
  --border-hover:  rgba(255,107,0,0.6);
  --glass:         rgba(11,41,107,0.82);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(255,107,0,0.35);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,107,0,0.28) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,107,0,0.08) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🌸 Peach Blossom & Sunset Rose Light */
html[data-theme="peach-sunset"] {
  --bg:            #fff5f2;
  --surface:       #ffffff;
  --surface-2:     #ffe4de;
  --surface-hover: #ffd3c9;
  --accent:        #f43f5e;
  --accent-2:      #ff8c42;
  --accent-glow:   rgba(244,63,94,0.38);
  --accent-soft:   rgba(244,63,94,0.1);
  --text-h:        #2d151e;
  --text-b:        #4c2432;
  --text-s:        #f43f5e;
  --border:        rgba(244,63,94,0.18);
  --border-hover:  rgba(244,63,94,0.45);
  --glass:         rgba(255,255,255,0.9);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(244,63,94,0.08);
  --shadow-md:     0 8px 32px rgba(244,63,94,0.12);
  --shadow-lg:     0 20px 60px rgba(45,21,30,0.12);
  --shadow-accent: 0 8px 32px rgba(244,63,94,0.22);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(244,63,94,0.15) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,228,222,0.6) 100%);
  --img-bg:        #ffe4de;
}

/* 🪻 Soft Lavender & Mint Green Light */
html[data-theme="lavender-mint"] {
  --bg:            #f5f3ff;
  --surface:       #ffffff;
  --surface-2:     #ede9fe;
  --surface-hover: #ddd6fe;
  --accent:        #7c3aed;
  --accent-2:      #10b981;
  --accent-glow:   rgba(124,58,237,0.38);
  --accent-soft:   rgba(124,58,237,0.08);
  --text-h:        #1e1b4b;
  --text-b:        #3730a3;
  --text-s:        #7c3aed;
  --border:        rgba(124,58,237,0.18);
  --border-hover:  rgba(16,185,129,0.45);
  --glass:         rgba(255,255,255,0.9);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(124,58,237,0.08);
  --shadow-md:     0 8px 32px rgba(124,58,237,0.12);
  --shadow-lg:     0 20px 60px rgba(30,27,75,0.12);
  --shadow-accent: 0 8px 32px rgba(124,58,237,0.2);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.15) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(237,233,254,0.6) 100%);
  --img-bg:        #ede9fe;
}

/* 🌊 Nordic Glacier & Sky Turquoise Light */
html[data-theme="glacier-teal"] {
  --bg:            #ecfeff;
  --surface:       #ffffff;
  --surface-2:     #cffafe;
  --surface-hover: #a5f3fc;
  --accent:        #0891b2;
  --accent-2:      #1d4ed8;
  --accent-glow:   rgba(8,145,178,0.38);
  --accent-soft:   rgba(8,145,178,0.08);
  --text-h:        #0f172a;
  --text-b:        #164e63;
  --text-s:        #0891b2;
  --border:        rgba(8,145,178,0.18);
  --border-hover:  rgba(29,78,216,0.45);
  --glass:         rgba(255,255,255,0.9);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(8,145,178,0.08);
  --shadow-md:     0 8px 32px rgba(8,145,178,0.12);
  --shadow-lg:     0 20px 60px rgba(15,23,42,0.12);
  --shadow-accent: 0 8px 32px rgba(8,145,178,0.2);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(8,145,178,0.15) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(207,250,254,0.6) 100%);
  --img-bg:        #cffafe;
}

/* 🍵 Sage Green & Warm Cream Light */
html[data-theme="sage-charcoal"] {
  --bg:            #f0fdf4;
  --surface:       #ffffff;
  --surface-2:     #dcfce7;
  --surface-hover: #bbf7d0;
  --accent:        #15803d;
  --accent-2:      #d97706;
  --accent-glow:   rgba(21,128,61,0.38);
  --accent-soft:   rgba(21,128,61,0.08);
  --text-h:        #14532d;
  --text-b:        #166534;
  --text-s:        #15803d;
  --border:        rgba(21,128,61,0.18);
  --border-hover:  rgba(217,119,6,0.45);
  --glass:         rgba(255,255,255,0.9);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(21,128,61,0.08);
  --shadow-md:     0 8px 32px rgba(21,128,61,0.12);
  --shadow-lg:     0 20px 60px rgba(20,83,45,0.12);
  --shadow-accent: 0 8px 32px rgba(21,128,61,0.2);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(21,128,61,0.15) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(220,252,231,0.6) 100%);
  --img-bg:        #dcfce7;
}

/* 🥭 Mango Yellow & Deep Sapphire Light */
html[data-theme="mango-amber"] {
  --bg:            #fffbeb;
  --surface:       #ffffff;
  --surface-2:     #fef3c7;
  --surface-hover: #fde68a;
  --accent:        #f59e0b;
  --accent-2:      #1e40af;
  --accent-glow:   rgba(245,158,11,0.42);
  --accent-soft:   rgba(245,158,11,0.1);
  --text-h:        #1e1b4b;
  --text-b:        #3730a3;
  --text-s:        #d97706;
  --border:        rgba(245,158,11,0.22);
  --border-hover:  rgba(30,64,175,0.5);
  --glass:         rgba(255,255,255,0.92);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(245,158,11,0.08);
  --shadow-md:     0 8px 32px rgba(245,158,11,0.12);
  --shadow-lg:     0 20px 60px rgba(30,27,75,0.12);
  --shadow-accent: 0 8px 32px rgba(245,158,11,0.25);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         none;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,158,11,0.2) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(254,243,199,0.6) 100%);
  --img-bg:        #fef3c7;
}

/* 🌌 Cyberpunk Cyan & Hot Coral Dark-Color Hybrid */
html[data-theme="neon-cyber-cyan"] {
  --bg:            #021e2b;
  --surface:       #073347;
  --surface-2:     #0c4964;
  --surface-hover: #126184;
  --accent:        #00f0ff;
  --accent-2:      #ff3366;
  --accent-glow:   rgba(0,240,255,0.5);
  --accent-soft:   rgba(0,240,255,0.14);
  --text-h:        #e0f7fa;
  --text-b:        #b2ebf2;
  --text-s:        #ff3366;
  --border:        rgba(0,240,255,0.22);
  --border-hover:  rgba(255,51,102,0.6);
  --glass:         rgba(7,51,71,0.82);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.9);
  --shadow-accent: 0 8px 32px rgba(0,240,255,0.35);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,240,255,0.25) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(0,240,255,0.1) 0%, transparent 60%);
  --img-bg:        #ffffff;
}

/* 🇵🇰 14th August Pakistan Independence Special Theme (Dark Glassy Emerald & Flashing Celebrations) */
html[data-theme="pakistan-independence"] {
  --bg:            #00220f;
  --surface:       rgba(0, 48, 22, 0.85);
  --surface-2:     rgba(0, 72, 34, 0.9);
  --surface-hover: #005a2b;
  --accent:        #ffffff;
  --accent-2:      #ffd700;
  --accent-glow:   rgba(255,215,0,0.75);
  --accent-soft:   rgba(255,255,255,0.22);
  --text-h:        #ffffff;
  --text-b:        #f0fdf4;
  --text-s:        #ffd700;
  --border:        rgba(255,255,255,0.38);
  --border-hover:  #ffd700;
  --glass:         rgba(0, 48, 22, 0.88);
  --glass-blur:    blur(24px);
  --shadow-sm:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.8);
  --shadow-accent: 0 8px 32px rgba(255,215,0,0.45);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --transition:    all 0.35s var(--ease);
  --transition-fast: all 0.18s var(--ease);
  --noise:         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --gradient-hero: radial-gradient(circle at 50% -10%, rgba(255,215,0,0.35) 0%, rgba(0,72,34,0.7) 50%, transparent 85%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(0,90,43,0.5) 100%);
  --img-bg:        #ffffff;
}

/* 🇵🇰 14th August Navbar & Page Adjustment */
html[data-theme="pakistan-independence"] body {
  padding-top: 116px !important;
}

html[data-theme="pakistan-independence"] .navbar {
  top: 44px !important;
  border-top: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 25px rgba(0,34,15,0.6);
}

/* 🇵🇰 14th August Festive Bunting Ribbon Banner Styling with Flashing Celebration Glow */
.pakistan-festive-ribbon {
  display: none;
}

html[data-theme="pakistan-independence"] .pakistan-festive-ribbon {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 44px;
  z-index: 1001;
  background: linear-gradient(90deg, #002e14 0%, #005a29 35%, #ffffff 50%, #005a29 65%, #002e14 100%);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 0.95rem;
  border-bottom: 2px solid #ffd700;
  animation: azadiFlash 2s infinite alternate;
}

html[data-theme="pakistan-independence"] .festive-flag-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
}

html[data-theme="pakistan-independence"] .festive-title {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  letter-spacing: 0.6px;
}

html[data-theme="pakistan-independence"] .festive-title i {
  animation: starFlash 1.2s infinite alternate;
}

html[data-theme="pakistan-independence"] .pakistan-festive-badge {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.45) 0%, rgba(245, 158, 11, 0.55) 100%);
  border: 1.5px solid #ffd700;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  animation: azadiFlash 1.5s infinite alternate;
}

.real-pakistan-flag {
  width: 32px;
  height: 21px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 8px rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.5);
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

.waving-flag {
  animation: flagWave 2s ease-in-out infinite alternate;
}

@keyframes flagWave {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(3deg); }
  100% { transform: translateY(1px) rotate(-3deg); }
}

@keyframes azadiFlash {
  0% {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4), 0 0 25px rgba(0, 255, 120, 0.3);
    border-color: #ffd700;
  }
  100% {
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.95), 0 0 45px rgba(0, 255, 150, 0.8);
    border-color: #ffffff;
  }
}

@keyframes starFlash {
  0% { opacity: 0.6; transform: scale(1); filter: drop-shadow(0 0 2px #ffd700); }
  100% { opacity: 1; transform: scale(1.35); filter: drop-shadow(0 0 12px #ffffff); }
}

/* 📱 14th August Mobile Display Optimizations */
@media (max-width: 768px) {
  html[data-theme="pakistan-independence"] body {
    padding-top: 100px !important;
  }

  html[data-theme="pakistan-independence"] .navbar {
    top: 36px !important;
    height: 64px !important;
  }

  html[data-theme="pakistan-independence"] .pakistan-festive-ribbon {
    height: 36px !important;
    gap: 6px !important;
    padding: 0 8px !important;
    font-size: 0.78rem !important;
  }

  html[data-theme="pakistan-independence"] .festive-title {
    font-size: 0.76rem !important;
    letter-spacing: 0px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html[data-theme="pakistan-independence"] .pakistan-festive-badge {
    display: none !important;
  }

  html[data-theme="pakistan-independence"] .real-pakistan-flag {
    width: 24px !important;
    height: 16px !important;
  }

  html[data-theme="pakistan-independence"] .nav-links {
    top: 100px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface);
  -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  border: 2px solid var(--surface);
}
::-webkit-scrollbar-thumb:hover { opacity: 0.8; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: var(--gradient-hero), var(--noise);
  background-attachment: fixed;
  color: var(--text-b);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* subtle logo watermark */
body::before {
  content: '';
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 65vw; height: 65vh;
  background-image: url('/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

main { flex: 1; position: relative; z-index: 1; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-h);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Layout */
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   GLASSMORPHISM SURFACE
   ══════════════════════════════════════════════════════════════════ */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-hover);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text-h);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  color: var(--text-s);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-h);
  background: var(--accent-soft);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Search Bar in Nav */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.nav-search:focus-within {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-b);
  font-size: 0.875rem;
  width: 180px;
}

.nav-search input::placeholder { color: var(--text-s); }

.nav-search i { color: var(--text-s); font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-b);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--text-h);
  background: var(--accent-soft);
}

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-s);
}

.btn-icon:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════ */
.hero {
  padding: 170px 0 100px;
  text-align: center;
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* animated orb */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateX(-50%) translateY(0px); opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(-30px); opacity: 1; }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-h) 30%, var(--text-s) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-s);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.35rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  flex-shrink: 0;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.85;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.section-link:hover {
  opacity: 1;
  gap: 0.55rem;
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  padding: 0.5rem 0 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 100%;
  transition: var(--transition);
  cursor: pointer;
}

/* gradient shimmer overlay */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-hover), var(--shadow-accent);
}

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

/* ── Product Image ── */
.product-image-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--img-bg);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

html[data-theme="clean-light"] .product-image-wrap {
  background: #f8fafc;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.55s var(--ease);
  position: relative;
  z-index: 2;
}

.product-card:hover .product-image {
  transform: scale(1.08) translateY(-4px);
}

/* Stock badge on image */
.product-image-wrap .stock-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
}

/* ── Product Info ── */
.product-info {
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-b);
  line-height: 1.45;
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: var(--transition-fast);
}

.product-card:hover .product-name {
  color: var(--text-h);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 0.5rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-price-original {
  font-size: 0.75rem;
  color: var(--text-s);
  text-decoration: line-through;
  display: block;
  margin-bottom: 2px;
}

.product-price-note {
  font-size: 0.62rem;
  color: var(--accent);
  margin-top: 3px;
  line-height: 1.3;
  opacity: 0.8;
}

.product-footer .btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ── Slider (Horizontal Scroll) ── */
.slider-section {
  margin-bottom: 3rem;
}

.slider-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.slider-container::-webkit-scrollbar { height: 4px; }
.slider-container::-webkit-scrollbar-track { background: transparent; }
.slider-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.slider-container .product-card {
  min-width: 215px;
  max-width: 215px;
  scroll-snap-align: start;
}

/* ══════════════════════════════════════════════════════════════════
   STOCK BADGES
   ══════════════════════════════════════════════════════════════════ */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.stock-in {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.25);
}

.stock-out {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

.stock-low {
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.25);
}

/* ══════════════════════════════════════════════════════════════════
   CATEGORY SLIDER (Featured Shop By Category - Single Row)
   ══════════════════════════════════════════════════════════════════ */
.featured-cat-section {
  margin: 2.5rem 0;
  position: relative;
}

.featured-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.featured-cat-header-title {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-h);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.featured-cat-header-sub {
  font-size: 0.8rem;
  color: var(--text-s);
  margin-top: 0.2rem;
}

.featured-cat-scroll-wrap {
  position: relative;
  width: 100%;
}

.featured-cat-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 0.85rem;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: none;
  width: 100%;
}
.featured-cat-grid::-webkit-scrollbar {
  display: none;
}

.featured-cat-link {
  flex: 0 0 145px !important;
  width: 145px !important;
  min-width: 145px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem;
  padding: 1.2rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
  color: var(--text-b);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  user-select: none;
}

.featured-cat-link:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-accent);
  color: var(--text-h);
}

.featured-cat-link .cat-icon {
  font-size: 1.85rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}

.featured-cat-link:hover .cat-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.featured-cat-link .cat-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.featured-cat-link .cat-count-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-s);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 999px;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════
   BANNER / HERO CAROUSEL
   ══════════════════════════════════════════════════════════════════ */
.banner-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 2;
}

.banner-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3.5rem;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}

.banner-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.banner-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
  max-width: 400px;
  line-height: 1.6;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  transition: var(--transition);
  width: fit-content;
}

.banner-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateX(4px);
  box-shadow: var(--shadow-accent);
}

.banner-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 3.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.banner-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.banner-dot.active {
  width: 24px;
  background: #fff;
}

/* ══════════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════════ */
.stats-section {
  padding: 3rem 0;
  margin: 1rem 0 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-val {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-h);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-s);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

/* ══════════════════════════════════════════════════════════════════
   WHY US SECTION
   ══════════════════════════════════════════════════════════════════ */
.why-us-section {
  padding: 5rem 0;
  position: relative;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.why-us-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-us-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.why-us-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-accent);
}

.why-us-card:hover::after { transform: scaleX(1); }

.why-us-icon {
  width: 52px; height: 52px;
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.why-us-card:hover .why-us-icon {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.why-us-card:hover .why-us-icon i {
  color: #fff !important;
}

.why-us-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 0.5rem;
}

.why-us-desc {
  font-size: 0.875rem;
  color: var(--text-s);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.35rem; }

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-s);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-b);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.form-control::placeholder { color: var(--text-s); }

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ══════════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; border-radius: var(--radius-md); }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-s);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-b);
  vertical-align: middle;
  transition: var(--transition-fast);
}

.table tr:hover td { background: var(--surface-hover); }
.table tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════════════ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 256px;
  min-width: 256px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-logo {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-sidebar-logo img {
  height: 32px;
  border-radius: 6px;
}

.admin-sidebar-logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-h);
}

.admin-sidebar-logo-sub {
  font-size: 0.65rem;
  color: var(--text-s);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.admin-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-nav-section {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-s);
  padding: 1rem 0.5rem 0.35rem;
}

.admin-nav-item {
  padding: 0.65rem 0.875rem;
  color: var(--text-s);
  transition: var(--transition-fast);
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.admin-nav-item:hover {
  background: var(--surface-hover);
  color: var(--text-h);
}

.admin-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.admin-nav-item i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.admin-content {
  flex: 1;
  padding: 2rem 2.5rem;
  min-width: 0;
}

.admin-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.03em;
}

.admin-header p {
  color: var(--text-s);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Admin Cards */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-s);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stat Cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--border-hover); }
.stat-card:hover::before { opacity: 1; }

.stat-card-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-s);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-h);
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════
   BADGES & PILLS
   ══════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-danger  { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-warning { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.badge-info    { background: var(--accent-soft);    color: var(--accent); border: 1px solid var(--border-hover); }

/* ══════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-b);
  font-weight: 500;
  font-size: 0.9rem;
  transform: translateY(120px) scale(0.95);
  opacity: 0;
  transition: all 0.4s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.toast.success { border-left: 3px solid #34d399; }
.toast.success .toast-icon { background: rgba(16,185,129,0.15); color: #34d399; }
.toast.error   { border-left: 3px solid #f87171; }
.toast.error   .toast-icon { background: rgba(239,68,68,0.15); color: #f87171; }
.toast.info    { border-left: 3px solid var(--accent); }
.toast.info    .toast-icon { background: var(--accent-soft); color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-b);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 300px;
}

.footer-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-h);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-b);
  font-size: 0.875rem;
  padding: 0.35rem 0;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent);
  padding-left: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--text-b);
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-s); }
.text-accent  { color: var(--accent); }
.text-h       { color: var(--text-h); }
.text-body    { color: var(--text-b); }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Loading Skeleton */
@keyframes skeleton-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

@media (max-width: 768px) {
  .navbar { height: 64px; }

  .nav-links { display: none; }
  .nav-search { display: none; }

  .hero {
    padding: 120px 0 70px;
    min-height: auto;
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero p { font-size: 1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    min-width: unset;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
    scrollbar-width: none;
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav-section { display: none; }
  .admin-nav-item {
    padding: 0.5rem 0.875rem;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    flex-direction: row;
  }
  .admin-content { padding: 1.5rem 1rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .product-image-wrap { height: 150px; padding: 0.5rem; }
  .product-info { padding: 0.75rem; }
  .product-name { 
    font-size: 0.825rem; 
    line-height: 1.3; 
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
  }
  .product-price { font-size: 0.95rem; }
  .product-footer { flex-direction: row; justify-content: space-between; align-items: center; gap: 0.4rem; }
  .product-footer .btn-whatsapp-order { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }

  .pdp-layout { flex-direction: column !important; gap: 1.5rem !important; }
  .pdp-gallery { max-width: 100% !important; width: 100% !important; }
  .pdp-info { width: 100% !important; }

  .banner-content { padding: 0 1.75rem; }
  .banner-dots { left: 1.75rem; }
  .banner-title { font-size: clamp(1.25rem, 5vw, 2rem); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-val { font-size: 1.75rem; }

  .featured-cat-grid { 
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.75rem; 
  }
  .featured-cat-link { 
    flex: 0 0 135px !important;
    width: 135px !important;
    min-width: 135px !important;
    padding: 1rem 0.5rem; 
  }

  .table th, .table td { padding: 0.75rem 0.625rem; font-size: 0.825rem; }
}

/* ── Category Quick-Scroll Pills Strip (Single Line with Navigation) ── */
.mobile-cat-strip {
  margin: 1.25rem 0 0.5rem;
  position: relative;
  width: 100%;
}

.cat-pill-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.45rem;
}

.cat-pill-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.4rem 0.2rem 0.65rem;
  scrollbar-width: none;
  width: 100%;
  flex: 1;
}

.cat-pill-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.95rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-b);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: max-content;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  user-select: none;
}

.cat-pill-item:hover, .cat-pill-item.active {
  background: rgba(37,99,235,0.18);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.cat-pill-icon {
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.cat-pill-name {
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-pill-badge {
  background: rgba(37,99,235,0.22);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(37,99,235,0.3);
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
}

/* Scroll Buttons for Pill Nav */
.pill-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  font-size: 0.75rem;
}
.pill-nav-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: scale(1.05);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }

  .hero { padding: 100px 0 45px; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { font-size: 0.85rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; justify-content: center; }

  .hero-wrapper { padding: 0 0.75rem; margin: 1rem auto; gap: 1rem; }
  .banner-container { height: 380px; min-height: 380px; border-radius: var(--radius-md); }

  .product-grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 0.6rem; 
    padding: 0.25rem 0 1.25rem;
  }
  .product-card { border-radius: var(--radius-md); }
  .product-image-wrap { height: 135px; padding: 0.45rem; }
  .product-info { padding: 0.55rem 0.6rem; }
  .product-category { font-size: 0.68rem; margin-bottom: 2px; display: block; }
  .product-name { 
    font-size: 0.76rem; 
    line-height: 1.25; 
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5em;
  }
  .product-price { font-size: 0.9rem; font-weight: 800; }
  .product-footer { 
    flex-direction: row; 
    justify-content: space-between; 
    align-items: center; 
    gap: 0.3rem; 
  }
  .product-footer .btn-whatsapp-order { 
    width: 32px; 
    height: 32px; 
    font-size: 0.9rem; 
    padding: 0; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 6px; 
    flex-shrink: 0; 
  }

  .slider-section { margin-bottom: 2rem; }
  .slider-header { margin-bottom: 0.75rem; }
  .slider-title { font-size: 1.1rem; }
  .slider-container { gap: 0.6rem; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .slider-container .product-card { min-width: 155px; max-width: 155px; }

  .featured-cat-grid { 
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.6rem; 
    padding: 0.35rem 0.15rem 0.85rem;
  }
  .featured-cat-link { 
    flex: 0 0 120px !important;
    width: 120px !important;
    min-width: 120px !important;
    padding: 0.9rem 0.4rem; 
    border-radius: var(--radius-md); 
  }
  .featured-cat-link .cat-icon { font-size: 1.5rem; height: 32px; }
  .featured-cat-link .cat-name { font-size: 0.72rem; }
  .featured-cat-link .cat-count-tag { font-size: 0.62rem; padding: 1px 5px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-val { font-size: 1.5rem; }
  .stat-lbl { font-size: 0.7rem; }
  .stats-section { border-radius: var(--radius-md); padding: 1.25rem 0.5rem; }

  footer { padding: 2.5rem 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand p { max-width: 100%; font-size: 0.85rem; }

  .admin-content { padding: 1rem 0.6rem; }
  .admin-nav-item { font-size: 0.78rem; padding: 0.45rem 0.75rem; }

  .banner-content { padding: 0 1rem; justify-content: flex-end; padding-bottom: 3rem; }
  .banner-tag { font-size: 0.68rem; padding: 0.25rem 0.6rem; }
  .banner-dots { left: 50%; transform: translateX(-50%); bottom: 0.75rem; }
  .banner-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  }
  .banner-title { font-size: 1.35rem; line-height: 1.2; }
  .banner-desc { 
    font-size: 0.78rem; 
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    margin-bottom: 0.75rem; 
  }
  .banner-btn { font-size: 0.78rem; padding: 0.5rem 1rem; }

  .form-control { padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.85rem; }

  .why-us-card { padding: 1.25rem 1rem; }
  .why-us-title { font-size: 0.95rem; }

  .toast { bottom: 1rem; right: 0.75rem; left: 0.75rem; min-width: unset; }
}

@media (max-width: 360px) {
  .product-image-wrap { height: 160px; }
  .product-name { font-size: 0.875rem; }
  .product-price { font-size: 1rem; }
  .banner-title { font-size: 1.25rem; }
  .stat-val { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════
   CHECKOUT ORDER FORM MODAL
   ══════════════════════════════════════════════════════════════════ */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-card {
  background: rgba(17, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 211, 102, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 650px;
  max-height: 98vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal-overlay.active .checkout-modal-card {
  transform: translateY(0) scale(1);
}

.checkout-modal-header {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkout-modal-title i {
  color: #25D366;
  font-size: 1.2rem;
}

.checkout-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.checkout-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.checkout-modal-body {
  padding: 0.85rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

/* Product Summary Box inside Modal */
.checkout-product-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkout-product-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.checkout-product-info {
  flex: 1;
  min-width: 0;
}

.checkout-product-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.1rem;
}

.checkout-product-price {
  font-size: 1rem;
  font-weight: 800;
  color: #4ade80;
}

/* Form Styles */
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.85rem;
}

@media (max-width: 520px) {
  .checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.checkout-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.checkout-form-group.full-width {
  grid-column: 1 / -1;
}

.checkout-form-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.checkout-form-label span.req {
  color: #f87171;
  font-size: 0.85rem;
}

.checkout-form-input {
  width: 100%;
  background: rgba(11, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.checkout-form-input:focus {
  border-color: #2563eb;
  background: rgba(11, 12, 20, 0.95);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.checkout-form-input.is-invalid {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

textarea.checkout-form-input {
  resize: vertical;
  min-height: 48px;
}

select.checkout-form-input {
  cursor: pointer;
}

select.checkout-form-input option {
  background: #111220;
  color: #ffffff;
}

.checkout-modal-footer {
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn-complete-whatsapp {
  width: 100%;
  background: #25D366;
  color: #ffffff;
  border: none;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.btn-complete-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-complete-whatsapp i {
  font-size: 1.3rem;
}

.checkout-notice-text {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.35;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE & ACCESSIBILITY ENHANCEMENTS (PAGESPEED v3.2)
   ══════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE & ACCESSIBILITY ENHANCEMENTS (PAGESPEED v3.3)
   ══════════════════════════════════════════════════════════════════ */

/* 1. Touch Target Sizing (Min 48px for Accessibility) */
@media (max-width: 768px) {
  button, 
  a.btn, 
  .slider-nav button, 
  .hamburger, 
  .mobile-close-btn, 
  .mobile-nav-link,
  .btn-whatsapp-order {
    min-height: 48px !important;
    min-width: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation;
  }

  .banner-container {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
    contain: strict !important;
    contain-intrinsic-size: 100% 380px;
    overflow: hidden !important;
  }

  .banner-content {
    padding: 0 1.25rem !important;
    max-width: 100% !important;
  }

  .banner-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }

  .banner-desc {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slider-container .product-card {
    min-width: 175px !important;
    max-width: 175px !important;
    height: 330px !important;
    contain: layout size !important;
  }

  .product-image-wrap {
    height: 140px !important;
    width: 100% !important;
    contain: strict !important;
  }
}

/* 2. Contrast Enhancement for Accessibility */
.text-muted {
  color: #cbd5e1 !important;
}

html[data-theme="clean-light"] .text-muted {
  color: #334155 !important;
}

.product-category {
  font-weight: 700 !important;
  color: #3b82f6 !important;
}

/* 3. Strict Layout Shift (CLS) Containment */
.product-card {
  contain: layout;
  box-sizing: border-box;
}

.product-image-wrap {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-slogan {
  color: #cbd5e1 !important;
}




