/* ============================================================
   Lane A "Official" — shared application styles
   Flat surfaces · 8px radii · institutional grid
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { line-height: var(--lh-tight); margin: 0 0 var(--sp-3); color: var(--c-primary-dark); font-weight: 800; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-3); }

a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.page { padding-block: var(--sp-6) var(--sp-8); min-height: 60vh; }

.page-head { margin-bottom: var(--sp-6); }
.page-head .eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-gold-deep);
  border: 1px solid var(--c-gold);
  background: var(--c-gold-soft);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  margin-bottom: var(--sp-3);
}
.page-head p.lead { color: var(--c-text-muted); max-width: 62ch; }

.section { margin-top: var(--sp-8); }
.section-title {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.section-title::after {
  content: "";
  flex: 1; height: 2px;
  background: linear-gradient(to var(--dir-x, left), var(--c-gold), transparent);
}
[dir="rtl"] .section-title::after { --dir-x: left; }
[dir="ltr"] .section-title::after { --dir-x: right; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-primary-dark);
  color: var(--c-white);
  box-shadow: var(--shadow-2);
}
.header-top {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-2);
}
.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--c-white); text-decoration: none; min-width: 0;
}
.brand:hover { color: var(--c-white); }
.brand-emblem { flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: var(--fs-md); font-weight: 800; white-space: nowrap; }
.brand-text small { font-size: var(--fs-xs); color: #cfd9d3; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }

.toggle-btn {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  transition: background var(--dur) ease, border-color var(--dur) ease;
}
.toggle-btn:hover { background: rgba(255, 255, 255, 0.22); }
.toggle-btn[aria-pressed="true"] {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-primary-dark);
}

.menu-btn { display: none; }

.site-nav {
  background: var(--c-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.site-nav .container { display: flex; gap: var(--sp-1); flex-wrap: wrap; }
.site-nav a {
  color: #e8efe9;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 10px 12px;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--c-gold);
}
.site-nav a.nav-cta {
  background: var(--c-gold);
  color: var(--c-primary-dark);
  border-radius: var(--radius);
  border-bottom: none;
  margin-inline-start: auto;
  padding: 8px 18px;
}
.site-nav a.nav-cta:hover { background: #caa64d; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--sp-8);
  background: var(--c-primary-dark);
  color: #cfd9d3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.2fr;
  gap: var(--sp-6);
  padding-block: var(--sp-7) var(--sp-6);
}
.site-footer h4 {
  color: var(--c-white);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-3);
}
.site-footer a { color: #cfd9d3; text-decoration: none; }
.site-footer a:hover { color: var(--c-gold); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); color: #fff; }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.footer-contact li { margin-bottom: var(--sp-2); }
.footer-contact .lbl { color: var(--c-gold); font-weight: 700; display: inline-block; min-width: 92px; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: var(--sp-4);
  font-size: var(--fs-xs);
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  justify-content: space-between;
}
.footer-note { color: var(--c-gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover:not(:disabled) { background: var(--c-primary-dark); }
.btn-gold { background: var(--c-gold); color: var(--c-primary-dark); border-color: var(--c-gold); }
.btn-gold:hover:not(:disabled) { background: #caa64d; }
.btn-outline {
  background: transparent; color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover:not(:disabled) { background: var(--c-primary-soft); }
.btn-maroon { background: var(--c-maroon); color: #fff; border-color: var(--c-maroon); }
.btn-maroon:hover:not(:disabled) { background: var(--c-maroon-dark); }
.btn-ghost {
  background: transparent; color: var(--c-primary-dark);
  border-color: var(--c-border-strong);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--c-primary); }
.btn-sm { padding: 6px 14px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.card-pad { padding: var(--sp-5); }
.card-flat { box-shadow: none; }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-muted);
}
.chip-ok { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary-dark); }
.chip-warn { background: var(--c-warn-soft); border-color: var(--c-gold); color: var(--c-warn); }
.chip-danger { background: var(--c-danger-soft); border-color: var(--c-maroon); color: var(--c-maroon); }
.chip-gold { background: var(--c-gold-soft); border-color: var(--c-gold); color: var(--c-gold-deep); }

.badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}
.badge-gold { background: var(--c-gold); color: var(--c-primary-dark); }
.badge-green { background: var(--c-primary); color: #fff; }
.badge-maroon { background: var(--c-maroon); color: #fff; }
.badge-gray { background: var(--c-surface-2); color: var(--c-text-muted); }

/* ---------- Forms ---------- */
label { font-weight: 700; font-size: var(--fs-sm); display: block; margin-bottom: var(--sp-1); }
.field { margin-bottom: var(--sp-4); }
.input, select.input, textarea.input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.input:focus { border-color: var(--c-primary); }
.hint { font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: var(--sp-1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card .rc-box {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  height: 100%;
  transition: border-color var(--dur) ease, background var(--dur) ease;
}
.radio-card .rc-box strong { display: block; margin-bottom: 2px; color: var(--c-primary-dark); }
.radio-card .rc-box small { color: var(--c-text-muted); font-size: var(--fs-xs); }
.radio-card input:checked + .rc-box {
  border: 2px solid var(--c-primary);
  background: var(--c-primary-soft);
  padding: calc(var(--sp-3) - 1px) calc(var(--sp-4) - 1px);
}
.radio-card input:focus-visible + .rc-box { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--c-surface);
}
table.data th, table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  text-align: start;
  white-space: nowrap;
}
table.data th {
  background: var(--c-surface-2);
  color: var(--c-primary-dark);
  font-weight: 800;
}
table.data tr:hover td { background: var(--c-primary-soft); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Toasts ---------- */
#toast-root {
  position: fixed;
  bottom: var(--sp-5);
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: 100;
  pointer-events: none;
}
.toast {
  background: var(--c-primary-dark);
  color: #fff;
  border-inline-start: 4px solid var(--c-gold);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 700;
  box-shadow: var(--shadow-2);
  animation: toast-in var(--dur) ease;
  max-width: min(92vw, 560px);
  text-align: center;
}
.toast.toast-warn { border-inline-start-color: var(--c-maroon); }
@keyframes toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Plate SVG ---------- */
.plate-svg { width: 100%; height: auto; }
.plate-shadow { filter: drop-shadow(0 2px 4px rgba(15, 46, 36, 0.25)); }

