/* ==========================================================================
   GILLIAN HENRION #98 MOTORSPORT DESIGN SYSTEM
   Inspired by clean luxury sports aesthetics (charlesleclerc.com)
   Typography: Plus Jakarta Sans (Headings) & Manrope (Body) - Refined & Aerodynamic
   Palette: Deep Racing Navy, Clear Light Background, Crisp Editorial Cards
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root,
[data-theme="default"] {
  /* ==========================================================================
     DESIGN TOKENS - THEME 1 (DEFAULT / NAVY BLUE MOTORSPORT)
     ========================================================================== */
  --color-primary: #0a1730;
  --color-secondary: #142a55;
  --color-tertiary: #1e40af;
  --color-accent: #c59b27;
  --color-accent-hover: #b0891d;
  --color-secondary-light: #eff6ff;
  --color-accent-soft: #fef9ee;
  --color-badge-accent: #e11d48;

  /* Surfaces & Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-navy-dark: #0a1730;
  --bg-navy-card: #0e2042;

  /* Semantic Brand Mappings */
  --navy-primary: var(--color-primary);
  --navy-secondary: var(--color-secondary);
  --navy-accent: var(--color-tertiary);
  --navy-light: var(--color-secondary-light);

  --gold-accent: var(--color-accent);
  --gold-soft: var(--color-accent-soft);

  --theme-color-1: var(--color-primary);
  --theme-color-2: var(--color-tertiary);
  --theme-color-3: var(--color-accent);

  --theme-logo-color-1: var(--color-primary);
  --theme-logo-color-2: var(--color-tertiary);
  --theme-logo-filter: none;
  --theme-logo-border: var(--color-tertiary);

  --theme-accent-primary: #1e40af;
  --theme-accent-secondary: #c59b27;
  --theme-shadow-color: rgba(10, 23, 48, 0.12);
  --theme-glow-color: rgba(30, 64, 175, 0.25);
  --theme-watermark-stroke: rgba(10, 23, 48, 0.05);

  --flag-blue: #0055a5;
  --flag-white: #ffffff;
  --flag-red: #e11d48;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-light: rgba(10, 23, 48, 0.08);
  --border-medium: rgba(10, 23, 48, 0.15);
  --border-active: var(--color-tertiary);

  /* Creative Aerodynamic Background Tokens (Theme 1: Deep Navy & Gold Amber) */
  --aero-bg-base: #f8fafc;
  --hero-base-bg: #ffffff;
  --hero-bg-gradient: radial-gradient(circle at 75% 25%, rgba(224, 236, 255, 0.75) 0%, rgba(245, 248, 253, 0.45) 45%, #ffffff 85%);
  --aero-beam-1: rgba(30, 64, 175, 0.08);
  --aero-beam-2: rgba(197, 155, 39, 0.06);
  --aero-glow-1: rgba(30, 64, 175, 0.09);
  --aero-glow-2: rgba(197, 155, 39, 0.075);
  --aero-glow-3: rgba(10, 23, 48, 0.045);
  --aero-stream-1: rgba(30, 64, 175, 0.16);
  --aero-stream-2: rgba(197, 155, 39, 0.18);
  --aero-stream-3: rgba(10, 23, 48, 0.065);
  --aero-stream-glow: rgba(30, 64, 175, 0.22);
  --theme-watermark-stroke: rgba(10, 23, 48, 0.14);

  /* Typography - Sleek & Refined Proportion */
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 16px -2px rgba(10, 23, 48, 0.04);
  --shadow-card: 0 10px 28px -4px rgba(10, 23, 48, 0.06);
  --shadow-hover: 0 16px 36px -6px rgba(10, 23, 48, 0.1);

  --container-max: 1200px;
}

/* ==========================================================================
   DESIGN TOKENS - THEME 2 (ALTERNATE / RACING PULSE #4165AB & #BC235C)
   ========================================================================== */
[data-theme="alternate"] {
  --color-primary: #0a1730;
  --color-secondary: #4165AB;
  --color-tertiary: #BC235C;
  --color-accent: #BC235C;
  --color-accent-hover: #9e1a4c;
  --color-secondary-light: rgba(65, 101, 171, 0.09);
  --color-accent-soft: rgba(188, 35, 92, 0.09);
  --color-badge-accent: #BC235C;

  --navy-primary: #0a1730;
  --navy-secondary: #4165AB;
  --navy-accent: #BC235C;
  --navy-light: rgba(65, 101, 171, 0.09);

  --gold-accent: #BC235C;
  --gold-soft: rgba(188, 35, 92, 0.09);

  --theme-color-1: #0a1730;
  --theme-color-2: #4165AB;
  --theme-color-3: #BC235C;

  --theme-logo-color-1: #0a1730;
  --theme-logo-color-2: #4165AB;
  --theme-logo-filter: none;
  --theme-logo-border: #4165AB;

  --theme-accent-primary: #4165AB;
  --theme-accent-secondary: #BC235C;
  --theme-shadow-color: rgba(65, 101, 171, 0.15);
  --theme-glow-color: rgba(188, 35, 92, 0.32);
  --theme-watermark-stroke: rgba(65, 101, 171, 0.14);
  --hero-base-bg: #ffffff;
  --hero-bg-gradient: radial-gradient(circle at 75% 25%, rgba(245, 232, 242, 0.75) 0%, rgba(240, 244, 255, 0.45) 45%, #ffffff 85%);

  --flag-blue: #4165AB;
  --flag-red: #BC235C;

  --border-light: rgba(65, 101, 171, 0.12);
  --border-medium: rgba(65, 101, 171, 0.22);
  --border-active: #4165AB;

  /* Creative Aerodynamic Background Tokens (Theme 2: Racing Pulse #4165AB & #BC235C) */
  --aero-bg-base: #f8fafc;
  --aero-beam-1: rgba(65, 101, 171, 0.08);
  --aero-beam-2: rgba(188, 35, 92, 0.06);
  --aero-glow-1: rgba(65, 101, 171, 0.09);
  --aero-glow-2: rgba(188, 35, 92, 0.08);
  --aero-glow-3: rgba(10, 23, 48, 0.045);
  --aero-stream-1: rgba(65, 101, 171, 0.16);
  --aero-stream-2: rgba(188, 35, 92, 0.18);
  --aero-stream-3: rgba(65, 101, 171, 0.065);
  --aero-stream-glow: rgba(188, 35, 92, 0.22);

  --shadow-subtle: 0 4px 16px -2px rgba(65, 101, 171, 0.06);
  --shadow-card: 0 10px 28px -4px rgba(65, 101, 171, 0.08);
  --shadow-hover: 0 16px 36px -6px rgba(65, 101, 171, 0.14);
}

/* ==========================================================================
   DESIGN TOKENS - THEME 3 (ROUGE rgb(177, 62, 44) & JAUNE rgb(247, 204, 88))
   ========================================================================== */
[data-theme="red-gold"],
[data-theme="rouge-jaune"],
[data-theme="red-yellow"] {
  --color-primary: #18181b;
  --color-secondary: rgb(177, 62, 44);
  --color-tertiary: rgb(247, 204, 88);
  --color-accent: rgb(247, 204, 88);
  --color-accent-hover: #dfb444;
  --color-secondary-light: rgba(177, 62, 44, 0.09);
  --color-accent-soft: rgba(247, 204, 88, 0.16);
  --color-badge-accent: rgb(177, 62, 44);

  --navy-primary: #18181b;
  --navy-secondary: rgb(177, 62, 44);
  --navy-accent: rgb(247, 204, 88);
  --navy-light: rgba(177, 62, 44, 0.09);

  --gold-accent: rgb(247, 204, 88);
  --gold-soft: rgba(247, 204, 88, 0.16);

  --theme-color-1: #18181b;
  --theme-color-2: rgb(177, 62, 44);
  --theme-color-3: rgb(247, 204, 88);

  --theme-logo-color-1: #18181b;
  --theme-logo-color-2: rgb(177, 62, 44);
  --theme-logo-filter: none;
  --theme-logo-border: rgb(177, 62, 44);

  --theme-accent-primary: rgb(177, 62, 44);
  --theme-accent-secondary: rgb(247, 204, 88);
  --theme-shadow-color: rgba(177, 62, 44, 0.16);
  --theme-glow-color: rgba(247, 204, 88, 0.38);
  --theme-watermark-stroke: rgba(177, 62, 44, 0.14);
  --hero-base-bg: #faf8f5;
  --hero-bg-gradient: radial-gradient(circle at 75% 25%, rgba(254, 243, 235, 0.8) 0%, rgba(254, 249, 235, 0.45) 45%, #faf8f5 85%);

  --flag-blue: rgb(177, 62, 44);
  --flag-red: rgb(247, 204, 88);

  --border-light: rgba(177, 62, 44, 0.12);
  --border-medium: rgba(177, 62, 44, 0.22);
  --border-active: rgb(177, 62, 44);

  /* Creative Aerodynamic Background Tokens (Theme 3: Scuderia Flame Red & Gold) */
  --aero-bg-base: #faf8f5;
  --aero-beam-1: rgba(177, 62, 44, 0.08);
  --aero-beam-2: rgba(247, 204, 88, 0.065);
  --aero-glow-1: rgba(177, 62, 44, 0.09);
  --aero-glow-2: rgba(247, 204, 88, 0.085);
  --aero-glow-3: rgba(24, 24, 27, 0.045);
  --aero-stream-1: rgba(177, 62, 44, 0.16);
  --aero-stream-2: rgba(247, 204, 88, 0.20);
  --aero-stream-3: rgba(24, 24, 27, 0.065);
  --aero-stream-glow: rgba(247, 204, 88, 0.26);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--aero-bg-base, #f8fafc);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CREATIVE DYNAMIC AERODYNAMIC MOTORSPORT BACKGROUND
   Inspired by high-speed LMP3 endurance racing aerodynamics:
   - Volumetric photon velocity beams & breathing ambient auras (body::before)
   - Sweeping aerodynamic streamline ribbons & apex trajectory flow curves (body::after)
   - Adaptive to active theme colors with 60 FPS GPU-accelerated transforms
   - Strictly isolated from the Hero Section
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  background-color: var(--aero-bg-base, #f8fafc);
  background-image:
    /* Volumetric Angular Velocity Beam */
    linear-gradient(
      132deg,
      var(--aero-beam-1) 0%,
      transparent 42%,
      var(--aero-beam-2) 72%,
      transparent 100%
    ),
    /* Dynamic Ambient Glow 1 (Upper Left Vortex) */
    radial-gradient(
      ellipse 850px 580px at 12% 24%,
      var(--aero-glow-1) 0%,
      transparent 72%
    ),
    /* Dynamic Ambient Glow 2 (Lower Right Apex Energy) */
    radial-gradient(
      ellipse 800px 620px at 88% 68%,
      var(--aero-glow-2) 0%,
      transparent 70%
    ),
    /* Dynamic Ambient Glow 3 (Deep Central Ground Effect) */
    radial-gradient(
      ellipse 650px 480px at 30% 92%,
      var(--aero-glow-3) 0%,
      transparent 68%
    );
  animation: aeroAuraFloat 24s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background-image:
    /* Dynamic Tangential Velocity Streak (High-speed apex angle) */
    linear-gradient(
      -36deg,
      transparent 0%,
      transparent 47.6%,
      var(--aero-stream-1) 48.2%,
      var(--aero-stream-2) 50%,
      var(--aero-stream-1) 51.8%,
      transparent 52.4%,
      transparent 100%
    ),
    /* Upper Aerodynamic Slipstream Flow Curve */
    radial-gradient(
      ellipse 135% 75% at 20% -12%,
      transparent 58%,
      var(--aero-stream-1) 59.2%,
      transparent 61%
    ),
    /* Lower Apex Diffuser Flow Curve */
    radial-gradient(
      ellipse 120% 70% at 85% 112%,
      transparent 56%,
      var(--aero-stream-2) 57.4%,
      transparent 59.2%
    ),
    /* Mid-Chassis Aerodynamic Channel Trace */
    radial-gradient(
      ellipse 100% 60% at 10% 105%,
      transparent 50%,
      var(--aero-stream-3) 51.2%,
      transparent 52.8%
    ),
    /* High-Speed Vortex Flow Arc */
    radial-gradient(
      ellipse 140% 85% at 92% -8%,
      transparent 64%,
      var(--aero-stream-2) 65.2%,
      transparent 66.8%
    ),
    /* Subtle Kinetic Telemetry Dash Accents */
    repeating-linear-gradient(
      -36deg,
      transparent,
      transparent 220px,
      var(--aero-stream-3) 220px,
      var(--aero-stream-3) 222px,
      transparent 222px,
      transparent 440px
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  animation: aeroFlowDrift 36s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes aeroAuraFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(2.5vw, -2vh, 0) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate3d(-2vw, 2vh, 0) scale(0.96);
    opacity: 0.9;
  }
}

@keyframes aeroFlowDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-2vw, 1.8vh, 0) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translate3d(1.8vw, -1.5vh, 0) scale(0.98);
    opacity: 0.88;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-primary);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--navy-light);
  color: var(--navy-primary);
  border: 1px solid var(--border-light);
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.3;
}

.badge-gold {
  background: var(--gold-soft);
  color: #926f0f;
  border-color: rgba(197, 155, 39, 0.25);
}

.badge-live {
  background: #fff1f2;
  color: var(--flag-red);
  border-color: rgba(225, 29, 72, 0.2);
}

.badge-navy {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: subtle-pulse 2s infinite ease-in-out;
}

