/* Cards & Swaps – fantasy-thema */

@font-face { font-family: 'Cinzel'; font-weight: 600; font-display: swap; src: url('../fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 800; font-display: swap; src: url('../fonts/cinzel-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 500; font-display: swap; src: url('../fonts/alegreya-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 700; font-display: swap; src: url('../fonts/alegreya-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --night: #120D24;
  --night-deep: #0C0819;
  --sky: #1A1233;
  --surface: #1E1638;
  --surface-2: #271D47;
  --line: #3F3266;
  --gold: #D9B25F;
  --gold-light: #F2D68A;
  --gold-dark: #5C4A22;
  --text: #EDE6F7;
  --text-strong: #F7EFD9;
  --muted: #B9AED3;
  --parch: #F3E7CC;
  --parch-line: #B8954A;
  --ink: #2A1E10;
  --ink-muted: #5A4628;
  --ruby: #8E2236;
  --ruby-hover: #A62A41;
  --good: #8FDDA2;
  --good-ink: #1E6B34;
  --high: #F6B07A;
  --high-ink: #9A3F08;
  --info: #9CC4F2;
  --field: #F7F1E3;
  --radius: 10px;
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-light); }
a:hover { color: #FFE9B0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.15; margin: 0 0 .4em; letter-spacing: .3px; }
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.visually-hidden, .visually-hidden-input {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #1A1206; padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 32px; padding-bottom: 64px; }
.narrow { max-width: 620px; }
.section { padding-top: 40px; padding-bottom: 32px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------------------------------------------------------- knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #1A1206; box-shadow: inset 0 0 0 1px var(--gold-light); }
.btn-gold:hover { background: var(--gold-light); color: #1A1206; }
.btn-ruby { background: var(--ruby); color: #F7EFD9; box-shadow: inset 0 0 0 1px var(--parch-line); }
.btn-ruby:hover { background: var(--ruby-hover); color: #FFF; }
.btn-ghost { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn-ghost:hover { background: rgba(217, 178, 95, .12); color: #FFE9B0; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--text-strong); }
.btn-link { background: none; border: 0; color: var(--gold-light); text-decoration: underline; padding: 0 6px; }
.btn-ink { background: var(--ink); color: var(--parch); }
.btn-ink:hover { background: #3D2C17; color: #FFF; }
.btn-ink-ghost { background: transparent; color: var(--ink); border-color: #8A6A2C; }
.btn-ink-ghost:hover { background: rgba(42, 30, 16, .08); color: var(--ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { color: var(--text-strong); border-color: var(--gold); }
.inline-form { display: inline; margin: 0; }

/* ---------------------------------------------------------- kop & voet */
.site-header { background: var(--night-deep); border-bottom: 1px solid var(--gold-dark); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-light); text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: 1px; }
.brand-name em { font-style: normal; color: var(--text); }
.brand-small .brand-name { font-size: 18px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { color: var(--text); text-decoration: none; padding: 12px 14px; font-family: var(--font-display); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--gold-light); border-bottom-color: var(--gold); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; border-radius: 23px; color: var(--text); background: rgba(255,255,255,.07); font-weight: 700; letter-spacing: .04em; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: rgba(255,255,255,.13); }
.lang-switch summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 160px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.lang-menu a { padding: 9px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255,255,255,.08); color: var(--gold-light); }
.lang-menu a[aria-current] { color: var(--gold-light); font-weight: 700; }
.bell { position: relative; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: rgba(255,255,255,.07); }
.bell:hover { color: var(--gold-light); }
.bell-count { position: absolute; top: 0; right: -2px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: #C8344F; color: #FFF; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.site-footer { background: var(--night-deep); border-top: 1px solid var(--gold-dark); margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: flex-start; }
.footer-links a { color: var(--text); padding: 6px 0; }

.flashes { padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.flash { border-radius: 8px; padding: 12px 16px; font-weight: 500; border: 1px solid; margin: 0; }
.flash-success { background: #143323; border-color: #2F7A48; color: #C9F2D4; }
.flash-info { background: #1A2647; border-color: #3C5A9A; color: #D3E2FF; }
.flash-error { background: #3A1420; border-color: #A0364C; color: #FFD6DE; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--sky); border-bottom: 1px solid var(--gold-dark); }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 88px; }
.hero-text { flex: 1 1 480px; max-width: 660px; }
.eyebrow { font-family: var(--font-display); color: var(--gold); letter-spacing: 3px; font-size: 13px; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.lead { font-size: 20px; color: #CFC5E4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero-stats { color: var(--muted); }
.hero-stats strong { color: var(--gold-light); }
.hero-feature { flex: 0 1 300px; display: flex; justify-content: center; }
.feature-frame {
  display: block; width: 260px; padding: 10px; background: #2A1F4A; border: 2px solid var(--gold); border-radius: 14px;
  box-shadow: 0 0 0 6px var(--sky), 0 0 0 7px var(--gold-dark), 0 0 60px rgba(242, 214, 138, .25);
  transform: rotate(3deg); text-decoration: none; transition: transform .2s;
}
.feature-frame:hover { transform: rotate(0deg) scale(1.02); }
.feature-frame img, .feature-frame svg { width: 100%; height: 310px; object-fit: cover; border-radius: 8px; }
.feature-caption { display: block; margin-top: 10px; text-align: center; font-family: var(--font-display); color: var(--gold-light); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.feature-name { display: block; text-align: center; color: var(--text); font-size: 15px; }

/* ---------------------------------------------------------- secties */
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .ornament { display: block; margin: 0 auto 10px; max-width: 100%; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head-left { text-align: left; }
.page-head { margin-bottom: 22px; }
.page-head-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.sub-heading { margin-top: 28px; font-size: 20px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step p { color: var(--muted); margin: 0; }
.step-num { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0; }
.empty-sm { padding: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.notice { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #2A2050; border: 1px solid var(--gold-dark); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.notice-warn { background: #3A2A12; border-color: #8A6A2C; color: #FCE6B8; }
.notice-inline { display: block; margin: 0; }
.info-text { color: var(--info); margin: 0; }

/* ---------------------------------------------------------- kaarttegels (perkament) */
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 26px; }
.tile {
  position: relative; background: var(--parch); color: var(--ink); border-radius: 10px; padding: 12px;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--night), 0 0 0 6px var(--gold-dark), 0 14px 30px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 10px;
}
.tile-inactive { opacity: .8; }
.tile-media { position: relative; display: block; height: 190px; border-radius: 6px; overflow: hidden; background: #E6D7B5; border: 1px solid #8A6A2C; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-art { width: 100%; height: 100%; display: block; }
.tile-badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; background: rgba(18, 13, 36, .88); color: var(--gold-light); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 3px; }
.tile-status { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: var(--parch); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 3px; }
.tile-fav { position: absolute; right: 20px; top: 20px; margin: 0; }
.fav-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: #B3243A; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fav-btn.is-fav svg { fill: #B3243A; }
.fav-btn-dark { background: transparent; border: 1px solid var(--line); color: #F08A9C; }
.fav-btn-dark.is-fav svg { fill: #F08A9C; }
.tile-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-title { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); text-align: center; }
.tile-title a { color: var(--ink); text-decoration: none; }
.tile-title a:hover { text-decoration: underline; }
.tile-meta { margin: 0; font-size: 14px; color: var(--ink-muted); text-align: center; }
.tile-divider { display: block; }
.tile-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; text-align: center; }
.tile-prices .label { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.tile-prices .price { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }
.tile-prices .price-muted { font-weight: 600; color: var(--ink-muted); }
.tile .delta { text-align: center; margin: 0; font-size: 14px; font-weight: 700; }
.tile .delta-good { color: var(--good-ink); }
.tile .delta-high { color: var(--high-ink); }
.tile .delta-even { color: var(--ink-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.detail-info .tags { justify-content: flex-start; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.tag-sale { background: #E3D4EE; color: #3E2365; }
.tag-trade { background: #F5DFA0; color: #5B4106; }
.tag-type, .tag-grade { background: var(--surface-2); color: var(--text-strong); border: 1px solid var(--line); }
.tag-match { background: #1F5A36; color: #D6F5DF; }
.tile-foot { margin: auto 0 0; text-align: center; font-size: 14px; color: var(--ink-muted); }
.tile-actions { display: flex; gap: 8px; }
.tile-actions > *, .tile-actions form { flex: 1; }
.tile-actions .btn { width: 100%; }

/* ---------------------------------------------------------- tabellen */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid #2D2350; white-space: nowrap; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.table .actions form { margin: 0; }
.row-card { display: flex; align-items: center; gap: 12px; }
.thumb { flex: none; width: 42px; height: 58px; border-radius: 4px; overflow: hidden; border: 1.5px solid var(--gold); background: var(--surface-2); }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.pill { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.delta-good { color: var(--good); }
.delta-high { color: var(--high); }
.delta-even { color: var(--muted); }

/* ---------------------------------------------------------- formulieren */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend, .label-like { font-size: 15px; font-weight: 700; color: var(--text-strong); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-strong); margin-bottom: 12px; padding: 0; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 0 12px; border-radius: 6px; border: 1px solid #8A6A2C; background: var(--field);
  color: var(--ink); font-family: var(--font-body); font-size: 16px;
}
textarea { padding: 10px 12px; min-height: 90px; resize: vertical; }
select { padding-right: 8px; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border: 2px solid #E0607A; }
.field-error { color: #FFB3C1; font-size: 14px; font-weight: 700; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.field-narrow { max-width: 320px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; cursor: pointer; font-size: 16px; padding-top: 6px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.input-prefix { display: flex; align-items: center; border: 1px solid #8A6A2C; border-radius: 6px; background: var(--field); overflow: hidden; }
.input-prefix span { padding: 0 4px 0 12px; color: var(--ink); font-weight: 700; }
.input-prefix input { border: 0; min-height: 44px; background: transparent; padding-left: 4px; }
.input-big { max-width: 300px; }
.input-big input { font-family: var(--font-display); font-size: 24px; font-weight: 800; min-height: 56px; }
.input-big span { font-size: 22px; }
.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pills label { cursor: pointer; }
.radio-pills input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold-dark); color: var(--text); font-weight: 700; }
.radio-pills input:checked + span { background: var(--gold); color: #1A1206; border-color: var(--gold-light); }
.radio-pills input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mode-card { cursor: pointer; }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card span { display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.mode-card small { color: var(--muted); font-size: 14px; }
.mode-card input:checked + span { border: 2px solid var(--gold); background: #33275C; }
.mode-card input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.upload { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 14px; text-align: center; border: 2px dashed var(--gold-dark); border-radius: 10px; background: rgba(255,255,255,.03); cursor: pointer; color: var(--gold-light); }
.upload:hover { border-color: var(--gold); }
.upload:focus-within { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.upload .muted, .upload .small { color: var(--muted); }
.upload-preview { max-height: 150px; border-radius: 6px; }
.upload-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.money-field { max-width: 240px; margin-top: 10px; }
.search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search-row input, .search-row select { flex: 1 1 240px; width: auto; }
.admin-search { margin-bottom: 18px; }
.save-search { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------------------------------- zijbalk-layout */
.side-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.side-panel { flex: 1 1 260px; max-width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-main { flex: 999 1 620px; min-width: 0; }
.filters { display: flex; flex-direction: column; gap: 14px; }
.filter-panel { margin-bottom: 18px; padding: 0; }
.filter-panel summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--gold-light); }
.filter-panel .filters { padding: 0 20px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar p { margin: 0; }
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 700; }
.view-toggle a[aria-current] { background: var(--gold); color: #1A1206; }
.pagination { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 28px; }
.side-nav { flex: 1 1 220px; max-width: 270px; display: flex; flex-direction: column; gap: 4px; }
.side-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; color: var(--gold-light); letter-spacing: 1px; margin-bottom: 8px; }
.side-cta { margin-bottom: 10px; }
.side-link { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 700; }
.side-link:hover { background: var(--surface); color: var(--text-strong); }
.side-link[aria-current] { background: var(--surface-2); color: var(--gold-light); box-shadow: inset 3px 0 0 var(--gold); }
.count { min-width: 24px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.count-alert { background: #C8344F; border-color: #C8344F; color: #FFF; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat .label { color: var(--muted); font-size: 14px; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--gold-light); }

/* ---------------------------------------------------------- detailpagina */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { padding: 8px 0; }
.detail { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.detail-gallery { flex: 1 1 340px; max-width: 470px; display: flex; flex-direction: column; gap: 12px; }
.gallery-frame { padding: 10px; background: #2A1F4A; border: 2px solid var(--gold); border-radius: 14px; box-shadow: 0 0 0 6px var(--night), 0 0 0 7px var(--gold-dark), 0 0 50px rgba(242,214,138,.18); }
.gallery-frame img, .gallery-frame svg { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 8px; background: #EDEFF4; }
.gallery-thumbs { display: flex; gap: 10px; }
.thumb-btn { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 700; font-family: var(--font-body); font-size: 15px; }
.thumb-btn img { width: 40px; height: 54px; object-fit: cover; border-radius: 4px; }
.thumb-btn[aria-pressed=true] { border-color: var(--gold); background: var(--surface-2); }
.detail-info { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-info h1 { margin-bottom: 4px; }
.price-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.price-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.price-row .label { display: block; color: var(--muted); font-size: 14px; }
.price-big { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--gold-light); line-height: 1; }
.delta-chip { padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 15px; background: var(--surface-2); }
.market { border-top: 1px solid var(--line); padding-top: 14px; }
.market-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: baseline; }
.market-head h2 { font-size: 17px; margin: 0; }
.market-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 4px 0; color: var(--text-strong); }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }
.detail-actions form { margin: 0; }
.fav-wide.is-fav svg { fill: #F08A9C; color: #F08A9C; }
.seller-line { margin: 0; color: var(--muted); font-size: 15px; }
.seller-line strong { color: var(--text-strong); }
.trade-panel summary { cursor: pointer; list-style: none; }
.trade-panel summary::-webkit-details-marker { display: none; }
.trade-panel summary h2 { display: inline; }
.trade-panel summary::after { content: ' ▾'; color: var(--gold); }
.trade-panel[open] summary { margin-bottom: 14px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; margin: 0; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-weight: 700; color: var(--text-strong); }
.description { margin-top: 16px; color: var(--text); }

/* ---------------------------------------------------------- kaart plaatsen */
.form-columns { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.form-columns > .stack-lg { flex: 999 1 520px; min-width: 0; }
.form-aside { flex: 1 1 280px; max-width: 340px; }
.preview-sticky { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.small-heading { font-size: 16px; }
.step-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 8px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-light); font-size: 15px; vertical-align: middle; }
.search-results { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.result-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; font-family: var(--font-body); font-size: 16px; }
.result-btn:hover, .result-btn[aria-pressed=true] { border-color: var(--gold); background: #33275C; }
.result-btn .r-main { flex: 1; min-width: 0; }
.result-btn .r-name { display: block; font-weight: 700; color: var(--text-strong); }
.result-btn .r-meta { display: block; font-size: 14px; color: var(--muted); }
.result-btn .r-price { text-align: right; font-size: 14px; color: var(--muted); }
.result-btn .r-price b { display: block; color: var(--gold-light); font-size: 16px; }
.selected-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #1F3A2B; border: 1px solid #2F7A48; color: #C9F2D4; border-radius: 8px; padding: 8px 12px; font-weight: 700; }
.price-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.info-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.info-box h3 { font-size: 15px; margin-bottom: 10px; }
.info-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.info-values .label { display: block; font-size: 13px; color: var(--muted); }
.info-values b { font-family: var(--font-display); font-size: 18px; color: var(--text-strong); }
.info-values p { grid-column: 1 / -1; }
.plat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plat-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.04); font-size: 15px; }
.plat-list li.same { background: #33275C; }
.price-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.price-buttons .btn { flex-direction: column; gap: 0; min-height: 52px; }
.price-buttons .btn span { font-size: 13px; font-weight: 500; }
.price-buttons .btn[aria-pressed=true] { background: var(--gold); color: #1A1206; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface-2); }
.chip-good { background: #1F4A2F; color: #C9F2D4; }
.chip-high { background: #4A2A12; color: #FCD7B5; }

/* ---------------------------------------------------------- lijsten */
.list-cards { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.list-card-match { border-color: #3E8F57; }
.list-card h3 { margin: 0; font-family: var(--font-body); font-size: 18px; font-weight: 700; }
.list-card p { margin: 0; }
.list-card-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.list-card-side { display: flex; gap: 10px; align-items: center; }
.list-card-side form { margin: 0; }
.list-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.list-icon-match { background: #1F4A2F; color: var(--good); }
.match-list { flex-basis: 100%; margin: 0; padding: 10px 0 0 58px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.note { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: #19132F; border: 1px solid #2D2350; border-radius: var(--radius); padding: 14px 18px; }
.note-unread { background: var(--surface); border-color: #5A4A8E; }
.note-body { flex: 1; min-width: 0; }
.note-body p { margin: 0; }
.note-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px !important; }
.note-kind { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.kind-green { color: var(--good); }
.kind-blue { color: var(--info); }
.kind-gold { color: var(--gold-light); }
.kind-ruby { color: #F7A0B0; }
.kind-muted { color: var(--muted); }
.new-badge { background: #C8344F; color: #FFF; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.offer { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.offer-photo { flex: none; width: 96px; height: 130px; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--gold); background: var(--surface-2); }
.offer-photo img, .offer-photo svg { width: 100%; height: 100%; object-fit: cover; }
.offer-body { flex: 1; min-width: 0; }
.offer-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.offer-body p { margin: 0 0 6px; }
.offer-body blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.04); color: var(--text); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.row-actions form { margin: 0; }
.contact { background: #1F3A2B; border: 1px solid #2F7A48; color: #D6F5DF; border-radius: 8px; padding: 10px 12px; }
.contact a { color: #FFF; }
.change-note { margin: 10px 4px 0; font-size: 14px; color: var(--info); }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist svg { color: var(--gold-light); flex: none; }

/* ---------------------------------------------------------- aanmelden */
.auth-page { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.auth-intro { flex: 1 1 300px; max-width: 420px; }
.auth-form { flex: 999 1 520px; min-width: 0; }
.pw-meter { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.pw-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pw-bar span { display: block; height: 100%; width: 0; background: #C8344F; transition: width .2s, background .2s; }
.pw-label { font-weight: 700; font-size: 14px; min-width: 70px; }
.pw-rules { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; font-size: 15px; color: var(--muted); }
.pw-rules li::before { content: '•'; display: inline-block; width: 18px; font-weight: 800; }
.pw-rules li.ok { color: var(--good); }
.pw-rules li.ok::before { content: '✓'; }

/* ---------------------------------------------------------- beheer */
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 12px 16px; color: var(--text); text-decoration: none; font-weight: 700; border-bottom: 2px solid transparent; }
.admin-nav a[aria-current] { color: var(--gold-light); border-bottom-color: var(--gold); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.simple-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prose h2 { margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------------------------------------------------------- klein scherm */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { justify-content: center; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .main-nav a { padding: 10px 8px; font-size: 12px; letter-spacing: 1px; }
  .hero-inner { padding-top: 40px; padding-bottom: 64px; }
  .side-panel, .side-nav { max-width: none; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-title { flex-basis: 100%; }
  .side-cta { flex-basis: 100%; }
  .side-link { flex: 1 1 45%; background: var(--surface); }
  .form-aside { max-width: none; }
  .preview-sticky { position: static; }
  .offer { flex-direction: column; }
  .match-list { padding-left: 0; }
  .note { flex-direction: column; align-items: flex-start; }
}
.grid-tiles + .center { margin-top: 32px; }

/* Statusmenu (eigenaar) */
.status-menu { position: relative; }
.status-menu summary { list-style: none; cursor: pointer; white-space: nowrap; }
.status-menu summary::-webkit-details-marker { display: none; }
.tile-actions .status-menu summary { width: 100%; justify-content: center; }
.status-menu-list { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 40; min-width: 170px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.table .status-menu-list, .notice .status-menu-list { bottom: auto; top: calc(100% + 6px); }
.status-menu-list form { margin: 0; }
.status-menu-list button { width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.status-menu-list button:hover, .status-menu-list button:focus-visible { background: rgba(255,255,255,.08); color: var(--gold-light); }
.table .actions { flex-direction: column; align-items: stretch; }
.table .actions .btn, .table .actions .status-menu summary { justify-content: center; text-align: center; }
.table .status-menu-list { position: static; margin-top: 6px; box-shadow: none; }
.table td:first-child { white-space: normal; min-width: 160px; }
.table .actions-cell { width: 1%; }
.table .actions { min-width: 104px; }
.table .actions-cell { padding-left: 6px; padding-right: 10px; }

/* ---------------------------------------------------------- verzamelgebieden */
.cat-bar { background: rgba(12, 8, 25, .85); border-bottom: 1px solid rgba(217, 178, 95, .25); }
.cat-bar-inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.cat-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; white-space: nowrap; }
.cat-link:hover { background: rgba(255, 255, 255, .06); color: var(--gold-light); }
.cat-link.is-mine { border-color: color-mix(in srgb, var(--cat, #D9B25F) 55%, transparent); }
.cat-link[aria-current] { background: var(--cat, var(--gold)); color: #1A1206; border-color: transparent; }
.cat-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.cat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--cat, #D9B25F) 22%, transparent); color: var(--text-strong); border: 1px solid color-mix(in srgb, var(--cat, #D9B25F) 60%, transparent); white-space: nowrap; }
.tile .cat-chip { color: var(--ink); background: color-mix(in srgb, var(--cat, #D9B25F) 30%, #F3E7CC); }
.tile-cat-line { margin: 0 0 4px; text-align: center; }
.tile-cat { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(18, 13, 36, .88); border: 2px solid var(--cat, #D9B25F); font-size: 16px; line-height: 1; }
.tag-flag { background: #1C2C4A; color: #DCE8FF; letter-spacing: .5px; }
.cat-heading { display: flex; align-items: center; gap: 12px; }
.cat-heading > span { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--cat, #D9B25F); font-size: 28px; }

.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills label { cursor: pointer; }
.cat-pills input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pills label > span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold-dark); color: var(--text); font-weight: 700; }
.cat-pills input:checked + span { background: var(--cat, var(--gold)); color: #1A1206; border-color: transparent; }
.cat-pills input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.cat-pills-multi input:checked + span::after { content: '✓'; margin-left: 2px; }

.check-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.interest-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; margin: 0 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.interest-note > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.interest-actions { display: flex; gap: 6px; align-items: center; }

.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 28px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 32px; font-weight: 800;
  background: var(--gold); color: #1A1206; flex: 0 0 auto; }
.profile-main { flex: 1 1 260px; }
.profile-main h1 { margin: 0 0 4px; }
.profile-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.profile-cats a { text-decoration: none; }
.section-title { margin: 0 0 16px; }

.cat-admin summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; }
.cat-admin summary::-webkit-details-marker { display: none; }
.cat-admin[open] summary { margin-bottom: 16px; }
.cat-admin[data-inactive] { opacity: .75; }
.cat-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; }
.cat-admin-grid input[type=color] { height: 44px; padding: 4px; }
.copy-code { display: block; padding: 10px 12px; background: var(--night-deep); border: 1px solid var(--line); border-radius: 6px; word-break: break-all; font-size: 14px; color: var(--gold-light); user-select: all; }
.table-plain { margin-bottom: 10px; }

/* Foto maken met de camera (alleen op touchscreens) */
.upload-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.upload-wrap .upload { flex: 1; }
.camera-btn { display: none; align-self: stretch; justify-content: center; gap: 8px; cursor: pointer; }
.camera-btn:focus-within { outline: 3px solid var(--gold-light); outline-offset: 2px; }
@media (pointer: coarse), (hover: none) {
  .camera-btn { display: inline-flex; }
}
.tile-foot a { color: var(--ink); font-weight: 700; }