/* ---------- Countdown ---------- */
.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.countdown.is-soon { color: var(--c-maroon); }
.countdown.is-ended { color: var(--c-text-muted); }

/* ---------- Landing: hero ---------- */
.hero {
  position: relative;
  background: var(--c-primary-dark);
  color: #fff;
  overflow: hidden;
  /* Shared asset (assets/img/banner-16x9.jpg) absent in this lane's repo —
     CSS fallback per spec. If the file appears, it composites under the
     gradient scrim automatically (missing images render nothing, no error). */
  background-image:
    linear-gradient(180deg, rgba(15, 46, 36, 0.2), rgba(15, 46, 36, 0.85)),
    url(assets/img/banner-16x9.jpg) center / cover no-repeat,
    repeating-linear-gradient(135deg, #143c30 0 26px, #12362b 26px 52px);
  border-bottom: 4px solid var(--c-gold);
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  top: 50%;
  width: 460px; height: 460px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, transparent 58%, rgba(184, 150, 62, 0.18) 59% 60%, transparent 61%),
    radial-gradient(circle, transparent 34%, rgba(184, 150, 62, 0.14) 35% 36%, transparent 37%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-8);
  max-width: 720px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 46, 36, 0.3), rgba(15, 46, 36, 0.85));
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(184, 150, 62, 0.18);
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  padding: 3px 12px;
  margin-bottom: var(--sp-4);
}
.hero h1 { color: #fff; font-size: var(--fs-hero); margin-bottom: var(--sp-4); }
.hero p.lead {
  font-size: var(--fs-lg);
  color: #d8e2dc;
  max-width: 56ch;
  margin-bottom: var(--sp-5);
}
.hero-ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- Landing: stats bar ---------- */
.stats-bar {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
  box-shadow: var(--shadow-1);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  padding-block: var(--sp-5);
}
.stat { text-align: center; }
.stat .stat-num {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
}
.stat .stat-lbl { font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-muted); }

