/* assets/css/showroom.css — Cars on Caledon: Luxury Obsidian & Caledon Royal Blue Showroom */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ── 1. Color Architecture (Caledon Royal Blue & Obsidian Glass) ── */
  --color-bg:             #0B111E;   /* Obsidian Midnight Ground */
  --color-bg-subdued:     #101726;   /* Deep Navy Inset */
  --color-surface:        #131B2E;   /* Glass Card Navy */
  --color-surface-subdued:#19233C;

  --color-primary:        #23419A;   /* Caledon Royal Blue */
  --color-primary-light:  #3B62D6;   /* Royal Blue Bright */
  --color-primary-dark:   #172A66;   /* Deep Navy Anchor */
  --color-accent-bright:  #6E9BFF;   /* Electric Caledon Blue */
  --color-accent-glow:    #38BDF8;   /* Cyan Pulse Dot */
  --color-gold:           #D9B166;   /* Subtle Platinum Gold */

  --color-ink:            #F8FAFC;   /* Crisp White/Slate Text */
  --color-ink-secondary:  #CBD5E1;   /* Subdued Text */
  --color-ink-muted:      #94A3B8;   /* Muted Metadata */
  --color-ink-micro:      #64748B;   /* Slate Dust */

  --color-border:         rgba(110, 155, 255, 0.22); /* Glowing Blue Rim */
  --color-border-subtle:  rgba(255, 255, 255, 0.08);
  --color-dark-anchor:    #070A12;

  --color-accent-soft:    rgba(35, 65, 154, 0.14);
  --color-accent-edge:    rgba(110, 155, 255, 0.28);

  /* Refined Luxury WhatsApp Theme (Obsidian Card + Blue Border + Electric Cyan Accent) */
  --color-wa:             #131B2E;
  --color-wa-hover:       #23419A;
  --color-wa-glyph:       #38BDF8;

  /* ── Semantic Mappings ── */
  --bg:          var(--color-bg);
  --bg-raised:   var(--color-surface);
  --bg-inset:    var(--color-bg-subdued);
  --rule:        var(--color-border);
  --rule-subtle: var(--color-border-subtle);
  --ink:         var(--color-ink);
  --ink-main:    var(--color-ink);
  --ink-quiet:   var(--color-ink-secondary);
  --ink-mute:    var(--color-ink-muted);
  --accent:      var(--color-primary);
  --accent-dark: var(--color-primary-dark);
  --accent-bright: var(--color-accent-bright);
  --gold:        var(--color-gold);

  /* ── 2. Typography System ── */
  --font-serif:   'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-sans:    'Manrope', -apple-system, system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Space Grotesk', monospace;

  /* ── Motion & Transitions ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring:      cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ── Light Mode Token Overrides ── */
[data-theme="light"] {
  --color-bg:             #F8FAFC;
  --color-bg-subdued:     #EEF2F6;
  --color-surface:        #FFFFFF;
  --color-surface-subdued:#F1F5F9;

  --color-primary:        #23419A;
  --color-primary-light:  #3B62D6;
  --color-primary-dark:   #172A66;
  --color-accent-bright:  #23419A;   /* Deep Sapphire Blue for high light-mode contrast */
  --color-accent-glow:    #0284C7;
  --color-accent-soft:    rgba(35, 65, 154, 0.08);
  --color-accent-edge:    rgba(35, 65, 154, 0.22);

  --color-ink:            #0F172A;
  --color-ink-secondary:  #334155;
  --color-ink-muted:      #64748B;
  --color-ink-micro:      #94A3B8;

  --color-border:         rgba(35, 65, 154, 0.16);
  --color-border-subtle:  #E2E8F0;
  --color-dark-anchor:    #0B111E;

  --bg:          var(--color-bg);
  --bg-raised:   var(--color-surface);
  --bg-inset:    var(--color-bg-subdued);
  --rule:        var(--color-border);
  --rule-subtle: var(--color-border-subtle);
  --ink:         var(--color-ink);
  --ink-main:    var(--color-ink);
  --ink-quiet:   var(--color-ink-secondary);
  --ink-mute:    var(--color-ink-muted);
  --accent:      var(--color-primary);
  --accent-dark: var(--color-primary-dark);
  --accent-bright: var(--color-accent-bright);
}

