/* ==========================================================================
   GOSTO VIP STORE - HYPER-LUXURY DESIGN SYSTEM (4 MULTI-THEME ENGINE)
   Gosto Cyber Emerald | Cyberpunk Neon | Midnight Gold | Titanium Platinum
   ========================================================================== */

/* 1. Theme 1: Gosto Cyber Emerald (Default VIP Luxury) */
:root, [data-theme="emerald"], [data-theme="dark"] {
  --primary: #00ff9d;
  --primary-rgb: 0, 255, 157;
  --primary-hover: #00e08a;
  --primary-dark: #00b36e;
  --primary-deep: #032014;
  --primary-light: rgba(0, 255, 157, 0.12);
  --primary-glow: rgba(0, 255, 157, 0.45);

  --secondary: #00e5ff;
  --accent: #ffb800;
  --accent-gold: #ffb800;
  --accent-gold-light: rgba(255, 184, 0, 0.15);
  
  --success: #00ff9d;
  --danger: #ff3b5c;
  --warning: #ffb800;

  --bg-main: #05070a;
  --bg-surface: rgba(11, 14, 22, 0.92);
  --bg-card: rgba(15, 20, 32, 0.82);
  --bg-card-hover: rgba(22, 30, 48, 0.95);
  --bg-header: rgba(5, 7, 10, 0.92);
  --bg-drawer: rgba(10, 13, 20, 0.98);
  --bg-modal: rgba(13, 17, 28, 0.98);
  --bg-input: rgba(18, 24, 38, 0.9);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(0, 255, 157, 0.55);
  --border-highlight: #00ff9d;

  --text-main: #ffffff;
  --text-body: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #02120a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.85);
  --shadow-xl: 0 24px 50px rgba(0, 0, 0, 0.98);
  --shadow-emerald: 0 4px 25px rgba(0, 255, 157, 0.35);
}

/* 2. Theme 2: Cyberpunk Neon (سايبر بانك نيون) */
[data-theme="cyberpunk"] {
  --primary: #00f0ff;
  --primary-rgb: 0, 240, 255;
  --primary-hover: #00d2e0;
  --primary-dark: #009eb0;
  --primary-deep: #021c22;
  --primary-light: rgba(0, 240, 255, 0.15);
  --primary-glow: rgba(0, 240, 255, 0.5);

  --secondary: #ff007a;
  --accent: #ffe600;
  --accent-gold: #ffe600;
  --accent-gold-light: rgba(255, 230, 0, 0.18);
  
  --success: #00ff9d;
  --danger: #ff0055;
  --warning: #ffaa00;

  --bg-main: #060511;
  --bg-surface: rgba(14, 12, 28, 0.94);
  --bg-card: rgba(20, 16, 40, 0.85);
  --bg-card-hover: rgba(30, 24, 60, 0.96);
  --bg-header: rgba(6, 5, 17, 0.94);
  --bg-drawer: rgba(12, 10, 24, 0.98);
  --bg-modal: rgba(16, 13, 34, 0.98);
  --bg-input: rgba(26, 20, 52, 0.9);

  --border-color: rgba(0, 240, 255, 0.2);
  --border-subtle: rgba(255, 0, 122, 0.15);
  --border-hover: rgba(255, 0, 122, 0.6);
  --border-highlight: #00f0ff;

  --text-main: #ffffff;
  --text-body: #f1f5f9;
  --text-muted: #a5b4fc;
  --text-dim: #818cf8;
  --text-inverse: #020c12;

  --shadow-emerald: 0 4px 25px rgba(0, 240, 255, 0.4);
}

