/* ============================================================
   Lane B — "Modernized" (OpenCode @ Kenpachi)
   Modernized fintech-gov: desaturated greens, deeper ink
   neutrals, sparing gold micro-accent, gradient-mesh hero,
   layered soft shadows, subtle glass cards, 12–16px radii,
   refined type scale w/ weight contrast, scroll-reveal that
   respects prefers-reduced-motion.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Greens — desaturated, government-grade */
  --green-900: #10271f;
  --green-800: #163a2d;
  --green-700: #215541;
  --green-600: #2f6f55;
  --green-500: #3f8a6b;
  --green-400: #5ba084;
  --green-300: #86bfa6;
  --green-100: #dcebe3;
  --green-50:  #eef5f1;

  /* Ink neutrals — green-tinted, deep */
  --ink-950: #0a1310;
  --ink-900: #0f1a16;
  --ink-800: #16241f;
  --ink-700: #24362f;
  --ink-600: #3a4d45;
  --ink-500: #5b6e66;
  --ink-400: #80918905;
  --slate-400: #8a988f;
  --slate-300: #b4c0b9;
  --slate-200: #d6ded9;
  --slate-100: #e9efec;

  /* Gold micro-accent — used sparingly */
  --gold-600: #b8923f;
  --gold-500: #c8a24a;
  --gold-400: #dabd72;
  --gold-100: #f3e8ce;

  /* Syrian red — desaturated, for live/urgent */
  --red-600: #b5483f;
  --red-500: #c85a4f;
  --red-50:  #f6e7e5;

  /* Semantic tokens — dark palette overrides these in [data-theme="dark"] */
  --bg:        #f4f8f6;
  --surface:   #ffffff;
  --surface-2: #fbfdfc;
  --glass:     rgba(255, 255, 255, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.55);
  --line:      var(--slate-100);
  --text:      var(--ink-800);
  --text-strong: var(--ink-900);
  --text-muted: var(--ink-500);
  --link:      var(--green-700);
  --accent-text: #d7ece1;          /* light text on dark bands (hero/CTA) */
  --header-bg: rgba(255, 255, 255, 0.82);
  --nav-overlay-bg: rgba(255, 255, 255, 0.98);

  /* Radii — 12–16px */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Layered soft shadows */
  --sh-1: 0 1px 2px rgba(16, 39, 31, .06), 0 1px 1px rgba(16, 39, 31, .04);
  --sh-2: 0 2px 6px rgba(16, 39, 31, .06), 0 6px 16px rgba(16, 39, 31, .07);
  --sh-3: 0 6px 18px rgba(16, 39, 31, .10), 0 16px 40px rgba(16, 39, 31, .10);
  --sh-glass: 0 8px 30px rgba(16, 39, 31, .12);

  /* Type scale — refined w/ weight contrast */
  --font: "Cairo", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.35rem;
  --fs-xl: 1.7rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2.1rem, 5vw, 3.4rem);
  --fs-hero: clamp(2.4rem, 6.2vw, 4.2rem);

  --container: 1200px;
  --gutter: 20px;

  --ring: 0 0 0 3px rgba(63, 138, 107, .38);
  --focus: 2px solid var(--green-500);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Dark theme (AA contrast — no dark-green text on dark bg) ---------- */
[data-theme="dark"] {
  /* Green family lifted for dark surfaces */
  --green-700: #8fb7a6;   /* links/kickers on dark: AA vs --bg */
  --green-800: #a9c9ba;
  --slate-400: #93a29a;
  --slate-300: #b4c0b9;
  --slate-200: #2c3d35;   /* repurposed as dark border line */
  --slate-100: #24362f;

  /* Ink neutrals inverted (text roles, not surfaces) */
  --ink-950: #0b1411;     /* footer stays deep in both themes */
  --ink-900: #e7efe9;
  --ink-800: #d2ded6;
  --ink-700: #b7c5bd;
  --ink-600: #93a29a;
  --ink-500: #93a29a;

  /* Gold lifted for dark */
  --gold-400: #dabd72;
  --gold-500: #dabd72;
  --gold-600: #e2c88b;
  --gold-100: rgba(218, 189, 114, .14);

  /* Red lifted for live badges */
  --red-500: #d9736a;
  --red-600: #e08a80;
  --red-50:  rgba(217, 115, 106, .14);

  /* Surfaces */
  --bg:        #0e1713;
  --surface:   #14201b;
  --surface-2: #18241f;
  --glass:     rgba(20, 32, 27, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.10);

  /* Semantic */
  --line:      #24362f;
  --text:      #d2ded6;
  --text-strong: #e7efe9;
  --text-muted: #93a29a;
  --link:      #8fb7a6;
  --accent-text: #cfe1d8;
  --header-bg: rgba(14, 23, 19, 0.85);
  --nav-overlay-bg: rgba(14, 23, 19, 0.98);

  /* Shadows on dark — deeper */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 1px rgba(0, 0, 0, .25);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .4), 0 6px 16px rgba(0, 0, 0, .35);
  --sh-3: 0 6px 18px rgba(0, 0, 0, .45), 0 16px 40px rgba(0, 0, 0, .4);
  --sh-glass: 0 8px 30px rgba(0, 0, 0, .45);

  --ring: 0 0 0 3px rgba(143, 183, 166, .35);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-weight: 800;
}
h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--green-700); }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }

[data-theme="dark"] .kicker { background: var(--green-50); border-color: var(--green-100); }
[data-theme="dark"] .btn--primary, [data-theme="dark"] .btn--gold { --_fg: #0e1713; }
[data-theme="dark"] .step__num, [data-theme="dark"] .chip.is-on svg, [data-theme="dark"] .sizeseg button.is-on, [data-theme="dark"] .carviewseg button.is-on { color: #0e1713; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em;
  color: var(--link);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: .35rem .8rem; border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-100);
}
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .sub { color: var(--ink-500); font-size: var(--fs-md); margin: 0; }
.section-head h2 { margin-bottom: .35em; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--green-600); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: var(--fs-base);
  padding: .78rem 1.5rem; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  background: var(--_bg); color: var(--_fg);
  box-shadow: var(--sh-2);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-3); color: var(--_fg); }
.btn:active { transform: translateY(0); }
.btn--primary { --_bg: linear-gradient(180deg, var(--green-500), var(--green-700)); }
.btn--gold { --_bg: linear-gradient(180deg, var(--gold-500), var(--gold-600)); }
.btn--ghost { --_bg: transparent; --_fg: var(--green-800); border-color: var(--green-100); box-shadow: none; background: var(--surface); }
.btn--ghost:hover { background: var(--green-50); }
.btn--sm { padding: .5rem 1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

/* ---------- Cards / glass ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-glass);
}

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-xs); font-weight: 700;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--slate-100); color: var(--ink-700);
}
.badge--live { background: var(--red-50); color: var(--red-600); }
.badge--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red-500);
  animation: pulse 1.6s var(--ease) infinite;
}
.badge--reserve { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.badge--noreserve { background: var(--gold-100); color: var(--gold-600); }
.badge--gold { background: var(--gold-100); color: var(--gold-600); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.5); } }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--green-800); color: #fff; padding: .6rem 1rem;
  border-radius: var(--r-sm); transition: top .2s var(--ease);
}
[data-theme="dark"] .skip-link { color: var(--text-strong); }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; margin-inline-end: auto; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(145deg, var(--green-500), var(--green-800));
  display: grid; place-items: center; color: #fff; box-shadow: var(--sh-2);
  position: relative; overflow: hidden;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__name { font-weight: 800; color: var(--text-strong); font-size: var(--fs-md); line-height: 1.1; }
.brand__tag { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: var(--text); font-weight: 600; font-size: var(--fs-sm);
  padding: .55rem .8rem; border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--green-50); color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); background: var(--green-50); }

.toolbar { display: flex; align-items: center; gap: .5rem; }
.toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  min-width: 46px; justify-content: center;
  height: 40px; padding: 0 .8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--slate-200); background: var(--surface);
  color: var(--text); font-weight: 700; font-size: var(--fs-sm); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.toggle:hover { border-color: var(--green-400); color: var(--link); }
.toggle[aria-pressed="true"] { background: var(--green-50); border-color: var(--green-300); color: var(--link); }
.toggle svg { width: 18px; height: 18px; }

.burger { display: none; }

/* ---------- Hero (gradient mesh) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--green-900);
  color: #eaf3ee;
  isolation: isolate;
}
.hero__mesh {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(45% 40% at 18% 22%, rgba(95,160,132,.55), transparent 70%),
    radial-gradient(40% 45% at 85% 18%, rgba(200,162,74,.30), transparent 70%),
    radial-gradient(50% 50% at 78% 85%, rgba(63,138,107,.5), transparent 70%),
    radial-gradient(60% 60% at 12% 90%, rgba(22,58,45,.9), transparent 72%),
    linear-gradient(160deg, #0f2a20, #10271f 60%, #0a1a14);
  filter: saturate(1.05);
  animation: meshFloat 22s var(--ease) infinite alternate;
}
@keyframes meshFloat { from { transform: translate3d(0,0,0) scale(1);} to { transform: translate3d(2%, -2%, 0) scale(1.06);} }
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero .container { position: relative; padding-block: clamp(56px, 9vw, 120px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .kicker { background: rgba(255,255,255,.08); color: var(--accent-text); border-color: rgba(255,255,255,.16); }
.hero__title { color: #fff; margin: 0 0 .35em; }
.hero__title .accent {
  background: linear-gradient(120deg, #dabd72, #c8a24a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--accent-text); font-size: var(--fs-md); max-width: 34ch; margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero__stats { display: flex; gap: clamp(18px, 4vw, 40px); flex-wrap: wrap; }
.hero__stat .num { font-size: var(--fs-xl); font-weight: 800; color: #fff; line-height: 1; }
.hero__stat .lbl { font-size: var(--fs-xs); color: #9ec2b3; font-weight: 600; }

/* theme toggle — sun/moon swap */
.theme-toggle svg .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle svg .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle svg .ic-moon { display: block; }

/* hero visual: floating plate + glass tile */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero__platecard {
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--r-xl);
  transform: rotate(-3deg);
  animation: floatY 6s var(--ease) infinite alternate;
}
@keyframes floatY { from { transform: rotate(-3deg) translateY(-6px);} to { transform: rotate(-3deg) translateY(8px);} }
.hero__chip {
  position: absolute;
  font-size: var(--fs-sm); font-weight: 700;
  padding: .5rem .85rem; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: .45rem;
  box-shadow: var(--sh-3);
}
.hero__chip--a { top: 6%; inset-inline-start: -4%; }
.hero__chip--b { bottom: 8%; inset-inline-end: -2%; }
.hero__chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-500); animation: pulse 1.6s infinite; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 28px; position: relative; overflow: hidden; }
.step__num {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: var(--fs-lg); color: #fff;
  background: linear-gradient(145deg, var(--green-500), var(--green-700));
  margin-bottom: 1rem; box-shadow: var(--sh-2); position: relative;
}
.step__num::after {
  content: ""; position: absolute; inset: 4px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.25);
}
.step h4 { margin-bottom: .4em; }
.step p { color: var(--ink-500); margin: 0; }
.step__line {
  position: absolute; top: 54px; inset-inline-end: -22px; width: 44px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step:last-child .step__line { display: none; }

/* ---------- Live stats band ---------- */
.stats-band { position: relative; overflow: hidden; border-radius: var(--r-xl); }
.stats-band__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: clamp(26px, 4vw, 44px);
}
.stat { text-align: center; padding: 12px; }
.stat .num {
  display: block; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800;
  color: var(--green-800); line-height: 1.05;
}
.stat .lbl { font-size: var(--fs-sm); color: var(--ink-500); font-weight: 600; }
.stat + .stat { border-inline-start: 1px solid var(--line); }