@keyframes subtle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background: var(--navy-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 23, 48, 0.12);
}

.btn-primary:hover {
  background: var(--navy-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 23, 48, 0.2);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  border-color: var(--navy-primary);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.2);
}

.btn-gold:hover {
  background: #b0891d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 155, 39, 0.28);
}

.btn-sm {
  padding: 6px 14px !important;
  font-size: 0.8125rem !important;
  border-radius: var(--radius-sm, 6px) !important;
  gap: 6px !important;
  min-height: 32px !important;
  font-weight: 700 !important;
}

.btn-xs {
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
  border-radius: 4px !important;
  gap: 4px !important;
  min-height: 26px !important;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid #dc2626;
}

.btn-danger:hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--navy-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--navy-primary);
  transform: translateY(-1px);
}

.btn-outline-danger {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  color: #dc2626;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-header .section-tag {
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   NAVBAR & RESPONSIVE MOBILE MENU
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(10, 23, 48, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img,
.gh-dynamic-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.nav-logo:hover .nav-logo-img,
.nav-logo:hover .gh-dynamic-logo {
  transform: scale(1.06);
}

.footer .nav-logo-img,
.footer-logo .nav-logo-img,
.footer-logo .gh-dynamic-logo {
  filter: brightness(0) invert(1);
}

.admin-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.auth-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.nav-logo-number {
  width: 38px;
  height: 38px;
  background: var(--navy-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-primary);
  line-height: 1.1;
}

.nav-logo-subtitle {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--gold-accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-item {
  flex-shrink: 0;
}

.nav-item a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--navy-primary);
}

.nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.cart-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  color: #0b172a;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.cart-toggle-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.cart-badge {
  background: #0b172a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-primary);
  color: #ffffff;
  border: 1px solid var(--navy-primary);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(10, 23, 48, 0.12);
}

.nav-partner-btn:hover {
  background: var(--navy-secondary);
  border-color: var(--navy-secondary);
  color: #ffffff;
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--navy-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile Menu Dropdown */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 24px;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(10, 23, 48, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.mobile-nav-drawer.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-primary);
  display: block;
}

/* ==========================================================================
   HERO SECTION (Mockup Match: Light & Clean Motorsport Showcase)
   Strictly isolated with opaque surface to exclude background effects
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 10;
  background-color: var(--hero-base-bg, #ffffff);
  background-image: var(--hero-bg-gradient);
  padding: 115px 0 45px;
  overflow: hidden;
  width: 100%;
  min-height: 690px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

/* Subtle outline 98 watermark in bottom-left */
.hero-watermark-98 {
  position: absolute;
  bottom: 20px;
  left: -20px;
  font-family: var(--font-display);
  font-size: clamp(14rem, 22vw, 24rem);
  font-weight: 800;
  font-style: italic;
  line-height: 0.75;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--theme-watermark-stroke);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* Driver brush backdrop on right */
.hero-driver-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  max-width: 1300px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 10%, rgba(0, 0, 0, 0.95) 26%, #000000 38%), linear-gradient(to bottom, #000000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 10%, rgba(0, 0, 0, 0.95) 26%, #000000 38%), linear-gradient(to bottom, #000000 88%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

.hero-driver-brush-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 4% top;
  filter: drop-shadow(0 8px 30px var(--theme-shadow-color));
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 530px;
}

.hero-main-layout {
  display: flex;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
  padding: 30px 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.hero-number-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-badge-pill {
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.hero-badge-dark {
  background: var(--navy-primary);
  color: #ffffff;
  padding: 5px 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-badge-champ {
  background: #fef2f2;
  color: #dc2626;
  padding: 5px 13px;
  gap: 6px;
  font-weight: 600;
}

.badge-red-dot {
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  display: inline-block;
}

.hero-badge-gray {
  background: #f1f5f9;
  color: #64748b;
  padding: 5px 13px;
  font-weight: 500;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
}

.hero-title-name {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-title-sub {
  font-size: clamp(1.25rem, 2.3vw, 1.95rem);
  font-weight: 700;
  color: var(--navy-accent);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.62;
  color: #4b5563;
  max-width: 530px;
  margin-bottom: 28px;
}

.hero-subtitle strong {
  color: var(--navy-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-btn-primary {
  background: var(--navy-primary);
  color: #ffffff;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(9, 19, 34, 0.18);
}

.hero-btn-primary:hover {
  background: var(--navy-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(9, 19, 34, 0.25);
  color: #ffffff;
}

.hero-btn-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: transform var(--transition-fast);
}

.hero-btn-primary:hover .hero-btn-arrow {
  transform: translateX(2px);
}

.hero-btn-secondary {
  background: #ffffff;
  color: var(--navy-primary);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--navy-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: var(--navy-primary);
}

/* ==========================================================================
   INTEGRATED FROSTED GLASS STATS TICKER
   ========================================================================== */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-stats-row .stat-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 12px 32px 0 rgba(10, 23, 48, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.hero-stats-row .stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 
    0 18px 40px -4px rgba(10, 23, 48, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

.hero-stats-row .stat-number {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: #0b172a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stats-row .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.hero-stats-row .stat-desc {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.38;
}

/* ==========================================================================
   PALMARES & TROPHY ROOM
   ========================================================================== */
.palmares-section {
  padding: 80px 0;
  background: transparent;
}

.palmares-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--navy-primary);
  border-color: var(--navy-primary);
}

.filter-btn.active {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.palmares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.palmares-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
}

.palmares-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.palmares-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e2e8f0;
}

.palmares-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.palmares-card:hover .palmares-img {
  transform: scale(1.03);
}

.palmares-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
}

.palmares-year-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.palmares-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
}

.palmares-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.palmares-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.palmares-subtitle {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--navy-accent);
  font-weight: 600;
}

.palmares-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-secondary);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.palmares-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.palmares-stat-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-primary);
}

.palmares-stat-lbl {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.palmares-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.palmares-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78125rem;
}

.palmares-team {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.palmares-team span {
  color: var(--navy-primary);
  font-weight: 700;
}

.palmares-result-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}

.palmares-card-current {
  border-color: rgba(197, 155, 39, 0.45);
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.08);
}

/* ==========================================================================
   CAREER JOURNEY (Les 3 Grandes Ères)
   ========================================================================== */
.career-section {
  padding: 90px 0;
  background: rgba(248, 250, 252, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.eras-timeline {
  position: relative;
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.eras-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, rgba(10, 23, 48, 0.15) 0%, rgba(197, 155, 39, 0.4) 50%, rgba(10, 23, 48, 0.15) 100%);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.era-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.era-item:nth-child(even) .era-content {
  grid-column: 2;
  grid-row: 1;
}

.era-item:nth-child(even) .era-media {
  grid-column: 1;
  grid-row: 1;
}

/* Timeline Node */
.era-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 3px solid var(--navy-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(10, 23, 48, 0.15);
  transition: var(--transition-fast);
}

.era-node-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--navy-primary);
  letter-spacing: -0.02em;
}

.era-item:hover .era-node {
  border-color: var(--gold-accent);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

.era-item:hover .era-node-number {
  color: var(--gold-accent);
}

/* Era Content Card */
.era-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.era-item:hover .era-content {
  box-shadow: var(--shadow-hover);
  border-color: rgba(10, 23, 48, 0.16);
}

.era-meta-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.era-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.3;
}

.era-narrative {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.era-narrative strong {
  color: var(--navy-primary);
  font-weight: 700;
}

.era-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.era-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--navy-primary);
  transition: var(--transition-fast);
}

.era-pill:hover {
  background: #ffffff;
  border-color: var(--gold-accent);
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.15);
}

.era-pill-icon {
  font-size: 0.875rem;
}

/* Era Media Card */
.era-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 340px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: pointer;
  background: var(--navy-primary);
}

.era-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.era-media:hover img {
  transform: scale(1.04);
}

.era-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 23, 48, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.era-media-tag {
  font-size: 0.78125rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-main);
  background: rgba(10, 23, 48, 0.65);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Backward compatibility legacy timeline classes */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-media {
  grid-column: 1;
  grid-row: 1;
}

.timeline-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border: 4px solid var(--navy-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.timeline-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-accent);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.timeline-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 200px;
  box-shadow: var(--shadow-subtle);
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PROTOTYPE & TELEMETRY SECTION
   ========================================================================== */
.telemetry-section {
  padding: 80px 0;
  background: transparent;
}

.telemetry-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
  box-shadow: var(--shadow-card);
}

.telemetry-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  min-height: 320px;
  background: var(--navy-primary);
  box-shadow: var(--shadow-subtle);
}

.telemetry-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.telemetry-visual:hover img {
  transform: scale(1.04);
}