/* ── Reset & Base Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Ambient Radial Sapphire Mesh ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(900px circle at 80% 12%, rgba(35, 65, 154, 0.38), transparent 60%),
    radial-gradient(750px circle at 15% 85%, rgba(110, 155, 255, 0.22), transparent 55%),
    radial-gradient(600px circle at 50% 50%, rgba(56, 189, 248, 0.12), transparent 60%);
  opacity: 0.95;
  animation: ambientMeshDrift 22s infinite alternate ease-in-out;
}
@keyframes ambientMeshDrift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.03) translate(-1%, 1%); }
  100% { transform: scale(1) translate(0, 0); }
}
[data-theme="light"] body::before {
  background: 
    radial-gradient(900px circle at 80% 12%, rgba(35, 65, 154, 0.08), transparent 60%),
    radial-gradient(750px circle at 15% 85%, rgba(110, 155, 255, 0.06), transparent 55%);
}

/* ── Scroll Reveal Engine ── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.rv.in {
  opacity: 1;
  transform: translateY(0);
}
.rv-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.rv-scale.in {
  opacity: 1;
  transform: scale(1);
}
.rv-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv-left.in { opacity: 1; transform: translateX(0); }
.rv-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv-right.in { opacity: 1; transform: translateX(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ── Glassmorphism Utility Engine ── */
.glass-panel {
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(110, 155, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(35, 65, 154, 0.16);
  box-shadow: 0 20px 50px -15px rgba(11, 17, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-card {
  background: rgba(19, 27, 46, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(110, 155, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 155, 255, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(35, 65, 154, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.text-glow {
  color: var(--color-accent-bright) !important;
  text-shadow: 0 0 24px rgba(110, 155, 255, 0.6);
}
[data-theme="light"] .text-glow {
  color: #23419A !important;
  text-shadow: none;
}

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(35, 65, 154, 0.25);
  border: 1px solid rgba(110, 155, 255, 0.35);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-bright);
  box-shadow: 0 0 14px rgba(35, 65, 154, 0.35);
}
[data-theme="light"] .badge-glow {
  background: rgba(35, 65, 154, 0.08);
  border-color: rgba(35, 65, 154, 0.22);
  color: #23419A;
  box-shadow: none;
}

/* ── Volumetric Ambient Lighting & Section Shine ── */
.shine-ambient {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.shine-ambient::before {
  content: "";
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: min(1200px, 150vw);
  height: 520px;
  background: radial-gradient(
    ellipse 65% 50% at 50% 20%,
    rgba(35, 65, 154, 0.42) 0%,
    rgba(56, 189, 248, 0.18) 25%,
    rgba(35, 65, 154, 0.08) 50%,
    rgba(19, 27, 46, 0.02) 70%,
    transparent 85%
  );
  pointer-events: none;
  z-index: 0;
  contain: paint;
  will-change: auto;
}
[data-theme="light"] .shine-ambient::before {
  background: radial-gradient(
    ellipse 65% 50% at 50% 20%,
    rgba(35, 65, 154, 0.12) 0%,
    rgba(56, 189, 248, 0.06) 30%,
    rgba(35, 65, 154, 0.02) 55%,
    transparent 80%
  );
}

.shine-cone {
  position: relative;
}
.shine-cone::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: 70%;
  height: 120px;
  background: radial-gradient(
    ellipse 80% 50% at 50% 100%,
    rgba(110, 155, 255, 0.28) 0%,
    rgba(35, 65, 154, 0.14) 35%,
    rgba(35, 65, 154, 0.03) 65%,
    transparent 85%
  );
  pointer-events: none;
  z-index: 0;
  contain: paint;
}
[data-theme="light"] .shine-cone::after {
  background: radial-gradient(
    ellipse 80% 50% at 50% 100%,
    rgba(35, 65, 154, 0.08) 0%,
    transparent 80%
  );
}

/* ── Floating Bento Grid Architecture ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(130% 130% at 50% 0%, rgba(35, 65, 154, 0.22) 0%, rgba(19, 27, 46, 0.78) 45%, rgba(11, 17, 30, 0.94) 100%);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(110, 155, 255, 0.22);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 16px 40px -12px rgba(0, 0, 0, 0.55),
    0 0 20px -8px rgba(35, 65, 154, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 155, 255, 0.55);
  box-shadow: 
    0 24px 55px -10px rgba(0, 0, 0, 0.65),
    0 0 32px rgba(35, 65, 154, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .bento-card {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(35, 65, 154, 0.16);
  box-shadow: 
    0 16px 40px -12px rgba(11, 17, 30, 0.08),
    0 4px 12px rgba(35, 65, 154, 0.04),
    inset 0 1px 0 #FFFFFF;
}
[data-theme="light"] .bento-card:hover {
  border-color: rgba(35, 65, 154, 0.45);
  box-shadow: 
    0 24px 50px -10px rgba(11, 17, 30, 0.14),
    0 0 24px rgba(35, 65, 154, 0.15),
    inset 0 1px 0 #FFFFFF;
}

/* Bento Spans */
.bento-span-12 { grid-column: span 12; }
.bento-span-8  { grid-column: span 8; }
.bento-span-7  { grid-column: span 7; }
.bento-span-6  { grid-column: span 6; }
.bento-span-5  { grid-column: span 5; }
.bento-span-4  { grid-column: span 4; }

@media (max-width: 960px) {
  .bento-span-8,
  .bento-span-7,
  .bento-span-6,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 12;
  }
  .bento-card {
    padding: 24px 20px;
  }
}

/* ── Glint Ray Sweeps & Breathing Aura Rings ── */
.card::after, .cat-tile::after, .wiz-card::after, .bento-card::after {
  content: "";
  position: absolute;
  top: -70%; left: -70%;
  width: 35%; height: 240%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(110, 155, 255, 0.25) 50%,
    rgba(56, 189, 248, 0.2) 55%,
    rgba(255, 255, 255, 0.04) 65%,
    transparent 100%
  );
  transform: rotate(26deg);
  pointer-events: none;
  animation: glintRaySweep 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
@keyframes glintRaySweep {
  0%, 70% { left: -70%; opacity: 0; }
  71% { opacity: 1; }
  100% { left: 170%; opacity: 0; }
}

.card-vir-badge::after, .hero-car-floating-badge::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(56, 189, 248, 0.6);
  animation: auraBreathing 3.2s infinite ease-in-out;
  pointer-events: none;
}
@keyframes auraBreathing {
  0%, 100% { transform: scale(1); opacity: 0.3; box-shadow: 0 0 6px rgba(56, 189, 248, 0.15); }
  50% { transform: scale(1.08); opacity: 0.9; box-shadow: 0 0 16px rgba(56, 189, 248, 0.5); }
}

/* ── Skip Link ── */
.coc-skip {
  position: absolute; top: -60px; left: 12px; z-index: 9999;
  background: var(--accent); color: #fff; padding: 10px 18px;
  font-weight: 600; text-decoration: none; border-radius: 6px;
  transition: top 0.2s var(--ease);
}
.coc-skip:focus { top: 12px; }

/* ── Typography Hierarchy ── */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
}
.font-mono { font-family: var(--font-mono); }

/* ── Layout Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-header {
  position: relative;
  margin-bottom: 44px;
}
.section-header::before {
  content: "";
  position: absolute;
  top: -24px; left: 50%;
  transform: translateX(-50%);
  width: clamp(240px, 45vw, 500px);
  height: 110px;
  background: radial-gradient(ellipse, rgba(35, 65, 154, 0.28) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(28px);
  z-index: -1;
}
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent-bright);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--color-accent-glow);
  box-shadow: 0 0 10px var(--color-accent-glow);
  border-radius: 50%;
}
[data-theme="light"] .section-eyebrow {
  color: #23419A;
}
[data-theme="light"] .section-eyebrow::before {
  background: #23419A;
  box-shadow: none;
}

.section-title {
  color: var(--color-ink);
}
.section-title em,
h1 em,
h2 em,
h3 em,
.hero-title em {
  color: #6E9BFF !important;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 0 16px rgba(110, 155, 255, 0.45);
}
[data-theme="light"] .section-title em,
[data-theme="light"] h1 em,
[data-theme="light"] h2 em,
[data-theme="light"] h3 em,
[data-theme="light"] .hero-title em {
  color: #23419A !important;
  text-shadow: none;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--ink-quiet);
  margin-top: 10px;
  max-width: 660px;
}

/* ── Hero Grid (2-Column Feature Split) ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Topbar (Monospace Telemetry) ── */
.topbar {
  background-color: var(--color-dark-anchor);
  color: #FAF5EE;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.topbar-items { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 14px; height: 14px; fill: var(--accent); }
.topbar-link { color: #FAF5EE; text-decoration: none; transition: color 0.2s; }
.topbar-link:hover { color: var(--accent); }



/* ── Header & Sticky Glassmorphic Navigation ── */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 245, 238, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
  transition: all 0.3s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.8) 25%, rgba(110, 155, 255, 1) 50%, rgba(56, 189, 248, 0.8) 75%, transparent 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  z-index: 10;
}
[data-theme="dark"] .header {
  background: rgba(11, 17, 30, 0.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(110, 155, 255, 0.28);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.65), 0 0 25px -5px rgba(35, 65, 154, 0.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 92px;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-brand span { color: var(--accent); font-style: italic; }
.logo-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bg-inset);
  color: var(--ink-quiet);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-quiet);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
}

.header-ctas { display: flex; align-items: center; gap: 12px; }

/* ── Mobile Hamburger Toggle Button ── */
.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--bg-inset);
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  transition: all 0.2s var(--ease);
}
.mobile-nav-toggle:hover {
  background: var(--color-accent-soft);
  border-color: var(--accent);
}
.mobile-nav-toggle .hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Glassmorphic Mobile Navigation Drawer ── */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999995;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}
.mobile-nav-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-drawer.is-open .mobile-nav-backdrop {
  opacity: 1;
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 86%;
  max-width: 360px;
  background: rgba(11, 17, 30, 0.94);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-left: 1px solid rgba(110, 155, 255, 0.28);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.65);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