/* 3. Theme 3: Midnight Pure Gold (ذهب ليلي ملكي) */
[data-theme="gold"] {
  --primary: #ffd700;
  --primary-rgb: 255, 215, 0;
  --primary-hover: #e6c200;
  --primary-dark: #b39700;
  --primary-deep: #261f00;
  --primary-light: rgba(255, 215, 0, 0.12);
  --primary-glow: rgba(255, 215, 0, 0.45);

  --secondary: #f59e0b;
  --accent: #ffd700;
  --accent-gold: #ffd700;
  --accent-gold-light: rgba(255, 215, 0, 0.2);
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #ffd700;

  --bg-main: #040404;
  --bg-surface: rgba(16, 16, 16, 0.95);
  --bg-card: rgba(22, 22, 22, 0.88);
  --bg-card-hover: rgba(32, 32, 32, 0.98);
  --bg-header: rgba(4, 4, 4, 0.95);
  --bg-drawer: rgba(14, 14, 14, 0.98);
  --bg-modal: rgba(18, 18, 18, 0.98);
  --bg-input: rgba(28, 28, 28, 0.92);

  --border-color: rgba(255, 215, 0, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 215, 0, 0.6);
  --border-highlight: #ffd700;

  --text-main: #ffffff;
  --text-body: #e5e7eb;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --text-inverse: #171200;

  --shadow-emerald: 0 4px 25px rgba(255, 215, 0, 0.35);
}

/* 4. Theme 4: Titanium Platinum Light (أبيض تيتانيوم كريستالي) */
[data-theme="light"] {
  --primary: #00b36e;
  --primary-rgb: 0, 179, 110;
  --primary-hover: #00965c;
  --primary-dark: #007a4b;
  --primary-deep: #e6f7f0;
  --primary-light: rgba(0, 179, 110, 0.08);
  --primary-glow: rgba(0, 179, 110, 0.25);

  --secondary: #0284c7;
  --accent: #d97706;
  --accent-gold: #d97706;
  --accent-gold-light: rgba(217, 119, 6, 0.12);

  --bg-main: #f4f6f9;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-card-hover: #ffffff;
  --bg-header: rgba(244, 246, 249, 0.96);
  --bg-drawer: #ffffff;
  --bg-modal: #ffffff;
  --bg-input: #eef2f6;

  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-hover: #00b36e;
  --border-highlight: #00b36e;

  --text-main: #090d16;
  --text-body: #2d3748;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-emerald: 0 4px 18px rgba(0, 179, 110, 0.2);
}

/* 5. Theme 5: Crimson Flame (الأحمر القرمزي الناري) */
[data-theme="crimson"] {
  --primary: #ff2a5f;
  --primary-rgb: 255, 42, 95;
  --primary-hover: #e61c4f;
  --primary-dark: #b80d38;
  --primary-deep: #25030c;
  --primary-light: rgba(255, 42, 95, 0.12);
  --primary-glow: rgba(255, 42, 95, 0.45);

  --secondary: #ff7b00;
  --accent: #ffd700;
  --accent-gold: #ffd700;
  --accent-gold-light: rgba(255, 215, 0, 0.15);
  
  --success: #00ff9d;
  --danger: #ff0044;
  --warning: #ffaa00;

  --bg-main: #0a0407;
  --bg-surface: rgba(22, 10, 16, 0.94);
  --bg-card: rgba(28, 14, 22, 0.85);
  --bg-card-hover: rgba(42, 20, 32, 0.96);
  --bg-header: rgba(10, 4, 7, 0.94);
  --bg-drawer: rgba(18, 8, 14, 0.98);
  --bg-modal: rgba(24, 10, 18, 0.98);
  --bg-input: rgba(38, 18, 28, 0.9);

  --border-color: rgba(255, 42, 95, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 42, 95, 0.6);
  --border-highlight: #ff2a5f;

  --text-main: #ffffff;
  --text-body: #f8fafc;
  --text-muted: #fda4af;
  --text-dim: #fb7185;
  --text-inverse: #ffffff;

  --shadow-emerald: 0 4px 25px rgba(255, 42, 95, 0.4);
}

