/* ==========================================================================
   FUELATLAS — ULTRA LUXURY AUTOMOTIVE DESIGN SYSTEM
   Aesthetic: $1M USD Stealth Luxury / Haute-Horlogerie & Hypercar Precision
   ========================================================================== */

@charset "UTF-8";

:root {
  /* Default Obsidian Dark Mode */
  --theme: dark;
  --bg: #040507;
  --bg-deep: #020304;
  --bg-surface-1: rgba(14, 16, 22, 0.72);
  --bg-surface-2: rgba(22, 25, 36, 0.82);
  --bg-glass: rgba(10, 12, 17, 0.75);
  --bg-glass-card: rgba(15, 17, 24, 0.78);
  --bg-glass-elevated: rgba(20, 24, 34, 0.88);

  /* Typography Colors */
  --ink: #F8FAFC;
  --ink-solid: #FFFFFF;
  --ink-secondary: #E2E8F0;
  --muted: #94A3B8;
  --muted-dim: #64748B;

  /* 24K Liquid Champagne Gold */
  --gold: #F5CE70;
  --gold-light: #FDE8A5;
  --gold-deep: #B88E32;
  --gold-dim: #87641B;
  --gold-ink: #0F0B03;
  --gold-glow: rgba(245, 206, 112, 0.35);
  --gold-gradient: linear-gradient(135deg, #FFF3D1 0%, #F5CE70 42%, #C59837 100%);
  --gold-border-glow: rgba(245, 206, 112, 0.28);
  --gold-tint: linear-gradient(135deg, rgba(245, 206, 112, 0.14), rgba(245, 206, 112, 0.04));

  /* Hypercar Energy Accents */
  --cyan-electric: #38BDF8;
  --cyan-glow: rgba(56, 189, 248, 0.35);
  --emerald-hybrid: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --silver-titanium: #E2E8F0;
  --silver-deep: #64748B;
  --silver-glow: rgba(226, 232, 240, 0.22);
  --crimson: #FF3B30;
  --crimson-glow: rgba(255, 59, 48, 0.35);

  /* Borders & Specular Hairlines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(245, 206, 112, 0.38);
  --line-glass: rgba(255, 255, 255, 0.12);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.14);

  /* Surfaces & Controls */
  --card-gradient: linear-gradient(165deg, rgba(25, 28, 39, 0.7) 0%, rgba(10, 12, 17, 0.92) 100%);
  --hud-gradient: linear-gradient(135deg, rgba(20, 24, 34, 0.95), rgba(12, 14, 20, 0.98));
  --modal-bg: #090B10;
  --modal-backdrop: rgba(2, 3, 5, 0.85);
  --control-bg: #0B0D13;
  --control-opt-bg: #0A0C12;
  --input-surface: rgba(3, 4, 6, 0.85);
  --input-surface-focus: rgba(5, 6, 9, 0.95);
  --input-border: rgba(255, 255, 255, 0.12);
  --input-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  --input-placeholder: #78716C;
  --surface-subtle: rgba(255, 255, 255, 0.035);
  --surface-subtle-hover: rgba(255, 255, 255, 0.07);
  --unverified-answer-bg: rgba(255, 255, 255, 0.03);
  --notice-bg: linear-gradient(135deg, rgba(245, 206, 112, 0.08), rgba(255, 59, 48, 0.04));
  --notice-border: rgba(245, 206, 112, 0.22);
  --notice-text: #E2D9CC;
  --heading-gradient: linear-gradient(135deg, #FFFFFF 40%, #EDE6DB 75%, #D4AF37 100%);
  --subheading-gradient: linear-gradient(135deg, #FFFFFF 40%, #E2E8F0 80%, #C59837 100%);
  --finder-bg-radial: linear-gradient(180deg, rgba(4, 5, 7, 0.6) 0%, #040507 20%, #07080D 100%);

  /* Shadows & Depth */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -10px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --shadow-hero: 0 32px 90px -15px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 14px 40px -8px var(--gold-glow);
  --shadow-card: var(--shadow-md);
  --shadow-card-hover: var(--shadow-lg);

  /* Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  /* Animation Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-spring);
  --transition-normal: 0.28s var(--ease-spring);
}

[data-theme="light"] {
  /* Light Theme: Haute Concours Porcelain & Warm Brushed Gold */
  --theme: light;
  color-scheme: light;
  --bg: #F8FAFC;
  --bg-deep: #EEF2F6;
  --bg-surface-1: rgba(255, 255, 255, 0.88);
  --bg-surface-2: rgba(241, 245, 249, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.84);
  --bg-glass-card: rgba(255, 255, 255, 0.92);
  --bg-glass-elevated: #FFFFFF;

  /* Typography Colors */
  --ink: #0A0F1D;
  --ink-solid: #0A0F1D;
  --ink-secondary: #1E293B;
  --muted: #64748B;
  --muted-dim: #94A3B8;

  /* Refined Honey Gold / Warm Bespoke Accents */
  --gold: #B47E16;
  --gold-light: #8E5F09;
  --gold-deep: #784F07;
  --gold-dim: #543603;
  --gold-ink: #0A0601;
  --gold-glow: rgba(180, 126, 22, 0.22);
  --gold-gradient: linear-gradient(135deg, #FDE68A 0%, #EAB308 45%, #CA8A04 100%);
  --gold-border-glow: rgba(180, 126, 22, 0.35);
  --gold-tint: linear-gradient(135deg, rgba(245, 206, 112, 0.18), rgba(254, 243, 199, 0.7));

  /* Jewel Energy Accents */
  --cyan-electric: #0284C7;
  --cyan-glow: rgba(2, 132, 199, 0.25);
  --emerald-hybrid: #059669;
  --emerald-glow: rgba(5, 150, 105, 0.25);
  --silver-titanium: #475569;
  --silver-deep: #334155;
  --silver-glow: rgba(71, 85, 105, 0.18);
  --crimson: #DC2626;
  --crimson-glow: rgba(220, 38, 38, 0.25);

  /* Crisp Light Specular Hairlines */
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(180, 126, 22, 0.38);
  --line-glass: rgba(15, 23, 42, 0.09);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.95);

  /* Light Surfaces & Controls */
  --card-gradient: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
  --hud-gradient: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.98));
  --modal-bg: #FFFFFF;
  --modal-backdrop: rgba(15, 23, 42, 0.55);
  --control-bg: #FFFFFF;
  --control-opt-bg: #FFFFFF;
  --input-surface: rgba(255, 255, 255, 0.94);
  --input-surface-focus: #FFFFFF;
  --input-border: rgba(15, 23, 42, 0.12);
  --input-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05);
  --input-placeholder: #94A3B8;
  --surface-subtle: rgba(15, 23, 42, 0.035);
  --surface-subtle-hover: rgba(15, 23, 42, 0.07);
  --unverified-answer-bg: rgba(15, 23, 42, 0.035);
  --notice-bg: linear-gradient(135deg, rgba(245, 206, 112, 0.16), rgba(254, 243, 199, 0.85));
  --notice-border: rgba(180, 126, 22, 0.3);
  --notice-text: #334155;
  --heading-gradient: linear-gradient(135deg, #0A0F1D 40%, #1E293B 70%, #B47E16 100%);
  --subheading-gradient: linear-gradient(135deg, #0A0F1D 40%, #334155 75%, #B47E16 100%);
  --finder-bg-radial: linear-gradient(180deg, rgba(241, 245, 249, 0.6) 0%, #F8FAFC 25%, #F1F5F9 100%);

  /* Diffuse Pearlescent Light Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 48px -10px rgba(15, 23, 42, 0.1), 0 0 1px 1px rgba(15, 23, 42, 0.05);
  --shadow-hero: 0 24px 60px -15px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 10px 30px -6px var(--gold-glow);
  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 0 20px -4px var(--gold-glow);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Cairo, "Plus Jakarta Sans", Outfit, Inter, system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 206, 112, 0.22);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 206, 112, 0.45);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(180, 126, 22, 0.28);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 126, 22, 0.5);
}

/* Selection */
::selection {
  background: var(--gold-glow);
  color: var(--ink);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* ==========================================================================
   Floating Glass Navigation Topbar
   ========================================================================== */

.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  margin-top: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65), var(--specular);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.topbar:hover {
  border-color: rgba(245, 206, 112, 0.24);
}

/* Brand Identity */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  group: brand;
}

.logo-wrap {
  position: relative;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  background: var(--gold-gradient);
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 24px -4px rgba(245, 206, 112, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand:hover .logo {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px -4px rgba(245, 206, 112, 0.6), inset 0 1px 1px #fff;
}

.brand-text b, .brand b {
  display: block;
  font: 800 1.25rem Outfit, Inter, Cairo, sans-serif;
  letter-spacing: -0.02em;
  background: var(--subheading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text small, .brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Nav Action Buttons */
.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ghost-btn, .primary-btn {
  min-height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  backdrop-filter: blur(12px);
  box-shadow: var(--specular);
  transition: all var(--transition-fast);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 206, 112, 0.35);
  background: var(--surface-subtle-hover);
  color: var(--ink);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.3), var(--specular);
}

.ghost-btn:active, .primary-btn:active {
  transform: translateY(0);
}

/* Keifa Tools Nav Link */
.tools-btn {
  color: var(--gold-light);
  border-color: rgba(245, 206, 112, 0.25);
  font-weight: 700;
  gap: 6px;
}

.tools-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-glow);
}

[data-theme="light"] .tools-btn {
  color: #854d0e;
  border-color: rgba(180, 126, 22, 0.3);
}

[data-theme="light"] .tools-btn:hover {
  color: #713f12;
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.12);
}

/* Theme Toggle Button */
.theme-btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.theme-icon-moon, .theme-icon-sun {
  display: block;
  transition: transform 0.35s var(--ease-spring), opacity 0.25s ease;
}

:root:not([data-theme="light"]) .theme-icon-moon,
[data-theme="dark"] .theme-icon-moon {
  display: none;
}
:root:not([data-theme="light"]) .theme-icon-sun,
[data-theme="dark"] .theme-icon-sun {
  display: block;
  color: var(--gold);
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}
[data-theme="light"] .theme-icon-moon {
  display: block;
  color: var(--ink);
}

.theme-btn:hover .theme-icon-sun {
  transform: rotate(45deg) scale(1.15);
  color: var(--gold-light);
}

.theme-btn:hover .theme-icon-moon {
  transform: rotate(-20deg) scale(1.15);
  color: var(--gold);
}

.primary-btn {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 206, 112, 0.6);
  background: var(--gold-gradient);
  color: var(--gold-ink);
  font-weight: 800;
  box-shadow: 0 8px 24px -4px rgba(245, 206, 112, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.primary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(245, 206, 112, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: var(--gold-ink);
}

.primary-btn:hover::after {
  left: 140%;
}

.counter {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  display: inline-grid;
  place-items: center;
  background: rgba(245, 206, 112, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(245, 206, 112, 0.4);
  font: 800 0.72rem Outfit, Inter, sans-serif;
  transition: all var(--transition-fast);
}

.ghost-btn:hover .counter {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}

/* ==========================================================================
   Ad Banner Wrapper
   ========================================================================== */

.ad-wrapper {
  margin: 16px auto 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 52px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.ad-wrapper ins.adsbygoogle {
  width: 100%;
  min-width: 0;
  margin-inline: auto !important;
  text-align: center !important;
}

.ad-wrapper ins[data-ad-status="unfilled"] { display: none !important; }
.ad-wrapper:has(ins[data-ad-status="filled"]) .ad-fallback { display: none; }

.ad-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 22px;
  text-decoration: none;
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.ad-fallback:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.ad-fallback-badge {
  background: var(--gold-glow);
  border: 1px solid rgba(245, 206, 112, 0.35);
  color: var(--gold);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-fallback-arrow {
  opacity: 0.75;
  transition: transform var(--transition-fast);
}

.ad-fallback:hover .ad-fallback-arrow {
  opacity: 1;
  transform: translateX(-3px);
}

[dir="ltr"] .ad-fallback:hover .ad-fallback-arrow {
  transform: translateX(3px);
}

[data-theme="light"] .ad-fallback {
  color: #854d0e;
}

[data-theme="light"] .ad-fallback:hover {
  color: #713f12;
}

[data-theme="light"] .ad-fallback-badge {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(180, 126, 22, 0.35);
  color: #92400e;
}

.ad-wrapper ins.adsbygoogle[data-ad-status="filled"] ~ .ad-fallback {
  display: none;
}

/* ==========================================================================
   Cinematic Hero Section
   ========================================================================== */

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 460px;
  gap: 52px;
  align-items: center;
  padding: 40px 0 70px;
  position: relative;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 206, 112, 0.1);
  border: 1px solid rgba(245, 206, 112, 0.28);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.hero h1 {
  margin: 10px 0 20px;
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.4));
}

.hero p {
  max-width: 680px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.85;
}

/* Hero Stats Strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-surface-1);
  border: 1px solid var(--line-glass);
  backdrop-filter: blur(16px);
  width: max-content;
  box-shadow: var(--shadow-sm), var(--specular);
}

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

.stat-number {
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

/* ==========================================================================
   Hero Interactive Cockpit Console (.hero-panel)
   ========================================================================== */

.hero-panel {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-1);
  border: 1px solid var(--line-glass);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  box-shadow: var(--shadow-hero), var(--specular);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gold-gradient);
  filter: blur(1px);
  box-shadow: 0 0 16px var(--gold);
}

.hero-panel:hover {
  border-color: rgba(245, 206, 112, 0.28);
}

.main-search, .toolbar-search {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input-surface);
  padding: 0 18px;
  box-shadow: var(--input-shadow), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.main-search:focus-within, .toolbar-search:focus-within {
  border-color: var(--gold);
  box-shadow: var(--input-shadow), 0 0 0 3px var(--gold-glow);
  background: var(--input-surface-focus);
}

.main-search span, .toolbar-search span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.main-search span::after, .toolbar-search span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2.5px;
  background: var(--gold);
  inset-inline-end: -6px;
  bottom: -3px;
  transform: rotate(45deg);
  border-radius: 1px;
}

input, select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
}