.telemetry-overlay-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(10, 23, 48, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.telemetry-specs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.telemetry-specs h3 {
  font-size: 2rem;
  color: var(--navy-primary);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.spec-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-name {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
}

/* ==========================================================================
   RAIN MASTER & GALLERY
   ========================================================================== */
.gallery-section {
  padding: 80px 0;
  background: rgba(248, 250, 252, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.gallery-item.span-2 {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 23, 48, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-caption-overlay {
  opacity: 1;
}

.gallery-caption-title {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ==========================================================================
   BOUTIQUE & MERCHANDISING (Desktop Grid / Mobile Carousel)
   ========================================================================== */
.shop-section {
  padding: 80px 0;
  background: transparent;
}

.shop-filter-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.shop-pill {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-pill:hover {
  color: var(--navy-primary);
  border-color: var(--navy-primary);
}

.shop-pill.active {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-media {
  position: relative;
  height: 260px;
  background: #f8fafc;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-badge {
  display: none !important;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

.product-category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  font-weight: 600;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.25;
}

.product-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.product-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.btn-add-cart {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

/* Mobile Shop Carousel Indicators */
.shop-carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.shop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all var(--transition-fast);
}

.shop-dot.active {
  background: var(--navy-primary);
  width: 20px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   CART DRAWER MODAL
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 23, 48, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-left: 1px solid var(--border-light);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: -10px 0 35px rgba(10, 23, 48, 0.12);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.cart-drawer-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.cart-close-btn:hover {
  color: var(--navy-primary);
}

.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--bg-secondary);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.cart-item-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.2;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--navy-accent);
  font-weight: 600;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--navy-primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
}

.cart-drawer-footer {
  padding: 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-form {
  display: flex;
  gap: 8px;
}

.promo-input {
  flex-grow: 1;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--navy-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.promo-input:focus {
  outline: none;
  border-color: var(--navy-primary);
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cart-totals-row.grand-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

/* Quick Add Product Options Modal */
.quick-add-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 23, 48, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

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

.quick-add-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  z-index: 2501;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-add-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.quick-add-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.quick-add-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--navy-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.quick-add-product-summary {
  display: flex;
  gap: 14px;
  align-items: center;
}

.quick-add-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.quick-add-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quick-add-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.2;
  margin: 0;
}

.quick-add-price {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--navy-accent);
  font-size: 1.05rem;
}

.quick-add-options-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-add-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.quick-add-sizes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-add-size-pill {
  padding: 6px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--navy-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-add-size-pill:hover {
  border-color: var(--navy-primary);
  background: var(--navy-light);
}

.quick-add-size-pill.active {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
  box-shadow: 0 2px 6px rgba(10, 23, 48, 0.2);
}

.quick-add-qty-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

/* Cart Item Variant & Points */
.cart-item-variant {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.cart-item-variant strong {
  color: var(--navy-primary);
}

.points-reward-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.78125rem;
  color: #b45309;
  font-weight: 600;
}

/* Multi-Step Checkout in Drawer */
.cart-drawer.expanded-checkout {
  max-width: 500px;
}

.cart-step-view {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

.checkout-scroll-area {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.btn-back-link {
  background: none;
  border: none;
  color: var(--navy-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.btn-back-link:hover {
  text-decoration: underline;
}

.checkout-auth-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-recap-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recap-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--navy-primary);
}

.checkout-mini-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.checkout-mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78125rem;
  color: var(--text-secondary);
}

.checkout-points-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--navy-primary);
  font-weight: 700;
}

.form-section-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.form-group-compact label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.input-compact {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  color: var(--navy-primary);
  background: #ffffff;
}

.input-compact:focus {
  outline: none;
  border-color: var(--navy-primary);
  box-shadow: 0 0 0 2px rgba(10, 23, 48, 0.1);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shipping-method-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipping-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shipping-radio.active,
.shipping-radio:hover {
  border-color: var(--navy-primary);
  background: var(--navy-light);
}

.shipping-radio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shipping-radio-info strong {
  font-size: 0.8125rem;
  color: var(--navy-primary);
}

.shipping-radio-info small {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   EXPRESS CHECKOUT & PAYMENT UI REFACTOR
   ========================================================================== */

.express-checkout-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.express-checkout-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.express-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .express-pay-grid {
    grid-template-columns: 1fr;
  }
}

.express-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.express-pay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.express-pay-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Apple Pay Button */
.btn-apple-pay {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.btn-apple-pay:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.apple-pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.apple-pay-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

/* Google Pay Button */
.btn-google-pay {
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.btn-google-pay:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
}

.gpay-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gpay-text {
  font-family: 'Product Sans', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #3c4043;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Checkout Divider */
.checkout-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0;
  color: var(--text-muted);
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.checkout-divider span {
  padding: 0 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Card Payment Box */
.card-payment-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(10, 23, 48, 0.04);
}

.card-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 8px;
}

.card-box-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-box-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-security-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.accepted-cards-badges {
  display: flex;
  gap: 4px;
}

.card-brand-badge {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.card-brand-badge.active-brand {
  border-color: var(--navy-primary);
  background: var(--navy-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(10, 23, 48, 0.2);
}

/* Input with Icon */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 10px;
  font-size: 0.875rem;
  pointer-events: none;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-with-icon .input-compact {
  padding-left: 34px;
}

.card-number-wrap .input-compact {
  padding-left: 36px;
  padding-right: 50px;
  letter-spacing: 0.06em;
}

.card-detected-label {
  position: absolute;
  right: 10px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--navy-primary);
  pointer-events: none;
}

.cvc-info-tip {
  cursor: help;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 4px;
}

.cvc-info-tip:hover {
  opacity: 1;
}

/* Input validation states */
.input-compact.is-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

.input-compact.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

/* Card Security Footer */
.card-security-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  font-size: 0.6875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.security-guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.security-guarantee-item.stripe-powered strong {
  color: #635bff;
  font-weight: 800;
}

.stripe-card-errors {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
  min-height: 18px;
  line-height: 1.3;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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


/* Order Success Screen */
.order-success-content {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin: auto 0;
}

.order-success-icon {
  font-size: 3rem;
  line-height: 1;
}

.order-success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.order-success-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.order-reference-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.ref-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.ref-code {
  font-size: 1.15rem;
  color: var(--navy-primary);
}

.order-points-awarded-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.points-awarded-header {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1d4ed8;
}

.points-awarded-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #1e40af;
}

.order-points-awarded-box small {
  font-size: 0.72rem;
  color: #3b82f6;
}

.order-success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

/* ==========================================================================
   CALENDAR SECTION
   ========================================================================== */
.calendar-section {
  padding: 80px 0;
  background: rgba(248, 250, 252, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.race-event-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
}

.race-event-card:hover {
  transform: translateY(-3px);
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-card);
}

.race-date-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  color: var(--navy-primary);
  font-weight: 600;
}

.race-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.race-circuit {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PARTNERS & SPONSORSHIPS (3-ROW DYNAMIC INFINITE CAROUSEL)
   ========================================================================== */
.partners-section {
  padding: 80px 0 60px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.partners-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 0 20px;
}

.partners-section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-top: 10px;
  letter-spacing: -0.5px;
  font-family: var(--font-display);
}

.partners-section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 8px;
  line-height: 1.6;
}

.partners-carousel-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  margin-bottom: 40px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partners-carousel-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
}

.partners-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.partners-track.track-right-1 {
  animation: partnersScrollRight 75s linear infinite;
}

.partners-track.track-left-2 {
  animation: partnersScrollLeft 65s linear infinite;
}

.partners-track.track-right-3 {
  animation: partnersScrollRight 80s linear infinite;
}

.partners-carousel-container:hover .partners-track {
  animation-play-state: paused;
}

.partner-logo-item {
  flex: 0 0 auto;
  width: 210px;
  height: 96px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(10, 23, 48, 0.06);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  position: relative;
}

.partner-logo-item:hover {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 14px 30px rgba(10, 23, 48, 0.12);
  transform: translateY(-4px) scale(1.05);
  z-index: 5;
}

.partner-logo-item img {
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.26));
  opacity: 0.95;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partner-logo-item:hover img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  opacity: 1;
  transform: scale(1.06);
}

@keyframes partnersScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes partnersScrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.partners-banner {
  background: var(--bg-navy-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.partners-content h3 {
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
}

.partners-content p {
  max-width: 580px;
  margin: 0 auto 24px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  background: rgba(248, 250, 252, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-primary);
  font-size: 1.15rem;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.form-input, .form-textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  color: var(--navy-primary);
  font-family: var(--font-main);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 23, 48, 0.08);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-navy-dark);
  color: #ffffff;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 40px);
}

.toast {
  background: var(--navy-primary);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & CAROUSEL STYLES (< 768px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    padding: 105px 0 35px;
  }
  .hero-driver-backdrop {
    width: 58%;
    opacity: 0.9;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .telemetry-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 12px;
    gap: 8px;
  }
  .nav-menu {
    display: none;
  }
  .nav-logo {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }
  .nav-logo-img {
    width: 34px;
    height: 34px;
  }
  .nav-logo-name {
    font-size: 0.9375rem;
    white-space: nowrap;
  }
  .nav-logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
  .nav-actions {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .cart-toggle-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 5px;
  }
  .cart-badge {
    width: 17px;
    height: 17px;
    font-size: 0.6875rem;
  }
  .nav-partner-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 5px;
  }
  .nav-user-pill {
    gap: 5px;
  }
  .nav-user-name {
    font-size: 0.75rem;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .badge-role {
    font-size: 0.5625rem;
    padding: 1px 5px;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1.3rem;
    flex-shrink: 0;
  }
  .mobile-nav-drawer {
    display: block;
  }

  .hero-section {
    padding: 85px 0 35px;
    min-height: auto;
  }
  .hero-container {
    min-height: auto;
  }
  .hero-driver-backdrop {
    position: absolute;
    right: -35px;
    top: 50px;
    width: 320px;
    height: 420px;
    opacity: 0.25;
    mask-image: linear-gradient(to bottom, #000 65%, transparent 100%), linear-gradient(to left, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%), linear-gradient(to left, #000 70%, transparent 100%);
    pointer-events: none;
  }
  .hero-driver-brush-img {
    object-position: center top;
  }
  .hero-watermark-98 {
    font-size: 8rem;
    bottom: 120px;
    left: -10px;
    opacity: 0.45;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hero-stats-row .stat-card {
    padding: 16px 12px;
  }
  .hero-stats-row .stat-number {
    font-size: 1.75rem;
  }

  /* Eras Timeline on Tablet & Mobile */
  .eras-timeline {
    gap: 36px;
    margin-top: 30px;
  }
  .eras-timeline::before {
    left: 20px;
    top: 20px;
    bottom: 20px;
  }
  .era-node {
    left: 20px;
    top: 26px;
    width: 38px;
    height: 38px;
    transform: translate(-50%, 0);
  }
  .era-node-number {
    font-size: 0.75rem;
  }
  .era-item {
    grid-template-columns: 1fr;
    padding-left: 48px;
    gap: 16px;
  }
  .era-item:nth-child(even) .era-content {
    grid-column: 1;
    grid-row: 1;
  }
  .era-item:nth-child(even) .era-media {
    grid-column: 1;
    grid-row: 2;
  }
  .era-content {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }
  .era-title {
    font-size: 1.2rem;
  }
  .era-media {
    height: 220px;
    border-radius: var(--radius-lg);
  }
  .era-highlights {
    gap: 6px;
  }
  .era-pill {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  /* Legacy Timeline on Mobile */
  .timeline::before {
    left: 14px;
  }
  .timeline-node {
    left: 14px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 36px;
    gap: 16px;
    margin-bottom: 36px;
  }
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
  }
  .timeline-item:nth-child(even) .timeline-media {
    grid-column: 1;
    grid-row: 2;
  }
  .timeline-content {
    padding: 18px;
  }
  .timeline-media {
    height: 160px;
  }

  /* Telemetry Specs */
  .telemetry-card {
    padding: 20px;
    gap: 20px;
  }
  .telemetry-visual img {
    height: 220px;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Shop Carousel */
  .shop-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 4px 16px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
  }
  .shop-grid::-webkit-scrollbar {
    display: none;
  }
  .product-card {
    flex: 0 0 82vw;
    max-width: 320px;
    scroll-snap-align: center;
  }
  .product-media {
    height: 220px;
  }
  .shop-carousel-dots {
    display: flex;
  }

  /* Gallery Grid on Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
  }
  .gallery-item.span-2 {
    grid-column: span 1;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .contact-form-card {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 8px;
    gap: 4px;
  }
  .nav-logo-subtitle {
    display: none;
  }
  .nav-logo-name {
    font-size: 0.85rem;
  }
  .nav-actions {
    gap: 4px;
  }
  .cart-toggle-btn {
    padding: 5px 8px;
  }
  .cart-toggle-btn .cart-label-text {
    display: none;
  }
  .nav-partner-btn {
    padding: 5px 8px;
  }
  #navPartnerBtnText {
    font-size: 0.72rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .eras-timeline {
    gap: 28px;
  }
  .eras-timeline::before {
    left: 16px;
  }
  .era-node {
    left: 16px;
    width: 32px;
    height: 32px;
  }
  .era-node-number {
    font-size: 0.6875rem;
  }
  .era-item {
    padding-left: 38px;
  }
  .era-content {
    padding: 18px 14px;
  }
  .era-title {
    font-size: 1.1rem;
  }
  .era-narrative {
    font-size: 0.85rem;
  }
  .era-media {
    height: 180px;
  }
  .era-pill {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cart-drawer {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .badge-role {
    display: none;
  }
  .nav-user-name {
    max-width: 50px;
  }
}

/* ==========================================================================
   CURRENT SEASON 2026 & LIVE TIMING HUB (OPENWEC API STYLES)
   ========================================================================== */
.nav-link-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-accent) !important;
  font-weight: 700 !important;
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: liveDotPulse 1.5s infinite;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   CURRENT SEASON & LIVE TIMING (CLEAN LUXURY WHITE & LIGHT THEME)
   ========================================================================== */
.season-section {
  padding: 85px 0 90px;
  background: transparent;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.season-section .section-header h2 {
  color: var(--navy-primary);
}

.season-section .section-header p {
  color: var(--text-secondary);
}

.section-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.sync-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78125rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
}

.btn-sync-refresh {
  background: var(--navy-light);
  border: 1px solid rgba(10, 23, 48, 0.12);
  color: var(--navy-primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-sync-refresh:hover {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.btn-sync-refresh.spinning .refresh-icon {
  animation: spinIcon 0.8s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Race Week Banner */
.race-week-banner {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.banner-badge-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-event-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.banner-flag-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.country-flag-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.banner-flag-title h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 2px;
}

.banner-flag-title p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

.banner-countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.countdown-unit {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.countdown-unit span {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.countdown-unit small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.countdown-sep {
  color: var(--gold-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Season Hub Grid */
.season-hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Left: Live Telemetry Panel */
.live-telemetry-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.telemetry-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-tag-98-sm {
  background: var(--gold-accent);
  color: #0b1526;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  letter-spacing: -0.02em;
}

.panel-car-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.2;
}

.panel-driver-name {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.session-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.session-status-badge.live-active {
  background: #fff1f2;
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: var(--flag-red);
}

.session-status-badge.standby {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* Category Standings Card (LMP3 Pro-Am Prominence) */
.category-standings-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
  border: 1px solid rgba(197, 155, 39, 0.3);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.06);
}

.cat-standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-standings-main {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr;
  gap: 14px;
  align-items: center;
}

.cat-pos-display {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.cat-pos-val {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--gold-accent);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(197, 155, 39, 0.2);
  flex-shrink: 0;
}

.cat-pos-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cat-pos-rank {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-primary);
  white-space: nowrap;
}

.cat-pos-points {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  color: var(--navy-accent);
  font-weight: 700;
  white-space: nowrap;
}

.cat-stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
}

.cat-stat-mini {
  background: var(--bg-secondary);
  padding: 10px 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1;
}

.mini-lbl {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Active Live Telemetry Box */
.live-telemetry-active-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Sector Timing Gauge Display (Light Theme) */
.sectors-timing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sectors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.lap-time-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--navy-light);
  border: 1px solid rgba(10, 23, 48, 0.15);
  color: var(--navy-primary);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sector-box {
  padding: 10px 8px;
  border-radius: var(--radius-xs);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid transparent;
}

.sector-purple {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.sector-purple .sector-time {
  color: #7e22ce;
}

.sector-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.sector-green .sector-time {
  color: #15803d;
}

.sector-title {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.sector-time {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
}

.sector-tag {
  font-size: 0.625rem;
  color: var(--text-muted);
}

/* Telemetry Metrics Grid (Light Theme) */
.telemetry-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-primary);
}

/* Integrated Car Visual Preview (Height Balancing & Showcase) */
.telemetry-car-preview {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #f8fafc 0%, #edf2f9 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px 12px;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 160px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all var(--transition-smooth);
}

.telemetry-car-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(197, 155, 39, 0.12) 0%, rgba(11, 21, 38, 0.05) 50%, transparent 75%);
  filter: blur(24px);
  pointer-events: none;
}

.telemetry-car-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.telemetry-car-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.telemetry-car-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--gold-accent);
  letter-spacing: -0.02em;
}

.telemetry-car-img-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 6px 0 2px;
}

.telemetry-car-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(10, 23, 48, 0.18));
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.telemetry-car-preview:hover .telemetry-car-img {
  transform: scale(1.03) translateY(-2px);
  filter: drop-shadow(0 12px 22px rgba(10, 23, 48, 0.25));
}

/* Right: Season Events Panel (Light Theme) */
.season-events-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.panel-header-events {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 2px;
}

.panel-header-title p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}

.calendar-pills-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.calendar-nav-arrow-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--navy-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-subtle);
}

.calendar-nav-arrow-btn:hover:not(:disabled) {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
  transform: scale(1.06);
}

.calendar-nav-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.events-round-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px;
  flex-grow: 1;
}

.events-round-tabs::-webkit-scrollbar {
  display: none;
}

.event-round-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.event-round-btn:hover {
  color: var(--navy-primary);
  border-color: var(--navy-primary);
  background: var(--navy-light);
}

.event-round-btn.active {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
  box-shadow: 0 4px 12px rgba(10, 23, 48, 0.15);
}

/* Selected Event Detail (Light Theme) */
.selected-event-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.event-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.event-detail-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-primary);
}

