.pagination { display:flex; align-items:center; justify-content:center; gap:1rem; margin-block:1rem; }
.pagination[hidden] { display:none; }

/* ==========================================================================
   BidMont — bidmont.me
   Design tokens + components. Mobile first, breakpoints at 640 / 900 / 1120.
   ========================================================================== */

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

:root {
  /* Brand */
  --red: #e11b22;
  --red-600: #c8161c;
  --red-700: #a91116;
  --red-50: #fef2f2;
  --red-100: #fde3e4;

  /* Neutrals */
  --ink: #101114;
  --ink-2: #2c2f36;
  --muted: #6b7280;
  --muted-2: #868e9a;
  --line: #e6e8ec;
  --line-2: #f0f1f4;
  --surface: #ffffff;
  --page: #f4f5f7;
  --tint: #fafbfc;

  --green: #16a34a;
  --green-50: #ecfdf3;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(16, 17, 20, .05);
  --sh-2: 0 4px 16px rgba(16, 17, 20, .07);
  --sh-3: 0 12px 32px rgba(16, 17, 20, .11);
  --sh-red: 0 8px 24px rgba(225, 27, 34, .22);

  --header-h: 68px;
  --gutter: 16px;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--red-100); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.shell { max-width: 1240px; margin: 0 auto; background: var(--surface); }
.section { padding-block: 36px; }
@media (min-width: 900px) { .section { padding-block: 52px; } }
.section--tight { padding-block: 24px; }
.stack { display: grid; gap: 14px; }
.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;
}
.is-hidden { display: none !important; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.h1 { font-size: clamp(30px, 7vw, 52px); font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(20px, 3.2vw, 26px); font-weight: 700; }
.h3 { font-size: 17px; font-weight: 700; }
.lead { color: var(--muted); font-size: 15px; max-width: 52ch; }
.red { color: var(--red); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.link-arrow {
  color: var(--red); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red); box-shadow: var(--sh-red); }
.btn--primary:hover { --btn-bg: var(--red-600); --btn-bd: var(--red-600); }
.btn--outline:hover { --btn-bd: var(--red); --btn-fg: var(--red); }
.btn--ghostred { --btn-fg: var(--red); --btn-bd: var(--red-100); background: #fff; }
.btn--ghostred:hover { background: var(--red-50); --btn-bd: var(--red); }
.btn--block { width: 100%; }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: var(--line-2); color: var(--muted);
}
.pill--verified { background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--sh-1); }
.pill--verified svg { color: var(--green); }
.pill--blue { background: #eef4ff; color: #2563eb; }
.pill--pop {
  background: var(--red); color: #fff; font-size: 10.5px;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px;
}
.credits-tag { color: var(--red); font-weight: 700; font-size: 12.5px; white-space: nowrap; }

/* ---------- Trust row ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.trust svg { color: var(--ink); flex: none; }

/* ---------- Icon circle ---------- */
.ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--red-50); color: var(--red);
}
.ic--lg { width: 52px; height: 52px; }
.ic--plain { background: transparent; color: var(--ink); width: auto; height: auto; }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { height: 26px; width: auto; }
@media (min-width: 900px) { .logo__img { height: 30px; } }
.ftr .logo__img { height: 30px; }

.nav { display: none; margin-left: 20px; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  position: relative; transition: color .18s ease;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.hdr__actions { display: none; margin-left: auto; gap: 10px; }
.burger {
  margin-left: auto; width: 42px; height: 42px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--ink);
}
.burger:hover { background: var(--line-2); }