input::placeholder {
  color: var(--input-placeholder);
  font-weight: 500;
}

.region-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  border-radius: var(--radius);
  box-shadow: var(--specular);
}

.region-control label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.region-control select {
  min-width: 0;
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
}

/* Quick Search Tiles */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.quick {
  min-height: 72px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--ink);
  cursor: pointer;
  text-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--specular);
}

.quick:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(245, 206, 112, 0.08);
  box-shadow: var(--shadow-sm), 0 0 16px -4px var(--gold-glow);
}

.quick b {
  display: block;
  font: 800 0.95rem Cairo, "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.quick small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   Dashboard Showcase Section (Makes & Verified Vehicles)
   ========================================================================== */

.dashboard {
  padding: 24px 0 48px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-grid article, .dashboard-card {
  padding: 24px;
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md), var(--specular);
  transition: border-color var(--transition-normal);
}

.dashboard-grid article:hover, .dashboard-card:hover {
  border-color: rgba(245, 206, 112, 0.28);
}

.dashboard-grid h2, .dashboard-grid h3 {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-solid);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list button {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--specular);
  transition: all var(--transition-fast);
}

.chip-list button span {
  color: var(--gold-light);
  background: rgba(245, 206, 112, 0.14);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 800;
}

.chip-list button:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--surface-subtle-hover);
  color: var(--ink);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.3), 0 0 12px -2px var(--gold-glow);
}