.event-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.session-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  transition: background var(--transition-fast);
  min-width: 0;
  box-sizing: border-box;
}

.session-item-row:hover {
  background: var(--navy-light);
}

.session-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.session-type-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.session-type-race {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.session-type-qualif {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.session-type-practice {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.session-type-test {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.session-item-name {
  color: var(--navy-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8125rem;
}

.session-item-result {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 600px) {
  .session-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
  }
  .session-item-left {
    width: 100%;
  }
  .session-item-result {
    width: 100%;
    text-align: right;
    font-size: 0.75rem;
    color: var(--navy-accent);
  }
}

/* OpenWEC Stats Card (Light Theme) */
.openwec-stats-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.openwec-stats-title {
  font-size: 0.78125rem;
  color: var(--navy-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.openwec-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.openwec-stat-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owec-stat-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy-primary);
}

.owec-stat-lbl {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.2;
  font-weight: 600;
}

.session-status-badge.standby {
  background: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

/* Calendar Card Enhancements */
.race-card-past {
  opacity: 0.85;
  border-color: rgba(226, 232, 240, 0.8);
}

.race-card-upcoming {
  border-left: 3px solid var(--gold-accent);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.08);
}

.badge-past {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.race-category-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
}

.race-series-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--navy-accent);
  font-weight: 700;
}

/* Media Queries for Season Hub */
@media (max-width: 1024px) {
  .season-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .live-positions-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .telemetry-metrics-grid {
    grid-template-columns: 1fr;
  }
  .banner-event-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-countdown {
    align-items: flex-start;
    width: 100%;
  }
  .countdown-timer {
    width: 100%;
    justify-content: center;
  }
  .openwec-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ==========================================================================
   ESPACE MEMBRE, PORTAILS FAN / SPONSOR / ADMIN (CHARTE NAVY & BLANC)
   ========================================================================== */

/* Top Notice Banner */
.top-notice-banner {
  background: var(--navy-primary);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-notice-banner a {
  color: #ffffff;
  text-decoration: none;
}
.top-notice-banner a:hover {
  text-decoration: underline;
}

/* Nav Member Button & Badges */
.nav-member-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-light);
  border: 1px solid rgba(10, 23, 48, 0.12);
  color: var(--navy-primary);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}
.nav-member-btn:hover {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.nav-user-name {
  color: inherit;
  font-weight: 700;
}

.badge-role {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}
.badge-fan {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.badge-sponsor {
  background: #fef9ee;
  color: #b45309;
  border: 1px solid #fde68a;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.15);
}
.badge-admin {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.15);
}

/* ==========================================================================
   PORTAL PAGES (CLEAN LUXURY WHITE & NAVY LAYOUT)
   ========================================================================== */
.portal-page-body {
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
}

.portal-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.portal-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Portal Desktop Top Utility Strip */
.portal-desktop-top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 12px;
}
.portal-desktop-top-strip .portal-brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.portal-desktop-top-strip .portal-brand-logo-link:hover {
  transform: scale(1.02);
}
.portal-desktop-top-strip .portal-brand-logo {
  height: 32px;
  width: auto;
}
.portal-brand-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-primary);
  letter-spacing: 0.5px;
}
.portal-brand-title strong {
  color: #ef4444;
}
.portal-top-strip-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-strip-pts {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.btn-xs {
  padding: 4px 12px;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
@media (max-width: 768px) {
  .portal-desktop-top-strip {
    display: none !important;
  }
}

/* Portal User Header Box */
.portal-header-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.portal-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.portal-user-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  cursor: pointer;
  flex-shrink: 0;
}

.portal-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(10, 23, 48, 0.14);
  transition: all 0.25s ease;
}

.portal-avatar-wrap:hover .portal-avatar {
  border-color: #00d2ff;
  transform: scale(1.03);
}

.portal-avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  padding: 0;
  z-index: 2;
}

.portal-avatar-wrap:hover .portal-avatar-edit-badge {
  transform: scale(1.15);
  background: #1e40af;
}

.portal-badge-indicator {
  position: absolute;
  top: -2px;
  left: -2px;
  background: #ffffff;
  border-radius: 50%;
  font-size: 0.95rem;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.portal-user-heading-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-user-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-user-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.2;
}

.portal-role-tag {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}
.tag-fan {
  background: var(--navy-light);
  color: var(--navy-accent);
  border: 1px solid rgba(30, 64, 175, 0.2);
}
.tag-sponsor {
  background: var(--gold-soft);
  color: #92400e;
  border: 1px solid rgba(197, 155, 39, 0.3);
}

.portal-member-id {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.portal-member-id strong {
  color: var(--navy-primary);
  font-family: var(--font-mono);
}

.meta-sep {
  color: var(--border-medium);
}

.header-pts-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-align: right;
  box-shadow: var(--shadow-subtle);
  min-width: 150px;
  flex-shrink: 0;
}

.pts-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.pts-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #059669;
  font-family: var(--font-mono);
  line-height: 1;
}

.pts-val small {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.portal-header-bottom-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-action-btn {
  height: 38px;
  padding: 0 18px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .portal-header-bar {
    padding: 20px 16px;
    gap: 16px;
    margin-bottom: 20px;
  }

  .portal-header-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .portal-user-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .portal-user-heading-col {
    align-items: center;
  }

  .portal-user-heading {
    justify-content: center;
  }

  .portal-member-id {
    justify-content: center;
    font-size: 0.8125rem;
  }

  .header-pts-box {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .portal-header-bottom-row {
    justify-content: stretch;
    width: 100%;
    padding-top: 12px;
  }

  .portal-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .portal-header-actions .portal-action-btn:nth-child(1) {
    grid-column: 1 / 2;
  }
  .portal-header-actions .portal-action-btn:nth-child(2) {
    grid-column: 2 / 3;
  }
  .portal-header-actions .portal-action-btn:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Sponsor Corporate Banner */
.sponsor-corp-banner {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-soft) 100%);
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.sponsor-corp-info {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sponsor-corp-logo-wrap {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(197, 155, 39, 0.25);
  box-shadow: var(--shadow-subtle);
}
.sponsor-corp-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sponsor-tier-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #b45309;
  letter-spacing: 0.5px;
}
.sponsor-corp-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin: 2px 0 4px;
  font-family: var(--font-display);
}
.sponsor-corp-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.sponsor-corp-stats {
  display: flex;
  gap: 16px;
}
.sponsor-corp-stats .stat-box {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.25);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-subtle);
}
.sponsor-corp-stats .stat-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-primary);
  font-family: var(--font-mono);
}
.sponsor-corp-stats .stat-lbl {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* ==========================================================================
   PORTAL NAVIGATION: DESKTOP TABS & MOBILE APP DOCK
   ========================================================================== */
.portal-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 8px;
}

.portal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.portal-tab-btn .tab-icon {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.portal-tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--navy-primary);
}

.portal-tab-btn:hover .tab-icon {
  transform: scale(1.15);
}

.portal-tab-btn.active {
  background: var(--navy-primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(10, 23, 48, 0.2);
}

/* Floating Glassmorphic App Dock on Mobile */
@media (max-width: 768px) {
  .portal-nav-tabs {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 24px);
    max-width: 420px;
    background: rgba(10, 23, 48, 0.60);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 5px 6px 7px;
    gap: 4px;
    margin-bottom: 0;
  }

  .portal-tab-btn {
    position: relative;
    flex-direction: column;
    padding: 7px 4px 9px;
    gap: 3px;
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.6875rem;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .portal-tab-btn .tab-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
  }

  .portal-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
  }

  /* Discrete, sleek active tab indicator - NO light blue neon glow */
  .portal-tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 800;
    border: none;
    box-shadow: none;
  }

  .portal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }

  .portal-sponsor-theme .portal-tab-btn.active {
    background: rgba(245, 200, 66, 0.14);
    color: #ffffff;
    border: none;
    box-shadow: none;
  }

  .portal-sponsor-theme .portal-tab-btn.active::after {
    background: #f5c842;
    box-shadow: 0 0 5px rgba(245, 200, 66, 0.5);
  }

  /* Badges mobile status pill */
  .badges-mobile-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy-light);
    color: var(--navy-accent);
    font-weight: 800;
    font-size: 0.8125rem;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(30, 64, 175, 0.15);
  }

  /* Ensure page content has bottom padding so dock does not overlap */
  body.portal-page-body,
  .portal-main-container {
    padding-bottom: 120px !important;
  }
}

.portal-tab-pane {
  display: none;
}
.portal-tab-pane.active {
  display: block;
  animation: fadeInPane 0.3s ease-out;
}
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   3D CHROMATIC HOLOGRAPHIC MEMBER CARDS: SILVER, GOLD & PEARLESCENT GOLD
   ========================================================================== */
.card-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .card-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.card-3d-wrapper {
  background: linear-gradient(135deg, #070e1c 0%, #101c33 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.holo-card {
  width: 100%;
  max-width: 420px;
  height: 255px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

/* 1. BRUSHED METALLIC SILVER (FANS) */
.holo-card-silver,
.holo-card-fan {
  background: radial-gradient(circle at 75% 20%, #475569 0%, #293548 35%, #0f172a 100%);
  border: 1.5px solid rgba(226, 232, 240, 0.65);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(203, 213, 225, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.holo-card-silver .holo-tier-pill,
.holo-card-fan .holo-tier-pill {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(148, 163, 184, 0.2));
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 2. PRESTIGIOUS METALLIC GOLD (SPONSORS) */
.holo-card-gold,
.holo-card-sponsor {
  background: radial-gradient(circle at 75% 20%, #544114 0%, #2e230b 40%, #0d0a04 100%);
  border: 1.5px solid rgba(245, 200, 66, 0.8);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(234, 179, 8, 0.35), inset 0 1px 1px rgba(255, 240, 160, 0.7);
}

.holo-card-gold .holo-tier-pill,
.holo-card-sponsor .holo-tier-pill {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.35), rgba(161, 120, 27, 0.3));
  color: #fef08a;
  border: 1px solid rgba(250, 204, 21, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 3. PEARLESCENT GOLD (BEST FAN & SPONSORS #1 / LEADER) */
.holo-card-pearlescent-gold {
  background: radial-gradient(circle at 75% 15%, #7a5818 0%, #422d08 35%, #181105 100%);
  border: 1.8px solid rgba(253, 224, 71, 0.95);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(250, 204, 21, 0.5), 0 0 20px rgba(244, 114, 182, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  animation: pearlescentGlow 6s ease-in-out infinite alternate;
}

@keyframes pearlescentGlow {
  0% {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(250, 204, 21, 0.5), 0 0 15px rgba(244, 114, 182, 0.35);
  }
  50% {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 50px rgba(103, 232, 249, 0.45), 0 0 25px rgba(216, 180, 254, 0.45);
  }
  100% {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(250, 204, 21, 0.5), 0 0 20px rgba(244, 114, 182, 0.4);
  }
}

.holo-card-pearlescent-gold .holo-tier-pill {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.4), rgba(244, 114, 182, 0.35), rgba(103, 232, 249, 0.35));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Chromatic & Pearlescent Sheen Overlays */
.holo-card-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-size: 250% 250%;
  mix-blend-mode: color-dodge;
  opacity: 0.75;
  transition: background-position 0.1s ease-out;
}

/* Silver Sheen: Cool Platinum & Diamond */
.holo-card-silver .holo-card-sheen,
.holo-card-fan .holo-card-sheen {
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    rgba(226, 232, 240, 0.25) 20%,
    rgba(148, 163, 184, 0.45) 40%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(96, 165, 250, 0.35) 65%,
    transparent 100%
  );
}

/* Gold Sheen: Warm Amber & Bronze Light */
.holo-card-gold .holo-card-sheen,
.holo-card-sponsor .holo-card-sheen {
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    rgba(245, 200, 66, 0.3) 20%,
    rgba(253, 224, 71, 0.6) 45%,
    rgba(255, 255, 255, 0.8) 52%,
    rgba(217, 119, 6, 0.4) 70%,
    transparent 100%
  );
}

/* Pearlescent Gold Sheen: Iridescent Nacre / Pastel Rainbow */
.holo-card-pearlescent-gold .holo-card-sheen {
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    rgba(244, 114, 182, 0.5) 18%,
    rgba(216, 180, 254, 0.55) 32%,
    rgba(253, 224, 71, 0.75) 48%,
    rgba(103, 232, 249, 0.6) 64%,
    rgba(134, 239, 172, 0.45) 80%,
    transparent 100%
  );
  opacity: 0.88;
}

.holo-card-content {
  position: relative;
  z-index: 3;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.holo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.holo-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.holo-logo {
  height: 24px;
}
.holo-brand-title {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* NO .holo-chip anymore - intentionally removed as per user requirement! */

.holo-tier-pill {
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.holo-driver-watermark {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  font-weight: 900;
  font-style: italic;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  pointer-events: none;
  line-height: 1;
}

.holo-card-middle {
  margin: auto 0;
}
.holo-card-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
}
.holo-card-num {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: #00d2ff;
  letter-spacing: 1px;
  margin-top: 2px;
}
.holo-corp-tag {
  font-size: 0.725rem;
  font-weight: 800;
  color: #ffb800;
  margin-top: 4px;
}

.holo-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.holo-points-label, .holo-badge-label {
  font-size: 0.5875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  display: block;
}
.holo-points-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: #00ff88;
  font-family: var(--font-mono);
}
.holo-badge-value {
  font-size: 0.875rem;
  font-weight: 800;
  color: #ffffff;
}

.holo-barcode {
  text-align: right;
}
.barcode-lines {
  display: block;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}
.barcode-sub {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.holo-hint {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
  text-align: center;
}

/* Card Side Panel */
.portal-panel-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.panel-box-title {
  font-size: 1.15rem;
  color: var(--navy-primary);
  margin-bottom: 18px;
  font-weight: 800;
  font-family: var(--font-display);
}

.points-guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.points-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.guide-icon {
  font-size: 1.25rem;
  background: var(--bg-tertiary);
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.points-guide-list strong {
  color: var(--navy-primary);
  font-size: 0.9rem;
}
.points-guide-list p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-top: 2px;
}

.quick-redeem-box {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-medium);
  padding: 16px;
  border-radius: var(--radius-md);
}
.quick-redeem-box h4 {
  font-size: 0.875rem;
  color: var(--navy-primary);
  margin-bottom: 10px;
  font-weight: 700;
}
.quick-redeem-row {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   TELEMETRY, BADGES & EVENTS (WHITE EDITORIAL THEME)
   ========================================================================== */
.portal-telemetry-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}
.telemetry-banner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.telemetry-car-tag {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--navy-light);
  color: var(--navy-accent);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
}
.telemetry-banner-head h3 {
  font-size: 1.35rem;
  color: var(--navy-primary);
  margin-top: 6px;
  font-family: var(--font-display);
}

.telemetry-grid-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.tele-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 18px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.tele-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}
.tele-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.tele-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-primary);
  font-family: var(--font-mono);
}

.text-neon-cyan { color: var(--navy-accent) !important; }
.text-neon-green { color: #059669 !important; }
.text-neon-yellow { color: #d97706 !important; }

/* Badges Grid */
.badges-catalog-head {
  margin-bottom: 20px;
}
.badges-catalog-head h3 {
  font-size: 1.35rem;
  color: var(--navy-primary);
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.badges-catalog-head p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.badges-grid-portal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.badge-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}
.badge-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.badge-item-card.unlocked {
  border-color: rgba(30, 64, 175, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, var(--navy-light) 100%);
}
.badge-item-card.locked {
  opacity: 0.6;
  filter: grayscale(70%);
}

.badge-item-icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-light);
}
.badge-unlocked-tick {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-locked-lock {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.8rem;
}

.badge-item-rarity {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.badge-rarity-common { color: #64748b; }
.badge-rarity-rare { color: #1e40af; }
.badge-rarity-epic { color: #7c3aed; }
.badge-rarity-legendary { color: #b45309; }

.badge-item-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 4px;
}
.badge-item-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 10px;
}
.badge-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge-points-tag {
  font-size: 0.775rem;
  font-weight: 800;
  color: #059669;
  font-family: var(--font-mono);
}
.badge-status-tag {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Events List with Rich Photos */
.portal-events-head {
  margin-bottom: 20px;
}
.portal-events-head h3 {
  font-size: 1.35rem;
  color: var(--navy-primary);
  font-family: var(--font-display);
}
.portal-events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portal-event-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  transition: var(--transition-fast);
}
.portal-event-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
@media (max-width: 900px) {
  .portal-event-item {
    grid-template-columns: 1fr;
  }
}

.portal-event-thumb-wrap {
  height: 100%;
  min-height: 180px;
  position: relative;
}
.portal-event-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-event-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 23, 48, 0.9);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  backdrop-filter: blur(8px);
}
.event-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 0.5px;
}
.event-day {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-mono);
}

.portal-event-info {
  padding: 20px 24px;
}
.event-champ-tag {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--navy-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.event-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin: 4px 0 6px;
  font-family: var(--font-display);
}
.event-circuit {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.event-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.portal-event-action {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

/* News Grid */
.portal-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.portal-news-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}
.portal-news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.portal-news-card.news-sponsor-vip {
  border-color: rgba(197, 155, 39, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-soft) 100%);
}

.portal-news-img-wrap {
  height: 190px;
  position: relative;
}
.portal-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-news-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}
.tag-gold {
  background: var(--navy-primary);
  color: #fbbf24;
}
.tag-cyan {
  background: var(--navy-primary);
  color: #ffffff;
}

