:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #5f6b7d;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-2: #0ea5e9;
  --accent: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);

  /* Coloured studio wall behind every car illustration. */
  --wall-a: #c9ddff;
  --wall-b: #e7efff;
  --wall-c: #f7faff;
  --wall-glow: rgba(255, 255, 255, 0.9);
  --wall-floor: rgba(29, 78, 216, 0.18);

  /* Car illustration tones. */
  --car-line: rgba(15, 23, 42, 0.42);
  --car-glass: #43536b;
  --car-glass-hi: rgba(255, 255, 255, 0.55);
  --car-tyre: #1f2937;
  --car-rim: #e2e8f0;
  --car-hub: #64748b;
  --car-well: rgba(15, 23, 42, 0.28);
  --car-shadow: rgba(30, 64, 175, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #e8efff 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------- top bar ------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo span { color: var(--brand); }
.logo em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  margin-left: 4px;
}

.top-actions { display: flex; align-items: center; gap: 10px; }

.badge {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }

/* -------------------------------- hero -------------------------------- */

.hero {
  padding: 40px 0 26px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  background: linear-gradient(120deg, #0f172a 10%, #1d4ed8 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* -------------------------------- cards -------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.controls { margin-bottom: 18px; }

.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.field select,
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fbfcfe;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field select:focus,
.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  background: #fff;
}

.controls-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.meta { font-size: 0.82rem; color: var(--muted); }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(29, 78, 216, 0.3); }
.btn:active { transform: translateY(0); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.buying-assistance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.05);
}

.buying-assistance-bar > div {
  display: grid;
  gap: 4px;
}

.buying-assistance-bar strong { font-size: 0.9rem; }
.buying-assistance-bar span { color: var(--muted); font-size: 0.78rem; }

.assistance-dealer-field {
  grid-column: 1 / -1;
}

.assistance-dealer-field > a {
  width: fit-content;
  color: var(--brand);
  font-size: 0.78rem;
}

.assistance-dealer-field .assistance-dealer-phone {
  font-weight: 600;
}

.assistance-dealer-field .assistance-dealer-browse {
  width: fit-content;
  text-align: left;
}

.assistance-dealer-field small,
.assistance-dealer-address,
.assistance-dealer-empty {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .buying-assistance-bar { align-items: stretch; flex-direction: column; }
}