.compact-list, .collection-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.compact-list :is(button, a), .collection-list :is(button, a) {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: start;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--specular);
}

.compact-list :is(button, a):hover, .collection-list :is(button, a):hover {
  transform: translateX(-4px);
  border-color: rgba(245, 206, 112, 0.4);
  background: var(--surface-subtle-hover);
}

html[dir="ltr"] .compact-list :is(button, a):hover, html[dir="ltr"] .collection-list :is(button, a):hover {
  transform: translateX(4px);
}

.compact-list span, .collection-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   Finder & Live HUD Filter Console
   ========================================================================== */

.finder {
  position: relative;
  padding: 40px 0 90px;
  scroll-margin-top: 90px;
}

.finder::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--finder-bg-radial);
  border-top: 1px solid rgba(245, 206, 112, 0.15);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-count {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.result-count b {
  font-family: Outfit, Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

/* HUD Filter Strip */
.toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-1);
  box-shadow: var(--shadow-lg), var(--specular);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-bottom: 20px;
}

.toolbar-search {
  height: 48px;
  grid-column: span 2;
}

.toolbar > * { min-width: 0; width: 100%; }

select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--specular);
}

select:hover {
  border-color: rgba(245, 206, 112, 0.35);
  background: var(--surface-subtle-hover);
}

