/* =========================================================
   Kestrel Motor Auctions — main stylesheet
   1. Tokens   2. Base   3. Layout   4. Buttons & badges
   5. Header   6. Footer   7. Components   8. Forms
   9. Vehicle card   10. Account layout   11. Utilities
   ========================================================= */

/* ---------- 1. Tokens (change colours here, the whole site follows) ---------- */
:root {
  /* Navy */
  --navy-950: #0A1628;
  --navy-900: #0F213D;
  --navy-800: #13294B;
  --navy-700: #1C3A66;
  --navy-600: #2A4F86;
  --navy-100: #E4EAF3;

  /* Burnt orange */
  --orange-700: #A8460F;
  --orange-600: #C25417;
  --orange-500: #D2601A;
  --orange-100: #FBE7D9;

  /* Neutrals (warm) */
  --paper:   #F6F3EE;
  --paper-2: #EEE9E1;
  --white:   #FFFFFF;
  --ink:     #16202E;
  --ink-2:   #3D4859;
  --muted:   #667085;
  --line:    #E2DCD2;
  --line-2:  #D3CBBE;

  /* Status */
  --green:      #1F7A4D;
  --green-100:  #E1F2E8;
  --red:        #B42318;
  --red-100:    #FDE6E3;
  --amber:      #A15C07;
  --amber-100:  #FEF0C7;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 33, 61, .06);
  --shadow:    0 6px 24px -8px rgba(15, 33, 61, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 33, 61, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
.icon { display: inline-block; flex: none; vertical-align: -0.2em; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; font-stretch: 95%; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-stretch: 100%; letter-spacing: 0; }
::selection { background: var(--orange-500); color: var(--white); }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--navy { background: var(--navy-900); color: #C9D3E3; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > div { max-width: 640px; }
.section-head h2 { margin: 0; }
.section-head__aside { max-width: 420px; color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-600); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #F0A372; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- 4. Buttons & badges ---------- */
.btn {
  --bg: var(--navy-800); --fg: var(--white); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 700 .95rem/1 var(--font-body);
  color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn--primary { --bg: var(--orange-500); box-shadow: 0 8px 20px -10px rgba(194, 84, 23, .8); }
.btn--primary:hover { --bg: var(--orange-600); }
.btn--navy:hover { --bg: var(--navy-700); }
.btn--outline { --bg: transparent; --fg: var(--navy-800); --bd: var(--line-2); }
.btn--outline:hover { --bd: var(--navy-800); }
.btn--ghost-light { --bg: rgba(255,255,255,.06); --fg: var(--white); --bd: rgba(255,255,255,.28); }
.btn--ghost-light:hover { --bg: rgba(255,255,255,.14); }
.btn--danger { --bg: var(--white); --fg: var(--red); --bd: #F3B8B2; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--navy-100); color: var(--navy-700);
}
.badge--live   { background: var(--orange-100); color: var(--orange-700); }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); animation: pulse 1.6s infinite; }
.badge--green  { background: var(--green-100); color: var(--green); }
.badge--red    { background: var(--red-100); color: var(--red); }
.badge--amber  { background: var(--amber-100); color: var(--amber); }
.badge--dark   { background: rgba(10, 22, 40, .78); color: var(--white); backdrop-filter: blur(6px); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- 5. Header ---------- */
.announce { background: var(--orange-500); color: var(--white); font-size: .875rem; font-weight: 600; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; position: relative; padding-right: 48px; }
.announce p { margin: 0; text-align: center; }
.announce a { color: var(--white); font-weight: 800; }
.announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: pulse 1.6s infinite; flex: none; }
.announce__close { position: absolute; right: var(--gutter); background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 6px; opacity: .85; }
.announce__close:hover { opacity: 1; background: rgba(255,255,255,.15); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--white); flex: none; }
.brand:hover { color: var(--white); }
.brand__mark { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand__name { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 1.28rem; letter-spacing: -.01em; line-height: 1; }
.brand__name em { font-style: normal; font-weight: 600; color: #F0A372; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.main-nav__link {
  position: relative; padding: 10px 14px; border-radius: 999px;
  color: #C9D3E3; font-weight: 600; font-size: .94rem; text-decoration: none;
  transition: color .15s, background .15s;
}
.main-nav__link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.main-nav__link.is-active { color: var(--white); }
.main-nav__link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--orange-500); }
.main-nav__mobile-actions { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions__login { color: var(--white); font-weight: 600; font-size: .94rem; text-decoration: none; padding: 10px 12px; }
.header-actions__login:hover { color: #F0A372; }
.header-actions__account { display: inline-flex; align-items: center; gap: 9px; color: var(--white); text-decoration: none; font-weight: 600; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.07); }
.header-actions__account:hover { color: var(--white); background: rgba(255,255,255,.13); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange-500); color: var(--white); font-weight: 800; font-size: .9rem; }