[data-theme="light"] .mobile-nav-panel {
  background: rgba(250, 245, 238, 0.96);
  border-left-color: rgba(35, 65, 154, 0.18);
}
.mobile-nav-drawer.is-open .mobile-nav-panel {
  transform: translateX(0);
}
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.mobile-nav-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.mobile-nav-close {
  background: var(--bg-inset);
  border: 1px solid var(--rule);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-nav-close:hover {
  background: var(--color-accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--color-accent-soft);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}
.mobile-nav-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(35, 65, 154, 0.25);
  border: 1px solid rgba(110, 155, 255, 0.35);
  color: var(--color-accent-bright);
}
.mobile-nav-footer {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  margin-top: 18px;
}
.mobile-nav-dealer-meta {
  font-size: 0.78rem;
  color: var(--ink-quiet);
  line-height: 1.6;
  text-align: center;
  padding-top: 8px;
}

/* ── Brand 3D Logos (Increased Prominence) ── */
.brand-header-img {
  height: 72px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}
[data-theme="light"] .brand-header-img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}
.brand-footer-img {
  height: 64px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
}
@media (max-width: 768px) {
  .header-inner { height: 76px; }
  .brand-header-img { height: 52px; max-width: 220px; }
}

/* ── Buttons (Full Orange Blend, Glimmer Glare & Shine) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 0.92rem; font-weight: 700;
  border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s ease, border-color 0.3s ease, color 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Light Glimmer Glare Beam Sweep (::after) */
.btn::after {
  content: '';
  position: absolute;
  top: -20%; left: -140%;
  width: 75%; height: 140%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 30%, 
    rgba(255, 255, 255, 0.65) 50%, 
    rgba(255, 255, 255, 0.2) 70%, 
    transparent 100%
  );
  transform: rotate(22deg);
  transition: left 0.8s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.btn:hover::after {
  left: 150%;
}

.btn:hover { transform: translateY(-3px) scale(1.01); }
.btn:active { transform: translateY(-1px) scale(0.99); }

/* Primary Button: Caledon Royal Sapphire & Electric Glow */
.btn-primary {
  background: linear-gradient(135deg, #3B62D6 0%, #23419A 55%, #172A66 100%);
  color: #FFFFFF !important;
  border-color: rgba(110, 155, 255, 0.4);
  box-shadow: 
    0 6px 20px rgba(35, 65, 154, 0.45), 
    0 2px 6px rgba(11, 17, 30, 0.35), 
    inset 0 1px 0.5px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4F75E8 0%, #294BB0 55%, #1B327A 100%);
  border-color: rgba(110, 155, 255, 0.75);
  box-shadow: 
    0 10px 28px rgba(35, 65, 154, 0.65), 
    0 4px 12px rgba(11, 17, 30, 0.4), 
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  color: #FFFFFF !important;
}

/* Outline Button: Frosted Obsidian Glass with Electric Blue Accent Rim */
.btn-outline {
  background: rgba(19, 27, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-color: rgba(110, 155, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.25);
}
.btn-outline:hover {
  border-color: var(--color-accent-bright);
  color: #FFFFFF;
  background: rgba(35, 65, 154, 0.25);
  box-shadow: 0 8px 22px rgba(35, 65, 154, 0.3), inset 0 1px 0.5px rgba(255, 255, 255, 0.25);
}
[data-theme="light"] .btn-outline {
  background: #FFFFFF;
  color: #172A66;
  border-color: rgba(35, 65, 154, 0.3);
  box-shadow: 0 2px 8px rgba(35, 65, 154, 0.08);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(35, 65, 154, 0.08);
  color: #23419A;
  border-color: #23419A;
  box-shadow: 0 6px 18px rgba(35, 65, 154, 0.15);
}

/* WhatsApp Button: Luxury Obsidian Glass with Royal/Electric Blue Glow */
.btn-wa {
  background: rgba(18, 27, 46, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF !important;
  border: 1px solid rgba(110, 155, 255, 0.35);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.4), 
    0 0 12px rgba(35, 65, 154, 0.25),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}
.btn-wa:hover {
  background: rgba(26, 49, 120, 0.85);
  border-color: rgba(110, 155, 255, 0.7);
  color: #FFFFFF !important;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5), 
    0 0 20px rgba(110, 155, 255, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn-wa svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: var(--color-wa-glyph);
  flex-shrink: 0;
}

/* ── Interactive Facebook Like / Follow Button (.btn-fb-like) ── */
.btn-fb-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(24, 119, 242, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(110, 155, 255, 0.32);
  border-radius: 9999px;
  color: #E2E8F0 !important;
  text-decoration: none !important;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  user-select: none;
  white-space: nowrap;
}
.btn-fb-like:hover {
  background: rgba(24, 119, 242, 0.28);
  border-color: rgba(110, 155, 255, 0.75);
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.38), 0 0 14px rgba(96, 165, 250, 0.35), inset 0 1px 0.5px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.btn-fb-like:active {
  transform: translateY(0) scale(0.97);
}
.fb-like-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(24, 119, 242, 0.25);
  color: #60A5FA;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.btn-fb-like:hover .fb-like-icon-wrap {
  transform: scale(1.2) rotate(-10deg);
  background: #1877F2;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.6);
}
.fb-like-thumb {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fb-like-text {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-fb-like.is-liked {
  background: rgba(24, 119, 242, 0.35);
  border-color: #3B82F6;
  color: #FFFFFF !important;
  box-shadow: 0 0 18px rgba(24, 119, 242, 0.45);
}
.btn-fb-like.is-liked .fb-like-icon-wrap {
  background: #1877F2;
  color: #FFFFFF;
  transform: scale(1.1);
}
@keyframes fb-thumb-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.45) rotate(-20deg); }
  70% { transform: scale(0.9) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.btn-fb-like.animating .fb-like-thumb {
  animation: fb-thumb-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@media (max-width: 992px) {
  .header-ctas .btn-fb-like .fb-like-text { display: none; }
  .header-ctas .btn-fb-like {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }
}
@media (max-width: 480px) {
  .header-ctas .btn-fb-like {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
  }
}

/* Continuous Ambient Glimmer Glint Animation (.btn-glimmer) */
.btn-glimmer::before {
  content: '';
  position: absolute;
  top: -20%; left: -140%;
  width: 75%; height: 140%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.15) 30%, 
    rgba(255, 255, 255, 0.5) 50%, 
    rgba(255, 255, 255, 0.15) 70%, 
    transparent 100%
  );
  transform: rotate(22deg);
  animation: shimmer-ambient 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}
@keyframes shimmer-ambient {
  0%, 75% { left: -140%; }
  100% { left: 160%; }
}

/* ── Pronounced & Engaging "Unlock Lowest Price" WhatsApp CTA ── */
.btn-unlock-price {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(23, 42, 102, 0.95) 0%, rgba(13, 22, 54, 0.98) 100%);
  border: 1.5px solid rgba(110, 155, 255, 0.55);
  border-radius: 12px;
  color: #FFFFFF !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(59, 99, 214, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.btn-unlock-price:hover {
  background: linear-gradient(135deg, rgba(35, 65, 154, 0.98) 0%, rgba(18, 33, 84, 1) 100%);
  border-color: #8AB4FF;
  box-shadow: 
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(110, 155, 255, 0.55),
    inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}
.btn-unlock-price:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-unlock-price .unlock-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(110, 155, 255, 0.18);
  border: 1px solid rgba(110, 155, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93C5FD;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.btn-unlock-price:hover .unlock-icon-wrap {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: scale(1.06);
}
.btn-unlock-price .unlock-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex-grow: 1;
  min-width: 0;
}
.btn-unlock-price .unlock-label {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}
.btn-unlock-price .unlock-sublabel {
  font-size: 0.72rem;
  color: #93C5FD;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.btn-unlock-price:hover .unlock-sublabel {
  color: #BFDBFE;
}
.btn-unlock-price .unlock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #4ADE80;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.btn-unlock-price .unlock-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  animation: unlockPulseDot 1.8s infinite ease-in-out;
}
@keyframes unlockPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.btn-sm { padding: 9px 16px; font-size: 0.84rem; border-radius: 8px; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; border-radius: 12px; }