select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

select option {
  background: var(--control-opt-bg);
  color: var(--ink);
  padding: 10px;
}

#resetBtn {
  min-width: 90px;
  height: 48px;
  padding: 0 16px;
}

/* Advisory Notice Box */
.notice {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 18px 0 28px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  color: var(--notice-text);
  line-height: 1.7;
  font-size: 0.92rem;
  box-shadow: var(--specular);
}

.notice b {
  color: var(--gold-light);
  white-space: nowrap;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Next-Gen Vehicle Cards Grid (.cards & .fuel-card)
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fuel-card {
  position: relative;
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  background: var(--card-gradient);
  box-shadow: var(--shadow-card), var(--specular);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 22px;
  display: grid;
  gap: 16px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.fuel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

/* Published / Verified Gold Glow */
.fuel-card.published::before {
  background: var(--gold-gradient);
  box-shadow: 0 0 16px var(--gold-glow);
}

/* Dynamic Energy Type Accents */
.fuel-card.electric::before, .fuel-card.plug-in-hybrid::before {
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.fuel-card.hybrid::before, .fuel-card.mild-hybrid::before {
  background: linear-gradient(90deg, #10B981, #34D399);
  box-shadow: 0 0 16px var(--emerald-glow);
}

.fuel-card.diesel::before {
  background: linear-gradient(90deg, #94A3B8, #CBD5E1);
  box-shadow: 0 0 16px var(--silver-glow);
}

.fuel-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 206, 112, 0.38);
  box-shadow: var(--shadow-card-hover), 0 0 25px -5px var(--gold-glow);
}

.fuel-card.electric:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-lg), 0 0 25px -5px rgba(56, 189, 248, 0.2);
}

.fuel-card.hybrid:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: var(--shadow-lg), 0 0 25px -5px rgba(16, 185, 129, 0.2);
}

