/* ─────────────── Design tokens ─────────────── */
:root {
  --bg:        #050810;
  --bg-2:     #0B1426;
  --surface:  #0F1B30;
  --surface-2:#152643;
  --border:   #1F3258;
  --text:     #F8FAFC;
  --muted:    #94A3B8;
  --muted-2:  #64748B;
  --accent:   #F5A623;
  --accent-2: #FFB948;
  --accent-3: #E94560;
  --info:     #5BC0EB;
  --good:     #1FAB7F;
  --warn:     #F2994A;
  --bad:      #E94560;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 60px -30px rgba(0,0,0,.6);
  --shadow-amber: 0 18px 50px -20px rgba(245,166,35,.5);

  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);

  --tw-display: 'Heebo', system-ui, sans-serif;
  --tw-body:    'Rubik', system-ui, sans-serif;
}

/* ─────────────── Reset ─────────────── */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--tw-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--tw-display); font-weight: 800; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; right: 8px; top: -40px;
  background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px;
  z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ─────────────── NAV ─────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,8,16,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-block: 12px;
  position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #1B2A4A, #0B1426);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.brand__name {
  font-family: var(--tw-display); font-weight: 900; font-size: 22px; letter-spacing: -.5px;
  white-space: nowrap;
}
.brand__name span { color: var(--accent); }
.brand--small .brand__name { font-size: 18px; }

.nav__links {
  display: flex; gap: 22px;
  flex-wrap: nowrap;
}
.nav__links a {
  color: var(--muted);
  font-weight: 500; font-size: 14.5px;
  position: relative; padding: 6px 0;
  white-space: nowrap;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .25s;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }

/* ─────────────── Page hero (sub-pages) ─────────────── */
.page-hero {
  position: relative;
  padding-block: clamp(60px, 9vw, 110px);
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(245,166,35,.16), transparent 70%),
    radial-gradient(60% 80% at 10% 90%, rgba(91,192,235,.10), transparent 70%),
    linear-gradient(180deg, #050810 0%, #0B1426 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  letter-spacing: -.02em;
  margin-block: 16px 14px;
  background: linear-gradient(120deg, #fff 0%, #FFB948 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 17px; }

/* ─────────────── Filter chips ─────────────── */
.filters { padding-block: 26px; border-bottom: 1px solid rgba(255,255,255,.05); background: var(--bg-2); }
.filters__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.filters__adv {
  max-width: 1080px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color .25s;
}
.filters__adv:hover { border-color: rgba(245,166,35,.3); }
.filters__adv summary {
  cursor: pointer; padding: 14px 0;
  font-family: var(--tw-display); font-weight: 700; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.filters__adv summary::-webkit-details-marker { display: none; }
.filters__adv summary::after {
  content: '+'; font-size: 22px; color: var(--accent); transition: transform .25s;
  font-weight: 400;
}
.filters__adv[open] summary::after { transform: rotate(45deg); }
.filters__adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  padding: 8px 0 22px;
}
@media (max-width: 720px) {
  .filters__adv-grid { grid-template-columns: repeat(2, 1fr); }
}
.filters__adv-grid label { display: grid; gap: 4px; }
.filters__adv-grid span { font-size: 12px; color: var(--muted); font-weight: 600; }
.filters__adv-grid input,
.filters__adv-grid select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text); font: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.filters__adv-grid input:focus,
.filters__adv-grid select:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.filters__actions .btn-secondary { width: 100%; min-height: 40px; padding: 0 12px; font-size: 13px; }
.filters__count {
  text-align: center; color: var(--muted); font-size: 13px;
  margin-top: 14px;
}
.chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 999px;
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(245,166,35,.5); }
.chip.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-color: transparent; color: #0B1426; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(245,166,35,.12);
}

.cars--big { grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .cars--big { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cars--big { grid-template-columns: 1fr; } }

/* ─────────────── Loan calculator ─────────────── */
.calc { padding-block: clamp(50px, 8vw, 90px); }
.calc__card { padding: 40px clamp(20px, 4vw, 50px); }
.section-head--start { text-align: start; margin: 0 0 28px; }
.calc__row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 720px) { .calc__row { grid-template-columns: 1fr; } }
.calc__row label { display: grid; gap: 6px; }
.calc__row span { font-size: 13px; color: var(--muted); font-weight: 600; }
.calc__row input {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; color: var(--text); font: inherit; font-size: 18px; font-family: var(--tw-display); font-weight: 700;
}
.calc__row input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
.calc__out {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding: 22px; border-radius: var(--radius);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(245,166,35,.18), transparent 70%),
    rgba(245,166,35,.05);
  border: 1px solid rgba(245,166,35,.25);
}
@media (max-width: 720px) { .calc__out { grid-template-columns: 1fr; } }
.calc__out div { display: flex; flex-direction: column; gap: 4px; }
.calc__out span { font-size: 13px; color: var(--muted); }
.calc__out strong {
  font-family: var(--tw-display); font-weight: 900; font-size: 28px; color: var(--accent);
}
.calc__note { font-size: 12px; color: var(--muted-2); margin-top: 20px; }