/* ── Bespoke Interactive Map Component ── */
.interactive-map-card {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.12), 0 4px 12px rgba(194, 101, 42, 0.06);
  background: var(--bg-inset);
  isolation: isolate;
}
.coc-map-canvas,
.apex-map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Custom Animated Map Marker Pin */
.map-custom-pin {
  width: 44px; height: 44px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.pin-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pin-pulse-wave 2.2s infinite ease-out;
  pointer-events: none;
}
@keyframes pin-pulse-wave {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pin-body {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #3B62D6 0%, #23419A 100%);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(35, 65, 154, 0.45);
  transition: transform 0.25s var(--ease-out);
}
.map-custom-pin:hover .pin-body {
  transform: scale(1.15);
}

/* Floating Glass Overlay Card */
.map-overlay-card {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 10;
  background: rgba(11, 17, 30, 0.88);
  color: #FAF5EE;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(110, 155, 255, 0.24);
  border-radius: 14px;
  padding: 20px 22px;
  max-width: 380px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 14px;
}
[data-theme="light"] .map-overlay-card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  border-color: rgba(35, 65, 154, 0.2);
  box-shadow: 0 16px 36px rgba(28, 25, 23, 0.15);
}

.map-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent);
}
.map-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s infinite ease-in-out;
}

.map-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 600;
  margin-top: 2px; line-height: 1.2;
}
.map-card-address {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: rgba(250, 245, 238, 0.8);
}
[data-theme="light"] .map-card-address {
  color: var(--ink-quiet);
}

.map-card-ctas {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px;
}

/* ── Hero Section (Full-Bleed Ken Burns & Scrim Overlay) ── */
.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--color-dark-anchor);
  color: #FFFFFF;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9) brightness(0.65);
  transition: opacity 0.4s ease;
}

/* Ken Burns Subtle Ambient Zoom Animation (kb-active) */
.hero-media img.kb-active {
  animation: kenburns 22s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px circle at 75% 35%, rgba(35, 65, 154, 0.4) 0%, transparent 65%),
    linear-gradient(90deg,
      rgba(11, 17, 30, 0.96) 0%,
      rgba(11, 17, 30, 0.82) 45%,
      rgba(11, 17, 30, 0.6) 80%,
      rgba(11, 17, 30, 0.9) 100%),
    linear-gradient(0deg,
      rgba(11, 17, 30, 0.98) 0%,
      transparent 50%);
}

/* ── Hero Split Stage & Glassmorphic Featured Showcase ── */
.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 7vw, 84px) 0 clamp(48px, 6vw, 64px);
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-subtext {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 18px;
  max-width: 540px;
}

.hero-trust-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 100px;
}
.hero-trust-chip svg {
  color: var(--color-accent-bright);
}

.hero-car-glass-card {
  position: relative;
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(110, 155, 255, 0.35);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 
    0 24px 60px -10px rgba(0, 0, 0, 0.65), 
    0 0 35px -5px rgba(35, 65, 154, 0.45), 
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hero-car-glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 32px 70px -10px rgba(0, 0, 0, 0.75), 
    0 0 45px 0px rgba(110, 155, 255, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hero-car-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(35, 65, 154, 0.35) 0%, rgba(11, 17, 30, 0.9) 100%);
}
.hero-car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.hero-car-glass-card:hover .hero-car-img {
  transform: scale(1.06);
}
.hero-car-floating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 17, 30, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(110, 155, 255, 0.4);
  color: #FFFFFF;
  padding: 5px 11px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  z-index: 3;
}
.hero-car-status-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(11, 17, 30, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  padding: 5px 11px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.hero-car-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent-glow);
  box-shadow: 0 0 8px var(--color-accent-glow);
  animation: pulse-dot 2s infinite;
}
.hero-car-details {
  padding: 14px 6px 4px;
}
.hero-car-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.hero-car-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}
.hero-car-price-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent-bright);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero-car-est-pm {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-accent-glow);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.hero-car-meta-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.hero-car-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  white-space: nowrap;
}
.hero-car-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .hero-car-header-row {
    flex-direction: column;
    gap: 4px;
  }
  .hero-car-est-pm {
    text-align: left;
  }
}
.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: #FFFFFF;
}
.hero-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 960px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 76px 0 44px;
  }
  .hero-left {
    padding-top: 16px;
  }
  .hero-title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    line-height: 1.15;
    margin-bottom: 12px;
    margin-top: 14px;
  }
  .hero-subtext {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 8px;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 18px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-chips {
    margin-top: 16px;
    gap: 6px;
  }
  .hero-trust-chip {
    font-size: 0.70rem;
    padding: 4px 10px;
  }
}
@media (max-width: 768px) {
  .hero-stage {
    padding: 84px 0 44px;
    gap: 32px;
  }
  .hero-left {
    padding-top: 20px;
  }
  .hero-title {
    margin-top: 16px;
  }
}
@media (max-width: 480px) {
  .hero-stage {
    padding: 92px 0 38px;
    gap: 28px;
  }
  .hero-left {
    padding-top: 22px;
  }
  .hero-title {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    margin-top: 18px;
    margin-bottom: 10px;
  }
  .hero-subtext {
    font-size: 0.84rem;
  }
}