/* Card Header */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.quality-badge, .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quality-badge.verified, .quality-badge.official {
  color: var(--gold-light);
  border-color: rgba(245, 206, 112, 0.45);
  background: rgba(245, 206, 112, 0.12);
  box-shadow: 0 0 12px -2px var(--gold-glow);
}

.quality-badge.unverified {
  color: var(--muted);
  border-color: var(--line);
}

.fuel-card h3 {
  margin: 0;
  color: var(--ink-solid);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.trim {
  margin: -6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.trim span {
  display: inline-block;
  margin-inline-start: 6px;
  color: var(--muted-dim);
  font-family: Outfit, Inter, sans-serif;
  font-weight: 600;
}

/* Cockpit Instrument Fuel Display (.fuel-answer) */
.fuel-answer {
  position: relative;
  min-height: 104px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--hud-gradient);
  border: 1px solid var(--line-glass);
  color: var(--ink);
  display: grid;
  align-content: center;
  box-shadow: var(--specular), var(--shadow-sm);
  overflow: hidden;
}

.fuel-answer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.fuel-card.electric .fuel-answer::before { background: var(--cyan-electric); }
.fuel-card.hybrid .fuel-answer::before { background: var(--emerald-hybrid); }
.fuel-card.diesel .fuel-answer::before { background: var(--silver-titanium); }

.fuel-answer small, .big-answer small {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fuel-answer b {
  font-family: Outfit, Inter, Cairo, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: var(--ink-solid);
}

.unverified-card .fuel-answer {
  background: var(--unverified-answer-bg);
  border-color: var(--line);
}

.unverified-card .fuel-answer::before {
  background: var(--muted-dim);
}

.unverified-card .fuel-answer small {
  color: var(--muted);
}

/* Mini Spec HUD Grid */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-grid div {
  min-height: 66px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--specular);
  transition: background var(--transition-fast);
}

.mini-grid div:hover {
  background: var(--surface-subtle-hover);
}

.mini-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
}

.mini-grid b {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.card-actions .primary-btn {
  flex: 1;
  min-height: 42px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
  background: rgba(245, 206, 112, 0.12);
}

.icon-btn.active {
  border-color: var(--gold);
  background: rgba(245, 206, 112, 0.2);
  color: var(--gold);
  box-shadow: 0 0 16px -2px var(--gold-glow);
}

.icon-btn svg {
  display: block;
  pointer-events: none;
}

/* ==========================================================================
   Pagination Controls
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 12px;
}

.page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-glass);
  background: var(--bg-surface-1);
  color: var(--ink-secondary);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm), var(--specular);
  transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(245, 206, 112, 0.14);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.page-btn.active {
  border-color: var(--gold);
  background: var(--gold-gradient);
  color: var(--gold-ink);
  box-shadow: var(--shadow-glow);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

.pagination span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 8px;
}

/* ==========================================================================
   Empty State & Suggest Action
   ========================================================================== */

.empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-1);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md), var(--specular);
}