.result-card h2 { font-size: 0.95rem; margin: 0; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(29, 78, 216, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.breakdown {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.row strong { color: var(--ink); font-weight: 600; text-align: right; }
.row:last-child { border-bottom: 0; }

.big {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ------------------------------ compare ------------------------------- */

.compare-card { margin-bottom: 18px; }
.compare-card h2 { font-size: 1rem; margin: 0; }

.compare-controls { max-width: 320px; margin-bottom: 14px; }

.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.legend span { display: flex; align-items: center; gap: 7px; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot-a { background: #1d4ed8; }
.dot-b { background: #16a34a; }

#chart { width: 100%; height: 300px; display: block; }

.result-line {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

/* -------------------------------- why --------------------------------- */

.why { margin-bottom: 40px; }
.why h2 { font-size: 1rem; margin: 0 0 10px; }
.why ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

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

footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}
footer p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
footer .fine { margin-top: 6px; font-size: 0.72rem; color: #64748b; }

/* ------------------------------ responsive ----------------------------- */

@media (max-width: 560px) {
  .hero { padding-top: 30px; }
  .badge { display: none; }
  .big { font-size: 1.35rem; }
  #chart { height: 240px; }
}

/* ==========================================================================
   React UI — hero, gallery, comparison
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.16);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.kpi-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.kpi-value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3px;
  color: var(--ink);
}

.hero-card {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8efff, #f8fafc);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* Flat car illustration on a coloured wall. */
.car-art {
  --car-paint: #2563eb;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(120% 72% at 50% 6%, var(--wall-glow), transparent 62%),
    radial-gradient(90% 46% at 50% 102%, var(--wall-floor), transparent 72%),
    linear-gradient(168deg, var(--wall-a), var(--wall-b) 55%, var(--wall-c));
}

.car-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Real photo wrapper. The gradient behind it is the vector fallback. */
.car-photo {
  position: relative;
}

.car-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

/* Manufacturer banners are often ultra-wide; show the whole car. */
.car-photo.official-photo img {
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.img-note {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 3px 9px;
}

.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
}

.hero-caption strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.hero-caption > div > span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

.hero-caption .pill { flex: none; }

/* ------------------------------- gallery -------------------------------- */

.gallery-card { margin-bottom: 18px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 86px;
}

.search {
  flex: 1 1 240px;
  max-width: 340px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fbfcfe;
  font-family: inherit;
  outline: none;
}

.search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  background: #fff;
}

.chip-btn {
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.chip-btn:hover {
  border-color: #cbd5e1;
  color: var(--ink);
}

.chip-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.car-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.car-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.car-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.car-card-media {
  position: relative;
  background: #eef2f9;
}

.car-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.car-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 3px 9px;
}

.car-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px 13px;
  flex: 1;
}

.car-brand {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.car-name {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.car-specs {
  margin: 0;
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.4;
}

.car-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.car-price {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.77rem;
  border-radius: 8px;
  box-shadow: none;
}

.btn-sm:hover { box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22); }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin: 0;
}

/* ------------------------------ comparison ------------------------------ */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.compare-car {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  min-width: 0;
}

.compare-car .car-art {
  width: 104px;
  height: 66px;
  border-radius: 8px;
  flex: none;
}

.compare-car strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.compare-car span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.vs {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
}

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 620px) {
  .compare-grid { grid-template-columns: 1fr; }
  .vs { justify-self: center; }
  .compare-car .car-art { width: 88px; height: 58px; }
  .filter-label { min-width: 100%; }
  .search { max-width: none; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ==========================================================================
   Colour picker, theme toggle and consent
   ========================================================================== */

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.theme-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.theme-btn:focus-visible,
.lang-btn:focus-visible,
.link-btn:focus-visible,
.paint-swatch:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ------------------------------ colour picker --------------------------- */

.paint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.paint-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.paint-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.paint-swatch {
  width: 21px;
  height: 21px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: default;
}

.paint-swatch.active {
  box-shadow: 0 0 0 2px var(--brand);
}

.paint-note {
  margin-left: auto;
  font-size: 0.66rem;
  color: var(--muted);
}

/* -------------------------------- consent -------------------------------- */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px rgba(15, 23, 42, 0.18);
}

.consent-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

.consent-copy { flex: 1 1 440px; min-width: 0; }

.consent-copy h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.consent-copy p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.consent-details { margin-top: 6px !important; font-size: 0.76rem !important; }

.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

body:not(.has-consent) { padding-bottom: 160px; }

/* -------------------------------- dark theme ----------------------------- */

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --card: #131c2e;
  --ink: #e6edf7;
  --muted: #94a3b8;
  --line: #26344d;
  --brand: #60a5fa;
  --brand-2: #38bdf8;
  --accent: #4ade80;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --wall-a: #1a2d52;
  --wall-b: #121f38;
  --wall-c: #0c1626;
  --wall-glow: rgba(96, 165, 250, 0.2);
  --wall-floor: rgba(0, 0, 0, 0.42);

  --car-line: rgba(226, 232, 240, 0.38);
  --car-glass: #8fa6c4;
  --car-glass-hi: rgba(255, 255, 255, 0.5);
  --car-tyre: #0a1120;
  --car-rim: #9aa8bd;
  --car-hub: #4a5a75;
  --car-well: rgba(0, 0, 0, 0.45);
  --car-shadow: rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] body {
  background: radial-gradient(1200px 600px at 50% -200px, #17233b 0%, var(--bg) 55%) no-repeat, var(--bg);
}

html[data-theme="dark"] .topbar { background: rgba(11, 18, 32, 0.85); }

html[data-theme="dark"] .badge,
html[data-theme="dark"] .lang-btn,
html[data-theme="dark"] .theme-btn,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .vs,
html[data-theme="dark"] .btn-ghost {
  background: #17233b;
  color: var(--ink);
}

html[data-theme="dark"] .hero h1 {
  background: linear-gradient(120deg, #e6edf7 10%, #60a5fa 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .eyebrow {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.26);
}

html[data-theme="dark"] .pill { background: rgba(96, 165, 250, 0.16); }

html[data-theme="dark"] .field select,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .search {
  background: #0f1a2b;
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .search:focus {
  background: #131f33;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] .hero-card {
  background: linear-gradient(160deg, #17233b, #0f1a2b);
}

html[data-theme="dark"] .img-note {
  background: rgba(15, 23, 42, 0.88);
  color: #cbd5e1;
}

html[data-theme="dark"] .hero-caption,
html[data-theme="dark"] .paint-row {
  background: rgba(15, 23, 42, 0.95);
}

html[data-theme="dark"] .paint-swatch { border-color: var(--card); }

html[data-theme="dark"] .car-card,
html[data-theme="dark"] .car-card-media,
html[data-theme="dark"] .compare-car,
html[data-theme="dark"] .chip-btn,
html[data-theme="dark"] .result-line,
html[data-theme="dark"] footer {
  background: #0f1a2b;
}

html[data-theme="dark"] .chip-btn:hover {
  border-color: #3b4d6b;
  color: var(--ink);
}

html[data-theme="dark"] .chip-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #0b1220;
}

html[data-theme="dark"] .btn:not(.btn-ghost),
html[data-theme="dark"] .car-badge {
  color: #0b1220;
}

html[data-theme="dark"] .dot-a { background: #60a5fa; }
html[data-theme="dark"] .dot-b { background: #4ade80; }
html[data-theme="dark"] footer .fine { color: var(--muted); }

html[data-theme="dark"] .consent {
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 620px) {
  .paint-note { margin-left: 0; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 auto; }
  body:not(.has-consent) { padding-bottom: 230px; }
}

/* ---------------------------- layout + ad rail --------------------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.content { min-width: 0; }

.rail { display: none; }

@media (min-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
  .rail {
    display: block;
    position: sticky;
    top: 84px;
  }
}

.rail .ad-slot { margin: 0 0 16px; }

.quick-facts { padding: 18px; }

.quick-facts h2 {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.rail-note {
  margin: 10px 2px 0;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------------------------------- ads ---------------------------------- */

.ad-slot { margin: 18px 0; }

.ad-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
}

.ad-box[data-live="1"] {
  border-color: transparent;
  background: none;
}

.ad-rectangle .ad-box { min-height: 280px; }
.ad-rail .ad-box { min-height: 600px; }

.ad-infeed {
  grid-column: 1 / -1;
  margin: 0;
}

.ad-infeed .ad-box { min-height: 120px; }

.ad-note {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ------------------------------- car detail ------------------------------ */

.car-detail {
  margin: 18px 0;
  padding: 22px;
}

.car-detail h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.detail-intro {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.detail-col h3,
.car-detail > h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.detail-rows { border-top: 1px solid var(--line); }

.detail-total {
  margin-top: 10px;
  text-align: right;
  font-size: 1.15rem;
  font-weight: 800;
}

.detail-note {
  margin: 8px 0 0;
  text-align: right;
  font-size: 0.76rem;
  color: var(--muted);
}

.emi-head,
.emi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.emi-head {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.emi-row strong { font-weight: 700; }

.alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.alt-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.alt-card .car-art {
  width: 100%;
  height: 96px;
}

.alt-card span { display: block; padding: 8px 10px; }
.alt-card strong { display: block; font-size: 0.85rem; }

.alt-card em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.alt-card:hover { border-color: var(--brand); }

.faq details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.faq p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ------------------------------- foot links ------------------------------ */

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.foot-links a {
  font-size: 0.8rem;
  color: var(--brand);
  text-decoration: none;
}

.foot-links a:hover { text-decoration: underline; }

/* --------------------------- consent preferences ------------------------- */

.consent {
  max-height: 88vh;
  overflow-y: auto;
}

.consent-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  cursor: pointer;
}

.consent-row input {
  margin-top: 3px;
  accent-color: var(--brand);
}

.consent-row strong {
  display: block;
  font-size: 0.8rem;
}

.consent-row em {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--muted);
}

.consent-panel .btn {
  justify-self: start;
  margin-top: 2px;
}

/* ------------------------------- dark extras ----------------------------- */

html[data-theme="dark"] .alt-card { background: #0f1a2b; }

html[data-theme="dark"] .ad-box {
  background: rgba(148, 163, 184, 0.06);
}

html[data-theme="dark"] .ad-box[data-live="1"] { background: none; }



/* ==========================================================================
   News ticker, navigation, filters, pagination, compare and state prices
   ========================================================================== */

/* ------------------------------- news ticker ---------------------------- */

.news-ticker {
  background: linear-gradient(90deg, #0f172a, #1e3a8a 55%, #0f172a);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.ticker-tag {
  display: inline-block;
  flex: none;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: #64748b;
  color: #fff;
}

.tag-launch { background: #f59e0b; color: #1f1300; }
.tag-offer { background: #22c55e; color: #06230f; }
.tag-price { background: #22c55e; color: #06230f; }
.tag-ev { background: #38bdf8; color: #052033; }
.tag-event { background: #c084fc; color: #1b0630; }
.tag-news { background: #64748b; color: #fff; }

.ticker-title {
  flex: 1;
  min-width: 0;
  color: #f1f5f9;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-title:hover { text-decoration: underline; }

.ticker-nav { display: flex; gap: 8px; flex: none; }

/* 48px hit area keeps these controls inside the WCAG/Lighthouse tap-target size. */
.ticker-nav button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ticker-nav button:hover { background: rgba(255, 255, 255, 0.2); }

/* -------------------------------- main nav ------------------------------ */

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 6px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--brand); background: rgba(29, 78, 216, 0.07); }

/* ------------------------------- hero search ---------------------------- */

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 0 16px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.hero-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.hero-search .btn { white-space: nowrap; }

/* -------------------------------- news list ----------------------------- */

.news-card { margin-bottom: 18px; }
.news-meta { display: flex; gap: 6px; flex-wrap: wrap; }

.ai-pill {
  background: linear-gradient(120deg, #7c3aed, #2563eb);
  border-color: transparent;
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.news-item:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.news-item .ticker-tag { align-self: flex-start; }
.news-item strong { font-size: 0.85rem; line-height: 1.35; }
.news-item em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.news-src { margin-top: auto; font-size: 0.7rem; color: var(--muted); }

/* ------------------------------ gallery filters ------------------------- */

.gallery-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.filters .filter-row { gap: 6px; }
.filters .filter-row .filter-label { flex-basis: 100%; min-width: 0; }
.filters .search { flex: none; width: 100%; max-width: none; }
.filters .chip-btn { padding: 5px 9px; font-size: 0.74rem; }

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field select,
.sort-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.filter-field select:focus,
.sort-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.filter-clear { align-self: flex-start; }

.gallery-main { min-width: 0; }

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

.gallery-toolbar .result-line {
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.sort-field select { width: auto; min-width: 150px; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(29, 78, 216, 0.25);
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.active-chip span { font-size: 0.9rem; line-height: 1; }
.active-chip:hover { background: rgba(29, 78, 216, 0.14); }

/* ---------------------------- compare on cards -------------------------- */

.compare-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.compare-toggle input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--brand);
}

.compare-toggle.checked {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.compare-toggle input:disabled { cursor: not-allowed; }

/* ------------------------------- pagination ----------------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ------------------------------ compare tray ---------------------------- */

.compare-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.25);
}

.compare-tray-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.compare-tray-count { font-size: 0.78rem; font-weight: 700; }

.compare-tray-cars {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.compare-chip button {
  padding: 0;
  border: 0;
  background: none;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.compare-tray-actions { display: flex; gap: 6px; }
.compare-tray .btn-ghost { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.28); }
.compare-tray .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ------------------------------ compare modal --------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 18px 20px 20px;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-head h2 { margin: 0; font-size: 1.1rem; }

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.compare-table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.compare-table th,
.compare-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th { border-bottom: 2px solid var(--line); }
.compare-table thead th span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-table thead th strong { display: block; margin: 1px 0 4px; font-size: 0.95rem; }
.compare-table tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare-table tbody tr:hover { background: rgba(29, 78, 216, 0.04); }
.compare-art { width: 100%; max-width: 150px; aspect-ratio: 16 / 10; border-radius: 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ----------------------------- state price table ------------------------ */

.state-price { margin-top: 22px; }
.state-price h3 { margin: 0; font-size: 1rem; }

.state-price-scroll {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.state-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.state-price-table th,
.state-price-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.state-price-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.state-price-table tbody th { font-weight: 600; }
.state-price-table tr.active { background: rgba(29, 78, 216, 0.08); }
.state-price-table tr.active th { color: var(--brand); }

/* ---------------------------- dark + responsive ------------------------- */

html[data-theme="dark"] .news-item,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .page-btn,
html[data-theme="dark"] .hero-search input,
html[data-theme="dark"] .filter-field select,
html[data-theme="dark"] .sort-field select {
  background: #0f1a2b;
}

html[data-theme="dark"] .modal-close { background: #1e293b; }

html[data-theme="dark"] .active-chip {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

html[data-theme="dark"] .compare-toggle { background: rgba(15, 26, 43, 0.88); }
html[data-theme="dark"] .compare-toggle.checked { background: var(--brand); color: #0b1220; }
html[data-theme="dark"] .state-price-table thead th { background: #131c2e; }

@media (max-width: 980px) {
  .gallery-layout { grid-template-columns: 1fr; }
  .filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: start;
  }
  .filters .filter-row { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .hero-search { flex-direction: column; }
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.car-onroad {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.car-onroad strong {
  color: var(--ink);
  font-weight: 700;
}

html[data-theme="dark"] .car-onroad strong { color: var(--ink); }

#gallery,
#compare,
#news,
#tools,
#launches,
#dealers,
#muhurat,
#offers,
#loans,
#alerts { scroll-margin-top: 80px; }

/* ==========================================================================
   Launch spotlight
   ========================================================================== */

.launch-spotlight {
  position: relative;
  margin: 22px 0;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background:
    radial-gradient(900px 340px at 0% 0%, rgba(245, 158, 11, 0.16), transparent 60%),
    radial-gradient(700px 300px at 100% 0%, rgba(29, 78, 216, 0.12), transparent 62%),
    var(--card);
  box-shadow: var(--shadow);
}

.launch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.launch-head h2 {
  margin: 4px 0 4px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.launch-eyebrow {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

.launch-count { white-space: nowrap; }

.launch-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.launch-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #eef2f9;
  border: 1px solid var(--line);
}

.launch-img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.launch-media .img-note {
  top: auto;
  bottom: 10px;
  left: 10px;
}

.launch-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.launch-360-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.launch-360-btn:hover { background: #fff; }

.launch-copy h3 {
  margin: 2px 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.launch-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.launch-price-row strong { font-size: 1.25rem; letter-spacing: -0.02em; }
.launch-price-row span { color: var(--muted); font-size: 0.78rem; }
.launch-price-row .launch-date {
  margin-left: auto;
  color: #b45309;
  font-weight: 700;
}

.launch-meta { margin: 0 0 12px; color: var(--muted); font-size: 0.82rem; }

.launch-copy h4 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 14px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.4;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.launch-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 4px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}

.launch-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  width: 250px;
  padding: 6px;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.launch-chip:hover { border-color: #cbd5e1; }
.launch-chip.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.launch-chip-img {
  flex: 0 0 74px;
  width: 74px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
}

.launch-chip span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.launch-chip strong {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.launch-chip em { font-style: normal; font-size: 0.7rem; color: var(--muted); }

/* ==========================================================================
   360 photo walkaround
   ========================================================================== */

.car360 { display: grid; gap: 8px; }

.car360-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f9;
  border: 1px solid var(--line);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.car360-stage.dragging { cursor: grabbing; }

.car360-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.car360.compact .car360-stage { aspect-ratio: 16 / 9; }

.car360-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.car360-tab {
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}

.car360-tab:hover { color: var(--ink); background: rgba(148, 163, 184, 0.16); }
.car360-tab.active { color: #fff; background: var(--brand); border-color: var(--brand); }

/* OEM 360° frames are transparent PNG cut-outs — show the whole car. */
.car360.official-frames .car360-stage {
  background: radial-gradient(circle at 50% 62%, #ffffff 0%, #eef2f9 62%, #e2e8f2 100%);
}
.car360.official-frames .car360-stage img { object-fit: contain; }

.car360-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 3px 9px;
}

.car360-color {
  position: absolute;
  top: 34px;
  left: 10px;
  z-index: 2;
  font-size: 0.64rem;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 3px 9px;
}

.car360-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.car360-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.64rem;
  font-weight: 600;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 3px 9px;
}

.car360-controls {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
}

.car360-controls button {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.car360-controls button:hover { background: #fff; }
.car360-controls button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.car360-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 2px;
}

.car360-dots { display: flex; justify-content: center; gap: 6px; }

.car360-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
}

.car360-dots button.active { background: var(--brand); transform: scale(1.25); }

.car360-empty { display: grid; gap: 8px; }
.car360-empty p { margin: 0; font-size: 0.78rem; color: var(--muted); }

.car360-modal { width: min(960px, 100%); }

/* -------------------------- media tabs & lightbox ------------------------ */

.car-media { display: grid; gap: 10px; margin: 0 0 18px; }
.car-media.spotlight { margin: 0; }

.media-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.car-media.spotlight .media-tabs {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.media-tab {
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}

.media-tab:hover { color: var(--ink); background: rgba(148, 163, 184, 0.16); }
.media-tab.active { color: #fff; background: var(--brand); border-color: var(--brand); }

.media-hero {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eef2f9;
  cursor: zoom-in;
}

.media-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-hero img.official-photo { object-fit: contain; background: #eef2f9; }

.media-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.media-thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f9;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb:hover { border-color: var(--brand); }

.media-360 { max-width: 720px; }

.lightbox-panel { width: min(1080px, 100%); }

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  line-height: 1;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.lightbox-meta .img-note { position: static; }

.lightbox-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }

.lightbox-thumbs button {
  flex: 0 0 auto;
  width: 76px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f9;
  cursor: pointer;
}

.lightbox-thumbs button.active { border-color: var(--brand); }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Lead / registration modal
   ========================================================================== */

.lead-modal { width: min(640px, 100%); }

.lead-form { display: grid; gap: 12px; }

.lead-intro { margin: 0; font-size: 0.86rem; color: var(--muted); }

.lead-summary {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.14);
  font-size: 0.8rem;
}

.lead-summary span { color: var(--muted); }
.lead-summary em { font-style: normal; font-size: 0.72rem; color: var(--muted); }

.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.lead-grid .field { margin: 0; }

.lead-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  background: #fbfcfe;
  resize: vertical;
}

.lead-brands { display: grid; gap: 6px; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.consent-check input { margin-top: 3px; }
.consent-check a { color: var(--brand); }

.form-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lead-success {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 6px 0;
}

.lead-success h3 { margin: 0; font-size: 1.15rem; }
.lead-success p { margin: 0; font-size: 0.86rem; color: var(--muted); }

.lead-success-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: #15803d;
}

.ref-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px dashed var(--brand);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.ref-box strong {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.lead-code { font-size: 0.82rem; }

/* ==========================================================================
   Showroom offers
   ========================================================================== */

.muhurat-card { margin-bottom: 18px; }

.muhurat-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.muhurat-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 72px;
  text-align: left;
  text-decoration: none;
}

.muhurat-link strong { font-size: 0.86rem; }
.muhurat-link span { color: var(--muted); font-size: 0.74rem; }

.muhurat-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.offers-card { margin-bottom: 18px; }

.offers-controls { display: flex; flex-wrap: wrap; gap: 6px; }

.offer-disclaimer {
  margin: 0 0 14px;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid var(--line);
}

.offer-fallback {
  margin: -6px 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-ink, #b45309);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.offer-type {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
}

.offer-top strong { font-size: 0.95rem; letter-spacing: -0.01em; }

.offer-card h3 { margin: 2px 0 0; font-size: 0.95rem; }
.offer-card p { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

.offer-showroom {
  display: grid;
  gap: 1px;
  padding-top: 6px;
  font-size: 0.74rem;
}

.offer-showroom strong { font-size: 0.76rem; }
.offer-showroom span { color: var(--muted); }

.offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.offers-more { margin-top: 12px; }

/* ==========================================================================
   Loans
   ========================================================================== */

.loans-card { margin-bottom: 18px; }

.loan-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.12);
  font-size: 0.78rem;
  color: var(--muted);
}

.loan-summary strong { color: var(--ink); }

.loans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.loan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.loan-card.preferred {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.loan-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 9px;
}

.loan-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.loan-head strong { display: block; font-size: 0.85rem; }
.loan-head em { font-style: normal; font-size: 0.68rem; color: var(--muted); }

.loan-rate {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.loan-emi {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.07);
}

.loan-emi span { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.loan-emi strong { font-size: 1.05rem; }
.loan-emi em { font-style: normal; font-size: 0.68rem; color: var(--muted); }

.loan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.loan-features li {
  position: relative;
  padding-left: 16px;
  font-size: 0.74rem;
  color: var(--muted);
}

.loan-features li::before {
  content: "\2022";
  position: absolute;
  left: 2px;
  color: var(--brand);
  font-weight: 800;
}

.loan-card .btn { margin-top: auto; }

/* ==========================================================================
   Alerts + referral
   ========================================================================== */

.alerts-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 20px;
  align-items: center;
  margin: 18px 0;
  padding: 24px;
  border-radius: 20px;
  color: #e6edf7;
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(56, 189, 248, 0.22), transparent 62%),
    linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.alerts-card h2 { margin: 4px 0 8px; font-size: 1.35rem; color: #f8fafc; }
.alerts-card p { margin: 0 0 10px; color: #cbd5e1; font-size: 0.86rem; }
.alerts-card .launch-eyebrow {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.3);
}

.alerts-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 16px;
}

.alerts-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #dbeafe;
}

.alerts-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 800;
}

.alerts-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.alerts-note { font-size: 0.7rem; color: #94a3b8; }

.alerts-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.alerts-badge {
  display: grid;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.alerts-badge strong { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: #7dd3fc; }
.alerts-badge em { font-style: normal; font-size: 0.78rem; color: #f8fafc; }
.alerts-badge span { font-size: 0.66rem; color: #94a3b8; }

.referral-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(29, 78, 216, 0.05);
}

.referral-bar h2 { margin: 0 0 3px; font-size: 0.98rem; }
.referral-bar p { margin: 0; font-size: 0.78rem; color: var(--muted); max-width: 640px; }

.referral-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.ref-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed var(--brand);
}

.ref-code strong { font-size: 0.86rem; letter-spacing: 0.1em; color: var(--brand); }

/* Gallery card extras + car detail extras */

.new-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.28);
}

.selected-badge { top: auto; bottom: 8px; }

.card-360-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
}

.card-360-btn:hover { background: #fff; }

.detail-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.launch-pill {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.detail-360 { margin: 0 0 18px; max-width: 720px; }
.detail-features { margin-bottom: 20px; }

/* ---------------------------- new dark rules ---------------------------- */

html[data-theme="dark"] .launch-spotlight {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(900px 340px at 0% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
    radial-gradient(700px 300px at 100% 0%, rgba(96, 165, 250, 0.12), transparent 62%),
    var(--card);
}

html[data-theme="dark"] .launch-chip,
html[data-theme="dark"] .offer-card,
html[data-theme="dark"] .loan-card {
  background: #0f1a2b;
}

html[data-theme="dark"] .launch-360-btn,
html[data-theme="dark"] .card-360-btn,
html[data-theme="dark"] .car360-controls button {
  background: rgba(15, 26, 43, 0.92);
  color: #e6edf7;
}

html[data-theme="dark"] .launch-360-btn:hover,
html[data-theme="dark"] .card-360-btn:hover,
html[data-theme="dark"] .car360-controls button:hover { background: #1e293b; }

html[data-theme="dark"] .car360-hint,
html[data-theme="dark"] .car360-color,
html[data-theme="dark"] .launch-media .img-note {
  color: #e6edf7;
  background: rgba(15, 26, 43, 0.9);
}
html[data-theme="dark"] .car360-tab {
  border-color: rgba(148, 163, 184, 0.3);
}
html[data-theme="dark"] .car360-tab:hover { color: #e6edf7; }
html[data-theme="dark"] .car360-note { color: #94a3b8; }

html[data-theme="dark"] .lead-form textarea { background: #0f1a2b; }
html[data-theme="dark"] .lead-summary { background: rgba(96, 165, 250, 0.1); }
html[data-theme="dark"] .loan-summary { background: rgba(96, 165, 250, 0.1); }
html[data-theme="dark"] .loan-emi { background: rgba(148, 163, 184, 0.12); }
html[data-theme="dark"] .offer-disclaimer { background: rgba(148, 163, 184, 0.1); }
html[data-theme="dark"] .referral-bar { background: rgba(96, 165, 250, 0.08); }
html[data-theme="dark"] .car360-stage,
html[data-theme="dark"] .launch-media,
html[data-theme="dark"] .car-card-media { background: #0f1a2b; }

html[data-theme="dark"] .car-media.spotlight .media-tabs {
  background: rgba(15, 26, 43, 0.88);
  border-color: rgba(148, 163, 184, 0.3);
}
html[data-theme="dark"] .media-tab:hover { color: #e6edf7; }
html[data-theme="dark"] .media-hero,
html[data-theme="dark"] .media-thumb,
html[data-theme="dark"] .lightbox-thumbs button { background: #0f1a2b; }
html[data-theme="dark"] .media-hero img.official-photo { background: #0f1a2b; }
html[data-theme="dark"] .car360.official-frames .car360-stage {
  background: radial-gradient(circle at 50% 62%, #1e293b 0%, #0f1a2b 62%, #0b1220 100%);
}
html[data-theme="dark"] .media-count,
html[data-theme="dark"] .lightbox-nav {
  color: #e6edf7;
  background: rgba(15, 26, 43, 0.92);
  border-color: rgba(148, 163, 184, 0.3);
}

@media (max-width: 980px) {
  .launch-main { grid-template-columns: 1fr; }
  .alerts-card { grid-template-columns: 1fr; }
  .alerts-badges { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .launch-spotlight { padding: 16px; }
  .launch-copy h3 { font-size: 1.25rem; }
  .launch-price-row .launch-date { margin-left: 0; }
  .launch-chip { width: 220px; }
  .offers-grid,
  .loans-grid { grid-template-columns: 1fr; }
  .referral-bar { align-items: flex-start; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-media.spotlight .media-tabs { top: auto; bottom: 8px; }
  .car-media.spotlight .media-tabs .media-tab { padding: 4px 8px; font-size: 0.68rem; }
  .lightbox-stage img { max-height: 56vh; }
}

/* ==========================================================================
   Carwow-inspired discovery: CarCost Score, best picks, deals, car finder
   ========================================================================== */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* --------------------------------- score --------------------------------- */

.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #16a34a);
  border-radius: 10px;
  padding: 4px 9px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
}

.score-badge strong { font-size: 1rem; font-weight: 800; }
.score-badge span { font-size: 0.62rem; font-weight: 700; opacity: 0.85; }
.score-badge.compact { padding: 3px 7px; border-radius: 8px; }
.score-badge.compact strong { font-size: 0.82rem; }

.car-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.score-panel {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(14, 165, 233, 0.06));
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-head h3 { margin: 0; font-size: 1rem; }
.score-verdict { margin: 2px 0 0; color: var(--muted); font-size: 0.8rem; }

.score-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #0f766e;
}
.score-number strong { font-size: 1.7rem; line-height: 1; }
.score-number span { font-size: 0.75rem; font-weight: 700; color: var(--muted); }

.score-meter {
  height: 7px;
  margin: 10px 0 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: hidden;
}
.score-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #16a34a);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pros-cons h4 { margin: 0 0 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pros-cons .pros h4 { color: #15803d; }
.pros-cons .cons h4 { color: #b45309; }
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 0.82rem; color: var(--muted); }
.pros-cons li { margin: 3px 0; }

/* ------------------------------- best picks ------------------------------ */

.best-picks { margin-top: 18px; }
.picks-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.pick-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.pick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pick-media { position: relative; background: #eef2f9; }
.pick-img { width: 100%; aspect-ratio: 16 / 10; }
.pick-media .score-badge { position: absolute; right: 8px; bottom: 8px; }
.pick-media .new-badge { position: absolute; top: 8px; left: 8px; }
.pick-body { padding: 10px 12px 12px; }
.pick-body h3 { margin: 1px 0 3px; font-size: 1rem; }
.pick-body p { margin: 0 0 8px; font-size: 0.74rem; color: var(--muted); }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick-foot strong { font-size: 0.9rem; }

/* --------------------------------- deals --------------------------------- */

.deals-strip { margin-top: 18px; }
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.deal-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.08), var(--card) 60%);
}
.deal-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 3px 8px;
}
.deal-value { display: block; margin: 8px 0 2px; font-size: 1.25rem; color: #0f766e; }
.deal-card h3 { margin: 0 0 4px; font-size: 0.92rem; }
.deal-card p { margin: 0 0 10px; font-size: 0.76rem; color: var(--muted); }

/* ------------------------------- car finder ------------------------------ */

.finder-panel { max-width: 760px; width: calc(100% - 32px); }
.finder-sub { margin: 0 0 12px; color: var(--muted); font-size: 0.86rem; }
.finder-progress {
  height: 5px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: hidden;
}
.finder-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.2s ease;
}
.finder-step { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.finder-q { margin: 4px 0 12px; font-size: 1.2rem; }
.finder-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.finder-option {
  font-family: inherit;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.finder-option:hover { border-color: var(--brand); background: rgba(29, 78, 216, 0.05); }
.finder-option.active { border-color: var(--brand); background: rgba(29, 78, 216, 0.1); }
.finder-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.finder-actions .btn:only-child { margin-left: auto; }
.finder-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.finder-results-head h3 { margin: 0; }
.finder-results { display: grid; gap: 10px; }
.finder-result {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--card);
}
.finder-img { width: 150px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #eef2f9; }
.finder-result-body h4 { margin: 1px 0 3px; font-size: 1.02rem; }
.finder-result-body p { margin: 0 0 4px; font-size: 0.76rem; color: var(--muted); }
.finder-why { font-size: 0.76rem; color: var(--muted); }
.finder-why strong { color: var(--ink); }
.finder-result-body .btn { margin-top: 6px; }

/* ----------------------------- dark theme -------------------------------- */

html[data-theme="dark"] .score-panel {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.14), rgba(14, 165, 233, 0.12));
  border-color: rgba(148, 163, 184, 0.28);
}
html[data-theme="dark"] .score-number { color: #34d399; }
html[data-theme="dark"] .score-meter { background: rgba(148, 163, 184, 0.2); }
html[data-theme="dark"] .pick-card,
html[data-theme="dark"] .deal-card,
html[data-theme="dark"] .finder-option,
html[data-theme="dark"] .finder-result { background: #0f1a2b; border-color: rgba(148, 163, 184, 0.26); }
html[data-theme="dark"] .pick-media,
html[data-theme="dark"] .finder-img { background: #0b1220; }
html[data-theme="dark"] .finder-option { color: #e6edf7; }
html[data-theme="dark"] .finder-option:hover,
html[data-theme="dark"] .finder-option.active { background: rgba(96, 165, 250, 0.16); }
html[data-theme="dark"] .deal-value { color: #34d399; }
html[data-theme="dark"] .pros-cons .pros h4 { color: #4ade80; }
html[data-theme="dark"] .pros-cons .cons h4 { color: #fbbf24; }

/* ------------------------------ responsive ------------------------------- */

@media (max-width: 980px) {
  .picks-grid,
  .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .picks-tabs { justify-content: flex-start; }
  .picks-grid,
  .deals-grid,
  .pros-cons,
  .finder-options { grid-template-columns: 1fr; }
  .finder-result { grid-template-columns: 1fr; }
  .finder-img { width: 100%; }
  .finder-result .score-badge { position: absolute; top: 10px; right: 10px; }
  .finder-actions { flex-wrap: wrap; }
}

/* ---------------------- Carwow-style browse section ---------------------- */
.browse-card { padding: 20px; }
.browse-head h2 { margin: 0 0 4px; font-size: 1.35rem; }
.browse-head p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.browse-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.browse-tab { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.browse-tab:hover { border-color: var(--accent); }
.browse-tab.active { background: #15803d; border-color: #15803d; color: #fff; }
html[data-theme="dark"] .browse-tab.active { background: var(--accent); border-color: var(--accent); color: #052e16; }
.browse-panel h3 { margin: 0 0 8px; font-size: 1rem; }
.browse-panel-sub { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.browse-group + .browse-group { margin-top: 18px; }
.browse-grid { display: grid; gap: 10px; }
.browse-grid-budget { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.browse-grid-fuel { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.browse-grid-type { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.browse-grid-brand { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.browse-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.browse-tile:hover, .browse-tile:focus-visible { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); outline: none; }
.browse-tile-title { font-weight: 650; font-size: 0.95rem; }
.browse-tile-hint { color: var(--muted); font-size: 0.8rem; line-height: 1.25; }
.browse-count { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.browse-tile-brand { flex-direction: row; align-items: center; gap: 10px; }
.browse-monogram { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.browse-tile-brand .browse-count { margin-left: auto; margin-top: 0; }
.browse-tile-brand .browse-tile-title { flex: 1 1 auto; }
@media (max-width: 640px) {
  .browse-grid-budget, .browse-grid-fuel { grid-template-columns: repeat(2, 1fr); }
  .browse-grid-type, .browse-grid-brand { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Dealer finder
   ========================================================================== */

.dealers-card, .astro-card { margin-bottom: 18px; }

.dealer-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.dealer-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.dealer-field input,
.dealer-field select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 200px;
}

.dealer-field input:focus,
.dealer-field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

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

.dealer-result-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.dealer-result-head strong { color: var(--ink); font-size: 0.9rem; }

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.dealer-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dealer-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dealer-brand {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  background: rgba(29, 78, 216, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.dealer-pin {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dealer-card h3 { margin: 0; font-size: 0.98rem; line-height: 1.3; }
.dealer-address { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.dealer-city { margin: 0; font-size: 0.78rem; color: var(--muted); }

.dealer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.dealer-actions .btn { font-size: 0.76rem; padding: 6px 10px; }

.dealer-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.dealer-empty p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.dealer-empty-text { color: var(--muted); font-size: 0.88rem; margin: 0; padding: 8px 0; }

.dealer-coverage {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.dealer-coverage p { margin: 4px 0 0; line-height: 1.5; }

.dealer-geo-note {
  margin: -6px 0 12px;
  font-size: 0.78rem;
  color: #b91c1c;
}

html[data-theme="dark"] .dealer-geo-note { color: #fca5a5; }

.dealer-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dealer-cities-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.dealer-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.dealer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.dealer-chip:hover { border-color: var(--accent); }

.dealer-chip.active {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

.dealer-chip em { font-style: normal; font-size: 0.68rem; opacity: 0.75; }

.dealer-chip.active em { opacity: 1; }

html[data-theme="dark"] .dealer-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #052e16;
}

.dealer-actions + .dealer-actions { margin-top: 0; padding-top: 0; }

.dealer-phone {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  align-self: center;
  padding: 6px 2px;
}

.dealer-phone:hover { text-decoration: underline; }

.dealer-enquire { font-weight: 700; }

.dealer-more-wrap { display: flex; justify-content: center; margin-top: 12px; }

/* ==========================================================================
   Astrology colour guide
   ========================================================================== */

.astro-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.astro-hint {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.45;
}

.astro-prompt {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.astro-body { display: grid; gap: 16px; }

.astro-sign {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.06), rgba(14, 165, 233, 0.03));
}

.astro-sign h3 { margin: 2px 0; font-size: 1.4rem; }
.astro-range { color: var(--muted); font-size: 0.8rem; }

.astro-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.astro-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.astro-facts div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.astro-facts dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.astro-facts dd { margin: 2px 0 0; font-size: 0.86rem; font-weight: 600; }

.astro-colours { margin-top: 14px; }

.astro-colour-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.astro-colour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}

.astro-colour i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.2);
  display: inline-block;
}

.astro-suggest h3,
.astro-muhurat h3 { margin: 0 0 10px; font-size: 1rem; }

.astro-paints {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.astro-paint {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.astro-paint:hover,
.astro-paint:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.astro-paint i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  flex: 0 0 auto;
}

.astro-paint strong { display: block; font-size: 0.86rem; }

.astro-paint em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.astro-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.astro-dates li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(110px, 1fr) auto auto;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.8rem;
}

.astro-dates li.is-lucky {
  border-color: var(--accent);
  background: rgba(22, 163, 74, 0.06);
}

.astro-date { font-weight: 650; }

.astro-day {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.astro-lucky-badge {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #14532d;
  background: #bbf7d0;
  border-radius: 999px;
  padding: 1px 7px;
}

.astro-meta { color: var(--muted); font-size: 0.74rem; }

.astro-sources {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.astro-sources .muhurat-links { margin-top: 8px; }

html[data-theme="dark"] .dealer-brand {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

html[data-theme="dark"] .dealer-card { background: rgba(255, 255, 255, 0.03); }

html[data-theme="dark"] .astro-sign {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(14, 165, 233, 0.04));
}

html[data-theme="dark"] .astro-lucky-badge { color: #052e16; background: var(--accent); }
html[data-theme="dark"] .astro-dates li.is-lucky { background: rgba(22, 163, 74, 0.14); }

@media (max-width: 640px) {
  .dealer-field,
  .dealer-field input,
  .dealer-field select { min-width: 0; width: 100%; }
  .dealer-form-actions { width: 100%; }
  .dealer-form-actions .btn { flex: 1 1 auto; }
  .dealer-grid { grid-template-columns: 1fr; }
  .astro-dates li { grid-template-columns: 1fr 1fr; }
  .astro-meta { grid-column: span 2; }
}