@media (min-width: 1120px) {
  .nav, .hdr__actions { display: flex; }
  .burger { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s;
}
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer__bg { position: absolute; inset: 0; background: rgba(16, 17, 20, .45); }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(340px, 88vw);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.drawer__nav { padding: 10px 12px; display: grid; gap: 2px; }
.drawer__nav a {
  padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500;
}
.drawer__nav a:hover { background: var(--line-2); }
.drawer__nav a[aria-current="page"] { color: var(--red); font-weight: 600; background: var(--red-50); }
.drawer__foot { margin-top: auto; padding: 18px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: 28px 8px; }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero .h1 { margin-bottom: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 24px; }
.hero__cta .btn { flex: 1 1 auto; min-width: 150px; }

.hero__art { position: relative; }
.hero__art > img { width: 100%; border-radius: var(--r-lg); }

.float-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-3);
  padding: 8px; display: flex; gap: 9px;
  backdrop-filter: blur(4px);
}
.float-card img { width: 46px; height: 42px; border-radius: 7px; object-fit: cover; flex: none; }
.float-card__body { min-width: 0; display: grid; gap: 1px; }
.float-card b { font-size: 12px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float-card span { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.float-card .price { font-size: 12.5px; font-weight: 700; }
.float-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.float-card .price { white-space: nowrap; }
.float-card .credits-tag { font-size: 10.5px; }

.hero__floats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hero__floats > * { min-width: 0; }
.hero__floats .float-card { width: 100%; }
/* narrow two-up cards: let the credits tag drop below the price instead of spilling */
.hero__floats .row { flex-wrap: wrap; gap: 1px 8px; }

@media (min-width: 900px) {
  .hero { padding-block: 40px 16px; }
  .hero__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 36px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__floats { display: contents; }
  /* shrink-to-fit so long prices never spill outside the card */
  .hero__floats .float-card { position: absolute; width: max-content; max-width: 212px; }
  .float-card--a { top: 0; left: 0; }
  .float-card--b { top: 8%; right: 0; }
  .float-card--c { bottom: 2%; left: 2%; }
  .float-card--d { bottom: 1%; right: 0; }
}

/* ==========================================================================
   Cards / panels
   ========================================================================== */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px;
}
@media (min-width: 900px) { .panel { padding: 24px; } }
.panel--flat { background: var(--tint); }

/* Search bar */
.searchbar { display: grid; gap: 10px; }
.searchbar__field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; padding-left: 14px; overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.searchbar__field:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.searchbar__field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 0; font-size: 14px; background: none; }
.searchbar__field input::placeholder { color: var(--muted-2); }
.searchbar__btn {
  width: 46px; align-self: stretch; background: var(--red); color: #fff;
  display: grid; place-items: center; transition: background .18s ease;
}
.searchbar__btn:hover { background: var(--red-600); }
.searchbar__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.select {
  position: relative; display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.select select {
  appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: none;
  padding: 11px 34px 11px 12px; font-size: 13.5px; width: 100%; cursor: pointer; border-radius: var(--r-sm);
}
.select::after {
  content: ""; position: absolute; right: 13px; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}

@media (min-width: 900px) {
  .searchbar { grid-template-columns: minmax(0, 1fr) 190px 190px auto; align-items: stretch; }
  .searchbar__opts { display: contents; }
  .searchbar .btn-filters { align-self: stretch; }
}

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(8, 1fr); gap: 12px; } }
.cat {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: 14px 6px; display: grid; gap: 8px; justify-items: center; text-align: center;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}
.cat:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: var(--sh-2); }
.cat svg { color: var(--ink); transition: color .18s ease; }
.cat:hover svg { color: var(--red); }