.empty h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
}

.empty p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

.load-error {
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #FFA49E;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Modals & Technical Dialogs (.modal)
   ========================================================================== */

.modal {
  width: min(860px, calc(100% - 28px));
  max-height: 90vh;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--modal-bg);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.4), 0 0 40px -10px var(--gold-glow);
  position: fixed;
  inset: 0;
  margin: auto;
  overflow: hidden;
}

.modal::backdrop {
  background: var(--modal-backdrop);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.modal-head h2 {
  margin: 4px 0 2px;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink);
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.close {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--ink);
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.close:hover {
  border-color: var(--gold);
  background: rgba(245, 206, 112, 0.15);
  color: var(--gold-light);
  transform: rotate(90deg);
}

.modal-body {
  padding: 26px 28px 30px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

/* Big Answer HUD inside Modal */
.big-answer {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--hud-gradient);
  border: 1px solid var(--line-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-md);
  margin-bottom: 22px;
}

.big-answer b {
  display: block;
  margin: 8px 0;
  font-family: Outfit, Inter, Cairo, sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.big-answer span {
  display: block;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.7;
}

/* Technical Monroney Spec Table */
.spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-subtle);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.spec-row:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}

.spec-row:nth-last-child(-n+2) {
  border-bottom: 0;
}

.spec-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.spec-row b {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: end;
}

/* Context & Verification Panels */
.context-panel, .unverified-warning, .source-panel, .safety-disclaimer {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  line-height: 1.75;
}

.context-panel h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
}

.context-panel p, .unverified-warning p, .safety-disclaimer {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  margin: 0;
}

.source-panel summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
}

.source-panel a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.source-panel dl {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.source-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.source-panel dt {
  color: var(--muted);
}

.source-panel dd {
  color: var(--ink);
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.record-actions .ghost-btn, .record-actions .primary-btn {
  min-height: 44px;
  padding-block: 10px;
}

/* Quick Share Bar inside Modal */
.modal-share-bar {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-share-bar-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
}

.quick-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-pill {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface-subtle);
  transition: all var(--transition-fast);
}

.share-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(245, 206, 112, 0.12);
}

.share-pill.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.14);
}

.share-pill.twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
  background: rgba(29, 161, 242, 0.14);
}

.share-url-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.share-url-box input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.85rem;
  font-family: Outfit, Inter, sans-serif;
  direction: ltr;
  text-align: left;
  user-select: all;
}

.share-url-box button {
  white-space: nowrap;
  height: 42px;
  padding: 0 16px;
}

/* Modal Form Panels (Suggest & Report) */
.form-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.form-panel input, .form-panel textarea, .form-panel select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  color: var(--ink);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.form-panel input:focus, .form-panel textarea:focus, .form-panel select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-border-glow);
}

.form-panel textarea {
  resize: vertical;
}

/* Comparison Modal Table */
.comparison-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.comparison-table th {
  color: var(--gold);
  background: var(--surface-subtle);
  font-weight: 800;
}

.comparison-table td {
  color: var(--ink);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--modal-bg);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-lg), 0 0 30px var(--gold-glow);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  backdrop-filter: blur(20px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Verified SEO Pages Entry Links
   ========================================================================== */

.seo-entry-links {
  padding: 20px 0 80px;
}

.seo-entry-links h2 {
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.navigation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nav-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 18px 22px;
  border: 1px solid var(--line-glass);
  border-radius: var(--radius);
  background: var(--bg-surface-1);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm), var(--specular);
  transition: all var(--transition-fast);
}

.nav-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(245, 206, 112, 0.08);
  box-shadow: var(--shadow-md), 0 0 20px -5px var(--gold-glow);
}

.nav-tile b {
  font-size: 1.05rem;
  font-weight: 800;
}

.nav-tile span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ==========================================================================
   Static SEO Crawlable Pages (.seo-body)
   ========================================================================== */

