/* Verkoopportaal MP Collectibles. Huisstijl: donkerblauw #12205E en rood #D7263D, Luckiest Guy voor koppen, Onest voor tekst.
   Zelfde regels als Kaartscan (UX audit 3 nov 2026): alles via tokens, lopende tekst 16 px, tikvlak 44 px, randen van velden 3:1.
   Lettertypes staan in /fonts (zelf gehost, zie fonts/LICENSES.txt). Licht en donker. */
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(/fonts/onest-400.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(/fonts/onest-500.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(/fonts/onest-600.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url(/fonts/onest-700.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url(/fonts/onest-800.woff2) format("woff2"); }
@font-face { font-family: "Luckiest Guy"; font-weight: 400; font-display: swap; src: url(/fonts/luckiest-guy.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format("woff2"); }

:root {
  --navy: #12205E; --navy-2: #1b2c78; --red: #D7263D; --red-ink: #b81d32;
  --bg: #f4f5f9; --surface: #ffffff; --surface-2: #eef0f6; --ink: #11141b; --muted: #5b6475; --line: #e2e5ee;
  --accent: var(--navy); --accent-soft: #e6e9f6; --ok: #138a4b; --warn: #a85b00; --bad-soft: #fdecee;
  --field-line: #7d8696;                         /* rand van invoervelden, 3:1 tegen de achtergrond */
  --on-solid: #ffffff;                           /* tekst op donkerblauw of rood */
  --on-navy-muted: #dfe4ff;
  --shadow: 0 1px 2px rgba(17, 20, 27, .06), 0 6px 24px rgba(17, 20, 27, .06);
  --f-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-head: "Luckiest Guy", "Onest", system-ui, sans-serif;
  --f-code: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-ui: 14px; --fs-body: 16px; --fs-lg: 18px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 28px;
  --fs-h1: clamp(32px, 7vw, 54px); --fs-h1s: clamp(28px, 6vw, 40px); --fs-h2: clamp(24px, 5vw, 34px);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-11: 44px; --sp-14: 56px;
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 14px; --r-xl: 16px; --r-pill: 999px;
  --tap: 44px;
  --dur: 120ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f14; --surface: #161a22; --surface-2: #1e232d; --ink: #edf0f5; --muted: #98a2b3; --line: #2a303c;
    --accent: #8ea2ff; --accent-soft: #1f2747; --ok: #4ad08a; --warn: #f0a640; --bad-soft: #2d1714; --field-line: #646d7d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f14; --surface: #161a22; --surface-2: #1e232d; --ink: #edf0f5; --muted: #98a2b3; --line: #2a303c;
  --accent: #8ea2ff; --accent-soft: #1f2747; --ok: #4ad08a; --warn: #f0a640; --bad-soft: #2d1714; --field-line: #646d7d; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-body)/1.55 var(--f-ui); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, .brand { font-family: var(--f-head); font-weight: 400; letter-spacing: .02em; line-height: 1.1; }
h1 { font-size: var(--fs-h1); margin: 0 0 var(--sp-3); }
h1.s { font-size: var(--fs-h1s); }
h2 { font-size: var(--fs-h2); margin: 0 0 var(--sp-3); color: var(--accent); }
h3 { font-size: var(--fs-xl); margin: 0 0 var(--sp-2); }
h3.gap { margin-top: var(--sp-6); }
p { margin: 0 0 var(--sp-3); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--sp-4); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.fine { color: var(--muted); font-size: var(--fs-body); }
.mt { margin-top: var(--sp-3); } .mt-l { margin-top: var(--sp-5); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* kop en voet */
.top { background: var(--navy); color: var(--on-solid); }
.top .wrap { display: flex; align-items: center; gap: var(--sp-3); min-height: 60px; }
.brand { color: var(--on-solid); text-decoration: none; font-size: var(--fs-xl); white-space: nowrap; display: inline-flex; align-items: center; gap: .3em; min-height: var(--tap); }
.brand span { color: var(--red); }
.top nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: nowrap; justify-content: flex-end; }
.top nav a { color: var(--on-navy-muted); text-decoration: none; font-weight: 600; font-size: var(--fs-ui); padding: 0 var(--sp-2); min-height: var(--tap);
  display: inline-flex; align-items: center; border-radius: var(--r-sm); white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--on-solid); }
@media (max-width: 640px) { .top nav .hide-s { display: none; } }
.foot { margin-top: var(--sp-14); padding: var(--sp-6) 0 var(--sp-10); border-top: 1px solid var(--line); color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); align-items: center; }
.foot a { min-height: var(--tap); display: inline-flex; align-items: center; }
.foot .legal { flex-basis: 100%; font-size: var(--fs-ui); margin-top: var(--sp-2); }

/* knoppen en velden */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px;
  padding: 0 var(--sp-5); border-radius: var(--r-lg); font: 700 var(--fs-body)/1 var(--f-ui); text-decoration: none; background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--red); color: var(--on-solid); }
.btn.primary:hover { background: var(--red-ink); }
.btn.navy { background: var(--navy); color: var(--on-solid); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--field-line); }
.btn.small { min-height: var(--tap); padding: 0 var(--sp-4); border-radius: var(--r-md); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .field:focus-visible, .chip:focus-visible, .card:focus-visible, .tabs button:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 60%, transparent); outline-offset: 2px; }
label.lbl, .lbl { display: block; font-weight: 600; font-size: var(--fs-body); margin: 0 0 6px; }
.lbl .fine { font-weight: 500; }
.field { width: 100%; min-height: 48px; border-radius: var(--r-md); border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink);
  padding: 10px 14px; font: var(--fs-body)/1.4 var(--f-ui); }