/* 6. Theme 6: Imperial Amethyst (البنفسجي الإمبراطوري الفاخر) */
[data-theme="amethyst"] {
  --primary: #a855f7;
  --primary-rgb: 168, 85, 247;
  --primary-hover: #9333ea;
  --primary-dark: #7e22ce;
  --primary-deep: #1e0933;
  --primary-light: rgba(168, 85, 247, 0.14);
  --primary-glow: rgba(168, 85, 247, 0.45);

  --secondary: #ec4899;
  --accent: #facc15;
  --accent-gold: #facc15;
  --accent-gold-light: rgba(250, 204, 21, 0.15);
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg-main: #07040d;
  --bg-surface: rgba(18, 11, 32, 0.94);
  --bg-card: rgba(24, 15, 42, 0.85);
  --bg-card-hover: rgba(36, 22, 62, 0.96);
  --bg-header: rgba(7, 4, 13, 0.94);
  --bg-drawer: rgba(15, 9, 26, 0.98);
  --bg-modal: rgba(20, 12, 36, 0.98);
  --bg-input: rgba(32, 19, 56, 0.9);

  --border-color: rgba(168, 85, 247, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(168, 85, 247, 0.6);
  --border-highlight: #a855f7;

  --text-main: #ffffff;
  --text-body: #f3e8ff;
  --text-muted: #d8b4fe;
  --text-dim: #c084fc;
  --text-inverse: #ffffff;

  --shadow-emerald: 0 4px 25px rgba(168, 85, 247, 0.4);
}

/* 7. Theme 7: Sapphire Cyber Blue (الأزرق الملكي المشع) */
[data-theme="sapphire"] {
  --primary: #00d2ff;
  --primary-rgb: 0, 210, 255;
  --primary-hover: #00b4db;
  --primary-dark: #0083b0;
  --primary-deep: #021a24;
  --primary-light: rgba(0, 210, 255, 0.12);
  --primary-glow: rgba(0, 210, 255, 0.45);

  --secondary: #3b82f6;
  --accent: #fbbf24;
  --accent-gold: #fbbf24;
  --accent-gold-light: rgba(251, 191, 36, 0.15);
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg-main: #030712;
  --bg-surface: rgba(11, 19, 36, 0.94);
  --bg-card: rgba(15, 26, 48, 0.85);
  --bg-card-hover: rgba(22, 38, 70, 0.96);
  --bg-header: rgba(3, 7, 18, 0.94);
  --bg-drawer: rgba(10, 17, 32, 0.98);
  --bg-modal: rgba(13, 22, 42, 0.98);
  --bg-input: rgba(19, 33, 60, 0.9);

  --border-color: rgba(0, 210, 255, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 210, 255, 0.6);
  --border-highlight: #00d2ff;

  --text-main: #ffffff;
  --text-body: #e0f2fe;
  --text-muted: #7dd3fc;
  --text-dim: #38bdf8;
  --text-inverse: #021018;

  --shadow-emerald: 0 4px 25px rgba(0, 210, 255, 0.4);
}

/* 8. Theme 8: Sunset Amber (البرتقالي الكهرماني الجذاب) */
[data-theme="sunset"] {
  --primary: #f97316;
  --primary-rgb: 249, 115, 22;
  --primary-hover: #ea580c;
  --primary-dark: #c2410c;
  --primary-deep: #270e03;
  --primary-light: rgba(249, 115, 22, 0.14);
  --primary-glow: rgba(249, 115, 22, 0.45);

  --secondary: #eab308;
  --accent: #ffd700;
  --accent-gold: #ffd700;
  --accent-gold-light: rgba(255, 215, 0, 0.15);
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg-main: #0c0704;
  --bg-surface: rgba(26, 16, 10, 0.94);
  --bg-card: rgba(36, 22, 14, 0.85);
  --bg-card-hover: rgba(52, 30, 18, 0.96);
  --bg-header: rgba(12, 7, 4, 0.94);
  --bg-drawer: rgba(22, 13, 8, 0.98);
  --bg-modal: rgba(30, 18, 11, 0.98);
  --bg-input: rgba(46, 27, 16, 0.9);

  --border-color: rgba(249, 115, 22, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(249, 115, 22, 0.6);
  --border-highlight: #f97316;

  --text-main: #ffffff;
  --text-body: #ffedd5;
  --text-muted: #fdba74;
  --text-dim: #fb923c;
  --text-inverse: #190902;

  --shadow-emerald: 0 4px 25px rgba(249, 115, 22, 0.4);
}

/* --------------------------------------------------------------------------
   2. PRODUCT CARD TEMPLATES & LAYOUT ENGINES
   -------------------------------------------------------------------------- */
.tpl-card-glow {
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tpl-card-glow:hover {
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.35);
  border-color: var(--primary);
  transform: translateY(-4px);
}

/* Horizontal List / Row View */
.product-card-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  transition: all 0.25s ease;
}
.product-card-horizontal:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}
@media (max-width: 640px) {
  .product-card-horizontal {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Compact Dense Grid View */
.product-card-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.product-card-compact:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Luxury Neon Card */
.product-card-luxury {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(var(--primary-rgb), 0.05) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.15), transparent);
  transition: 0.5s;
}
.product-card-luxury:hover::before {
  left: 100%;
}
.product-card-luxury:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-5px);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 72px;
  position: relative;
}