.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #C9D3E3; }
.icon-btn:hover { color: var(--white); background: rgba(255,255,255,.08); }
.icon-btn__badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange-500); color: var(--white); font-size: .68rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--navy-900); }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; place-items: center; }
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .header-actions__login, .header-actions .btn, .header-actions__name { display: none; }
  .header-actions__account { padding: 4px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px var(--gutter) 24px;
    background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav__link { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .main-nav__link.is-active::after { left: 12px; right: auto; width: 24px; bottom: 8px; }
  .main-nav__mobile-actions { display: grid; gap: 10px; margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
  body.nav-open { overflow: hidden; }
}

.flash-stack { display: grid; gap: 10px; padding-top: 20px; }

/* ---------- 6. Footer ---------- */
.site-footer { background: var(--navy-950); color: #A9B6CB; padding-top: clamp(40px, 6vw, 72px); font-size: .94rem; }
.site-footer a { color: #D7DEEA; text-decoration: none; }
.site-footer a:hover { color: #F0A372; }

.footer-cta {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(210, 96, 26, .35), transparent 55%),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.footer-cta__title { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .35em; max-width: 22ch; }
.footer-cta__text { margin: 0; max-width: 58ch; color: #B9C5D8; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta .btn--ghost-light { color: var(--white); }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { margin: 16px 0 18px; max-width: 38ch; }
.footer-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-trust li { display: flex; gap: 10px; align-items: center; }
.footer-trust .icon { color: #F0A372; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-family: var(--font-body); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin: 0 0 6px; }
.footer-contact p { display: flex; gap: 10px; margin: 0; align-items: flex-start; }
.footer-contact .icon { color: #F0A372; margin-top: 4px; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 900px) {
  .footer-cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 7. Components ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card__body { padding: clamp(20px, 3vw, 28px); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.card__head h2, .card__head h3 { margin: 0; font-size: 1.3rem; }

.feature { padding: 26px; }
.feature__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy-800); color: #F0A372; margin-bottom: 18px; }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.stat { padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat__label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 2.1rem; line-height: 1.1; color: var(--navy-900); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 600; font-size: .94rem; }
.alert--success { background: var(--green-100); border-color: #A7D8BC; color: #145536; }
.alert--error   { background: var(--red-100); border-color: #F3B8B2; color: #8A1A12; }
.alert--info    { background: var(--navy-100); border-color: #C3CFE2; color: var(--navy-800); }
.alert--warning { background: var(--amber-100); border-color: #F6D88F; color: #7A4505; }

.empty { text-align: center; padding: clamp(36px, 6vw, 64px) 20px; }
.empty__icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px; background: var(--orange-100); color: var(--orange-600); }
.empty h3 { margin-bottom: .35em; }
.empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 22px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: .875rem; text-decoration: none; }
.tab:hover { border-color: var(--navy-700); color: var(--navy-800); }
.tab.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.tab__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: .75rem; text-align: center; }
.tab.is-active .tab__count { background: rgba(255,255,255,.18); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

.countdown { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown.is-urgent { color: var(--red); }

.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 700; color: var(--navy-900); list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--orange-600); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > div { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- 8. Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 7px; }
.field label, .label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.field .req { color: var(--orange-600); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 500 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2313294B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: #9AA3B2; }
.input:hover, .select:hover, .textarea:hover { border-color: #B9AF9F; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(28, 58, 102, .14); }
.input[aria-invalid="true"] { border-color: var(--red); }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
.error-text { font-size: .82rem; color: var(--red); font-weight: 600; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange-500); flex: none; }
.input-group { position: relative; }
.input-group .input { padding-right: 48px; }
.input-group__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }
.input-group__btn:hover { color: var(--navy-800); background: var(--paper); }

.choice-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.choice { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; background: var(--white); font-weight: 700; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--orange-500); background: #FFF8F3; box-shadow: 0 0 0 3px rgba(210, 96, 26, .14); }
.choice:has(input:focus-visible) { outline: 3px solid var(--orange-500); outline-offset: 2px; }

/* ---------- 9. Vehicle card ---------- */
.vcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.vcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vcard:hover .vcard__media img { transform: scale(1.04); }
.vcard__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.vcard__time { position: absolute; left: 12px; bottom: 12px; }
.vcard__watch { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--navy-800); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.vcard__watch:hover, .vcard__watch.is-on { color: var(--orange-600); }
.vcard__watch.is-on svg { fill: currentColor; }
.vcard__body { padding: 18px 18px 0; flex: 1; }
.vcard__make { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); margin: 0 0 6px; }
.vcard__title { font-size: 1.12rem; margin: 0 0 6px; line-height: 1.2; }
.vcard__title a { color: inherit; text-decoration: none; }
.vcard__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.vcard { position: relative; }
.vcard__watch, .vcard__foot .btn { position: relative; z-index: 2; }
.vcard__summary { font-size: .86rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.vcard__specs span { display: flex; align-items: center; gap: 7px; }
.vcard__specs .icon { color: var(--muted); }
.vcard__foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.vcard__price-label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vcard__price { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--navy-900); }
.vcard__meta { font-size: .78rem; color: var(--muted); }

/* ---------- 10. Account layout ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); padding: 12px; }
.side-nav__title { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 6px; margin: 0; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .94rem; text-decoration: none; }
.side-nav a .icon { color: var(--muted); }
.side-nav a:hover { background: var(--paper); color: var(--navy-800); }
.side-nav a.is-active { background: var(--navy-800); color: var(--white); }
.side-nav a.is-active .icon { color: #F0A372; }
.side-nav__count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--orange-500); color: var(--white); font-size: .72rem; font-weight: 800; text-align: center; }
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .side-nav__title { display: none; }
  .side-nav a { white-space: nowrap; }
}

/* ---------- 11. Utilities ---------- */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* Urgent countdown on a dark photo badge: red pill, white text */
.badge--dark.countdown.is-urgent { background: var(--red); color: var(--white); }

/* =========================================================
   12. Public pages (step 2)
   ========================================================= */
.badge--light { background: rgba(255,255,255,.92); color: var(--navy-800); }
.badge--navy-solid { background: var(--navy-800); color: var(--white); }
.text-right { text-align: right; }
.text-green { color: var(--green); font-weight: 700; }
.text-amber { color: var(--amber); font-weight: 700; }
.mt-l { margin-top: 28px; }
.pt-0 { padding-top: 0; }
.h3 { font-size: 1.3rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(210, 96, 26, .25); animation: pulse 1.6s infinite; }
.hp { position: absolute; left: -9999px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .86rem; text-decoration: none; }
.chip:hover { border-color: var(--navy-700); color: var(--navy-800); }
.chip--remove { background: var(--navy-100); border-color: transparent; color: var(--navy-800); }
.chip--remove:hover { background: var(--red-100); color: var(--red); }

.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.select--sm { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: .9rem; width: auto; }

.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--orange-600); margin-top: 3px; }
.check-list--light { color: #DCE3EE; }
.check-list--light .icon { color: #F0A372; }

/* ----- Hero (home) ----- */
.hero {
  position: relative; color: #C9D3E3; padding: clamp(48px, 7vw, 96px) 0 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(210, 96, 26, .28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(42, 79, 134, .45), transparent 70%),
    linear-gradient(170deg, var(--navy-900), var(--navy-950));
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero__accent { color: #F0A372; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 54ch; color: #C9D3E3; margin-bottom: 28px; }
.hero__proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; font-weight: 600; }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof .icon { color: #F0A372; }

.hero-lot { display: block; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-lg); transform: rotate(1.2deg); transition: transform .3s; }
.hero-lot:hover { transform: rotate(0) translateY(-4px); color: var(--ink); }
.hero-lot__media { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); }
.hero-lot__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-lot__media .badge { position: absolute; top: 14px; left: 14px; }
.hero-lot__body { padding: 20px 22px 22px; }
.hero-lot__title { font-size: 1.35rem; margin-bottom: 14px; }
.hero-lot__row { display: flex; justify-content: space-between; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.hero-lot__time { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 1.35rem; color: var(--orange-600); }

.quick-search {
  position: relative; z-index: 2; margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 16px; align-items: end;
  padding: 22px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.quick-search__btn { min-height: 48px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-lot { transform: none; max-width: 520px; }
  .quick-search { grid-template-columns: 1fr 1fr; }
  .quick-search__q, .quick-search__btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .quick-search { grid-template-columns: 1fr; } }

/* ----- Types / makes ----- */
.type-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.type-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, background .15s; }
.type-tile:hover { border-color: var(--orange-500); background: #FFF8F3; transform: translateY(-2px); color: var(--ink); }
.type-tile__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--white); color: var(--orange-600); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.type-tile__name { font-weight: 800; }
.type-tile__count { font-size: .82rem; color: var(--muted); }
.make-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.make-row__label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
@media (max-width: 960px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- Steps (home) ----- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 26px 26px 26px 0; border-top: 2px solid rgba(255,255,255,.12); position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--orange-500); }
.step__n { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; font-size: 2.6rem; color: rgba(255,255,255,.18); line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { color: var(--white); }
.step p { margin: 0; color: #A9B6CB; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ----- Visit / FAQ split ----- */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.visit__panel .stat { background: var(--paper); }
.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .visit, .faq-split { grid-template-columns: 1fr; gap: 28px; } }

/* ----- Page hero (inner pages) ----- */
.page-hero {
  color: #C9D3E3; padding: clamp(44px, 6vw, 80px) 0;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(210, 96, 26, .22), transparent 60%),
    linear-gradient(170deg, var(--navy-900), var(--navy-950));
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.page-hero__lead { font-size: 1.1rem; max-width: 60ch; color: #C9D3E3; margin-bottom: 24px; }
.page-hero--short { padding-block: clamp(36px, 5vw, 60px); }
.page-hero--short .page-hero__lead { margin: 0; }
.page-hero__split { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
.ready-card { padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ready-card h2 { font-size: 1.3rem; color: var(--white); }
.ready-card .check-list { margin: 0; }
@media (max-width: 900px) { .page-hero__split { grid-template-columns: 1fr; gap: 28px; } }

/* ----- Auctions list ----- */
.filters { padding: 20px; margin-top: -48px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.filters__main { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 16px; align-items: end; }
.filters__more { margin-top: 14px; }
.filters__more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--navy-700); list-style: none; }
.filters__more summary::-webkit-details-marker { display: none; }
.filters__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .filters__main { grid-template-columns: 1fr 1fr; }
  .filters__q, .filters__submit { grid-column: 1 / -1; }
  .filters__grid { grid-template-columns: 1fr 1fr; }
}
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin: 32px 0 20px; }
.results-bar__title { font-size: 1.6rem; margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.active-filters__clear { font-size: .86rem; font-weight: 700; margin-left: 4px; }
.sort-form { display: flex; align-items: center; gap: 10px; }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; }
.pagination__pages { display: flex; gap: 6px; align-items: center; }
.pagination__page { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.pagination__page:hover { border-color: var(--navy-700); }
.pagination__page.is-current { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.pagination__step { font-weight: 700; text-decoration: none; }
.pagination__step.is-disabled { color: var(--line-2); }
.pagination__gap { color: var(--muted); }

/* ----- Vehicle page ----- */
.lot-head { background: linear-gradient(170deg, var(--navy-900), var(--navy-950)); color: #C9D3E3; padding: 28px 0 40px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; margin-bottom: 22px; }
.breadcrumb a { color: #A9B6CB; text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); }
.lot-head__title { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .25em; }
.lot-head__summary { font-size: 1.08rem; margin-bottom: 18px; }
.lot-head__tags { gap: 8px; }
.lot-head .badge--light { background: rgba(255,255,255,.1); color: #E4EAF3; }

.lot__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.lot__main { display: grid; gap: 20px; }
.lot__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 1000px) {
  .lot__grid { grid-template-columns: 1fr; gap: 20px; }
  .lot__main { display: contents; }          /* lets the photo come first, then the bid panel */
  .gallery { order: -2; }
  .lot__side { position: static; order: -1; }
}

.gallery__main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__count { position: absolute; right: 14px; bottom: 14px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 104px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--paper-2); opacity: .75; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--orange-500); opacity: 1; }

.lot-tabs { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 4px; overflow-x: auto; padding: 8px; background: rgba(246, 243, 238, .92); backdrop-filter: blur(8px); border-radius: 999px; border: 1px solid var(--line); }
.lot-tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .86rem; color: var(--ink-2); text-decoration: none; }
.lot-tabs a:hover { background: var(--white); color: var(--navy-800); }
.lot-section { scroll-margin-top: calc(var(--header-h) + 70px); }
.lot-section h2 { font-size: 1.6rem; }

.key-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 22px; }
.key-facts > div { background: var(--white); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.key-facts .icon { grid-row: span 2; color: var(--orange-600); }
.key-facts span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.key-facts strong { font-size: 1rem; }
@media (max-width: 600px) { .key-facts { grid-template-columns: 1fr 1fr; } }
.prose { color: var(--ink-2); }
.prose > *:last-child { margin-bottom: 0; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 600px) { .spec-list { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.feature-list li { display: flex; gap: 10px; align-items: center; }
.feature-list .icon { color: var(--green); }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

.condition-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.condition-head h2 { margin: 0; }
.grade { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--paper); line-height: 1.2; }
.grade__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.grade small { color: var(--muted); }
.issue-list { margin: 0 0 20px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.issue-list li { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--amber-100); color: #6B3D04; font-weight: 600; font-size: .94rem; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--navy-100); color: var(--navy-800); margin-bottom: 16px; }
.note p { margin: 0; }
.note .icon { margin-top: 3px; flex: none; }

.card__foot { padding: 14px clamp(20px, 3vw, 28px) 18px; margin: 0; border-top: 1px solid var(--line); }
.table tr.is-leading td { background: #F6FBF8; }
.cost-table { margin: 6px 0 14px; }
.cost-table td { padding-left: 0; padding-right: 0; }
.cost-table__total td { font-weight: 800; font-size: 1.1rem; color: var(--navy-900); border-top: 2px solid var(--navy-800); }
.delivery-box { display: flex; gap: 18px; align-items: flex-start; }
.delivery-box__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--orange-100); color: var(--orange-600); display: grid; place-items: center; flex: none; }
.delivery-box h2 { margin-bottom: 6px; }
.delivery-box p { color: var(--ink-2); }

.bid-panel { padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--orange-500); }
.bid-panel__top { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bid-panel__time { display: grid; gap: 2px; }
.bid-panel__countdown { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 1.9rem; color: var(--navy-900); gap: 10px; }
.bid-panel__countdown .icon { color: var(--orange-600); }
.bid-panel__countdown.is-urgent, .bid-panel__countdown.is-urgent .icon { color: var(--red); }
.bid-panel__price { display: grid; gap: 2px; padding: 16px 0; }
.bid-panel__amount { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--navy-900); }
.bid-panel__meta { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.bid-form { display: grid; gap: 8px; margin-bottom: 14px; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); font-size: 1.15rem; }
.money-input .input { padding-left: 36px; font-size: 1.25rem; font-weight: 800; min-height: 56px; }
.buy-now-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin: 4px 0 12px; border-radius: var(--radius-sm); background: var(--paper); }
.buy-now-box strong { display: block; font-family: var(--font-display); font-stretch: 85%; font-size: 1.5rem; color: var(--navy-900); }
.bid-panel__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bid-panel__actions .btn.is-on { color: var(--orange-600); border-color: var(--orange-500); }
.bid-panel__actions .btn.is-on svg { fill: currentColor; }
.bid-panel__notes { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .84rem; color: var(--ink-2); }
.bid-panel__notes li { display: flex; gap: 10px; }
.bid-panel__notes .icon { color: var(--muted); margin-top: 2px; }
.help-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.help-card__phone { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; color: var(--navy-900); text-decoration: none; margin-bottom: 8px; }

/* ----- How it works ----- */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.journey__item { padding: 26px; position: relative; scroll-margin-top: calc(var(--header-h) + 20px); }
.journey__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange-500); color: var(--white); font-weight: 800; margin-bottom: 16px; }
.journey__item p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.journey__item:target { border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(210,96,26,.15); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } }
.rules { display: grid; gap: 22px; margin-top: 24px; }
.rule { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.rule .feature__icon { margin: 0; }
.rule h3 { font-size: 1.12rem; margin-bottom: .3em; }
.rule p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ----- About ----- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story__media { position: relative; }
.story__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); }
.story__badge { position: absolute; left: 20px; right: 20px; bottom: -22px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); font-size: .9rem; }
.story__badge .icon { color: var(--orange-600); margin-top: 2px; }
.story__badge span { color: var(--muted); }
.company { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.company__list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin: 0; }
.company__list dt { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 4px; }
.company__list dd { margin: 0; font-weight: 700; }
@media (max-width: 900px) {
  .story, .company { grid-template-columns: 1fr; gap: 40px; }
  .company__list { grid-template-columns: 1fr; }
}

/* ----- Contact ----- */
.contact { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; margin-top: -72px; position: relative; z-index: 2; }
.contact__info { display: grid; gap: 16px; }
.contact__map { height: 150px; display: grid; place-items: center; color: var(--orange-500); border-radius: var(--radius) var(--radius) 0 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(28,58,102,.08) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(28,58,102,.08) 22px 23px),
    var(--navy-100); }
.contact__form { box-shadow: var(--shadow); }
.contact__submit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.contact__submit .hint { display: flex; align-items: center; gap: 6px; }
.contact-quick { display: grid; gap: 16px; }
.contact-quick > * { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; font-weight: 700; }
.contact-quick .icon { color: #F0A372; }
.contact-quick small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #A9B6CB; font-weight: 800; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; margin-top: 0; } .contact__form { order: -1; } }

/* ----- Legal pages ----- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.legal__nav { padding: 10px; display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + 20px); }
.legal__nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.legal__nav a:hover { background: var(--paper); }
.legal__nav a.is-active { background: var(--navy-800); color: var(--white); }
.legal__body h2 { font-size: 1.4rem; margin-top: 1.4em; }
@media (max-width: 800px) { .legal { grid-template-columns: 1fr; } .legal__nav { position: static; } }

/* =========================================================
   13. Login / register & My account (step 3)
   ========================================================= */
.mt-neg { margin-top: -8px; }
.pt-s { padding-top: 16px; }
.anchor { scroll-margin-top: calc(var(--header-h) + 20px); }
.chip--save { background: var(--orange-100); border-color: transparent; color: var(--orange-700); }
.chip--save:hover { background: var(--orange-500); color: var(--white); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; text-decoration: none; }
.icon-plain { background: none; border: 0; padding: 8px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.icon-plain:hover { color: var(--green); background: var(--green-100); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__link { font-size: .86rem; font-weight: 700; }
.choice__sub { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }
.stat__text { font-weight: 800; color: var(--navy-900); margin-top: 4px; }

/* ----- Auth pages ----- */
.auth { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.auth__aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); color: #C9D3E3;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(210, 96, 26, .32), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  min-height: 520px; display: flex; flex-direction: column;
}
.auth__title { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 28px; }
.auth__aside .check-list { margin-bottom: 28px; }
.auth__aside-foot { margin: auto 0 0; display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--white); }
.auth__aside-foot .icon { color: #F0A372; }
.auth__card { padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.auth__card--narrow { max-width: 520px; width: 100%; }
.auth__heading { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: .3em; }
.auth__card > .muted { margin-bottom: 24px; }
.terms-box { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 900px) {
  .auth__grid { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .auth__card--narrow { margin-inline: auto; }
}

/* ----- Account hero ----- */
.account-hero { color: #C9D3E3; padding: clamp(32px, 5vw, 56px) 0;
  background: radial-gradient(60% 100% at 100% 0%, rgba(210, 96, 26, .22), transparent 60%), linear-gradient(170deg, var(--navy-900), var(--navy-950)); }
.account-hero__grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: end; }
.account-hero__title { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 22px; }
.account-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.account-stat { display: grid; gap: 2px; min-width: 120px; padding: 14px 18px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-decoration: none; color: inherit; transition: background .15s; }
.account-stat:hover { background: rgba(255,255,255,.12); color: inherit; }
.account-stat span { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #F0A372; }
.account-stat strong { font-family: var(--font-display); font-stretch: 85%; font-size: 2rem; line-height: 1.1; color: var(--white); }
.account-id { padding: 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.account-id__name { color: var(--white); font-weight: 800; font-size: 1.15rem; margin: 0 0 6px; }
.account-id__line { margin: 0; font-size: .9rem; }
.account-id__line strong { color: var(--white); }
@media (max-width: 900px) { .account-hero__grid { grid-template-columns: 1fr; } .account-stat { flex: 1 1 40%; } }

.account-main { display: grid; gap: 20px; min-width: 0; }
.account-main > .tabs { margin-bottom: 0; }
.account-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.account-banner span { flex: 1; min-width: 220px; font-weight: 500; }
.account-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .account-split { grid-template-columns: 1fr; } }
.account-cards { gap: 20px; }

/* Getting started */
.progress { width: 160px; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--orange-500); border-radius: inherit; }
.todo { list-style: none; margin: 0; padding: 8px clamp(20px, 3vw, 28px) 20px; display: grid; }
.todo__item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.todo__item:last-child { border-bottom: 0; }
.todo__item strong { display: block; }
.todo__item div span { font-size: .88rem; color: var(--muted); }
.todo__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-2); font-weight: 800; font-size: .85rem; color: var(--ink-2); }
.todo__item.is-done .todo__mark { background: var(--green); border-color: var(--green); color: var(--white); }
.todo__item.is-done strong { color: var(--muted); text-decoration: line-through; }

/* Mini lists */
.mini-list { list-style: none; margin: 0; padding: 6px clamp(20px, 3vw, 28px) 16px; }
.mini-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list img { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--paper-2); flex: none; }
.mini-list a { color: var(--ink); text-decoration: none; }
.mini-list a:hover { color: var(--orange-600); }
.mini-list div { display: grid; min-width: 0; }
.mini-list strong { font-size: .94rem; line-height: 1.3; }
.mini-list div > span { font-size: .84rem; color: var(--muted); }
.mini-list__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); color: var(--muted); flex: none; }
.mini-list--notes li.is-unread .mini-list__icon { background: var(--orange-100); color: var(--orange-600); }

/* Bids table */
.bids-table__car { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 240px; }
.bids-table__car img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--paper-2); }
.bids-table__car span { display: grid; }
.bids-table__car small { color: var(--muted); }
.bids-table__car:hover strong { color: var(--orange-600); }
.bids-table__again { display: block; font-size: .8rem; font-weight: 700; margin-top: 4px; }

/* Orders / offers */
.order-list { list-style: none; margin: 0; padding: 0; }
.order { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 18px clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.order:last-child { border-bottom: 0; }
.order img { width: 110px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--paper-2); }
.order h3 { margin: 0 0 4px; font-size: 1.1rem; }
.order h3 a { color: inherit; text-decoration: none; }
.order__side { display: grid; justify-items: end; gap: 8px; }
.order__total { font-family: var(--font-display); font-stretch: 85%; font-size: 1.4rem; color: var(--navy-900); }
@media (max-width: 640px) { .order { grid-template-columns: 80px 1fr; } .order img { width: 80px; height: 60px; } .order__side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; } }
.mini-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }

/* Saved searches */
.save-search { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border: 1.5px solid var(--orange-500); background: #FFF8F3; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.search-list li:last-child { border-bottom: 0; }
.search-list__main { display: grid; }
.search-list__main span { font-size: .86rem; }
.search-list form { margin: 0; }

/* Notifications */
.notes-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px clamp(20px, 3vw, 28px); background: var(--paper); border-bottom: 1px solid var(--line); }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.note-item:last-child { border-bottom: 0; }
.note-item.is-unread { background: #FFFBF7; box-shadow: inset 3px 0 0 var(--orange-500); }
.note-item__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper); color: var(--navy-700); flex: none; }
.note-item.is-unread .note-item__icon { background: var(--orange-100); color: var(--orange-600); }
.note-item__body { flex: 1; display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
.note-item__body span { color: var(--ink-2); font-size: .92rem; }
.note-item__body small { color: var(--muted); font-size: .8rem; }
.note-item form { margin: 0; }

/* Documents */
.doc-name { display: flex; gap: 12px; align-items: center; }
.doc-name .icon { color: var(--orange-600); }
.doc-name span { display: grid; }
.doc-name small { color: var(--muted); }

/* Settings */
.ready-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ready-list li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.ready-list li.is-ok { color: var(--ink); }
.ready-list li.is-ok .icon { color: var(--green); }
.toggle-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.toggle-row:has(input:checked) { border-color: #A7D8BC; background: #F6FBF8; }
.toggle-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.toggle-row span { display: grid; }
.toggle-row small { color: var(--muted); }

/* Fixes */
[hidden] { display: none !important; }
.countdown { white-space: nowrap; }
.account-layout > * { min-width: 0; }
@media (max-width: 900px) { .account-layout { grid-template-columns: minmax(0, 1fr); } }
.input:disabled { background: var(--paper); color: var(--muted); cursor: not-allowed; }
@media (max-width: 520px) {
  .site-header__inner { gap: 12px; }
  .brand__name em { display: none; }          /* "Kestrel" only on small phones */
  .header-actions { gap: 4px; }
}
.account-main > *, .lot__main > * { min-width: 0; }

/* =========================================================
   14. Live auction (step 4)
   ========================================================= */
.quick-bids { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-bids .chip { cursor: pointer; font-variant-numeric: tabular-nums; }
.bid-feedback { font-size: .9rem; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .icon { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { color: var(--orange-600); transform: scale(1.04); } 100% { transform: none; } }

.my-status { display: grid; gap: 6px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius-sm); background: var(--paper); }
.my-status__pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.my-status__pill.is-lead, .my-status__pill.is-win { color: var(--green); }
.my-status__pill.is-out { color: var(--red); }
.my-status__max { font-size: .88rem; color: var(--muted); }
.blockers ul { margin: 6px 0 10px; padding-left: 18px; font-weight: 500; }

.confirm-dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.confirm-dialog::backdrop { background: rgba(10, 22, 40, .55); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 28px; display: grid; gap: 12px; }
.confirm-dialog h2 { font-size: 2.6rem; margin: 0; color: var(--navy-900); }
.confirm-dialog p { margin: 0; color: var(--ink-2); }
.confirm-dialog__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 6px; }

/* =========================================================
   15. Payments, Buy It Now, offers (step 6)
   ========================================================= */
.narrow { max-width: 720px; }
.pay-card { box-shadow: var(--shadow); overflow: hidden; }
.pay-card h1 { margin-bottom: 0; }
.pay-options { display: grid; gap: 12px; }
.pay-option { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.pay-option h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: .3em; }
.pay-option h3 .icon { color: var(--orange-600); }
.bank-box { padding: 12px 14px; background: var(--paper); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.confirm-car { display: flex; gap: 16px; align-items: center; padding: 20px clamp(20px, 3vw, 28px); background: var(--paper); border-bottom: 1px solid var(--line); }
.confirm-car img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.confirm-car h1 { margin: 0; }
.offer-btn { margin-top: 10px; }
.listing-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.listing-summary > div { background: var(--white); padding: 12px 14px; display: grid; }
.listing-summary span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.listing-summary strong { font-size: 1.15rem; }
.h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* =========================================================
   16. Legal pages, errors (step 7)
   ========================================================= */
.legal-draft { padding: 14px 16px; margin-bottom: 24px; border-radius: var(--radius-sm); background: var(--amber-100); border: 1px solid #F6D88F; color: #7A4505; font-size: .92rem; }
.legal__body ul { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 1em; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .92rem; }
.legal__body th, .legal__body td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__body th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal__body h2:first-of-type { margin-top: .4em; }
.error-page { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-page__code { font-family: var(--font-display); font-stretch: 75%; font-weight: 900; font-size: clamp(6rem, 18vw, 11rem); line-height: .9; color: var(--orange-500); margin: 0; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 12px; }
.error-page p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.mt-s { margin-top: 10px; }

/* ---------- 17. Vehicle history check ---------- */
.history-sum { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--green-100); color: var(--green); margin-bottom: 14px; }
.history-sum--warn { background: var(--amber-100); color: var(--amber); }
.history-sum__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; }
.history-sum strong { display: block; font-size: 17px; color: var(--ink); }
.history-sum span:not(.history-sum__icon) { font-size: 14px; color: var(--ink-2); }
.history-recorded { margin: 0 0 16px; padding: 12px 16px 12px 34px; border: 1px solid #F3D9A4; border-radius: var(--radius-sm); background: #FFFBF2; }
.history-recorded li { margin: 4px 0; }
.history-facts { margin-top: 4px; }
.history-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.history-list li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); }
.history-list li:first-child { border-top: 0; }
.history-list li.is-recorded { background: #FFFBF2; }
.history-list__label { font-weight: 700; color: var(--ink); }
.history-list__text { color: var(--ink-2); }
.history-actions { margin: 18px 0 10px; }
.history-lock { display: grid; gap: 12px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--paper); }
.history-lock > .icon { color: var(--orange-500); }
.history-lock p { margin: 0; }
.lot-head__tags a.badge { text-decoration: none; }
@media (max-width: 560px) {
  .history-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .history-list__text { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
}

/* ---------- 18. Coming soon ---------- */
.coming-section { padding-top: 0; }
.coming-section__hint { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; }
.coming-section__hint .icon { color: var(--orange-500); }
.filters + .tabs { margin-top: 18px; }

/* Gallery arrows + full-screen viewer */
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--navy-900); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background .15s, transform .15s; }
.gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__zoom { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(16,32,58,.65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gallery__zoom:hover { background: rgba(16,32,58,.85); }
@media (max-width: 640px) { .gallery__nav { width: 38px; height: 38px; } .gallery__nav--prev { left: 8px; } .gallery__nav--next { right: 8px; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,14,26,.94); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox__close { position: absolute; top: 14px; right: 18px; font-size: 40px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 56px; line-height: 1; color: #fff; background: rgba(255,255,255,.08); border: 0; width: 60px; height: 80px; border-radius: 10px; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }
.lightbox__pos { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: .8; }

/* WhatsApp button */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.28); color: #fff; }
@media (max-width: 640px) { .wa-float { right: 14px; bottom: 14px; padding: 13px; } .wa-float__label { display: none; } }
@media print { .wa-float { display: none; } }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.testimonial { margin: 0; background: var(--white, #fff); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(15,33,61,.04); }
.testimonial__body { padding: 26px 26px 22px; display: grid; gap: 16px; }
.testimonial__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.testimonial__mark { color: var(--orange-500); display: block; }
.testimonial blockquote { margin: 0; font-size: 1.04rem; line-height: 1.6; color: var(--navy-900); }
.testimonial figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .93rem; }
.testimonial-note { text-align: center; margin-top: 32px; }

/* Order tracking timeline */
.order__track { grid-column: 1 / -1; order: 5; background: var(--paper, #F6F3EE); border-radius: 12px; padding: 4px 18px; }
.order__track summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--navy-900); }
.track { list-style: none; margin: 0 0 12px; padding: 0; position: relative; }
.track__step { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 0 0 18px; }
.track__step::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.track__step:last-child { padding-bottom: 4px; }
.track__step:last-child::before { display: none; }
.track__step.is-done::before { background: #1F7A4D; }
.track__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: #fff; position: relative; z-index: 1; }
.track__step.is-done .track__dot { background: #1F7A4D; border-color: #1F7A4D; }
.track__step.is-now .track__dot { border-color: var(--orange-500); box-shadow: 0 0 0 4px rgba(210,96,26,.15); }
.track__step.is-now .track__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); }
.track__step.is-todo { color: var(--muted); }
.track__detail { margin-top: 6px; font-size: .93rem; display: grid; gap: 8px; justify-items: start; }
.track-pay { display: grid; gap: 6px; width: min(100%, 340px); }
.track-pay__bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.track-pay__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-500), #E8843C); border-radius: 99px; }
.track-where { display: flex; gap: 6px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.track-where .icon { color: var(--orange-500); margin-top: 2px; flex: none; }
.track__step.is-done .track-pay__bar span { background: #1F7A4D; }

/* 109-point inspection on the car page */
.insp-card { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 14px; background: var(--paper); }
.insp-card__head { display: flex; gap: 12px; align-items: center; }
.insp-card__icon { width: 44px; height: 44px; border-radius: 12px; background: #E1F2E8; color: #1F7A4D; display: grid; place-items: center; flex: none; }
.insp-bar { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; }
.insp-bar span { min-width: 6px; }
.insp-bar__green { background: #1F7A4D; } .insp-bar__amber { background: #DC8A0E; } .insp-bar__red { background: #C0392B; } .insp-bar__grey { background: #C3C9D2; }
.insp-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .93rem; }
.insp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--green { background: #1F7A4D; } .dot--amber { background: #DC8A0E; } .dot--red { background: #C0392B; } .dot--grey { background: #C3C9D2; }
.insp-card__summary { margin: 0; }
.insp-tyres { margin: 0; font-size: .93rem; }
.insp-finds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.insp-finds li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.insp-finds .badge { flex: none; }
.insp-card .btn { justify-self: start; }

/* Book a viewing */
.view-card h3 { display: flex; align-items: center; gap: 8px; }
.view-card h3 .icon { color: var(--orange-500); }
.view-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 30px 80px rgba(8,14,26,.35); }
.view-dialog::backdrop { background: rgba(8,14,26,.55); }
.view-dialog__form { padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.view-dialog__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.view-days, .view-times { border: 0; margin: 0; padding: 0; min-width: 0; }
.view-days legend, .view-times legend { font-weight: 600; margin-bottom: 8px; }
.view-days__row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.view-day input, .view-time input { position: absolute; opacity: 0; pointer-events: none; }
.view-day span { display: grid; justify-items: center; width: 62px; padding: 8px 0; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.15; background: #fff; }
.view-day small { font-size: 12px; color: var(--muted); }
.view-day strong { font-size: 20px; color: var(--navy-900); }
.view-day input:checked + span { background: var(--navy-900); border-color: var(--navy-900); }
.view-day input:checked + span small, .view-day input:checked + span strong { color: #fff; }
.view-day input:focus-visible + span, .view-time input:focus-visible + span { outline: 2px solid var(--orange-500); outline-offset: 2px; }
.view-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.view-times__grid.is-missing { outline: 2px solid #C0392B; outline-offset: 4px; border-radius: 8px; }
.view-time span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; background: #fff; }
.view-time input:checked + span { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.track-docs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.track-docs li { display: inline-flex; align-items: center; gap: 4px; }
.track-docs .icon { color: #1F7A4D; }
.insp-bar__none { background: repeating-linear-gradient(135deg, #E4E7EC 0 4px, #F2F4F7 4px 8px); }
.dot--none { background: #fff; border: 2px dashed #98A2B3; }
.insp-unchecked { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; background: #F2F4F7; border-radius: 10px; padding: 9px 12px; }
.insp-unchecked .icon { flex: none; margin-top: 2px; }

/* Reviews page */
.review-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; margin-top: 26px; }
.review-stats > div { display: grid; line-height: 1.15; }
.review-stats strong { font-size: 2rem; color: var(--orange-500); }
.review-stats span { color: rgba(255,255,255,.78); font-size: .95rem; }
.review-page { display: grid; gap: clamp(36px, 5vw, 64px); }
.review-page .testimonial-note { margin-top: 0; }
.review-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(22px, 4vw, 54px); align-items: center; }
.review-feature--plain { grid-template-columns: 1fr; }
.review-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15,33,61,.14); background: var(--paper, #F6F3EE); }
.review-feature--flip img { order: 2; }
.review-feature__text h2 { margin-top: 4px; }
.review-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.review-gallery figure { margin: 0; display: grid; gap: 8px; }
.review-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.review-gallery figcaption { font-size: .93rem; color: var(--muted, #667085); }
.review-gallery figcaption strong { color: var(--navy-900); }
@media (max-width: 820px) { .review-feature { grid-template-columns: 1fr; } .review-feature--flip img { order: 0; } }
.help-card__where { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .93rem; line-height: 1.5; }
.loc-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 14px; }
.loc-list li { line-height: 1.5; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.loc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
/* Problem during transport */
.track__step.is-alert .track__dot { background: #B42318; border-color: #B42318; }
.track__step.is-alert .track__dot::after { content: "!"; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.track__step.is-alert strong { color: #B42318; }
.refund-box { margin-top: 14px; border: 1px solid #F1C6C2; background: #FEF6F5; border-radius: 12px; padding: 16px 18px; display: grid; gap: 10px; }
.refund-box h4 { margin: 0; color: #8A1C12; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.refund-box p { margin: 0; }
.refund-box__form { display: grid; gap: 10px; grid-template-columns: 1fr 1.4fr auto; align-items: end; }
.refund-box__form .field { margin: 0; }
.refund-box--done { border-color: #BFE3CF; background: #F2FAF5; }
.refund-box--done h4 { color: #1F7A4D; }
@media (max-width: 760px) { .refund-box__form { grid-template-columns: 1fr; } }
.order > .refund-box { grid-column: 1 / -1; order: 4; margin-top: 0; }
.refund-box__form--uk { grid-template-columns: 1.4fr .8fr 1fr auto; }
@media (max-width: 760px) { .refund-box__form--uk { grid-template-columns: 1fr; } }
