/* WeBuyAnyLead.com — clean white conversion skin.
 * Modelled on the webuyanycar.com design language: pure white ground, one
 * solid green, green-biased charcoal text, system fonts, soft card shadows.
 * Discord blurple survives ONLY on .btn-discord.
 */

/* ------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --green: #039738;       /* THE green — CTAs, accents */
  --green-dark: #027a2e;  /* hover / pressed */
  --green-tint: #e7f5ec;  /* soft green fill */
  --ink: #324e37;         /* green-biased dark charcoal text */
  --ink-soft: #5b6f60;    /* secondary text */
  --bg: #ffffff;          /* page ground */
  --band: #f4f8f5;        /* alternating light band */
  --line: #e3e9e4;        /* hairlines, borders */
  --card: #ffffff;        /* card surface */

  --good: #039738;
  --warn: #b7791f;
  --warn-deep: #8a5a14;   /* warn text at readable contrast */
  --bad: #c1122f;
  --info: #1d6fd1;
  --blurple: #5865F2;     /* Discord buttons ONLY */

  --green-soft: rgba(3, 151, 56, 0.10);
  --good-soft: rgba(3, 151, 56, 0.10);
  --warn-soft: rgba(183, 121, 31, 0.12);
  --bad-soft: rgba(193, 18, 47, 0.08);
  --info-soft: rgba(29, 111, 209, 0.09);
  --wash: rgba(50, 78, 55, 0.035);

  --font-body: "Segoe UI", SegoeUI, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Consolas, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.9, 0.1, 1);
  --radius: 6px;
  --shadow-card: 0 1px 3px rgba(50, 78, 55, 0.07);
  --shadow-float: 0 8px 28px rgba(50, 78, 55, 0.12);
}

/* Admin console: same tokens on a quietly grey-tinted light variant, so the
 * back office is distinguishable but stays clean and light. */
body.admin-dark {
  color-scheme: light;
  --bg: #f3f5f4;
  --band: #eaeeec;
  --line: #d9e0da;
  --wash: rgba(50, 78, 55, 0.05);
}

/* ------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  /* full-bleed bands overshoot by the scrollbar width — never allow x-scroll */
  overflow-x: hidden;
  overflow-x: clip;
}
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden; /* full-bleed bands overshoot by the scrollbar width */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.admin-dark { font-size: 14px; }
::selection { background: var(--green); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.mono { font-family: var(--font-mono); font-size: 0.92em; font-variant-numeric: tabular-nums; }
.link { color: var(--green); font-weight: 600; }
.link:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.req { color: var(--bad); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* legacy eyebrow register — kept harmless */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--green-dark); margin: 0 0 14px;
}

