/* =========================================================================
   Dreuzelpoker
   Clean poker-thema: donker vilt, goud, rood/groen voor winst & verlies.
   ========================================================================= */

:root {
  --felt-950: #04100b;
  --felt-900: #071710;
  --felt-800: #0b2118;
  --felt-700: #0f2c20;
  --felt-600: #143829;
  --felt-500: #1b4a37;

  --card: rgba(13, 36, 26, 0.78);
  --card-solid: #0d241a;
  --card-hover: rgba(20, 50, 37, 0.9);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);

  --text: #edf3ef;
  --muted: #9cb3a7;
  --faint: #6d877a;

  --gold: #e3bd5f;
  --gold-hi: #f6d98a;
  --gold-lo: #b5861f;
  --gold-soft: rgba(227, 189, 95, 0.12);
  --gold-line: rgba(227, 189, 95, 0.35);

  --pos: #4fd88a;
  --pos-soft: rgba(79, 216, 138, 0.13);
  --neg: #ff6f6f;
  --neg-soft: rgba(255, 111, 111, 0.13);
  --warn: #f2b84b;
  --warn-soft: rgba(242, 184, 75, 0.14);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--felt-900);
  background-image:
    radial-gradient(1100px 650px at 50% -12%, rgba(37, 112, 80, 0.55), transparent 70%),
    radial-gradient(900px 500px at 100% 110%, rgba(16, 60, 42, 0.5), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* subtiele vilt-textuur */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0.05  0 0 0 0 0.02  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#app, #toast-root { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(227, 189, 95, 0.35); }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.gold { color: var(--gold); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- bedragen ---------- */
.amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.amt.pos { color: var(--pos); }
.amt.neg { color: var(--neg); }
.amt.zero { color: var(--muted); }

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { width: 84px; animation: spin 1.6s ease-in-out infinite; }
@keyframes spin { 50% { transform: rotate(180deg) scale(0.92); } 100% { transform: rotate(360deg); } }

/* =========================================================================
   Topbar
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 20, 14, 0.78);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); transition: transform 0.4s ease; }
.brand:hover img { transform: rotate(-14deg); }
.brand-name { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.05; }
.brand-sub { display: block; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.nav { display: flex; gap: 2px; flex: 1; justify-content: safe center; min-width: 0; }
.nav a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--felt-950); background: linear-gradient(135deg, var(--gold-hi), var(--gold)); font-weight: 600; }
.nav a .icon { width: 16px; height: 16px; }

.userbox { display: flex; align-items: center; gap: 8px; flex: none; }
.whoami {
  appearance: none;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cb3a7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 28px 7px 12px;
  font-size: 13px;
  color: var(--text);
  max-width: 150px;
  cursor: pointer;
}
.whoami option { background: var(--card-solid); }
.role-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

/* =========================================================================
   Layout
   ========================================================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 28px 20px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
.page-head .lead { color: var(--muted); margin-top: 6px; max-width: 640px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--text); }

.stack { display: grid; gap: 18px; }
.grid-dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.col-main, .col-side { display: grid; gap: 18px; min-width: 0; }

footer.foot { text-align: center; color: var(--faint); font-size: 12.5px; padding: 0 20px 40px; letter-spacing: 0.04em; }
footer.foot .suits { color: var(--gold); letter-spacing: 0.4em; margin-right: 6px; }

/* =========================================================================
   Cards
   ========================================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-head .card-title { margin: 0; }
.card > .card-title { margin-bottom: 16px; }
.card-title .icon { color: var(--gold); }
.card-link { font-size: 13px; color: var(--gold); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.card-link:hover { color: var(--gold-hi); }
.section-gap { margin-top: 18px; }

/* ---------- hero: laatste game ---------- */
.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 85% -20%, rgba(227, 189, 95, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(25, 70, 51, 0.95), rgba(10, 32, 23, 0.95));
  border-color: rgba(227, 189, 95, 0.22);
  padding: 26px;
}
.hero-card::after {
  content: '♠';
  position: absolute;
  right: -18px; top: -46px;
  font-size: 220px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-date { font-family: var(--display); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; }
.hero-date::first-letter { text-transform: uppercase; }
.hero-sub { color: var(--muted); margin-top: 4px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 6px; position: relative; z-index: 1; }
.award {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
.award-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.award-icon .icon { width: 22px; height: 22px; }
.award-win .award-icon { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.award-fish .award-icon { background: rgba(110, 170, 255, 0.12); color: #8fbaff; box-shadow: inset 0 0 0 1px rgba(110, 170, 255, 0.3); }
.award-label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.award-name { font-size: 18px; font-weight: 700; margin-top: 1px; }
.award-name a:hover { color: var(--gold-hi); }
.award .amt { font-size: 15px; }

.hero-foot { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.hero-foot b { color: var(--text); font-weight: 600; }
.subhead { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 20px 0 10px; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  min-width: 0;
}
.tile-label { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.tile-label .icon { width: 14px; height: 14px; color: var(--gold); }
.tile-value { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub { font-size: 12.5px; color: var(--faint); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub a:hover { color: var(--text); }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
.chip .icon { width: 13px; height: 13px; color: var(--muted); }
a.chip:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.09); }
.chip-gold { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-hi); }
.chip-gold .icon { color: var(--gold); }
.chip-pos { background: var(--pos-soft); border-color: rgba(79, 216, 138, 0.3); color: var(--pos); }
.chip-pos .icon { color: var(--pos); }
.chip-warn { background: var(--warn-soft); border-color: rgba(242, 184, 75, 0.3); color: var(--warn); }
.chip-muted { color: var(--muted); }

/* ---------- avatar (pokerchip) ---------- */
.avatar {
  --chip: #c0392b;
  position: relative;
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--chip) 0 55%, transparent 56%), var(--chip);
  color: #fff;
  font-size: 13px; font-weight: 700;
  flex: none;
  box-shadow: inset 0 0 0 3px var(--chip), inset 0 0 0 5px rgba(255, 255, 255, 0.85), 0 3px 8px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.avatar::before {
  content: '';
  position: absolute; inset: 2px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.85);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
}
.avatar.sm { width: 28px; height: 28px; font-size: 10.5px; }
.avatar.sm::before { border-width: 2px; }
.avatar.lg { width: 54px; height: 54px; font-size: 17px; }
.avatar.xl { width: 84px; height: 84px; font-size: 26px; }
.avatar.xl::before { border-width: 5px; }
.is-inactive .avatar { filter: grayscale(1) brightness(0.7); }

.plink { display: inline-flex; align-items: center; gap: 9px; font-weight: 550; min-width: 0; }
.plink span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.plink:hover span { color: var(--gold-hi); }

/* =========================================================================
   Knoppen & formulieren
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  border-color: transparent;
  color: #1a1206;
  box-shadow: 0 8px 20px -8px rgba(227, 189, 95, 0.6);
}
.btn-gold:hover { background: linear-gradient(135deg, #fbe3a0, var(--gold-hi) 55%, var(--gold)); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { background: #c94343; border-color: transparent; color: #fff; }
.btn-danger:hover { background: #d95252; border-color: transparent; }
.btn-danger-ghost { background: transparent; color: var(--neg); border-color: rgba(255, 111, 111, 0.3); }
.btn-danger-ghost:hover { background: var(--neg-soft); border-color: rgba(255, 111, 111, 0.5); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn .icon { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font-weight: 500; font-size: 13.5px; }
.link-btn:hover { color: var(--gold-hi); }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field > span em { font-style: normal; color: var(--faint); font-weight: 400; }
.input, .field input, .field select, .field textarea, .entry input, .admin-table input, .admin-table select {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select, .admin-table select, select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cb3a7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
}
select option { background: var(--card-solid); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 189, 95, 0.18); }
input[type='date'] { color-scheme: dark; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1 1 160px; }
.form-error { color: var(--neg); font-size: 13.5px; margin-top: 10px; }
.field.inline { display: flex; align-items: center; gap: 8px; }
.field.inline > span { white-space: nowrap; }
.field.inline input { width: 90px; padding: 8px 10px; text-align: right; }
.help { color: var(--faint); font-size: 12.5px; }

/* segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg button, .seg a {
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.seg button:hover, .seg a:hover { color: var(--text); }
.seg .on { background: var(--gold-soft); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-line); }

/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 23px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; transition: background 0.2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.switch input:checked + .track { background: var(--pos); }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(227, 189, 95, 0.3); }
.switch-list { display: grid; gap: 14px; }
.switch-list .help { margin-left: 50px; margin-top: -8px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select { width: auto; min-width: 190px; }

/* =========================================================================
   Tabellen & lijsten
   ========================================================================= */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 600; color: var(--muted); }
.table tbody tr.clickable { cursor: pointer; transition: background 0.12s; }
.table tbody tr.clickable:hover { background: rgba(255, 255, 255, 0.035); }
.table tr.is-inactive td { opacity: 0.5; }
.table tr.is-me td { background: rgba(227, 189, 95, 0.06); }
.rank { width: 30px; color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank.r1 { color: var(--gold-hi); }
.rank.r2 { color: #d6dde3; }
.rank.r3 { color: #e0a06a; }
.big-amt { font-size: 16px; }

/* mini-stand (dashboard) */
.lb { list-style: none; margin: 0; padding: 0; }
.lb li a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; transition: background 0.12s; }
.lb li a:hover { background: rgba(255, 255, 255, 0.04); }
.lb li.is-me a { background: rgba(227, 189, 95, 0.08); }
.lb li.is-inactive { opacity: 0.45; }
.lb .rank { width: auto; font-size: 13px; text-align: center; }

/* vorm-dots */
.form-dots { display: inline-flex; gap: 4px; }
.form-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: block; }
.form-dots i.w { background: var(--pos); }
.form-dots i.l { background: var(--neg); }
.form-dots i.e { background: var(--muted); }

/* diverging bars */
.dbars { display: grid; gap: 6px; }
.dbar-row { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 100px; align-items: center; gap: 12px; }
.dbar-row .plink { font-size: 14px; }
.dbar-track { display: grid; grid-template-columns: 1fr 1fr; height: 24px; position: relative; }
.dbar-track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.dbar-neg, .dbar-pos { display: flex; align-items: center; }
.dbar-neg { justify-content: flex-end; }
.dbar-neg span, .dbar-pos span { display: block; height: 14px; min-width: 3px; }
.dbar-neg span { background: linear-gradient(270deg, #ff8a8a, #d94b4b); border-radius: 4px 0 0 4px; }
.dbar-pos span { background: linear-gradient(90deg, #3fc97b, #74e9a7); border-radius: 0 4px 4px 0; }
.dbar-value { text-align: right; font-size: 14px; }

/* transfers */
.transfers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.transfer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) auto auto;
  align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}
.t-arrow { color: var(--gold); display: grid; place-items: center; }
.t-amt { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-hi); text-align: right; }
.transfer.mine { border-color: var(--gold-line); background: rgba(227, 189, 95, 0.06); }

.balance-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; }
.balance-check.ok { color: var(--pos); background: var(--pos-soft); }
.balance-check.warn { color: var(--warn); background: var(--warn-soft); }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.empty .empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty p { max-width: 420px; margin: 0 auto 16px; }
.empty-small { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.empty-small .icon { color: var(--pos); }

.notes { white-space: pre-line; color: var(--muted); }

/* sessielijst */
.session-list { display: grid; gap: 10px; }
.session-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center; gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.session-row:hover { border-color: var(--gold-line); background: var(--card-hover); }
.date-block { text-align: center; border-radius: 10px; background: rgba(0, 0, 0, 0.25); padding: 6px 0; border: 1px solid var(--line); }
.date-block .d { font-size: 20px; font-weight: 800; line-height: 1.1; }
.date-block .m { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; }
.date-block .y { font-size: 10.5px; color: var(--faint); }
.sr-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sr-winner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sr-winner .crown { color: var(--gold); }
.sr-winner .who { min-width: 0; }
.sr-winner .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sr-right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.sr-pot { font-size: 13px; color: var(--muted); }

/* spelerskaarten */
.player-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.player-card:hover { border-color: var(--gold-line); transform: translateY(-2px); background: var(--card-hover); }
.player-card .pc-name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card .pc-amt { font-size: 18px; margin-top: 1px; }
.player-card .pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.player-card.is-inactive { opacity: 0.55; }
.pc-rank { font-size: 11px; color: var(--faint); font-weight: 700; letter-spacing: 0.08em; }

/* speler-hero */
.player-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 18px; }
.player-hero h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
.ph-stand { text-align: right; }
.ph-stand .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; }
.ph-stand .big { font-size: clamp(28px, 4vw, 38px); font-weight: 800; line-height: 1.15; }
.ph-stand .small { margin-top: 4px; }

/* homegames */
.loc-card {
  display: grid; gap: 14px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s;
  position: relative; overflow: hidden;
}
a.loc-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.loc-card .loc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.loc-card h3 { font-size: 19px; font-family: var(--display); }
.loc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.loc-stats div { background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 8px 10px; }
.loc-stats b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.loc-stats span { font-size: 11.5px; color: var(--muted); }
.loc-king { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.loc-king .icon { color: var(--gold); }
.loc-king b { color: var(--text); }

/* podium */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 18px; }
.pod { text-align: center; display: grid; gap: 8px; justify-items: center; }
.pod .avatar { width: 58px; height: 58px; font-size: 18px; }
.pod.p1 .avatar { width: 74px; height: 74px; font-size: 22px; }
.pod-name { font-weight: 700; }
.pod-block {
  width: 100%;
  border-radius: 12px 12px 4px 4px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 30px;
  border: 1px solid var(--line);
}
.pod.p1 .pod-block { height: 120px; background: linear-gradient(180deg, rgba(227, 189, 95, 0.35), rgba(227, 189, 95, 0.08)); color: var(--gold-hi); border-color: var(--gold-line); }
.pod.p2 .pod-block { height: 88px; background: linear-gradient(180deg, rgba(214, 221, 227, 0.22), rgba(214, 221, 227, 0.05)); color: #e3e8ec; }
.pod.p3 .pod-block { height: 66px; background: linear-gradient(180deg, rgba(224, 160, 106, 0.25), rgba(224, 160, 106, 0.05)); color: #f0b583; }
.pod .crown { color: var(--gold); }

/* toernooi-kaarten */
.t-card {
  display: grid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.t-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.t-cover {
  height: 170px;
  background-color: var(--felt-600);
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid; place-items: center;
}
.t-cover.no-photo {
  background-image:
    radial-gradient(circle at 50% 40%, rgba(227, 189, 95, 0.2), transparent 60%),
    linear-gradient(160deg, #1d5a42, #0b2419);
}
.t-cover.no-photo .icon { width: 54px; height: 54px; color: var(--gold); opacity: 0.85; }
.t-cover .photo-count { position: absolute; right: 10px; bottom: 10px; }
.t-cover .photo-count .chip { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); }
.t-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.t-body h3 { font-family: var(--display); font-size: 21px; }
.t-winner { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.t-winner .icon { color: var(--gold); }

/* foto's */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery button {
  padding: 0; border: 0; background: var(--felt-700);
  border-radius: 12px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1; position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery button:hover img { transform: scale(1.05); }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-row .input { width: 220px; padding: 7px 12px; font-size: 13.5px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 8, 5, 0.94);
  display: grid; place-items: center;
  padding: 50px 60px;
  animation: fade 0.2s ease;
}
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox figcaption { display: flex; gap: 14px; align-items: center; color: var(--text); font-size: 14px; flex-wrap: wrap; justify-content: center; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.08); border-radius: 50%;
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 28px; line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.16); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* =========================================================================
   Grafiek
   ========================================================================= */
.chart { width: 100%; min-height: 120px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .grid.zero { stroke: var(--line-strong); stroke-dasharray: 4 4; }
.chart .tick { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--card-solid); stroke-width: 2; }
.chart .dot.w { fill: var(--pos); }
.chart .dot.l { fill: var(--neg); }
.chart .dot.e { fill: var(--gold); }

/* =========================================================================
   Admin
   ========================================================================= */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--gold-hi); border-color: var(--gold); }

.admin-table td { padding: 8px 8px; }
.admin-table input, .admin-table select { padding: 8px 10px; font-size: 14px; }
.admin-table .w-amt { width: 140px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* sessie-invoer */
.entry-list { display: grid; gap: 8px; }
.entry {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2.4fr);
  align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
  transition: border-color 0.15s, background 0.15s;
}
.entry.on { border-color: var(--gold-line); background: rgba(227, 189, 95, 0.05); }
.entry-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-width: 0; }
.entry-check input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.entry-check span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-fields { display: grid; grid-template-columns: 150px 1fr 110px; gap: 10px; align-items: end; }
.entry:not(.on) .entry-fields { opacity: 0.35; pointer-events: none; }
.mini { display: grid; gap: 3px; min-width: 0; }
.mini > span { font-size: 11px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.entry input { padding: 8px 10px; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.input-add { display: flex; gap: 4px; }
.input-add button { flex: none; width: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); color: var(--gold); font-weight: 700; cursor: pointer; font-size: 16px; }
.input-add button:hover { background: var(--gold-soft); }
.entry-net { text-align: right; font-size: 15px; padding-bottom: 8px; }
.sform[data-mode='net'] .chips-only { display: none; }
.sform[data-mode='chips'] .net-only { display: none; }
.sform[data-type='cash'] .tour-only { display: none; }
.sform[data-type='tournament'] .cash-only { display: none; }
.sform[data-mode='chips'][data-type='cash'] .entry-fields { grid-template-columns: 150px 1fr 110px; }
.sform[data-mode='chips'][data-type='tournament'] .entry-fields { grid-template-columns: 150px 1fr 70px 110px; }
.sform[data-mode='net'][data-type='cash'] .entry-fields { grid-template-columns: 1fr 110px; }
.sform[data-mode='net'][data-type='tournament'] .entry-fields { grid-template-columns: 1fr 70px 110px; }

.stepper { display: grid; grid-template-columns: 34px 1fr 34px; gap: 4px; }
.stepper button { border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); color: var(--gold); font-weight: 700; cursor: pointer; font-size: 17px; line-height: 1; }
.stepper button:hover { background: var(--gold-soft); }
.entry .stepper input { text-align: center; padding-left: 4px; padding-right: 4px; }

.rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.rate input { width: 74px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 10px; font-size: 14px; text-align: right; outline: none; font-variant-numeric: tabular-nums; }

/* log */
.log { list-style: none; margin: 0; padding: 0; }
.log-day { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 18px 0 8px; }
.log-day:first-child { padding-top: 0; }
.log-row { display: grid; grid-template-columns: 48px 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.log-time { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.log-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.log-icon .icon { width: 14px; height: 14px; }
.log-text { min-width: 0; font-size: 14.5px; }
.log-row.is-delete .log-text { color: var(--neg); }
.log-row.is-delete .log-text b { color: var(--text); }
.log-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* wie ben jij */
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 16px; max-height: 52vh; overflow-y: auto; }
.who-grid button { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 600; cursor: pointer; text-align: left; min-width: 0; }
.who-grid button:hover { border-color: var(--gold); background: var(--gold-soft); }
.who-grid button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* home: de stand */
.stand-card .dbar-row { grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 100px; }
.stand-card .plink .rank { width: 22px; text-align: right; font-size: 13px; }
.stand-card .plink.is-me span:last-child { color: var(--gold-hi); }
.stand-card .dbars { gap: 7px; margin-top: 18px; }
.night-card { display: grid; gap: 10px; padding: 16px 18px; transition: border-color 0.15s, transform 0.15s; }
.night-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.night-card .eyebrow { display: flex; align-items: center; gap: 6px; margin: 0; }
.night-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.night-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.night-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.night-icon .icon { width: 16px; height: 16px; }
.night-icon.win { background: var(--gold-soft); color: var(--gold); }
.night-icon.fish { background: rgba(110, 170, 255, 0.12); color: #8fbaff; }

.payout-past { border-top: 1px solid var(--line); padding: 10px 0; }
.payout-past summary { cursor: pointer; }
.icon-btn.active { color: var(--gold-hi); border-color: var(--gold-line); background: var(--gold-soft); }
.hero-title { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.cap-first::first-letter { text-transform: uppercase; }

.entry.needs-check { border-color: rgba(242, 184, 75, 0.6); background: rgba(242, 184, 75, 0.06); }

.sform-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.sheet-card { position: sticky; top: 84px; }
.sheet-drop { border-radius: var(--radius-sm); overflow: hidden; }
.sheet-pick {
  position: relative;
  display: grid; justify-items: center; gap: 6px;
  padding: 30px 16px;
  border: 1.5px dashed var(--gold-line);
  border-radius: var(--radius-sm);
  background: rgba(227, 189, 95, 0.04);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sheet-pick:hover { background: var(--gold-soft); border-color: var(--gold); }
.sheet-pick > .icon { width: 30px; height: 30px; color: var(--gold); }
.sheet-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sheet-preview { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.sheet-preview img { width: 100%; max-height: 62vh; object-fit: contain; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sheet-result {
  display: grid; gap: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
  background: rgba(227, 189, 95, 0.06);
}
.sheet-result .icon { color: var(--pos); }
.unmatched { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 8px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.unmatched .input { padding: 7px 30px 7px 10px; font-size: 13.5px; }
.add-player { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.add-player .input { flex: 1; padding: 8px 12px; font-size: 14px; }

.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #1a1206; display: inline-block; animation: spin-simple 0.8s linear infinite; }
@keyframes spin-simple { to { transform: rotate(360deg); } }

/* uitbetalingsronde */
.payout-card {
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(227, 189, 95, 0.16), transparent 70%),
    var(--card);
  border-color: var(--gold-line);
}
.payout-card .eyebrow { display: flex; align-items: center; gap: 6px; }
.payout-date { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.2; }
.payout-date::first-letter { text-transform: uppercase; }
.payout-count { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.payout-count b { font-size: 40px; line-height: 1; font-weight: 800; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.payout-count span { color: var(--muted); font-weight: 500; }
.payout-count.past span { color: var(--warn); }
.payout-card .card-link { display: inline-flex; }
.payout-banner {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
  background: linear-gradient(90deg, rgba(227, 189, 95, 0.12), rgba(227, 189, 95, 0.03));
}
.payout-banner-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.payout-banner-icon .icon { width: 20px; height: 20px; }

.sticky-bar {
  position: sticky; bottom: 14px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  background: rgba(8, 26, 18, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-line);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
}
.sb-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); align-items: center; }
.sb-stats b { color: var(--text); }
.sb-balance.ok { color: var(--pos); font-weight: 600; }
.sb-balance.warn { color: var(--warn); font-weight: 600; }
.sb-actions { display: flex; gap: 8px; }

/* =========================================================================
   Login
   ========================================================================= */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; position: relative; overflow: hidden; }
.login-suits span {
  position: absolute; font-size: 180px; line-height: 1; color: rgba(255, 255, 255, 0.03); pointer-events: none; user-select: none;
}
.login-suits span:nth-child(1) { top: 6%; left: 8%; transform: rotate(-16deg); }
.login-suits span:nth-child(2) { top: 12%; right: 9%; transform: rotate(14deg); color: rgba(255, 111, 111, 0.05); }
.login-suits span:nth-child(3) { bottom: 8%; left: 14%; transform: rotate(10deg); }
.login-suits span:nth-child(4) { bottom: 10%; right: 12%; transform: rotate(-12deg); color: rgba(255, 111, 111, 0.05); }
.login-card {
  width: 100%; max-width: 400px;
  text-align: center;
  padding: 38px 32px 30px;
  border-radius: 26px;
  background: linear-gradient(170deg, rgba(25, 72, 52, 0.92), rgba(9, 30, 21, 0.94));
  border: 1px solid rgba(227, 189, 95, 0.25);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  animation: rise 0.5s ease;
}
.login-logo { width: 116px; height: 116px; margin: -96px auto 14px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55)); }
.login-card h1 { font-family: var(--display); font-size: 38px; line-height: 1.05; margin-bottom: 26px; overflow-wrap: anywhere; }
.login-sub { color: var(--gold); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; margin: 8px 0 26px; }
.login-card .field { text-align: left; margin-bottom: 14px; }
.login-card .field input { padding: 13px 14px; font-size: 16px; }
.login-hint { color: var(--faint); font-size: 12.5px; margin-top: 16px; }
.login-card .btn { padding: 13px 18px; font-size: 15px; }

/* =========================================================================
   Modal & toast
   ========================================================================= */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(2, 8, 5, 0.7); display: grid; place-items: center; padding: 20px; animation: fade 0.15s ease; }
.modal { width: 100%; max-width: 420px; background: var(--card-solid); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); animation: rise 0.2s ease; }
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

#toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 11px 18px; border-radius: 999px; background: #10301f; border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: none; }
.toast-ok { border-color: rgba(79, 216, 138, 0.4); }
.toast-err { border-color: rgba(255, 111, 111, 0.5); background: #3a1515; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* =========================================================================
   Responsief
   ========================================================================= */
@media (max-width: 1290px) {
  .nav a span { display: none; }
  .nav a { padding: 9px 11px; }
}

@media (max-width: 1080px) {
  .grid-dash { grid-template-columns: minmax(0, 1fr); }
  .sform-split { grid-template-columns: minmax(0, 1fr); }
  .sheet-card { position: static; order: -1; }
  .sheet-preview img { max-height: 46vh; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .topbar-inner { flex-wrap: wrap; padding: 10px 16px 0; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 19px; }
  .userbox { margin-left: auto; }
  .whoami { max-width: 120px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a span { display: inline; }
  .container { padding: 20px 16px 70px; }
  .card { padding: 18px 16px; }
  .hero-card { padding: 20px 16px; }
  .awards { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-value { font-size: 19px; }
  .dbar-row, .stand-card .dbar-row { grid-template-columns: minmax(80px, 130px) minmax(0, 1fr) 84px; gap: 8px; }
  .dbar-value { font-size: 13px; }
  .session-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .session-row .sr-winner { display: none; }
  .player-hero { grid-template-columns: auto minmax(0, 1fr); }
  .ph-stand { grid-column: 1 / -1; text-align: left; }
  .transfer { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) auto; }
  .transfer .btn { grid-column: 1 / -1; justify-self: end; }
  .entry { grid-template-columns: 1fr; }
  .sform[data-mode][data-type] .entry-fields { grid-template-columns: 1fr 1fr; }
  .entry-net { grid-column: 1 / -1; padding-bottom: 0; }
  .log-row { grid-template-columns: 44px 28px minmax(0, 1fr); }
  .log-actions { grid-column: 3; justify-content: flex-start; }
  .sticky-bar { border-radius: 18px; bottom: 8px; }
  .podium { gap: 6px; }
  .pod .avatar { width: 46px; height: 46px; font-size: 15px; }
  .pod.p1 .avatar { width: 58px; height: 58px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .upload-row .input { width: 100%; }
  .role-badge { display: none; }
  .unmatched { grid-template-columns: 1fr 1fr; }
  .unmatched > span { grid-column: 1 / -1; }
  .add-player { flex-wrap: wrap; }
  .payout-banner { align-items: flex-start; }
}

@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