/* ---------- Auction card ---------- */
.auction {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.auction:hover { box-shadow: var(--sh-3); transform: translateY(-3px); border-color: #dcdfe5; }
.auction__media { position: relative; aspect-ratio: 4 / 2.7; background: var(--line-2); }
.auction__media img { width: 100%; height: 100%; object-fit: cover; }
.auction__media .pill { position: absolute; top: 10px; left: 10px; }
.fav {
  position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center;
  color: var(--ink-2); box-shadow: var(--sh-1); transition: color .18s ease, transform .18s ease;
}
.fav:hover { color: var(--red); transform: scale(1.08); }
.fav[aria-pressed="true"] { color: var(--red); }
.fav[aria-pressed="true"] svg { fill: currentColor; }

.auction__body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.auction__partner {
  font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.auction__title { font-size: 14.5px; font-weight: 700; letter-spacing: -.015em; }
.auction__cat { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.auction__meta { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; }
.auction__meta .lbl { font-size: 10.5px; color: var(--muted); display: block; }
.auction__meta .val { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.auction__meta .val--sm { font-size: 12.5px; font-weight: 600; }
.auction__foot {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
}
.auction__foot .lbl { font-size: 11.5px; color: var(--muted); }

.grid-auctions { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-auctions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-auctions { grid-template-columns: repeat(3, 1fr); } }

/* Horizontal rail */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .rail { grid-auto-columns: 38%; } }
@media (min-width: 1000px) { .rail { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.rail--4 { }
@media (min-width: 1000px) { .rail--4 { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Steps (How it works)
   ========================================================================== */
.steps { display: grid; gap: 22px; position: relative; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__n { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.step p { font-size: 12.5px; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; align-items: center; gap: 10px; position: relative; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 26px; left: calc(50% + 40px); right: calc(-50% + 40px);
    border-top: 2px dotted #dfe2e7;
  }
  .step p { max-width: 26ch; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans { display: grid; gap: 14px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans--3 { grid-template-columns: repeat(3, 1fr); } .plans--4 { grid-template-columns: repeat(4, 1fr); } }

.plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 18px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.plan:hover { border-color: #d5d9df; box-shadow: var(--sh-2); }
.plan--pop { border-color: var(--red); box-shadow: 0 8px 28px rgba(225, 27, 34, .1); }
.plan--pop::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(225, 27, 34, .035), transparent 55%); pointer-events: none;
}
.plan__tag { position: absolute; top: -11px; right: 16px; }
.plan__name { font-size: 17px; font-weight: 700; }
.plan__desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price b { font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.plan__price span { font-size: 12.5px; color: var(--muted); }
.plan__feats { display: grid; gap: 9px; }
.plan__feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.plan__feats svg { color: var(--ink); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats--5 { grid-template-columns: repeat(5, 1fr); } }
.stat { display: flex; gap: 11px; align-items: center; }
.stat b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--muted); }

/* Feature strip */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { display: flex; gap: 11px; align-items: flex-start; }
.feature b { display: block; font-size: 13px; font-weight: 700; }
.feature span { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* Wallet */
.wallet {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.wallet:hover { border-color: var(--red); box-shadow: var(--sh-2); }
.wallet__lbl { font-size: 12px; color: var(--muted); }
.wallet__amt { font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.wallet__amt small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.wallet__sub { font-size: 12px; color: var(--muted); }

/* Usage box */
.usage { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.usage b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }

/* ==========================================================================
   Compare table
   ========================================================================== */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ctable { min-width: 640px; font-size: 12.5px; }
.ctable th, .ctable td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line-2); }
.ctable thead th { background: var(--tint); font-weight: 700; font-size: 12.5px; }
.ctable thead th small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; margin-top: 1px; }
.ctable th:first-child, .ctable td:first-child { text-align: left; color: var(--ink-2); font-weight: 500; }
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable tbody tr:hover td { background: #fcfcfd; }
.ctable .col-pop { background: rgba(225, 27, 34, .04); }
.ctable thead .col-pop { background: var(--red-50); color: var(--red); position: relative; }
.ctable .yes { color: var(--ink); }
.ctable .no { color: var(--muted-2); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 10px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: 10px 16px; } }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; text-align: left; font-size: 13.5px; font-weight: 600;
}
.faq__q svg { flex: none; color: var(--muted); transition: transform .22s ease; }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); color: var(--red); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 16px 15px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--tint);
  padding: 26px 20px; display: grid; gap: 16px;
}
.cta-banner__bg { position: absolute; inset: 0; z-index: 0; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .96) 42%, rgba(255, 255, 255, .35) 74%, rgba(255, 255, 255, .1) 100%);
}
.cta-banner__in { position: relative; z-index: 1; display: grid; gap: 16px; }
.cta-banner .btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .cta-banner { padding: 34px 36px; } .cta-banner__in { max-width: 60%; } }

/* Partner promo strip */
.promo {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; display: grid; gap: 18px;
}
.promo__items { display: grid; gap: 16px; }
@media (min-width: 760px) { .promo__items { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .promo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: center; gap: 30px; } }

/* Partner cards */
.partners { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partners > * { min-width: 0; }
.partner-card b { overflow-wrap: anywhere; }
@media (min-width: 900px) { .partners { grid-template-columns: repeat(4, 1fr); } }
.partner-card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 14px; display: grid; gap: 12px; }
.partner-card__top { display: flex; gap: 10px; align-items: center; }
.partner-card__logo {
  width: 40px; height: 40px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: -.04em;
  background: var(--line-2); color: var(--ink);
}
.partner-card b { font-size: 13px; }
.partner-card__nums { display: flex; gap: 18px; }
.partner-card__nums b { display: block; font-size: 15px; letter-spacing: -.02em; }
.partner-card__nums span { font-size: 11px; color: var(--muted); }

/* Trending categories */
.trend { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .trend { grid-template-columns: repeat(5, 1fr); } }
.trend__card { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.trend__card img { width: 100%; aspect-ratio: 5/3; object-fit: cover; transition: transform .35s ease; }
.trend__card:hover img { transform: scale(1.06); }
.trend__card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; color: #fff;
  background: linear-gradient(transparent, rgba(10, 11, 13, .82));
}
.trend__card b { display: block; font-size: 13px; }
.trend__card span { font-size: 11px; opacity: .85; }

/* ==========================================================================
   Auctions page — filters
   ========================================================================== */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1120px) { .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
.chip, .adm-chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  transition: all .18s ease;
}
.chip:hover, .adm-chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active, .adm-chip.is-active { background: var(--red-50); border-color: var(--red-100); color: var(--red); }
.chip svg, .adm-chip svg { flex: none; }
/* .adm-chip is a deliberate copy of .chip, not an alias by shared class -
   main.js's category-chip handler (`$$(".chip")`) is page-global/unscoped, so
   admin.html's 3 independent filter groups (sellers/auctions/support) can't
   use the literal "chip" class without one group's click clearing the other
   two's active state (see build.py's admin_body, api.js's wireChipFilter). */

.layout-auctions { display: grid; gap: 18px; }
@media (min-width: 1120px) { .layout-auctions { grid-template-columns: 268px minmax(0, 1fr); gap: 22px; align-items: start; } }

/* ---------- Auction detail ---------- */
.layout-detail { display: grid; gap: 18px; }
@media (min-width: 1120px) { .layout-detail { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; } }
.detail-main { display: grid; gap: 18px; min-width: 0; }
.detail-side { display: grid; gap: 18px; }
@media (min-width: 1120px) { .detail-side { position: sticky; top: calc(var(--header-h) + 14px); } }
.detail-gallery__main { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.detail-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.detail-gallery__thumbs img {
  width: 68px; height: 52px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: .7; flex: none;
}
.detail-gallery__thumbs img:hover, .detail-gallery__thumbs img.is-active { opacity: 1; border-color: var(--red); }
.detail-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.detail-specs div { display: grid; gap: 2px; }
.detail-specs dt { font-size: 11.5px; color: var(--muted); }
.detail-specs dd { font-size: 13px; font-weight: 600; color: var(--ink); }
.detail-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(10, 10, 12, .92); }
.lightbox__img { position: relative; max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; color: #fff; }
.lightbox__nav {
  position: relative; color: #fff; padding: 10px; flex: none; background: rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.lightbox__prev svg { transform: rotate(180deg); }

.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 1120px) { .filters { position: sticky; top: calc(var(--header-h) + 14px); } }
.filters__group { padding: 16px; border-bottom: 1px solid var(--line-2); }
.filters__group:last-of-type { border-bottom: 0; }
.filters__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 700; text-align: left;
}
.filters__head svg { color: var(--muted); transition: transform .22s ease; }
.filters__group.is-open .filters__head svg { transform: rotate(180deg); }
.filters__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.filters__group.is-open .filters__body { grid-template-rows: 1fr; }
.filters__body > div { overflow: hidden; }
.filters__body .inner { padding-top: 13px; display: grid; gap: 10px; }
.filters__actions { padding: 16px; display: grid; gap: 9px; border-top: 1px solid var(--line); }

.check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid #cdd2d9;
  flex: none; display: grid; place-items: center; transition: all .16s ease; background: #fff;
}
.check__box svg { opacity: 0; color: #fff; transform: scale(.6); transition: all .16s ease; }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--red); outline-offset: 2px; }
.check__label { flex: 1; min-width: 0; }

.radio { display: flex; align-items: center; gap: 9px; font-size: 12.5px; cursor: pointer; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio__dot {
  width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #cdd2d9; flex: none;
  display: grid; place-items: center; transition: all .16s ease; background: #fff;
}
.radio__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .16s ease; }
.radio input:checked + .radio__dot { border-color: var(--red); border-width: 5px; }
.radio input:checked + .radio__dot::after { transform: scale(1); }

.range-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.range-row span { font-size: 12px; color: var(--muted); }

.input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 13px; background: #fff; outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.input-search { position: relative; }
.input-search .input { padding-right: 34px; }
.input-search svg { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }

.results-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.results-head .count { font-size: 13.5px; font-weight: 600; }

/* Mobile filter drawer */
.filter-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.filter-drawer.is-open { visibility: visible; opacity: 1; }
.filter-drawer__bg { position: absolute; inset: 0; background: rgba(16, 17, 20, .45); }
.filter-drawer__panel {
  position: absolute; inset: auto 0 0 0; max-height: 88vh; background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.filter-drawer.is-open .filter-drawer__panel { transform: none; }
.filter-drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.filter-drawer__body { overflow-y: auto; }
@media (min-width: 1120px) { .btn-filters-mobile, .sort-mobile { display: none; } }
@media (max-width: 1119px) { .filters-desktop { display: none; } }

/* Mobile bottom tab bar (app-like) */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 55; display: flex;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: grid; justify-items: center; gap: 3px; padding: 5px 2px;
  font-size: 10px; font-weight: 600; color: var(--muted);
}
.tabbar a[aria-current="page"] { color: var(--red); }
@media (min-width: 1120px) { .tabbar { display: none; } }
body.has-tabbar { padding-bottom: 62px; }
@media (min-width: 1120px) { body.has-tabbar { padding-bottom: 0; } }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.auth__form { padding: 22px 20px 26px; }
@media (min-width: 900px) { .auth__form { padding: 30px 34px 34px; } }
.auth__side { padding: 22px 20px 26px; background: var(--tint); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .auth__side { border-top: 0; border-left: 1px solid var(--line); padding: 34px; } }

.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 8px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .18s ease, border-color .18s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.tabs--scroll { display: flex; overflow-x: auto; }
.tabs--scroll .tab { flex: none; padding-inline: 14px; white-space: nowrap; }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px;
  margin-left: 6px; background: var(--red); color: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1;
}