.seo-body {
  background: var(--bg);
  color: var(--ink);
}

.seo-body::before {
  opacity: 0.35;
}

[data-theme="light"] .seo-body::before {
  opacity: 0.12;
}

.seo-body .topbar {
  margin-top: 14px;
}

.breadcrumbs {
  padding-top: 24px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-inline-start: 8px;
  color: var(--muted);
}

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

.breadcrumbs a:hover {
  color: var(--gold);
}

.seo-hero {
  padding: 48px 0 32px;
}

.seo-hero h1 {
  max-width: 920px;
  margin: 10px 0 16px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ink);
}

.seo-hero p {
  max-width: 850px;
  color: var(--ink-secondary);
  line-height: 1.85;
  font-size: 1.05rem;
}

.seo-section {
  padding: 20px 0 60px;
}

.seo-section > h2 {
  color: var(--ink);
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.year-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.year-link {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--specular);
  transition: all var(--transition-fast);
}

.year-link:hover {
  border-color: var(--gold);
  background: rgba(245, 206, 112, 0.12);
  color: var(--gold);
  transform: translateY(-2px);
}

.result-list {
  display: grid;
  gap: 20px;
}

.vehicle-result-card {
  padding: 28px;
  border: 1px solid var(--line-glass);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-1);
  box-shadow: var(--shadow-lg), var(--specular);
  backdrop-filter: blur(20px);
}

.result-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.result-heading h2 {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 900;
}

.result-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.recommendation-grid > div {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--gold-tint);
  border: 1px solid var(--gold-border-glow);
  color: var(--ink);
}

.recommendation-grid small {
  display: block;
  font-weight: 800;
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.recommendation-grid strong {
  display: block;
  margin-top: 6px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--ink);
}

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-subtle);
}

.vehicle-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.vehicle-specs dt {
  color: var(--muted);
  font-weight: 600;
}

.vehicle-specs dd {
  margin: 0;
  color: var(--ink);
  text-align: end;
  font-weight: 700;
}

.vehicle-note {
  color: var(--ink-secondary);
  line-height: 1.8;
  margin-top: 18px;
}

/* ==========================================================================
   Luxury Footer (.footer)
   ========================================================================== */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg);
}