/* ---------- Upcoming auctions strip ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.auc { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.auc:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.auc__top { padding: 18px 18px 0; display: flex; justify-content: space-between; align-items: center; }
.auc__plate { padding: 14px 18px; display: grid; place-items: center; background: linear-gradient(180deg, var(--surface-2), var(--green-50)); }
.auc__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.auc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auc__money { font-weight: 800; color: var(--ink-900); }
.auc__money .cur { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.auc__label { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.auc__time { font-weight: 700; color: var(--red-600); font-size: var(--fs-sm); }
.auc__cta { margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 6vw, 64px); text-align: center; color: #fff; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(140deg, var(--green-800), var(--green-600) 60%, var(--green-700)); }
.cta-band__bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 80% at 85% 20%, rgba(200,162,74,.35), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d7ece1; max-width: 52ch; margin: 0 auto 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--slate-300); margin-top: 40px; }
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: clamp(40px, 6vw, 72px); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand .brand__name { color: #fff; }
.footer-col h4 { color: #fff; font-size: var(--fs-base); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-about { max-width: 38ch; margin-bottom: 1rem; font-size: var(--fs-sm); }
.footer-rfi { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: var(--fs-sm); }
.footer-credit { display: inline-flex; align-items: center; gap: .4rem; color: var(--slate-400); }
.footer-credit b { color: var(--gold-400); font-weight: 700; }

/* ---------- Plate component ---------- */
.plate { display: inline-block; line-height: 0; }
.plate svg { display: block; width: 100%; height: auto; }
.plate--sm { width: 220px; max-width: 100%; }
.plate--md { width: 320px; max-width: 100%; }
.plate--lg { width: 460px; max-width: 100%; }