#threejs-3d-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

[dir="ltr"] body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border: 1px solid var(--primary-glow);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --------------------------------------------------------------------------
   3. BRAND LOGO & HEADERS
   -------------------------------------------------------------------------- */
.brand-logo-clean {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION: DESKTOP & MOBILE BOTTOM BAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 54px;
  position: relative;
  touch-action: manipulation;
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

.mobile-nav-item.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb, 0, 255, 157), 0.12);
}

.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 1px;
  width: 14px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.mobile-nav-item .icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mobile-nav-item.active .icon {
  transform: translateY(-2px) scale(1.1);
}

/* VIP Stories / Quick Category Circles on Mobile */
.vip-stories-container {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 6px 14px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.vip-stories-container::-webkit-scrollbar {
  display: none;
}

.vip-story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  shrink: 0;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  scroll-snap-align: start;
}
.vip-story-circle:active {
  transform: scale(0.90);
}

@keyframes storyGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 0, 255, 157), 0.35);
  }
  50% {
    box-shadow: 0 4px 22px rgba(var(--primary-rgb, 0, 255, 157), 0.7), 0 0 14px rgba(255, 0, 122, 0.4);
  }
}

.vip-story-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--primary) 0%, #00f0ff 45%, #ff007a 80%, #ffd700 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
  animation: storyGlowPulse 4s infinite ease-in-out;
  transition: all 0.25s ease;
}

.vip-story-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #090d18;
  border: 2px solid #05070a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  transition: transform 0.2s ease;
}

.vip-story-circle:hover .vip-story-inner {
  transform: scale(1.08);
}

.vip-story-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-main);
  max-width: 66px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

/* Category Pill Chips for Mobile & Desktop */
.category-pill-chip {
  padding: 7px 14px;
  border-radius: 16px;
  background: #0e1322;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
}

.category-pill-chip:active {
  transform: scale(0.94);
}

.category-pill-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 18px var(--primary-glow) !important;
}

/* Mobile Hero Card */
.mobile-hero-card {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.95), rgba(6, 9, 18, 0.98));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   5. PRODUCT CARDS (HIGH-END TITANIUM OBSIDIAN GLASS)
   -------------------------------------------------------------------------- */
.store-product-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease;
  position: relative;
  width: 100%;
}

.store-product-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 24px var(--primary-glow);
}

.store-product-card .card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: var(--bg-input);
}

@media (max-width: 640px) {
  .store-product-card {
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
  .store-product-card .card-media {
    padding-top: 68%; /* Perfect aspect ratio for mobile 2-col */
  }
  .store-product-card .card-media .btn-toggle-wishlist {
    width: 28px;
    height: 28px;
    top: 6px;
    inset-inline-end: 6px;
  }
  .store-product-card .card-media .btn-toggle-wishlist span {
    font-size: 10px;
  }
  .store-product-card h3 {
    font-size: 0.82rem;
    line-height: 1.3;
  }
  .store-product-card p {
    font-size: 0.68rem;
    line-height: 1.3;
  }
  .store-product-card .btn-store-primary {
    padding: 6px 10px;
    font-size: 0.72rem;
    border-radius: 10px;
  }
  .store-product-card .btn-quick-add-cart {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 0.75rem;
  }
}

.store-product-card .card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.store-product-card:hover .card-media img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   6. BUTTONS & PILLS (RADIANT HYPER-NEON GRADIENTS)
   -------------------------------------------------------------------------- */
.btn-store-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-inverse);
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-emerald);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-store-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-store-primary:active {
  transform: scale(0.97);
}

.btn-store-secondary {
  background-color: var(--bg-input);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  font-weight: 700;
  border-radius: 14px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-store-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--primary);
}

/* Category Filter Pills */
.clean-cat-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
}