.hero-inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2.4s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 12px var(--accent); }
  50% { transform: scale(1.35); opacity: 0.75; box-shadow: 0 0 20px var(--accent); }
}

.hero-facts {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: #FFFFFF;
}
.hero-facts .hero-sep { color: rgba(255,255,255,0.4); font-size: 16px; }
.hero-delta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: rgba(35, 65, 154, 0.25);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #FFFFFF; white-space: nowrap;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* ── Provenance Ticker Pinned to Hero Bottom (Frosted Glassmorphism) ── */
.hero-ticker {
  position: relative; z-index: 2;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(11, 17, 30, 0.78);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(110, 155, 255, 0.22);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hero-ticker > div {
  padding: 20px clamp(16px, 2.5vw, 32px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-ticker > div:first-child { border-left: 0; }
.hero-ticker b {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--color-accent-bright);
  text-shadow: 0 0 18px rgba(35, 65, 154, 0.65);
}
.hero-ticker span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(250, 245, 238, 0.75);
}

/* ── Floating Search Rail ── */
.search-rail {
  margin-top: -42px;
  position: relative;
  z-index: 10;
}
.search-rail-inner {
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(110, 155, 255, 0.28);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(35, 65, 154, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 1.2fr;
  gap: 16px;
  align-items: flex-end;
}
[data-theme="light"] .search-rail-inner {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(35, 65, 154, 0.2);
  box-shadow: 0 16px 40px rgba(11, 17, 30, 0.1), 0 4px 14px rgba(35, 65, 154, 0.08);
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-mute);
}
/* ── Form Inputs & Select Dropdowns ── */
.filter-select, .filter-input, input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem; font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-subdued);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  height: 42px;
  -webkit-appearance: none;
  appearance: none;
}
.filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E9BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.filter-select:focus, .filter-input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--color-accent-bright);
  background: var(--bg-raised);
  box-shadow: 0 0 0 3px rgba(110, 155, 255, 0.25);
}
select option {
  background-color: #101726;
  color: var(--ink);
  padding: 8px;
}

/* Dark Mode & Dark Card Input Variant */
.form-input-dark {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  height: 42px;
}
.form-input-dark::placeholder {
  color: rgba(250, 245, 238, 0.6) !important;
}
.form-input-dark:focus {
  border-color: var(--color-accent-bright) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 0 0 3px rgba(110, 155, 255, 0.3) !important;
}

/* Light Mode Overrides for Trade Card in #sell Section */
[data-theme="light"] #sell .bento-card h3 {
  color: #0F172A !important;
}
[data-theme="light"] #sell .bento-card p {
  color: #475569 !important;
}
[data-theme="light"] #sell .bento-card .form-input-dark {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}
[data-theme="light"] #sell .bento-card .form-input-dark::placeholder {
  color: #64748B !important;
}

/* Ensure Outline Button inside dark .vir-card maintains crisp white contrast across themes */
.vir-card .btn-outline,
[data-theme="light"] .vir-card .btn-outline {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.vir-card .btn-outline:hover,
[data-theme="light"] .vir-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .filter-select,
[data-theme="dark"] .filter-input,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #101726;
  color: var(--color-ink);
  border-color: rgba(110, 155, 255, 0.24);
}
[data-theme="dark"] select option {
  background-color: #101726;
  color: #FAF5EE;
}
[data-theme="light"] .filter-select,
[data-theme="light"] .filter-input,
[data-theme="light"] input:not([type="range"]),
[data-theme="light"] select,
[data-theme="light"] textarea {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: rgba(35, 65, 154, 0.22);
}
[data-theme="light"] select option {
  background-color: #FFFFFF;
  color: #0F172A;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #94A3B8;
}