.field.short { max-width: 340px; }
.field[aria-invalid="true"] { border-color: var(--red); }
textarea.field { min-height: 96px; resize: vertical; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-body); margin: var(--sp-2) 0; min-height: var(--tap); padding-top: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }

/* blokken */
.hero { background: var(--navy); color: var(--on-solid); padding: var(--sp-8) 0 52px; position: relative; overflow: hidden; }
.hero p { color: var(--on-navy-muted); font-size: var(--fs-lg); max-width: 560px; }
.hero .dots { color: var(--red); font-family: var(--f-head); letter-spacing: .08em; font-size: var(--fs-body); margin-bottom: 10px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn.ghost { color: var(--on-solid); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.sec { padding: var(--sp-11) 0 0; }
.panel { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: var(--sp-5); }
.panel + .panel { margin-top: var(--sp-3); }
.grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.step { display: grid; gap: 6px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--on-solid); display: grid; place-items: center; font-family: var(--f-head); font-size: var(--fs-lg); }
.step b { font-size: var(--fs-lg); }
.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.tick li { padding-left: 28px; position: relative; }
.tick li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
details.faq { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--sp-1) var(--sp-4); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: var(--sp-3) 0; min-height: var(--tap); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
details.faq summary::after { content: "+"; color: var(--red); font-size: var(--fs-2xl); line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--muted); }
.agenda { display: grid; gap: 10px; }
.beurs { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--sp-3) 14px; }
.beurs .d { background: var(--navy); color: var(--on-solid); border-radius: var(--r-md); text-align: center; padding: var(--sp-2) 0; line-height: 1.1; }
.beurs .d b { display: block; font-family: var(--f-head); font-size: var(--fs-2xl); font-weight: 400; }
.beurs .d small { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.beurs a { display: inline-flex; min-height: var(--tap); align-items: center; }
.notice { background: var(--accent-soft); border-radius: var(--r-md); padding: var(--sp-3) 14px; }
.err { background: var(--bad-soft); color: var(--ink); border-radius: var(--r-md); padding: var(--sp-3) 14px; border-left: 4px solid var(--red); }
.condgrid { display: grid; gap: var(--sp-3); }
.cond { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px var(--sp-4); display: grid; grid-template-columns: 54px 1fr; gap: var(--sp-3); }
.cond .tag { background: var(--navy); color: var(--on-solid); border-radius: 10px; display: grid; place-items: center; font-weight: 800; height: 40px; }

/* verkopen: stappen, kaarten, selectie */
.steps { display: flex; gap: 6px; margin: 18px 0 var(--sp-4); }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--red); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface-2); padding: 5px; border-radius: var(--r-lg); margin-bottom: 14px; }
.tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 700 var(--fs-ui)/1.2 var(--f-ui); padding: 6px; min-height: var(--tap); border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.setbar { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: var(--sp-3); }
@media (min-width: 720px) { .setbar { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin: var(--sp-1) 0 var(--sp-3); }
.chip { appearance: none; border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink); border-radius: var(--r-pill); padding: 0 14px; min-height: var(--tap);
  font: 600 var(--fs-ui)/1 var(--f-ui); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-solid); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.card { appearance: none; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); position: relative; font: inherit; }
