:root {
  --navy: #0a1226;
  --navy-2: #121c36;
  --navy-3: #1a2747;
  --accent: #1f6bff;
  --accent-2: #5b9bff;
  --accent-hover: #3d82ff;
  --gold: #e8a317;
  --white: #ffffff;
  --off: #f4f6fb;
  --muted: #6b7a90;
  --line: #e1e7f2;
  --ok: #1f9d65;
  --danger: #c94444;
  --shadow: 0 10px 28px rgba(10, 18, 38, 0.10);
  --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font); color: var(--navy); background: var(--off); }
body { position: relative; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1200px, 92%); margin: 0 auto; }

.topbar {
  background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-shrink: 0; }
.brand img.logo { height: 36px; width: auto; }
.brand .word { line-height: 1.15; }
.brand .word b { display: block; font-size: 14px; letter-spacing: .02em; }
.brand .word span { display: block; font-size: 10px; font-weight: 500; opacity: .6; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 20px; font-size: 14px; opacity: .9; }
.nav a:hover { color: var(--accent-2); }
.nav a { white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.dealer-chip {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  background: rgba(255,255,255,.08); padding: 6px 12px 6px 6px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.dealer-chip .av, .mobile-account .av {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
  line-height: 1;
}
.dealer-chip .dealer-name { white-space: nowrap; }
.dealer-chip a[data-act="out"] { margin-left: 4px; opacity: .8; white-space: nowrap; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 11px 18px; font-weight: 600; cursor: pointer;
  transition: .15s ease;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: #fff; border: 1.5px solid #f0c0c0; color: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.cart-pill {
  background: rgba(255,255,255,.1); border-radius: 999px; padding: 8px 14px; font-size: 13px;
  display: inline-flex; gap: 8px; align-items: center;
}
.cart-pill b {
  background: var(--accent); color: #fff; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
}
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); color: inherit;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  flex-shrink: 0; white-space: nowrap; line-height: 1;
}
.cart-btn .cart-icon { display: none; }
.cart-btn .cart-count {
  background: var(--accent); color: #fff; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.mobile-account {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0 12px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-account-meta { flex: 1; min-width: 0; }
.mobile-account-meta strong { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-account-meta span { display: block; font-size: 12px; font-weight: 600; opacity: .65; margin-top: 1px; }
.mobile-account a[data-act="out"] { white-space: nowrap; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.mobile-account-guest { display: flex; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.12); padding: 4px 0 12px; }
.mobile-account-guest .btn { flex: 1; }

/* Hero public */
.hero {
  position: relative; min-height: 440px; overflow: hidden; background: var(--navy); color: #fff;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 80% 20%, rgba(31,107,255,.28), transparent 55%),
    linear-gradient(115deg, #070c18 0%, #0a1226 55%, #122044 100%);
}
.hero-overlay::after {
  content: "";
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: min(280px, 40vw); height: 120px;
  background: url("../img/rcw-logo-on-dark.svg") right center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2; min-height: inherit; padding: 36px 0; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  width: min(1200px, 92%); margin: 0 auto;
}
.eyebrow {
  color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero-content h1 { font-size: 42px; line-height: 1.12; font-weight: 800; max-width: 640px; }
.hero-slogan { display:flex; align-items:center; gap:10px; align-self:flex-start; font-size: 21px; font-weight: 600; font-style: italic; color: #8db8ff; letter-spacing: .01em; margin: 0; }
.hero-slogan::before { content:""; width: 28px; height: 2px; background: #8db8ff; border-radius: 2px; }
.footer-slogan { font-weight: 600; font-style: italic; font-size: 15px; color: #8db8ff; margin-bottom: 6px; }
.hero-tagline { font-size: 19px; font-weight: 600; margin: 0; max-width: 560px; }
.hero-content p { max-width: 520px; opacity: .85; font-size: 16px; line-height: 1.5; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.sample-note {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(31,107,255,.15); color: var(--accent-2);
  border: 1px solid rgba(31,107,255,.35);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; width: fit-content;
}

.section { width: min(1200px, 92%); margin: 40px auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; }
.section-head .meta { color: var(--muted); font-size: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-photo { position: relative; height: 170px; background: #dbe3ef; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(10,18,38,.85); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 9px; border-radius: 999px;
}
.badge.ready { background: var(--ok); }
.badge.lock { background: rgba(10,18,38,.75); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 15px; line-height: 1.25; }
.card-body .miles { color: var(--muted); font-size: 12px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.price { font-size: 18px; font-weight: 800; }
.price small { font-size: 10px; font-weight: 600; color: var(--muted); display: block; }
.price-locked {
  font-size: 13px; font-weight: 700; color: var(--accent);
  background: rgba(31,107,255,.08); border-radius: 8px; padding: 8px 10px;
}

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px;
}
.step {
  background: #fff; border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.45; }

.trust {
  background: var(--navy); color: #fff; padding: 36px 0; margin-top: 48px;
}
.trust-grid {
  width: min(1200px, 92%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.trust-item { display: flex; gap: 14px; }
.trust-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(31,107,255,.2); color: var(--accent-2);
  display: grid; place-items: center; font-weight: 800;
}
.trust-item h4 { font-size: 15px; margin-bottom: 4px; }
.trust-item p { font-size: 13px; opacity: .7; line-height: 1.4; }

.footer {
  background: #060b18; color: rgba(255,255,255,.7); padding: 32px 0; font-size: 13px;
}
.footer-inner {
  width: min(1200px, 92%); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center;
}
.footer strong { color: #fff; }

/* Apply / login */
.auth-wrap {
  width: min(980px, 92%); margin: 36px auto 56px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px;
}
.panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.panel h2 { font-size: 20px; margin-bottom: 6px; }
.panel .lead { color: var(--muted); font-size: 13px; margin-bottom: 16px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff;
}
.upload-box {
  border: 2px dashed #c5d0e0; border-radius: 12px; padding: 20px; text-align: center;
  background: var(--off); color: var(--muted); font-size: 13px;
}
.upload-box strong { color: var(--navy); display: block; margin-bottom: 4px; }
.notice {
  background: rgba(31,107,255,.08); border: 1px solid rgba(31,107,255,.25);
  color: #1a4fb8; border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 14px;
}
.notice.warn {
  background: rgba(232,163,23,.12); border-color: rgba(232,163,23,.4); color: #8a6508;
}

/* Dealer marketplace layout */
.mkt {
  width: min(1280px, 96%); margin: 20px auto 48px;
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
}
.sidebar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; height: fit-content; position: sticky; top: 84px;
}
.sidebar h3 { font-size: 14px; margin-bottom: 12px; }
.side-group { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-group:last-child { border-bottom: none; margin-bottom: 0; }
.side-group label.chk {
  display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer;
}
.side-group label.chk input { accent-color: var(--accent); }
.side-group .field { margin-bottom: 8px; }
.mkt-main .toolbar {
  display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap;
}
.mkt-main .search {
  flex: 1; min-width: 200px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 14px; background: #fff;
}
.mkt-main .sort {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff;
}
.mkt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Detail */
.detail-wrap {
  width: min(1200px, 92%); margin: 24px auto 56px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px;
}
.gallery { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main { height: 400px; background: #dbe3ef; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.thumbs img { height: 72px; width: 100%; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.thumbs img.active { border-color: var(--accent); }
.detail-panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; height: fit-content;
}
.detail-panel h1 { font-size: 26px; line-height: 1.2; }
.detail-price { font-size: 32px; font-weight: 800; color: var(--navy); }
.detail-price small { font-size: 11px; color: var(--muted); font-weight: 600; display: block; }
.specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: var(--off); border-radius: 12px; padding: 14px;
}
.spec { font-size: 13px; }
.spec b { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.announce {
  background: #fff8e8; border: 1px solid #f0d48a; border-radius: 10px; padding: 12px; font-size: 13px;
}
.announce strong { display: block; margin-bottom: 4px; color: #8a6508; }
.action-stack { display: flex; flex-direction: column; gap: 10px; }

/* Checkout */
.checkout-wrap {
  width: min(1100px, 92%); margin: 24px auto 56px;
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 22px;
}
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 100px; height: 68px; object-fit: cover; border-radius: 8px; }
.cart-item h4 { font-size: 14px; margin-bottom: 3px; }
.cart-item .meta { font-size: 12px; color: var(--muted); }
.pay-options { display: grid; gap: 8px; }
.pay-opt {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer;
}
.pay-opt.selected { border-color: var(--accent); background: rgba(31,107,255,.05); }
.pay-opt input { accent-color: var(--accent); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.muted { color: var(--muted); }
.terms {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  background: var(--off); border-radius: 10px; padding: 12px; margin-top: 8px;
}

/* My orders */
.orders-wrap { width: min(1000px, 92%); margin: 28px auto 56px; }
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.order-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.order-top h3 { font-size: 16px; }
.timeline {
  display: flex; gap: 0; margin: 18px 0 8px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 14px; left: 20px; right: 20px; height: 3px; background: var(--line); z-index: 0;
}
.tl-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.tl-dot {
  width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 8px;
  background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.tl-step.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl-step.current .tl-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl-step span { font-size: 11px; color: var(--muted); display: block; line-height: 1.3; }
.tl-step.done span, .tl-step.current span { color: var(--navy); font-weight: 600; }
.order-cars { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy); color: #fff; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.admin-side .brand { margin-bottom: 22px; }
.admin-nav a {
  display: block; padding: 10px 12px; border-radius: 10px; font-size: 13px; opacity: .75;
}
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,.08); opacity: 1; color: var(--accent-2); }
.admin-main { padding: 26px 30px; }
.admin-main h1 { font-size: 24px; margin-bottom: 4px; }
.admin-main > .lead { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tabs .tab {
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--line); color: var(--muted);
}
.admin-tabs .tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1.05fr; gap: 18px; }
.admin-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.import-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.import-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.import-row h4 { font-size: 13px; }
.import-row .meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.import-row.listing-row {
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}
.import-row.listing-row.needs { border-color: #e8c56b; background: #fffdf6; }
.import-row.listing-row.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(31,107,255,.16); }
.listing-thumb {
  width: 72px; height: 52px; border-radius: 8px; overflow: hidden;
  background: #eef2f8; flex: 0 0 72px;
}
.listing-thumb img, .listing-thumb .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-list { max-height: none; }
.tag-draft { background: #fff4d6; color: #8a5a00; }
.tag-live { background: rgba(31,157,101,.12); color: var(--ok); }
.notice-go { background: #fff7e0; border: 1px solid #e8c56b; color: #5c4300; margin: 0 0 12px; }
.crew-tools { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.crew-tools .search { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .listing-thumb { width: 64px; height: 48px; flex-basis: 64px; }
}

.tag {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: #eef2f8; color: var(--muted); text-transform: uppercase; margin-top: 3px;
}
.upload-zone {
  border: 2px dashed #c5d0e0; border-radius: 12px; padding: 22px; text-align: center;
  background: var(--off); color: var(--muted); margin-bottom: 12px; font-size: 13px;
}
.upload-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.upload-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.switch { width: 42px; height: 24px; background: #c5d0e0; border-radius: 999px; position: relative; }
.switch.on { background: var(--ok); }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
}
.switch.on::after { left: 21px; }
.status-pills { display: flex; gap: 6px; margin: 8px 0 12px; }
.status-pill {
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--line); color: var(--muted); background: #fff;
}
.status-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.status-pill.live { background: rgba(31,157,101,.12); color: var(--ok); border-color: rgba(31,157,101,.3); }
.queue-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px;
}
.queue-row h4 { font-size: 13px; }
.queue-row .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.queue-actions { display: flex; gap: 6px; }

.page-label {
  position: absolute; bottom: 14px; right: 14px; z-index: 100;
  background: rgba(10,18,38,.88); color: #fff; font-size: 11px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; letter-spacing: .04em; pointer-events: none;
}

/* Phone */
body.phone .topbar-inner { height: 56px; gap: 12px; }
body.phone .nav, body.phone .top-actions .btn-ghost, body.phone .top-actions .btn-accent, body.phone .dealer-chip { display: none; }
body.phone .brand .word b { font-size: 12px; }
body.phone .brand img.logo { height: 30px; }
body.phone .cart-btn {
  width: 40px; height: 40px; padding: 0; justify-content: center;
  background: #eef4ff; border-radius: 12px;
}
body.phone .cart-btn .cart-label { display: none; }
body.phone .cart-btn .cart-icon { display: block; }
body.phone .cart-btn .cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; font-size: 10px;
}
body.phone .mkt { grid-template-columns: 1fr; }
body.phone .sidebar { position: static; display: none; }
body.phone .mkt-grid { grid-template-columns: 1fr; }
body.phone .hero { min-height: 320px; }
body.phone .hero-content h1 { font-size: 28px; }
body.phone .grid-3, body.phone .steps, body.phone .trust-grid { grid-template-columns: 1fr; }
body.phone .filters-mobile {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px;
}
body.phone .chip {
  white-space: nowrap; background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 600;
}

/* Our Recon Process */
.recon { padding-top: 8px; }
.recon .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
.recon .lead {
  color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 680px; font-weight: 400;
}
.recon-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1000px) { .recon-grid { grid-template-columns: repeat(2, 1fr); } }
.recon-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px;
}
.recon-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(31,107,255,.1); color: var(--accent);
  display: grid; place-items: center; flex-shrink: 0;
}
.recon-icon svg { width: 22px; height: 22px; display: block; }
.recon-card h4 { font-size: 15px; }
.recon-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.recon-card .stepno {
  font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase;
}

.recon-check {
  background: #f3f8f4; border: 1.5px solid rgba(31,157,101,.28);
  border-radius: 12px; padding: 14px 14px 12px;
}
.recon-check .rc-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--ok); margin-bottom: 10px;
}
.recon-check .rc-head .pill {
  background: var(--ok); color: #fff; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.recon-check ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.recon-check li {
  font-size: 12px; color: var(--navy); display: flex; align-items: center; gap: 6px;
}
.recon-check li::before {
  content: "✓"; color: var(--ok); font-weight: 800; font-size: 12px;
}

body.phone .recon-grid { grid-template-columns: 1fr; }

/* Return policy / transport notes */
.policy-box {
  background: var(--off); border-radius: 12px; padding: 14px 14px 12px; margin-top: 14px;
  border: 1.5px solid var(--line);
}
.policy-box h3 { font-size: 14px; margin-bottom: 6px; }
.policy-box p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.agree-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1.5px solid var(--accent); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; font-weight: 600;
}
.agree-row input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.policy-line {
  font-size: 13px; color: var(--muted); line-height: 1.45;
  background: var(--off); border-radius: 10px; padding: 10px 12px;
}
.transport-note {
  font-size: 13px; color: var(--navy); line-height: 1.5;
  background: rgba(31,107,255,.08); border: 1px solid rgba(31,107,255,.25);
  border-radius: 10px; padding: 10px 12px; margin-top: 12px;
}

/* Condition report (top-down diagram) */
.cr-section { margin: 0 auto 56px; width: min(1200px, 92%); }
.cr-panel { padding: 24px 24px 36px; }
.cr-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.cr-head h2 { font-size: 20px; margin-bottom: 4px; }
.cr-head .lead { margin: 0; }
.overall-grade {
  background: var(--navy); color: #fff; border-radius: 14px;
  padding: 12px 18px; text-align: right; min-width: 148px; flex-shrink: 0;
}
.overall-grade span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; opacity: .7;
}
.overall-grade b { font-size: 32px; line-height: 1.1; }
.overall-grade small { display: block; font-size: 11px; opacity: .7; font-weight: 600; }
.cr-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.cr-diagram-wrap { text-align: center; }
.cr-svg { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.cr-svg .panel { fill: #eef2f8; stroke: #1a2747; stroke-width: 1.4; }
.cr-svg .glass { fill: #c5d8f0; stroke: #1a2747; stroke-width: 1.4; }
.cr-svg .wheel { fill: #1a2747; }
.cr-svg .rim { fill: #8b97a8; }
.cr-svg .plab { font: 600 8px Inter, "Segoe UI", sans-serif; fill: #6b7a90; text-anchor: middle; pointer-events: none; }
.cr-svg .panel.hot { fill: #fff4d6; }
.cr-svg .panel.sel { fill: #d9e6ff; stroke: #1f6bff; stroke-width: 2.2; }
.cr-legend {
  display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center;
  margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--muted);
}
.cr-legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 4px; vertical-align: -1px;
}
.grades { display: grid; gap: 10px; margin-bottom: 16px; }
.grade-row { display: grid; grid-template-columns: 90px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.grade-row .gbar {
  height: 8px; background: #e2e8f2; border-radius: 999px; overflow: hidden;
}
.grade-row .gbar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.grade-row b { text-align: right; font-size: 13px; }
.tire-depths {
  font-size: 11px; color: var(--muted); grid-column: 1 / -1; padding-left: 100px; margin-top: -6px;
}
.dmg-list { display: grid; gap: 8px; }
.dmg-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.dmg-num {
  width: 24px; height: 24px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.dmg-item h4 { font-size: 13px; margin-bottom: 2px; }
.dmg-item p { font-size: 12px; color: var(--muted); }
.dmg-type {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-left: 6px; color: var(--muted);
}
.cr-sample {
  display: inline-block; margin-top: 4px;
}

/* Admin condition editor */
.admin-cr { margin-bottom: 22px; }
.admin-cr-grid { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.dmg-form .field { margin-bottom: 10px; }
.photo-opt {
  border: 2px dashed #c5d0e0; border-radius: 10px; padding: 14px; text-align: center;
  color: var(--muted); font-size: 12px; background: var(--off);
}
.photo-opt strong { display: block; margin-bottom: 2px; color: var(--navy); }

body.phone .detail-wrap { grid-template-columns: 1fr; margin: 12px auto 20px; }
body.phone .gallery-main { height: 220px; }
body.phone .thumbs img { height: 56px; }
body.phone .detail-panel { padding: 18px; }
body.phone .cr-section { margin-bottom: 48px; }
body.phone .cr-panel { padding: 18px 16px 40px; }
body.phone .page-label { position: relative; display: inline-block; margin: 8px 16px 20px auto; float: right; }
body.phone .cr-layout, body.phone .admin-cr-grid { grid-template-columns: 1fr; }
body.phone .cr-head { flex-direction: column; }
body.phone .overall-grade { text-align: left; width: 100%; }
body.phone .grade-row { grid-template-columns: 80px 1fr 32px; }
body.phone .tire-depths { padding-left: 0; }
body.phone .recon-check ul { grid-template-columns: 1fr 1fr; }

/* ---- Real site extras (not in the mockup) ---- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.hidden { display: none !important; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px;
  box-shadow: var(--shadow); z-index: 200; font-size: 14px; font-weight: 600;
  max-width: min(520px, 92%);
}
.toast.err { background: var(--danger); }
.badge.test { background: var(--gold); color: var(--navy); }
.badge.pending { background: var(--gold); color: var(--navy); }
.badge.sold { background: #6b7a90; }
.empty {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 24px; text-align: center; color: var(--muted);
}
.empty h3 { color: var(--navy); margin-bottom: 8px; }
.pending-box {
  width: min(640px, 92%); margin: 48px auto; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; text-align: center;
}
.menu-btn {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 8px; padding: 8px 10px; font-weight: 700; cursor: pointer;
}
.mobile-nav {
  display: none; background: var(--navy-2); color: #fff; padding: 12px 4%;
  flex-direction: column; gap: 10px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.err-text { color: var(--danger); font-size: 13px; margin-top: 8px; }
.ok-text { color: var(--ok); font-size: 13px; margin-top: 8px; }
.thumbs img { cursor: pointer; }
.cr-svg .panel, .cr-svg .glass { cursor: pointer; }
.photo-chip { position: relative; display: inline-block; }
.photo-chip button {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: none;
  border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; cursor: pointer;
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-2px); transition: .15s ease; }
.split-link { color: var(--accent); font-size: 13px; font-weight: 600; }
.admin-side .brand { margin-bottom: 22px; }
.admin-topbar-mobile { display: none; }
.filters-mobile { display: none; }
.google-btn { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.google-btn:hover { border-color: var(--accent); }
.footer a { color: #fff; }
body.nav-open { overflow: hidden; }
.vin-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.dmg-item .rm { font-size: 11px; color: var(--danger); font-weight: 700; margin-top: 4px; cursor: pointer; background: none; border: none; padding: 0; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
  .topbar-inner { height: 56px; gap: 12px; }
  .brand img.logo { height: 30px; }
  .top-actions { gap: 10px; }
  .top-actions .dealer-chip { display: none; }
  .mkt { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
  .sidebar.open { display: block; }
  .filters-mobile { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; }
  .chip {
    white-space: nowrap; background: #fff; border: 1.5px solid var(--line);
    border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 600;
  }
  .mkt-grid { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 320px; }
  .hero-overlay::after { display: none; }
  .hero-content h1 { font-size: 28px; }
  .grid-3, .steps, .trust-grid, .recon-grid { grid-template-columns: 1fr; }
  .auth-wrap, .checkout-wrap, .detail-wrap, .admin-grid-2, .admin-grid-3, .cr-layout, .admin-cr-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .admin-side .brand { margin: 0 12px 0 0; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-main { padding: 18px 16px; }
  .gallery-main { height: 220px; }
  .cart-item { grid-template-columns: 80px 1fr auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .top-actions .btn-ghost, .top-actions .btn-accent { display: none; }
  .cart-btn {
    width: 40px; height: 40px; padding: 0; justify-content: center;
    background: #eef4ff; color: var(--navy); border-radius: 12px;
  }
  .cart-btn .cart-label { display: none; }
  .cart-btn .cart-icon { display: block; }
  .cart-btn .cart-count {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; font-size: 10px;
    box-shadow: 0 0 0 2px #fff;
  }
}

/* Legal / a11y / placeholders (v1 hygiene) */
:root {
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --muted: #3d4a5c; /* WCAG AA on white */
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .switch:focus-visible, .chip:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.topbar a:focus-visible, .topbar button:focus-visible, .admin-side a:focus-visible, .btn-ghost:focus-visible {
  outline-color: #8cb4ff;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.ph {
  width: 100%; height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)),
    repeating-linear-gradient(135deg, #1a2747 0 12px, #15203a 12px 24px);
  display: grid; place-items: center;
}
.ph::after {
  content: "";
  width: 56px; height: 32px;
  background: url("../img/rcw-logo-on-dark.svg") center / contain no-repeat;
  opacity: .45;
}
.legal-wrap { width: min(800px, 92%); margin: 28px auto 64px; }
.legal-wrap h1 { font-size: 28px; margin-bottom: 8px; }
.legal-wrap .updated { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.legal-wrap h2 { font-size: 18px; margin: 22px 0 8px; }
.legal-wrap p, .legal-wrap li { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.legal-wrap ul { padding-left: 20px; margin-bottom: 12px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 24px; font-size: 13px; font-weight: 600; }
.legal-nav a { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.footer-links a { color: #d5def0; text-decoration: underline; text-underline-offset: 2px; }
.admin-draft-note {
  background: #fff6d8; border: 1px solid #e8c56a; color: #6a5208;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px;
}
.account-wrap { width: min(720px, 92%); margin: 28px auto 64px; }

/* v2: gallery tabs, close-ups, videos, share, promise line */
.gallery-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--line);
  background: #fff;
}
.gallery-tab {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 12px 18px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer;
  font-family: inherit;
}
.gallery-tab.active, .gallery-tab[aria-selected="true"] {
  color: var(--navy); border-bottom-color: var(--accent);
}
.gallery-panel { padding: 0 0 8px; }
.gallery-panel[hidden] { display: none !important; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.thumbs .thumb {
  appearance: none; background: none; border: 2px solid transparent; padding: 0;
  border-radius: 8px; cursor: pointer; overflow: hidden;
}
.thumbs .thumb img { height: 72px; width: 100%; object-fit: cover; display: block; border-radius: 6px; }
.thumbs .thumb.active { border-color: var(--accent); }
.media-copy { padding: 16px 16px 8px; }
.cosmetic-summary { font-size: 16px; font-weight: 650; color: var(--navy); margin: 0 0 8px; line-height: 1.45; }
.promise-line {
  font-size: 14px; line-height: 1.5; color: var(--navy);
  background: #eef4ff; border-left: 3px solid var(--accent);
  padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 0 0 8px;
}
.closeup-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; padding: 8px 16px 16px;
}
.closeup-card { margin: 0; background: #f6f8fb; border-radius: 10px; overflow: hidden; }
.closeup-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.closeup-card figcaption { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; color: var(--navy); font-weight: 600; }
.video-list { display: grid; gap: 18px; padding: 16px; }
.video-card h3 { font-size: 15px; margin: 0 0 8px; }
.video-card video { width: 100%; max-height: 420px; background: #000; border-radius: 10px; }
.video-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share-menu {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff;
}
.share-menu.hidden { display: none; }
.share-menu button, .share-menu a {
  appearance: none; background: none; border: 0; text-align: left;
  padding: 8px 10px; border-radius: 8px; font: inherit; font-weight: 600;
  color: var(--navy); cursor: pointer; text-decoration: none;
}
.share-menu button:hover, .share-menu a:hover { background: #eef4ff; }
.share-mini { appearance: none; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }
.tip { font-size: 12px; color: var(--muted); margin: 6px 0 10px; line-height: 1.4; }
.closeup-admin, .video-admin { margin-top: 16px; }
.closeup-admin .photo-chip, .video-admin .media-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}
.closeup-admin .photo-chip img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.closeup-admin .photo-chip input[type="text"] { flex: 1; }
.media-row { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
section.recon .promise-line { margin-top: 8px; max-width: 720px; }
.card-foot { position: relative; }
@media (max-width: 800px) {
  .closeup-card img { height: 160px; }
  .gallery-tab { flex: 1; text-align: center; padding: 12px 8px; }
}

/* ============================================================
   Homepage C + white top bar (shared header/footer)
   ============================================================ */
.topbar {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
  border-bottom: 1px solid #e8edf5;
}
.topbar-inner { height: 72px; }
.brand img.logo { height: 44px; width: auto; }
.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #33415c;
  opacity: 1;
}
.nav a:hover { color: var(--accent); }
.topbar .btn-ghost {
  background: transparent;
  color: var(--accent);
  border: none;
  font-weight: 600;
  padding: 8px 12px;
}
.topbar .btn-ghost:hover { border-color: transparent; color: var(--accent-hover); }
.topbar a:focus-visible, .topbar button:focus-visible, .topbar .btn-ghost:focus-visible {
  outline-color: var(--accent);
}
.menu-btn {
  background: transparent;
  border: 1px solid #dfe5ef;
  color: var(--navy);
}
.mobile-nav {
  background: #fff;
  color: var(--navy);
  border-bottom: 1px solid #e8edf5;
}
.mobile-nav a {
  border-bottom: 1px solid #eef1f6;
  font-weight: 600;
  color: #33415c;
}
.cart-pill { background: #eef4ff; color: var(--navy); }
.cart-btn { background: #eef4ff; color: var(--navy); }
.dealer-chip { background: #f4f6fb; color: var(--navy); }
.mobile-account { border-bottom-color: #e8edf5; }
.mobile-account-guest { border-bottom-color: #e8edf5; }
.mobile-account-guest .btn-ghost {
  background: transparent; color: var(--accent); border: 1px solid #dfe5ef; display: inline-flex;
}

.footer {
  background: #0b1f4b;
  color: #b8c6e0;
}
.footer-slogan { color: #8db8ff; }
.footer-disc {
  width: min(1200px, 92%);
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 11.5px;
  line-height: 1.55;
  color: #8a9bb8;
}
.footer a { color: #d5def0; }

/* Homepage layout */
html:has(body.home), body.home { background: #fff; }
body.home { min-height: 100vh; }
.home-search, .home-chips, .home-hero, .home-sell, .home-main, .home-tiles {
  width: min(1200px, 92%);
  margin-left: auto;
  margin-right: auto;
}
.home-search {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #dfe5ef;
  border-radius: 999px;
  padding: 12px 18px;
  color: #8a96a8;
  background: #fff;
}
.home-search-icon { flex: none; color: #8a96a8; }
.home-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--navy);
  min-width: 0;
}
.home-search input::placeholder { color: #8a96a8; }
.home-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.home-chips button, .home-chips a {
  appearance: none;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #33415c;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.home-chips button:hover, .home-chips a:hover,
.home-chips button.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: #eaf1ff;
}

.home-hero {
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(120deg, #0b1d4d 0%, #1f6bff 100%);
  color: #fff;
  min-height: 330px;
}
.home-hero-text { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.home-slogan {
  font-style: italic;
  font-weight: 600;
  color: #ffc629;
  font-size: 18px;
  margin-bottom: 10px;
}
.home-hero h1 {
  font-size: 46px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.home-hero p {
  font-size: 17px;
  line-height: 1.55;
  opacity: .9;
  margin-bottom: 24px;
  max-width: 430px;
}
.home-hero-photo { min-height: 330px; background: #0b1d4d; }
.home-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-yellow { background: #ffc629; color: #0a1226; }
.btn-yellow:hover { background: #ffd25a; }
.btn-hero-ghost { background: rgba(255,255,255,.15); color: #fff; }
.btn-hero-ghost:hover { background: rgba(255,255,255,.25); }
.btn-outline-blue {
  background: #fff;
  border: 1.5px solid #1f6bff;
  color: #1f6bff;
}
.btn-outline-blue:hover { background: #eaf1ff; }

.home-sell {
  margin-top: 16px;
  border: 1px solid #e3e9f2;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.home-sell-ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef4ff;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #1f6bff;
  font-weight: 800;
}
.home-sell-copy { flex: 1; min-width: 0; }
.home-sell-copy b { display: block; font-size: 17px; }
.home-sell-copy span { font-size: 14px; color: #6b7a90; }

.home-main {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 40px;
}
.home-filters {
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  overflow: hidden;
  align-self: start;
  background: #fff;
}
.home-filters a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f6;
  font-size: 14px;
  font-weight: 600;
  color: #33415c;
}
.home-filters a:last-child { border-bottom: none; }
.home-filters a::after { content: "⌄"; color: #8a96a8; font-weight: 400; }
.home-filters a:hover { background: #f5f8fd; color: var(--accent); }
.home-inv-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 12px;
}
.home-inv-head h2 { font-size: 22px; }
.home-inv-head span { font-size: 13px; color: #6b7a90; }
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.home-card {
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.home-card a { display: block; color: inherit; }
.home-card:hover { box-shadow: 0 8px 22px rgba(10,18,38,.08); }
.home-card-photo { position: relative; height: 160px; background: #eef1f6; }
.home-card-photo img, .home-card-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.home-card-body { padding: 12px 14px 16px; }
.home-card-body h3 { font-size: 16px; margin-top: 0; }
.home-card-body p { font-size: 13px; color: #6b7a90; margin-top: 3px; }
.home-card-price { margin-top: 10px; font-size: 13px; font-weight: 700; color: #1f6bff; }

.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}
.home-tiles div {
  background: #f5f8fd;
  border-radius: 14px;
  padding: 18px;
}
.home-tiles b { display: block; font-size: 16px; margin-bottom: 4px; }
.home-tiles span { font-size: 13px; color: #6b7a90; line-height: 1.45; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; white-space: nowrap; }
  .topbar .top-actions .btn-ghost, .topbar .top-actions .btn-accent, .top-actions .dealer-chip { display: none; }
  .topbar-inner { height: 56px; gap: 12px; }
  .brand img.logo { height: 32px; }
  .top-actions { gap: 10px; }
  .topbar .cart-btn {
    width: 40px; height: 40px; padding: 0; justify-content: center;
    background: #eef4ff; border-radius: 12px;
  }
  .topbar .cart-btn .cart-label { display: none; }
  .topbar .cart-btn .cart-icon { display: block; color: #0b1f4b; }
  .topbar .cart-btn .cart-count {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; font-size: 10px;
    box-shadow: 0 0 0 2px #fff;
  }
  .topbar .menu-btn { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 700; }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-hero-photo {
    height: 200px;
    min-height: 200px;
    order: -1;
  }
  .home-hero-text { padding: 26px 22px; }
  .home-hero h1 { font-size: 32px; }
  .home-main { grid-template-columns: 1fr; }
  .home-filters { display: none; }
  .home-cards, .home-tiles { grid-template-columns: 1fr; }
  .home-sell { flex-wrap: wrap; }
  .home-sell .btn-pill { width: 100%; margin-left: 0; }
  .home-tiles { margin-bottom: 32px; }
}
@media (max-width: 700px) {
  .home-search { padding: 10px 14px; }
  .home-chips { margin-top: 10px; }
  .home-hero h1 { font-size: 28px; }
  .home-hero p { font-size: 15px; margin-bottom: 18px; }
  .home-slogan { font-size: 16px; }
  .btn-pill { padding: 11px 18px; font-size: 14px; }
}

/* Anchor targets clear the sticky header (iOS-friendly) */
html { scroll-padding-top: 88px; }
#how, #recon, #inventory, #about { scroll-margin-top: 88px; }

.home-how, .home-recon {
  width: min(1200px, 92%);
  margin: 36px auto 0;
}
.home-how h2, .home-recon h2 { font-size: 22px; margin-bottom: 6px; }
.home-how .lead, .home-recon .lead {
  color: #6b7a90; font-size: 15px; line-height: 1.5; margin-bottom: 16px; max-width: 680px;
}
.home-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-step {
  background: #f5f8fd;
  border-radius: 14px;
  padding: 18px;
}
.home-step .num {
  width: 32px; height: 32px; border-radius: 10px;
  background: #1f6bff; color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.home-step h3 { font-size: 16px; margin-bottom: 6px; }
.home-step p { font-size: 13px; color: #6b7a90; line-height: 1.45; }
.home-recon {
  margin-bottom: 50px;
  /* Enough height that "Our recon" can scroll up under the sticky header */
  min-height: calc(100vh - 120px);
}
.home-recon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.home-recon-grid article {
  background: #f5f8fd;
  border-radius: 14px;
  padding: 18px;
}
.home-recon-grid b { display: block; font-size: 16px; margin-bottom: 6px; }
.home-recon-grid span { font-size: 13px; color: #6b7a90; line-height: 1.45; }

@media (max-width: 1100px) {
  .home-steps { grid-template-columns: repeat(2, 1fr); }
  .home-recon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .home-how, .home-recon { margin-top: 28px; }
  .home-recon { margin-bottom: 32px; }
}
@media (max-width: 700px) {
  .home-steps, .home-recon-grid { grid-template-columns: 1fr; }
}

.home-about {
  width: min(1200px, 92%);
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
  background: #f5f8fd;
  border-radius: 18px;
  padding: 36px;
}
.home-about h2 { font-size: 22px; margin-bottom: 8px; }
.home-about .lead {
  color: var(--navy, #0b1f4b);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: none;
}
.home-about p {
  color: #6b7a90;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.home-about-copy { display: flex; flex-direction: column; justify-content: center; }
.home-about-ph {
  border-radius: 14px;
  overflow: hidden;
  min-height: 240px;
  background: #eef1f6;
}
.home-about-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .home-about { grid-template-columns: 1fr; margin-bottom: 32px; padding: 24px 20px; }
  .home-about-ph { min-height: 200px; }
}

/* Active nav item (Our mission, etc.) */
.nav a.on, .mobile-nav a.on { color: var(--accent); }

/* ========== Our mission page ========== */
body.mission { background: #fff; }
html:has(body.mission) { background: #fff; }
.ms-wrap { width: min(1200px, 92%); margin: 0 auto; }
.ms-hero {
  width: min(1200px, 92%);
  margin: 18px auto 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  background: #0b1f4b url("../img/mission/mission-keys.jpg") right center / cover no-repeat;
  display: flex;
  align-items: center;
}
.ms-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(11,31,75,.94) 0%, rgba(11,31,75,.82) 38%, rgba(11,31,75,.35) 62%, rgba(11,31,75,.08) 100%);
}
.ms-hero-text {
  position: relative; z-index: 1;
  padding: 56px 48px;
  max-width: 640px;
  color: #fff;
}
.ms-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #8db8ff; margin-bottom: 10px;
}
.ms-slogan {
  font-style: italic; font-weight: 600; color: #ffc629;
  font-size: 18px; margin-bottom: 14px;
}
.ms-hero h1 {
  font-size: 46px; line-height: 1.08; font-weight: 900;
  letter-spacing: -.01em; margin-bottom: 16px; text-transform: uppercase;
}
.ms-hero p {
  font-size: 17px; line-height: 1.6; opacity: .92; max-width: 500px;
}
.ms-cap {
  position: absolute;
  background: rgba(11,31,75,.72); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
}
.ms-hero > .ms-cap { right: 14px; bottom: 14px; z-index: 2; }

.ms-sec { margin: 56px 0 0; }
.ms-sec h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.ms-lede { font-size: 16px; color: #52617a; line-height: 1.55; margin-bottom: 24px; max-width: 640px; }

.ms-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ms-why article { background: #f5f8fd; border-radius: 16px; padding: 24px 22px; min-height: 196px; }
.ms-num { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #1f6bff; margin-bottom: 12px; }
.ms-why b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.ms-why span { font-size: 14px; color: #52617a; line-height: 1.55; }

.ms-promise { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; }
.ms-promise-ph { position: relative; border-radius: 18px; overflow: hidden; min-height: 420px; background: #eef1f6; }
.ms-promise-ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ms-promise-ph .ms-cap { left: 12px; bottom: 12px; }
.ms-plist { display: flex; flex-direction: column; gap: 14px; }
.ms-pi {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid #e3e9f2; border-radius: 14px; padding: 16px;
}
.ms-ck {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: #eaf1ff; color: #1f6bff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; margin-top: 1px;
}
.ms-pi b { display: block; font-size: 16px; margin-bottom: 3px; }
.ms-pi span { font-size: 13.5px; color: #52617a; line-height: 1.5; }

.ms-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ms-shot { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: #eef1f6; margin: 0; }
.ms-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-shot .ms-cap { left: 10px; bottom: 10px; }

.ms-loc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.ms-loc-copy {
  background: #0b1f4b; color: #fff; border-radius: 18px;
  padding: 40px 36px; display: flex; flex-direction: column; justify-content: center;
}
.ms-loc-copy .ms-slogan { margin-bottom: 10px; }
.ms-loc-copy h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; color: #fff; }
.ms-loc-copy p { font-size: 16px; line-height: 1.6; color: #c9d4ea; margin-bottom: 18px; max-width: 420px; }
.ms-addr { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.5; }
.ms-addr span { display: block; font-weight: 500; color: #8db8ff; font-size: 13px; margin-bottom: 4px; }
.ms-loc-ph { border-radius: 18px; overflow: hidden; min-height: 280px; background: #eef1f6; }
.ms-loc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ms-cta {
  margin: 48px 0 0;
  border-radius: 18px;
  padding: 36px 40px;
  background: linear-gradient(120deg, #0b1f4b 0%, #1f6bff 100%);
  color: #fff;
  display: flex; align-items: center; gap: 24px;
}
.ms-cta h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; color: #fff; }
.ms-cta p { font-size: 15px; color: #d4def2; line-height: 1.5; }
.ms-cta .btn-pill { margin-left: auto; flex: none; }

@media (max-width: 900px) {
  .ms-hero {
    min-height: 540px;
    background-position: 72% 15%;
    align-items: flex-end;
  }
  .ms-hero::before {
    background: linear-gradient(180deg, rgba(11,31,75,.12) 0%, rgba(11,31,75,.35) 38%, rgba(11,31,75,.88) 72%, rgba(11,31,75,.94) 100%);
  }
  .ms-hero-text { padding: 28px 22px 32px; }
  .ms-hero > .ms-cap { top: 12px; bottom: auto; right: 12px; }
  .ms-hero h1 { font-size: 30px; }
  .ms-hero p { font-size: 15px; }
  .ms-sec { margin: 40px 0 0; }
  .ms-sec h2 { font-size: 24px; }
  .ms-why { grid-template-columns: 1fr 1fr; }
  .ms-why article { min-height: 0; padding: 18px 16px; }
  .ms-promise, .ms-loc { grid-template-columns: 1fr; }
  .ms-promise-ph { min-height: 240px; }
  .ms-promise-ph img { position: absolute; }
  .ms-strip { grid-template-columns: 1fr 1fr; }
  .ms-loc-copy { padding: 28px 22px; }
  .ms-loc-ph { min-height: 200px; }
  .ms-cta { flex-direction: column; align-items: flex-start; padding: 28px 22px; gap: 18px; }
  .ms-cta .btn-pill { width: 100%; margin-left: 0; }
}
@media (max-width: 500px) {
  .ms-why, .ms-strip { grid-template-columns: 1fr; }
}

/* ========== Inner pages: how / recon / become ========== */
body.pg { background: #fff; }
html:has(body.pg) { background: #fff; }

body.pg .ms-hero,
body.pg .hero-split {
  width: min(1200px, 92%);
  margin: 18px auto 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  color: #fff;
  display: flex;
  align-items: center;
}
body.pg .ms-hero {
  background-color: #0b1f4b;
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}
body.pg .ms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11,31,75,.94) 0%, rgba(11,31,75,.82) 38%, rgba(11,31,75,.35) 62%, rgba(11,31,75,.08) 100%);
}
body.pg .hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: linear-gradient(120deg, #0b1f4b 0%, #1f6bff 100%);
  min-height: 460px;
}
body.pg .hero-text {
  position: relative;
  z-index: 1;
  padding: 56px 48px;
  max-width: 640px;
}
body.pg .hero-split .hero-text { max-width: none; }
body.pg .hero-ph {
  position: relative;
  min-height: 100%;
  background-color: #0b1d4d;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
body.pg .ms-hero h1,
body.pg .hero-split h1 {
  font-size: 46px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
body.pg .ms-hero p,
body.pg .hero-split p {
  font-size: 17px;
  line-height: 1.6;
  opacity: .92;
  max-width: 500px;
}
body.pg .hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
body.pg .hero-ph .ms-cap { right: 12px; bottom: 12px; }

body.pg .wrap { width: min(1200px, 92%); margin: 0 auto; padding-bottom: 56px; }
body.pg .sec { margin: 56px 0 0; }
body.pg .sec h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
body.pg .lede { font-size: 16px; color: #52617a; line-height: 1.55; margin-bottom: 24px; max-width: 640px; }

body.pg .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
body.pg .steps article { background: #f5f8fd; border-radius: 16px; padding: 24px 22px; }
body.pg .steps .num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #1f6bff;
  margin-bottom: 12px;
}
body.pg .steps b,
body.pg .steps h3 { display: block; font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
body.pg .steps span,
body.pg .steps p { font-size: 14px; color: #52617a; line-height: 1.55; }

body.pg .row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 28px;
}
body.pg .row.flip .ph { order: 2; }
body.pg .row .ph {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 340px;
  background-color: #eef1f6;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
body.pg .row .ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
body.pg .row .ph .ms-cap { left: 12px; bottom: 12px; right: auto; }
body.pg .row .copy h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
body.pg .row .copy p { font-size: 16px; color: #52617a; line-height: 1.6; }
body.pg .row .copy .num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #1f6bff;
  margin-bottom: 10px;
}

body.pg .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.pg .duo article { background: #f5f8fd; border-radius: 16px; padding: 28px 24px; }
body.pg .duo .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: #eaf1ff; color: #1f6bff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
body.pg .duo b { display: block; font-size: 18px; margin-bottom: 8px; }
body.pg .duo p { font-size: 14px; color: #52617a; line-height: 1.55; }

body.pg .pi {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid #e3e9f2; border-radius: 14px; padding: 16px;
}
body.pg .grid-pi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.pg .ck {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: #eaf1ff; color: #1f6bff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px; margin-top: 1px;
}
body.pg .pi b { display: block; font-size: 16px; margin-bottom: 3px; }
body.pg .pi span { font-size: 13.5px; color: #52617a; line-height: 1.5; }

body.pg .need { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body.pg .need article { background: #f5f8fd; border-radius: 16px; padding: 24px 22px; }
body.pg .need .num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #1f6bff;
  margin-bottom: 12px;
}
body.pg .need b { display: block; font-size: 17px; margin-bottom: 8px; }
body.pg .need p { font-size: 14px; color: #52617a; line-height: 1.55; }

body.pg .who {
  background: #0b1f4b; color: #fff; border-radius: 18px;
  padding: 36px 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px;
  align-items: center;
}
body.pg .who .ms-slogan { margin-bottom: 10px; }
body.pg .who h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; color: #fff; }
body.pg .who p { font-size: 16px; line-height: 1.6; color: #c9d4ea; max-width: 520px; }
body.pg .who ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
body.pg .who li { font-size: 15px; color: #fff; padding-left: 28px; position: relative; line-height: 1.45; }
body.pg .who li:before { content: "✓"; position: absolute; left: 0; color: #ffc629; font-weight: 800; }

body.pg .faq { border: 1px solid #e3e9f2; border-radius: 16px; overflow: hidden; background: #fff; }
body.pg .faq-item { padding: 20px 24px; border-bottom: 1px solid #eef1f6; }
body.pg .faq-item:last-child { border-bottom: none; }
body.pg .faq-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
body.pg .faq-item p { font-size: 14px; color: #52617a; line-height: 1.6; }
body.pg .faq-item a { color: #1f6bff; }

body.pg .loc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
body.pg .loc-copy {
  background: #0b1f4b; color: #fff; border-radius: 18px;
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
body.pg .loc-copy .ms-slogan { margin-bottom: 10px; }
body.pg .loc-copy h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; color: #fff; }
body.pg .loc-copy p { font-size: 16px; line-height: 1.6; color: #c9d4ea; margin-bottom: 18px; max-width: 420px; }
body.pg .addr { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.5; }
body.pg .addr span { display: block; font-weight: 500; color: #8db8ff; font-size: 13px; margin-bottom: 4px; }
body.pg .loc-ph {
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  background-color: #eef1f6;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.pg .cta {
  margin: 48px 0 0;
  border-radius: 18px;
  padding: 36px 40px;
  background: linear-gradient(120deg, #0b1f4b 0%, #1f6bff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
}
body.pg .cta h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; color: #fff; }
body.pg .cta p { font-size: 15px; color: #d4def2; line-height: 1.5; }
body.pg .cta .btn-pill { margin-left: auto; flex: none; }

body.pg .strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
body.pg .shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: #eef1f6;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
}
body.pg .shot .ms-cap { left: 10px; bottom: 10px; }

@media (max-width: 900px) {
  body.pg .ms-hero {
    min-height: 540px;
    background-position: 72% 15%;
    align-items: flex-end;
  }
  body.pg .ms-hero::before {
    background: linear-gradient(180deg, rgba(11,31,75,.12) 0%, rgba(11,31,75,.35) 38%, rgba(11,31,75,.88) 72%, rgba(11,31,75,.94) 100%);
  }
  body.pg .hero-text { padding: 28px 22px 32px; }
  body.pg .ms-hero > .ms-cap { top: 12px; bottom: auto; right: 12px; }
  body.pg .ms-hero h1,
  body.pg .hero-split h1 { font-size: 30px; }
  body.pg .ms-hero p,
  body.pg .hero-split p { font-size: 15px; }
  body.pg .hero-split { grid-template-columns: 1fr; min-height: 0; }
  body.pg .hero-ph { height: 220px; min-height: 220px; order: -1; }
  body.pg .sec { margin: 40px 0 0; }
  body.pg .sec h2 { font-size: 24px; }
  body.pg .steps { grid-template-columns: 1fr 1fr; }
  body.pg .row,
  body.pg .loc,
  body.pg .who,
  body.pg .duo,
  body.pg .grid-pi,
  body.pg .need { grid-template-columns: 1fr; }
  body.pg .row.flip .ph { order: 0; }
  body.pg .row .ph { min-height: 240px; }
  body.pg .strip { grid-template-columns: 1fr 1fr; }
  body.pg .loc-copy,
  body.pg .who { padding: 28px 22px; }
  body.pg .loc-ph { min-height: 200px; }
  body.pg .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
    gap: 18px;
  }
  body.pg .cta .btn-pill { width: 100%; margin-left: 0; }
}
@media (max-width: 500px) {
  body.pg .steps,
  body.pg .strip,
  body.pg .need { grid-template-columns: 1fr; }
}

/* Desktop / laptop header: keep tabs in one row; collapse to Menu if they cannot fit. */
.topbar { overflow: visible; } /* do not clip the header or phone menu (iOS overflow-x:hidden forces overflow-y:auto) */
.topbar > .container { width: min(1400px, 96%); }
.nav {
  flex: 1 0 auto; /* grow if space, never shrink below the tabs (fitHeaderNav collapses instead) */
  align-items: center;
  gap: 16px;
}
.dealer-chip .dealer-name {
  white-space: nowrap;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}
.apply-btn .apply-short { display: none; }

@media (max-width: 1240px) {
  .apply-btn .apply-long { display: none; }
  .apply-btn .apply-short { display: inline; }
  .topbar-inner { gap: 16px; }
  .nav { gap: 14px; }
  .brand img.logo { height: 40px; }
}

@media (min-width: 901px) {
  .mobile-nav { display: none; }
  .topbar-inner.nav-collapsed .nav { display: none; }
  .topbar-inner.nav-collapsed .menu-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .topbar-inner.nav-collapsed ~ .mobile-nav.open { display: flex; }
  .topbar-inner.nav-collapsed .header-acct { display: none; } /* those links are in the Menu */
  .topbar-inner.actions-collapsed .dealer-chip,
  .topbar-inner.actions-collapsed .header-acct,
  .topbar-inner.actions-collapsed .btn-ghost,
  .topbar-inner.actions-collapsed .btn-accent { display: none; }
}

.header-acct {
  display: flex; gap: 14px; align-items: center;
  font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
  color: #33415c;
}
.header-acct a.on, .header-acct a:hover { color: var(--accent); }
.dealer-chip a.dealer-name { color: inherit; }
@media (max-width: 900px) {
  .header-acct { display: none; }
}
body.phone .header-acct { display: none; }

body.phone .menu-btn { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
body.phone .mobile-nav.open { display: flex; }


/* ============================================================
   Phone / tablet header: same tabs as desktop, always visible.
   ============================================================ */
@media (max-width: 900px) {
  html { scroll-padding-top: 132px; }
  #how, #recon, #inventory { scroll-margin-top: 132px; }

  .topbar { overflow: visible; }
  .topbar .container.topbar-inner,
  .topbar-inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 8px 0 0;
  }
  .topbar .brand img.logo,
  .brand img.logo { height: 32px; }

  /* Public tabs sit on their own row, like the desktop nav, and wrap instead of hiding. */
  .topbar .nav,
  .nav {
    display: flex;
    flex: 1 1 100%;
    order: 5;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0 18px;
    margin: 0;
    padding: 2px 0 6px;
    border-top: 1px solid #e8edf5;
    font-size: 13px;
    font-weight: 600;
    color: #33415c;
    opacity: 1;
  }
  .topbar .nav a,
  .nav a {
    padding: 10px 0;
    margin-right: 0;
    line-height: 1.25;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(31, 107, 255, 0.12);
  }

  .top-actions {
    margin-left: auto;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Login / Apply stay visible like desktop (compact "Apply" label already kicks in under 1240px). */
  .topbar .top-actions .btn-ghost,
  .topbar .top-actions .btn-accent,
  .top-actions .btn-ghost,
  .top-actions .btn-accent {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .topbar .btn-ghost { padding: 0 10px; }

  /* Menu is only needed for signed-in account links (orders, sign out, admin). */
  .topbar .menu-btn,
  .menu-btn { display: none; }
  .topbar.has-drawer-extras .menu-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .top-actions .dealer-chip,
  .header-acct { display: none; }

  .topbar .cart-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    background: #eef4ff;
    border-radius: 10px;
  }
  .topbar .cart-btn .cart-label { display: none; }
  .topbar .cart-btn .cart-icon { display: block; color: #0b1f4b; }

  .mobile-nav {
    background: #fff;
    color: var(--navy);
    border-bottom: 1px solid #e8edf5;
  }
  .mobile-nav.open { display: flex; }

  /* Inventory heading shouldn't squeeze onto one cramped row. */
  .home-inv-head { flex-wrap: wrap; align-items: flex-start; }
}

@media (max-width: 500px) {
  .topbar .nav,
  .nav { gap: 0 20px; font-size: 13px; }
  .topbar .nav a,
  .nav a { padding: 10px 0; }
}

/* body.phone is applied for some in-app widths; keep the same visible nav. */
body.phone .topbar-inner { height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 8px; }
body.phone .nav { display: flex; flex: 1 1 100%; order: 5; width: 100%; flex-wrap: wrap; }
body.phone .top-actions .btn-ghost,
body.phone .top-actions .btn-accent { display: inline-flex; }
body.phone .menu-btn { display: none; }
body.phone .topbar.has-drawer-extras .menu-btn { display: inline-flex; }
body.phone .dealer-chip,
body.phone .header-acct { display: none; }
body.phone .mobile-nav.open { display: flex; }


/* ===== Admin redesign (Nov 18) ===== */
body.admin-app {
  background: var(--off);
  min-height: 100vh;
}
body.admin-app.admin-sheet-open { overflow: hidden; }
body.admin-app .toast { z-index: 300; }
@media (max-width: 899px) {
  body.admin-app .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

.admin-app {
  --admin-tabbar-h: 64px;
  --admin-topbar-h: 56px;
}
.admin-sidebar { display: none; }
.admin-wrap {
  min-height: 100vh;
  padding-bottom: calc(var(--admin-tabbar-h) + env(safe-area-inset-bottom, 0px));
}

.admin-topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--admin-topbar-h);
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.admin-topbar .admin-logo, .admin-sidebar .admin-logo { height: 30px; width: auto; display: block; }
.admin-pill {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(91, 155, 255, 0.14);
  border: 1px solid rgba(91, 155, 255, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
}
.admin-topbar-spacer { flex: 1; }
.admin-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  border: 2px solid rgba(255,255,255,.18);
  flex-shrink: 0;
}
.admin-account { position: relative; }
.admin-account-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; color: var(--navy);
  width: 230px; border-radius: 12px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 10px 12px;
  z-index: 50;
}
.admin-account.open .admin-account-menu { display: block; }
.admin-account-menu strong { display: block; font-size: 13px; }
.admin-account-menu span { display: block; font-size: 11px; color: var(--muted); margin: 2px 0 10px; word-break: break-all; }
.admin-account-menu button {
  display: block; width: 100%; text-align: left;
  font-size: 13px; font-weight: 600; color: var(--accent);
  padding: 6px 0; background: none; border: 0; cursor: pointer;
}

.admin-page { display: none; padding: 14px 14px 22px; }
.admin-page.active { display: block; }
.admin-page[hidden] { display: none !important; }

.admin-legal {
  background: #fff6d8;
  border: 1px solid #e8c56a;
  color: #6a5208;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.45;
}
.admin-legal summary {
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 650;
}
.admin-legal summary::-webkit-details-marker { display: none; }
.admin-legal .legal-ico { width: 18px; height: 18px; flex-shrink: 0; }
.admin-legal summary span { flex: 1; }
.admin-legal .chev { width: 16px; height: 16px; transition: transform .15s ease; opacity: .7; }
.admin-legal[open] .chev { transform: rotate(180deg); }
.admin-legal .legal-body { padding: 0 10px 10px 36px; font-weight: 500; }

.admin-page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.admin-page-titles { flex: 1; min-width: 0; }
.admin-page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.admin-page-head .sub { display: none; color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 2px; }

.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(10, 18, 38, 0.07);
  padding: 12px 12px 11px;
  text-align: left;
  min-height: 76px;
  cursor: pointer;
  font: inherit; color: inherit;
}
.admin-stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; display: block; }
.admin-stat .lbl { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.admin-stat.warn { background: #fff6d8; border-color: #e8c56a; }
.admin-stat.warn .num { color: #8a6508; }
.admin-stat.warn .lbl { color: #6a5208; }
.admin-stat.active { outline: 2px solid var(--accent); outline-offset: 0; }
.admin-stat:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.admin-alert {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1.5px solid #e8c56a;
  border-radius: 12px;
  padding: 10px 10px 10px 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(10, 18, 38, 0.07);
}
.admin-alert p { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.35; min-width: 0; }
.admin-alert p span { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 1px; }
.admin-alert-ico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: #fff6d8; color: #8a6508;
  display: grid; place-items: center;
}
.admin-alert-ico svg { width: 16px; height: 16px; }

.admin-filters {
  display: flex; gap: 6px;
  background: #e8edf6;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 12px;
}
.admin-filters button {
  flex: 1;
  text-align: center;
  padding: 7px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #3d4a5c;
  background: none; border: 0; cursor: pointer;
}
.admin-filters button[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(10,18,38,.12);
}
.admin-filters .count {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  margin-left: 2px;
}
.admin-filters button[aria-pressed="true"] .count { color: var(--accent); }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-car {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(10, 18, 38, 0.07);
  padding: 10px;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px 12px;
}
.admin-car.needs {
  border-color: #e8c56a;
  box-shadow: 0 6px 18px rgba(232, 163, 23, 0.12);
}
.admin-car-photo {
  width: 108px; height: 86px;
  border-radius: 10px;
  overflow: hidden;
  background: #dbe3ef;
}
.admin-car-photo img, .admin-car-photo .ph { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.admin-car-body { min-width: 0; }
.admin-car-title {
  font-size: 14.5px; font-weight: 800; line-height: 1.25;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.admin-car-meta { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.admin-car-meta .vin { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.admin-chip {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
}
.admin-chip-draft { background: #fff6d8; color: #8a6508; }
.admin-chip-live { background: #e8f7f0; color: var(--ok); }
.admin-chip-pending { background: rgba(31,107,255,.10); color: var(--accent); }
.admin-chip-sold { background: #eef2f8; color: #3d4a5c; }
.admin-chip-warn { background: #fff1d6; color: #9a4d00; }
.admin-chip-test { background: #eef2f8; color: #3d4a5c; }
.admin-car-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 8px;
}
.admin-price { font-size: 17px; font-weight: 800; letter-spacing: -.02em; flex: 1; min-width: 0; }
.admin-price small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.admin-price.warn { color: #9a4d00; font-size: 15px; }
.admin-car-actions { display: flex; gap: 8px; flex-shrink: 0; }

.admin-empty {
  text-align: center;
  background: #fff;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px 20px;
  color: var(--muted);
}
.admin-empty-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--off); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 12px;
}
.admin-empty-ico svg { width: 24px; height: 24px; }
.admin-empty h2 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.admin-empty p { font-size: 13px; line-height: 1.45; }
.admin-section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 8px;
}

.admin-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--admin-tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.admin-tabbar a, .admin-tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-size: 10.5px; font-weight: 700;
  color: var(--muted);
  position: relative;
  height: var(--admin-tabbar-h);
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
}
.admin-tabbar a.active, .admin-tabbar button.active { color: var(--accent); }
.admin-tabbar svg { width: 22px; height: 22px; }
.admin-tab-badge {
  position: absolute; top: 8px; transform: translateX(12px);
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 800;
  display: grid; place-items: center;
}
.admin-tab-badge[hidden] { display: none !important; }

.admin-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 18, 38, 0.46);
}
.admin-backdrop[hidden], .admin-sheet[hidden] { display: none !important; }

.admin-sheet {
  position: fixed; z-index: 61;
  left: 0; right: 0; bottom: 0;
  top: 12px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -10px 40px rgba(10,18,38,.25);
}
.admin-sheet-handle {
  width: 36px; height: 4px; border-radius: 999px;
  background: #d3dbe8;
  margin: 8px auto 0;
  flex-shrink: 0;
}
.admin-sheet-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.admin-sheet-head h2 { flex: 1; font-size: 16px; font-weight: 800; line-height: 1.2; min-width: 0; }
.admin-icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--navy);
  background: var(--off);
  border: 0; cursor: pointer; flex-shrink: 0;
}
.admin-icon-btn svg { width: 18px; height: 18px; }
.admin-sheet-body {
  overflow: auto;
  padding: 14px 14px 28px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.admin-hero {
  border-radius: 12px; overflow: hidden;
  background: #dbe3ef;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
}
.admin-hero img, .admin-hero .ph { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.admin-photostrip {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 2px 0 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.admin-photostrip::-webkit-scrollbar { display: none; }
.admin-photostrip button {
  flex: 0 0 56px; height: 44px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent;
  background: #dbe3ef;
  padding: 0; cursor: pointer;
}
.admin-photostrip button.active { border-color: var(--accent); }
.admin-photostrip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-photo-count { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.admin-sheet-body .field input.warn {
  border-color: var(--gold);
  background: #fffdf6;
}
.admin-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-app .switch[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.admin-app #btn-import svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .admin-app { --admin-topbar-h: 0px; }
  .admin-wrap {
    margin-left: 240px;
    padding-bottom: 0;
    min-height: 100vh;
  }
  .admin-topbar, .admin-tabbar { display: none; }
  .admin-sidebar {
    display: flex; flex-direction: column;
    position: fixed; inset: 0 auto 0 0;
    width: 240px;
    background: var(--navy); color: #fff;
    padding: 22px 14px 16px;
    z-index: 40;
  }
  .admin-sidebar .admin-logo { height: 32px; margin-bottom: 6px; }
  .admin-brand-meta { display: flex; align-items: center; gap: 8px; margin: 10px 0 22px; }
  .admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
  .admin-sidebar nav a, .admin-sidebar nav button {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px; font-weight: 600;
    color: rgba(255,255,255,.72);
    background: none; border: 0; cursor: pointer;
    font-family: inherit;
  }
  .admin-sidebar nav a:hover, .admin-sidebar nav button:hover,
  .admin-sidebar nav a.active, .admin-sidebar nav button.active {
    background: rgba(255,255,255,.08);
    color: #fff;
  }
  .admin-sidebar nav a.active, .admin-sidebar nav button.active { color: var(--accent-2); }
  .admin-sidebar nav svg { width: 18px; height: 18px; flex-shrink: 0; }
  .admin-nav-count {
    margin-left: auto;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 11px; font-weight: 800;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px;
    display: grid; place-items: center;
  }
  .admin-nav-count.warn { background: var(--gold); color: var(--navy); }
  .admin-nav-count[hidden] { display: none !important; }
  .admin-grow { flex: 1; }
  .admin-side-foot {
    font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.45;
    padding: 12px 4px 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .admin-side-user {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 4px 10px;
  }
  .admin-side-user .meta { min-width: 0; }
  .admin-side-user strong { display: block; font-size: 13px; color: #fff; line-height: 1.2; }
  .admin-side-user button { color: var(--accent-2); font-weight: 700; font-size: 12px; margin-top: 3px; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }

  .admin-page { padding: 28px 36px 48px; }
  .admin-page-head { margin-bottom: 16px; align-items: flex-end; }
  .admin-page-head h1 { font-size: 26px; }
  .admin-page-head .sub { display: block; }

  .admin-stats { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
  .admin-stat { padding: 16px 16px 14px; min-height: 90px; }
  .admin-stat .num { font-size: 32px; }
  .admin-stat .lbl { font-size: 13px; }

  .admin-filters { width: fit-content; min-width: 360px; }
  .admin-filters button { padding: 8px 16px; flex: none; }

  .admin-car {
    grid-template-columns: 148px 1fr auto;
    gap: 0 16px;
    padding: 12px;
    align-items: center;
  }
  .admin-car-photo { width: 148px; height: 100px; }
  .admin-car-foot {
    grid-column: auto;
    border: 0; margin: 0; padding: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 160px;
  }
  .admin-price { text-align: right; font-size: 20px; }

  .admin-sheet {
    left: auto; right: 0; top: 0; bottom: 0;
    width: min(460px, 100%);
    border-radius: 0;
  }
  .admin-sheet-handle { display: none; }
  /* Wider drawer when the full editor (media) is open so close-ups stay usable */
  .admin-sheet.editor-wide { width: min(560px, 100%); }
}

@media (max-width: 899px) {
  .admin-sheet-body .form-grid { grid-template-columns: 1fr 1fr; }
}


/* ===== Admin card tap + lightbox ===== */
.admin-car {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(31, 107, 255, 0.14);
  touch-action: manipulation;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.admin-car:active, .admin-car.is-pressed {
  transform: scale(0.985);
  background: #eef2f8;
}
.admin-car.needs:active, .admin-car.needs.is-pressed { background: #fff8e8; }
.admin-car-photo { pointer-events: auto; }
.admin-car-actions,
.admin-car-actions .btn,
.admin-car-actions a {
  position: relative;
  z-index: 2;
  cursor: pointer;
  touch-action: manipulation;
}
@media (max-width: 899px) {
  .admin-car-actions .btn,
  .admin-car-actions a.btn {
    min-height: 44px;
    padding: 10px 14px;
  }
}

.admin-hero {
  cursor: zoom-in;
  position: relative;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  -webkit-tap-highlight-color: rgba(31, 107, 255, 0.14);
  touch-action: manipulation;
}
.admin-hero-hint {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(10, 18, 38, 0.72);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 9px; border-radius: 999px;
  pointer-events: none;
}
.admin-photostrip button { cursor: zoom-in; touch-action: manipulation; }

.admin-lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 12, 24, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  touch-action: pan-y;
}
.admin-lightbox[hidden] { display: none !important; }
.admin-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.admin-lightbox-close,
.admin-lightbox-nav {
  position: absolute;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.12);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.admin-lightbox-close {
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border-radius: 12px;
  z-index: 2;
}
.admin-lightbox-close svg,
.admin-lightbox-nav svg { width: 22px; height: 22px; }
.admin-lightbox-prev { left: 8px; }
.admin-lightbox-next { right: 8px; }
.admin-lightbox-nav {
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; border-radius: 12px;
  z-index: 2;
}
.admin-lightbox-count {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  font-size: 13px; font-weight: 700;
  background: rgba(10, 18, 38, 0.55);
  padding: 6px 12px; border-radius: 999px;
}
@media (min-width: 900px) {
  .admin-lightbox-nav { width: 52px; height: 72px; }
}

/* ===== 15-day powertrain warranty (header badge + modal) ===== */
.warranty-badge {
  display: inline-flex; align-items: center; gap: 7px;
  flex-shrink: 0;
  height: 36px; padding: 0 12px 0 10px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #f7e7b8 0%, #e8a317 100%);
  color: #0a1226; font-weight: 800; font-size: 12px; letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 1px 2px rgba(10,18,38,.16);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.warranty-badge:hover, .warranty-badge:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid #0a1226;
  outline-offset: 2px;
}
.warranty-badge .wb-shield { flex: none; }
.warranty-badge .wb-short { display: none; }
.warranty-chip {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 6px 0 2px;
  background: #fff8e8; color: #8a5a00;
  border: 1px solid #f0d48a;
  border-radius: 999px; padding: 4px 9px 4px 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  line-height: 1.2;
}
.warranty-chip svg { flex: none; }
.warranty-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(7, 12, 24, 0.62);
}
.warranty-modal {
  position: fixed; z-index: 121;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 28px));
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #fff;
  color: #0a1226;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(10,18,38,.28);
}
.warranty-modal[hidden], .warranty-backdrop[hidden] { display: none !important; }
.warranty-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: #f4f6fb; color: #0a1226; cursor: pointer;
  display: grid; place-items: center;
}
.warranty-close:hover { background: #e8edf5; }
.warranty-modal-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: #8a5a00; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.warranty-modal-kicker .wb-shield { color: #e8a317; }
.warranty-modal h2 {
  font-size: 28px; font-weight: 900; letter-spacing: -.02em;
  line-height: 1.15; margin: 0 0 10px;
}
.warranty-lead {
  font-size: 18px; font-weight: 700; color: #0a1226;
  margin: 0 0 14px;
}
.warranty-modal p { font-size: 15px; line-height: 1.55; color: #33415c; margin: 0 0 12px; }
.warranty-options {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 8px;
  counter-reset: wopt;
}
.warranty-options li {
  counter-increment: wopt;
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
  background: #f7f9fd; border: 1px solid #e8edf5; border-radius: 14px;
  padding: 12px 14px; font-size: 15px; color: #0a1226;
}
.warranty-options li::before {
  content: counter(wopt);
  width: 36px; height: 36px; border-radius: 10px;
  background: #0a1226; color: #e8a317;
  display: grid; place-items: center; font-weight: 800;
}
.warranty-trust {
  background: #0a1226; color: #fff;
  border-radius: 14px; padding: 14px 16px;
  font-weight: 650; font-size: 15px !important; line-height: 1.45;
  margin: 8px 0 12px !important;
}
.warranty-legal { font-size: 13px !important; color: #52617a; margin-bottom: 0 !important; }
.warranty-legal a { font-weight: 700; }
body.warranty-open { overflow: hidden; }

@media (max-width: 900px) {
  .warranty-badge {
    order: 4;
    flex: 1 1 100%;
    justify-content: center;
    height: 34px;
    margin: 0 0 2px;
    font-size: 12.5px;
  }
  .warranty-badge .wb-full { display: inline; }
  .warranty-badge .wb-short { display: none; }
  html { scroll-padding-top: 176px; }
  #how, #recon, #inventory { scroll-margin-top: 176px; }
  .warranty-modal {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    width: 100%;
    max-height: min(90vh, 760px);
    border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 420px) {
  .warranty-badge .wb-full { display: none; }
  .warranty-badge .wb-short { display: inline; }
}

/* Admin header warranty pill */
.admin-topbar .warranty-badge {
  background: linear-gradient(180deg, #f7e7b8 0%, #e8a317 100%);
  color: #0a1226;
  height: 34px;
  margin-left: 8px;
}
@media (max-width: 600px) {
  .admin-topbar .warranty-badge .wb-full { display: none; }
  .admin-topbar .warranty-badge .wb-short { display: inline; }
}

/* Features & factory equipment */
.feature-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 8px; padding: 0; list-style: none;
}
.feature-list li {
  background: #f4f6fb; border: 1px solid #e3e9f2;
  border-radius: 999px; padding: 6px 11px;
  font-size: 13px; font-weight: 600; color: #0a1226;
}
.features-block { margin: 18px 0 8px; }
.features-block h2, .features-block h3 {
  font-size: 15px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; color: #0a1226; margin: 0 0 10px;
}
.admin-feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.admin-feature-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f4f6fb; border: 1px solid #e3e9f2;
  border-radius: 999px; padding: 5px 8px 5px 11px;
  font-size: 13px; font-weight: 600;
}
.admin-feature-chip button {
  border: 0; background: transparent; color: #52617a;
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  font-size: 16px; line-height: 1;
}
.admin-feature-chip button:hover { background: #e8edf5; color: #0a1226; }
.admin-feature-add { display: flex; gap: 8px; }
.admin-feature-add input { flex: 1; }

/* Public car gallery lightbox */
.car-lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 12, 24, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  touch-action: pan-y;
}
.car-lightbox[hidden] { display: none !important; }
.car-lightbox img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.car-lightbox-close, .car-lightbox-nav {
  position: absolute; display: grid; place-items: center;
  border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12);
  touch-action: manipulation;
}
.car-lightbox-close {
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border-radius: 12px; z-index: 2;
}
.car-lightbox-nav {
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; border-radius: 12px; z-index: 2;
}
.car-lightbox-prev { left: 8px; }
.car-lightbox-next { right: 8px; }
.car-lightbox-count {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  color: #fff; font-size: 13px; font-weight: 700;
  background: rgba(10, 18, 38, 0.55);
  padding: 6px 12px; border-radius: 999px;
}
.gallery-main { cursor: zoom-in; position: relative; }
.gallery-main .hero-hint {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(10, 18, 38, 0.72); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 9px; border-radius: 999px; pointer-events: none;
}
