/* ============================================================
   EV Marketplace — "Night Showroom" theme (v3 preview)
   Dark OLED midnight base + glassmorphism, per UI/UX Pro Max
   specs: blur 10–20px, glass rgba .08–.16, 1px light borders,
   neon accents sparingly, text contrast ≥ 7:1 on body copy.
   Loads AFTER styles.css and re-skins the same markup.
   ============================================================ */

:root {
  --ink: #eef2ff;
  --ink-soft: #ccd6f6;
  --paper: #070b18;
  --surface: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --slate: #9aa7cb;
  --blue: #3b63f3;
  --blue-bright: #6c8dff;
  --blue-dark: #2b4fe0;
  --blue-tint: rgba(59, 99, 243, 0.16);
  --plate: #17c877;
  --plate-tint: rgba(23, 200, 119, 0.14);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --glass-blur: 16px;
}

/* ---------- ground: midnight + aurora glows ---------- */

body {
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(59, 99, 243, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(23, 200, 119, 0.10), transparent 55%),
    radial-gradient(1000px 700px at 50% 115%, rgba(59, 99, 243, 0.12), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
}

/* ---------- header ---------- */

.announce { background: rgba(255, 255, 255, 0.05); color: var(--slate); }
.announce strong { color: var(--ink); }

header.site {
  background: rgba(7, 11, 24, 0.72);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav .logo img { filter: brightness(0) invert(1); }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: #fff; }
.nav-links a.active {
  color: #fff;
  border-bottom: 2px solid var(--plate);
  padding-bottom: 3px;
}
.nav-links a.nav-cta { color: #fff; border-bottom: 0; }
.nav-toggle span { background: var(--ink); }
@media (max-width: 880px) {
  .nav-links {
    background: rgba(7, 11, 24, 0.96);
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- hero: photo melts into the midnight ground ---------- */

.hero-scrim {
  background:
    linear-gradient(100deg, rgba(7, 11, 24, 0.94) 0%, rgba(7, 11, 24, 0.72) 45%, rgba(7, 11, 24, 0.35) 80%),
    linear-gradient(180deg, rgba(7, 11, 24, 0.25) 0%, transparent 30%, rgba(7, 11, 24, 0.98) 100%);
}
.hero-bg { filter: saturate(0.9) brightness(0.85); }
.hero h1 { text-shadow: 0 0 24px rgba(59, 99, 243, 0.35); }
.hero h1 .charge {
  background: linear-gradient(92deg, #6c8dff, #17c877);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* charging line under the hero copy */
.hero-ctas::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 34px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--plate), var(--blue-bright), transparent 85%);
  background-size: 200% 100%;
  animation: charge-line 3.5s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes charge-line {
  0% { background-position: 120% 0; }
  60%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-ctas::after { animation: none; } }

/* ---------- buttons ---------- */

.btn-primary {
  background: linear-gradient(135deg, #4d74ff, #2b4fe0);
  box-shadow: 0 8px 26px rgba(59, 99, 243, 0.45);
}
.btn-primary:hover { background: linear-gradient(135deg, #5d81ff, #3b63f3); }
.btn-outline { color: var(--blue-bright); border-color: var(--blue-bright); }
.btn-outline:hover { background: var(--blue-tint); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); }

/* ---------- stats: neon numerals ---------- */

.stats { background: transparent; border-bottom: 1px solid var(--line); }
.stats-grid { border-top: 1px solid var(--line); }
.stat { border-left-color: var(--blue); }
.stat b { color: #fff; text-shadow: 0 0 14px rgba(108, 141, 255, 0.55); }
.stat span { color: var(--slate); }

/* ---------- glass cards everywhere ---------- */

.card, .car-card, .step, .faq details, form.enquiry {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow);
}
.card h3, .car-card h3, .step h3, .faq summary { color: #fff; }
.card p, .step p, .car-edition, .faq details p { color: var(--slate); }
.car-meta { color: var(--ink-soft); }
.car-price { color: #fff; text-shadow: 0 0 16px rgba(108, 141, 255, 0.6); }
.car-card { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.car-card:hover {
  border-color: rgba(108, 141, 255, 0.55);
  box-shadow: 0 18px 48px rgba(59, 99, 243, 0.28);
}
.card .icon { background: var(--blue-tint); color: var(--blue-bright); }
.step::before { color: transparent; -webkit-text-stroke: 1.5px var(--blue-bright); }

/* eyebrow text + display headings */
h1, h2, h3 { color: var(--ink); }
.eyebrow { color: var(--slate); }
.lede { color: var(--slate); }

/* stock band keeps its photo card look */
.stockband { border: 1px solid var(--line); box-shadow: var(--shadow); }

/* chips + sort on stock page */
.chip { background: var(--surface); border-color: var(--line); color: var(--ink-soft); }
.chip:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
#stock-sort { background: var(--surface); border-color: var(--line); color: var(--ink); }
#stock-sort option { color: #0e1526; }
.stock-updated { color: var(--slate); }

/* ---------- page hero (inner pages) ---------- */

.page-hero { background: transparent; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--slate); }

/* about prose */
.prose p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq summary::after { color: var(--blue-bright); }

/* ---------- contact ---------- */

section.block#contact, .contact-wrap { background: transparent !important; border-top: 1px solid var(--line) !important; }
.contact-info .item { border-bottom-color: var(--line); }
.contact-info .icon { background: var(--blue-tint); color: var(--blue-bright); }
.contact-info b { color: #fff; }
.contact-info span, .hours td { color: var(--slate); }
.hours td:last-child { color: var(--ink); }
form.enquiry label { color: var(--ink-soft); }
form.enquiry input, form.enquiry textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
}
form.enquiry input:focus, form.enquiry textarea:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(59, 99, 243, 0.3);
}
.form-note { color: var(--slate); }

/* ---------- footer ---------- */

footer.site { background: rgba(255, 255, 255, 0.03); border-top: 1px solid var(--line); }
.footer-grid { border-bottom-color: var(--line); }
footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: #fff; }
.footer-legal { color: #7583ab; }

/* ---------- chat widget ---------- */

.chat-panel {
  background: rgba(13, 18, 36, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.chat-head { background: rgba(255, 255, 255, 0.05); }
.chat-row { background: transparent; border-top-color: var(--line); color: var(--ink); }
.chat-row:hover { background: rgba(255, 255, 255, 0.06); }
.chat-row small { color: var(--slate); }
.chat-bubble { box-shadow: 0 8px 26px rgba(59, 99, 243, 0.5); }
.chat-teaser { background: rgba(13, 18, 36, 0.92); border-color: var(--line); }
.chat-teaser p { color: var(--ink); }

/* badge stays neon green — it already pops on dark */
.badge-new { box-shadow: 0 0 18px rgba(23, 200, 119, 0.45); }

/* ---------- immersive entry (homepage) ---------- */

.hero.intro {
  min-height: 100svh;
  text-align: center;
  align-items: center;
}
.hero.intro .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  padding-bottom: 10vh;
}
.hero.intro h1 { max-width: 16ch; }
.hero.intro p { margin-left: auto; margin-right: auto; }
.intro-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem !important;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--plate) !important;
  margin-bottom: 4px !important;
}
.scroll-cue {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--slate);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--plate), transparent);
  animation: cue-drip 1.8s ease-in-out infinite;
}
@keyframes cue-drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

.intro-certainty {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ic-bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center 40%;
  filter: saturate(0.85) brightness(0.8);
}
.ic-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,11,24,0.95) 25%, rgba(7,11,24,0.6) 70%, rgba(7,11,24,0.85) 100%),
              linear-gradient(180deg, var(--paper) 0%, transparent 18%, transparent 82%, var(--paper) 100%);
}
.ic-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6vw;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 8vh;
  padding-bottom: 8vh;
}
.ic-copy { max-width: 460px; }
.ic-copy h2 { margin-bottom: 16px; }
.ring-wrap { position: relative; width: min(260px, 62vw); flex: none; }
.ring-wrap svg { width: 100%; transform: rotate(-90deg); display: block; }
.ring-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 7; }
.ring-val { fill: none; stroke: url(#ringGrad); stroke-width: 7; stroke-linecap: round; }
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
}
.ring-label b { font-size: 2.9rem; display: block; color: #fff; text-shadow: 0 0 22px rgba(23,200,119,0.55); }
.ring-label span { color: var(--slate); font-size: 0.75rem; font-family: var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; font-style: normal; font-weight: 400; }

/* ---------- battery band: compact site version (not full-screen) ---------- */

.certainty-band {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.certainty-band .ic-bg { position: absolute; inset: 0; }
.certainty-band .ic-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,11,24,0.94) 30%, rgba(7,11,24,0.55) 75%, rgba(7,11,24,0.75) 100%);
}
.certainty-band .ic-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5vw;
  flex-wrap: wrap;
  justify-content: center;
  padding: 48px 40px;
  width: 100%;
}
.certainty-band .ring-wrap { width: min(210px, 55vw); }
.certainty-band .ring-label b { font-size: 2.3rem; }
@media (max-width: 640px) {
  .certainty-band .ic-content { padding: 34px 22px; }
}

