/* TCG Vendor Tool – donker thema, gelijk aan de Android-app */
:root {
  --bg: #0E1424;
  --bg2: #121a2d;
  --card: #1A2236;
  --card2: #212b42;
  --line: #2a3550;
  --text: #E6E9F2;
  --muted: #9AA3B5;
  --gold: #E9B85A;
  --gold-d: #d4a246;
  --on-gold: #1a1305;
  --red: #ef6b6b;
  --green: #5fd39a;
  --r: 16px;
  --r-s: 10px;
  --side: 248px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
body.modal-open { overflow: hidden; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; margin-bottom: 12px; }
a { color: var(--gold); text-decoration: none; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.price { color: var(--gold); font-weight: 650; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nowrap { white-space: nowrap; }
.center { text-align: center; margin: 16px 0; }
.mt { margin-top: 14px; }
.code { font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.icon { flex: none; display: block; }
.splash { min-height: 100vh; display: grid; place-items: center; }

/* ── Knoppen ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; color: var(--text); background: var(--card2);
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--gold); color: var(--on-gold); }
.btn.primary:not(:disabled):hover { background: #f1c56c; }
.btn.secondary { background: transparent; border-color: var(--line); }
.btn.secondary:not(:disabled):hover { border-color: var(--gold); color: var(--gold); }
.btn.ghost { background: transparent; }
.btn.ghost:not(:disabled):hover { background: var(--card2); }
.btn.danger { background: var(--red); color: #1b0606; }
.btn.danger-text { color: var(--red); }
.btn.block { width: 100%; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--card2); color: var(--text); }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 8px 6px 0; margin-bottom: 12px; }
.back:hover { color: var(--text); }

/* ── Formulieren ── */
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 10px 12px; width: 100%; min-height: 44px; outline: none;
  transition: border-color .15s;
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239AA3B5' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--gold); margin: 0; flex: none; }
input[type=date] { min-width: 150px; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field-hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .toggles { grid-column: 1 / -1; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 10px 22px; min-height: 44px; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.form-actions.start { justify-content: flex-start; }
.form-actions > .muted { margin-right: auto; }
.error { color: var(--red); background: rgba(239, 107, 107, .1); border: 1px solid rgba(239, 107, 107, .3); padding: 10px 12px; border-radius: var(--r-s); margin: 4px 0 12px; font-size: 14px; }
.success { color: var(--green); background: rgba(95, 211, 154, .08); border: 1px solid rgba(95, 211, 154, .3); padding: 10px 12px; border-radius: var(--r-s); margin: 4px 0 12px; font-size: 14px; }

/* Segmented control */
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.seg button.on { background: var(--card2); color: var(--text); }
.seg.small button { padding: 7px 10px; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; white-space: nowrap; color: var(--text); }
.switch input { display: none; }
.switch .slider { width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch .slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.switch input:checked + .slider { background: var(--gold); }
.switch input:checked + .slider::after { transform: translateX(18px); background: var(--on-gold); }

/* ── Shell ── */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--bg2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: calc(20px + var(--safe-t)) 14px 16px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-text { min-width: 0; }
.brand-name { font-weight: 700; font-size: 17px; }
.logo { border-radius: 10px; flex: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 550; }
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.active { background: var(--card); color: var(--gold); }
.sidebar-foot { margin-top: auto; }
.sync-status { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
.sync-status:hover { background: var(--card); }
.sync-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.sync-status.warn .dot { background: var(--red); }
.sync-status .dot.spin { background: var(--gold); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.main { margin-left: var(--side); min-height: 100vh; }
.page { max-width: 1320px; margin: 0 auto; padding: 32px 36px 60px; }
.page.narrow > * { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head .muted { margin-top: 2px; }
.tabbar { display: none; }

/* ── Kaarten / blokken ── */
.card { background: var(--card); border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.stat-label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 4px 0 10px; }
.stat { background: var(--bg2); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.stat-value { display: block; font-size: 20px; font-weight: 650; margin-top: 2px; white-space: nowrap; }
.stat-row.big { margin-top: 18px; margin-bottom: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 650; background: var(--card2); color: var(--text); border: 1px solid var(--line); white-space: nowrap; }
.badge.slab { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.badge.first { color: var(--gold); border-color: rgba(233, 184, 90, .5); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 650; }

/* Totalen */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.total-card { background: var(--card); border-radius: var(--r); padding: 18px 22px; }
.total-value { display: block; font-size: 28px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; white-space: nowrap; }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.search { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.search .icon { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; }
.search.big input { min-height: 50px; font-size: 17px; }
.sort { width: auto; flex: 0 0 auto; }
.filter-note { margin: 0 0 16px; }

/* Raster */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.item-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; color: var(--text); border: 1px solid transparent; transition: border-color .15s, transform .15s; text-align: left; font: inherit; padding: 0; cursor: pointer; }
.item-card:hover { border-color: rgba(233, 184, 90, .55); transform: translateY(-2px); }
.item-img { position: relative; background: linear-gradient(180deg, #151d31, #1A2236); padding: 14px 14px 4px; display: flex; justify-content: center; aspect-ratio: 5 / 6; }
.item-img .card-img { height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.card-img.placeholder { display: grid; place-items: center; color: var(--line); background: var(--bg2); border-radius: 8px; aspect-ratio: 63 / 88; height: 100%; }
.qty { position: absolute; top: 10px; right: 10px; background: rgba(14, 20, 36, .85); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; font-weight: 700; font-size: 13px; }
.qty.zero { color: var(--red); }
.item-body { padding: 12px 14px 14px; display: flex; flex-direction: column; min-width: 0; flex: 1; }
.item-name { font-weight: 650; }
.item-prices { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; }
.item-prices .right { text-align: right; }
.item-prices .price { font-size: 18px; }
.item-prices .stat-label { font-size: 10.5px; }

/* Tabellen */
.table-card { padding: 6px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid rgba(42, 53, 80, .6); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.inv-table tbody tr { cursor: pointer; }
.inv-table tbody tr:hover { background: var(--card2); }
.inv-table .thumb { width: 52px; padding-right: 0; }
.inv-table .thumb .card-img { width: 40px; height: 56px; object-fit: contain; display: block; border-radius: 4px; }
.inv-table .badges { margin: 0; flex-wrap: nowrap; }
.inv-table td:first-child, .inv-table th:first-child { padding-left: 20px; }
.listings { margin-top: 12px; font-size: 14px; }
.listings td { padding: 8px 10px; }
.listings th { padding: 8px 10px; }
.listings .clip { max-width: 220px; }

/* Leeg */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h3 { color: var(--text); margin: 4px 0 0; }
.empty p { max-width: 420px; }

/* ── Detail ── */
.detail-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.detail-left { position: sticky; top: 24px; }
.big-img { background: var(--card); border-radius: var(--r); padding: 18px; display: flex; justify-content: center; }
.big-img .card-img { width: 100%; max-width: 320px; height: auto; border-radius: 12px; display: block; }
.big-img .card-img.placeholder { width: 100%; height: auto; }
.action-col { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.detail-title { font-size: 26px; line-height: 1.2; margin-bottom: 4px; }
.live-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.live-meta { flex: 1; min-width: 180px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(42, 53, 80, .6); }
.kv:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.kv > span:last-child { text-align: right; overflow-wrap: anywhere; }

/* ── Modal ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 8, 16, .72); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; animation: fade .15s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 20px; width: 100%; max-width: 480px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); border: 1px solid var(--line); }
.modal.wide { max-width: 940px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 22px; }
.modal-body { padding: 8px 22px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.confirm-text { color: var(--muted); }
.info-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
.info-img .card-img { width: 100%; height: auto; border-radius: 12px; display: block; position: sticky; top: 0; }
.info-img .card-img.placeholder { height: auto; }
.sub { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.sell-card { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; background: var(--bg2); padding: 10px; border-radius: 12px; }
.sell-card .card-img { width: 56px; height: 78px; object-fit: contain; border-radius: 4px; }
.sell-card .badges { margin-top: 4px; }
.sell-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; font-weight: 700; padding-top: 4px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); font: inherit; cursor: pointer; }
.pick:hover { border-color: var(--gold); }

/* Toevoegen */
.add-search { display: flex; gap: 12px; padding: 14px; }
.add-search .btn { min-height: 50px; padding: 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 18px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { color: var(--gold); border-color: var(--gold); }
.chip.active { color: var(--gold); border-color: var(--gold); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.grid.results { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 20px; }

/* Verkopen */
.hero { text-align: center; padding: 28px 22px; background: radial-gradient(120% 140% at 50% 0%, #26304a 0%, var(--card) 60%); }
.hero-value { font-size: 48px; font-weight: 750; color: var(--gold); letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 4px; }
.date-field { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.date-field input { width: auto; }
.range-total { margin-left: auto; }
.day { padding: 16px 20px 8px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.day-head h3 { margin: 0; }
.day-total { font-weight: 700; font-size: 17px; white-space: nowrap; }
.sale { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 100px 38px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(42, 53, 80, .6); }
.sale-qty { white-space: nowrap; }
.sale-total { text-align: right; font-weight: 650; white-space: nowrap; }

/* Inloggen */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(80% 60% at 50% 0%, #1b2440 0%, var(--bg) 70%); }
.login-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.login-brand h1 { font-size: 24px; }
.login-card .seg { width: 100%; }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #2a3550; color: var(--text); padding: 11px 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); font-weight: 550; animation: up .2s; text-align: center; }
.toast.good { border-left: 4px solid var(--green); }
.toast.bad { border-left: 4px solid var(--red); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* ── Middelgroot ── */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
  .page { padding: 26px 24px 60px; }
}

/* ── Smal: tabbar onderaan ── */
@media (max-width: 760px) {
  body { font-size: 15px; }
  h1 { font-size: 24px; }
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
  .page { padding: calc(16px + var(--safe-t)) 14px 24px; }
  .page-head { margin-bottom: 14px; align-items: center; }
  .hide-mobile { display: none !important; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(18, 26, 45, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
  .tab.active { color: var(--gold); }
  .totals { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .totals .total-card:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .total-card { padding: 14px 16px; }
  .total-value { font-size: 22px; }
  .toolbar { gap: 10px; }
  .search { flex-basis: 100%; }
  .sort { flex: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-img { padding: 10px 10px 2px; }
  .item-body { padding: 10px 12px 12px; }
  .item-name { font-size: 14px; }
  .item-prices .price { font-size: 16px; }
  .item-prices { flex-wrap: wrap; }
  .card { padding: 16px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .detail-left { position: static; }
  .big-img .card-img { max-width: 240px; }
  .action-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .action-col .btn { padding: 0 10px; min-width: 0; }
  .action-col .btn:first-child { grid-column: 1 / -1; }
  .detail-title { font-size: 22px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat-value { font-size: 17px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid.three > :first-child { grid-column: 1 / -1; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-width: none; max-height: calc(100vh - var(--safe-t) - 12px); border-radius: 20px 20px 0 0; border-bottom: 0; }
  .modal.wide { max-width: none; height: calc(100vh - var(--safe-t) - 12px); }
  .modal-foot { padding-bottom: calc(14px + var(--safe-b)); }
  .modal-foot .btn { flex: 1; }
  .info-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .info-img { display: flex; justify-content: center; }
  .info-img .card-img { max-width: 200px; position: static; }
  .add-search { padding: 10px; gap: 8px; }
  .add-search .btn { padding: 0 16px; }
  .hero-value { font-size: 40px; }
  .sale { grid-template-columns: minmax(0, 1fr) auto 34px; gap: 4px 10px; }
  .sale-time { display: none; }
  .sale-qty { grid-column: 1; grid-row: 2; font-size: 13px; }
  .sale-total { grid-column: 2; grid-row: 1 / span 2; }
  .sale .icon-btn { grid-column: 3; grid-row: 1 / span 2; }
  .range-total { margin-left: 0; flex-basis: 100%; }
  .date-field { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: stretch; gap: 4px; font-size: 12px; }
  .date-field input { width: 100%; min-width: 0; }
  .toasts { bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }
  .listings .clip { max-width: 140px; }
}
@media (max-width: 760px) {
  .page.narrow .form-grid { grid-template-columns: 1fr; }
  .page.narrow .form-grid.three > :first-child { grid-column: auto; }
}
@media (max-width: 380px) {
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
}

/* ── Na de beurs (Cardmarket-voorraad vergelijken) ── */
.steps { margin: 6px 0 12px 18px; padding: 0; color: var(--text); line-height: 1.5; }
.steps li { margin: 4px 0; }
.steps code { background: var(--card2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mt { margin-top: 18px; }
.warn-text { color: var(--red); }
.ok-text { color: var(--green); }
.cm-table tbody tr { cursor: default; }
.cm-table tbody tr.done { opacity: .5; }
.cm-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }
ul.plain { list-style: none; margin: 8px 0 0; padding: 0; }
ul.plain li { padding: 6px 0; border-top: 1px solid var(--line); }
.empty.small { padding: 18px; }

.login-back { display: block; text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.login-back:hover { color: var(--gold); }
.login-page { align-content: center; gap: 4px; }

/* Beheer */
.admin-table td { vertical-align: top; }
.admin-table tbody tr { cursor: default; }
.badge.status-trial { color: var(--gold); border-color: rgba(233, 184, 90, .5); }
.badge.status-free { color: var(--green); border-color: rgba(95, 211, 154, .45); }
.badge.status-active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.badge.status-expired { color: var(--red); border-color: rgba(239, 107, 107, .45); }

/* Abonnement kiezen */
.plan-pick { display: grid; gap: 8px; margin: 10px 0; }
.plan-mini { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.plan-mini.current { border-color: var(--gold); }
.plan-mini-price { white-space: nowrap; }

/* Inklapbare kaart (Na de beurs: zonder extensie) */
details.card > summary { cursor: pointer; list-style: none; padding: 2px 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "▸"; display: inline-block; width: 18px; color: var(--gold); transition: transform .15s; }
details.card[open] > summary::before { transform: rotate(90deg); }

/* Team en toegang */
.access-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: rgba(233, 184, 90, .12); border: 1px solid var(--gold); color: var(--text); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; }
.access-banner.bad { background: rgba(240, 100, 90, .12); border-color: var(--red); }
.access-banner .small { color: var(--muted); }
.team-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.team-list li:first-child { border-top: 0; }
.team-list li .btn { margin-left: auto; }
.team-list li .btn + .btn { margin-left: 0; }
.invite-link { margin-top: 12px; background: var(--card2, #212b42); border-radius: 12px; padding: 10px 12px; }
.invite-link code { flex: 1; min-width: 0; font-size: 13px; }
.invite-card { max-width: 620px; margin: 24px auto; }
.note { background: rgba(233, 184, 90, .12); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.seller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.seller { display: flex; flex-direction: column; background: var(--bg2, #121a2d); border-radius: 12px; padding: 10px 12px; }
.badge.warn { background: rgba(240, 100, 90, .2); color: #ffb4a9; }
.persons-pick { background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; font: inherit; font-size: 13px; }