/* ---------- Plate size variants (PO V2 §2) ---------- */
.sizeseg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sizeseg button { font-family: inherit; cursor: pointer; border: 1px solid var(--line, #dcebe3); background: var(--surface-2, #eef5f1);
  border-radius: var(--r-sm, 10px); padding: .5rem .8rem; display: grid; gap: 2px; text-align: center; }
.sizeseg button em { font-style: normal; font-size: .72rem; color: var(--slate-400, #8a988f); }
.sizeseg button.is-on { background: var(--green-500, #163a2d); color: #fff; border-color: var(--green-500, #163a2d); }
.sizeseg button.is-on em { color: var(--gold-400, #dabd72); }
.plate__mm { display: block; line-height: 1.4; font-size: .78rem; font-weight: 700; color: var(--slate-400, #8a988f); margin-top: 6px; }
.carviewseg { display: flex; gap: 8px; margin-bottom: 10px; }
.carviewseg button { font-family: inherit; cursor: pointer; border: 1px solid var(--line, #dcebe3); background: var(--surface-2, #eef5f1); padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--slate-600, #3c4a44); }
.carviewseg button.is-on { background: var(--green-500, #163a2d); color: #fff; border-color: var(--green-500, #163a2d); }

.car { width: 100%; max-width: 360px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band__inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset-inline: 0; top: 70px; bottom: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--nav-overlay-bg); backdrop-filter: blur(12px);
    padding: 18px var(--gutter); transform: translateY(-110%);
    transition: transform .3s var(--ease); box-shadow: var(--sh-3);
  }
  .nav.open { transform: none; }
  .nav a { padding: .9rem 1rem; font-size: var(--fs-md); }
  .burger { display: inline-grid; place-items: center; }
  .steps { grid-template-columns: 1fr; }
  .step__line { display: none; }
}
@media (max-width: 560px) {
  .stats-band__inner { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .brand__tag { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__mesh, .hero__platecard { animation: none; }
}

/* ============================================================
   CARD-2 — Auctions (list + detail + live-bid mock)
   ============================================================ */

/* Sub-page hero band (compact gradient mesh) */
.pagehead { position: relative; overflow: hidden; background: var(--green-900); color: #eaf3ee; isolation: isolate; }
.pagehead__mesh { position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(95,160,132,.5), transparent 70%),
    radial-gradient(40% 50% at 88% 12%, rgba(200,162,74,.26), transparent 70%),
    radial-gradient(55% 60% at 82% 92%, rgba(63,138,107,.45), transparent 72%),
    linear-gradient(160deg, #0f2a20, #10271f 60%, #0a1a14);
  animation: meshFloat 24s var(--ease) infinite alternate; }
.pagehead .container { padding-block: clamp(36px, 6vw, 72px); }
.pagehead .kicker { background: rgba(255,255,255,.08); color: #d7ece1; border-color: rgba(255,255,255,.16); }
.pagehead h1 { color: #fff; margin: 0 0 .3em; }
.pagehead p { color: #cfe1d8; margin: 0; max-width: 60ch; }
.crumbs { font-size: var(--fs-sm); color: #9ec2b3; margin-bottom: .8rem; display: flex; gap: .5rem; align-items: center; }
.crumbs a { color: #cfe1d8; } .crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .6; }

/* ---------- Filter toolbar ---------- */
.filters { position: sticky; top: 78px; z-index: 40; margin-block: 22px clamp(18px, 3vw, 28px);
  padding: 16px; display: grid; gap: 14px;
  grid-template-columns: 1.4fr .9fr 1fr auto; align-items: end; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-500); }
.field .ctl {
  height: 44px; border-radius: var(--r-sm); border: 1px solid var(--slate-200);
  background: var(--surface); color: var(--ink-800); font: inherit; font-size: var(--fs-sm); font-weight: 600;
  padding: 0 .8rem; width: 100%; appearance: none; }
.field select.ctl { padding-inline-end: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6e66' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center right .7rem; background-position-x: calc(100% - .7rem); }
html[dir="ltr"] .field select.ctl { background-position: center left .7rem; }
.field .ctl:focus-visible { outline: var(--focus); border-color: var(--green-400); }
.filters__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 12px; }
.filters__count { font-size: var(--fs-sm); color: var(--ink-500); font-weight: 700; }
.filters__count b { color: var(--green-700); }
.filters__clear { background: none; border: 0; color: var(--green-700); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; text-decoration: underline; }

/* ---------- Auction cards (extended) ---------- */
.auc__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: var(--fs-xs); font-weight: 700; padding: .2rem .55rem; border-radius: var(--r-pill);
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.tag--gold { background: var(--gold-100); color: var(--gold-600); border-color: var(--gold-100); }
.auc__watch { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.9); border: 1px solid var(--slate-200); color: var(--slate-400); box-shadow: var(--sh-1);
  transition: transform .15s var(--ease), color .15s, border-color .15s; }
.auc__watch:hover { transform: scale(1.08); color: var(--red-500); }
.auc__watch[aria-pressed="true"] { color: var(--red-500); border-color: var(--red-500); }
.auc__watch svg { width: 20px; height: 20px; }
.auc { position: relative; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.empty-state svg { width: 54px; height: 54px; margin: 0 auto 12px; opacity: .5; }

/* ---------- Detail layout ---------- */
.det { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.det__stage { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(165deg, #123a2c, #0f2a20 55%, #0b1d17); color: #eaf3ee; box-shadow: var(--sh-3); }
.det__stage .plate { width: 100%; }
.det__stage .glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.det__stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.det__pat { display: flex; gap: 8px; flex-wrap: wrap; }
.det__car { margin-top: 20px; padding: 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.det__car .cap { font-size: var(--fs-xs); color: #9ec2b3; font-weight: 700; margin-bottom: 10px; }
.det__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.det__fact { padding: 12px 14px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.det__fact .lbl { font-size: var(--fs-xs); color: #9ec2b3; font-weight: 700; }
.det__fact .val { font-weight: 800; color: #fff; }

/* ---------- Bid box ---------- */
.bidbox { position: sticky; top: 90px; display: grid; gap: 18px; padding: clamp(20px, 2.6vw, 28px); }
.bidbox__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.bidbox__cur .lbl { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.bidbox__cur .amt { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 900; color: var(--ink-900); line-height: 1.05; }
.bidbox__cur .amt .cur { font-size: var(--fs-sm); color: var(--ink-500); font-weight: 800; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 700;
  padding: .32rem .6rem; border-radius: var(--r-pill); background: var(--slate-100); color: var(--ink-700); }
.chip svg { width: 14px; height: 14px; }
.chip--live { background: var(--red-50); color: var(--red-600); }
.chip--lead { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.chip--out { background: var(--gold-100); color: var(--gold-600); }

/* countdown */
.count { text-align: center; padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--green-50), #fff); border: 1px solid var(--green-100); }
.count .lbl { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.count .clock { font-variant-numeric: tabular-nums; font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 900; letter-spacing: .04em; color: var(--green-800); line-height: 1; margin: 4px 0; }
.count .clock.urgent { color: var(--red-600); }
.count .hint { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.count .hint.hide { display: none; }
.count .hint::before { content: "⏱ "; }

/* bid form */
.bidform { display: grid; gap: 12px; }
.bidform__row { display: flex; gap: 10px; }
.input {
  height: 50px; border-radius: var(--r-sm); border: 1px solid var(--slate-200); background: var(--surface);
  color: var(--ink-900); font: inherit; font-weight: 800; font-size: var(--fs-md); padding: 0 14px; width: 100%;
}
.input:focus-visible { outline: var(--focus); border-color: var(--green-400); }
.bidform__step { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.bidform__step b { color: var(--green-700); }
.err { font-size: var(--fs-sm); font-weight: 700; color: var(--red-600); min-height: 0; }
.err:empty { display: none; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick button { border: 1px dashed var(--green-300); background: var(--green-50); color: var(--green-700);
  font-weight: 700; font-size: var(--fs-sm); border-radius: var(--r-pill); padding: .4rem .7rem; cursor: pointer; }
.quick button:hover { background: #fff; }

/* deposit */
.deposit { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap;
  padding: 14px; border-radius: var(--r); background: var(--gold-100); border: 1px solid var(--gold-100); }
.deposit__txt { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-800); }
.deposit__amt { font-weight: 900; }
.deposit.paid { background: var(--green-50); border-color: var(--green-100); }
.deposit__badge { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; color: var(--green-700); }

/* watchlist button */
.watchbtn { display: inline-flex; align-items: center; gap: .5rem; }
.watchbtn[aria-pressed="true"] { color: var(--red-600); border-color: var(--red-500); background: var(--red-50); }
.watchbtn svg { width: 18px; height: 18px; }

/* ---------- Bid ladder ---------- */
.panel { padding: clamp(18px, 2.4vw, 26px); margin-top: 20px; }
.panel h3 { font-size: var(--fs-lg); margin-bottom: .2em; }
.panel .sub { color: var(--ink-500); font-size: var(--fs-sm); margin-bottom: 16px; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 340px; overflow: auto; }
.bid { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-sm); }
.bid:nth-child(odd) { background: var(--surface-2); }
.bid__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(145deg, var(--green-500), var(--green-700)); font-size: var(--fs-sm); }
.bid--you .avatar { background: linear-gradient(145deg, var(--gold-500), var(--gold-600)); }
.bid__name { font-weight: 700; font-size: var(--fs-sm); }
.bid__time { font-size: var(--fs-xs); color: var(--ink-500); }
.bid__amt { font-weight: 900; color: var(--ink-900); }
.bid__amt .cur { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.bid--you { box-shadow: inset 3px 0 0 var(--gold-500); }
.bid__lead { font-size: 10px; font-weight: 800; color: var(--gold-600); background: var(--gold-100); padding: .1rem .4rem; border-radius: var(--r-pill); }
.bid--proxy::after { content: "⚡"; }
.ladder .empty { color: var(--ink-500); font-size: var(--fs-sm); padding: 8px 2px; }

/* ---------- Increment table ---------- */
.inc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.inc-table th, .inc-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.inc-table th { color: var(--ink-500); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .03em; }
.inc-table td { font-weight: 700; color: var(--ink-800); font-variant-numeric: tabular-nums; }
.inc-table tr.is-active { background: var(--green-50); }
.inc-table tr.is-active td { color: var(--green-800); }
.inc-table td:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--slate-200); margin-inline-end: 8px; vertical-align: middle; }
.inc-table tr.is-active td:first-child::before { background: var(--green-500); }

/* ---------- Rules ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; }
.rules .ric { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.rules .ric svg { width: 18px; height: 18px; }
.rules h4 { margin: 0 0 .15em; font-size: var(--fs-base); }
.rules p { margin: 0; color: var(--ink-500); font-size: var(--fs-sm); }

/* ---------- Proxy ---------- */
.proxy__active { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--green-700); }
.proxy__active .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); animation: pulse 1.4s infinite; }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; inset-inline: 0; bottom: 22px; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; padding-inline: 16px; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; max-width: 420px; width: 100%;
  padding: 14px 16px; border-radius: var(--r); background: var(--ink-900); color: #fff; box-shadow: var(--sh-3);
  border-inline-start: 4px solid var(--green-500); transform: translateY(12px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.toast.in { transform: none; opacity: 1; }
.toast--gold { border-inline-start-color: var(--gold-500); }
.toast--red { border-inline-start-color: var(--red-500); }
.toast__ic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; }
.toast__ic svg { width: 22px; height: 22px; }
.toast b { display: block; font-size: var(--fs-base); }
.toast span { font-size: var(--fs-sm); color: var(--slate-300); }
.toast__x { margin-inline-start: auto; background: none; border: 0; color: var(--slate-400); cursor: pointer; font-size: 20px; line-height: 1; }

/* ---------- Detail responsive ---------- */
@media (max-width: 940px) {
  .det { grid-template-columns: 1fr; }
  .bidbox { position: static; }
  .filters { grid-template-columns: 1fr 1fr; top: 70px; }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr; }
  .det__facts { grid-template-columns: 1fr; }
  .count .clock { font-size: 2.4rem; }
}

/* ============================================================
   CARD-4 — Tools · Family · Gift · Results · Register (Lane B)
   ============================================================ */

/* Shared money input + helpers */
.money-wrap { position: relative; display: flex; align-items: center; }
.money-wrap .input { padding-inline-end: 58px; }
.money-wrap .cur-suffix { position: absolute; inset-inline-end: 14px; font-size: var(--fs-sm); font-weight: 800; color: var(--ink-500); pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--green-700); font-weight: 800; cursor: pointer; font-size: var(--fs-sm); padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.muted { color: var(--ink-500); }
.money { font-weight: 900; color: var(--ink-900); }
.money .cur { font-size: var(--fs-sm); color: var(--ink-500); font-weight: 700; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dot-live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); animation: pulse 1.6s var(--ease) infinite; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 800; padding: .28rem .6rem; border-radius: var(--r-pill); background: var(--slate-100); color: var(--ink-700); }

/* Tool cards */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.toolcard { padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; scroll-margin-top: 96px; }
.toolcard__head { display: flex; gap: 14px; align-items: flex-start; }
.toolcard__ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--green-500), var(--green-700)); color: #fff; box-shadow: var(--sh-2); }
.toolcard__ic--gold { background: linear-gradient(145deg, var(--gold-500), var(--gold-600)); }
.toolcard__ic svg { width: 26px; height: 26px; }
.toolcard h2 { font-size: var(--fs-xl); margin: 0 0 .15em; }
.toolcard .sub { color: var(--ink-500); margin: 0; font-size: var(--fs-sm); }
.toolcard .field { gap: .4rem; }
.toolcard .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-out { border-radius: var(--r-lg); border: 1px solid var(--slate-100); background: var(--surface-2); padding: 18px; }

/* Birthdate result */
.bdate-best { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--green-50), #fff); border: 1px solid var(--green-100); }
.bdate-best .plate--sm { width: 240px; }
.bdate-meta { display: grid; gap: 6px; }
.bdate-tag { font-size: var(--fs-xs); font-weight: 800; color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-100); padding: .2rem .6rem; border-radius: var(--r-pill); width: max-content; }
.bdate-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.bdate-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--slate-100); background: #fff; }
.bdate-item .plate { width: 130px; flex: none; }
.bdate-item .grow { flex: 1; min-width: 0; }
.bdate-item .g { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }

/* Valuation */
.val-result { border-radius: var(--r-lg); border: 1px solid var(--green-100); background: linear-gradient(180deg, var(--green-50), #fff); padding: 20px; display: grid; gap: 16px; }
.val-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.val-top .plate--md { width: 320px; }
.tier { text-align: end; }
.tier .lbl { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.tier .name { font-size: var(--fs-lg); font-weight: 900; }
.tier-1 .name { color: var(--ink-600); }
.tier-2 .name { color: var(--green-600); }
.tier-3 .name { color: var(--green-700); }
.tier-4 .name { color: var(--gold-600); }
.tier-5 .name { color: var(--gold-600); }
.tierbar { display: grid; gap: 6px; }
.tierbar__track { height: 12px; border-radius: var(--r-pill); background: var(--slate-100); overflow: hidden; }
.tierbar__fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--green-500), var(--gold-500)); width: 0; transition: width .6s var(--ease); }
.tierbar__labels { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; color: var(--slate-400); }
.val-range { display: grid; gap: 4px; text-align: center; }
.val-range .from { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.val-range .big { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 900; color: var(--ink-900); }
.val-factors { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.val-factors li { font-size: var(--fs-xs); font-weight: 800; padding: .3rem .65rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--green-100); color: var(--green-700); }
.val-note { font-size: var(--fs-xs); color: var(--ink-500); }

/* Gift certificate */
.gift-grid { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: start; }
.gift-form { position: sticky; top: 92px; display: grid; gap: 16px; padding: 24px; }
.cert-wrap { overflow-x: auto; }
.cert { position: relative; min-width: 520px; border-radius: 20px; padding: 40px 40px 34px; color: #f4ecd6; overflow: hidden;
  background: radial-gradient(120% 120% at 88% 8%, #1c4a38, #123328 55%, #0c241b); box-shadow: var(--sh-3); border: 1px solid rgba(200,162,74,.35); }
.cert::before { content: ""; position: absolute; inset: 14px; border-radius: 14px; border: 2px solid rgba(200,162,74,.4); }
.cert__inner { position: relative; }
.cert__brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 6px; }
.cert__brand .brand__mark { width: 34px; height: 34px; border-radius: 9px; }
.cert__brand span { font-weight: 800; color: #fff; font-size: var(--fs-sm); }
.cert__title { font-family: "Cairo", serif; font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.1rem); text-align: center; color: #e7cf95; letter-spacing: .01em; margin: 4px 0 2px; }
.cert__sub { text-align: center; color: #bfe0d1; font-size: var(--fs-sm); margin: 0 auto 18px; max-width: 44ch; }
.cert__plate { width: 340px; max-width: 100%; margin: 0 auto 18px; }
.cert__to { text-align: center; margin-bottom: 20px; }
.cert__to .lbl { font-size: var(--fs-xs); color: #9ec2b3; font-weight: 700; letter-spacing: .05em; }
.cert__name { font-family: "Cairo", serif; font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.2rem); color: #fff; margin-top: 2px; min-height: 1.2em; }
.cert__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.cert__cell .lbl { font-size: 11px; color: #9ec2b3; font-weight: 700; }
.cert__cell .val { font-weight: 800; color: #fff; font-size: var(--fs-sm); }
.cert__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.cert__note { font-size: var(--fs-xs); color: #9ec2b3; max-width: 40ch; }
.cert__seal { width: 92px; height: 92px; flex: none; }
.cert__seal text { font-family: "Cairo", sans-serif; }
.cert__watermark { position: absolute; inset-inline-end: 30px; top: 40%; font-family: "Cairo", serif; font-weight: 900; font-size: 120px; color: rgba(200,162,74,.06); pointer-events: none; line-height: 1; }

/* Family packages */
.family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.pkg--feature { border-color: var(--gold-500); box-shadow: 0 10px 40px rgba(200,162,74,.18); }
.pkg__ribbon { position: absolute; top: 16px; inset-inline-end: 16px; }
.pkg__plates { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 8px 0; min-height: 84px; align-items: center; background: linear-gradient(180deg, var(--surface-2), var(--green-50)); border-radius: var(--r); }
.pkg__plates .plate { width: 150px; }
.pkg__name { font-size: var(--fs-lg); font-weight: 900; margin: 0 0 .1em; }
.pkg__tag { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }
.pkg__feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pkg__feat li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-700); }
.pkg__feat svg { width: 18px; height: 18px; color: var(--green-600); flex: none; margin-top: 2px; }
.pkg__price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--slate-200); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pkg__price .val { font-size: var(--fs-lg); font-weight: 900; color: var(--ink-900); }
.pkg__price .val .cur { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }

/* Results + cockpit */
.cockpit { margin-block: 22px; }
.cockpit__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--green-50)); border: 1px solid var(--green-100); }
.kpi .lbl { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.kpi .val { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 900; color: var(--green-800); line-height: 1.1; }
.kpi .val .cur { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 800; }
.kpi .delta { font-size: var(--fs-xs); font-weight: 800; color: var(--green-600); }
.govbars { display: grid; gap: 12px; margin-top: 6px; }
.govbar { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; }
.govbar__name { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-700); }
.hbar { height: 12px; border-radius: var(--r-pill); background: var(--slate-100); overflow: hidden; }
.hbar__fill { height: 100%; border-radius: var(--r-pill); width: 0; background: linear-gradient(90deg, var(--green-600), var(--green-400)); transition: width .7s var(--ease); }
.govbar__val { font-size: var(--fs-sm); font-weight: 800; color: var(--ink-600); white-space: nowrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { border: 1px solid var(--slate-200); background: var(--surface); color: var(--ink-700); font-weight: 800; font-size: var(--fs-sm); padding: .55rem 1rem; border-radius: var(--r-pill); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.res-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.res-table th { text-align: start; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-500); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.res-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.res-table .plate { width: 150px; }
.res-table tr:hover td { background: var(--surface-2); }
.res-top { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* Register wizard */
.reg-wrap { display: grid; gap: 22px; }
.steps-row { display: flex; gap: 8px; }
.stepdot { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); border: 1px solid var(--slate-100); background: var(--surface); font-weight: 800; color: var(--ink-500); cursor: pointer; }
.stepdot .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-100); color: var(--ink-600); font-size: var(--fs-sm); flex: none; }
.stepdot.is-on { border-color: var(--green-400); color: var(--green-800); background: var(--green-50); }
.stepdot.is-on .n { background: var(--green-600); color: #fff; }
.stepdot.is-done .n { background: var(--gold-500); color: #fff; }
.stepline { margin-top: 4px; }
.stepline__track { height: 6px; border-radius: var(--r-pill); background: var(--slate-100); overflow: hidden; }
.stepline__fill { height: 100%; width: 25%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--green-500), var(--gold-500)); transition: width .4s var(--ease); }
.pane { padding: 24px; display: grid; gap: 18px; }
.pane .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.idcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.idcard { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--slate-200); background: var(--surface); cursor: pointer; text-align: start; }
.idcard.is-on { border-color: var(--green-500); background: var(--green-50); box-shadow: var(--ring); }
.idcard .ric { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.idcard .ric svg { width: 22px; height: 22px; }
.idcard .ic-t { font-weight: 800; color: var(--ink-900); }
.idcard .ic-d { font-size: var(--fs-xs); color: var(--ink-500); }
.upload { border: 1.5px dashed var(--green-300); background: var(--green-50); border-radius: var(--r); padding: 20px; text-align: center; color: var(--green-800); }
.upload svg { width: 30px; height: 30px; margin: 0 auto 6px; opacity: .8; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-600); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-600); flex: none; }
.summary { border-radius: var(--r-lg); border: 1px solid var(--green-100); background: linear-gradient(180deg, var(--green-50), #fff); padding: 18px; display: grid; gap: 10px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.summary__row.total { border-top: 1px dashed var(--slate-200); padding-top: 10px; font-weight: 900; font-size: var(--fs-md); }
.summary__row .money { font-weight: 900; }
.railpick { display: grid; gap: 12px; }
.rail { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--slate-200); background: var(--surface); cursor: pointer; }
.rail.is-on { border-color: var(--green-500); background: var(--green-50); box-shadow: var(--ring); }
.rail .ric { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, var(--green-500), var(--green-700)); color: #fff; }
.rail .ric svg { width: 24px; height: 24px; }
.rail .grow { flex: 1; min-width: 0; }
.rail .rt { font-weight: 800; color: var(--ink-900); }
.rail .rd { font-size: var(--fs-xs); color: var(--ink-500); }
.rail .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--slate-300); flex: none; display: grid; place-items: center; }
.rail.is-on .radio { border-color: var(--green-600); }
.rail.is-on .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--green-600); }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink-700); }
.check svg { width: 20px; height: 20px; color: var(--green-600); flex: none; }
.success { text-align: center; gap: 18px; }
.success__ic { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--green-400), var(--green-700)); box-shadow: 0 0 0 10px var(--green-50); }
.success__ic svg { width: 42px; height: 42px; }
.mock-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 800; padding: .25rem .6rem; border-radius: var(--r-pill); background: var(--slate-100); color: var(--ink-500); }
.cross-links { display: flex; gap: 12px; flex-wrap: wrap; }
.cross-links a { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 14px; padding: 18px; }
.cross-links .ric { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.cross-links .ric svg { width: 24px; height: 24px; }
.cross-links .ct { font-weight: 800; color: var(--ink-900); }
.cross-links .cd { font-size: var(--fs-xs); color: var(--ink-500); }

/* Responsive */
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
  .gift-grid { grid-template-columns: 1fr; }
  .gift-form { position: static; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .steps-row { flex-direction: column; }
  .kpis { grid-template-columns: 1fr; }
  .pane .grid2 { grid-template-columns: 1fr; }
  .idcards { grid-template-columns: 1fr; }
  .govbar { grid-template-columns: 92px 1fr; }
  .govbar__val { grid-column: 2; }
  .cert__grid { grid-template-columns: 1fr 1fr; }
}

/* Print — certificate only */
@media print {
  .site-header, .site-footer, .pagehead, .gift-form, .skip-link, .toast-wrap { display: none !important; }
  body { background: #fff; }
  .gift-grid { display: block; }
  .cert-wrap { overflow: visible; }
  .cert { box-shadow: none; border-color: #c8a24a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================================
   CARD-3 — governorates hub + marketplace (Lane B "Modernized")
   ===================================================================== */
/* ---- governorate hub ---- */
.govbar-top { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.govtile { display: flex; align-items: center; gap: 12px; text-align: start; cursor: pointer;
  padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--slate-200);
  box-shadow: var(--sh-1); color: var(--ink-900); font: inherit; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.govtile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--green-300); }
.govtile:focus-visible { outline: var(--focus); }
.govtile__ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: var(--green-50); color: var(--green-700); }
.govtile__ic svg { width: 22px; height: 22px; }
.govtile__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.govtile__name { font-weight: 800; font-size: var(--fs-md); line-height: 1.1; }
.govtile__meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-500); font-weight: 700; }
.govtile__code { font-weight: 800; color: var(--green-700); background: var(--green-50); padding: .1rem .4rem; border-radius: var(--r-pill); }
.govtile.is-sel { border-color: var(--green-500); box-shadow: 0 0 0 2px var(--green-500), var(--sh-2); }
.govtile.is-sel .govtile__ic { background: var(--green-600); color: #fff; }

/* ---- shared: segmented chips / modes ---- */
.filters__row { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters__lbl { font-size: var(--fs-xs); font-weight: 800; color: var(--ink-500); min-width: 96px; }
.chip { border: 1px solid transparent; cursor: pointer; font: inherit; color: var(--ink-700); background: var(--slate-100); }
.chip:hover { border-color: var(--slate-300); }
.chip.is-on { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.chip.is-on svg { color: #fff; }
.modeseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.modeseg input { position: absolute; opacity: 0; pointer-events: none; }
.modeseg label { display: grid; place-items: center; text-align: center; cursor: pointer; padding: .55rem .3rem;
  border-radius: var(--r-sm); border: 1px solid var(--slate-200); background: var(--surface);
  font-size: var(--fs-xs); font-weight: 800; color: var(--ink-700); transition: all .15s var(--ease); }
.modeseg label:hover { border-color: var(--green-300); }
.modeseg input:checked + label { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.modeseg input:focus-visible + label { outline: var(--focus); }

/* ---- marketplace cards ---- */
.mk-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk__price { font-size: var(--fs-lg); }
.mk__cta { margin-top: auto; }
.mk__seller { align-items: center; }
.mk__seller-name { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-700); text-align: end; min-width: 0; }
.mk__views { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: var(--fs-xs); font-weight: 700; }
.mk__views svg { color: var(--slate-400); }
.mk .auc__body { gap: 10px; }

/* ---- my offers list ---- */
.offer-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px 16px; align-items: center;
  padding: 14px 4px; border-top: 1px solid var(--line); }
.offer-row:first-child { border-top: 0; }
.offer-row__main { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.offer-row__amt { text-align: end; }
.offer-row__meta { grid-column: 1 / -1; color: var(--ink-500); font-size: var(--fs-xs); font-weight: 700; order: 3; }
.offer-row .btn { order: 3; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .mk-forms { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .offer-row { grid-template-columns: 1fr auto; }
  .filters__lbl { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .govtile, .modeseg label, .chip { transition: none; }
  .govtile:hover { transform: none; }
}

/* ---- S5: hero banner carousel + video slot (PO DIRECTIVE V2 §5) ---- */
.hero { position: relative; }
.carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background-size: cover; background-position: center; }
.carousel__slide.is-on { opacity: 1; }
/* dark overlay for text contrast */
.carousel__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,39,31,.72), rgba(16,39,31,.55) 60%, rgba(16,39,31,.8)); }
/* gradient fallbacks until driver delivers photos (assets/img/<slug>.jpg) */
.carousel__slide[data-slide="damascus"] { background-image: linear-gradient(180deg,#2a4a3e,#163a2d); }
.carousel__slide[data-slide="aleppo"] { background-image: linear-gradient(180deg,#3b5248,#c8a24a 140%); }
.carousel__slide[data-slide="palmyra"] { background-image: linear-gradient(180deg,#33503f,#1d4636); }
.carousel__slide[data-slide="euphrates"] { background-image: linear-gradient(180deg,#2c4a44,#123a33); }
.hero > .container, .hero > .hero__grain { position: relative; z-index: 1; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; pointer-events: none; }