.footer span:first-child {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Technical LTR helpers */
.technical {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: Outfit, Inter, sans-serif;
}

html[dir="ltr"] body {
  font-family: "Plus Jakarta Sans", Outfit, Inter, Cairo, system-ui, sans-serif;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 32px;
  }
  .hero h1 {
    font-size: 3.4rem;
  }
  .hero-panel {
    max-width: 680px;
  }
  .toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .toolbar-search {
    grid-column: 1 / -1;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .navigation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .shell {
    width: min(100% - 24px, 1240px);
  }
  .topbar {
    top: 8px;
    padding: 8px 14px;
    margin-top: 8px;
  }
  .top-actions .primary-btn {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
  .ghost-btn {
    padding: 0 10px;
    font-size: 0.8rem;
    min-height: 38px;
  }
  .hero {
    gap: 28px;
    min-height: auto;
    padding: 24px 0 48px;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero p {
    font-size: 1.02rem;
  }
  .hero-stats {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
  }
  .stat-number {
    font-size: 1.3rem;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .dashboard-grid, .navigation-grid, .vehicle-specs, .spec-table, .recommendation-grid {
    grid-template-columns: 1fr;
  }
  .spec-row:nth-child(odd) {
    border-inline-end: 0;
  }
  .spec-row:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  .spec-row:last-child {
    border-bottom: 0;
  }
  .result-heading {
    flex-direction: column;
  }
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .share-url-box {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keep every control reachable at narrow widths and in both writing directions. */
[hidden] { display: none !important; }
.ui-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.admin-main { margin-block: 36px; }
.admin-main h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.admin-main nav { display: flex; gap: 8px; }
.admin-login { max-width: 480px; margin: 32px auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-editor { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-block: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-wide { grid-column: 1 / -1; }
.admin-checkbox { display: flex !important; align-items: center; gap: 10px !important; }
.admin-checkbox input { width: 20px; min-height: 20px; }
.admin-list { display: grid; gap: 12px; }
.admin-list p { color: var(--muted); overflow-wrap: anywhere; }
.admin-search { display: flex; align-items: flex-end; gap: 12px; margin-block: 24px; }
.admin-search label { display: grid; flex: 1; gap: 8px; }
.admin-search input { width: 100%; padding: 12px; background: var(--control-bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-logout { margin-block: 16px; }
.hero > *, .dashboard-grid > *, .fuel-card, .top-actions, .brand-text { min-width: 0; }
.top-actions { justify-content: flex-end; }
.fuel-card h3 a { color: inherit; text-decoration: none; }
.fuel-card h3 a:hover { color: var(--gold); text-decoration: underline; }
.compact-list a, .collection-list a { color: inherit; text-decoration: none; }
.vehicle-page { margin-block: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-surface-1); }
.vehicle-page .modal-body { max-height: none; overflow: visible; }
.variant-control { display: grid; gap: 10px; margin-bottom: 24px; font-weight: 700; }
.variant-control select { width: 100%; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--control-bg); }
.vehicle-result-card, .vehicle-specs dd, .source-panel a, .breadcrumbs, .nav-tile { overflow-wrap: anywhere; }
.vehicle-specs dt { flex-shrink: 0; }
.vehicle-result-card { scroll-margin-top: 180px; }
.octane-help { margin-block: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-subtle); }
.octane-help h3 { color: var(--gold); margin-bottom: 8px; }
.top-actions .ghost-btn, .top-actions .primary-btn, .share-pill, .page-btn { min-height: 44px; }
#finder { scroll-margin-top: 180px; }

@media (max-width: 1080px) {
  .topbar { position: relative; top: 0; }
  .top-actions { flex: 1 1 100%; justify-content: flex-start; }
  #finder { scroll-margin-top: 20px; }
  .hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.3; }
}

@media (max-width: 768px) {
  .topbar { padding: 12px; }
  .admin-editor { grid-template-columns: 1fr; padding: 16px; }
  body:not(.seo-body) .tools-btn span[data-i18n="tools"] { display: none; }
  body:not(.seo-body) .topbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 6px; }
  body:not(.seo-body) .top-actions { display: contents; }
  body:not(.seo-body) .brand { grid-column: 1 / 4; grid-row: 1; }
  body:not(.seo-body) .brand-text b { font-size: 1.05rem; }
  body:not(.seo-body) .brand-text small { font-size: 0.65rem; }
  body:not(.seo-body) .logo { width: 38px; height: 38px; }
  body:not(.seo-body) .tools-btn { grid-column: 4; grid-row: 1; padding-inline: 2px; }
  body:not(.seo-body) .tools-btn span[aria-hidden] { display: none; }
  #themeBtn { grid-column: 5; grid-row: 1; }
  #langBtn { grid-column: 6; grid-row: 1; }
  #garageBtn { grid-column: 1 / 3; grid-row: 2; }
  #favoritesBtn { grid-column: 3 / 5; grid-row: 2; }
  #compareBtn { grid-column: 5 / 7; grid-row: 2; }
  #garageBtn, #favoritesBtn, #compareBtn { gap: 5px; padding-inline: 4px; }
  .brand { gap: 10px; }
  .top-actions { gap: 8px; }
  .top-actions .ghost-btn { flex: 1 0 auto; }
  .top-actions .icon-btn, #langBtn { flex: 0 0 44px; }
  .hero-panel { width: 100%; padding: 18px; }
  .hero-stats { gap: 10px; padding: 14px 10px; }
  .stat-item { flex: 1; }
  .stat-label { font-size: 0.7rem; }
  .region-control { flex-direction: column; align-items: stretch; gap: 8px; }
  .region-control select { width: 100%; min-width: 0; }
  .section-heading { flex-wrap: wrap; gap: 12px; }
  .vehicle-result-card { padding: 18px; }
  .vehicle-specs > div { padding: 12px; gap: 10px; }
  .record-actions > * { flex: 1 1 140px; }
  .footer nav { justify-content: center; gap: 10px; }
  .share-url-box input { width: 100%; }
  input, select, textarea, .share-url-box input { font-size: 16px; }
  .modal { width: calc(100% - 24px); max-height: 90dvh; }
  .modal-head, .modal-body, .form-panel { padding: 18px; }
  .toast { max-width: calc(100% - 24px); padding: 12px 18px; }
}

@media (max-width: 360px) {
  .quick-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .mini-grid { grid-template-columns: 1fr; }
}