.clean-cat-pill:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.clean-cat-pill.active {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  color: var(--text-inverse);
  border-color: var(--primary);
  box-shadow: var(--shadow-emerald);
}

.cat-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.clean-cat-pill.active .cat-badge {
  background: rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   7. TOP PROMO BANNER
   -------------------------------------------------------------------------- */
.top-welcome-banner {
  background: linear-gradient(90deg, var(--primary-deep) 0%, var(--primary-dark) 50%, var(--primary-deep) 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 50;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   8. STATUS DOT & PULSE
   -------------------------------------------------------------------------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-dot.online {
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.status-dot.offline {
  background-color: #64748b;
  box-shadow: 0 0 6px #64748b;
}

/* --------------------------------------------------------------------------
   9. SOCIAL PROOF ACTIVITY POPUP
   -------------------------------------------------------------------------- */
.social-proof-feed {
  position: fixed;
  bottom: 80px;
  inline-size: min(320px, calc(100vw - 32px));
  inset-inline-start: 16px;
  z-index: 40;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  transform: translateY(120%);
  opacity: 0;
}

@media (min-width: 768px) {
  .social-proof-feed {
    bottom: 24px;
    inset-inline-start: 24px;
    inline-size: 340px;
  }
}

.social-proof-feed.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   10. FLOATING ACTION BUTTONS
   -------------------------------------------------------------------------- */
.floating-gift-btn {
  position: fixed;
  bottom: 80px;
  inset-inline-end: 16px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-lg), 0 0 16px var(--primary-glow);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, border-color 0.2s;
}

@media (min-width: 768px) {
  .floating-gift-btn {
    bottom: 88px;
    inset-inline-end: 24px;
    width: 52px;
    height: 52px;
  }
}

.floating-gift-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}

.floating-support-btn {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-inverse);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s;
}

@media (min-width: 768px) {
  .floating-support-btn {
    display: flex;
  }
}

.floating-support-btn:hover {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   11. MARQUEE & 3D TRUST WALL
   -------------------------------------------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 16px;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   12. CART DRAWER & MODALS
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 50000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 100%;
  max-width: 480px;
  background: var(--bg-drawer);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-inline-start: 1px solid var(--border-color);
  z-index: 50001;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.open .cart-drawer-panel {
  transform: translateX(0);
}

#cart-drawer-scrollable-body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

#cart-drawer-scrollable-body::-webkit-scrollbar {
  width: 4px;
}

#cart-drawer-scrollable-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

@media (max-width: 640px) {
  .cart-drawer-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    height: 92dvh;
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    transform: translateY(100%);
    box-shadow: 0 -8px 35px rgba(0, 0, 0, 0.8);
  }
  .drawer-backdrop.open .cart-drawer-panel {
    transform: translateY(0);
  }
}

/* Mobile Product Details Bottom Sheet Modal */
@media (max-width: 767px) {
  #product-details-modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  #product-details-modal > div {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    max-height: 90dvh !important;
    padding: 16px !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
    border-inline: none !important;
    border-bottom: none !important;
    border-top: 2px solid var(--primary) !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    animation: slideUpBottomSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes slideUpBottomSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* --------------------------------------------------------------------------
   13. DIGITAL INVOICE & PRINT READY
   -------------------------------------------------------------------------- */
.invoice-box {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 640px) {
  .invoice-box {
    padding: 18px;
  }
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body * {
    visibility: hidden !important;
  }

  #digital-invoice-modal,
  #digital-invoice-modal * {
    visibility: visible !important;
  }

  #digital-invoice-modal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  #invoice-modal-content {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 10px !important;
    margin: 0 auto !important;
    max-width: 720px !important;
  }

  .invoice-box {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #111111 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: none !important;
  }

  .invoice-box * {
    color: #000000 !important;
    border-color: #cccccc !important;
  }

  .no-print, button, .btn-store-primary, .btn-store-secondary {
    display: none !important;
  }
}

/* ==========================================================================
   NETLIFY & HOSTING BADGE REMOVER (100% WHITE-LABEL CLEAN VIP)
   ========================================================================== */
#netlify-drawer,
[data-netlify-drawer],
.netlify-badge,
[class*="netlify-badge"],
[id*="netlify-drawer"],
netlify-drawer,
div:has(> a[href*="netlify.com"]),
div:has(> a[href*="netlify.app"]),
a[href*="netlify.com"],
a[href*="netlify.app"],
iframe[src*="netlify"],
[class*="feedback-badge"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  z-index: -99999 !important;
}