/* ---------- showroom carousel + NFS-style HUD (stock page) ---------- */

.showroom {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 50% 108%, rgba(59, 99, 243, 0.28), transparent 65%),
    radial-gradient(500px 260px at 50% 112%, rgba(23, 200, 119, 0.14), transparent 60%);
}
.sh-stage { position: relative; height: 78vh; }
.sh-wheel {
  position: absolute;
  left: 50%;
  width: 0; height: 0;
}
.sh-card {
  position: absolute;
  width: min(600px, 82vw);
  left: calc(min(600px, 82vw) / -2);
  top: -190px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.6s cubic-bezier(0.25, 0.9, 0.3, 1), opacity 0.5s ease;
  will-change: transform;
  text-align: center;
}
.sh-card img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  display: block;
}
.sh-card.on img { border-color: rgba(108, 141, 255, 0.55); box-shadow: 0 34px 90px rgba(59, 99, 243, 0.35); }
.sh-name {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sh-card.on .sh-name { opacity: 1; text-shadow: 0 0 18px rgba(108, 141, 255, 0.6); }

.sh-arrow {
  position: absolute;
  top: 44%;
  z-index: 150;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 18, 36, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sh-arrow:hover { border-color: var(--blue-bright); background: rgba(59, 99, 243, 0.3); }
.sh-prev { left: max(18px, 4vw); }
.sh-next { right: max(18px, 4vw); }
.sh-counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--slate);
  font-size: 0.8rem;
}