/* ---------- Steps ---------- */
.step-card { position: relative; padding: var(--sp-5); }
.step-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff;
  font-size: var(--fs-xl);
  font-weight: 900;
  margin-bottom: var(--sp-3);
}
.step-card:nth-child(2) .step-num { background: var(--c-maroon); }
.step-card:nth-child(3) .step-num { background: var(--c-gold-deep); }

/* ---------- Auction / listing cards ---------- */
.auction-card { display: flex; flex-direction: column; }
.auction-card .ac-plate { padding: var(--sp-4) var(--sp-4) 0; }
.auction-card .ac-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.ac-gov { font-size: var(--fs-xs); font-weight: 800; color: var(--c-gold-deep); letter-spacing: 0.05em; }
.ac-num { font-size: var(--fs-xl); font-weight: 900; color: var(--c-primary-dark); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.ac-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-top: auto; }
.ac-bid { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); border-top: 1px solid var(--c-border); padding-top: var(--sp-2); margin-top: var(--sp-2); }
.ac-bid .lbl { font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 700; }
.ac-bid .val { font-weight: 900; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.ac-time { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }

.watch-btn {
  flex: 0 0 auto;
  background: none; border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-pill);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--c-text-muted);
  transition: all var(--dur) ease;
}
.watch-btn:hover { border-color: var(--c-gold); color: var(--c-gold-deep); }
.watch-btn[aria-pressed="true"] { background: var(--c-gold-soft); border-color: var(--c-gold); color: var(--c-gold-deep); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: var(--sp-3);
  align-items: end;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.filter-bar .field { margin-bottom: 0; }
.filter-count { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.filter-count strong { color: var(--c-primary-dark); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.filter-chip {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  cursor: pointer;
  transition: all var(--dur) ease;
}
.filter-chip:hover { border-color: var(--c-primary); }
.filter-chip[aria-pressed="true"] {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--c-text-muted);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  background: var(--c-surface);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--c-maroon);
  color: #fff;
  border-block: 4px solid var(--c-gold);
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap;
  padding-block: var(--sp-6);
}
.cta-band h2 { color: #fff; margin-bottom: var(--sp-1); }
.cta-band p { color: #f0d3d7; margin: 0; }

/* ---------- Auction detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-6); align-items: start; }
.detail-plate {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.detail-plate .plate-svg { max-width: 560px; margin-inline: auto; }
.car-mock {
  background: linear-gradient(180deg, #dfe7e2 0%, #cfd8d2 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-top: var(--sp-5);
}
.car-mock svg { width: 100%; max-width: 620px; margin-inline: auto; }
.car-mock .cap { text-align: center; font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: var(--sp-2); }

.view-ctl {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.view-ctl .ctl-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.view-ctl .ctl-label { font-weight: 800; font-size: var(--fs-sm); }
.seg { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.seg-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit; font-weight: 700; font-size: var(--fs-sm);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.seg-btn:hover { border-color: var(--c-gold); }
.seg-btn.is-on {
  background: var(--c-gold);
  color: #3d2f0a;
  border-color: var(--c-gold);
}
.seg-btn .seg-mm {
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}
.view-ctl .hint { margin: 0; font-size: var(--fs-xs); color: var(--c-text-muted); }

.bid-box {
  margin-top: var(--sp-5);
  border: 2px solid var(--c-gold);
  border-radius: var(--radius);
  background: var(--c-surface);
  padding: var(--sp-5);
}
.bid-box h3 { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.bid-current {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: var(--sp-3);
  background: var(--c-primary-soft);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.bid-current .num { font-size: var(--fs-xl); font-weight: 900; color: var(--c-primary-dark); }
.bid-row { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); align-items: end; }

.proxy-box {
  margin-top: var(--sp-4);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  padding: var(--sp-4);
  background: var(--c-surface-2);
}
.proxy-box .proxy-status { font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary-dark); margin-bottom: var(--sp-2); }

.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li {
  display: flex; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.ladder li:last-child { border-bottom: none; }
.ladder .who { font-weight: 800; color: var(--c-primary); }
.ladder .when { color: var(--c-text-muted); font-size: var(--fs-xs); }

.inc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.inc-table th, .inc-table td { padding: 8px 10px; border-bottom: 1px solid var(--c-border); text-align: start; }
.inc-table th { background: var(--c-surface-2); }

.rules-list { list-style: none; margin: 0; padding: 0; }
.rules-list li {
  padding: var(--sp-3) 0 var(--sp-3) calc(var(--sp-3) + 14px);
  position: relative;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.rules-list li:last-child { border-bottom: none; }
.rules-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--c-gold-deep);
  font-weight: 900;
}
.rule-anti {
  border: 1px solid var(--c-gold);
  background: var(--c-gold-soft);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
}
.rule-anti strong { color: var(--c-gold-deep); display: block; margin-bottom: 2px; }

.deposit-badge {
  display: flex; align-items: center; gap: var(--sp-2);
  border: 1px solid var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.deposit-badge.is-bad { border-color: var(--c-maroon); background: var(--c-danger-soft); color: var(--c-maroon); }

/* ---------- Governorate directory ---------- */
.gov-card { display: block; text-decoration: none; color: inherit; }
.gov-card .gc-body { padding: var(--sp-4); }
.gov-card h3 { margin-bottom: var(--sp-1); }
.gov-card .gc-count { font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 700; }
.gov-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-2); }
.gov-banner {
  background: var(--c-primary-dark);
  color: #fff;
  border-radius: var(--radius);
  border-inline-start: 6px solid var(--c-gold);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.gov-banner h1 { color: #fff; margin-bottom: var(--sp-1); }
.gov-banner p { margin: 0; color: #cfd9d3; }

/* ---------- Marketplace ---------- */
.mode-badge { font-size: var(--fs-xs); font-weight: 800; padding: 3px 10px; border-radius: var(--radius-sm); }
.mode-fixed { background: var(--c-primary-soft); color: var(--c-primary-dark); border: 1px solid var(--c-primary); }
.mode-auction { background: var(--c-gold-soft); color: var(--c-gold-deep); border: 1px solid var(--c-gold); }
.mode-offer { background: var(--c-danger-soft); color: var(--c-maroon); border: 1px solid var(--c-maroon); }
.listing-price { font-size: var(--fs-lg); font-weight: 900; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.listing-end { font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 700; }
.offer-form { margin-top: var(--sp-3); border-top: 1px dashed var(--c-border-strong); padding-top: var(--sp-3); }

/* ---------- Tools ---------- */
.tool-panel { padding: var(--sp-6); }
.tool-result {
  margin-top: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface-2);
  padding: var(--sp-4);
}
.score-row {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.score-row:last-child { border-bottom: none; }
.score-row .pts { font-weight: 800; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.score-row.is-off { color: var(--c-text-muted); }
.score-row.is-off .pts { color: var(--c-border-strong); }
.tier-line { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }

/* ---------- Packages ---------- */
.pkg-plates { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0; }
.pkg-plates span {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  font-size: var(--fs-sm);
}
.pkg-price { font-size: var(--fs-xl); font-weight: 900; color: var(--c-maroon); font-variant-numeric: tabular-nums; margin-bottom: var(--sp-3); }

/* ---------- Gift certificate ---------- */
.gift-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--sp-6); align-items: start; }
.certificate {
  position: relative;
  background: #fdfbf4;
  border: 2px solid var(--c-gold);
  outline: 1px solid var(--c-border-strong);
  outline-offset: 6px;
  border-radius: var(--radius);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
}
.certificate::before, .certificate::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--c-gold);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.cert-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--c-primary-dark);
  margin-bottom: var(--sp-1);
}
.cert-sub { color: var(--c-gold-deep); font-weight: 700; letter-spacing: 0.14em; font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.cert-name {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--c-maroon);
  border-bottom: 2px solid var(--c-gold);
  display: inline-block;
  min-width: 260px;
  padding: 0 var(--sp-4) var(--sp-1);
  margin-bottom: var(--sp-4);
  word-break: break-word;
}
.cert-plate { max-width: 380px; margin: var(--sp-5) auto; }
.cert-msg { color: var(--c-text-muted); font-size: var(--fs-sm); font-style: italic; margin-top: var(--sp-3); }
.cert-foot {
  margin-top: var(--sp-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--c-text-muted);
}
.cert-seal { flex: 0 0 auto; }

/* ---------- Results dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.dash-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-gold);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.dash-card .lbl { font-size: var(--fs-xs); font-weight: 800; color: var(--c-text-muted); margin-bottom: var(--sp-1); }
.dash-card .val { font-size: var(--fs-lg); font-weight: 900; color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }

.bar-chart { display: flex; flex-direction: column; gap: var(--sp-2); }
.bar-row { display: grid; grid-template-columns: 140px 1fr 110px; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); }
.bar-track { background: var(--c-surface-2); border-radius: var(--radius-sm); height: 18px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-gold)); border-radius: var(--radius-sm); }
.bar-val { font-weight: 800; color: var(--c-primary-dark); font-variant-numeric: tabular-nums; text-align: end; }

/* ---------- Stepper (register) ---------- */
.stepper { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.stepper .st {
  display: flex; align-items: center; gap: var(--sp-2);
  font-weight: 800; font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.stepper .st .st-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--c-border-strong);
  background: var(--c-surface);
  font-weight: 900;
}
.stepper .st.is-active { color: var(--c-primary-dark); }
.stepper .st.is-active .st-num { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.stepper .st.is-done .st-num { border-color: var(--c-gold); background: var(--c-gold); color: var(--c-primary-dark); }
.stepper .st-line { flex: 1; min-width: 24px; height: 2px; background: var(--c-border); align-self: center; }

.done-panel {
  text-align: center;
  padding: var(--sp-8);
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  background: var(--c-primary-soft);
}
.done-panel .seal { margin: 0 auto var(--sp-4); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--c-text-muted); }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.back-link:hover { color: var(--c-primary-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .gift-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid rgba(255,255,255,0.4);
    color: #fff; border-radius: var(--radius);
    width: 40px; height: 40px; cursor: pointer;
  }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav .container { flex-direction: column; gap: 0; padding-block: var(--sp-2); }
  .site-nav a { border-bottom: 1px solid rgba(255,255,255,0.12); padding-block: 12px; }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--c-gold); }
  .site-nav a.nav-cta { margin: var(--sp-2) 0; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 96px 1fr 84px; }
  .hero-inner { padding-block: var(--sp-7); }
  .brand-text small { display: none; }
  .bid-row { grid-template-columns: 1fr; }
  .cert-foot { justify-content: center; text-align: center; }
}