/* ==========================================================================
   VIP MAIN HAMBURGER MENU DRAWER (3 PARALLEL LINES MENU)
   ========================================================================== */
#main-menu-drawer {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#main-menu-drawer.hidden {
  display: none !important;
}

#main-menu-drawer:not(.hidden) .animate-slide-in {
  animation: slideInFromEnd 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInFromEnd {
  from {
    transform: translateX(100%);
    opacity: 0.5;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

[dir="rtl"] #main-menu-drawer:not(.hidden) .animate-slide-in {
  animation: slideInFromEndRtl 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInFromEndRtl {
  from {
    transform: translateX(-100%);
    opacity: 0.5;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.menu-action-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-action-item:hover {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   16. COMPREHENSIVE RESPONSIVENESS & UNIVERSAL DEVICE ADAPTATION
   -------------------------------------------------------------------------- */

/* Prevent iOS Safari auto-zoom on input focus */
@media (max-width: 767px) {
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="email"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Safe Area Insets for Modern Edge-to-Edge Displays (iOS Notch & Android Gestures) */
body {
  padding-bottom: max(76px, calc(68px + env(safe-area-inset-bottom, 10px)));
}

.mobile-bottom-nav {
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
}

/* Position Floating Hub above bottom nav with safe-area spacing */
@media (max-width: 767px) {
  .fixed.bottom-20 {
    bottom: max(78px, calc(70px + env(safe-area-inset-bottom, 10px))) !important;
  }
}

/* Modal Smooth Scrolling & Containment */
#product-details-modal > div,
#product-request-modal > div,
#order-tracking-modal > div,
#digital-invoice-modal > div,
#multi-agent-support-modal > div,
#product-compare-modal > div {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Responsive Product Card Footer CTA & Actions */
@media (max-width: 640px) {
  .store-product-card .card-footer-cta {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
    padding-top: 8px !important;
  }
  .store-product-card .card-price-col {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
  }
  .store-product-card .card-actions-col {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .store-product-card .card-actions-col .btn-store-primary {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 12px;
  }
  .store-product-card .card-actions-col .btn-quick-add-cart {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    flex-shrink: 0;
  }
}

/* Ultra-compact devices & foldables (<380px) */
@media (max-width: 380px) {
  .store-product-card {
    border-radius: 16px;
  }
  .store-product-card h3 {
    font-size: 0.78rem;
  }
  .store-product-card p {
    font-size: 0.65rem;
  }
}

/* Smooth Touch Scrolling on Category and Story Bars */
.vip-stories-container,
#categories-bar-container > div {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* --------------------------------------------------------------------------
   17. FLASH DEALS & SPECIAL OFFERS SHOWCASE
   -------------------------------------------------------------------------- */
#flash-deals-section {
  animation: fadeIn 0.4s ease;
}

.flash-deal-card {
  background: rgba(14, 20, 34, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.flash-deal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.15);
}

.flash-deal-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   18. FAQ INTERACTIVE ACCORDION
   -------------------------------------------------------------------------- */
.faq-item {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: rgba(var(--primary-rgb, 0, 255, 157), 0.4);
  background-color: rgba(16, 24, 42, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.faq-trigger {
  user-select: none;
  -webkit-user-select: none;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  transition: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   19. ADVANCED FILTER CONTROLS & CHIPS
   -------------------------------------------------------------------------- */
.filter-chip-active {
  background: var(--primary) !important;
  color: #000 !important;
  border-color: var(--primary) !important;
  font-weight: 900 !important;
}

/* --------------------------------------------------------------------------
   20. EXACT 360x800 & 390x844 MOBILE-FIRST OPTIMIZATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
  /* Header branding & search on compact mobile */
  .site-header {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .brand-logo-clean {
    font-size: 1.1rem !important;
  }

  /* Product card mobile typography */
  .store-product-card h3 {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .store-product-card p {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  /* Modals on 360px & 390px */
  #product-details-modal > div,
  #product-request-modal > div,
  #lucky-wheel-modal > div,
  #admin-login-modal > div,
  #digital-invoice-modal > div {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px !important;
    padding: 1rem !important;
  }

  /* Lucky Wheel on 360px */
  #lucky-wheel-canvas {
    max-width: 250px !important;
    max-height: 250px !important;
  }

  /* Cart Drawer and Checkout actions */
  .cart-drawer-panel {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  /* Form inputs & buttons: Minimum 44px tap target and iOS zoom prevention */
  input, select, textarea {
    font-size: 16px !important;
  }

  .btn-store-primary,
  .btn-store-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Tables in Admin / Order lists */
  #admin-tab-content-area table,
  .responsive-table-wrapper {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Search dropdown results */
  #mobile-search-dropdown {
    width: 100%;
    max-height: 60vh;
  }

  /* FAQ questions text */
  .faq-trigger {
    padding: 0.85rem !important;
    font-size: 0.78rem !important;
  }

  .faq-answer {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    font-size: 0.75rem !important;
  }
}

/* Landscape mobile / foldable safety */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-bottom-nav {
    display: none !important;
  }
  body {
    padding-bottom: 0 !important;
  }
}

/* ==========================================================================
   CATEGORY SHOWCASE ROWS (تنظيم الأقسام والمجموعات في سطور أنيقة مخصصة)
   ========================================================================== */
.category-showcase-section {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-showcase-header {
  background: linear-gradient(135deg, rgba(16, 22, 38, 0.85) 0%, rgba(10, 14, 26, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-showcase-header:hover {
  border-color: rgba(var(--primary-rgb, 0, 255, 157), 0.3) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(var(--primary-rgb, 0, 255, 157), 0.08);
}

.btn-category-browse {
  white-space: nowrap;
  user-select: none;
}

.btn-category-browse:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb, 0, 255, 157), 0.25);
}

.btn-category-browse:active {
  transform: scale(0.96);
}

/* ==========================================================================
   MOBILE SMOOTH SCROLLING & HARDWARE-ACCELERATED RESPONSIVENESS
   Eliminates 300ms mobile touch delay and unthrottled backdrop-filter CPU overhead
   ========================================================================== */
html, body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea, [role="button"], .product-card, .store-product-card, .vip-story-circle, .btn-store-primary, .btn-store-secondary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  /* Bypass expensive GPU Gaussian blur filters on mobile to guarantee fluid 60-120fps scrolling */
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(5, 7, 10, 0.98) !important;
  }

  .backdrop-blur-md,
  .backdrop-blur-lg,
  .backdrop-blur-xl,
  .backdrop-blur-2xl,
  .backdrop-blur-sm,
  .category-showcase-header,
  .store-product-card .backdrop-blur-md,
  .store-product-card .backdrop-blur-sm {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Disable continuous box-shadow repaints on story rings */
  .vip-story-ring {
    animation: none !important;
    box-shadow: 0 2px 10px var(--primary-glow) !important;
  }

  /* Disable expensive mask-image on mobile for instant compositing */
  .marquee-wrapper {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

/* GPU layer containment for 60fps scrolling */
  .store-product-card {
    contain: content;
  }

  /* Smooth momentum scrolling for iOS & Android */
  .overflow-y-auto, .overflow-x-auto, #tracking-result-box {
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   FLOATING MULTI-CHANNEL HUB & AI ASSISTANT POSITIONING (DESKTOP & MOBILE)
   Guarantees the hub floats at bottom-left and never covers the top header
   ========================================================================== */
#floating-hub-container {
  position: fixed !important;
  bottom: 24px !important;
  left: 20px !important;
  right: auto !important;
  top: auto !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

@media (max-width: 768px) {
  #floating-hub-container {
    bottom: calc(76px + env(safe-area-inset-bottom, 12px)) !important;
    left: 16px !important;
    right: auto !important;
    top: auto !important;
  }
}

#ai-assistant-panel {
  position: fixed !important;
  bottom: 84px !important;
  left: 20px !important;
  right: auto !important;
  top: auto !important;
  width: 400px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: 80vh !important;
  z-index: 10000 !important;
}

@media (max-width: 768px) {
  #ai-assistant-panel {
    bottom: calc(80px + env(safe-area-inset-bottom, 12px)) !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
  }
}


