/* ============================================================
   STOLEN VEHICLES AUSTRALIA — Canstar-style design
   Inter font, light backgrounds, soft shadows, blue accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg:           #f5f7fa;
  --bg2:          #eef1f6;
  --bg3:          #f0f3f8;
  --bg4:          #e8ecf2;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --border-hi:    #cbd5e1;

  /* Text */
  --text:         #1a2332;
  --text-muted:   #64748b;
  --text-dim:     #94a3b8;

  /* Brand blue (Canstar) */
  --blue:         #00A4E4;
  --blue-hi:      #0090cc;
  --blue-dark:    #0078aa;
  --blue-bg:      rgba(0, 164, 228, 0.08);
  --blue-border:  rgba(0, 164, 228, 0.25);

  /* Semantic colors */
  --red:          #e53e3e;
  --red-hi:       #c53030;
  --red-bg:       rgba(229, 62, 62, 0.07);
  --red-border:   rgba(229, 62, 62, 0.2);
  --amber:        #d97706;
  --amber-hi:     #b45309;
  --amber-bg:     rgba(217, 119, 6, 0.08);
  --green:        #059669;
  --green-hi:     #047857;
  --green-bg:     rgba(5, 150, 105, 0.08);

  /* Spacing & shape */
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:       10px;
  --radius-sm:    6px;
  --radius-xs:    4px;
  --radius-full:  999px;
  --shadow:       0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:    0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg:    0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hi); text-decoration: underline; }
::selection { background: var(--blue-bg); color: var(--text); }

