/* =========================================================================
   CarDesk US — Dashboard Light & OBD Checker
   Part 2 of 3: styles.css
   - GTA 6 / Vice City Neon Gradient Aesthetic (#38f6ff Cyan -> #ff2ae6 Magenta)
   - Bigger Clean Car Logo + Continuous 1-2 Alternating Blinking Headlights
   - World-Class Responsive UX for Laptop/Desktop, Android & iPhone
   ========================================================================= */

:root {
  --bg-void: #050714;
  --bg-deep: #090d22;
  --bg-panel: rgba(13, 18, 38, 0.84);
  --bg-panel-solid: #0b1024;
  --bg-input: rgba(5, 8, 20, 0.92);

  --neon-cyan: #38f6ff;
  --neon-mag: #ff2ae6;
  --neon-violet: #8b5cf6;

  --text-primary: #f8fafc;
  --text-secondary: #a8b5d4;
  --text-muted: #707ea0;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-cyan: rgba(56, 246, 255, 0.38);
  --border-mag: rgba(255, 42, 230, 0.42);

  --red: #ff3b5c;
  --red-bg: rgba(255, 59, 92, 0.14);
  --red-border: rgba(255, 59, 92, 0.55);

  --yellow: #ffb800;
  --yellow-bg: rgba(255, 184, 0, 0.14);
  --yellow-border: rgba(255, 184, 0, 0.5);

  --green: #00e599;
  --green-bg: rgba(0, 229, 153, 0.14);
  --green-border: rgba(0, 229, 153, 0.45);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 10px;

  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 55% at 8% -10%, rgba(56, 246, 255, 0.24), transparent 58%),
    radial-gradient(ellipse 78% 58% at 92% 4%, rgba(255, 42, 230, 0.24), transparent 58%),
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(139, 92, 246, 0.14), transparent 65%),
    radial-gradient(circle at 50% 100%, #0e1633 0%, #050714 55%, #000000 100%);
  background-attachment: fixed;
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: calc(68px + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Subtle Vice City Horizon Grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 246, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 230, 0.024) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 22%, black 22%, transparent 82%);
  z-index: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

/* =========================================================================
   1. SIGNATURE LOGO SPLASH INTRO (Bigger Car, Empty Clean Circle, 1-2 Blink)
   ========================================================================= */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: introFailsafe 0.35s ease 2.55s forwards;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, #0e1633 0%, #040611 60%, #000000 100%);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-splash.intro-reveal .intro-backdrop {
  opacity: 0;
  transform: translateY(28px);
}

.intro-splash.intro-done {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.28s ease;
}

@keyframes introFailsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.intro-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.intro-badge {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}

.intro-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 22px rgba(56, 246, 255, 0.32)) drop-shadow(0 0 36px rgba(255, 42, 230, 0.2));
}