/* ─────────────── Guide grid ─────────────── */
.guide { padding-block: clamp(60px, 8vw, 110px); }
.guide__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 1000px) { .guide__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .guide__grid { grid-template-columns: 1fr; } }
.g-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform .25s, border-color .25s;
}
.g-card:hover { transform: translateY(-3px); border-color: rgba(245,166,35,.5); }
.g-num {
  position: absolute; top: 18px; inset-inline-end: 22px;
  font-family: var(--tw-display); font-weight: 900; font-size: 38px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,166,35,.45);
        text-stroke: 1.5px rgba(245,166,35,.45);
}
.g-card h3 { font-size: 17px; margin-bottom: 10px; max-width: 75%; }
.g-card p  { color: var(--muted); font-size: 14px; line-height: 1.6; }

.nav__cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0B1426; font-weight: 700; padding: 9px 20px; border-radius: 999px;
  font-size: 13.5px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-amber);
  transition: transform .15s, box-shadow .2s;
  margin-inline-start: auto;
  margin-inline-end: auto;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 22px 60px -20px rgba(245,166,35,.7); }

.auth-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--tw-display); font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; cursor: pointer;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  transition: border-color .2s, background .2s, color .2s;
}
.auth-btn:hover { border-color: var(--accent); background: rgba(245,166,35,.05); }
.auth-btn--logged {
  background: rgba(245,166,35,.08);
  border-color: rgba(245,166,35,.35);
  color: var(--accent);
}
.auth-btn--logged small {
  color: var(--muted-2); font-weight: 500; font-size: 11px;
  border-inline-start: 1px solid rgba(255,255,255,.12);
  padding-inline-start: 6px;
}

/* Auth modal */
.auth-modal[hidden] { display: none; }
.auth-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,8,16,.75);
  backdrop-filter: blur(8px);
}
.auth-modal__card {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8);
}
.auth-modal__x {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: transparent; border: 0;
  width: 36px; height: 36px;
  font-size: 28px; color: var(--muted);
  cursor: pointer; line-height: 1;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.auth-modal__x:hover { background: rgba(255,255,255,.05); color: var(--text); }

.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 22px;
  background: var(--bg-2);
  border-radius: 999px; padding: 4px;
}
.auth-tab {
  flex: 1; background: transparent;
  border: 0; color: var(--muted);
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 10px; border-radius: 999px;
  cursor: pointer; transition: all .2s;
}
.auth-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0B1426;
}

.auth-form h2 { font-size: 22px; margin: 0 0 18px; }
.auth-form label { display: grid; gap: 6px; margin-bottom: 14px; }
.auth-form span { font-size: 13px; color: var(--muted); font-weight: 600; }
.auth-form input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.auth-form .btn-primary { width: 100%; min-height: 54px; margin-top: 6px; }
.auth-switch {
  margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center;
}
.auth-switch a { color: var(--accent); font-weight: 700; }
.auth-msg { font-size: 13px; padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; }
.auth-msg.is-err  { background: rgba(233,69,96,.1);  color: #FFB1BE; border: 1px solid rgba(233,69,96,.3); }
.auth-msg.is-good { background: rgba(31,171,127,.1); color: #5EE3B5; border: 1px solid rgba(31,171,127,.3); }

/* Google sign-in — the button itself is rendered by Google's script, so we
   only own the surrounding layout and the "or" divider. */
.auth-google { margin-bottom: 20px; }
.auth-google__btn {
  display: flex; justify-content: center;
  min-height: 44px;
  color-scheme: dark;
}
.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px;
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.auth-or::before, .auth-or::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─────────────── Admin panel ─────────────── */
.admin { padding-block: clamp(40px, 6vw, 70px); }
.admin__loading,
.admin__gate {
  padding: 40px; text-align: center;
}
.admin__gate h2 { font-size: 22px; margin-bottom: 12px; }
.admin__gate p  { color: var(--muted); margin-bottom: 22px; }
.admin__gate .btn-primary { display: inline-flex; padding: 0 28px; min-height: 52px; }

.admin__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 26px;
}
@media (max-width: 720px) { .admin__stats { grid-template-columns: repeat(2, 1fr); } }

.admin__tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-2); border-radius: 999px;
  margin-bottom: 22px;
  max-width: 520px;
}
.admin__tab {
  flex: 1; background: transparent; border: 0;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 14px;
  padding: 10px; border-radius: 999px;
  cursor: pointer; transition: all .2s;
}
.admin__tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0B1426;
}

.admin__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.admin__panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.admin__panel h2 { font-size: 22px; margin-bottom: 18px; }
.admin__empty { color: var(--muted); text-align: center; padding: 24px; }