#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ------------------------------------------------ header */
#header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; gap: 22px;
  padding: 12px 24px;
}
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; }
.wordmark img { height: 34px; width: auto; display: block; }
.wm-accent { color: var(--green); } /* legacy, harmless */
.main-nav { display: flex; gap: 2px; }
.main-nav a {
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.12s, box-shadow 0.12s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--green-dark); box-shadow: inset 0 -2px 0 var(--green); }
.nav-badge {
  background: var(--green); color: #fff;
  font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  min-width: 18px; padding: 1px 6px; text-align: center; line-height: 1.5;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pill {
  background: var(--green-tint); border: 1px solid rgba(3, 151, 56, 0.25);
  color: var(--green-dark); font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: var(--band); border: 1px solid var(--line);
  display: inline-grid; place-items: center; flex: 0 0 30px;
  color: var(--ink-soft); font-weight: 700; font-size: 12.5px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback { background: var(--green-tint); color: var(--green-dark); }

/* ------------------------------------------------ layout */
.view {
  flex: 1; width: 100%;
  max-width: 1060px; margin: 0 auto;
  padding: 40px 24px 80px;
  outline: none;
}
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 6px; }
.page-loading {
  color: var(--ink-soft); text-align: center; padding: 60px 0;
  font-size: 14px;
}
.back-link { display: inline-block; margin-bottom: 10px; font-size: 13.5px; }

.footer { border-top: 1px solid var(--line); margin-top: auto; background: var(--band); }
.footer-inner {
  max-width: 1060px; margin: 0 auto; padding: 24px;
  color: var(--ink-soft); font-size: 13px; text-align: center;
}
.footer-inner p { margin: 0; }
.footer-icons { display: block; height: 26px; width: auto; margin: 0 auto 12px; }

/* ------------------------------------------------ cards */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.empty-card { text-align: center; padding: 48px 24px; }
.empty-card .btn { margin-top: 8px; }

/* review state recolours the card's left edge */
.basket-item.warned { border-left: 3px solid var(--bad); }
.st-approved { border-left: 3px solid var(--good); }
.st-rejected { border-left: 3px solid var(--bad); }
.st-pending { border-left: 3px solid var(--warn); }
.reject-card { border-left: 3px solid var(--bad); }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 10px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; line-height: 1.35;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:hover:not(:disabled) { border-color: var(--ink-soft); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: #fff; border: 1px solid var(--green); color: var(--green); }
.btn-ghost:hover:not(:disabled) {
  background: var(--green-tint); border-color: var(--green-dark); color: var(--green-dark);
}
.btn-danger { background: transparent; border-color: transparent; color: var(--bad); }
.btn-danger:hover:not(:disabled) { border-color: var(--bad); background: var(--bad-soft); }
.btn-sm { padding: 6px 12px; font-size: 13.5px; }
.btn-lg { padding: 12px 26px; font-size: 16px; }
.btn-xl { padding: 14px 30px; font-size: 17px; }
.btn-discord { background: var(--blurple); border-color: var(--blurple); color: #fff; }
.btn-discord:hover:not(:disabled) { background: #4752c4; border-color: #4752c4; }
.btn-discord svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-sm svg { width: 15px; height: 15px; flex: 0 0 15px; }

/* ------------------------------------------------ forms */
input[type="text"], input[type="number"], input[type="file"], select, textarea, .input {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius); padding: 10px 12px; font-size: 15px;
  font-family: var(--font-body); width: 100%;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input[type="number"] { font-variant-numeric: tabular-nums; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.input-asin {
  text-transform: uppercase; font-family: var(--font-mono);
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label, .field > span.muted {
  font-weight: 600; font-size: 13px; color: var(--ink-soft);
}
.hint { color: var(--ink-soft); font-size: 13px; }
.form-card { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr 130px; gap: 18px; }
.form-grid .field { margin-bottom: 6px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.check-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 14.5px; padding: 8px 2px; color: var(--ink);
}
.check-row input { width: 16px; height: 16px; accent-color: var(--green); }

/* UK-plug attestation on tech basket items */
.plug-row {
  margin-top: 6px; padding: 8px 10px; border-radius: var(--radius);
  font-size: 13.5px; border: 1px solid transparent;
}
.plug-row.plug-missing {
  background: var(--warn-soft); border-color: var(--warn); color: var(--warn-deep);
}
.plug-row.plug-missing strong { color: var(--warn-deep); }
.plug-row.plug-flash { animation: plugFlash 1.1s ease 2; }
@keyframes plugFlash {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.35); } /* --warn at 35% */
}
.radio-row {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; transition: border-color 0.12s, background 0.12s;
}
.radio-row:hover { border-color: var(--green); background: var(--green-tint); }
.radio-row input { width: 16px; height: 16px; accent-color: var(--green); }

/* segmented control (VAT toggle) */
.seg {
  display: inline-flex; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2px;
}
.seg-btn {
  border: 0; background: none; color: var(--ink-soft); padding: 6px 20px;
  border-radius: 4px; font-weight: 600; font-size: 14px;
}
.seg-btn.active { background: var(--green); color: #fff; }

/* ------------------------------------------------ tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
  padding: 10px 14px 12px; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--green-dark); border-bottom-color: var(--green); }
.tab-body { margin-top: 2px; }

/* ------------------------------------------------ dropzone */
.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: #fff; padding: 26px 20px; text-align: center;
  cursor: pointer; transition: border-color 0.12s, background 0.12s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--green); }
.dropzone.drag { border-color: var(--green); background: var(--green-tint); }
.dropzone.disabled { opacity: 0.45; cursor: not-allowed; }
.dropzone.has-file { border-style: solid; border-color: var(--green); }
.dz-label { font-weight: 600; color: var(--ink); }
.dz-sub { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.dz-file {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--band); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px 8px 6px 14px; font-size: 13px;
}
.dz-name {
  font-family: var(--font-mono); font-weight: 500;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dz-size { color: var(--ink-soft); font-family: var(--font-mono); font-size: 12px; }
.dz-clear {
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  width: 22px; height: 22px; border-radius: 50%; line-height: 1; font-size: 14px;
  display: grid; place-items: center; padding: 0;
}
.dz-clear:hover { color: var(--bad); border-color: var(--bad); }

/* ------------------------------------------------ chips */
.chip {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 10px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 12px; line-height: 1.6;
  white-space: nowrap;
}
.chip.good { background: var(--good-soft); color: var(--green-dark); border-color: rgba(3, 151, 56, 0.25); }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(193, 18, 47, 0.25); }
.chip.warn { background: var(--warn-soft); color: var(--warn-deep); border-color: rgba(183, 121, 31, 0.3); }
.chip.info, .chip.pending { background: var(--info-soft); color: var(--info); border-color: rgba(29, 111, 209, 0.25); }
.chip.muted { background: var(--wash); color: var(--ink-soft); border-color: var(--line); }

.stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; }
.star { color: var(--line); }
.star.on { color: var(--warn); }
.tick { color: var(--good); font-weight: 800; }

/* every-price footnote */
.review-note { color: var(--ink-soft); font-size: 12.5px; margin: 10px 0 0; }
.price-caption { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }

/* ------------------------------------------------ banners */
.banner {
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px;
  margin: 16px 0 0;
  border: 1px solid var(--line); border-left: 3px solid var(--ink-soft);
  background: #fff;
}
.banner-red { border-left-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.banner-info { border-left-color: var(--info); background: var(--info-soft); color: var(--info); }
.banner-warn { border-left-color: var(--warn); background: var(--warn-soft); color: var(--warn-deep); }
.banner.small { font-size: 13px; padding: 8px 12px; }
.banner .detail-actions { margin-top: 10px; }

/* ------------------------------------------------ landing: hero */
.hero { padding: 36px 0 28px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 40px; align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700; line-height: 1.2;
  margin: 0 0 14px;
}
.hero-copy { min-width: 0; }
.hero-sub { color: var(--ink-soft); font-size: 18px; max-width: 520px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hero .review-note { text-align: left; }
.hero-art { text-align: center; }
.hero-icons {
  max-width: 420px; width: 100%; height: auto; display: inline-block;
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* landing: shared section title */
.section-title { font-size: 28px; text-align: center; margin: 0 0 28px; }

/* landing: 3 simple steps */
.steps-section { padding: 36px 0 8px; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin: 0 0 12px;
}
.step { text-align: left; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }

/* landing: small print */
.landing-notes {
  background: var(--band); border: 1px solid var(--line);
  border-radius: 8px; padding: 24px 28px; margin-top: 44px;
}
.landing-notes h3 { font-size: 16px; margin-bottom: 4px; }
.landing-notes ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-soft); }
.landing-notes li { margin-bottom: 7px; }

/* ------------------------------------------------ landing: benefits band */
.benefits {
  background: var(--band);
  margin: 40px calc(50% - 50vw) 0;
  padding: 44px calc(50vw - 50%) 48px;
}
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 22px;
}
.benefit-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-tint); color: var(--green);
  margin-bottom: 12px;
}
.benefit-icon svg { width: 24px; height: 24px; display: block; }
.benefit-title { font-size: 16px; margin: 0 0 6px; }
.benefit-body { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ------------------------------------------------ landing: FAQ accordion */
.faq { padding: 44px 0 4px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: none; border: 0; text-align: left;
  padding: 16px 4px; color: var(--ink);
  font-size: 16px; font-weight: 600; line-height: 1.45;
}
.faq-q:hover { color: var(--green-dark); }
.faq-prefix { color: var(--green); font-weight: 700; flex: 0 0 auto; }
.faq-q-text { flex: 1; min-width: 0; }
.faq-toggle {
  flex: 0 0 auto; width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--green); font-size: 20px; font-weight: 600; line-height: 1;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.faq-item.open .faq-toggle { background: var(--green); color: #fff; border-color: var(--green); }
.faq-a { padding: 0 44px 18px 36px; color: var(--ink-soft); font-size: 15px; }
.faq-a p { margin: 0; }

/* ------------------------------------------------ ticker tape (M5) */
.tape {
  overflow: hidden; white-space: nowrap;
  background: var(--green-tint);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin: 32px 0 0; padding: 9px 0;
}
.tape-track { display: inline-flex; gap: 40px; padding: 0 20px; align-items: baseline; }
.tape-track.drift { animation: tape-drift 45s linear infinite; will-change: transform; }
.tape:hover .tape-track.drift { animation-play-state: paused; }
.tape-track:not(.drift) { width: 100%; flex-wrap: wrap; white-space: normal; justify-content: center; gap: 14px 32px; }
@keyframes tape-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape-item { display: inline-flex; gap: 8px; align-items: baseline; }
.tape-k {
  font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green-dark);
}
.tape-v {
  font-size: 13px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------ stamps (green) */
.stamp {
  display: inline-block; position: relative;
  padding: 5px 12px 4px;
  border: 2px solid currentColor; border-radius: 4px;
  color: var(--green);
  font-weight: 800; font-size: 13px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.14em;
  transform: rotate(-4deg);
  opacity: 0;
  user-select: none;
}
.stamp::after { /* inner ring of the double-ring stamp */
  content: ""; position: absolute; inset: 2px;
  border: 1px solid currentColor; border-radius: 2px; pointer-events: none;
}
.stamp.stamp-set { opacity: 0.92; }
.stamp.stamp-in { animation: stamp-slam 0.25s var(--ease) forwards; }
.stamp-locked { color: var(--green); }
.stamp-paid { color: var(--green-dark); }
.stamp-xl { font-size: 22px; padding: 8px 18px 7px; border-width: 3px; letter-spacing: 0.18em; }
.stamp-xl::after { inset: 3px; }
@keyframes stamp-slam {
  0% { opacity: 0; transform: rotate(-9deg) scale(1.3); }
  100% { opacity: 0.92; transform: rotate(-4deg) scale(1); }
}
.paper-shake { animation: paper-shake 0.22s linear; }
@keyframes paper-shake {
  25% { transform: translate(1px, -2px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 1px); }
}

/* approval cascade (M3) */
.stamp-drop { opacity: 0; animation: stamp-drop 0.2s var(--ease) forwards; }
@keyframes stamp-drop {
  from { opacity: 0; transform: translateY(-6px) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
.stamp-drop-set { opacity: 1; }

/* paper burst (M4) — green-tinted squares */
.paper-burst { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.paper-bit {
  position: absolute; top: -14px; width: 5px; height: 12px; opacity: 0.9;
  animation: paper-fall 1.2s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
.pb-bid { background: var(--green); }
.pb-settled { background: var(--green-dark); }
.pb-paper { background: var(--green-tint); border: 1px solid rgba(3, 151, 56, 0.35); }
@keyframes paper-fall {
  to { transform: translate(var(--dx, 0), 150px) rotate(var(--rot, 200deg)); opacity: 0; }
}
.paid-moment { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.paid-moment .paid-cta { margin-left: auto; }

/* ------------------------------------------------ journey tape (M2) — green dots */
.journey { position: relative; margin: 16px 0 6px; padding: 6px 4px 4px; }
.jt-line {
  position: absolute; left: 10px; right: 10px; top: 11px;
  border-top: 2px solid var(--line); display: block;
}
.jt-fill {
  position: absolute; left: 0; top: -2px; height: 2px; width: 0;
  background: var(--green); display: block;
  transition: width 0.6s var(--ease);
}
.jt-instant .jt-fill { transition: none; }
.jt-stations { position: relative; display: flex; justify-content: space-between; }
.jt-st { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 36px; }
.jt-node {
  width: 12px; height: 12px; display: block;
  background: #fff; border: 2px solid var(--ink-soft);
  border-radius: 50%;
}
.jt-st.done .jt-node { background: var(--green); border-color: var(--green); }
.jt-st.active .jt-node { border-color: var(--green); animation: jt-pulse 2s ease-in-out infinite; }
.jt-label {
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); font-style: normal;
}
.jt-st.done .jt-label { color: var(--green-dark); font-weight: 700; animation: jt-flap 0.3s var(--ease); transform-origin: top; }
.jt-instant .jt-st.done .jt-label { animation: none; }
.journey-bust .jt-st.active .jt-node { border-color: var(--bad); background: var(--bad-soft); animation: none; }
.journey-bust .jt-fill { background: var(--bad); }
.journey-compact { margin: 10px 0 2px; }
.journey-compact .jt-label { font-size: 10px; }
.journey-compact .jt-node { width: 9px; height: 9px; }
.success-card .journey { width: 100%; max-width: 380px; }
@keyframes jt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(3, 151, 56, 0.30); }
  50% { box-shadow: 0 0 0 5px rgba(3, 151, 56, 0); }
}
@keyframes jt-flap {
  from { transform: rotateX(90deg); opacity: 0; }
  to { transform: rotateX(0); opacity: 1; }
}

/* ------------------------------------------------ quote card */
.quote-area { margin-top: 4px; }
.quote-loading {
  display: flex; align-items: center; gap: 12px; color: var(--ink-soft);
  font-size: 14px;
}
.quote-card { padding: 26px; }
.q-product { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 6px; }
.q-product-meta { min-width: 0; }
.q-title { font-weight: 650; font-size: 16px; }
.q-sub { font-size: 13px; margin-top: 2px; }
.q-asin { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; }
.thumb {
  width: 46px; height: 46px; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  display: inline-grid; place-items: center; flex: 0 0 46px;
  color: var(--ink-soft); font-weight: 800; font-size: 16px;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumb-lg { width: 72px; height: 72px; flex: 0 0 72px; }

.q-offer {
  display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 18px; padding-top: 20px;
}
.q-offer-main { min-width: 0; }
.q-offer-label {
  font-weight: 600; color: var(--ink-soft); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.q-offer-price {
  font-weight: 700;
  font-size: 44px; letter-spacing: -0.01em; line-height: 1.15;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.q-price-num { font-variant-numeric: tabular-nums; }
.q-tick-arrow {
  display: inline-block; color: var(--good); font-size: 20px;
  margin-left: 8px; vertical-align: 8px;
  opacity: 0; transform: scale(0);
  animation: tick-pop 0.18s var(--ease) 0.95s forwards;
}
@keyframes tick-pop { to { transform: scale(1); opacity: 1; } }
.q-offer-side { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.q-asked { font-size: 15px; }
.q-asked strong { font-variant-numeric: tabular-nums; }
.q-badges { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.q-review-note { margin-top: 14px; }
.q-stamp-slot {
  margin-left: auto; display: flex; flex-direction: column;
  align-items: flex-end; gap: 10px; padding-top: 4px;
}
.q-lock-line {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-soft); white-space: nowrap;
}
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.kv {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 2px; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.kv .k { color: var(--ink-soft); }
.kv .v {
  font-family: var(--font-mono); font-weight: 500;
  font-variant-numeric: tabular-nums; text-align: right;
  overflow-wrap: anywhere;
}
.q-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.vat-note { margin: 8px 0 0; }

.added-card { text-align: center; padding: 40px 24px; border-left: 3px solid var(--good); }
.added-tick {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  border: 2px solid var(--good); background: var(--good-soft); color: var(--good);
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
}
.added-tick.big { width: 64px; height: 64px; font-size: 32px; }

/* rejection card */
.reject-card { text-align: center; }
.reject-card .reject-mark {
  width: 46px; height: 46px; margin: 4px auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; font-weight: 700;
  color: var(--bad); border: 2px solid var(--bad); background: var(--bad-soft);
}
.reject-card h3 { margin: 0 0 6px; }
.reject-card p { margin: 0 auto 6px; max-width: 46ch; }

/* ------------------------------------------------ CSV job */
.csv-intro { margin-bottom: 18px; }
.csv-intro .hint { margin-top: 6px; }
.job-area { margin-top: 4px; }
.job-card { padding: 24px; }
.job-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.job-head h3 { margin: 0; }
.job-head .muted { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.progress {
  height: 8px; border-radius: 999px; background: var(--band);
  border: 1px solid var(--line); overflow: hidden; margin: 14px 0 12px;
}
.progress-fill { height: 100%; background: var(--green); transition: width 0.4s var(--ease); }
.progress-fill.fail { background: var(--bad); }
.job-stats { display: flex; gap: 8px; margin-bottom: 6px; }

/* ------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
.table-card { padding: 8px 8px 16px; }
.table-card .review-note { padding: 0 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; font-size: 14px; }
thead th {
  font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.05em;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) { background: var(--wash); }
tbody tr:last-child { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.rowlink { cursor: pointer; transition: background 0.1s; }
tr.rowlink:hover { background: var(--green-tint); }
tr.rowlink:focus-visible { background: var(--green-tint); outline: 2px solid var(--green); outline-offset: -2px; }
body.admin-dark th, body.admin-dark td { font-size: 13px; padding: 9px 12px; }

/* ------------------------------------------------ basket */
.vat-card { margin-bottom: 20px; padding: 18px 24px; }
.vat-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.basket-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.basket-item { position: relative; overflow: hidden; padding: 20px 22px; }
.ribbon {
  position: absolute; top: 0; right: 0;
  background: var(--bad); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 12px; border-radius: 0 var(--radius) 0 var(--radius);
}
.bi-grid {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 18px; align-items: center;
}
.bi-meta { min-width: 0; }
.bi-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bi-sub { font-size: 13px; margin-top: 2px; }
.bi-chips { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.bi-prices { text-align: right; min-width: 140px; }
.bi-price-row { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; border-bottom: 1px solid var(--line); }
.bi-price-row:last-of-type { border-bottom: 0; }
.bi-asked { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bi-offered {
  font-weight: 700; font-size: 17px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.bi-prices .stars { margin-top: 4px; }
.bi-prices .price-caption { text-align: right; }
.bi-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.bi-vat { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.vat-select {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 5px 8px; font-size: 13px; font-family: var(--font-body);
  width: auto;
}
.vat-select:disabled { opacity: 0.5; }

/* totals bar */
.totals-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 20px 24px;
  position: sticky; bottom: 14px; z-index: 10;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-float);
}
.totals { display: flex; gap: 34px; flex-wrap: wrap; }
.total-cell { min-width: 0; }
.total-k {
  font-weight: 600; color: var(--ink-soft); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.total-v {
  font-weight: 700; font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.total-v.accent { color: var(--green-dark); }
.totals-side { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.totals-side .price-caption { margin: 0; }

/* ------------------------------------------------ success / detail */
.success-wrap { max-width: 560px; margin: 30px auto 0; }
.success-card { text-align: center; padding: 44px 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.success-card h1 { font-size: 26px; }
.poll-hint { display: inline-flex; align-items: center; gap: 8px; }
.detail-head { margin-bottom: 20px; position: relative; }
.detail-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.basket-list.readonly .bi-actions { display: none; }

/* ------------------------------------------------ modal */
#modal-root.show {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(50, 78, 55, 0.45); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  width: 480px; max-width: 100%; max-height: 90vh; overflow: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(50, 78, 55, 0.22);
}
.modal-head {
  padding: 20px 24px 14px;
  font-weight: 700; font-size: 18px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.modal-body { padding: 16px 24px 8px; }
.modal-foot { padding: 14px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; }
.how-offers-list { margin: 0 0 14px; padding-left: 20px; }
.how-offers-list li { margin: 0 0 12px; line-height: 1.5; }

/* ------------------------------------------------ toast */
#toast-root {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--ink-soft);
  color: var(--ink);
  padding: 12px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  font-weight: 600; font-size: 13.5px; max-width: 360px;
  transition: opacity 0.5s;
}
.toast.ok { border-left-color: var(--good); }
.toast.err { border-left-color: var(--bad); }
.toast.fade { opacity: 0; }

/* ------------------------------------------------ spinner */
.spinner {
  width: 15px; height: 15px; flex: 0 0 15px;
  border: 2px solid var(--line); border-top-color: var(--green);
  border-radius: 50%; display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------ admin console + ship wizard */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.section-h {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink); margin: 24px 0 10px;
}
.section-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card .section-h:first-child { margin-top: 0; }
.admin-item { margin-bottom: 12px; }
.admin-item .kv-grid { margin: 8px 0; }
.admin-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.admin-controls label { white-space: nowrap; }
.input-sm {
  padding: 6px 10px; font-size: 13px; border-radius: var(--radius); max-width: 160px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  font-family: var(--font-body);
}
input.input-sm[type="number"], input.input-sm[type="text"] { font-variant-numeric: tabular-nums; font-size: 13px; }
.input-sm:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
select.input-sm { max-width: 210px; }
.ship-form {
  display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px; margin: 12px 0 4px;
}
.ship-form .field { margin-bottom: 0; }
.placement-option {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin: 8px 0;
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: var(--radius); background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.placement-option:hover { border-color: var(--green); border-left-color: var(--green); box-shadow: var(--shadow-card); }
.placement-option .po-meta { min-width: 0; }

/* ship-wizard progress chips */
.chips-row.manifest {
  gap: 0; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); overflow: hidden;
}
.chips-row.manifest .chip {
  border: 0; border-right: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink-soft);
  padding: 7px 12px 6px;
}
.chips-row.manifest .chip:last-child { border-right: 0; }
.chips-row.manifest .chip.good {
  background: var(--green-tint); color: var(--green-dark); font-weight: 700;
}
.chips-row.manifest .chip.good::before { /* progress dot */
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); display: inline-block; margin-right: 7px;
  align-self: center;
}
.chips-row.manifest .chip.muted { opacity: 0.6; }
.chips-row.manifest .chip.warn { background: var(--warn-soft); }

/* ------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field-narrow { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: 2; }
  .hero-icons { max-width: 320px; }
  .kv-grid { grid-template-columns: 1fr; }
  .bi-grid { grid-template-columns: auto 1fr; }
  .bi-prices { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; min-width: 0; }
  .bi-prices .price-caption { width: 100%; text-align: left; }
  .bi-price-row { border-bottom: 0; }
  .bi-actions { grid-column: 1 / -1; flex-direction: row; }
  .ship-form { grid-template-columns: 1fr 1fr; }
  .q-stamp-slot { margin-left: 0; align-items: flex-start; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; }
  .wordmark img { height: 28px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 0; }
  .main-nav a { flex: 1; justify-content: center; padding: 8px 4px; font-size: 13.5px; }
  .header-right { gap: 8px; }
  .pill { display: none; }
  .view { padding: 24px 16px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field-narrow { grid-column: auto; }
  h1 { font-size: 24px; }
  .section-title { font-size: 22px; }
  .hero { padding: 20px 0 16px; }
  .hero-sub { font-size: 16px; }
  .hero-icons { max-width: 260px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits { padding-top: 32px; padding-bottom: 36px; }
  .faq-q { font-size: 15px; }
  .faq-a { padding: 0 8px 16px 28px; }
  .q-offer { gap: 16px; }
  .q-offer-price { font-size: 36px; }
  .totals { gap: 18px; }
  .totals-bar { position: static; }
  .card { padding: 18px; }
  .quote-card { padding: 20px 18px; }
  .stamp-xl { font-size: 17px; }
}

/* ------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .spinner { animation: none !important; border-top-color: var(--green); }
  .tape-track.drift {
    animation: none !important; transform: none !important;
    width: 100%; flex-wrap: wrap; white-space: normal; justify-content: center; gap: 14px 32px;
  }
  .hero-icons { animation: none !important; }
  .stamp { opacity: 0.92; transform: rotate(-4deg); }
  .stamp-drop { opacity: 1; }
  .q-tick-arrow { opacity: 1; transform: scale(1); }
  .jt-st.active .jt-node { animation: none !important; box-shadow: none; }
  .paper-bit { display: none; }
  .paper-shake { animation: none !important; }
}

/* ---- Business info form + segmented controls + attestation ---- */
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 4px; }
.seg-btn {
  padding: 9px 14px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: border-color .12s, background .12s, color .12s;
}
.seg-btn:hover { border-color: var(--green); }
.seg-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.cond { margin: 2px 0 6px; }
.biz-form { max-height: 68vh; overflow-y: auto; }
.biz-group { padding: 14px 0; border-top: 1px solid var(--line); }
.biz-group:first-of-type { border-top: 0; }
.biz-legend { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .04em; }
.biz-form .field { margin-bottom: 12px; }
.biz-form textarea { resize: vertical; }
.biz-modal, .modal.biz-modal { max-width: 560px; }
.attest-row { margin-top: 6px; padding: 12px; border: 1px solid var(--green);
  background: var(--green-tint); border-radius: 8px; }
.card-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