/* ── LAYOUT ── */
.container        { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 1.5rem; }
.section          { padding: 2.5rem 0; }
.section-alt      { background: var(--surface); }
.mt-1             { margin-top: 1rem; }
.mt-2             { margin-top: 2rem; }
.text-muted       { color: var(--text-muted); font-size: 0.875rem; }
.text-red         { color: var(--red); }
.text-green       { color: var(--green); }
.text-amber       { color: var(--amber); }
hr                { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── TOP BAR ── */
.agency-bar {
  background: var(--blue);
  padding: 0.4rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.1px;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 0 0.25rem;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-icon { display: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text span:first-child  { font-size: 1rem; font-weight: 700; color: var(--text); }
.logo-text span:last-child   { font-size: 0.68rem; color: var(--blue); font-weight: 500; letter-spacing: 0.2px; }
.nav-links {
  display: flex;
  align-items: stretch;
}
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
  border-bottom-color: var(--blue);
}
.nav-links a.nav-report {
  background: var(--blue);
  color: #fff;
  border-radius: 0;
  font-weight: 600;
  padding: 0 1.25rem;
  font-size: 0.85rem;
  border-bottom-color: transparent !important;
}
.nav-links a.nav-report:hover {
  background: var(--blue-hi);
  color: #fff;
  text-decoration: none;
}
.nav-links a.nav-admin {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 400;
}

/* ── HERO / SEARCH SECTION ── */
.search-command {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f5f7fa 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3.5rem;
}
.search-command-inner {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.sys-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.search-command h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.search-command .sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.search-form-hero {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form-hero:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 164, 228, 0.15), var(--shadow-md);
}
.search-form-hero .input-lg {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0.95rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  outline: none;
  font-family: var(--sans);
}
.search-form-hero .input-lg::placeholder {
  color: var(--text-dim);
  letter-spacing: 1px;
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
}
.search-form-hero .btn-search {
  padding: 0 1.75rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--sans);
  transition: background 0.15s;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.search-form-hero .btn-search:hover { background: var(--blue-hi); }
.search-hint {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.search-hint span {
  display: inline-block;
  margin: 0 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ── STAT TICKER BAR ── */
.ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.ticker-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ticker-cell {
  padding: 1.1rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ticker-cell:last-child { border-right: none; }
.ticker-val {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.ticker-val.c-red    { color: var(--red); }
.ticker-val.c-green  { color: var(--green); }
.ticker-val.c-amber  { color: var(--amber); }
.ticker-lbl {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── SECTION HEADERS ── */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── HOW IT WORKS — STEPS GRID ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 1.5px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
}
.step-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── WHY SVA — TRUST GRID ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.trust-card:hover { box-shadow: var(--shadow-md); }
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
}
.trust-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.trust-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── DARK STATS BANNER ── */
.section-dark {
  background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 100%);
  padding: 3.5rem 0;
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-sub   { color: rgba(255,255,255,0.7); }
.big-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.big-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.big-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}
.big-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

/* ── STATE MINI GRID ── */
.state-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.state-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.state-mini-card:hover {
  border-color: var(--blue);
  background: var(--blue-bg);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,164,228,0.12);
}
.state-abbr {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.state-name-sm {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
}

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  transition: color 0.15s;
}
.faq-question:hover { color: var(--blue); }
.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}
.faq-open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.faq-open .faq-answer { max-height: 300px; padding-bottom: 1.25rem; }

/* ── CTA SECTION ── */
.section-cta {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-top: 1px solid var(--blue-border);
  padding: 3.5rem 0;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card + .card     { margin-top: 1rem; }
.card h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.narrow-card { max-width: 480px; margin: 0 auto; }

/* ── PAGE HEADER ── */
.page-header {
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.page-header-inner { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.page-title  { font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.page-crumb  { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.3rem; }
.page-crumb a { color: var(--text-dim); }
.page-crumb a:hover { color: var(--blue); text-decoration: none; }
.page-sub    { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* ── STATUS LABELS ── */
.status-stolen    { color: var(--red); }
.status-recovered { color: var(--green); }
.status-invest    { color: var(--amber); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-stolen        { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red-border); }
.badge-recovered     { background: var(--green-bg);  color: var(--green); border: 1px solid rgba(5,150,105,0.25); }
.badge-investigating { background: var(--amber-bg);  color: var(--amber); border: 1px solid rgba(217,119,6,0.25); }
.badge-outline       { background: var(--bg3);       color: var(--text-muted); border: 1px solid var(--border); }
.badge-lg            { font-size: 0.72rem; padding: 0.22rem 0.75rem; }

/* ── PLATE ROWS ── */
.reg-table { display: flex; flex-direction: column; }
.reg-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.reg-row:last-child { border-bottom: none; }
.reg-plate {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 2px;
  min-width: 88px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-xs);
  text-align: center;
  text-transform: uppercase;
  font-family: var(--sans);
}
.reg-plate.plate-stolen { border-color: var(--red-border); color: var(--red); background: var(--red-bg); }
.reg-meta  { flex: 1; color: var(--text-muted); font-size: 0.82rem; }
.reg-state { font-size: 0.78rem; color: var(--text-dim); min-width: 36px; font-weight: 600; }
.reg-date  { font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; }

/* ── RESULT PANEL ── */
.result-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.result-panel-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.result-panel.result-stolen      .result-panel-header { border-left: 4px solid var(--red);   background: var(--red-bg); }
.result-panel.result-clear       .result-panel-header { border-left: 4px solid var(--green); background: var(--green-bg); }
.result-panel.result-investigating .result-panel-header { border-left: 4px solid var(--amber); background: var(--amber-bg); }
.result-plate-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.result-panel.result-stolen .result-plate-num { color: var(--red); }
.result-meta-block { flex: 1; }
.result-status-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.result-status-value { font-size: 0.95rem; font-weight: 700; }
.result-panel-body { padding: 1.5rem; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.field-item { display: flex; flex-direction: column; gap: 0.2rem; }
.field-key {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field-val { font-size: 0.875rem; color: var(--text); font-weight: 500; }

/* ── ALERTS ── */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-left: 3px solid;
}
.alert-danger  { background: var(--red-bg);   color: var(--text); border-left-color: var(--red); }
.alert-danger strong { color: var(--red-hi); }
.alert-success { background: var(--green-bg); color: var(--text); border-left-color: var(--green); }
.alert-success strong { color: var(--green-hi); }
.alert-info    { background: var(--blue-bg);  color: var(--text); border-left-color: var(--blue); }
.alert-info a  { color: var(--blue); }

/* ── SIGHTING LOG ── */
.sighting-log { display: flex; flex-direction: column; }
.sighting-entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  align-items: flex-start;
}
.sighting-entry:last-child { border-bottom: none; }
.sighting-ts   { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; min-width: 110px; font-weight: 400; }
.sighting-body { flex: 1; }
.sighting-loc  { font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.sighting-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.25rem; }
.sighting-note { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.25rem; }
.sighting-plate-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── FORMS ── */
.form-section { margin-bottom: 1.75rem; }
.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.85rem; }
.form-group { margin-bottom: 0.85rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.input {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.62rem 0.85rem;
  font-size: 0.875rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 164, 228, 0.12);
}
select.input { cursor: pointer; }
textarea.input { resize: vertical; }
.input-mono {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 1rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--sans);
  letter-spacing: 0.1px;
}
.btn-primary         { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover   { background: var(--blue-hi); border-color: var(--blue-hi); text-decoration: none; color: #fff; }
.btn-danger          { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover    { background: var(--red-hi); border-color: var(--red-hi); text-decoration: none; color: #fff; }
.btn-success         { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover   { background: var(--green-hi); text-decoration: none; color: #fff; }
.btn-outline         { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-outline:hover   { color: var(--blue); border-color: var(--blue); text-decoration: none; background: var(--blue-bg); }
.btn-ghost           { background: transparent; color: var(--text-dim); border-color: transparent; }
.btn-ghost:hover     { color: var(--text-muted); text-decoration: none; }
.btn-lg              { padding: 0.78rem 1.6rem; font-size: 0.95rem; border-radius: var(--radius); }
.btn-sm              { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
.btn-full            { width: 100%; display: flex; }
.btn-group           { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

/* ── LAYOUT HELPERS ── */
.two-col        { display: grid; grid-template-columns: 1fr 1fr;    gap: 1.5rem; align-items: start; }
.two-col-report { display: grid; grid-template-columns: 2fr 1fr;    gap: 1.5rem; align-items: start; }

/* ── SEARCH BAR ROW ── */
.search-bar-row {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 164, 228, 0.12);
}
.search-bar-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  font-weight: 700;
  font-family: var(--sans);
}
.search-bar-row input::placeholder {
  color: var(--text-dim);
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: none;
}
.search-bar-row .btn {
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 1.2rem;
}

/* ── DASHBOARD METRICS ── */
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.dash-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow);
}
.dash-metric-val { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--text); }
.dash-metric-val.c-red    { color: var(--red); }
.dash-metric-val.c-green  { color: var(--green); }
.dash-metric-val.c-amber  { color: var(--amber); }
.dash-metric-lbl { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); }

/* ── ADMIN METRICS ── */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.admin-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow);
}
.admin-metric-val { font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--text); }
.admin-metric-val.c-red { color: var(--red); }
.admin-metric-lbl { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

/* ── DATA TABLE ── */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--bg);
}
.data-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg3); }
.row-stolen   td { background: var(--red-bg); }
.row-recovered td { background: var(--green-bg); }
.col-mono   { font-weight: 700; letter-spacing: 1.5px; font-size: 0.875rem; text-transform: uppercase; }
.col-mono.c-red { color: var(--red); }

/* ── API BLOCK ── */
.api-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 0.65rem 0;
}
.api-block code {
  display: block;
  font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.api-block code.c-key { color: var(--blue); }

/* ── INFO LIST ── */
.info-list { list-style: none; }
.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before {
  content: "\2022";
  color: var(--text-dim);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── FEATURE LIST ── */
.feature-list { list-style: none; margin: 0.65rem 0; }
.feature-list li {
  padding: 0.3rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}
.feature-list li::before {
  content: "\2713";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── STEPS (legacy, for other pages) ── */
.steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.step  { display: flex; gap: 0.85rem; font-size: 0.875rem; }
.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--blue-bg);
  border: 1.5px solid var(--blue-border);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.step p        { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.1rem; }
.step strong   { color: var(--text); }

/* ── IMAGE GALLERY ── */
.image-gallery { display: flex; gap: 0.65rem; flex-wrap: wrap; margin: 0.85rem 0; }
.vehicle-img   { width: 190px; height: 140px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ── STAT GRID (states/statistics pages) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--text); }

/* ── PRICING CARDS ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,164,228,0.1), var(--shadow); }
.pricing-price { font-size: 1.75rem; font-weight: 800; color: var(--text); margin: 0.5rem 0; }
.pricing-card ul { list-style: none; margin: 1rem 0; }
.pricing-card ul li {
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}
.pricing-card ul li::before { content: "\2713"; color: var(--blue); margin-right: 0.5rem; font-weight: 700; }

/* ── STORY CARDS ── */
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.story-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--blue); text-decoration: none; }