.admin__table { overflow-x: auto; }
.admin__table table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.admin__table th {
  text-align: start;
  padding: 12px 10px;
  color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.admin__table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.admin__table tr:hover td { background: rgba(255,255,255,.02); }
.admin__table a { color: var(--accent); }
.admin-thumb { width: 50px; height: 32px; object-fit: cover; border-radius: 4px; }
.badge { padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--gold { background: rgba(245,166,35,.15); color: var(--accent); border: 1px solid rgba(245,166,35,.4); }
.muted { color: var(--muted-2); font-size: 12px; font-style: italic; }

.btn-del {
  background: transparent;
  border: 1px solid rgba(233,69,96,.3); color: #FFB1BE;
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 10px; border-radius: 6px; cursor: pointer;
  transition: all .2s;
}
.btn-del:hover { background: rgba(233,69,96,.1); border-color: rgba(233,69,96,.6); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 14px; line-height: 1;
  padding: 6px 10px; border-radius: 6px; cursor: pointer;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(245,166,35,.06); }

.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }

/* ─────────────── Sell page ─────────────── */
.sell { padding-block: clamp(40px, 6vw, 70px); }
.sell__gate {
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  max-width: 540px; margin: 0 auto;
}
.sell__gate h2 { font-size: 28px; margin-bottom: 12px; }
.sell__gate p  { color: var(--muted); margin-bottom: 24px; }
.sell__gate .btn-primary { display: inline-flex; min-height: 56px; padding: 0 32px; }

.sell__form {
  padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 16px;
}
.sell__form h2 { font-size: 24px; margin-bottom: 8px; }
.sell__row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.sell__row:has(label:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .sell__row { grid-template-columns: 1fr; } }
.sell__form label { display: grid; gap: 6px; }
.sell__form span  { font-size: 13px; color: var(--muted); font-weight: 600; }
.sell__form input,
.sell__form select,
.sell__form textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.sell__form input:focus,
.sell__form select:focus,
.sell__form textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.sell__form .btn-primary { width: 100%; min-height: 56px; margin-top: 8px; }
.sell__note { color: var(--muted-2); font-size: 12px; text-align: center; }
.sell__full { grid-column: 1 / -1; }

.nav__hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center; justify-content: center;
  gap: 4px; flex-direction: column;
  cursor: pointer; padding: 0;
}
.nav__hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .15s;
}
.nav.is-open .nav__hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hamburger is ALWAYS visible on every screen size. */
.nav__hamburger { display: inline-flex; }

/* Links marked `data-secondary` live ONLY in the dropdown — never on the
   inline top row. */
.nav__links a[data-secondary] { display: none; }

/* When the menu opens, drop the full link panel below the bar
   (works at every width, not just mobile). */
.nav.is-open .nav__links {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--bg-2);
  padding: 18px var(--pad) 26px;
  gap: 0;
  flex-direction: column;
  align-items: stretch;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex !important;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  z-index: 60;
}
.nav.is-open .nav__links a {
  padding: 13px 0; font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text);
  display: block !important;
}
.nav.is-open .nav__links a::after { display: none; }
.nav.is-open .nav__links a:last-child { border-bottom: 0; }
.nav.is-open .nav__links a[data-admin-only][hidden] { display: none !important; }