.car-part-top {
  opacity: 0;
  animation: dropTopPart 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.car-part-bottom {
  opacity: 0;
  animation: riseBottomPart 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
}

.car-part-wheels {
  opacity: 0;
  animation: popWheels 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

/* Continuous 1-2, 1-2 Alternating Neon Headlight Blink (Splash + Navbar) */
.intro-hl-left,
.nav-hl-left {
  animation: hlBlinkOne 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #38f6ff);
}

.intro-hl-right,
.nav-hl-right {
  animation: hlBlinkTwo 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #ff2ae6);
}

.intro-ring-arc {
  stroke-dasharray: 378;
  stroke-dashoffset: 378;
  transform-origin: 70px 70px;
  transform: rotate(-90deg);
  animation: drawCircle 0.62s cubic-bezier(0.4, 0, 0.2, 1) 0.65s forwards;
}

@keyframes dropTopPart {
  0%   { opacity: 0; transform: translateY(-48px); }
  75%  { opacity: 1; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes riseBottomPart {
  0%   { opacity: 0; transform: translateY(48px); }
  75%  { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes popWheels {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes drawCircle {
  0%   { stroke-dashoffset: 378; transform: rotate(-90deg); }
  100% { stroke-dashoffset: 0; transform: rotate(270deg); }
}

/* Crisp 1-2 Alternating Headlight Rhythm */
@keyframes hlBlinkOne {
  0%, 44%   { opacity: 1; }
  50%, 94%  { opacity: 0.16; }
  100%      { opacity: 1; }
}

@keyframes hlBlinkTwo {
  0%, 44%   { opacity: 0.16; }
  50%, 94%  { opacity: 1; }
  100%      { opacity: 0.16; }
}

.intro-brand-wrap {
  margin-top: 12px;
  opacity: 0;
  animation: brandFadeIn 0.45s ease 0.52s forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.intro-brand-wrap.intro-text-out {
  opacity: 0 !important;
  transform: translateY(-10px);
}

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

.splash-brand {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sb-cyan { color: #38f6ff; }
.sb-mag  { color: #ff2ae6; }

.splash-tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #94a3b8;
}

/* =========================================================================
   2. TOP NAVBAR (Larger Borderless Car Logo + Continuous 1-2 Blink + Install)
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 68px;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 90;
  background: rgba(5, 7, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 1160px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
}

/* Bigger Clean Car Logo — NO Box, NO Circle, NO Border */
.nav-logo-dock {
  width: 58px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-logo-dock.landed {
  opacity: 1;
  transform: scale(1);
}

.nav-car-svg {
  width: 58px;
  height: 38px;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(56, 246, 255, 0.28)) drop-shadow(0 0 14px rgba(255, 42, 230, 0.18));
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.16s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link-accent {
  color: #ff6be9;
}

.nav-link-accent:hover {
  color: #ff99f0;
}

.nav-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(56, 246, 255, 0.45);
  background: rgba(56, 246, 255, 0.09);
  color: var(--neon-cyan);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(56, 246, 255, 0.14);
  transition: all 0.18s ease;
}

.nav-install-btn:hover {
  background: rgba(56, 246, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(56, 246, 255, 0.28);
  transform: translateY(-1px);
}

/* =========================================================================
   3. GTA 6 / VICE CITY HERO STAGE
   ========================================================================= */
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: start;
  padding-top: 32px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 246, 255, 0.08);
  border: 1px solid rgba(56, 246, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(56, 246, 255, 0.12);
}

h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 3.45rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.h1-gradient {
  display: inline-block;
  background: linear-gradient(92deg, #38f6ff 0%, #8b7cff 48%, #ff2ae6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 42, 230, 0.24));
}

.hero-subtitle {
  margin: 0 0 20px;
  max-width: 520px;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.58;
}

.txt-cyan { color: var(--neon-cyan); font-weight: 700; }
.txt-mag  { color: #ff6be9; font-weight: 700; }

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(14, 20, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dot-cyan, .dot-mag, .dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-cyan  { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.dot-mag   { background: var(--neon-mag); box-shadow: 0 0 8px var(--neon-mag); }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Popular US Codes Glass Box */
.quick-panel {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 36, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.block-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  min-height: 36px;
  border-radius: 9px;
  background: rgba(19, 26, 52, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.quick-pill:hover {
  border-color: var(--neon-cyan);
  background: rgba(56, 246, 255, 0.12);
  box-shadow: 0 0 14px rgba(56, 246, 255, 0.18);
  transform: translateY(-1px);
}

.quick-pill code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* 3 Premium Feature Cards */
.mini-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.mini-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(11, 16, 36, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.mini-icon svg { width: 16px; height: 16px; }
.icon-cyan  { background: rgba(56, 246, 255, 0.14); color: var(--neon-cyan); border: 1px solid rgba(56, 246, 255, 0.3); }
.icon-mag   { background: rgba(255, 42, 230, 0.14); color: #ff6be9; border: 1px solid rgba(255, 42, 230, 0.3); }
.icon-green { background: rgba(0, 229, 153, 0.14); color: var(--green); border: 1px solid rgba(0, 229, 153, 0.3); }

.mini-card strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.mini-card span {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* =========================================================================
   4. GLOWING GTA 6 NEON CONSOLE CARD
   ========================================================================= */
.console-card {
  position: relative;
  background: linear-gradient(160deg, rgba(16, 22, 46, 0.9), rgba(8, 11, 26, 0.94));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.68),
    0 0 42px rgba(56, 246, 255, 0.12),
    0 0 58px rgba(255, 42, 230, 0.12);
}

.console-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(135deg, rgba(56, 246, 255, 0.55), rgba(139, 92, 246, 0.42), rgba(255, 42, 230, 0.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #ffffff;
}

.console-hint {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-muted);
}

.dropzone {
  border: 1.5px dashed rgba(56, 246, 255, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(6, 9, 22, 0.72);
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--neon-cyan);
  background: rgba(56, 246, 255, 0.09);
  box-shadow: 0 0 28px rgba(56, 246, 255, 0.18);
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(56, 246, 255, 0.16), rgba(255, 42, 230, 0.14));
  border: 1px solid rgba(56, 246, 255, 0.34);
  color: var(--neon-cyan);
  display: grid;
  place-items: center;
}

.dropzone-icon svg { width: 22px; height: 22px; }

.dropzone-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 0.79rem;
  color: var(--text-secondary);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.search-wrap {
  position: relative;
  z-index: 30;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  padding: 4px 10px 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(56, 246, 255, 0.16);
}

.search-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 11px 0;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.89rem;
}

.clear-btn {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  place-items: center;
}

.clear-btn.visible { display: grid; }

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0c1126;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.88);
  max-height: 270px;
  overflow-y: auto;
  padding: 6px;
  z-index: 60;
}

.search-dropdown.open { display: block; }

.drop-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}

.drop-item:hover,
.drop-item.active {
  background: rgba(56, 246, 255, 0.14);
}

.drop-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drop-code {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 246, 255, 0.12);
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.drop-name {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sev-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sev-dot.RED    { background: var(--red); box-shadow: 0 0 8px var(--red); }
.sev-dot.YELLOW { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.sev-dot.GREEN  { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Vibrant Vice City Neon CTA Button (Crisp White Text) */
.primary-cta-btn {
  width: 100%;
  margin-top: 14px;
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(92deg, #16d9ff 0%, #7d56ff 50%, #ff2ae6 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 42, 230, 0.32), 0 0 22px rgba(56, 246, 255, 0.22);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 36px rgba(255, 42, 230, 0.42), 0 0 28px rgba(56, 246, 255, 0.32);
}

.primary-cta-btn:active { transform: scale(0.99); }

/* Clean In-Card Visual Symbol Picker Toggle */
.symbol-picker-toggle {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.symbol-picker-toggle:hover,
.symbol-picker-toggle[aria-expanded="true"] {
  border-color: var(--border-mag);
  background: rgba(255, 42, 230, 0.1);
  color: #ffffff;
}

.toggle-arrow {
  color: var(--neon-cyan);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.symbol-picker-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
  color: var(--neon-mag);
}

/* Photo Scan & Light Drawer Panels */
.scan-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 8, 20, 0.94);
  border: 1px solid var(--border-cyan);
  animation: fadeSlide 0.22s ease;
}

.scan-preview-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-height: 205px;
  background: #03050b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-preview-wrap img {
  max-width: 100%;
  max-height: 205px;
  object-fit: contain;
  display: block;
}

.scan-laser {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-mag), transparent);
  box-shadow: 0 0 18px var(--neon-cyan);
  animation: laserSweep 1.1s ease-in-out infinite;
}

.scan-preview-wrap.scanning .scan-laser { display: block; }

@keyframes laserSweep {
  0%   { top: 4%; }
  50%  { top: 94%; }
  100% { top: 4%; }
}

.scan-status-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.text-action-btn {
  background: transparent;
  border: 0;
  color: var(--neon-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.scan-confirm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.light-drawer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeSlide 0.22s ease;
}

.drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.filter-tabs { display: flex; gap: 5px; }

.filter-tab {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-tab.active {
  background: rgba(56, 246, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #ffffff;
}

.light-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: 270px;
  overflow-y: auto;
}

.light-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  min-height: 72px;
  border-radius: 11px;
  background: rgba(5, 8, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.light-tile:hover {
  border-color: var(--neon-cyan);
  background: rgba(56, 246, 255, 0.12);
}

.light-tile svg { width: 24px; height: 24px; }
.light-tile.RED svg    { color: var(--red); filter: drop-shadow(0 0 6px rgba(255, 59, 92, 0.5)); }
.light-tile.YELLOW svg { color: var(--yellow); filter: drop-shadow(0 0 6px rgba(255, 184, 0, 0.45)); }
.light-tile.GREEN svg  { color: var(--green); filter: drop-shadow(0 0 6px rgba(0, 229, 153, 0.45)); }

.light-tile span {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =========================================================================
   5. MICRO-SCAN PULSE & RESULT CARD
   ========================================================================= */
.micro-scan-pulse {
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: rgba(11, 16, 36, 0.92);
  border: 1px solid var(--border-cyan);
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--neon-cyan);
  animation: fadeSlide 0.18s ease;
}

.micro-scan-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.micro-scan-beam {
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-mag));
  animation: microBeam 0.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes microBeam {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(240%); }
}

.result-section {
  margin-top: 24px;
  animation: resultReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes resultReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

.result-card {
  background: var(--bg-panel-solid);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.result-card.RED    { border-color: var(--red-border); box-shadow: 0 22px 58px rgba(0, 0, 0, 0.65), 0 0 28px rgba(255, 59, 92, 0.2); }
.result-card.YELLOW { border-color: var(--yellow-border); box-shadow: 0 22px 58px rgba(0, 0, 0, 0.65), 0 0 26px rgba(255, 184, 0, 0.16); }
.result-card.GREEN  { border-color: var(--green-border); box-shadow: 0 22px 58px rgba(0, 0, 0, 0.65), 0 0 26px rgba(0, 229, 153, 0.16); }

.severity-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.severity-banner.RED    { background: var(--red-bg); border-bottom: 1px solid var(--red-border); color: #ff8599; }
.severity-banner.YELLOW { background: var(--yellow-bg); border-bottom: 1px solid var(--yellow-border); color: #ffd566; }
.severity-banner.GREEN  { background: var(--green-bg); border-bottom: 1px solid var(--green-border); color: #66ffd1; }

.severity-left { display: flex; align-items: center; gap: 9px; }

.severity-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.RED .severity-pulse-dot    { background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulseDot 1.2s infinite; }
.YELLOW .severity-pulse-dot { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.GREEN .severity-pulse-dot  { background: var(--green); box-shadow: 0 0 8px var(--green); }

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.36); opacity: 0.6; }
}

.share-btn {
  padding: 6px 13px;
  min-height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
}

.share-btn:hover { background: rgba(255, 255, 255, 0.18); }

.result-body { padding: 22px; }

.result-header-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 15px;
}

.result-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(5, 8, 20, 0.9);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.result-icon-box svg { width: 29px; height: 29px; }
.result-icon-box.RED svg    { color: var(--red); }
.result-icon-box.YELLOW svg { color: var(--yellow); }
.result-icon-box.GREEN svg  { color: var(--green); }

.result-code-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(56, 246, 255, 0.1);
  border: 1px solid rgba(56, 246, 255, 0.28);
  padding: 2px 9px;
  border-radius: 6px;
  margin-bottom: 5px;
}

.result-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 3vw, 1.54rem);
  line-height: 1.2;
  color: #ffffff;
}

.result-plain {
  margin: 0 0 16px;
  font-size: 1.02rem;
  color: #e6edf8;
  line-height: 1.52;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--neon-cyan);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-bottom: 15px;
}

.metric-card {
  padding: 15px;
  border-radius: var(--radius-md);
  background: rgba(5, 8, 20, 0.8);
  border: 1px solid var(--border-subtle);
}

.metric-label {
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 5px;
}

.cost-value {
  font-family: var(--font-mono);
  font-size: 1.42rem;
  font-weight: 700;
  color: #ffffff;
}

.cost-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.quick-check-card {
  border-color: rgba(0, 229, 153, 0.36);
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.1), rgba(5, 8, 20, 0.88));
}

.quick-check-card .metric-label { color: var(--green); }

.quick-check-text {
  margin: 0;
  font-size: 0.91rem;
  color: #ecfdf5;
  line-height: 1.46;
}

.causes-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.causes-label {
  font-size: 0.77rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.cause-chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.result-actions-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.check-another-btn {
  padding: 9px 16px;
  min-height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.check-another-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(56, 246, 255, 0.14);
}

.funnel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, rgba(255, 42, 230, 0.18), rgba(56, 246, 255, 0.14));
  border: 1px solid rgba(255, 42, 230, 0.45);
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.funnel-cta:hover {
  transform: translateY(-2px);
  border-color: var(--neon-mag);
  box-shadow: 0 12px 32px rgba(255, 42, 230, 0.24);
}

.funnel-copy { font-size: 0.91rem; line-height: 1.44; }
.funnel-copy strong { color: var(--neon-cyan); font-weight: 700; }

.funnel-pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon-mag), #d41472);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.81rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.result-disclaimer {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

/* =========================================================================
   6. MORE TOOLS BY CARDESK US (Ecosystem Cards)
   ========================================================================= */
.tools-section {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tools-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
}

.tools-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-cyan);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 22px rgba(56, 246, 255, 0.14);
}

.tool-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-cyan  { background: rgba(56, 246, 255, 0.12); color: var(--neon-cyan); border: 1px solid rgba(56, 246, 255, 0.3); }
.badge-mag   { background: rgba(255, 42, 230, 0.12); color: #ff73eb; border: 1px solid rgba(255, 42, 230, 0.32); }
.badge-green { background: rgba(0, 229, 153, 0.12); color: var(--green); border: 1px solid rgba(0, 229, 153, 0.3); }

.tool-card h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: #ffffff;
}

.tool-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.48;
  flex: 1;
}

.tool-link-label {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* =========================================================================
   7. FAQS, FOOTER & MODALS
   ========================================================================= */
.faq-section { margin-top: 44px; }

.section-heading {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.faq-list { display: grid; gap: 9px; }

details.faq-item {
  background: rgba(11, 16, 36, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 16px;
}

details.faq-item[open] { border-color: var(--border-cyan); }

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  min-height: 46px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.12rem;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

details.faq-item[open] summary::after { content: "−"; color: var(--neon-mag); }

details.faq-item p {
  margin: 0 0 14px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.56;
}

.site-footer {
  margin-top: 48px;
  padding: 24px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 12px;
}

.legal-trigger {
  background: transparent;
  border: 0;
  padding: 6px 4px;
  min-height: 34px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
}

.legal-trigger:hover { color: #ffffff; text-decoration: underline; }

.copyright { margin: 0; font-size: 0.76rem; color: var(--text-muted); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.86);
  backdrop-filter: blur(8px);
  z-index: 200;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow-y: auto;
  background: #0d1228;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
  animation: fadeSlide 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title { margin: 0; font-family: var(--font-display); font-size: 1.16rem; color: #ffffff; }

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-body { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.modal-body h3 { color: var(--text-primary); font-size: 0.94rem; margin: 14px 0 6px; }
.modal-body p { margin: 0 0 10px; }

.toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: #10162d;
  border: 1px solid var(--neon-cyan);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  z-index: 300;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  transition: transform 0.24s ease;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* =========================================================================
   8. RESPONSIVE APP MODE (Tablet, Android & iPhone)
   ========================================================================= */
@media (max-width: 960px) {
  .container,
  .nav-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-links {
    display: none;
  }

  .nav-logo-dock,
  .nav-car-svg {
    width: 50px;
    height: 32px;
  }

  .nav-wordmark {
    font-size: 1.08rem;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 18px;
  }

  .console-card {
    padding: 16px;
    border-radius: 20px;
  }

  .dropzone {
    padding: 20px 14px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .funnel-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .funnel-pill {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .intro-badge {
    width: 168px;
    height: 168px;
  }

  .mini-cards-grid {
    grid-template-columns: 1fr;
  }

  .light-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash { display: none !important; }
  .nav-logo-dock { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