.card .im { aspect-ratio: 63 / 88; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform var(--dur), box-shadow var(--dur); }
.card .im img { width: 100%; height: 100%; object-fit: cover; }
/* tekstkaart: als er geen plaatje is (geen toestemming of geen scan) */
.card .im .noimg { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-1); text-align: center; padding: var(--sp-2);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); }
.noimg .nn { font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; overflow-wrap: anywhere; }
.noimg .nr { font-family: var(--f-code); font-size: var(--fs-xs); color: var(--muted); }
.card b { display: block; font-size: var(--fs-sm); font-weight: 600; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card small { display: block; font-size: var(--fs-xs); color: var(--muted); font-family: var(--f-code); }
.card.sel .im { box-shadow: 0 0 0 3px var(--red); transform: scale(.97); }
.card .badge { position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--red); color: var(--on-solid);
  font-weight: 800; font-size: var(--fs-ui); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.empty { text-align: center; padding: 28px var(--sp-3); color: var(--muted); }
.drop { border: 2px dashed var(--field-line); border-radius: var(--r-xl); padding: 22px var(--sp-4); text-align: center; background: var(--surface); }
.files { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; background: var(--surface); border-radius: var(--r-md); padding: var(--sp-2) 10px; box-shadow: var(--shadow); }
.file .th { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--surface-2); object-fit: cover; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.file .fn { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--muted); font-size: var(--fs-ui); }
.xbtn { appearance: none; border: 0; background: var(--surface-2); color: var(--muted); width: var(--tap); height: var(--tap); border-radius: 10px; cursor: pointer; font-size: var(--fs-lg); }
.selrow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.selrow:first-child { border-top: 0; }
.selrow img, .selrow .ph { width: 44px; height: 61px; border-radius: 5px; object-fit: cover; background: var(--surface-2); }
.selrow .nm { font-weight: 700; }
.selrow .nm small { font-weight: 500; color: var(--muted); font-family: var(--f-code); font-size: var(--fs-sm); }
.selctl { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-top: var(--sp-2); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--field-line); border-radius: var(--r-md); overflow: hidden; }
.qty button { appearance: none; border: 0; background: var(--surface-2); color: var(--ink); width: var(--tap); height: var(--tap); font-size: var(--fs-lg); cursor: pointer; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.selctl select { min-height: var(--tap); width: auto; padding: 6px 34px 6px var(--sp-3); }
.selctl .check { margin: 0; padding-top: 0; align-items: center; }
.bar { position: sticky; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: var(--sp-3) 0 calc(var(--sp-3) + env(safe-area-inset-bottom)); margin-top: var(--sp-5); }
.bar .wrap { display: flex; align-items: center; gap: var(--sp-3); }
.bar .sum { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; }
.bar .sum small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 480px) { .bar .sum { font-size: var(--fs-ui); } .bar.later .sum small { display: none; } }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); align-items: start; padding: 14px; border-radius: var(--r-lg); border: 1.5px solid var(--field-line); background: var(--surface); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.opt input { width: 20px; height: 20px; accent-color: var(--red); margin: 2px 0 0; }
.opt small { color: var(--muted); display: block; font-size: var(--fs-ui); }
.opts.row { grid-template-columns: 1fr 1fr; }
.ouder { border-left: 4px solid var(--accent); padding-left: var(--sp-3); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 var(--sp-4) 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.big { font-family: var(--f-head); font-size: var(--fs-3xl); color: var(--accent); }
.m0 { margin: 0; }
.tabs button:disabled { opacity: .45; cursor: default; }
.mb { margin-bottom: var(--sp-3); }