@media (max-width: 820px) {
  /* On mobile, ALL nav links collapse into the hamburger drawer. */
  .nav__links a { display: none; }
  .nav__cta { padding: 8px 14px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .nav__cta { display: none; }
  .nav.is-open .nav__links::after {
    content: 'בדיקת רכב'; display: block;
    margin-top: 14px; padding: 14px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #0B1426; font-family: var(--tw-display); font-weight: 800; font-size: 16px;
    border-radius: 12px; text-align: center;
  }
}

/* ─────────────── HERO ─────────────── */
.hero {
  position: relative;
  padding-block: clamp(60px, 12vw, 140px);
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(91,192,235,.10), transparent 70%),
    linear-gradient(180deg, #050810 0%, #0B1426 60%, #050810 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg-orb {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(120px); opacity: .55;
}
.hero__bg-orb--a { top: -180px; right: -120px; background: radial-gradient(circle, #F5A623 0%, transparent 70%); }
.hero__bg-orb--b { bottom: -200px; left: -120px; background: radial-gradient(circle, #5BC0EB 0%, transparent 70%); opacity: .35; }
.hero__bg-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 64px 100%;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: .5;
}

.hero__inner { position: relative; max-width: 920px; text-align: center; }

.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  padding: 6px 14px; border: 1px solid rgba(245,166,35,.35); border-radius: 999px;
  background: rgba(245,166,35,.08);
  margin-bottom: 24px;
}
.eyebrow--dark { color: #FFB948; }

.hero__title {
  font-size: clamp(44px, 8vw, 92px);
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero__title-top { display: block; color: #fff; }
.hero__title-bot {
  display: block;
  background: linear-gradient(120deg, #FFB948 0%, #F5A623 40%, #E94560 100%);
  -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

.hero__sub {
  max-width: 720px; margin: 0 auto 36px;
  color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7;
}

/* Plate input */
.lookup {
  display: flex; gap: 12px; justify-content: center; align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.plate {
  display: inline-flex; align-items: stretch;
  background: #FCD34D;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(252,211,77,.18),
    0 30px 60px -25px rgba(252,211,77,.45),
    inset 0 -2px 0 rgba(0,0,0,.1);
  height: 72px;
}
.plate__stripe {
  background: #1E3A8A;
  color: #FCD34D;
  font-family: 'Heebo', system-ui;
  font-weight: 900;
  font-size: 14px;
  display: grid; place-items: center;
  padding-inline: 10px;
  letter-spacing: .05em;
  border-inline-end: 2px solid rgba(0,0,0,.1);
}
.plate__input {
  background: transparent;
  border: 0; outline: 0;
  padding: 0 22px;
  font-family: 'Heebo', system-ui;
  font-weight: 900;
  font-size: 32px;
  color: #0B1426;
  letter-spacing: .04em;
  min-width: 230px;
  width: 280px;
  text-align: center;
}
.plate__input::placeholder { color: rgba(11,20,38,.35); }

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #0B1426;
  font-family: var(--tw-display); font-weight: 800;
  font-size: 18px;
  border: 0;
  padding: 0 32px; min-height: 72px;
  border-radius: 12px;
  box-shadow: var(--shadow-amber);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 180px;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-primary[disabled] .btn-primary__label { opacity: .7; }
.btn-primary__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(11,20,38,.25);
  border-top-color: #0B1426;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-primary.is-loading .btn-primary__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__bullets {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
  color: var(--muted); font-size: 14px;
}
.hero__bullets span {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(31,171,127,.18); color: var(--good); font-size: 11px; margin-inline-end: 6px;
  vertical-align: -3px;
}

/* ─────────────── RESULT ─────────────── */
.result { padding-block: clamp(40px, 6vw, 80px); }
.result.is-hidden { display: none; }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.result__hero {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: linear-gradient(180deg, #1B2A4A, #0B1426);
}
.result__hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.92) saturate(1.05);
}
.result__hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,20,38,.85) 100%);
  pointer-events: none;
}
.result__credit {
  position: absolute; bottom: 12px; inset-inline-start: 16px;
  font-size: 11px; color: rgba(255,255,255,.55);
  text-decoration: none;
  background: rgba(0,0,0,.4); padding: 4px 8px; border-radius: 6px;
  backdrop-filter: blur(4px);
}
.result__credit:hover { color: var(--accent); }

.result__head {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  gap: 20px;
  padding: 28px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(245,166,35,.06), transparent);
}
.result__kind {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent); margin-bottom: 6px;
  background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.3);
  padding: 4px 10px; border-radius: 999px;
}
.result__title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 4px; }
.result__sub { color: var(--muted); font-size: 14px; }
.result__plate {
  background: #FCD34D; color: #0B1426; font-weight: 900;
  padding: 6px 14px; border-radius: 8px;
  font-family: 'Heebo'; font-size: 18px; letter-spacing: .06em;
  align-self: center;
  direction: ltr;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px clamp(20px, 3vw, 40px); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
}
.pill--good { background: rgba(31,171,127,.12); color: #5EE3B5; border-color: rgba(31,171,127,.3); }
.pill--bad  { background: rgba(233,69,96,.14); color: #FFB1BE; border-color: rgba(233,69,96,.35); }
.pill--warn { background: rgba(242,153,74,.14); color: #FFCE9C; border-color: rgba(242,153,74,.35); }
.pill--info { background: rgba(91,192,235,.12); color: #C5EDFB; border-color: rgba(91,192,235,.3); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }

.specs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.06);
}
@media (max-width: 480px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
}
.spec {
  background: var(--surface);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
  min-height: 56px;
  justify-content: center;
}
.spec__k { color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.spec__v {
  font-family: var(--tw-display); font-weight: 700; font-size: 15px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.features {
  padding: 22px clamp(20px, 3vw, 40px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.features h3 { font-size: 16px; margin-bottom: 12px; color: var(--text); }
.features__grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.feat {
  background: rgba(31,171,127,.08);
  border: 1px solid rgba(31,171,127,.3);
  color: #5EE3B5;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}

.recall-box {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px clamp(20px, 3vw, 40px);
}
.recall-box h3 { font-size: 18px; margin-bottom: 12px; color: #FFCE9C; }
.recall-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.recall-box li {
  background: rgba(242,153,74,.06); border: 1px solid rgba(242,153,74,.25);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px;
}
.recall-box strong { color: #FFE0BD; }

.result__alert {
  margin: 0 clamp(20px, 3vw, 40px) 20px;
  background: rgba(233,69,96,.08); border: 1px solid rgba(233,69,96,.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #FFB1BE;
  display: flex; gap: 12px; align-items: flex-start;
}
.result__alert--warn { background: rgba(242,153,74,.08); border-color: rgba(242,153,74,.35); color: #FFCE9C; }
.result__alert strong { color: #fff; }

.result__empty {
  padding: clamp(40px, 6vw, 80px) 20px;
  text-align: center;
}
.result__empty h3 { font-size: 24px; margin-bottom: 8px; }
.result__empty p  { color: var(--muted); }

/* ─────────────── Alt input (mic + camera buttons) ─────────────── */
.hero__alt-input {
  display: flex; gap: 14px; justify-content: center; margin-top: 18px; flex-wrap: wrap;
}
.alt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  cursor: pointer; transition: all .2s;
}
.alt-btn:hover {
  background: rgba(245,166,35,.08);
  border-color: rgba(245,166,35,.4);
  color: var(--accent);
}
.alt-btn:disabled { opacity: .4; cursor: not-allowed; }
.alt-btn svg { color: var(--accent); }
.alt-btn--camera input { display: none; }
.alt-btn.is-recording {
  background: rgba(233,69,96,.15);
  border-color: rgba(233,69,96,.5);
  color: #FFB1BE;
  animation: pulse-rec 1.2s ease-in-out infinite;
}
.alt-btn.is-recording svg { color: #FFB1BE; }
@keyframes pulse-rec { 50% { box-shadow: 0 0 0 8px rgba(233,69,96,.18); } }

.hero__alt-status {
  text-align: center; font-size: 13px; margin-top: 12px; min-height: 18px;
  color: var(--muted);
}
.hero__alt-status[data-kind="good"] { color: #5EE3B5; }
.hero__alt-status[data-kind="warn"] { color: #FFCE9C; }
.hero__alt-status[data-kind="err"]  { color: #FFB1BE; }
.hero__alt-status[data-kind="info"] { color: #C5EDFB; }

/* ─────────────── Plate pill (Israeli style) ─────────────── */
.plate-pill {
  display: inline-flex; align-items: stretch;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
  vertical-align: middle;
}
.plate-pill__il {
  background: #1E3A8A; color: #FCD34D;
  font-family: var(--tw-display); font-weight: 900; font-size: 10px;
  letter-spacing: .05em;
  display: grid; place-items: center;
  padding: 0 6px;
}
.plate-pill__num {
  background: #FCD34D; color: #0B1426;
  font-family: var(--tw-display); font-weight: 900; font-size: 13px;
  letter-spacing: .04em;
  padding: 0 8px;
  display: grid; place-items: center;
}

/* ─────────────── Search history ─────────────── */
.history { padding-block: clamp(40px, 6vw, 70px); background: var(--bg-2); }
.history[hidden] { display: none; }
.history__head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 16px; margin-bottom: 22px;
}
.history__head h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 10px; }

.history__controls {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-bottom: 22px;
}
.history__search {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  transition: border-color .2s, box-shadow .2s;
}
.history__search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.history__search svg { color: var(--muted); flex-shrink: 0; }
.history__search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 14px;
  padding: 12px 0;
}
.history__tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-2); border-radius: 999px;
}
.hist-tab {
  background: transparent; border: 0;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 13px;
  padding: 8px 16px; border-radius: 999px;
  cursor: pointer; transition: all .2s;
}
.hist-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0B1426;
}
.history__empty { color: var(--muted); text-align: center; padding: 30px; }

.history__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 720px)  { .history__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .history__grid { grid-template-columns: 1fr 1fr 1fr; } }

/* New row-style history entries (Yad2 / רכב ישראל style) */
.hist-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .2s, transform .2s;
}
.hist-row:hover { border-color: rgba(245,166,35,.4); transform: translateX(-2px); }
.hist-row__main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: 0; padding: 0; color: inherit;
  font: inherit; text-align: start; cursor: pointer;
}
.hist-row__img {
  width: 56px; height: 56px; border-radius: 10px;
  background: linear-gradient(135deg, #1B2A4A, #0B1426);
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.hist-row .hist-card__img,
.hist-row .hist-card__img--blank {
  width: 56px; height: 56px; border-radius: 10px;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.hist-row__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hist-row__title-row { display: flex; align-items: center; gap: 8px; }
.hist-row__year { color: var(--muted); font-size: 12px; }
.hist-row__title {
  font-family: var(--tw-display); font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hist-row__time { color: var(--muted-2); font-size: 11px; }
.hist-row__fav {
  background: transparent; border: 0;
  color: var(--muted);
  padding: 8px; border-radius: 8px;
  cursor: pointer; transition: color .2s, background .2s;
}
.hist-row__fav:hover { background: rgba(233,69,96,.1); color: #FFB1BE; }
.hist-row__fav.is-on { color: var(--bad); }
.hist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  display: flex; flex-direction: column;
  cursor: pointer; overflow: hidden;
  text-align: start;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  font: inherit; color: inherit;
}
.hist-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,166,35,.5);
  box-shadow: 0 22px 50px -25px rgba(0,0,0,.7);
}
.hist-card__img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1B2A4A, #0B1426);
  background-size: cover; background-position: center;
}
.hist-card__img--blank {
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(245,166,35,.18), transparent 70%),
    linear-gradient(135deg, #1B2A4A, #0B1426);
}
.hist-card__body { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.hist-card__plate {
  background: #FCD34D; color: #0B1426;
  font-family: var(--tw-display); font-weight: 900;
  font-size: 13px; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 6px;
  align-self: flex-start;
  direction: ltr;
}
.hist-card__title { font-family: var(--tw-display); font-weight: 700; font-size: 15px; margin-top: 4px; }
.hist-card__sub { color: var(--muted); font-size: 12.5px; }

/* ─────────────── How it works ─────────────── */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 48px); letter-spacing: -.02em; margin-block: 14px 18px; }
.section-head p  { color: var(--muted); font-size: 17px; }

.how { padding-block: clamp(70px, 10vw, 140px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .25s, border-color .25s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(245,166,35,.5); }
.step__num {
  font-family: var(--tw-display); font-weight: 900; font-size: 14px;
  color: var(--accent);
  display: inline-block; margin-bottom: 14px;
  letter-spacing: .08em;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p  { color: var(--muted); font-size: 15px; }

/* ─────────────── Inventory ─────────────── */
.inventory { padding-block: clamp(70px, 10vw, 140px); background: linear-gradient(180deg, transparent, rgba(91,192,235,.04), transparent); }
.cars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 1000px) { .cars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cars { grid-template-columns: 1fr; } }
.car {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.car:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.car__img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1B2A4A, #0B1426);
  background-size: cover; background-position: center;
  position: relative;
}
.car__tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(11,20,38,.85); color: var(--accent);
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(245,166,35,.4);
}
.car__body { padding: 20px; }
.car__title { font-size: 19px; margin-bottom: 6px; }
.car__meta  { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.car__price {
  font-family: var(--tw-display); font-weight: 900; font-size: 22px; color: var(--accent);
}

/* ─────────────── About ─────────────── */
.about { padding-block: clamp(70px, 10vw, 140px); }
.about__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about h2 { font-size: clamp(28px, 4vw, 44px); margin-block: 14px 20px; }
.about p  { color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 18px; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.stat strong { display: block; font-family: var(--tw-display); font-weight: 900; font-size: 28px; color: var(--accent); margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 13px; }

.about__media-frame {
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 30%, rgba(245,166,35,.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(91,192,235,.35), transparent 55%),
    linear-gradient(135deg, #14213D 0%, #0B1426 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.about__media-frame::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23F5A623' stroke-width='.5' opacity='.18'><circle cx='100' cy='100' r='80'/><circle cx='100' cy='100' r='60'/><circle cx='100' cy='100' r='40'/><circle cx='100' cy='100' r='20'/><path d='M40 130 L160 130 L150 110 L50 110 Z' fill='%23F5A623' opacity='.3' stroke='none'/><circle cx='70' cy='135' r='10' fill='%230B1426' stroke='%23F5A623'/><circle cx='130' cy='135' r='10' fill='%230B1426' stroke='%23F5A623'/></g></svg>");
  background-size: cover; background-position: center;
  mix-blend-mode: screen;
}

/* ─────────────── Contact ─────────────── */
.contact { padding-block: clamp(70px, 10vw, 140px); background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(28px, 4vw, 44px); margin-block: 14px 20px; }
.contact p  { color: var(--muted); font-size: 17px; }
.contact a  { color: var(--accent); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; color: var(--muted); }
.contact__list li { font-size: 15px; }

.contact__form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; gap: 16px;
}
.contact__form label { display: grid; gap: 6px; }
.contact__form span { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact__form input,
.contact__form textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.contact__note {
  color: var(--good); font-size: 14px; margin: 4px 0 0;
}

/* ─────────────── Footer ─────────────── */
.footer {
  padding-block: 36px;
  border-top: 1px solid rgba(255,255,255,.05);
  background: var(--bg);
}
.footer__inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.footer p { margin-top: 6px; max-width: 600px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a:hover { color: var(--text); }

/* ─────────────── Marquee ─────────────── */
.marquee {
  margin-top: clamp(50px, 8vw, 90px);
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.06);
  padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 36px; white-space: nowrap;
  animation: marq 40s linear infinite;
  font-family: var(--tw-display); font-weight: 800; font-size: 26px; letter-spacing: .04em;
  color: rgba(255,255,255,.18);
}
.marquee__track span { display: inline-block; }
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────── Testimonials ─────────────── */
.testimonials { padding-block: clamp(70px, 10vw, 140px); background: var(--bg-2); }
.t-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 1100px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .t-grid { grid-template-columns: 1fr; } }
.t-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.t-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,.5);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.65);
}
.t-head { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #0B1426; font-family: var(--tw-display); font-weight: 800; font-size: 15px;
  flex-shrink: 0;
}
.t-head div { display: flex; flex-direction: column; gap: 1px; }
.t-card .t-head strong { font-weight: 700; font-size: 14px; color: var(--text); }
.t-card .t-head span { color: var(--muted); font-size: 12px; }
.t-stars { color: var(--accent); font-size: 14px; letter-spacing: .12em; }
.t-card p { color: var(--text); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ─────────────── Press strip ─────────────── */
.press {
  padding-block: 28px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
.press__row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 36px;
  font-family: var(--tw-display); font-weight: 800; font-size: 20px;
  color: rgba(255,255,255,.32); letter-spacing: .04em;
  margin-top: 14px;
}
.press__row span { transition: color .25s, transform .25s; }
.press__row span:hover { color: var(--accent); transform: translateY(-2px); }

/* ─────────────── KPI counters ─────────────── */
.kpis { padding-block: clamp(50px, 8vw, 90px); background: var(--bg-2); }
.kpis__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .kpis__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 22px;
  text-align: center;
  position: relative; overflow: hidden;
}
.kpi::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(245,166,35,.18), transparent 70%);
  opacity: .6;
  pointer-events: none;
}
.kpi strong {
  display: block;
  font-family: var(--tw-display); font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  background: linear-gradient(120deg, #FFB948 0%, #E94560 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
  margin-bottom: 6px;
}
.kpi span { color: var(--muted); font-size: 14px; position: relative; }

/* ─────────────── Real saves ─────────────── */
.saves { padding-block: clamp(70px, 10vw, 130px); }
.saves__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .saves__grid { grid-template-columns: 1fr; } }
.save-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.save-card:hover { transform: translateY(-4px); border-color: rgba(245,166,35,.5); }
.save-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(245,166,35,.08), transparent 60%);
  pointer-events: none;
}
.save-card__tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  position: relative;
}
.save-card__tag--bad  { background: rgba(233,69,96,.12);  color: #FFB1BE; border: 1px solid rgba(233,69,96,.35); }
.save-card__tag--warn { background: rgba(242,153,74,.12); color: #FFCE9C; border: 1px solid rgba(242,153,74,.35); }
.save-card__tag--info { background: rgba(91,192,235,.12); color: #C5EDFB; border: 1px solid rgba(91,192,235,.3); }
.save-card h3 { font-size: 20px; margin: 0; }
.save-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; position: relative; }
.save-card__num {
  font-family: var(--tw-display); font-weight: 900;
  font-size: 17px; color: var(--accent);
  margin-top: auto; position: relative;
}

/* ─────────────── Inventory "more" button ─────────────── */
.inventory__more { display: flex; justify-content: center; margin-top: 36px; }

/* ─────────────── Car detail page ─────────────── */
.crumbs {
  padding: 24px 0 6px; font-size: 13px; color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text); }

.cd {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  padding-block: 30px clamp(40px, 6vw, 70px);
}
@media (max-width: 980px) { .cd { grid-template-columns: 1fr; } }

.cd__gallery { display: flex; flex-direction: column; gap: 12px; }
.cd__main {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1B2A4A, #0B1426);
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  border: 1px solid var(--border);
}
.cd__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.loader {
  width: 36px; height: 36px;
  border: 3px solid rgba(245,166,35,.25);
  border-top-color: var(--accent);
  border-radius: 50%; position: absolute;
  top: 50%; right: 50%; transform: translate(50%,-50%);
  animation: spin 1s linear infinite;
}

.cd__buy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: fit-content; position: sticky; top: 88px;
}
.cd__title { font-size: clamp(28px, 4vw, 38px); margin-block: 0 8px; }
.cd__sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.cd__price {
  font-family: var(--tw-display); font-weight: 900;
  font-size: 40px; color: var(--accent); margin-bottom: 6px;
}
.cd__finance { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.cd__finance strong { color: var(--text); font-weight: 700; }
.cd__cta { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.cd__cta .btn-primary { flex: 1; min-width: 0; padding: 0 18px; min-height: 56px; font-size: 16px; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--tw-display); font-weight: 700;
  padding: 0 22px; min-height: 56px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(245,166,35,.05); }
.cd__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.cd__perks li::before { content: ''; }

.cd__section { padding-block: clamp(30px, 5vw, 60px); border-top: 1px solid rgba(255,255,255,.05); }
.cd__section h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 16px; }
.cd__lead { color: var(--muted); font-size: 17px; max-width: 760px; line-height: 1.75; margin-bottom: 22px; }
.cd__highlights {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (max-width: 720px) { .cd__highlights { grid-template-columns: 1fr; } }
.cd__highlights li {
  background: rgba(245,166,35,.05);
  border: 1px solid rgba(245,166,35,.18);
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 15px;
}

.cd__cta-band {
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(245,166,35,.08), rgba(233,69,96,.06));
  border: 1px solid rgba(245,166,35,.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-block: 30px;
}
.cd__cta-band h2 { margin-bottom: 6px; }
.cd__cta-band p { color: var(--muted); max-width: 540px; }

/* ─────────────── FAQ ─────────────── */
.faq { padding-block: clamp(70px, 10vw, 130px); }
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 24px;
  transition: border-color .25s;
}
.faq__item:hover { border-color: rgba(245,166,35,.3); }
.faq__item summary {
  cursor: pointer; padding: 18px 0; font-family: var(--tw-display); font-weight: 700; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; font-size: 26px; color: var(--accent); transition: transform .25s;
  font-weight: 400; line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 18px; font-size: 15px; line-height: 1.7; margin: 0; }

/* ─────────────── Trust strip ─────────────── */
.trust {
  padding-block: 40px;
  background: var(--bg-2);
  border-block: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
.trust__label { color: var(--muted-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.trust__row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 36px;
  color: var(--muted); font-family: var(--tw-display); font-weight: 700; letter-spacing: .04em;
}
.trust__row span { font-size: 17px; }

/* ─────────────── AI chat assistant ─────────────── */
.ai-fab {
  position: fixed; inset-inline-start: 22px; bottom: 22px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0B1426;
  border: 0; border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -10px rgba(245,166,35,.5), 0 0 0 0 rgba(245,166,35,.4);
  z-index: 95;
  transition: transform .2s, box-shadow .2s;
  animation: ai-pulse 2.4s ease-in-out infinite;
}
.ai-fab:hover { transform: scale(1.06); }
@keyframes ai-pulse {
  0%,100% { box-shadow: 0 18px 40px -10px rgba(245,166,35,.5), 0 0 0 0 rgba(245,166,35,.45); }
  50%     { box-shadow: 0 18px 40px -10px rgba(245,166,35,.5), 0 0 0 12px rgba(245,166,35,0); }
}

.ai-panel {
  position: fixed; inset-inline-start: 22px; bottom: 96px;
  width: min(380px, calc(100vw - 44px));
  height: min(560px, calc(100vh - 130px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7);
  display: flex; flex-direction: column;
  z-index: 95;
  overflow: hidden;
  animation: ai-pop .2s ease;
}
@keyframes ai-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ai-panel[hidden] { display: none; }

.ai-panel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(245,166,35,.08), transparent);
  border-bottom: 1px solid var(--border);
}
.ai-panel__head strong { font-family: var(--tw-display); font-weight: 800; font-size: 16px; display: block; }
.ai-panel__head small  { color: var(--muted); font-size: 12px; }
.ai-panel__x {
  background: transparent; border: 0; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer;
  padding: 0 6px;
}
.ai-panel__x:hover { color: var(--text); }

.ai-msgs {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.55;
}
.ai-msg p { margin: 0; }
.ai-msg p + p { margin-top: 6px; }
.ai-msg ul { margin: 8px 0 0; padding-inline-start: 18px; }
.ai-msg li { margin-bottom: 4px; line-height: 1.6; }
.ai-msg--bot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-msg--bot a:hover { color: var(--accent-2); }
.ai-msg--bot {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.ai-msg--me {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(245,166,35,.85), rgba(233,69,96,.85));
  color: #0B1426;
  font-weight: 500;
}
.ai-msg--typing { padding: 14px 16px; }
.ai-dots { display: inline-flex; gap: 4px; }
.ai-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  opacity: .4;
  animation: ai-blink 1.2s infinite;
}
.ai-dots span:nth-child(2) { animation-delay: .2s; }
.ai-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 50% { opacity: 1; transform: translateY(-2px); } }