/* ── Social Proof Ticker Strip (Raised 3D Floating Glass Bar) ── */
.proof-ticker {
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(110, 155, 255, 0.24);
  border-radius: 18px;
  padding: 14px 20px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-quiet);
  position: relative;
  z-index: 5;
  margin: 32px auto 16px;
  width: calc(100% - 32px);
  max-width: 1280px;
  box-sizing: border-box;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.45), 
    0 4px 14px rgba(35, 65, 154, 0.2), 
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
[data-theme="light"] .proof-ticker {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(35, 65, 154, 0.2);
  box-shadow: 
    0 16px 40px rgba(11, 17, 30, 0.1), 
    0 4px 14px rgba(35, 65, 154, 0.08), 
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.proof-ticker-track {
  display: inline-flex; gap: 48px;
  animation: ticker-slide 30s linear infinite;
}
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Body Shape Category Tiles ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-tile {
  background: rgba(19, 27, 46, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(110, 155, 255, 0.2);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center; text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease, background 0.3s ease;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .cat-tile {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(35, 65, 154, 0.18);
  box-shadow: 0 10px 24px rgba(11, 17, 30, 0.06);
  color: #0F172A;
}
.cat-tile:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-bright);
  background: rgba(26, 40, 71, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(35, 65, 154, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
[data-theme="light"] .cat-tile:hover {
  background: rgba(35, 65, 154, 0.06);
  border-color: #23419A;
  box-shadow: 0 14px 32px rgba(35, 65, 154, 0.15);
}
.cat-icon { width: 48px; height: 32px; fill: var(--ink-quiet); transition: fill 0.25s, transform 0.25s; }
.cat-tile:hover .cat-icon { fill: var(--color-accent-bright); transform: scale(1.1); }
[data-theme="light"] .cat-icon { fill: #334155; }
[data-theme="light"] .cat-tile:hover .cat-icon { fill: #23419A; }
.cat-name { font-weight: 700; font-size: 0.95rem; }
.cat-count {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 600;
  color: var(--color-accent-bright);
  background: rgba(35, 65, 154, 0.25);
  border: 1px solid rgba(110, 155, 255, 0.2);
  padding: 2px 8px; border-radius: 10px;
}
[data-theme="light"] .cat-count {
  color: #23419A;
  background: rgba(35, 65, 154, 0.08);
  border-color: rgba(35, 65, 154, 0.2);
}

/* ── Collection Filter Tabs ── */
.collection-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.collection-tab {
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 0.88rem; font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(110, 155, 255, 0.25);
  background: rgba(19, 27, 46, 0.7);
  backdrop-filter: blur(12px);
  color: var(--ink-quiet);
  cursor: pointer;
  transition: all 0.25s ease;
}
.collection-tab:hover, .collection-tab.is-active {
  background: linear-gradient(135deg, #3B62D6 0%, #23419A 100%);
  color: #FFFFFF;
  border-color: var(--color-accent-bright);
  box-shadow: 0 4px 14px rgba(35, 65, 154, 0.4);
}
[data-theme="light"] .collection-tab {
  background: #FFFFFF;
  border-color: rgba(35, 65, 154, 0.18);
  color: #334155;
  box-shadow: 0 2px 8px rgba(11, 17, 30, 0.04);
}
[data-theme="light"] .collection-tab:hover,
[data-theme="light"] .collection-tab.is-active {
  background: linear-gradient(135deg, #3B62D6 0%, #23419A 100%);
  color: #FFFFFF;
  border-color: #23419A;
  box-shadow: 0 4px 14px rgba(35, 65, 154, 0.35);
}

/* ── Stock Grid & Card Atom ── */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(110, 155, 255, 0.22);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
  position: relative; text-decoration: none; color: inherit;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(35, 65, 154, 0.16);
  box-shadow: 0 10px 30px rgba(11, 17, 30, 0.08);
  color: #0F172A;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(110, 155, 255, 0.6);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(35, 65, 154, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
[data-theme="light"] .card:hover {
  border-color: rgba(35, 65, 154, 0.5);
  box-shadow: 0 18px 44px rgba(35, 65, 154, 0.15), 0 4px 12px rgba(11, 17, 30, 0.06);
}
.card-media {
  position: relative; aspect-ratio: 16 / 10; background: var(--bg-inset); overflow: hidden;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out);
}
.card:hover .card-img { transform: scale(1.05); }

.card-vir-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11, 17, 30, 0.88);
  color: #FFFFFF; backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(110, 155, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.card-vir-score { color: #6E9BFF; font-weight: 800; }

.card-body-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(19, 27, 46, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-content { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.card-year-make {
  font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 700;
  color: var(--color-accent-bright); text-transform: uppercase; margin-bottom: 4px;
  letter-spacing: 0.06em;
}
[data-theme="light"] .card-year-make {
  color: #23419A;
}
.card-title {
  font-family: var(--font-sans);
  font-size: 1.22rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 12px;
  color: var(--ink);
}
[data-theme="light"] .card-title {
  color: #0F172A;
}
.card-specs {
  display: flex; gap: 12px;
  font-size: 0.82rem; color: var(--ink-quiet);
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-subtle);
  flex-wrap: wrap;
}
[data-theme="light"] .card-specs {
  color: #475569;
  border-bottom-color: #E2E8F0;
}
.spec-item { display: flex; align-items: center; gap: 4px; white-space: nowrap; }

.card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; gap: 12px; }
.card-price {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 3.5vw, 1.45rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
[data-theme="light"] .card-price {
  color: #0F172A;
}
.card-repay {
  font-family: var(--font-sans);
  font-size: 0.82rem; font-weight: 700;
  color: var(--color-accent-bright);
  white-space: nowrap;
}
[data-theme="light"] .card-repay {
  color: #172A66;
}

.card-filler {
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(110, 155, 255, 0.22);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
  box-sizing: border-box;
  width: 100%;
}
[data-theme="light"] .card-filler {
  background: #FFFFFF;
  color: #0F172A;
  border-color: rgba(35, 65, 154, 0.16);
  box-shadow: 0 10px 30px rgba(11, 17, 30, 0.06);
}
.card-filler:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-bright);
  color: var(--color-accent-bright);
  box-shadow: 0 16px 36px rgba(35, 65, 154, 0.3);
}
[data-theme="light"] .card-filler:hover {
  border-color: #23419A;
  color: #23419A;
  box-shadow: 0 14px 34px rgba(35, 65, 154, 0.15);
}

/* ── Holding Screen State ── */
.holding-box {
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 16px;
  padding: 48px 32px; text-align: center; max-width: 600px; margin: 40px auto;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.05);
}
.holding-icon {
  width: 56px; height: 56px; background: var(--color-accent-soft); color: var(--accent);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}

/* ── Finance Partner Badges ── */
.finance-bank-strip {
  display: flex; justify-content: center; align-items: center; gap: 36px;
  flex-wrap: wrap; padding: 24px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.bank-badge {
  font-family: var(--font-sans); font-size: 1.1rem; font-weight: 800; color: var(--ink-mute); letter-spacing: -0.02em;
}

/* ── Footer (Obsidian Carbon Anchor) ── */
.footer {
  background-color: var(--color-dark-anchor);
  color: #FAF5EE; padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px;
}
.footer-brand-title {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; color: #FFFFFF; margin-bottom: 12px;
}
.footer-brand-title span { color: var(--accent); font-style: italic; }
.footer-desc { color: rgba(250,245,238,0.7); margin-bottom: 20px; line-height: 1.6; }
.footer-col-title {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  color: #FFFFFF; margin-bottom: 16px; letter-spacing: 0.08em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: rgba(250,245,238,0.8); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(250,245,238,0.5);
}
.footer-trudealer { color: #FAF5EE; text-decoration: none; font-weight: 600; }
.footer-trudealer span { color: var(--accent); }

/* ── Mobile Sticky Bottom Action Bar & Unified Widget Command Hub ── */
.mbar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99990;
  background: rgba(7, 10, 18, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(59, 98, 214, 0.4); /* Caledon Sapphire laser rim */
  box-shadow: 0 -8px 32px -4px rgba(0, 0, 0, 0.85), 0 -1px 0 0 rgba(110, 155, 255, 0.25);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.mbar-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}
.mbar-tab:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.08);
}
.mbar-tab.active {
  color: var(--color-primary-light);
}
.mbar-tab svg {
  width: 19px;
  height: 19px;
  transition: transform 0.2s;
}
.mbar-tab:hover svg {
  transform: translateY(-1px);
}
.mbar-ico-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mbar-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
}
.mbar-pulse {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan-pulse);
  box-shadow: 0 0 6px var(--color-cyan-pulse);
}
.mbar-tab.mbar-wa {
  color: var(--color-wa-glyph);
}

@media (max-width: 1024px) {
  .search-rail-inner { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mbar { display: grid; }
  body { padding-bottom: 72px; }
  .mobile-nav-toggle { display: flex; }
  .section { padding: 36px 0; }
  .section-header { margin-bottom: 20px; }
  .section-eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; margin-bottom: 6px; }
  .section-desc { font-size: 0.88rem; line-height: 1.5; }
  .search-rail-container {
    margin-top: 28px !important;
    margin-bottom: 28px !important;
  }
  
  /* Mobile Headings */
  h1, .h1 { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }
  h2, .h2 { font-size: clamp(1.25rem, 4.8vw, 1.55rem); }
  h3, .h3 { font-size: clamp(1.05rem, 4vw, 1.25rem); }

  /* Mobile Button Scaling — Sleek, compact & tidy */
  .btn {
    padding: 10px 18px;
    font-size: 0.86rem;
    gap: 8px;
    border-radius: 8px;
  }
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.90rem;
    border-radius: 9px;
  }
  .btn-sm {
    padding: 6px 12px;
    font-size: 0.76rem;
    border-radius: 6px;
  }

  /* Body Shape Category Tiles */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile { padding: 14px 10px; gap: 6px; border-radius: 12px; }
  .cat-icon { width: 36px; height: 26px; }
  .cat-name { font-size: 0.82rem; }
  .cat-count { font-size: 0.68rem; padding: 1px 6px; }

  /* Collection Filter Tabs */
  .collection-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    padding-bottom: 4px;
  }
  .collection-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 5px 12px;
    font-size: 0.76rem;
    border-radius: 16px;
  }

  /* Stock Grid & Cards */
  .stock-grid { grid-template-columns: 1fr; gap: 16px; width: 100%; }
  .card { width: 100%; box-sizing: border-box; border-radius: 14px; }
  .card-content { padding: 16px; }
  .card-year-make { font-size: 0.72rem; letter-spacing: 0.04em; margin-bottom: 2px; }
  .card-title { font-size: 1.05rem; line-height: 1.25; margin-bottom: 8px; }
  .card-specs { font-size: 0.76rem; gap: 8px; padding-bottom: 10px; margin-bottom: 10px; }
  .card-price { font-size: 1.22rem; }
  .card-repay { font-size: 0.76rem; }
  .card-vir-badge { font-size: 0.70rem; padding: 4px 8px; border-radius: 6px; }
  .card-body-tag { font-size: 0.65rem; padding: 3px 8px; border-radius: 4px; }
  .card-filler { padding: 22px 14px; border-radius: 14px; }

  /* Widgets fall into the sticky footer — suppress floating corner trigger pills on mobile */
  #tc-fab,
  #tc-tip,
  #truchat-launcher,
  #tru-afford-host:not(.ta-is-open),
  #tru-afford-root:not(.is-open) .ta-launcher,
  [id^="tru-form"]:not(.tf-is-open),
  [id*="tru-form"]:not(.tf-is-open),
  #tf:not(.is-open) .tf-launcher,
  [id^="tru-book"]:not(.tb-is-open),
  [id*="tru-book"]:not(.tb-is-open) {
    display: none !important;
    pointer-events: none !important;
  }

  /* Map overlay card responsive pinning */
  .map-overlay-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .hero-ticker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-ticker > div:nth-child(2n+1) {
    border-left: 0;
  }
  .hero-ticker > div:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .search-rail-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand-title { font-size: 1.25rem; }
  .footer-desc { font-size: 0.82rem; }
  .nav-menu { display: none; }
  .container { padding: 0 16px; }
  .stock-grid { grid-template-columns: 1fr; }
  .card { width: 100%; box-sizing: border-box; }
}