/* Compat overrides for old footer markup */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 1.75rem 0; margin-top: auto; }
.footer-grid  { display: none; }
.footer-bottom { font-size: 0.78rem; color: var(--text-dim); }
.footer-copy  { margin-top: 0.5rem; }
.footer-disclaimer { font-size: 0.72rem; color: var(--text-dim); line-height: 1.5; }
.footer-brand, .footer-desc, .footer-col h4, .footer-col ul { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .trust-grid       { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .admin-metrics    { grid-template-columns: repeat(3, 1fr); }
  .big-stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .steps-grid       { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .two-col, .two-col-report { grid-template-columns: 1fr; }
  .ticker-inner              { grid-template-columns: repeat(2, 1fr); }
  .dash-metrics              { grid-template-columns: 1fr 1fr; }
  .admin-metrics             { grid-template-columns: repeat(2, 1fr); }
  .search-command            { padding: 2.5rem 0 2rem; }
  .search-command h1         { font-size: 1.6rem; }
  .trust-grid                { grid-template-columns: 1fr 1fr; }
  .steps-grid                { grid-template-columns: 1fr; }
  .result-panel-header       { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .result-plate-num          { font-size: 1.75rem; }
  .nav-links a               { padding: 0 0.6rem; font-size: 0.78rem; }
  .nav-links a.nav-admin     { display: none; }
  .state-mini-grid           { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .ticker-inner     { grid-template-columns: 1fr 1fr; }
  .dash-metrics     { grid-template-columns: 1fr; }
  .admin-metrics    { grid-template-columns: 1fr 1fr; }
  .big-stats-grid   { grid-template-columns: 1fr 1fr; }
  .trust-grid       { grid-template-columns: 1fr; }
  .state-mini-grid  { grid-template-columns: repeat(4, 1fr); }
  .search-form-hero .btn-search { padding: 0 1rem; font-size: 0.82rem; }
}

/* ============================================================
   HOW IT WORKS — Step Cards
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--green-bg);
  border-radius: 50%;
  color: var(--green-hi);
}
.step-card-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.step-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

/* ============================================================
   WHY SVA — Trust Cards
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.trust-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.trust-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: var(--blue-bg);
  border-radius: 50%;
  color: var(--green-hi);
}
.trust-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================================
   BIG STATS — Dark Section
   ============================================================ */
.big-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.big-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.big-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.big-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   STATE MINI GRID
   ============================================================ */
.state-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.state-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.state-mini-card:hover {
  border-color: var(--green-hi);
  background: var(--green-bg);
  text-decoration: none;
}
.state-abbr {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.state-name-sm {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ============================================================
   RESPONSIVE — New Sections
   ============================================================ */
@media (max-width: 768px) {
  .steps-grid          { grid-template-columns: 1fr; }
  .trust-grid          { grid-template-columns: 1fr 1fr; }
  .big-stats-grid      { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .big-stat-num        { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .trust-grid          { grid-template-columns: 1fr; }
  .big-stats-grid      { grid-template-columns: 1fr 1fr; }
  .state-mini-grid     { grid-template-columns: repeat(4, 1fr); }
}