.nfs-hud {
  position: absolute;
  top: 38px;
  right: 18px;
  z-index: 200;
  width: 172px;
  background: rgba(8, 12, 26, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow);
  padding: 9px 11px;
}
.nfs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.nfs-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: #fff;
  line-height: 1.15;
}
.nfs-sub { color: var(--slate); font-size: 0.54rem; margin-top: 2px; max-width: 24ch; }
.nfs-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.74rem;
  color: #fff;
  text-shadow: 0 0 14px rgba(108, 141, 255, 0.6);
  white-space: nowrap;
}
.nfs-rows { margin-top: 8px; display: grid; gap: 5px; }
.nfs-row {
  display: grid;
  grid-template-columns: auto 1fr 54px;
  align-items: center;
  gap: 6px;
  font-size: 0.53rem;
}
.nfs-row span {
  white-space: nowrap;
  padding-right: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.nfs-row b { color: #fff; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.58rem; }
.nfs-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.nfs-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--plate));
  box-shadow: 0 0 10px rgba(108, 141, 255, 0.7);
  transition: width 0.7s cubic-bezier(0.25, 0.9, 0.3, 1);
}
.nfs-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 7px; }
.nfs-chips em {
  font-style: normal;
  font-size: 0.5rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
}
.nfs-hud .btn { margin-top: 8px; display: block; text-align: center; padding: 6px 10px; font-size: 0.6rem; }

@media (max-width: 700px) {
  .showroom { min-height: 0; }
  .sh-stage { height: 62vh; min-height: 460px; }
  .sh-card { top: -120px; }
  .nfs-hud { position: static; width: auto; margin: 16px 16px 0; }
  .sh-arrow { top: auto; bottom: 14px; }
}

.nfs-row.nfs-plain { grid-template-columns: auto 1fr; }
.nfs-row.nfs-plain b { font-size: 0.62rem; }