@media (max-width: 480px) {
  .search-rail-container {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
  .stock-grid { grid-template-columns: 1fr; }
  .card { width: 100%; box-sizing: border-box; }
  .card-content { padding: 14px; }
  .card-footer { gap: 6px; }
  .card-price { font-size: 1.15rem; }
  .card-repay { font-size: 0.74rem; }
  .btn { padding: 9px 15px; font-size: 0.82rem; }
  .btn-lg { padding: 11px 18px; font-size: 0.86rem; }
  .btn-sm { padding: 5px 10px; font-size: 0.72rem; }
}

/* ==============================================================
   TRUECARS FLAGSHIP — AESTHETIC POLISH & WIDGET LAYER
   Micro-interactions, glassmorphism, spring physics & z-index
   ============================================================== */

/* 1. Accessible focus rings */
:where(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 2. Springy button micro-interactions */
.btn, button.btn, a.btn {
  transition:
    transform .28s cubic-bezier(.34, 1.4, .64, 1),
    box-shadow .28s ease,
    filter .18s ease,
    background-color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(.98); }

/* 3. Scoped Spring Motion — Card Lift & Image Scale */
.card, .cat-tile, .wiz-card, .fin-card, .report-card {
  transition:
    transform .35s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s ease,
    border-color .3s ease;
}
.card:hover, .cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -16px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--color-border);
}
.card img, .card-img, .vdp-hero-img {
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
}
.card:hover img, .card:hover .card-img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

/* 4. Glassmorphism Helpers */
.tc-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--rule);
}
[data-theme="dark"] .tc-glass {
  background: rgba(24, 30, 42, 0.85);
  border-color: rgba(110, 155, 255, 0.28);
}