.portal-news-body {
  padding: 22px;
}
.portal-news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.portal-news-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.portal-news-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}
.portal-news-content-collapse {
  padding-top: 10px;
  border-top: 1px dashed var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.btn-text-expand {
  background: none;
  border: none;
  color: var(--navy-accent);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
}

/* Leaderboards */
.leaderboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) {
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }
}
.leaderboard-col {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.leaderboard-col-title {
  font-size: 1.2rem;
  color: var(--navy-primary);
  margin-bottom: 16px;
  font-weight: 800;
  font-family: var(--font-display);
}
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rank-item.current-user {
  border-color: var(--navy-accent);
  background: var(--navy-light);
}
.rank-pos {
  font-size: 1.15rem;
  font-weight: 800;
  min-width: 28px;
}
.rank-user {
  flex-grow: 1;
}
.rank-user strong {
  display: block;
  color: var(--navy-primary);
  font-size: 0.9rem;
}
.rank-id, .rank-tier-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.rank-tier-tag {
  color: #b45309;
  font-weight: 700;
}
.rank-pts {
  font-size: 1rem;
  font-weight: 800;
  color: #059669;
  font-family: var(--font-mono);
}

/* ==========================================================================
   PWA NOTIFICATION BANNER & INSTALL PROMPT
   ========================================================================== */
.pwa-notification-box {
  background: linear-gradient(135deg, rgba(10, 23, 48, 0.95), rgba(20, 42, 85, 0.95));
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.portal-sponsor-theme .pwa-notification-box {
  background: linear-gradient(135deg, rgba(28, 20, 8, 0.95), rgba(46, 35, 11, 0.95));
  border-color: rgba(245, 200, 66, 0.4);
}
.pwa-notification-box.notif-granted {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(6, 40, 28, 0.95), rgba(10, 23, 48, 0.95));
}
.pwa-notif-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pwa-notif-icon {
  font-size: 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pwa-notif-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.pwa-notif-text strong {
  color: #ffffff;
  font-size: 0.9375rem;
}
.pwa-notif-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .pwa-notification-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .pwa-notif-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Holographic Edition Toggle Button */
.holo-toggle-wrap {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.holo-toggle-btn {
  font-size: 0.775rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.holo-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(253, 224, 71, 0.6);
  transform: translateY(-1px);
}
.holo-toggle-btn.active {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.25), rgba(244, 114, 182, 0.25));
  border-color: #ffd700;
  color: #fef08a;
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.3);
}

/* ==========================================================================
   INTEGRATED RANKING SECTION IN MEMBER CARD VIEW (TAB-CARD)
   ========================================================================== */
.card-integrated-ranking {
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}
.card-ranking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.card-ranking-head h3 {
  font-size: 1.35rem;
  color: var(--navy-primary);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-rank-status-pill {
  background: var(--navy-light);
  color: var(--navy-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(30, 64, 175, 0.2);
}
.user-rank-status-pill.rank-legend {
  background: linear-gradient(135deg, #fef3c7, #fce7f3);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   BADGES TAB ENHANCEMENTS: ONLY UNLOCKED FOCUS & FILTER
   ========================================================================== */
.badges-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.badges-filter-tabs {
  display: inline-flex;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.badge-filter-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.badge-filter-btn:hover {
  color: var(--navy-primary);
}
.badge-filter-btn.active {
  background: var(--navy-primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(10, 23, 48, 0.15);
}

.badge-item-card.unlocked-hero {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, rgba(16, 185, 129, 0.05) 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   NEWS & ACTUS: IMMERSIVE EDITORIAL CAROUSEL VIEW
   ========================================================================== */
.portal-feed-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.portal-feed-header {
  text-align: center;
  margin-bottom: 20px;
}

.portal-feed-header h3 {
  font-size: 1.6rem;
  color: var(--navy-primary);
  font-family: var(--font-display);
  font-weight: 800;
}

.portal-feed-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 4px;
}

.fan-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.fan-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  width: 100%;
}

.fan-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

.fan-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 8px;
}

.fan-carousel-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(10, 23, 48, 0.08);
  transition: all 0.2s ease;
}

.fan-carousel-arrow-btn:hover:not(:disabled) {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
  transform: scale(1.06);
}

.fan-carousel-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.fan-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fan-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.fan-carousel-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--navy-primary);
}

.fan-carousel-counter {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.portal-feed-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 23, 48, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-feed-card:hover {
  box-shadow: 0 14px 36px rgba(10, 23, 48, 0.12);
}
.portal-feed-card.feed-sponsor-vip {
  border-color: rgba(245, 200, 66, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, rgba(254, 243, 199, 0.15) 100%);
}

.feed-card-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
}
.feed-author-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feed-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy-light);
}
.feed-author-name {
  font-weight: 800;
  color: var(--navy-primary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feed-author-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.feed-media-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  background: #0a1730;
  overflow: hidden;
}
.feed-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.portal-feed-card:hover .feed-media-img {
  transform: scale(1.02);
}
.feed-badge-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 23, 48, 0.85);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feed-content-body {
  padding: 24px;
}
.feed-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 10px;
  font-family: var(--font-display);
  line-height: 1.35;
}
.feed-excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.feed-full-text {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.65;
  white-space: pre-line;
}

.feed-card-footer {
  padding: 16px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  background: rgba(248, 250, 252, 0.6);
  flex-wrap: wrap;
  gap: 12px;
}
.feed-expand-btn {
  background: transparent;
  border: none;
  color: var(--navy-accent);
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.feed-expand-btn:hover {
  color: var(--navy-primary);
}

/* ==========================================================================
   ADMIN STANDALONE COMMAND CENTER (CLEAN LUXURY EDITORIAL THEME)
   ========================================================================== */
.admin-page-body {
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
}

.admin-standalone-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

.admin-layout-standalone {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 800px;
}
@media (max-width: 992px) {
  .admin-layout-standalone {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar-standalone {
  background: var(--navy-primary);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-logo-img {
  height: 32px;
}

.admin-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}
.admin-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}
.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.admin-nav-btn.active {
  background: #ffffff;
  color: var(--navy-primary);
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-content-standalone {
  padding: 36px 40px;
  background: #ffffff;
  overflow-y: auto;
}

.admin-view-head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.admin-view-head h2 {
  font-size: 1.65rem;
  color: var(--navy-primary);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-card .stat-icon {
  font-size: 2rem;
}
.stat-card .stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-primary);
  display: block;
  font-family: var(--font-mono);
}
.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.stat-card .stat-sub {
  font-size: 0.725rem;
  color: var(--navy-accent);
  display: block;
  margin-top: 2px;
}

.admin-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-box h3 {
  font-size: 1.15rem;
  color: var(--navy-primary);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.admin-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .admin-split-layout {
    grid-template-columns: 1fr;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
}
.admin-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.points-quick-actions {
  display: flex;
  gap: 6px;
}

.input-modern {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  box-sizing: border-box;
}
.input-modern:focus {
  outline: none;
  border-color: var(--navy-accent);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

/* QR Scanner Viewport */
.qr-scanner-card {
  max-width: 480px;
  padding: 28px;
  background: #ffffff;
  color: var(--text-primary);
}
.scanner-viewport-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  background: #0a1730;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
  border: 2px solid var(--navy-accent);
}
#scannerVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanner-target-crosshair {
  position: absolute;
  inset: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.scanner-manual-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: var(--radius-sm);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 23, 48, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}
.modal-close-btn:hover {
  background: var(--navy-primary);
  color: #ffffff;
}

/* QR Display Modal & Sticker Preview */
.qr-display-card {
  max-width: 480px !important;
  width: 92% !important;
  padding: 30px !important;
  text-align: center;
  border-radius: 20px !important;
  box-shadow: 0 25px 65px rgba(10, 23, 48, 0.35) !important;
}
.qr-img-wrapper,
.qr-sticker-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 18px auto !important;
  width: 100% !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.qr-display-image {
  width: 240px;
  height: 240px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   PARTNER & SPONSORING MODAL
   ========================================================================== */
.partner-modal-card {
  max-width: 840px;
  width: 95%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  border: 1px solid var(--border-light);
  box-shadow: 0 24px 60px rgba(10, 23, 48, 0.18);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.partner-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.partner-modal-badge {
  margin-bottom: 12px;
}

.partner-modal-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.partner-modal-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.partner-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.partner-option-card {
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition-fast);
}

.partner-become-card {
  background: linear-gradient(180deg, #fef9ee 0%, #fffdf8 100%);
  border: 1px solid rgba(197, 155, 39, 0.35);
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.06);
}

.partner-login-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.partner-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-opt-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.partner-option-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 2px;
}

.partner-opt-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-accent);
  font-weight: 700;
  text-transform: uppercase;
}

.partner-opt-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.partner-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 12px;
}

.partner-benefits-list li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-primary);
  line-height: 1.35;
}

.partner-opt-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-quick-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-quick-login-form label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 4px;
  display: block;
}