.ai-form {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.ai-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text); font: inherit; font-size: 14px;
}
.ai-form input:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.ai-send {
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0B1426; cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ai-send:disabled { opacity: .5; cursor: not-allowed; }

[dir="rtl"] .ai-send svg { transform: scaleX(-1); }

@media (max-width: 480px) {
  .ai-panel { inset-inline-start: 12px; inset-inline-end: 12px; width: auto; bottom: 84px; }
  .ai-fab { width: 54px; height: 54px; inset-inline-start: 14px; bottom: 14px; }
}

/* ─────────────── Reveal animation ─────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ── Vehicle card inside the AI chat (shown when the user types a plate) ── */
.ai-msg--bot:has(.ai-car) { max-width: 100%; width: 100%; padding: 8px; }
.ai-msg code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; font-size: 13px; color: var(--accent-2);
}
.ai-car {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 8px;
}
.ai-car__img {
  display: block; width: 100%; height: 132px;
  object-fit: cover; background: var(--bg-2);
}
.ai-car__body { padding: 12px 14px 14px; }
.ai-car__title {
  display: block; font-size: 15px; line-height: 1.3;
  color: var(--text); margin-bottom: 8px;
}
.ai-car__plate {
  display: inline-block;
  background: #FFD100; color: #000;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; font-size: 15px; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 5px;
  border: 2px solid #000; margin-bottom: 10px;
}
.ai-car__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-car__chips span {
  font-size: 12px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 9px;
}
.ai-car__flag {
  font-size: 12.5px; font-weight: 600;
  border-radius: 8px; padding: 6px 10px; margin-bottom: 6px;
}
.ai-car__flag--ok   { background: rgba(31,171,127,.14); color: #46D6AC; border: 1px solid rgba(31,171,127,.35); }
.ai-car__flag--warn { background: rgba(242,153,74,.14); color: #F2994A; border: 1px solid rgba(242,153,74,.35); }
.ai-car__flag--bad  { background: rgba(233,69,96,.14);  color: #FF7A90; border: 1px solid rgba(233,69,96,.35); }
/* Must out-specify `.ai-msg--bot a`, which would paint this amber-on-amber. */
.ai-msg--bot a.ai-car__cta {
  display: inline-block; margin-top: 4px;
  font-size: 13px; font-weight: 700; color: #0B1426;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 7px 14px; border-radius: 999px;
  text-decoration: none;
}
.ai-msg--bot a.ai-car__cta:hover { color: #0B1426; filter: brightness(1.08); }