/* 5. Status & Value Tags */
.truecar-tag {
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-edge);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── FAQ Section (GEO & Voice Search Passage Optimization) ── */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-card {
  background: var(--color-surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
[data-theme="dark"] .faq-card {
  background: rgba(19, 27, 46, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(110, 155, 255, 0.2);
}
[data-theme="light"] .faq-card {
  background: #FFFFFF;
  border-color: rgba(35, 65, 154, 0.14);
  box-shadow: 0 4px 18px rgba(11, 17, 30, 0.04);
}
.faq-card:hover {
  border-color: rgba(110, 155, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .faq-card:hover {
  border-color: rgba(35, 65, 154, 0.35);
  box-shadow: 0 8px 24px rgba(35, 65, 154, 0.08);
}
.faq-card[open] {
  border-color: rgba(110, 155, 255, 0.55);
  box-shadow: 0 12px 32px rgba(35, 65, 154, 0.25);
}
[data-theme="light"] .faq-card[open] {
  border-color: #23419A;
  box-shadow: 0 10px 28px rgba(35, 65, 154, 0.12);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-edge);
  color: var(--color-accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
[data-theme="light"] .faq-icon {
  background: rgba(35, 65, 154, 0.08);
  border-color: rgba(35, 65, 154, 0.2);
  color: #23419A;
}
.faq-card[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: #FFFFFF;
}
.faq-answer {
  padding: 0 26px 24px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-quiet);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.faq-answer p {
  margin: 0;
}
.faq-answer p + p {
  margin-top: 12px;
}
.faq-answer strong {
  color: var(--ink);
}

/* 6. Widget Z-Index Audit & Component Scoping */
:root {
  --z-sticky-bar: 1000;
  --z-modal:      2000;
  --z-truafford:  999985;
  --z-truchat:    999990;
  --z-toast:      999999;
}

/* 7. Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .cat-tile, .wiz-card, .faq-card, .card img, .card-img {
    transition: none !important;
    transform: none !important;
  }
}

/* 8. Desktop Mutual Widget Suppression (when one panel opens, hide the other launchers) */
body.ta-open [id^="tru-form"],
body.ta-open [id*="tru-form"],
body.ta-open [id^="tru-book"],
body.ta-open [id*="tru-book"],
body.ta-open #tru-form-host {
  display: none !important;
  pointer-events: none !important;
}

body.tf-open #tru-afford-host,
body.tf-open #tru-afford-root,
body.tf-open .ta-launcher {
  display: none !important;
  pointer-events: none !important;
}

body.tc-open #tru-afford-host,
body.tc-open [id^="tru-form"],
body.tc-open [id*="tru-form"],
body.tc-open [id^="tru-book"],
body.tc-open [id*="tru-book"] {
  display: none !important;
  pointer-events: none !important;
}

/* ==============================================================
   FLAGSHIP VDP SYNC — IMMERSIVE GALLERY, LIGHTBOX & TRUORBIT 360
   ============================================================== */

/* Media Tabs Switcher */
.media-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-inset);
  border: 1px solid var(--rule);
  border-radius: 100px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}
.media-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: transparent;
  color: var(--ink-quiet);
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.media-tab-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}
.media-tab-btn:hover {
  color: var(--ink);
  background: rgba(35, 65, 154, 0.12);
}
.media-tab-btn.is-active {
  background: linear-gradient(135deg, #23419A 0%, #172A66 100%);
  color: #FFFFFF !important;
  border-color: rgba(110, 155, 255, 0.35);
  box-shadow: 
    0 4px 14px rgba(35, 65, 154, 0.45), 
    inset 0 1px 0.5px rgba(255, 255, 255, 0.4);
}

/* Immersive Gallery & Lightbox */
.vdp-gallery-immersive {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-inset);
  border: 1px solid var(--rule);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.vdp-gallery-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  background: #0D131C;
}
.vdp-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vdp-gallery-hero:hover img {
  transform: scale(1.03);
}
.vdp-gallery-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(13, 19, 28, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}
.vdp-filmstrip-thumb {
  flex: 0 0 84px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.65;
  padding: 0;
  background: transparent;
}
.vdp-filmstrip-thumb.is-active,
.vdp-filmstrip-thumb:hover {
  border-color: var(--color-accent-bright, #6E9BFF);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(35, 65, 154, 0.45);
}
.vdp-filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fullscreen Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(13, 19, 28, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.gallery-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}
.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.gallery-lightbox-nav.prev { left: 20px; }
.gallery-lightbox-nav.next { right: 20px; }
.gallery-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(13, 19, 28, 0.8);
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* TruOrbit 360 Player Styling */
.w3d-root {
  font-family: var(--font-sans);
  color: var(--ink);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--color-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
[data-theme="dark"] .w3d-root {
  background: #0D131C;
  color: #e8eef6;
}
.w3d-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(35, 65, 154, 0.35), transparent 52%),
    radial-gradient(ellipse at 50% 0%, #1e293b, transparent 55%),
    linear-gradient(180deg, #121c2e 0%, #0b1220 100%);
}
.w3d-stage.dragging { cursor: grabbing; }
.w3d-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(56, 189, 248, 0.3), transparent 70%);
  pointer-events: none;
}
.w3d-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4% 6% 10%;
  display: block;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
  transition: opacity 0.12s ease;
  pointer-events: none;
  max-width: 100%;
  box-sizing: border-box;
}
.w3d-media.fading { opacity: 0.5; }
.w3d-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  animation: w3dPulse 2.2s ease-in-out infinite;
  z-index: 4;
  padding: 0;
}
.w3d-tag.info { background: #3b82f6; }
.w3d-tag.attention { background: #e7b24b; }
.w3d-tag.critical { background: #f0555a; }
.w3d-tag.active {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
@keyframes w3dPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}
.w3d-pop {
  position: absolute;
  z-index: 6;
  min-width: 180px;
  max-width: min(280px, 86%);
  background: rgba(8, 14, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: #e8eef6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none;
  pointer-events: none;
}
.w3d-pop.on { display: block; animation: w3dPop 0.16s ease-out; }
@keyframes w3dPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.w3d-pop .sev {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.w3d-pop .sev.critical { color: #f0555a; }
.w3d-pop .sev.attention { color: #e7b24b; }
.w3d-pop .sev.info { color: #3b82f6; }
.w3d-pop b { color: var(--color-accent-bright, #6E9BFF); font-size: 11px; letter-spacing: 0.04em; }
.w3d-pop .label { margin-top: 4px; line-height: 1.4; }
.w3d-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, #23419A, #38BDF8);
  padding: 7px 12px;
  border-radius: 100px;
  box-shadow: 0 8px 20px -8px rgba(35, 65, 154, 0.65);
}
.w3d-mockpill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.75);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 100px;
}
.w3d-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.65);
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}
.w3d-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px 10px;
  background: var(--bg-inset);
  border-top: 1px solid var(--rule);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}
.w3d-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--color-surface);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.w3d-ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--color-accent-bright, #6E9BFF);
  background: rgba(35, 65, 154, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 65, 154, 0.3);
}
.w3d-ctrl-btn:active {
  transform: translateY(0) scale(0.96);
}
.w3d-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  height: 40px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: var(--color-surface);
  color: var(--ink);
  transition: transform 0.25s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}
.w3d-play-btn:hover {
  border-color: var(--accent);
  color: var(--color-accent-bright, #6E9BFF);
  background: rgba(35, 65, 154, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 65, 154, 0.3);
}
.w3d-play-btn.on {
  background: linear-gradient(135deg, #23419A 0%, #172A66 100%);
  color: #FFFFFF !important;
  border-color: rgba(110, 155, 255, 0.35);
  box-shadow: 0 4px 14px rgba(35, 65, 154, 0.45);
}
.w3d-scrub {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
}
.w3d-scrub input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  cursor: pointer;
}
.w3d-meta {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-quiet);
  background: var(--bg-inset);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 8px;
}
.w3d-legend {
  display: flex;
  gap: 16px;
  padding: 6px 18px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  background: var(--bg-inset);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}
.w3d-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.w3d-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.w3d-legend i.info { background: #3b82f6; }
.w3d-legend i.attention { background: #e7b24b; }
.w3d-legend i.critical { background: #f0555a; }

#orbitContainer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 600px) {
  .w3d-stage { min-height: 240px; }
  .w3d-hint { font-size: 9px; padding: 4px 8px; }
  .w3d-controls { padding: 10px 12px 8px; gap: 8px; }
  .w3d-ctrl-btn { width: 36px; height: 36px; font-size: 1rem; }
  .w3d-play-btn { height: 36px; padding: 0 12px; font-size: 0.75rem; }
  .w3d-scrub { min-width: 80px; }
  .w3d-meta, .w3d-legend { padding-left: 12px; padding-right: 12px; }
}