.partner-modal-footer-links {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.partner-modal-footer-links .link-btn {
  background: none;
  border: none;
  color: var(--navy-accent);
  font-size: 0.78125rem;
  cursor: pointer;
  font-family: var(--font-main);
  text-align: center;
  transition: color var(--transition-fast);
}

.partner-modal-footer-links .link-btn:hover {
  text-decoration: underline;
  color: var(--navy-primary);
}

.fan-club-sublink {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Navbar breakpoint refinement */
@media (max-width: 1080px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .mobile-nav-drawer {
    display: block;
  }
}

@media (max-width: 768px) {
  .partner-modal-grid {
    grid-template-columns: 1fr;
  }
  .partner-modal-card {
    padding: 24px 18px;
  }
  .partner-modal-title {
    font-size: 1.3rem;
  }
  .cat-standings-main {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE & LUXURY MOTORSPORT BOUTIQUE STYLES
   ========================================================================== */

.product-page-body {
  background-color: #f8fafc;
  min-height: 100vh;
}

.product-detail-main {
  padding-top: 100px;
  padding-bottom: 80px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.product-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-breadcrumbs a:hover {
  color: var(--navy-accent);
}

.product-breadcrumbs .sep {
  color: #cbd5e1;
}

.product-breadcrumbs .current-item {
  color: var(--navy-primary);
  font-weight: 700;
}

.product-loading-view {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 60px;
}

/* Product Media & Gallery */
.product-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-main-image-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-main-image-wrap:hover .product-main-image {
  transform: scale(1.04);
}

.product-badge-overlay {
  display: none !important;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.product-thumbnails-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--navy-primary);
  transform: translateY(-2px);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-racing-cert {
  margin-top: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-racing-cert .cert-icon {
  font-size: 1.6rem;
}

.product-racing-cert .cert-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy-primary);
}

.product-racing-cert .cert-info span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Product Info Column */
.product-info-column {
  display: flex;
  flex-direction: column;
}

.product-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-category-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 0.8px;
}

.stock-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.stock-pill.in-stock {
  background: #dcfce7;
  color: #15803d;
}

.stock-pill.out-of-stock {
  background: #fee2e2;
  color: #b91c1c;
}

.product-detail-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.product-price-section {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.product-price-subtext {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.product-detail-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Size / Option Selector */
.product-option-section {
  margin-bottom: 24px;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.option-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.selected-val {
  font-size: 0.8125rem;
  color: var(--navy-accent);
  font-weight: 700;
}

.size-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-pill {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--navy-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-pill:hover {
  border-color: var(--navy-primary);
}

.size-pill.active {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.size-pill.out-of-stock-pill {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
  position: relative;
}

.size-pill.out-of-stock-pill:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
}

/* Actions & Quantities */
.product-actions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.qty-and-add {
  display: flex;
  gap: 12px;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 4px;
  height: 52px;
}

.qty-selector .qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-primary);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.qty-selector .qty-btn:hover {
  background: var(--navy-primary);
  color: #ffffff;
}

.qty-selector .qty-input {
  width: 44px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-primary);
}

.btn-add-full {
  flex: 1;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
}

.btn-buy-now {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%);
  border: none;
  box-shadow: 0 4px 18px rgba(30, 64, 175, 0.25);
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
}

/* Trust Strip */
.product-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item .trust-icon {
  font-size: 1.35rem;
}

.trust-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--navy-primary);
}

.trust-item span {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Product Accordion */
.product-details-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.accordion-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-primary);
  padding: 14px 18px;
  margin: 0;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.accordion-title:hover {
  background: #f1f5f9;
}

.accordion-title::after {
  content: "▾";
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-title::after {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 18px;
  display: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.accordion-item.active .accordion-body {
  display: block;
}

.product-specs-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.specs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-light);
}

.spec-name {
  font-weight: 700;
  color: var(--navy-primary);
  font-size: 0.8125rem;
}

.spec-value {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-align: right;
}

/* Related Products Section */
.related-products-section {
  margin-top: 40px;
}

/* Checkout Modal */
.checkout-modal-card {
  max-width: 520px;
  width: 95%;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 48px rgba(10, 23, 48, 0.2);
}

.checkout-product-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 32px;
  }
  .product-main-image-wrap {
    height: 380px;
  }
  .product-trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================
   ADMIN PRODUCTS TABLE & MODAL STYLES
   ========================================== */
.admin-table-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

/* ==========================================
   PUBLIC SHOP SEARCH & TOOLBAR
   ========================================== */
.shop-toolbar-wrapper {
  max-width: 680px;
  margin: 0 auto 24px;
}

.shop-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.shop-search-icon {
  position: absolute;
  left: 18px;
  font-size: 1.1rem;
  color: #64748b;
  pointer-events: none;
}

.shop-search-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff !important;
  color: #0f172a !important;
  transition: all var(--transition-normal);
  font-family: inherit;
  box-shadow: 0 4px 18px rgba(10, 23, 48, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shop-search-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.shop-search-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 8px 24px rgba(10, 23, 48, 0.12);
}

.shop-search-clear {
  position: absolute;
  right: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.shop-search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==========================================
   ADMIN SHOP & SUBNAV INTERFACE
   ========================================== */
.admin-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.admin-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-subnav-btn:hover {
  border-color: var(--navy-accent);
  color: var(--navy-primary);
  background: rgba(30, 58, 138, 0.04);
}

.admin-subnav-btn.active {
  background: var(--navy-primary);
  border-color: var(--navy-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* ADMIN KPI CARDS */
.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.admin-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(30, 58, 138, 0.08);
  color: var(--navy-primary);
  flex-shrink: 0;
}

.admin-kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--navy-primary);
  line-height: 1.2;
}

.admin-kpi-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   ADMIN PRODUCTS CARDS GRID
   ========================================== */
.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.admin-product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.admin-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.admin-product-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #f8fafc;
  overflow: hidden;
}

.admin-product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.admin-product-card:hover .admin-product-card-img {
  transform: scale(1.05);
}

.admin-product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.admin-stock-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.admin-stock-tag.in-stock {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.admin-stock-tag.low-stock {
  background: rgba(245, 158, 11, 0.9);
  color: #ffffff;
}

.admin-stock-tag.out-of-stock {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
}

.admin-product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.admin-product-card-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.admin-product-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-product-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.admin-product-card-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--navy-accent);
}