/* PO credit line in footer bar */
.footer-credit{font-size:var(--fs-sm,14px);font-weight:700;letter-spacing:.2px}
.footer-credit a{color:inherit;text-decoration:underline;text-underline-offset:3px}
[dir="rtl"] .footer-credit,[dir="rtl"] .footer-credit a{direction:ltr;unicode-bidi:isolate;font-family:"Cairo",sans-serif}

/* ---- PO mobile directive: plates a bit smaller, comfortable margins on phones ---- */
@media (max-width: 720px) {
  .container{padding-inline:14px}
  .card{padding:14px}
  .plate-svg{width:92%;margin-inline:auto}
  .detail-plate .plate-svg{max-width:none;width:96%}
  .car-mock svg{max-width:96%}
}

/* ---- PO directive: home-page section banners (gift + family) ---- */
.promo-banner{display:block;position:relative;border-radius:var(--r-lg,16px);overflow:hidden;color:#fff;text-decoration:none;margin-bottom:var(--sp-5,28px);border:1px solid rgba(184,150,62,.35)}
.promo-banner .promo-bg{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .5s ease}
.promo-banner:hover .promo-bg{transform:scale(1.04)}
.promo-banner .promo-inner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px 30px;min-height:150px;background:linear-gradient(90deg,#0f2e24 55%,rgba(15,46,36,.78))}
[dir="rtl"] .promo-banner .promo-inner{background:linear-gradient(270deg,#0f2e24 55%,rgba(15,46,36,.78))}
.promo-kicker{display:inline-block;font-size:var(--fs-xs,12px);font-weight:800;letter-spacing:.6px;color:#e9c46a;background:rgba(184,150,62,.14);border:1px solid rgba(233,196,106,.55);padding:3px 10px;border-radius:999px;margin-bottom:10px}
/* WCAG AA pass — PO design directive: headings must not inherit green-on-green */
.promo-banner h3{margin:0 0 6px;font-size:clamp(19px,2.6vw,26px);line-height:1.35;color:#fff}
.promo-banner h3::after{display:none}
.promo-banner p{margin:0;color:#f0ecdf;max-width:52ch;font-size:var(--fs-sm,14px)}
.promo-cta{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;background:#b8963e;color:#0f2e24;font-weight:800;padding:11px 20px;border-radius:10px;white-space:nowrap}
.hs-slide{overflow:hidden}
.hs-slide .promo-plates{position:absolute;inset-inline-end:-30px;top:50%;transform:translateY(-50%) rotate(6deg);width:min(46%,320px);opacity:.28;pointer-events:none}
@media (max-width:720px){.promo-banner .promo-inner{flex-direction:column;align-items:flex-start;padding:20px}.promo-cta{align-self:stretch;justify-content:center}.hs-slide .promo-plates{display:none}}

/* PO fix: mobile plate comfort — smaller on phones, breathing room */
@media (max-width: 720px) {
  .plate-svg{width:84%;margin-inline:auto}
  .detail-plate .plate-svg{width:90%}
  #sp-results .card{padding:10px}
  #sp-results .plate-svg{width:96%}
}

/* ---- PO WCAG sweep: overlay text must never inherit dark-on-dark ---- */
.hero .eyebrow{color:#e9c46a}
.cta-band h2,.cta-band p,.cta-band .eyebrow{color:#fff}
.cta-band p,.cta-band .text-muted{opacity:.92}
/* promo ghost plate needs separation from the card edge */
.promo-banner .hs-slide .promo-plates{opacity:.4;filter:drop-shadow(0 2px 10px rgba(0,0,0,.55))}

/* ---------- hero promo slider (PO: editions/gift/family carousel) ---------- */
.hero-slider{position:relative;margin-block:var(--sp-5);border-radius:var(--radius-lg);overflow:hidden}
.hs-track{display:flex;transition:transform .55s cubic-bezier(.22,.8,.3,1);will-change:transform}
.hs-slide{flex:0 0 100%;min-width:100%}
.hero-slider .promo-banner{margin-block:0;border-radius:0}
.hs-dots{position:absolute;bottom:12px;inset-inline-end:16px;display:flex;gap:8px;z-index:3}
.hs-dots button{width:10px;height:10px;border-radius:50%;border:1.5px solid #e9c46a;background:transparent;padding:0;cursor:pointer;transition:background .2s,transform .2s}
.hs-dots button[aria-selected="true"]{background:#e9c46a;transform:scale(1.25)}
.hs-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:38px;height:38px;border-radius:50%;border:1px solid rgba(233,196,106,.6);background:rgba(10,36,28,.72);color:#e9c46a;font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.hs-arrow:hover{background:rgba(10,36,28,.95)}
.hs-prev{inset-inline-start:10px}.hs-next{inset-inline-end:10px}
@media (max-width:720px){.hs-arrow{display:none}}
@media (prefers-reduced-motion: reduce){.hs-track{transition:none}}

/* editions page */
.ed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:var(--sp-5)}
.ed-card{text-align:center;padding:28px}
.ed-hero-plate{width:min(340px,90%);margin-bottom:16px;filter:drop-shadow(0 8px 22px rgba(0,0,0,.25))}
.ed-gold{border-top:4px solid #d4af37}
.ed-royal{border-top:4px solid #101014;background:linear-gradient(180deg,#fffdf6,#f6f2e4)}
[data-theme="dark"] .ed-royal{background:linear-gradient(180deg,#16181c,#0d0e11)}
.ed-price{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:14px 0 18px;font-size:var(--fs-lg)}
.ed-price s{color:var(--c-text-muted)}
.ed-was{color:var(--c-text-muted);font-weight:400}
.ed-mini{position:absolute;width:190px;filter:drop-shadow(0 10px 24px rgba(0,0,0,.5));z-index:1}
.ed-mini-gold{top:-26px;inset-inline-end:7%;transform:rotate(8deg)}
.ed-mini-royal{bottom:-30px;inset-inline-end:19%;transform:rotate(-6deg)}
@media (max-width:900px){.ed-mini{display:none}}

/* editions slide art: keep floating plates visible on tablets too, tuck them clear of copy */
@media (max-width: 900px) and (min-width: 721px){.ed-mini{width:130px}.ed-mini-royal{inset-inline-end:14%}}
.promo-banner .promo-inner{padding-inline-end:clamp(30px,22%,260px)}

/* promo grid (below-fold repeat of the 3 banners, PO request) */
.promo-grid{margin-block:0}
.pg-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:var(--sp-4)}
.pg-card{border-radius:var(--radius-lg);margin-block:0}
.pg-card .promo-inner{padding:20px 22px;min-height:210px;flex-direction:column;align-items:flex-start;justify-content:flex-end}
.pg-card .btn{align-self:flex-start}
@media (max-width:900px){.pg-card .ed-mini{display:none}}

/* grid cards: decorative plates hidden entirely (cleaner), slider keeps them */
.promo-grid .promo-plates,.promo-grid .fam-plates{display:none}

/* slider v3 (PO "plate still broken" root fix): stacked slides, JS toggles .is-active.
   Slides never translate off-screen, so nothing leaks out of the document width. */
.hs-track{position:relative;align-items:stretch;transform:none !important}
.hs-slide{flex:none;width:100%}
.hero-slider .hs-slide{display:none}
.hero-slider .hs-slide.is-active{display:block}

/* belt & braces: slider window must never leak horizontally */
.hero-slider{overflow-x:hidden}

/* ---------- SUPER VIP box page (box.html) ---------- */
.box-plate-preview {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  background: linear-gradient(180deg, #efe9da, #e2d9c4);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: var(--sp-4); margin-block: var(--sp-4);
}
.box-plate-preview > div { width: min(320px, 100%); }
.box-keychain {
  display: flex; align-items: center; gap: var(--sp-4);
  border: 1px dashed var(--c-border); border-radius: var(--radius);
  padding: var(--sp-3); margin-top: var(--sp-2);
}
.box-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.box-feats li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.box-feats .bx-ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-gold); background: rgba(184, 150, 62, .14);
  border: 1px solid var(--c-gold);
}
.box-render #box-scene svg { width: 100%; height: auto; display: block; }
.box-sumrow { display: flex; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-2); border-bottom: 1px dashed var(--c-border); }
.box-sumrow strong.num { font-size: var(--fs-lg); color: var(--c-maroon); }