/* ---------- Notifications ---------- */
.notif-wrap { position: relative; margin-left: 14px; }
.notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 320px; max-width: 86vw;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2);
  max-height: 70vh; overflow-y: auto; z-index: 60;
}
.notif-dropdown ul, .notif-list { list-style: none; }
.notif-dropdown li, .notif-list li {
  padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; cursor: pointer;
}
.notif-dropdown li:last-child, .notif-list li:last-child { border-bottom: 0; }
.notif-dropdown li:hover, .notif-list li:hover { background: var(--tint); }
.notif-dropdown li.is-unread, .notif-list li.is-unread { background: var(--red-50); }
.notif-dropdown li b, .notif-list li b { display: block; margin-bottom: 2px; }
.notif-dropdown li span, .notif-list li span { color: var(--muted); font-size: 11.5px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 12.5px; font-weight: 600; }
.field__wrap {
  display: flex; align-items: center; gap: 9px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field__wrap:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.field__wrap > svg { color: var(--muted-2); flex: none; }
.field__wrap input, .field__wrap select {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  padding: 11px 0; font-size: 13.5px; appearance: none;
}
.field__wrap input::placeholder { color: var(--muted-2); }
.eye { color: var(--muted-2); padding: 4px; display: grid; place-items: center; }
.eye:hover { color: var(--ink); }
.field__hint { font-size: 11.5px; color: var(--muted); }
.field--error .field__wrap { border-color: var(--red); }
.field__error { font-size: 11.5px; color: var(--red); display: none; }
.field--error .field__error { display: block; }

.phone { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.notice {
  display: flex; gap: 11px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--sh-1);
}
.notice b { display: block; font-size: 12.5px; }
.notice p { font-size: 12px; color: var(--muted); }

.side-feats { display: grid; gap: 16px; margin: 18px 0 20px; }
.side-feats li { display: flex; gap: 12px; align-items: flex-start; }
.side-feats b { display: block; font-size: 13.5px; }
.side-feats span { font-size: 12.5px; color: var(--muted); }

/* Stepper */
.stepper { display: flex; align-items: center; margin-bottom: 24px; }
.stepper__item { display: grid; justify-items: center; gap: 6px; flex: none; }
.stepper__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--line);
  color: var(--muted-2); background: #fff; transition: all .22s ease;
}
.stepper__lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stepper__bar { flex: 1; height: 1.5px; background: var(--line); margin: 0 6px; margin-bottom: 22px; }
.stepper__item.is-active .stepper__dot { background: var(--red); border-color: var(--red); color: #fff; }
.stepper__item.is-active .stepper__lbl { color: var(--red); }
.stepper__item.is-done .stepper__dot { background: var(--green); border-color: var(--green); color: #fff; }

.upload {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 13px 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.upload:hover { border-color: var(--red); box-shadow: var(--sh-2); transform: translateY(-1px); }
.upload b { display: block; font-size: 13px; }
.upload span { font-size: 11.5px; color: var(--muted); }
.upload .chev { margin-left: auto; color: var(--muted-2); }
.upload.is-done { border-color: var(--green); background: var(--green-50); }
.upload.is-done .chev { color: var(--green); }

.success-mark {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; background: var(--green-50); color: var(--green);
  animation: pop .45s cubic-bezier(.2, .9, .3, 1.4);
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.checklist { display: grid; gap: 9px; }
.checklist li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.checklist svg { color: var(--green); flex: none; margin-top: 2px; }

.pane { display: none; }
.pane.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr { background: #fff; border-top: 1px solid var(--line); padding-top: 34px; }
.ftr__grid { display: grid; gap: 26px; }
@media (min-width: 700px) { .ftr__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ftr__grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; } }
.ftr__about p { font-size: 12.5px; color: var(--muted); margin: 12px 0 16px; max-width: 34ch; }
.ftr__col h4 { font-size: 13px; margin-bottom: 12px; }
.ftr__col li { margin-bottom: 8px; }
.ftr__col a { font-size: 12.5px; color: var(--muted); transition: color .18s ease; }
.ftr__col a:hover { color: var(--red); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2); transition: all .18s ease;
}
.socials a:hover { border-color: var(--red); color: var(--red); background: var(--red-50); }
.ftr__bar {
  margin-top: 28px; border-top: 1px solid var(--line); padding-block: 16px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.ftr__bar p { font-size: 12px; color: var(--muted); }
.ftr__locale { display: flex; gap: 8px; }
.ftr__locale .select select { padding-block: 7px; font-size: 12.5px; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--red); }
.crumbs svg { color: var(--muted-2); }

/* ---------- Misc ---------- */
.divider-line { height: 1px; background: var(--line); }
.hide-sm { display: none; }
@media (min-width: 900px) { .hide-sm { display: block; } .hide-lg { display: none; } }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }

/* ---------- Page-specific refinements ---------- */
@media (min-width: 900px) {
  .how-credits { grid-template-columns: minmax(0, 1fr) 262px; align-items: start; gap: 26px; }
}
@media (max-width: 1119px) {
  .searchbar .btn-filters { justify-content: center; }
}
/* Auth hero image only reads well on wide side panels */
@media (max-width: 899px) { .auth__side > img { display: none; } }

/* Table sticky first column keeps feature names readable while scrolling */
@media (max-width: 760px) {
  .ctable th:first-child, .ctable td:first-child {
    position: sticky; left: 0; background: #fff; z-index: 1;
    box-shadow: 1px 0 0 var(--line-2);
  }
  .ctable thead th:first-child { background: var(--tint); }
}

/* Print */
@media print {
  .hdr, .drawer, .tabbar, .filter-drawer, .btn, .fav { display: none !important; }
  body { background: #fff; }
  .shell { max-width: none; }
}

/* Home category row holds all nine tiles on one line */
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(9, 1fr); } }

/* Credits hero has no floating cards, so the copy gets an even share */
.hero__grid--even { }
@media (min-width: 900px) { .hero__grid--even { grid-template-columns: 1fr 1fr; } }

/* Trending tiles: taller gradient so the caption stays legible over any photo */
.trend__card img { aspect-ratio: 4/3; }
.trend__card figcaption { padding-top: 34px; background: linear-gradient(transparent, rgba(10, 11, 13, .3) 30%, rgba(10, 11, 13, .88)); }
@media (min-width: 760px) { .trend__card img { aspect-ratio: 5/4; } }

/* Highlight the most popular column edge-to-edge in the comparison table */
.ctable thead .col-pop { box-shadow: inset 1px 1px 0 var(--red), inset -1px 0 0 var(--red); }
.ctable tbody .col-pop { box-shadow: inset 1px 0 0 var(--red-100), inset -1px 0 0 var(--red-100); }
.ctable tbody tr:last-child .col-pop { box-shadow: inset 1px 0 0 var(--red-100), inset -1px 0 0 var(--red-100), inset 0 -1px 0 var(--red-100); }

/* CTA banner: the photo is 2.8:1, so on wide screens it only takes the right
   portion of the banner instead of being blown up to fill it. */
.cta-banner__bg img { object-position: 58% 46%; }
@media (min-width: 900px) {
  .cta-banner { min-height: 236px; align-content: center; }
  .cta-banner__bg { left: 34%; }
  .cta-banner__bg::after {
    background: linear-gradient(90deg, #fafbfc 0%, rgba(250, 251, 252, .82) 18%, rgba(250, 251, 252, .1) 58%, rgba(250, 251, 252, 0) 100%);
  }
}

/* Stacked layout: the photo sits behind the copy, so it needs a vertical veil */
@media (max-width: 899px) {
  .cta-banner__bg::after {
    background: linear-gradient(180deg, rgba(250, 251, 252, .97) 0%, rgba(250, 251, 252, .93) 52%, rgba(250, 251, 252, .78) 100%);
  }
  .cta-banner__bg img { object-position: 62% 50%; }
}

/* --- Narrow-phone safety (320–380px) --- */
@media (max-width: 379px) {
  .hero__floats { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners { grid-template-columns: minmax(0, 1fr); }
}
.cats > * { min-width: 0; }
.cat span { overflow-wrap: anywhere; }
/* Contain stray overhang at the document level. Applied to <html> rather than a
   wrapper so it does not become the sticky scrollport for the header/sidebar. */
html { overflow-x: clip; }

/* --- Legal content modal (Terms/Privacy/Cookie — native <dialog>) --- */
.legal-modal { border: 0; border-radius: 14px; padding: 0; width: min(560px, 92vw); max-height: 80vh; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.legal-modal::backdrop { background: rgba(16,17,20,.5); }
.legal-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.legal-modal__head h3 { font-size: 16px; margin: 0; }
.legal-modal__close { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 4px; line-height: 0; }
.legal-modal__body { padding: 16px 18px; overflow-y: auto; max-height: calc(80vh - 60px); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; }