.admin-product-card-stock-cnt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-product-card-actions {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-product-card-actions .btn-action-view {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 0.78125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--navy-primary);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.admin-product-card-actions .btn-action-view:hover {
  border-color: var(--navy-primary);
  background: #f1f5f9;
}

.admin-product-card-actions .btn-action-edit {
  flex: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 0.78125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--navy-primary);
  color: #ffffff;
  border: 1px solid var(--navy-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-product-card-actions .btn-action-edit:hover {
  background: #1e3a8a;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.admin-product-card-actions .btn-action-delete {
  flex: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 0.78125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-product-card-actions .btn-action-delete:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

/* ==========================================
   IMAGE UPLOAD DROPZONE & PREVIEW (SIDE BY SIDE)
   ========================================== */
.product-image-upload-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.image-upload-zone {
  flex: 1;
  border: 2px dashed rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  background: rgba(59, 130, 246, 0.03);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
  border-color: var(--navy-accent);
  background: rgba(59, 130, 246, 0.08);
}

.image-upload-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.image-preview-wrapper {
  margin-top: 0;
  position: relative;
  flex: 0 0 150px;
  width: 150px;
  min-height: 140px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.image-preview-thumbnail {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  border: none;
  object-fit: cover;
  display: block;
}

.image-preview-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
  z-index: 5;
}

.image-preview-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .product-image-upload-row {
    flex-direction: column;
  }
  .image-preview-wrapper {
    width: 100%;
    height: 160px;
    flex: none;
  }
}

/* ==========================================
   ORDERS MANAGEMENT & STATS
   ========================================== */
.admin-orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-orders-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.admin-orders-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  vertical-align: middle;
}

.admin-orders-table tr:hover td {
  background: #fbfcfe;
}

.order-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.order-badge-status.paid {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.order-badge-status.processing {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.order-badge-status.shipped {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.order-badge-status.delivered {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.order-thumb-stack {
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-thumb-img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .admin-products-grid,
  .admin-categories-grid {
    grid-template-columns: 1fr;
  }
  .admin-orders-table th:nth-child(4),
  .admin-orders-table td:nth-child(4) {
    display: none;
  }
}

/* ==========================================
   ADMIN CATEGORIES CARDS GRID
   ========================================== */
.admin-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.admin-category-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.admin-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.admin-category-card-thumb {
  position: relative;
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #0b1528 0%, #1e293b 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-category-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.admin-category-card:hover .admin-category-card-thumb img {
  transform: scale(1.06);
  opacity: 0.95;
}

.admin-category-card-emoji {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.admin-category-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 2;
}

.admin-category-card-order-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(8px);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-category-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.admin-category-card-slug {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.admin-category-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin: 0 0 6px;
  line-height: 1.3;
}

.admin-category-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.admin-category-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.admin-category-card-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--navy-accent);
}

.admin-category-card-order-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-category-card-actions {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.admin-category-card-actions button {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-cat-view {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--navy-primary);
}
.btn-cat-view:hover {
  background: #f1f5f9;
  border-color: var(--navy-accent);
  color: var(--navy-accent);
}

.btn-cat-edit {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--navy-primary);
}
.btn-cat-edit:hover {
  background: #f1f5f9;
  border-color: var(--navy-accent);
  color: var(--navy-accent);
}

.btn-cat-delete {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}
.btn-cat-delete:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
}

@media (max-width: 900px) {
  .admin-cat-form-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  .admin-cat-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   ADMIN VARIANTS & STOCKS MANAGER
   ========================================== */
.admin-variants-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 6px;
}

.admin-variants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-variants-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.btn-preset-pill {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  color: var(--navy-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-preset-pill:hover {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.admin-variants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-variant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.admin-variant-row:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.admin-variant-name-wrap {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-variant-badge {
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--navy-primary);
  min-width: 65px;
}

.admin-variant-stock-wrap {
  flex: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-variant-input {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-weight: 800;
  color: var(--navy-primary);
  text-align: center;
}

.admin-variant-status-tag {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-variant-status-tag.in-stock {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

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

.admin-variant-status-tag.out-stock {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.admin-variant-remove-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.admin-variant-remove-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.admin-variant-add-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  flex-wrap: wrap;
}

.admin-variant-total-pill {
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--navy-accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

@media (max-width: 640px) {
  .admin-variant-row {
    flex-wrap: wrap;
  }
  .admin-variant-stock-wrap {
    width: 100%;
  }
}

/* ==========================================================================
   ACTUS REFACTOR & CLEAN IMAGE UPLOAD STYLES
   ========================================================================== */
.actus-image-upload-box {
  background: var(--bg-tertiary, #f8fafc);
  border: 2px dashed var(--border-medium, #cbd5e1);
  border-radius: var(--radius-md, 10px);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-fast, 0.2s);
  cursor: pointer;
  position: relative;
}

.actus-image-upload-box:hover {
  border-color: var(--navy-accent, #2563eb);
  background: rgba(37, 99, 235, 0.03);
}

.actus-image-upload-box.has-image {
  border-style: solid;
  border-color: var(--border-light, #e2e8f0);
  background: #ffffff;
  padding: 12px;
}

.actus-preview-img {
  max-width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm, 6px);
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.actus-upload-action-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

/* Actus Type Badges */
.actus-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.actus-type-news {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.actus-type-inside {
  background: rgba(147, 51, 234, 0.12);
  color: #7e22ce;
  border: 1px solid rgba(147, 51, 234, 0.25);
}

.actus-type-event {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.actus-type-meeting {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Read Reward Button (+50 pts) */
.btn-read-actus {
  transition: all 0.25s ease;
  font-weight: 700;
}

.btn-read-actus.claimed {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  cursor: default !important;
  pointer-events: none;
}

/* Sticker QR Code Card */
.sticker-qr-card {
  text-align: center;
  background: #ffffff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(10, 23, 48, 0.12);
}

.sticker-qr-img {
  width: 250px !important;
  height: 250px !important;
  max-width: 100% !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 32px rgba(10, 23, 48, 0.14) !important;
  border: 4px solid #f1f5f9 !important;
  background: #ffffff !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  transition: transform 0.2s ease !important;
}

.sticker-qr-img:hover {
  transform: scale(1.02) !important;
}

.qr-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 16px 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.qr-url-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  font-size: 0.775rem;
  font-family: var(--font-mono, monospace);
  color: #334155;
  outline: none;
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.sticker-url-pill {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.775rem;
  color: #334155;
  margin: 12px auto 16px;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   LARGE ADMIN POPUP / MODAL DIALOG SYSTEM
   ========================================================================== */
.admin-large-popup-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: rgba(10, 23, 48, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-large-popup-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.admin-large-popup {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 65px -10px rgba(10, 23, 48, 0.4), 0 0 1px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
}

.admin-large-popup-overlay.active .admin-large-popup {
  transform: scale(1) translateY(0);
}

.admin-large-popup-header {
  padding: 22px 30px;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  flex-shrink: 0;
}

.admin-large-popup-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-primary, #0b192c);
  font-family: var(--font-display, inherit);
}

.admin-large-popup-subtitle {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--text-secondary, #64748b);
}

.admin-large-popup-close {
  background: var(--bg-tertiary, #f1f5f9);
  border: 1px solid var(--border-light, #e2e8f0);
  font-size: 1.5rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.admin-large-popup-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
  transform: rotate(90deg);
}

.admin-large-popup-body {
  padding: 28px 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-large-popup-footer {
  padding: 18px 30px;
  border-top: 1px solid var(--border-light, #e2e8f0);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

.admin-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-pill {
  background: var(--bg-tertiary, #f1f5f9);
  border: 1px solid var(--border-light, #e2e8f0);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  transition: all 0.2s ease;
}

.admin-filter-pill:hover,
.admin-filter-pill.active {
  background: var(--navy-primary, #0b192c);
  color: #ffffff;
  border-color: var(--navy-primary, #0b192c);
}

/* ==========================================================================
   DEV TOOLS: FLOATING DYNAMIC THEME TOGGLE WIDGET
   Allows instant, direct live theme evaluation across all pages
   ========================================================================== */
.dev-theme-toggle-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 23, 48, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-fast, 0.2s ease), background var(--transition-fast, 0.2s ease), box-shadow var(--transition-fast, 0.2s ease), border-color var(--transition-fast, 0.2s ease);
  outline: none;
}

.dev-theme-toggle-widget:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(10, 23, 48, 0.98);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dev-theme-toggle-widget:active {
  transform: translateY(0) scale(0.98);
}

.dev-theme-badge-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary, #142a55) 0%, var(--color-tertiary, #1e40af) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transition: all var(--transition-fast, 0.2s ease);
}

.dev-theme-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.dev-theme-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 800;
  line-height: 1;
}

.dev-theme-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.dev-theme-swatches {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.dev-theme-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.dev-theme-pill-action {
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 9px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 4px;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast, 0.2s ease);
  white-space: nowrap;
}

.dev-theme-toggle-widget:hover .dev-theme-pill-action {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   THEME REFINEMENTS: THEME 2 (ALTERNATE / RACING PULSE #4165AB & #BC235C)
   ========================================================================== */
[data-theme="alternate"] .badge-gold {
  background: rgba(188, 35, 92, 0.09) !important;
  color: #BC235C !important;
  border-color: rgba(188, 35, 92, 0.28) !important;
}

[data-theme="alternate"] .btn-gold {
  background: #BC235C !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(188, 35, 92, 0.28) !important;
}

[data-theme="alternate"] .btn-gold:hover {
  background: #9e1a4c !important;
  box-shadow: 0 8px 20px rgba(188, 35, 92, 0.38) !important;
}

[data-theme="alternate"] .hero-badge-champ {
  background: rgba(188, 35, 92, 0.09) !important;
  color: #BC235C !important;
  border-color: rgba(188, 35, 92, 0.28) !important;
}

[data-theme="alternate"] .badge-red-dot {
  background: #BC235C !important;
  box-shadow: 0 0 8px #BC235C !important;
}

[data-theme="alternate"] .hero-badge-dark {
  background: #4165AB !important;
  color: #ffffff !important;
}

[data-theme="alternate"] .hero-btn-primary {
  background: linear-gradient(135deg, #4165AB 0%, #BC235C 100%) !important;
  box-shadow: 0 4px 18px rgba(65, 101, 171, 0.35) !important;
}

[data-theme="alternate"] .hero-btn-secondary:hover {
  border-color: #4165AB !important;
  color: #4165AB !important;
}

[data-theme="alternate"] .stat-card:hover {
  border-color: rgba(65, 101, 171, 0.35) !important;
  box-shadow: 0 12px 32px rgba(65, 101, 171, 0.14) !important;
}

[data-theme="alternate"] .stat-number {
  color: #4165AB !important;
}

[data-theme="alternate"] .hero-watermark-98 {
  -webkit-text-stroke: 1.8px rgba(65, 101, 171, 0.08) !important;
}

[data-theme="alternate"] .category-pill.active,
[data-theme="alternate"] .filter-btn.active,
[data-theme="alternate"] .tab-btn.active {
  background: #4165AB !important;
  color: #ffffff !important;
  border-color: #4165AB !important;
}

[data-theme="alternate"] .category-pill:hover:not(.active),
[data-theme="alternate"] .filter-btn:hover:not(.active),
[data-theme="alternate"] .tab-btn:hover:not(.active) {
  border-color: #4165AB !important;
  color: #4165AB !important;
}

[data-theme="alternate"] .section-tag {
  background: rgba(65, 101, 171, 0.09) !important;
  color: #4165AB !important;
  border-color: rgba(65, 101, 171, 0.2) !important;
}

[data-theme="alternate"] .shop-product-card:hover {
  border-color: rgba(65, 101, 171, 0.3) !important;
  box-shadow: 0 12px 32px rgba(65, 101, 171, 0.14) !important;
}

[data-theme="alternate"] .product-price-val,
[data-theme="alternate"] .product-price {
  color: #4165AB !important;
}

[data-theme="alternate"] .product-badge-accent,
[data-theme="alternate"] .shop-tag-exclusive,
[data-theme="alternate"] .shop-tag-new {
  background: #BC235C !important;
  color: #ffffff !important;
}

[data-theme="alternate"] .race-week-banner {
  border-color: rgba(65, 101, 171, 0.25) !important;
  background: rgba(65, 101, 171, 0.05) !important;
}

[data-theme="alternate"] .race-week-title,
[data-theme="alternate"] .season-countdown-val,
[data-theme="alternate"] .countdown-num,
[data-theme="alternate"] .season-stat-num {
  color: #4165AB !important;
}

[data-theme="alternate"] .season-badge {
  background: rgba(188, 35, 92, 0.09) !important;
  color: #BC235C !important;
  border-color: rgba(188, 35, 92, 0.28) !important;
}

[data-theme="alternate"] .telemetry-card {
  border-color: rgba(65, 101, 171, 0.2) !important;
}

[data-theme="alternate"] .telemetry-val,
[data-theme="alternate"] .spec-value {
  color: #4165AB !important;
}

[data-theme="alternate"] .telemetry-bar-fill,
[data-theme="alternate"] .gauge-fill,
[data-theme="alternate"] .progress-fill {
  background: linear-gradient(90deg, #4165AB, #BC235C) !important;
}

[data-theme="alternate"] .eras-timeline::before {
  background: linear-gradient(180deg, rgba(65, 101, 171, 0.2) 0%, rgba(188, 35, 92, 0.6) 50%, rgba(65, 101, 171, 0.2) 100%) !important;
}

[data-theme="alternate"] .era-year-badge {
  background: #4165AB !important;
  color: #ffffff !important;
}

[data-theme="alternate"] .era-champ-tag {
  background: rgba(188, 35, 92, 0.09) !important;
  color: #BC235C !important;
  border-color: rgba(188, 35, 92, 0.28) !important;
}

[data-theme="alternate"] .race-event-card:hover,
[data-theme="alternate"] .calendar-card:hover {
  border-color: #4165AB !important;
  box-shadow: 0 12px 32px rgba(65, 101, 171, 0.12) !important;
}

[data-theme="alternate"] .race-date-badge {
  color: #4165AB !important;
}

[data-theme="alternate"] .nav-link:hover,
[data-theme="alternate"] .nav-link.active {
  color: #4165AB !important;
}

[data-theme="alternate"] .nav-link::after {
  background: #4165AB !important;
}

[data-theme="alternate"] .nav-logo-subtitle {
  color: #BC235C !important;
}

[data-theme="alternate"] .footer-top-accent {
  background: linear-gradient(90deg, #4165AB, #BC235C, #4165AB) !important;
}

[data-theme="alternate"] .footer-social-link:hover {
  background: #4165AB !important;
  border-color: #4165AB !important;
  color: #ffffff !important;
}

[data-theme="alternate"] input:focus,
[data-theme="alternate"] select:focus,
[data-theme="alternate"] textarea:focus {
  border-color: #4165AB !important;
  box-shadow: 0 0 0 3px rgba(65, 101, 171, 0.18) !important;
}

/* ==========================================================================
   THEME REFINEMENTS: THEME 3 (ROUGE rgb(177, 62, 44) & JAUNE rgb(247, 204, 88))
   ========================================================================== */

[data-theme="red-gold"] .badge-gold,
[data-theme="rouge-jaune"] .badge-gold,
[data-theme="red-yellow"] .badge-gold {
  background: rgba(247, 204, 88, 0.18) !important;
  color: #926707 !important;
  border-color: rgba(247, 204, 88, 0.45) !important;
}

[data-theme="red-gold"] .btn-gold,
[data-theme="rouge-jaune"] .btn-gold,
[data-theme="red-yellow"] .btn-gold {
  background: rgb(247, 204, 88) !important;
  color: #18181b !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(247, 204, 88, 0.35) !important;
}

[data-theme="red-gold"] .btn-gold:hover,
[data-theme="rouge-jaune"] .btn-gold:hover,
[data-theme="red-yellow"] .btn-gold:hover {
  background: #dfb444 !important;
  box-shadow: 0 8px 22px rgba(247, 204, 88, 0.45) !important;
}

[data-theme="red-gold"] .hero-badge-champ,
[data-theme="rouge-jaune"] .hero-badge-champ,
[data-theme="red-yellow"] .hero-badge-champ {
  background: rgba(177, 62, 44, 0.1) !important;
  color: rgb(177, 62, 44) !important;
  border-color: rgba(177, 62, 44, 0.28) !important;
}

[data-theme="red-gold"] .badge-red-dot,
[data-theme="rouge-jaune"] .badge-red-dot,
[data-theme="red-yellow"] .badge-red-dot {
  background: rgb(177, 62, 44) !important;
  box-shadow: 0 0 8px rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .hero-badge-dark,
[data-theme="rouge-jaune"] .hero-badge-dark,
[data-theme="red-yellow"] .hero-badge-dark {
  background: rgb(177, 62, 44) !important;
  color: #ffffff !important;
}

[data-theme="red-gold"] .hero-btn-primary,
[data-theme="rouge-jaune"] .hero-btn-primary,
[data-theme="red-yellow"] .hero-btn-primary {
  background: linear-gradient(135deg, rgb(177, 62, 44) 0%, #8c2315 100%) !important;
  box-shadow: 0 4px 18px rgba(177, 62, 44, 0.35) !important;
}

[data-theme="red-gold"] .hero-btn-secondary:hover,
[data-theme="rouge-jaune"] .hero-btn-secondary:hover,
[data-theme="red-yellow"] .hero-btn-secondary:hover {
  border-color: rgb(177, 62, 44) !important;
  color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .stat-card:hover,
[data-theme="rouge-jaune"] .stat-card:hover,
[data-theme="red-yellow"] .stat-card:hover {
  border-color: rgba(177, 62, 44, 0.35) !important;
  box-shadow: 0 12px 32px rgba(177, 62, 44, 0.16) !important;
}

[data-theme="red-gold"] .stat-number,
[data-theme="rouge-jaune"] .stat-number,
[data-theme="red-yellow"] .stat-number {
  color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .hero-watermark-98,
[data-theme="rouge-jaune"] .hero-watermark-98,
[data-theme="red-yellow"] .hero-watermark-98 {
  -webkit-text-stroke: 1.8px rgba(177, 62, 44, 0.09) !important;
}

[data-theme="red-gold"] .category-pill.active,
[data-theme="red-gold"] .filter-btn.active,
[data-theme="red-gold"] .tab-btn.active,
[data-theme="rouge-jaune"] .category-pill.active,
[data-theme="rouge-jaune"] .filter-btn.active,
[data-theme="rouge-jaune"] .tab-btn.active,
[data-theme="red-yellow"] .category-pill.active,
[data-theme="red-yellow"] .filter-btn.active,
[data-theme="red-yellow"] .tab-btn.active {
  background: rgb(177, 62, 44) !important;
  color: #ffffff !important;
  border-color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .category-pill:hover:not(.active),
[data-theme="red-gold"] .filter-btn:hover:not(.active),
[data-theme="red-gold"] .tab-btn:hover:not(.active),
[data-theme="rouge-jaune"] .category-pill:hover:not(.active),
[data-theme="rouge-jaune"] .filter-btn:hover:not(.active),
[data-theme="rouge-jaune"] .tab-btn:hover:not(.active),
[data-theme="red-yellow"] .category-pill:hover:not(.active),
[data-theme="red-yellow"] .filter-btn:hover:not(.active),
[data-theme="red-yellow"] .tab-btn:hover:not(.active) {
  border-color: rgb(177, 62, 44) !important;
  color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .section-tag,
[data-theme="rouge-jaune"] .section-tag,
[data-theme="red-yellow"] .section-tag {
  background: rgba(177, 62, 44, 0.09) !important;
  color: rgb(177, 62, 44) !important;
  border-color: rgba(177, 62, 44, 0.22) !important;
}

[data-theme="red-gold"] .shop-product-card:hover,
[data-theme="rouge-jaune"] .shop-product-card:hover,
[data-theme="red-yellow"] .shop-product-card:hover {
  border-color: rgba(177, 62, 44, 0.3) !important;
  box-shadow: 0 12px 32px rgba(177, 62, 44, 0.16) !important;
}

[data-theme="red-gold"] .product-price-val,
[data-theme="red-gold"] .product-price,
[data-theme="rouge-jaune"] .product-price-val,
[data-theme="rouge-jaune"] .product-price,
[data-theme="red-yellow"] .product-price-val,
[data-theme="red-yellow"] .product-price {
  color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .product-badge-accent,
[data-theme="red-gold"] .shop-tag-exclusive,
[data-theme="red-gold"] .shop-tag-new,
[data-theme="rouge-jaune"] .product-badge-accent,
[data-theme="rouge-jaune"] .shop-tag-exclusive,
[data-theme="rouge-jaune"] .shop-tag-new,
[data-theme="red-yellow"] .product-badge-accent,
[data-theme="red-yellow"] .shop-tag-exclusive,
[data-theme="red-yellow"] .shop-tag-new {
  background: rgb(177, 62, 44) !important;
  color: #ffffff !important;
}

[data-theme="red-gold"] .race-week-banner,
[data-theme="rouge-jaune"] .race-week-banner,
[data-theme="red-yellow"] .race-week-banner {
  border-color: rgba(177, 62, 44, 0.25) !important;
  background: rgba(177, 62, 44, 0.05) !important;
}

[data-theme="red-gold"] .race-week-title,
[data-theme="red-gold"] .season-countdown-val,
[data-theme="red-gold"] .countdown-num,
[data-theme="red-gold"] .season-stat-num,
[data-theme="rouge-jaune"] .race-week-title,
[data-theme="rouge-jaune"] .season-countdown-val,
[data-theme="rouge-jaune"] .countdown-num,
[data-theme="rouge-jaune"] .season-stat-num,
[data-theme="red-yellow"] .race-week-title,
[data-theme="red-yellow"] .season-countdown-val,
[data-theme="red-yellow"] .countdown-num,
[data-theme="red-yellow"] .season-stat-num {
  color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .season-badge,
[data-theme="rouge-jaune"] .season-badge,
[data-theme="red-yellow"] .season-badge {
  background: rgba(177, 62, 44, 0.1) !important;
  color: rgb(177, 62, 44) !important;
  border-color: rgba(177, 62, 44, 0.3) !important;
}

[data-theme="red-gold"] .telemetry-card,
[data-theme="rouge-jaune"] .telemetry-card,
[data-theme="red-yellow"] .telemetry-card {
  border-color: rgba(177, 62, 44, 0.2) !important;
}

[data-theme="red-gold"] .telemetry-val,
[data-theme="red-gold"] .spec-value,
[data-theme="rouge-jaune"] .telemetry-val,
[data-theme="rouge-jaune"] .spec-value,
[data-theme="red-yellow"] .telemetry-val,
[data-theme="red-yellow"] .spec-value {
  color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .telemetry-bar-fill,
[data-theme="red-gold"] .gauge-fill,
[data-theme="red-gold"] .progress-fill,
[data-theme="rouge-jaune"] .telemetry-bar-fill,
[data-theme="rouge-jaune"] .gauge-fill,
[data-theme="rouge-jaune"] .progress-fill,
[data-theme="red-yellow"] .telemetry-bar-fill,
[data-theme="red-yellow"] .gauge-fill,
[data-theme="red-yellow"] .progress-fill {
  background: linear-gradient(90deg, rgb(177, 62, 44), rgb(247, 204, 88)) !important;
}

[data-theme="red-gold"] .eras-timeline::before,
[data-theme="rouge-jaune"] .eras-timeline::before,
[data-theme="red-yellow"] .eras-timeline::before {
  background: linear-gradient(180deg, rgba(177, 62, 44, 0.25) 0%, rgba(247, 204, 88, 0.75) 50%, rgba(177, 62, 44, 0.25) 100%) !important;
}

[data-theme="red-gold"] .era-year-badge,
[data-theme="rouge-jaune"] .era-year-badge,
[data-theme="red-yellow"] .era-year-badge {
  background: rgb(177, 62, 44) !important;
  color: #ffffff !important;
}

[data-theme="red-gold"] .era-champ-tag,
[data-theme="rouge-jaune"] .era-champ-tag,
[data-theme="red-yellow"] .era-champ-tag {
  background: rgba(247, 204, 88, 0.18) !important;
  color: #926707 !important;
  border-color: rgba(247, 204, 88, 0.45) !important;
}

[data-theme="red-gold"] .race-event-card:hover,
[data-theme="red-gold"] .calendar-card:hover,
[data-theme="rouge-jaune"] .race-event-card:hover,
[data-theme="rouge-jaune"] .calendar-card:hover,
[data-theme="red-yellow"] .race-event-card:hover,
[data-theme="red-yellow"] .calendar-card:hover {
  border-color: rgb(177, 62, 44) !important;
  box-shadow: 0 12px 32px rgba(177, 62, 44, 0.14) !important;
}

[data-theme="red-gold"] .race-date-badge,
[data-theme="rouge-jaune"] .race-date-badge,
[data-theme="red-yellow"] .race-date-badge {
  color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .nav-link:hover,
[data-theme="red-gold"] .nav-link.active,
[data-theme="rouge-jaune"] .nav-link:hover,
[data-theme="rouge-jaune"] .nav-link.active,
[data-theme="red-yellow"] .nav-link:hover,
[data-theme="red-yellow"] .nav-link.active {
  color: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .nav-link::after,
[data-theme="rouge-jaune"] .nav-link::after,
[data-theme="red-yellow"] .nav-link::after {
  background: rgb(177, 62, 44) !important;
}

[data-theme="red-gold"] .nav-logo-subtitle,
[data-theme="rouge-jaune"] .nav-logo-subtitle,
[data-theme="red-yellow"] .nav-logo-subtitle {
  color: rgb(247, 204, 88) !important;
}

[data-theme="red-gold"] .footer-top-accent,
[data-theme="rouge-jaune"] .footer-top-accent,
[data-theme="red-yellow"] .footer-top-accent {
  background: linear-gradient(90deg, rgb(177, 62, 44), rgb(247, 204, 88), rgb(177, 62, 44)) !important;
}

[data-theme="red-gold"] .footer-social-link:hover,
[data-theme="rouge-jaune"] .footer-social-link:hover,
[data-theme="red-yellow"] .footer-social-link:hover {
  background: rgb(177, 62, 44) !important;
  border-color: rgb(177, 62, 44) !important;
  color: #ffffff !important;
}

[data-theme="red-gold"] input:focus,
[data-theme="red-gold"] select:focus,
[data-theme="red-gold"] textarea:focus,
[data-theme="rouge-jaune"] input:focus,
[data-theme="rouge-jaune"] select:focus,
[data-theme="rouge-jaune"] textarea:focus,
[data-theme="red-yellow"] input:focus,
[data-theme="red-yellow"] select:focus,
[data-theme="red-yellow"] textarea:focus {
  border-color: rgb(177, 62, 44) !important;
  box-shadow: 0 0 0 3px rgba(177, 62, 44, 0.2) !important;
}

/* Mobile adjustments for Dev Toggle (Hidden on public, styled in admin) */
.dev-theme-toggle-widget {
  display: none !important;
}

/* ==========================================================================
   ADMIN THEME EDITOR & CMS EXPANSION STYLES
   ========================================================================== */
.admin-theme-editor-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.theme-preset-btn {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-preset-btn:hover {
  border-color: var(--navy-accent);
  transform: translateY(-2px);
}

.theme-preset-btn.active {
  border-color: var(--navy-primary);
  background: var(--navy-light);
  box-shadow: 0 4px 12px rgba(10, 23, 48, 0.08);
}

.preset-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-btn-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-primary);
}

.preset-swatches {
  display: flex;
  gap: 6px;
}

.preset-swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.three-colors-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.color-picker-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-picker-card label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.color-input-combo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-input-native {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
}

.color-input-hex {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-live-preview-bar {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.preview-logo-demo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cms-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.cms-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.cms-item-card:hover {
  border-color: var(--navy-accent);
  box-shadow: 0 4px 12px rgba(10, 23, 48, 0.05);
}

.cms-item-thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.cms-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cms-item-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-primary);
  margin-bottom: 2px;
}

.cms-item-meta {
  font-size: 0.78125rem;
  color: var(--text-muted);
}

.cms-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   ENHANCED ADMIN FORMS, MODALS & MEDIA PICKER
   ========================================================================== */

/* Form Grids */
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 680px) {
  .form-row-2,
  .form-row-3,
  .form-row-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Modern Admin Modal Structure */
.admin-modal-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(10, 23, 48, 0.4), 0 0 1px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 880px);
  width: 95%;
  max-width: 820px;
  overflow: hidden;
  position: relative;
  animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.admin-modal-header {
  background: linear-gradient(135deg, #0a1730 0%, #112246 100%);
  color: #ffffff;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.admin-modal-header-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-modal-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.admin-modal-subtitle {
  margin: 3px 0 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.admin-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-modal-close:hover {
  background: #e11d48;
  border-color: #e11d48;
  transform: rotate(90deg);
}

.admin-modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  flex: 1 1 auto;
  background: #f8fafc;
}

.admin-modal-footer {
  background: #ffffff;
  padding: 16px 26px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* Themed Field Sections */
.admin-card-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(10, 23, 48, 0.03);
}

.admin-card-section:last-child {
  margin-bottom: 0;
}

.admin-card-section-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

/* Season Stats 3-Card Grid */
.stat-field-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}

.stat-field-box label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.stat-field-box input {
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-primary);
  background: #ffffff;
}

/* Season Image Uploader & Preview Box */
.season-image-showcase {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 720px) {
  .season-image-showcase {
    grid-template-columns: 1fr;
  }
}

.season-image-preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #0a1730;
  box-shadow: 0 4px 14px rgba(10, 23, 48, 0.12);
}

.season-image-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.season-image-preview-container:hover img {
  transform: scale(1.03);
}

.season-image-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 23, 48, 0.75);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.season-image-path-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 23, 48, 0.9) 0%, transparent 100%);
  padding: 16px 10px 8px;
  color: #e2e8f0;
  font-size: 0.6875rem;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-image-actions-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.season-image-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-media-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-image-dropzone {
  border: 2px dashed #93c5fd;
  background: #eff6ff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-image-dropzone:hover,
.season-image-dropzone.dragover {
  border-color: #2563eb;
  background: #dbeafe;
}

.season-image-dropzone-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.season-image-dropzone-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e40af;
}

.season-image-dropzone-sub {
  font-size: 0.72rem;
  color: #64748b;
}

/* Media Library Picker Modal */
.media-picker-card {
  max-width: 960px !important;
  width: 95% !important;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.media-picker-header {
  padding: 16px 24px;
  background: #0a1730;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.media-picker-search-bar {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.media-picker-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
}

.media-picker-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.media-picker-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.media-picker-tabs-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.media-tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.media-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.media-tab-btn.active {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

.media-picker-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  background: #f8fafc;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.media-item-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.media-item-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.media-item-card.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
  background: #eff6ff;
}

.media-item-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
}

.media-item-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.media-item-card:hover .media-item-thumb-wrapper img {
  transform: scale(1.06);
}

.media-item-check-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.media-item-card.selected .media-item-check-badge {
  display: flex;
}

.media-item-cat-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(10, 23, 48, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.media-item-info {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-item-name {
  font-size: 0.775rem;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-item-meta {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 3px;
  display: flex;
  justify-content: space-between;
}

.media-picker-footer {
  padding: 14px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.media-selected-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.media-selected-preview-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #0f172a;
  flex-shrink: 0;
}

.media-selected-details {
  min-width: 0;
}

.media-selected-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-selected-path {
  font-size: 0.72rem;
  color: #64748b;
  font-family: monospace;
}

/* ==========================================================================
   LIVE TIMING MISE EN SOMMEIL (FAN CLUB & SPONSOR PORTAL)
   ========================================================================== */
.portal-telemetry-disabled-wrapper {
  position: relative !important;
  overflow: hidden !important;
  min-height: 420px;
  border-radius: var(--radius-lg);
}

.portal-telemetry-inner-content {
  opacity: 0.32;
  filter: grayscale(85%) blur(0.75px);
  pointer-events: none !important;
  user-select: none !important;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.telemetry-disabled-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 23, 48, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
}

.telemetry-coming-soon-badge {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  padding: 32px 36px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  pointer-events: auto;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.coming-soon-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 12px;
}

.coming-soon-tag {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.coming-soon-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.coming-soon-text {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.coming-soon-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
  animation: pulseLight 1.8s infinite;
}

@keyframes pulseLight {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(96, 165, 250, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

.tab-soon-pill {
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.22);
  color: #f59e0b;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(245, 158, 11, 0.35);
  vertical-align: middle;
}

/* ==========================================================================
   ADMIN SPONSOR MANAGEMENT (RESPONSIVE CARDS GRID & MODALS)
   ========================================================================== */
.sponsors-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  width: 100%;
}

.sponsor-admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(10, 23, 48, 0.06);
}

.sponsor-admin-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(10, 23, 48, 0.12);
}

.sponsor-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sponsor-card-logo-box {
  width: 72px;
  height: 48px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
}

.sponsor-card-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.sponsor-admin-tier-badge {
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sponsor-admin-tier-badge.tier-title {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sponsor-admin-tier-badge.tier-platinum {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.sponsor-admin-tier-badge.tier-gold {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fef08a;
}

.sponsor-admin-tier-badge.tier-silver {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.sponsor-admin-tier-badge.tier-supplier {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.sponsor-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.sponsor-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  font-family: var(--font-display);
  line-height: 1.3;
}

.sponsor-card-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.sponsor-card-code-row .code-lbl {
  color: #64748b;
  font-weight: 600;
}

.sponsor-code-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.775rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.5px;
}

.sponsor-card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8125rem;
}

.sponsor-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.sponsor-meta-item strong {
  color: #0f172a;
}

.sponsor-meta-item .meta-icon {
  font-size: 0.875rem;
  opacity: 0.8;
  width: 18px;
  text-align: center;
}

.sponsor-meta-link {
  color: #2563eb;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.sponsor-meta-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.sponsor-meta-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
}

.sponsor-card-description {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsor-card-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.sponsor-card-footer button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  padding: 5px 12px;
}

.btn-delete-news {
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-delete-news:hover {
  transform: scale(1.03);
}

