/* =============================================================
   BELLOCCO — Universal Stylesheet  v2.0
   Gebruik: ALLE pagina's — ingame én outgame
   ============================================================= */

/* ──────────────────────────────────────────────────────────
   1. CSS Custom Properties
────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root {
  /* Headings (tactical, condensed) */
  --head:        'Oswald', 'Arial Narrow', sans-serif;
  /* Core palette */
  --bg:          #0a0a0f;
  --surface:     #111118;
  --surface2:    #16161f;
  --surface3:    #1c1c27;
  --surface4:    #222232;

  /* Brand */
  --accent:      #c0392b;
  --accent-h:    #e74c3c;
  --accent-dim:  rgba(192,57,43,.12);
  --accent-glow: rgba(192,57,43,.35);

  /* Game status colors */
  --green:       #2ecc71;
  --green-dim:   rgba(46,204,113,.12);
  --blue:        #3498db;
  --blue-dim:    rgba(52,152,219,.12);
  --gold:        #e8b54a;
  --gold-dim:    rgba(232,181,74,.12);
  --purple:      #9b59b6;
  --purple-dim:  rgba(155,89,182,.12);
  --red:         #e74c3c;

  /* Text */
  --text:        #eaeaf8;
  --muted:       rgba(234,234,248,.52);
  --muted2:      rgba(234,234,248,.28);
  --muted3:      rgba(234,234,248,.16);

  /* Borders */
  --border:      rgba(255,255,255,.06);
  --border-h:    rgba(255,255,255,.13);
  --border-act:  rgba(192,57,43,.3);

  /* Shape */
  --radius:      14px;
  --radius-sm:   9px;
  --radius-xs:   5px;

  /* Shadows */
  --shadow:      0 8px 32px rgba(0,0,0,.4);
  --shadow-lg:   0 24px 64px rgba(0,0,0,.55);

  /* Ingame layout */
  --topbar-h:    60px;
  --sidebar-l:   252px;
  --sidebar-r:   268px;
  --bot-nav-h:   54px;
}

/* ──────────────────────────────────────────────────────────
   2. Reset & Base
────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body   {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
}
a      { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
img    { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Ingame body overrides ── */
body.game {
  height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
}

/* ──────────────────────────────────────────────────────────
   3. Scrollbars
────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.16); }

/* ──────────────────────────────────────────────────────────
   4. Animations
────────────────────────────────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.5); }
  50%       { box-shadow: 0 0 14px 3px rgba(192,57,43,.3); }
}
@keyframes pip-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .45; }
}
@keyframes online-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  50%       { box-shadow: 0 0 0 4px rgba(46,204,113,.0); }
}
@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ══════════════════════════════════════════════════════════
   ██  I N G A M E   S T Y L E S
   ══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   5. TOPBAR
────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h); flex-shrink: 0; z-index: 500;
  /* graphite met een subtiele rode gloed bij het logo */
  background:
    radial-gradient(120% 240% at 0% 0%, rgba(192,57,43,.18), transparent 42%),
    linear-gradient(180deg, #17121b 0%, #0c0c13 100%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  border-top: 2px solid var(--accent);
  box-shadow: 0 2px 16px rgba(0,0,0,.45);
  display: flex; align-items: center;
  user-select: none;
}
.topbar-logo-block {
  width: var(--sidebar-l); flex-shrink: 0; height: 100%;
  padding: 0 18px; display: flex; align-items: center; gap: 10px;
  border-right: 1px solid var(--border);
}
.topbar-logo { font-size: 1.2rem; font-weight: 900; letter-spacing: 2.5px; }
.topbar-logo span { color: var(--accent); }
.topbar-season-pill {
  font-size: .6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); background: var(--gold-dim);
  border: 1px solid rgba(243,156,18,.25); border-radius: 99px;
  padding: 3px 9px; white-space: nowrap;
}
.topbar-page {
  padding: 0 18px; height: 100%;
  display: flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--muted);
  border-right: 1px solid var(--border);
}
.topbar-page i      { color: var(--accent); font-size: .72rem; }
.topbar-page strong { color: var(--text); font-weight: 600; }
.topbar-resources   { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.res-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 9px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  font-size: .8rem; font-weight: 700; white-space: nowrap; color: #e9ebee;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, background .15s; cursor: default;
}
.res-pill:hover { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.res-pill i { font-size: .76rem; color: var(--muted); }
.res-pill.cash i   { color: var(--green); }
.res-pill.health i { color: #e74c3c; }
.res-pill.energy i { color: var(--gold); }
.res-pill.heat i   { color: var(--accent); }
.res-pill.heat.danger { animation: pulse-glow 1.5s infinite; border-color: rgba(192,57,43,.4); }
.topbar-actions {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; border-left: 1px solid var(--border); height: 100%;
}
.topbar-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm); position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; transition: all .2s;
  background: var(--surface2); border: 1px solid var(--border);
}
.topbar-btn:hover { color: var(--text); border-color: var(--border-h); }
.topbar-btn .badge-dot {
  position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--surface);
}
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, #7a1c12 100%);
  border: 2px solid rgba(192,57,43,.35);
  box-shadow: 0 0 0 1px rgba(192,57,43,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: #fff;
  transition: box-shadow .2s;
}
.topbar-avatar:hover { box-shadow: 0 0 0 2px rgba(192,57,43,.4), 0 0 16px rgba(192,57,43,.2); }
.topbar-hamburger {
  display: none; width: 34px; height: 34px; margin-right: 6px;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 1rem; transition: color .2s;
}
.topbar-hamburger:hover { color: var(--text); }

/* ──────────────────────────────────────────────────────────
   6. THREE-COLUMN LAYOUT
────────────────────────────────────────────────────────── */
.game-layout { flex: 1; display: flex; overflow: hidden; }

/* ──────────────────────────────────────────────────────────
   7. LEFT SIDEBAR
────────────────────────────────────────────────────────── */
.sidebar-left {
  width: var(--sidebar-l); flex-shrink: 0;
  background: linear-gradient(180deg, #0d0d15 0%, #09090e 100%);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  padding: 10px 0 0; position: relative;
}
/* Sectiekop als graniet th-balkje */
.nav-section {
  margin: 9px 8px 5px; padding: 5px 11px; border-radius: 4px;
  font-size: .57rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: #9398a1;
  background:
    radial-gradient(120% 180% at 50% 0%, rgba(255,255,255,.05), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.014));
}
.nav-section:first-child { margin-top: 6px; }
/* Menu-item als td-balkje (met kleine gap ertussen) */
.nav-item {
  display: flex; align-items: center; gap: 9px;
  margin: 2px 8px; padding: 2px 10px; border-radius: 4px;
  font-size: .76rem; font-weight: 500; color: var(--muted);
  background: rgba(255,255,255,.02);
  transition: background .15s, color .15s, box-shadow .15s; cursor: pointer;
}
.nav-item:hover {
  color: rgba(234,234,248,.85);
  background: rgba(255,255,255,.055);
}
.nav-item.active {
  color: var(--text); font-weight: 600;
  background: linear-gradient(90deg, rgba(192,57,43,.24) 0%, rgba(192,57,43,.05) 100%);
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-icon { width: 14px; text-align: center; flex-shrink: 0; font-size: .65rem; color: var(--muted2); transition: color .15s; }
.nav-item:hover .nav-icon  { color: var(--muted); }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-label { flex: 1; }
.nav-badge {
  font-size: .58rem; font-weight: 700; padding: 2px 7px; border-radius: 99px;
  background: var(--accent); color: #fff; flex-shrink: 0;
}
.nav-badge.green  { background: var(--green); }
.nav-badge.gold   { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(243,156,18,.3); }
.nav-badge.blue   { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(52,152,219,.3); }
.nav-badge.red    { background: var(--accent); }

/* ── Topbar berichten-teller ─────────────────────────────── */
.tb-count {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--accent); color: #fff; font-size: .56rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid #0d0d15;
}

/* ── Berichten: lijst ────────────────────────────────────── */
.msg-list { display: flex; flex-direction: column; }
.msg-row {
  display: grid; grid-template-columns: 8px 150px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--muted); font-size: .78rem; transition: background .15s;
}
.msg-row:last-child { border-bottom: none; }
.msg-row:hover { background: rgba(255,255,255,.035); }
.msg-row .msg-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.msg-row.unread .msg-dot { background: var(--accent); box-shadow: 0 0 8px rgba(192,57,43,.6); }
.msg-row .msg-party { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row .msg-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row.unread .msg-party, .msg-row.unread .msg-subject { color: #fff; font-weight: 800; }
.msg-row .msg-date { font-size: .68rem; color: var(--muted2); white-space: nowrap; }

/* ── Berichten: lezen ────────────────────────────────────── */
.msg-view-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05); flex-wrap: wrap; }
.msg-view-party .mv-label { color: var(--muted); font-size: .68rem; margin-right: 6px; }
.msg-view-party strong { color: #fff; font-size: .76rem; }
.msg-view-date { font-size: .68rem; color: var(--muted); }
.msg-view-body { padding: 16px; font-size: .76rem; line-height: 1.6; color: var(--text); word-wrap: break-word; }
.msg-view-actions { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.05); flex-wrap: wrap; }

/* Berichtenlijst (dtable): vaste kolommen + titel afkappen met … */
.msg-table { table-layout: fixed; width: 100%; }
.msg-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.msg-table td .dt-name { overflow: hidden; }
.msg-table td .dt-strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
/* kolombreedtes: ☑ | Van | Onderwerp(rest) | Datum */
.msg-table th:nth-child(1), .msg-table td:nth-child(1) { width: 38px; text-align: center; }
.msg-table th:nth-child(2), .msg-table td:nth-child(2) { width: 150px; }
.msg-table th:nth-child(4), .msg-table td:nth-child(4) { width: 140px; }

/* Multi-select toolbar + checkboxes */
.msg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.05); flex-wrap: wrap; }
.msg-checkall { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; }
.msg-del-btn:not(:disabled) { color: #e74c3c; border-color: rgba(231,76,60,.4); }

/* Eigen donkere checkbox-stijl (past bij het template, geen wit vakje) */
.msg-cb, .msg-checkall input {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--border); background: var(--surface3);
  cursor: pointer; position: relative; flex-shrink: 0; vertical-align: middle;
  transition: background .15s, border-color .15s;
}
.msg-cb:hover { border-color: rgba(231,76,60,.6); }
.msg-checkall input:hover { border-color: rgba(241,196,15,.6); }
.msg-cb:checked { background: #e74c3c; border-color: #e74c3c; }
.msg-checkall input:checked { background: var(--gold); border-color: var(--gold); }
.msg-cb:checked::after, .msg-checkall input:checked::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 4px; height: 9px; border: solid #1b1b22;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

@media (max-width: 560px) {
  .msg-table td, .msg-table thead th { padding: 8px 5px; font-size: .7rem; }
  .msg-table th:nth-child(1), .msg-table td:nth-child(1) { width: 30px; }
  .msg-table th:nth-child(2), .msg-table td:nth-child(2) { width: 80px; }
  .msg-table th:nth-child(4), .msg-table td:nth-child(4) { width: 70px; font-size: .6rem; color: var(--muted2); }
  .msg-table .dt-ava { display: none; }     /* avatar weg → naam past */
  .msg-table .dt-name { gap: 0; }
  .msg-table .msg-time { display: none; }    /* alleen datum, geen tijd */
}

@media (max-width: 560px) {
  .msg-row {
    grid-template-columns: 8px 1fr auto;
    grid-template-areas: "dot party date" ". subject subject";
    row-gap: 2px;
  }
  .msg-row .msg-dot     { grid-area: dot; }
  .msg-row .msg-party   { grid-area: party; }
  .msg-row .msg-date    { grid-area: date; }
  .msg-row .msg-subject { grid-area: subject; display: block; font-size: .72rem; color: var(--muted); }
}

/* ════════════════════════════════════════════════════════════
   UBB-EDITOR (eigen WYSIWYG)
   ════════════════════════════════════════════════════════════ */
.ubb { position: relative; border: 1px solid var(--border); border-radius: 10px; background: var(--surface2); }
.ubb-hidden { display: none !important; }
.ubb-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px; border-radius: 9px 9px 0 0;
  padding: 6px 8px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border);
}
.ubb-btn {
  width: 25px; height: 25px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-size: .68rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .12s;
}
.ubb-btn:hover { background: rgba(255,255,255,.07); color: #fff; border-color: var(--border); }
.ubb-btn .fa-youtube { color: #ff3d3d; }
.ubb-sep { width: 1px; height: 16px; background: var(--border); margin: 0 3px; }
.ubb-select {
  height: 25px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: .66rem; padding: 0 5px; cursor: pointer;
}
.ubb-area {
  min-height: 180px; max-height: 460px; overflow-y: auto; padding: 11px 14px; border-radius: 0 0 9px 9px;
  font-size: .78rem; line-height: 1.6; color: var(--text); outline: none;
}
.ubb-area:empty::before { content: attr(data-ph); color: var(--muted2); }
.ubb-area.ubb-err { box-shadow: inset 0 0 0 2px var(--accent); }
.ubb-area:focus { background: rgba(255,255,255,.012); }

/* Live opmaak in de editor + weergave-zijde delen dezelfde look. */
.ubb-area blockquote, .bb-quote {
  margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--accent);
  background: rgba(192,57,43,.08); border-radius: 0 8px 8px 0; color: var(--muted);
}
.ubb-area pre, .bb-code {
  margin: 8px 0; padding: 10px 12px; background: #0c0c12; border: 1px solid var(--border);
  border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem;
  white-space: pre-wrap; word-wrap: break-word; color: #d7e0ea;
}
.ubb-spoiler, .bb-spoiler {
  background: #2a2a33; color: transparent; border-radius: 4px; padding: 0 4px; cursor: pointer;
  filter: blur(.01px); text-shadow: 0 0 9px rgba(255,255,255,.55);
}
.bb-spoiler.show { color: var(--text); text-shadow: none; background: rgba(255,255,255,.06); }
.bb-u { text-decoration: underline; }
.ubb-img, .bb-img { max-width: 100%; max-height: 320px; border-radius: 8px; margin: 6px 0; display: block; }
/* In een gelezen bericht: afbeeldingen naast elkaar mogelijk. */
.bb-img { display: inline-block; vertical-align: top; max-height: none; margin: 6px 6px 6px 0; }
/* Resizebare afbeelding in de editor (sleep de hoek rechtsonder). */
.ubb-resize {
  display: inline-block; resize: horizontal; overflow: hidden; max-width: 100%;
  line-height: 0; margin: 6px 0; border: 1px dashed transparent; border-radius: 8px; vertical-align: top;
}
.ubb-resize:hover { border-color: var(--accent); }
.ubb-resize img { width: 100%; height: auto; margin: 0; display: block; }
.bb-list { margin: 6px 0 6px 20px; }
.ubb-area a, .msg-view-body a { color: var(--blue); text-decoration: underline; }

/* YouTube-kaart in de editor. */
.ubb-yt {
  position: relative; display: inline-block; vertical-align: top; width: 280px; max-width: 100%; margin: 6px 6px 6px 0;
  border-radius: 10px; overflow: hidden; cursor: default; border: 1px solid var(--border);
}
.ubb-yt img { width: 100%; display: block; }
.ubb-yt-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25); color: #fff; font-size: 1.6rem;
}
.ubb-yt-play i { background: #ff3d3d; width: 52px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; }

/* YouTube-embed in een gelezen bericht (naast elkaar mogelijk). */
.bb-yt { display: inline-block; vertical-align: top; position: relative; width: 340px; max-width: 100%; margin: 8px 8px 0 0; }
.bb-yt iframe { width: 100%; aspect-ratio: 16/9; border-radius: 10px; border: 1px solid var(--border); }

/* Kleur-swatches (zwevende pop-up). */
.ubb-colors {
  position: absolute; top: 46px; left: 8px; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 6px; width: 188px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border-h); border-radius: 10px; box-shadow: var(--shadow-lg);
}
.ubb-sw { width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); cursor: pointer; transition: transform .12s; }
.ubb-sw:hover { transform: scale(1.12); }

/* Emoji-paneel (zwevende pop-up). */
.ubb-emoji {
  position: absolute; top: 46px; left: 8px; right: 8px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border-h); border-radius: 10px; box-shadow: var(--shadow-lg);
}
/* hidden-attribuut moet de pop-up echt verbergen (wint van display:flex). */
.ubb-colors[hidden], .ubb-emoji[hidden] { display: none !important; }
.ubb-emoji-tabs { display: flex; gap: 4px; padding: 8px 10px 0; flex-wrap: wrap; }
.ubb-emoji-tab {
  font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
}
.ubb-emoji-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ubb-emoji-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px;
  padding: 8px 10px; max-height: 180px; overflow-y: auto;
}
.ubb-emoji-item { font-size: 1.25rem; line-height: 1; padding: 5px; border-radius: 7px; cursor: pointer; background: transparent; border: none; }
.ubb-emoji-item:hover { background: rgba(255,255,255,.09); }

/* Popover (link / afbeelding / youtube). */
.ubb-pop-ov { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ubb-pop { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border-h); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.ubb-pop-head { padding: 13px 16px; font-weight: 800; font-size: .9rem; border-bottom: 1px solid var(--border); }
.ubb-pop-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ubb-pop-label { font-size: .68rem; color: var(--muted); font-weight: 700; }
.ubb-pop-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }

/* ── Left sidebar profile block ── */
.sl-profile {
  padding: 14px 14px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sl-profile-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sl-ava-wrap { position: relative; flex-shrink: 0; }
.sl-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #7a1c12 100%);
  border: 2px solid rgba(192,57,43,.35);
  box-shadow: 0 0 0 1px rgba(192,57,43,.12), 0 0 18px rgba(192,57,43,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: #fff;
}
.sl-ava img, .topbar-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.sl-ava-online {
  position: absolute; top: 0; right: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--surface);
  animation: online-pulse 2.5s infinite;
}
.sl-ava-lvl {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: .48rem; font-weight: 800; padding: 1px 5px; border-radius: 99px;
  border: 1.5px solid var(--surface); white-space: nowrap;
}
.sl-info   { flex: 1; min-width: 0; }
.sl-name   { font-size: .86rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-rank   { font-size: .65rem; color: var(--gold); margin-top: 1px; }
.sl-family { font-size: .63rem; color: var(--muted); margin-top: 1px; display: flex; align-items: center; gap: 4px; }
.sl-family i { color: var(--accent); font-size: .58rem; }
.sl-dots { color: var(--muted2); font-size: .8rem; flex-shrink: 0; padding: 4px; border-radius: var(--radius-xs); transition: color .15s; }
.sl-dots:hover { color: var(--text); }
.sl-stats-row {
  display: flex; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 10px; margin-bottom: 10px;
}
.sl-stat { flex: 1; text-align: center; }
.sl-stat-val { font-size: .88rem; font-weight: 800; display: block; line-height: 1; }
.sl-stat-lbl { font-size: .57rem; color: var(--muted2); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; display: block; }
.sl-stat-sep { width: 1px; height: 26px; background: var(--border); }
.sl-bars { display: flex; flex-direction: column; gap: 7px; }
.sl-bar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }

.sidebar-footer { margin-top: auto; padding: 10px; border-top: 1px solid var(--border); }
.player-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s;
}
.player-mini:hover { background: rgba(255,255,255,.045); border-color: var(--border-h); }
.player-mini-ava {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #7a1c12 100%);
  border: 1.5px solid rgba(192,57,43,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 800; color: #fff;
}
.player-mini-info { flex: 1; min-width: 0; }
.player-mini-name { font-size: .8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-mini-sub  { font-size: .65rem; color: var(--gold); margin-top: 1px; }
.player-mini-dots { color: var(--muted2); font-size: .75rem; flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────
   8. MAIN CONTENT
────────────────────────────────────────────────────────── */
.main-content {
  flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(ellipse at 20% 65%, rgba(192,57,43,.11) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 15%, rgba(192,57,43,.05) 0%, transparent 40%),
    linear-gradient(180deg, #0a0a0f 0%, #0d0d16 100%);
  display: flex; flex-direction: column; position: relative;
}
.main-content::before {
  content: 'BELLOCCO';
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 7rem; font-weight: 900; color: rgba(192,57,43,.05);
  pointer-events: none; user-select: none;
  letter-spacing: 8px; line-height: 1; white-space: nowrap; z-index: 0;
}
.page-content { padding: 12px 26px; display: flex; flex-direction: column; gap: 10px; }
.dash-hero {
  padding: 13px 26px 11px; display: flex; flex-direction: column; gap: 10px;   /* volledige breedte, tekst uitgelijnd met content */
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(192,57,43,.1), transparent 55%),
    rgba(255,255,255,.015);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dash-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-hero-title h1 { font-size: 1.15rem; font-weight: 900; letter-spacing: -.3px; line-height: 1.15; }
.dash-hero-title h1 em { color: var(--accent); font-style: normal; }
.dash-hero-title p { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.dash-hero-actions { display: flex; gap: 7px; flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────
   9. STAT CARDS
────────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.stat-card {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 10px 12px;
  position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: rgba(255,255,255,.13); transform: translateY(-1px); }
.s-heat   { border-left: 3px solid rgba(192,57,43,.6); }
.s-cash   { border-left: 3px solid rgba(46,204,113,.55); }
.s-energy { border-left: 3px solid rgba(52,152,219,.55); }
.s-xp     { border-left: 3px solid rgba(243,156,18,.55); }
.s-heat:hover   { border-left-color: var(--accent); box-shadow: 0 0 30px rgba(192,57,43,.15), 0 8px 32px rgba(0,0,0,.3) !important; }
.s-cash:hover   { border-left-color: var(--green);  box-shadow: 0 0 30px rgba(46,204,113,.12), 0 8px 32px rgba(0,0,0,.3) !important; }
.s-energy:hover { border-left-color: var(--blue);   box-shadow: 0 0 30px rgba(52,152,219,.12), 0 8px 32px rgba(0,0,0,.3) !important; }
.s-xp:hover     { border-left-color: var(--gold);   box-shadow: 0 0 30px rgba(243,156,18,.12), 0 8px 32px rgba(0,0,0,.3) !important; }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
}
.s-heat::before   { background: linear-gradient(90deg, rgba(192,57,43,.6) 0%, transparent 70%); }
.s-cash::before   { background: linear-gradient(90deg, rgba(46,204,113,.5) 0%, transparent 70%); }
.s-energy::before { background: linear-gradient(90deg, rgba(52,152,219,.5) 0%, transparent 70%); }
.s-xp::before     { background: linear-gradient(90deg, rgba(243,156,18,.5) 0%, transparent 70%); }
.stat-card::after {
  content: ''; position: absolute; top: -25px; right: -25px;
  width: 80px; height: 80px; border-radius: 50%; pointer-events: none;
}
.s-heat::after   { background: radial-gradient(circle, rgba(192,57,43,.13), transparent 70%); }
.s-cash::after   { background: radial-gradient(circle, rgba(46,204,113,.1), transparent 70%); }
.s-energy::after { background: radial-gradient(circle, rgba(52,152,219,.1), transparent 70%); }
.s-xp::after     { background: radial-gradient(circle, rgba(243,156,18,.1), transparent 70%); }
.stat-card-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stat-ico {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .72rem;
}
.s-ico-red    { background: rgba(192,57,43,.14); color: var(--accent); border: 1px solid rgba(192,57,43,.22); }
.s-ico-green  { background: rgba(46,204,113,.11); color: var(--green);  border: 1px solid rgba(46,204,113,.2); }
.s-ico-blue   { background: rgba(52,152,219,.11); color: var(--blue);   border: 1px solid rgba(52,152,219,.2); }
.s-ico-gold   { background: rgba(243,156,18,.11); color: var(--gold);   border: 1px solid rgba(243,156,18,.2); }
.stat-trend {
  font-size: .62rem; font-weight: 700; display: flex; align-items: center; gap: 2px;
  padding: 2px 7px; border-radius: 99px;
}
.trend-up   { color: var(--green);  background: rgba(46,204,113,.1); }
.trend-down { color: var(--accent); background: rgba(192,57,43,.1); }
.trend-warn { color: var(--gold);   background: rgba(243,156,18,.1); }
.stat-val { font-size: 1.2rem; font-weight: 900; line-height: 1; letter-spacing: -.4px; margin-bottom: 2px; }
.s-heat .stat-val   { color: var(--accent); }
.s-cash .stat-val   { color: var(--green); }
.s-energy .stat-val { color: var(--blue); }
.s-xp .stat-val     { color: var(--gold); }
.stat-lbl { font-size: .6rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 6px; }

/* ── Moderne metric-cards (KPI's) ───────────────────────── */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 12px; }
.metric-card {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px; padding: 10px 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.metric-card:hover {
  transform: translateY(-1px); border-color: rgba(255,255,255,.14);
  box-shadow: 0 6px 20px rgba(0,0,0,.26);
}
.metric-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .82rem;
}
.metric-body { min-width: 0; flex: 1; }
.metric-val { font-size: 1.1rem; font-weight: 800; line-height: 1.05; letter-spacing: -.3px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-lbl { font-size: .58rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.m-green  { background: rgba(46,204,113,.12); color: var(--green);  border: 1px solid rgba(46,204,113,.22); }
.m-blue   { background: rgba(52,152,219,.12); color: var(--blue);   border: 1px solid rgba(52,152,219,.22); }
.m-gold   { background: rgba(243,156,18,.12); color: var(--gold);   border: 1px solid rgba(243,156,18,.22); }
.m-red    { background: rgba(192,57,43,.13);  color: var(--accent); border: 1px solid rgba(192,57,43,.24); }
.m-purple { background: rgba(155,89,182,.14); color: #b06fd6;       border: 1px solid rgba(155,89,182,.26); }
@media (max-width: 900px) { .metric-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .metric-val { font-size: 1rem; } .metric-ico { width: 30px; height: 30px; } }

/* ── Instellingen (links menu, rechts inhoud) ───────────── */
.set-grid { display: grid; grid-template-columns: 230px 1fr; gap: 12px; align-items: start; }
.set-mobile-nav { display: none; }
@media (max-width: 760px) {
  .set-grid { grid-template-columns: 1fr; }
  .set-menu { display: none; }
  .set-mobile-nav { display: block; margin-bottom: 12px; }
}

/* ── Headlines: categorieën als dropdown op mobiel ───────── */
.hl-mobile-cats { display: none; }
@media (max-width: 760px) {
  .hl-mobile-cats { display: block; margin-bottom: 12px; }
  .cmp-split-side.hl-cats { display: none; }
}

/* ── Profielpagina (publiek) ─────────────────────────────── */
.pf-header { position: relative; }
.pf-cover {
  position: relative; overflow: hidden; height: 180px; border-radius: 12px;
  background:
    radial-gradient(circle at 80% 18%, rgba(243,156,18,.45), transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(192,57,43,.5), transparent 60%),
    linear-gradient(135deg, #c0392b 0%, #7a1c12 42%, #15151d 100%);
  background-size: cover; background-position: center; border: 1px solid var(--border);
}
.pf-cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13,13,21,.72), transparent 55%);
}
.pf-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-bar { margin-top: -85px; padding: 0 14px; position: relative; z-index: 2; }
.pf-namebar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pf-name { font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -.3px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.pf-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.pf-ava {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #7a1c12); border: 3px solid var(--surface);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.pf-ava img { width: 100%; height: 100%; object-fit: cover; }
.pf-id { flex: 1; min-width: 0; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pf-tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted);
}
.pf-meta-line { font-size: .66rem; color: var(--muted); margin-top: 12px; }
.pf-meta-line i { color: var(--accent); margin-right: 2px; }
.pf-actions { padding-bottom: 6px; }

/* Mini-statistieken op het profiel. */
.pf-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pf-metric { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 10px; }
.pf-metric > i { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); font-size: .85rem; flex-shrink: 0; }
.pf-metric .pm-val { display: block; font-weight: 800; font-size: .84rem; color: #fff; font-variant-numeric: tabular-nums; }
.pf-metric .pm-lab { display: block; font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
@media (max-width: 560px) {
  .pf-cover { height: 130px; }
  .pf-namebar .pf-actions { width: 100%; }
  .pf-namebar .pf-actions .btn { width: 100%; justify-content: center; }
}

/* ── Achtergrond-voorbeeld (instellingen) ────────────────── */
.pf-bg-preview {
  height: 104px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface2); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; color: var(--muted2); font-size: .76rem;
}
.pf-bg-preview span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Profiel-tab: avatar-uploader ────────────────────────── */
.ava-uploader { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 16px 18px; text-align: center; }
.ava-preview { position: relative; width: 132px; height: 132px; }
.ava-circle {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #7a1c12 100%);
  border: 3px solid rgba(192,57,43,.4); color: #fff; font-weight: 800; font-size: 2.1rem;
  box-shadow: 0 0 0 1px rgba(192,57,43,.15), 0 10px 30px rgba(192,57,43,.22);
}
.ava-circle img { width: 100%; height: 100%; object-fit: cover; }
.ava-edit {
  position: absolute; bottom: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .82rem;
  transition: transform .15s, box-shadow .15s;
}
.ava-edit:hover { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(192,57,43,.18); }
.ava-drop {
  width: 100%; max-width: 430px; border: 2px dashed var(--border-h); border-radius: 14px;
  padding: 22px 16px; cursor: pointer; color: var(--muted);
  transition: border-color .15s, background .15s, color .15s;
}
.ava-drop:hover, .ava-drop.drag { border-color: var(--accent); background: rgba(192,57,43,.07); color: var(--text); }
.ava-drop i { font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }
.ava-drop .ava-browse { color: var(--accent); font-weight: 700; text-decoration: underline; }
.ava-hint { font-size: .66rem; color: var(--muted2); margin-top: 6px; }
.ava-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ── Compacte profiel-editor (foto + achtergrond naast elkaar) ── */
.pf-edit { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.pf-edit-thumb { width: 76px; height: 76px; flex-shrink: 0; }
.pf-edit-thumb .ava-circle { font-size: 1.4rem; border-width: 2px; }
.pf-edit-thumb .ava-edit { width: 26px; height: 26px; font-size: .62rem; bottom: 0; right: 0; }
.pf-edit-body { flex: 1; min-width: 0; }
.pf-edit .ava-drop {
  display: flex; align-items: center; gap: 8px; max-width: none; width: 100%;
  padding: 10px 12px; font-size: .72rem; border-radius: 9px; text-align: left; color: var(--muted);
}
.pf-edit .ava-drop i { font-size: 1rem; margin: 0; }
.pf-edit .ava-hint { margin: 7px 0 0; }
.pf-edit-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pf-edit-actions form { margin: 0; }
.pf-edit-bg { padding: 14px 16px; }
.pf-edit-bg .ava-hint { margin-top: 8px; }
/* Rechthoekige achtergrond-thumbnail (zelfde rij-layout als de avatar). */
.pf-bg-thumb {
  width: 104px; height: 64px; flex-shrink: 0; border-radius: 9px; overflow: hidden;
  background: var(--surface); background-size: cover; background-position: center;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--muted2); font-size: 1.1rem;
}
/* Bijsnijden: stage (sleepbaar) + zoom-slider. */
.pf-bg-stage {
  position: relative; width: 100%; height: 160px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: #0c0c12; cursor: grab; touch-action: none; user-select: none;
}
.pf-bg-stage.dragging { cursor: grabbing; }
.pf-bg-stage.drag { outline: 2px dashed var(--accent); outline-offset: -2px; }
.pf-bg-stage img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pf-stage-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted); font-size: .78rem; text-align: center; padding: 0 16px;
}
.pf-stage-empty i { font-size: 1.6rem; opacity: .5; }
.pf-stage-move {
  position: absolute; bottom: 8px; left: 8px; pointer-events: none;
  background: rgba(0,0,0,.6); color: #fff; font-size: .6rem; font-weight: 700;
  padding: 4px 9px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px;
}
.pf-slider { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pf-slider label { width: 60px; flex-shrink: 0; font-size: .7rem; color: var(--muted); font-weight: 700; }
.pf-slider input[type=range] { flex: 1; accent-color: var(--accent); }

/* Crop-popup (achtergrond bewerken). */
.cropper-ov { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cropper-ov[hidden] { display: none; }
.cropper { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border-h); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cropper-head { padding: 13px 16px; font-weight: 800; font-size: .9rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.cropper-body { padding: 14px 16px; }
.cropper-body .pf-bg-stage { height: 190px; }
.cropper-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }

/* ── Stats-tabel ────────────────────────────────────────── */
.stat-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.stat-table td { width: 50%; padding: 5px 14px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .76rem; vertical-align: middle; }
.stat-table tbody tr:last-child td { border-bottom: none; }
.stat-table tbody tr { transition: background .15s; }
.stat-table tbody tr:hover { background: rgba(255,255,255,.025); }
.stat-table .st-label { color: var(--muted); font-weight: 600; }
.stat-table .st-val { text-align: left; font-weight: 700; font-size: .74rem; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.2px; white-space: nowrap; }
.st-ico {
  width: 28px; height: 28px; border-radius: 8px; margin-right: 11px; vertical-align: middle;
  display: inline-flex; align-items: center; justify-content: center; font-size: .74rem;
}

/* ── Globale headings (ingame) — één type-schaal ────────── */
body.game h1, body.game h2, body.game h3, body.game h4 {
  margin: 0; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -.3px;
}
body.game h1 { font-size: 1.25rem; }
body.game h2 { font-size: 1rem; }
body.game h3 { font-size: .9rem; }
body.game h4 { font-size: .8rem; }

/* ── Rang & voortgang ───────────────────────────────────── */
.rank-body { display: flex; align-items: center; gap: 16px; padding: 16px; }
.rank-emblem {
  width: 58px; height: 58px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  background: linear-gradient(145deg, rgba(243,156,18,.22), rgba(192,57,43,.16));
  border: 1px solid rgba(243,156,18,.38); color: var(--gold);
  box-shadow: 0 4px 18px rgba(243,156,18,.12);
}
.rank-emblem.has-img { background: none; border: none; box-shadow: none; }
.rank-emblem img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Klein rang-embleem voor inline gebruik (sidebar, lijsten, instellingen). */
.rank-mini { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.rank-info { flex: 1; min-width: 0; }
.rank-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rank-current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* grootte komt van h3 */
.rank-pct { font-size: .82rem; font-weight: 800; color: var(--gold); flex-shrink: 0; }
.rank-next { font-size: .7rem; color: var(--muted); margin: 2px 0 9px; }
.rank-bar { height: 9px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.rank-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--accent)); box-shadow: 0 0 12px rgba(243,156,18,.4); transition: width .5s ease; }
.rank-meta { display: flex; justify-content: space-between; font-size: .67rem; color: var(--muted); margin-top: 7px; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .rank-emblem { width: 48px; height: 48px; font-size: 1.4rem; } }

/* ── Premium ────────────────────────────────────────────── */
/* Dashboard-card naast Rang & voortgang */
.prem-body { display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
.prem-emblem {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: linear-gradient(145deg, rgba(243,156,18,.25), rgba(155,89,182,.18));
  border: 1px solid rgba(243,156,18,.4); color: var(--gold);
  box-shadow: 0 4px 14px rgba(243,156,18,.12);
}
.prem-info { flex: 1; min-width: 0; }
.prem-title { font-size: .9rem; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.prem-sub { font-size: .62rem; color: var(--muted); margin: 2px 0 0; }
.prem-countdown { color: var(--gold); font-size: .92rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prem-status-title .prem-countdown { font-size: inherit; }

/* Premium-pagina: statusbalk */
.prem-status { overflow: hidden; }
.prem-status.is-active { border: 1px solid rgba(243,156,18,.4); background: linear-gradient(135deg, rgba(243,156,18,.10), rgba(155,89,182,.06)); }
.prem-status-body { display: flex; align-items: center; gap: 15px; padding: 16px; }
.prem-crown {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: rgba(243,156,18,.16); border: 1px solid rgba(243,156,18,.34); color: var(--gold);
}
.prem-status-title { font-size: 1.05rem; font-weight: 800; color: #fff; }
.prem-status-sub { font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* Premium voordelen — 2 kolommen (3 + 3) */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 4px 0; }
.benefit-grid .action-row { border-bottom: 1px solid rgba(255,255,255,.05); }
@media (max-width: 760px) { .benefit-grid { grid-template-columns: 1fr; } }

/* Trust-badges onder de afrekenknop */
.trust-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; }
.trust-row span { font-size: .7rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }

/* Betaalmethode-keuze (eigen checkout) */
.pm-list { display: flex; flex-direction: column; gap: 8px; }
.pm-option {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 11px; border-radius: 9px;
  background: rgba(255,255,255,.025); border: 1.5px solid rgba(255,255,255,.08);
  transition: border-color .15s, background .15s;
}
.pm-option:hover { border-color: rgba(255,255,255,.2); }
.pm-option.selected { border-color: var(--gold); background: rgba(243,156,18,.08); }
.pm-option img { height: 20px; width: 30px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }
.pm-option .pm-name { flex: 1; font-size: .76rem; font-weight: 600; color: var(--text); }
.pm-option .pm-check { color: var(--gold); opacity: 0; font-size: .8rem; transition: opacity .15s; }
.pm-option.selected .pm-check { opacity: 1; }
.pm-issuers { padding: 2px 2px 4px; }
.pm-issuers select { font-size: .78rem; padding: 7px 10px; }
.pm-card { padding-top: 8px; }
.mollie-field {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; height: 40px;
}
.mollie-field.is-focused { border-color: var(--accent); }
.mollie-field.has-error  { border-color: #e5534b; }

/* Betaalmethodes (logo's) */
.pay-methods { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pay-methods img { height: 26px; width: auto; background: #fff; border-radius: 5px; padding: 2px 4px; }
.pay-fallback { font-size: .74rem; color: var(--muted); }

/* ──────────────────────────────────────────────────────────
   10. PROGRESS BARS
────────────────────────────────────────────────────────── */
.prog    { height: 4px; background: rgba(255,255,255,.05); border-radius: 99px; overflow: hidden; }
.prog-sm { height: 3px; }
.prog-lg { height: 7px; }
.prog-fill { height: 100%; border-radius: 99px; transition: width .55s ease; }
.pf-red    { background: var(--accent); box-shadow: 0 0 7px rgba(192,57,43,.55); }
.pf-green  { background: var(--green);  box-shadow: 0 0 7px rgba(46,204,113,.45); }
.pf-blue   { background: var(--blue);   box-shadow: 0 0 7px rgba(52,152,219,.45); }
.pf-gold   { background: var(--gold);   box-shadow: 0 0 7px rgba(243,156,18,.45); }
.pf-purple { background: var(--purple); box-shadow: 0 0 7px rgba(155,89,182,.4); }

/* ──────────────────────────────────────────────────────────
   11. HEAT METER
────────────────────────────────────────────────────────── */
.heat-meter { display: flex; align-items: center; gap: 5px; }
.heat-pip   { width: 24px; height: 8px; border-radius: 3px; background: rgba(255,255,255,.08); transition: all .35s; }
.hp-1 { background: #f1c40f; box-shadow: 0 0 6px rgba(241,196,15,.5); }
.hp-2 { background: #e67e22; box-shadow: 0 0 6px rgba(230,126,34,.5); }
.hp-3 { background: #e74c3c; box-shadow: 0 0 8px rgba(231,76,60,.6); animation: pip-pulse 1.2s infinite; }

/* ──────────────────────────────────────────────────────────
   12. CARDS & WIDGETS
────────────────────────────────────────────────────────── */
.card {
  /* exact dezelfde look als .boxnew: donkere kaart + spotlight + graniet-korrel + kader */
  position: relative;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeGaussianBlur stdDeviation='0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(72% 52% at 50% 32%, rgba(255,255,255,.05), transparent 70%),
    linear-gradient(180deg, rgba(28,31,38,.5), rgba(12,14,18,.58));
  background-size: 180px 180px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  border: 2.5px solid rgba(255,255,255,.1);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 5px 16px rgba(0,0,0,.32), inset 0 0 0 1px rgba(0,0,0,.25);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.card:hover { border-color: rgba(255,255,255,.14); box-shadow: 0 12px 26px rgba(0,0,0,.46); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px 5px; border-bottom: 1px solid rgba(255,255,255,.06);
  /* wit graniet-balkje als kop-achtergrond (kaart-korrel schemert eronder door) */
  background:
    radial-gradient(120% 180% at 50% 0%, rgba(255,255,255,.06), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
}
.card-title { display: flex; align-items: center; gap: 7px; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; font-weight: 600; color: #d6d9dd; }
.card-title i { color: var(--accent); font-size: .68rem; }
.card-meta    { font-size: .67rem; color: var(--muted2); }
.card-body    { padding: 8px 11px; }

.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .2s;
}
.widget-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px 10px; border-bottom: 1px solid var(--border);
}
.widget-head-title {
  display: flex; align-items: center; gap: 7px;
  font-size: .64rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted2);
}
.widget-head-title i { color: var(--accent); font-size: .6rem; }
.widget-head-link { font-size: .68rem; color: var(--muted2); transition: color .2s; }
.widget-head-link:hover { color: var(--accent); }

/* ──────────────────────────────────────────────────────────
   13. ACTION ROWS
────────────────────────────────────────────────────────── */
.action-list { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; }
.action-row  {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.06);
  border-left: 2px solid rgba(192,57,43,.28);
  cursor: pointer; transition: all .18s;
}
.action-row:hover {
  background: rgba(255,255,255,.044); border-color: rgba(255,255,255,.09);
  border-left-color: var(--accent); transform: translateX(3px);
}
.action-row.row-green  { border-left-color: rgba(46,204,113,.4); }
.action-row.row-green:hover { border-left-color: var(--green); }
.action-row.row-blue   { border-left-color: rgba(52,152,219,.4); }
.action-row.row-blue:hover  { border-left-color: var(--blue); }
.action-row.row-gold   { border-left-color: rgba(243,156,18,.4); }
.action-row.row-gold:hover  { border-left-color: var(--gold); }
.action-row.row-purple { border-left-color: rgba(155,89,182,.4); }
.action-row.row-purple:hover { border-left-color: var(--purple); }
.a-ico {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .72rem;
}
.a-ico.red    { background: rgba(192,57,43,.12); color: var(--accent); border: 1px solid rgba(192,57,43,.18); }
.a-ico.green  { background: rgba(46,204,113,.1);  color: var(--green);  border: 1px solid rgba(46,204,113,.18); }
.a-ico.blue   { background: rgba(52,152,219,.1);  color: var(--blue);   border: 1px solid rgba(52,152,219,.18); }
.a-ico.gold   { background: rgba(243,156,18,.1);  color: var(--gold);   border: 1px solid rgba(243,156,18,.18); }
.a-ico.purple { background: rgba(155,89,182,.1);  color: var(--purple); border: 1px solid rgba(155,89,182,.18); }
.a-body  { flex: 1; min-width: 0; }
.a-title { font-size: .76rem; font-weight: 600; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-sub   { font-size: .67rem; color: var(--muted); line-height: 1.35; }
.a-right { flex-shrink: 0; }
.a-time  { font-size: .63rem; color: var(--muted2); }
.a-arrow { color: var(--muted2); font-size: .63rem; }

.mission-row {
  background: rgba(255,255,255,.022); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-sm); margin: 3px 6px;
  padding: 8px 10px; transition: all .18s; cursor: pointer;
}
.mission-row:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); transform: translateX(2px); }
.mission-row.urgent { border-left: 3px solid var(--accent); background: rgba(192,57,43,.06); }
.mission-row.urgent:hover { background: rgba(192,57,43,.1); }
.mission-row.active { border-left: 3px solid var(--gold); background: rgba(243,156,18,.05); }
.mission-row.active:hover { background: rgba(243,156,18,.09); }
.mission-row.done { border-left: 3px solid var(--green); background: rgba(46,204,113,.04); opacity: .75; }
.mission-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mission-row-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mission-prog-wrap { flex: 1; }
.mission-prog-label { display: flex; justify-content: space-between; margin-bottom: 4px; }
.mission-prog-label span { font-size: .64rem; color: var(--muted2); }

/* ──────────────────────────────────────────────────────────
   14. BUTTONS (shared base + ingame-specific sizes)
────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: .78rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: all .18s;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); box-shadow: 0 4px 18px rgba(192,57,43,.4); transform: translateY(-1px); }
.btn-ghost    { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface3); color: var(--text); border-color: var(--border-h); }
.btn-outline  { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-green    { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-gold     { background: var(--gold); color: #1a1a00; font-weight: 700; }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm    { padding: 6px 13px; font-size: .78rem; }
.btn-xs    { padding: 4px 9px; font-size: .68rem; }
.btn-lg    { padding: 14px 30px; font-size: .95rem; }
.btn-block { width: 100%; justify-content: center; }

/* Full-width submit button */
.btn-submit {
  width: 100%; padding: 14px; margin-top: 20px;
  border-radius: var(--radius-sm); border: none;
  background: var(--accent); color: #fff;
  font-size: .95rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all .2s; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-submit:hover   { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,.4); }
.btn-submit:active  { transform: translateY(0); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Secondary outline button */
.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: transparent;
  font-size: .88rem; font-weight: 600; color: var(--muted);
  font-family: inherit; cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-secondary:hover { border-color: rgba(255,255,255,.2); color: var(--text); background: var(--surface2); }

/* ──────────────────────────────────────────────────────────
   15. BADGES & TAGS
────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .6rem; font-weight: 700; padding: 3px 8px;
  border-radius: 99px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
}
.b-red    { background: rgba(192,57,43,.15); color: var(--accent); border: 1px solid rgba(192,57,43,.25); }
.b-green  { background: rgba(46,204,113,.14); color: var(--green); border: 1px solid rgba(46,204,113,.24); }
.b-blue   { background: rgba(52,152,219,.14); color: var(--blue);  border: 1px solid rgba(52,152,219,.24); }
.b-gold   { background: rgba(243,156,18,.14); color: var(--gold);  border: 1px solid rgba(243,156,18,.24); }
.b-purple { background: rgba(155,89,182,.14); color: var(--purple); border: 1px solid rgba(155,89,182,.24); }

/* ──────────────────────────────────────────────────────────
   16. PLAYER PROFILE WIDGET
────────────────────────────────────────────────────────── */
.profile-card { display: flex; flex-direction: column; align-items: center; padding: 20px 14px 16px; text-align: center; }
.profile-ava-wrap { position: relative; margin-bottom: 14px; }
.profile-ava {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #7a1c12 100%);
  border: 3px solid rgba(192,57,43,.3);
  box-shadow: 0 0 0 1px rgba(192,57,43,.1), 0 0 30px rgba(192,57,43,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: 1px;
}
.profile-ava-lvl {
  position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: .55rem; font-weight: 800; padding: 2px 8px; border-radius: 99px;
  border: 2px solid var(--surface); white-space: nowrap; letter-spacing: .3px;
}
.profile-online {
  position: absolute; top: 1px; right: 1px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--green); border: 2.5px solid var(--surface);
  animation: online-pulse 2.5s infinite;
}
.profile-name    { font-size: 1.05rem; font-weight: 800; letter-spacing: -.2px; }
.profile-rank    { font-size: .7rem; color: var(--gold); margin-top: 3px; margin-bottom: 6px; }
.profile-family  { font-size: .68rem; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 5px; justify-content: center; }
.profile-family i { color: var(--accent); font-size: .62rem; }
.profile-stats   { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: 100%; }
.profile-stat    { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 6px; }
.ps-val { font-size: .95rem; font-weight: 800; line-height: 1; }
.ps-lbl { font-size: .6rem; color: var(--muted2); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }

/* ──────────────────────────────────────────────────────────
   17. STATUS BARS
────────────────────────────────────────────────────────── */
.status-bars { display: flex; flex-direction: column; gap: 11px; padding: 12px 14px; }
.status-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.status-row-label { font-size: .73rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.status-row-label i { font-size: .65rem; }
.status-row-val { font-size: .73rem; font-weight: 700; }
.status-bar-bg  { height: 5px; background: rgba(255,255,255,.05); border-radius: 99px; overflow: hidden; }
.sb             { height: 100%; border-radius: 99px; transition: width .55s ease; }
.sb-health { background: var(--blue);  box-shadow: 0 0 6px rgba(52,152,219,.5); }
.sb-energy { background: var(--gold);  box-shadow: 0 0 6px rgba(243,156,18,.5); }
.sb-heat   { background: var(--accent); box-shadow: 0 0 6px rgba(192,57,43,.55); }
.sb-xp     { background: var(--green); box-shadow: 0 0 6px rgba(46,204,113,.45); }

/* ──────────────────────────────────────────────────────────
   18. LEADERBOARD
────────────────────────────────────────────────────────── */
.lb-list { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; }
.lb-row  {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s;
}
.lb-row:hover { background: rgba(255,255,255,.03); }
.lb-row.lb-me { background: rgba(192,57,43,.07); border: 1px solid rgba(192,57,43,.16); }
.lb-pos { width: 18px; font-size: .72rem; font-weight: 800; text-align: center; flex-shrink: 0; color: var(--muted2); }
.lb-pos.gold   { color: #f1c40f; }
.lb-pos.silver { color: #bdc3c7; }
.lb-pos.bronze { color: #cd7f32; }
.lb-pos.me-p   { color: var(--accent); }
.lb-ava {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .57rem; font-weight: 800; color: var(--muted);
}
.lb-ava.gold-a { background: rgba(243,156,18,.12); color: var(--gold); border-color: rgba(243,156,18,.3); }
.lb-ava.me-a   { background: rgba(192,57,43,.15); color: var(--accent); border-color: rgba(192,57,43,.3); }
.lb-name  { flex: 1; font-size: .77rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name.me-n { color: var(--text); }
.lb-score { font-size: .73rem; font-weight: 700; color: var(--muted); flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────
   19. NOTIFICATIONS
────────────────────────────────────────────────────────── */
.notif-list { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; }
.notif-row  {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s;
}
.notif-row:hover { background: rgba(255,255,255,.03); }
.n-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.n-dot.red   { background: var(--accent); box-shadow: 0 0 5px rgba(192,57,43,.6); }
.n-dot.green { background: var(--green);  box-shadow: 0 0 5px rgba(46,204,113,.5); }
.n-dot.gold  { background: var(--gold);   box-shadow: 0 0 5px rgba(243,156,18,.5); }
.n-dot.blue  { background: var(--blue);   box-shadow: 0 0 5px rgba(52,152,219,.5); }
.n-body { flex: 1; }
.n-text { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.n-text strong { color: var(--text); font-weight: 600; }
.n-time { font-size: .63rem; color: var(--muted2); margin-top: 2px; }

/* ──────────────────────────────────────────────────────────
   20. RIGHT SIDEBAR
────────────────────────────────────────────────────────── */
.sidebar-right {
  width: var(--sidebar-r); flex-shrink: 0;
  background: linear-gradient(180deg, #0d0d15 0%, #09090e 100%);
  border-left: 1px solid rgba(255,255,255,.07);
  overflow-y: auto; overflow-x: hidden;
  padding: 10px 0 0; display: flex; flex-direction: column;
}
.rs-section-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .59rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted3); padding: 10px 18px 5px;
}
.rs-section-head a { font-size: .65rem; color: var(--muted2); letter-spacing: 0; text-transform: none; font-weight: 500; transition: color .15s; }
.rs-section-head a:hover { color: var(--accent); }
.rs-lb-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 16px 5px 17px; font-size: .78rem; color: var(--muted);
  border-left: 3px solid transparent; transition: background .15s; cursor: pointer;
}
.rs-lb-item:hover { background: rgba(255,255,255,.03); }
.rs-lb-item.rs-lb-me {
  color: var(--text);
  background: linear-gradient(90deg, rgba(192,57,43,.1) 0%, transparent 100%);
  border-left-color: var(--accent);
}
.rs-rank { width: 18px; text-align: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; color: var(--muted2); }
.rs-rank.gold   { color: #f1c40f; }
.rs-rank.silver { color: #bdc3c7; }
.rs-rank.bronze { color: #cd7f32; }
.rs-rank-me     { color: var(--accent) !important; }
.rs-ava {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .52rem; font-weight: 800; color: var(--muted);
}
.rs-ava-gold { background: rgba(243,156,18,.12); color: var(--gold); border-color: rgba(243,156,18,.3); }
.rs-ava-me   { background: rgba(192,57,43,.15); color: var(--accent); border-color: rgba(192,57,43,.3); }
.rs-ava-red  { background: rgba(192,57,43,.15); color: var(--accent); border-color: rgba(192,57,43,.3); }
.rs-name    { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.rs-name-me { color: var(--text); font-weight: 600; }
.rs-score   { font-size: .7rem; font-weight: 700; color: var(--muted2); flex-shrink: 0; }
.rs-member {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 16px 5px 17px; font-size: .78rem; color: var(--muted);
  border-left: 3px solid transparent; transition: background .15s; cursor: pointer;
}
.rs-member:hover { background: rgba(255,255,255,.03); }
.rs-mdot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--surface3); border: 1px solid var(--border); }
.rs-mdot.green { background: var(--green); box-shadow: 0 0 5px rgba(46,204,113,.5); border-color: rgba(46,204,113,.3); }
.rs-minfo  { flex: 1; min-width: 0; }
.rs-mname  { font-size: .77rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-mrole  { font-size: .62rem; color: var(--muted2); display: block; }
.rs-mstatus { font-size: .64rem; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.rs-family-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 18px 4px; font-size: .68rem; color: var(--muted);
  border-bottom: 1px solid var(--border); margin-bottom: 2px;
}
.rs-family-link { font-size: .68rem; color: var(--muted2); transition: color .15s; }
.rs-family-link:hover { color: var(--accent); }
.rs-notif {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 6px 16px 6px 17px; border-left: 3px solid transparent;
  transition: background .15s; cursor: pointer;
}
.rs-notif:hover { background: rgba(255,255,255,.03); }
.rs-ndot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.rs-ndot.red  { background: var(--accent); box-shadow: 0 0 5px rgba(192,57,43,.6); }
.rs-ndot.green{ background: var(--green);  box-shadow: 0 0 5px rgba(46,204,113,.5); }
.rs-ndot.gold { background: var(--gold);   box-shadow: 0 0 5px rgba(243,156,18,.5); }
.rs-ndot.blue { background: var(--blue);   box-shadow: 0 0 5px rgba(52,152,219,.5); }
.rs-nbody { flex: 1; min-width: 0; }
.rs-ntext { font-size: .74rem; color: var(--muted); line-height: 1.45; }
.rs-ntext strong { color: var(--text); font-weight: 600; }
.rs-ntime { font-size: .62rem; color: var(--muted2); margin-top: 1px; }
.rs-contract {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 16px 6px 17px; border-left: 3px solid transparent;
  transition: background .15s; cursor: pointer;
}
.rs-contract:hover { background: rgba(255,255,255,.03); }
.rs-cdot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.rs-cdot.red  { background: var(--accent); }
.rs-cdot.gold { background: var(--gold); }
.rs-cdot.blue { background: var(--blue); }
.rs-cbody  { flex: 1; min-width: 0; }
.rs-ctitle { font-size: .76rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-csub   { font-size: .65rem; color: var(--muted2); display: block; margin-top: 1px; }

/* ──────────────────────────────────────────────────────────
   21. UTILITY CLASSES
────────────────────────────────────────────────────────── */
.hr-line     { height: 1px; background: var(--border); }
.gap-grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gap-grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }

/* ══════════════════════════════════════════════════════════
   MISDAAD PLEGEN
   ══════════════════════════════════════════════════════════ */
.crime-heat { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.crime-heat-top { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.crime-heat-note { font-size: .64rem; color: var(--muted2); margin-top: 6px; }
.crime-list { padding: 7px; display: flex; flex-direction: column; gap: 6px; }
.crime-row {
  display: flex; align-items: center; gap: 11px; position: relative;
  padding: 8px 11px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  transition: border-color .15s, background .15s, transform .1s;
}
.crime-row:hover { background: rgba(255,255,255,.04); border-color: var(--border-h); }
.crime-row input { position: absolute; opacity: 0; pointer-events: none; }
.crime-row:has(input:checked) { border-color: var(--accent); background: rgba(192,57,43,.10); box-shadow: 0 0 0 1px rgba(192,57,43,.35) inset; }
.crime-check { color: var(--accent); font-size: .9rem; opacity: 0; flex-shrink: 0; transition: opacity .15s; }
.crime-row:has(input:checked) .crime-check { opacity: 1; }
.crime-info { flex: 1; min-width: 0; }
.crime-name { display: block; font-weight: 800; color: #fff; font-size: .8rem; }
.crime-desc { display: block; font-size: .68rem; color: var(--muted); margin-top: 1px; line-height: 1.3; }
.crime-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 4px; }
.crime-buit { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 700; color: var(--green); }
.crime-exp { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 700; color: var(--gold); }
.crime-chance { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.crime-pill {
  display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap;
  font-size: .64rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.06);
}
.crime-pill b { font-size: .78rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.crime-bar { display: block; width: 84px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.crime-fill { display: block; height: 100%; border-radius: 99px; transition: width .4s ease; }
.crime-row[data-tier="good"] .crime-pill { color: var(--green);  background: rgba(63,185,80,.12); }
.crime-row[data-tier="mid"]  .crime-pill { color: var(--gold);   background: var(--gold-dim); }
.crime-row[data-tier="bad"]  .crime-pill { color: var(--accent); background: rgba(192,57,43,.14); }
.crime-row[data-tier="good"] .crime-fill { background: linear-gradient(90deg, var(--green), #2ecc71); }
.crime-row[data-tier="mid"]  .crime-fill { background: linear-gradient(90deg, var(--gold), #f1c40f); }
.crime-row[data-tier="bad"]  .crime-fill { background: linear-gradient(90deg, var(--accent), #e74c3c); }
.crime-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
/* Wachtscherm tijdens cooldown */
.crime-wait { padding: 40px 20px 44px; text-align: center; }
.crime-wait-ring {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--gold);
  background: var(--gold-dim); border: 1px solid rgba(243,156,18,.3);
  animation: crime-pulse 1.8s ease-in-out infinite;
}
@keyframes crime-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(243,156,18,.25); } 50% { box-shadow: 0 0 0 12px rgba(243,156,18,0); } }
.crime-wait-title { font-size: .95rem; font-weight: 800; color: #fff; }
.crime-wait-time { font-size: 2.1rem; font-weight: 900; color: var(--gold); margin: 8px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.crime-wait-sub { font-size: .74rem; color: var(--muted); }
.crime-hint { font-size: .68rem; color: var(--muted2); }
.crime-go[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) {
  .crime-bar { width: 64px; }
  .crime-foot { justify-content: center; }
  .crime-hint { display: none; }
  .crime-go { width: 100%; justify-content: center; }
}

/* ── Ranks-lijst (geldrangen, alleen namen) ──────────────── */
.rank-list { padding: 6px 0; }
.rank-list-item {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px;
  font-size: .76rem; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.05);
}
.rank-list-item:last-child { border-bottom: none; }
.rank-list-item .rl-no {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800; color: var(--muted2);
  background: rgba(255,255,255,.05);
}
.rank-list-item .rl-name { flex: 1; font-weight: 600; }
.rank-list-item.active { color: #fff; background: rgba(243,156,18,.10); }
.rank-list-item.active .rl-name { color: var(--gold); font-weight: 800; }
.rank-list-item.active .rl-no { background: var(--gold); color: #0d0d15; }
.rank-list-item.active i { color: var(--gold); font-size: .8rem; }
.flex-row    { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.f-gap-8  { gap: 8px; }
.f-gap-12 { gap: 12px; }
.c-red    { color: var(--accent); }
.c-green  { color: var(--green); }
.c-blue   { color: var(--blue); }
.c-gold   { color: var(--gold); }
.c-muted  { color: var(--muted); }
.c-muted2 { color: var(--muted2); }
.fw-700   { font-weight: 700; }
.fw-800   { font-weight: 800; }
.fw-900   { font-weight: 900; }
.fs-xs    { font-size: .7rem; }
.fs-sm    { font-size: .8rem; }
.mt-4     { margin-top: 4px; }
.mt-8     { margin-top: 8px; }
.mt-12    { margin-top: 12px; }
.mb-8     { margin-bottom: 8px; }
.mb-12    { margin-bottom: 12px; }

/* ──────────────────────────────────────────────────────────
   22. MOBILE — Bottom navigation
────────────────────────────────────────────────────────── */
.mob-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bot-nav-h); z-index: 600;
  background: linear-gradient(180deg, rgba(22,17,27,.97), rgba(9,9,14,.99));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -6px 22px rgba(0,0,0,.55);
  align-items: stretch; justify-content: space-around;
  padding: 0 6px calc(env(safe-area-inset-bottom));
}
.mob-nav-btn {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted2); cursor: pointer; transition: color .15s;
  text-decoration: none;
}
.mob-nav-btn i {
  width: 38px; height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 1.02rem; border-radius: 11px; transition: all .15s;
}
.mob-nav-btn span { font-size: .52rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.mob-nav-btn:active i { transform: scale(.9); }
.mob-nav-btn.active { color: #fff; }
.mob-nav-btn.active i {
  color: #fff; transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent), #8a2418);
  box-shadow: 0 5px 14px rgba(192,57,43,.45);
}
.mob-nav-btn.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent);
  box-shadow: 0 0 10px rgba(192,57,43,.6);
}
.mob-nav-btn:hover { color: var(--text); }

.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(3px); z-index: 490;
}
.mob-overlay.show { display: block; }

/* ──────────────────────────────────────────────────────────
   23. TOPBAR DROPDOWNS
────────────────────────────────────────────────────────── */
.tb-dd-wrap { position: relative; }
.tb-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 230px; background: #111118;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  z-index: 700; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.tb-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.tb-dd-head { padding: 13px 15px 11px; border-bottom: 1px solid rgba(255,255,255,.07); }
.tb-dd-head-title { font-size: .82rem; font-weight: 700; color: var(--text); }
.tb-dd-head-sub   { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.tb-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 15px; font-size: .8rem; color: var(--muted);
  cursor: pointer; text-decoration: none; transition: background .14s, color .14s;
  border-bottom: 1px solid rgba(255,255,255,.035);
}
.tb-dd-item:last-of-type { border-bottom: none; }
.tb-dd-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.tb-dd-item i { width: 16px; text-align: center; font-size: .82rem; flex-shrink: 0; }
.tb-dd-item.danger       { color: rgba(192,57,43,.75); }
.tb-dd-item.danger:hover { background: rgba(192,57,43,.08); color: var(--accent); }
.tb-dd-item .tb-dd-badge {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: .66rem; font-weight: 800; padding: 1px 6px; border-radius: 10px;
}
.tb-dd-notif {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 15px; cursor: pointer; transition: background .14s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.tb-dd-notif:last-of-type { border-bottom: none; }
.tb-dd-notif:hover { background: rgba(255,255,255,.03); }
.tb-dd-notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex-shrink: 0; }
.tb-dd-notif-dot.read { background: transparent; border: 1px solid rgba(255,255,255,.2); }
.tb-dd-notif-body  { flex: 1; min-width: 0; }
.tb-dd-notif-title { font-size: .78rem; color: var(--text); font-weight: 600; line-height: 1.3; }
.tb-dd-notif-time  { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.tb-dd-footer {
  padding: 9px 15px; text-align: center; font-size: .76rem; color: var(--accent);
  cursor: pointer; border-top: 1px solid rgba(255,255,255,.07); transition: background .14s;
}
.tb-dd-footer:hover { background: rgba(192,57,43,.07); }

/* ──────────────────────────────────────────────────────────
   24. MOBILE RIGHT SIDEBAR TOGGLE
────────────────────────────────────────────────────────── */
.topbar-right-btn {
  display: none; width: 34px; height: 34px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem;
  background: var(--surface2); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.topbar-right-btn:hover { color: var(--text); border-color: var(--border-h); }

/* ──────────────────────────────────────────────────────────
   25. INGAME RESPONSIVE
────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --sidebar-r: 250px; }
}
@media (max-width: 1000px) {
  :root { --sidebar-r: 0px; }
  .sidebar-right { display: none; }
  .stat-grid     { grid-template-columns: 1fr 1fr; }
  .topbar-right-btn { display: flex; }
  .sidebar-right {
    position: fixed !important; top: var(--topbar-h); right: 0; bottom: 0;
    width: 280px !important; z-index: 495;
    display: flex !important; flex-direction: column; overflow-y: auto;
    transform: translateX(110%); transition: transform .28s ease;
  }
  .sidebar-right.mob-open { transform: translateX(0); }
}
@media (max-width: 768px) {
  /* Topbar wordt 2 rijen: rij 1 = logo + knoppen, rij 2 = resources. */
  :root { --sidebar-l: 0px; --topbar-h: 96px; }
  .sidebar-left {
    position: fixed !important; top: var(--topbar-h); left: 0;
    bottom: var(--bot-nav-h); width: 260px !important;
    z-index: 495; display: flex !important;
    transform: translateX(-100%); transition: transform .28s ease;
  }
  .sidebar-left.mob-open { transform: translateX(0); }
  .sidebar-right { bottom: var(--bot-nav-h); }

  .topbar { flex-wrap: wrap; align-content: flex-start; align-items: center; }
  .topbar-logo-block { order: 1; width: auto; height: 56px; padding: 0 10px; border-right: none; gap: 8px; flex-shrink: 0; }
  .topbar-season-pill { display: none; }
  .topbar-page        { display: none; }
  .topbar-actions     { order: 2; height: 56px; margin-left: auto; padding: 0 10px; border-left: none; gap: 6px; flex-shrink: 0; }

  /* Rij 2: resources onder het logo, schuiven horizontaal mee. */
  .topbar-resources   {
    order: 3; flex-basis: 100%; width: 100%; height: 40px;
    margin: 0; gap: 6px; padding: 0 10px;
    border-top: 1px solid var(--border);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .topbar-resources::-webkit-scrollbar { display: none; }
  .res-pill.health,
  .res-pill.heat      { display: none; }
  .res-pill           { padding: 4px 11px; font-size: .76rem; flex-shrink: 0; }
  .topbar-hamburger   { display: flex; }
  .main-content { padding-bottom: var(--bot-nav-h); }
  .page-content { padding: 14px 15px; gap: 14px; }
  .dash-hero    { padding: 16px 15px 0; }
  .stat-grid    { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gap-grid-2   { grid-template-columns: 1fr; }
  .gap-grid-3   { grid-template-columns: 1fr; }
  .dash-hero-top { flex-direction: column; align-items: stretch; gap: 12px; }
  .dash-hero-title { text-align: left; }
  .dash-hero-actions { width: 100%; }
  .dash-hero-actions .btn { flex: 1; justify-content: center; }
  .mob-nav { display: flex; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-val  { font-size: 1.55rem; }
  .page-content { padding: 12px; gap: 12px; }
  .dash-hero  { padding: 14px 12px 0; }   /* gelijk uitlijnen met de content */
}

/* ══════════════════════════════════════════════════════════
   ██  O U T G A M E   S T Y L E S
   ══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   26. LAYOUT UTILITIES & LOGO
────────────────────────────────────────────────────────── */
.container   { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }

.og-logo      { font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; color: var(--text); text-decoration: none; }
.og-logo span { color: var(--accent); }
.og-logo--lg  { font-size: 1.5rem; letter-spacing: 3px; }
.og-logo--sm  { font-size: 1.2rem; letter-spacing: 2px; }

/* ──────────────────────────────────────────────────────────
   27. FORM COMPONENTS
────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: .66rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 5px;
}
.form-label .req { color: var(--accent); }
.form-label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted2); font-size: .72rem; }
.form-label-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px;
}
.form-label-row .form-label { margin: 0; }
.form-label-link { font-size: .75rem; color: var(--muted); transition: color .2s; }
.form-label-link:hover { color: var(--accent); }
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .68rem; pointer-events: none;
}
.input-wrap .eye {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .7rem; cursor: pointer;
  background: none; border: none; padding: 3px; transition: color .2s;
}
.input-wrap .eye:hover { color: var(--text); }
.form-input {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: .78rem;
  font-family: inherit; padding: 7px 28px 7px 28px;
  transition: border-color .2s, background .2s;
}
.form-input:focus        { outline: none; border-color: var(--accent); background: var(--surface3); }
.form-input::placeholder { color: rgba(234,234,248,.2); }
.form-input.valid        { border-color: rgba(39,174,96,.5); }
.form-input.invalid      { border-color: rgba(192,57,43,.5); }
/* Referral-link veld: compacter, geen icoon-padding nodig */
#ref-link { font-size: .8rem; padding: 9px 12px; color: var(--muted); }
.form-input--no-icon     { padding-left: 14px; }
.form-hint { font-size: .72rem; color: var(--muted2); margin-top: 4px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw-strength      { height: 3px; border-radius: 2px; background: var(--surface3); margin-top: 6px; overflow: hidden; }
.pw-strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; width: 0; }
.form-note { font-size: .72rem; color: var(--muted2); text-align: center; line-height: 1.6; margin-top: 14px; }
.form-note a { color: var(--muted); text-decoration: underline; }
.form-note a:hover { color: var(--text); }

/* Divider with text (e.g. "of") */
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: .75rem; color: var(--muted); white-space: nowrap; }

/* Back link */
.back-link {
  display: flex; align-items: center; gap: 7px; margin-top: 20px;
  font-size: .83rem; color: var(--muted); justify-content: center; transition: color .2s;
}
.back-link:hover { color: var(--text); }

/* Bottom links row */
.bottom-links { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.bottom-links a    { font-size: .75rem; color: var(--muted2); transition: color .2s; }
.bottom-links a:hover { color: var(--muted); }
.bottom-links .sep { color: var(--border); font-size: .6rem; }

/* ──────────────────────────────────────────────────────────
   28. MESSAGES & ALERTS
────────────────────────────────────────────────────────── */
.msg-box {
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: .84rem; line-height: 1.5;
  display: none; align-items: center; gap: 9px; margin-bottom: 16px;
}
.msg-box.show { display: flex; }
.msg-error    { background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.3); color: var(--red); }
.msg-success  { background: rgba(39,174,96,.10); border: 1px solid rgba(39,174,96,.3); color: #2ecc71; }
.alert         { border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 20px; font-size: .88rem; line-height: 1.65; text-align: center; }
.alert i       { display: block; font-size: 2rem; margin-bottom: 8px; }
.alert-error   { background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.3); color: var(--red); }
.alert-success { background: rgba(39,174,96,.10); border: 1px solid rgba(39,174,96,.3); color: #2ecc71; }

/* ──────────────────────────────────────────────────────────
   29. SPLIT-SCREEN AUTH LAYOUT  (login / registreer)
────────────────────────────────────────────────────────── */
body.auth-split { min-height: 100vh; display: flex; overflow: hidden; height: 100vh; }

.auth-left {
  width: 44%; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 52px; position: relative; overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(192,57,43,.3) 40%, transparent 100%);
  z-index: 2;
}
.auth-left--login {
  background:
    radial-gradient(ellipse at -10% 110%, rgba(192,57,43,.45) 0%, transparent 50%),
    radial-gradient(ellipse at 90% -5%,  rgba(192,57,43,.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%,  rgba(192,57,43,.04) 0%, transparent 70%),
    linear-gradient(160deg, #0d0d18 0%, #07070d 100%);
}
.auth-left--login::after {
  content: 'BELLOCCO';
  position: absolute; bottom: -30px; left: -30px;
  font-size: 13rem; font-weight: 900; color: rgba(192,57,43,.07);
  pointer-events: none; user-select: none; letter-spacing: 6px; line-height: 1; z-index: 0;
}
.auth-left--register {
  background:
    radial-gradient(ellipse at 80% 110%, rgba(192,57,43,.4) 0%, transparent 50%),
    radial-gradient(ellipse at -5% -5%,  rgba(192,57,43,.10) 0%, transparent 40%),
    linear-gradient(160deg, #0d0d18 0%, #07070d 100%);
}
.auth-left--register::after {
  content: 'JOIN';
  position: absolute; bottom: -15px; left: -15px;
  font-size: 15rem; font-weight: 900; color: rgba(192,57,43,.07);
  pointer-events: none; user-select: none; letter-spacing: 6px; line-height: 1; z-index: 0;
}
.auth-left-logo      { font-size: 1.55rem; font-weight: 900; letter-spacing: 3px; color: var(--text); text-decoration: none; position: relative; z-index: 1; }
.auth-left-logo span { color: var(--accent); }
.auth-left-body      { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; position: relative; z-index: 1; }
.auth-tagline        { font-size: 3rem; font-weight: 900; line-height: 1.08; margin-bottom: 18px; letter-spacing: -1px; }
.auth-tagline em     { color: var(--accent); font-style: normal; display: block; }
.auth-sub            { font-size: .9rem; color: var(--muted); line-height: 1.8; margin-bottom: 40px; max-width: 340px; }
.auth-features       { display: flex; flex-direction: column; gap: 10px; }
.auth-feature        { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,.025); border-left: 2px solid rgba(192,57,43,.35); transition: all .2s; }
.auth-feature:hover  { background: rgba(255,255,255,.04); border-left-color: var(--accent); }
.auth-feature-icon   { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; background: rgba(192,57,43,.14); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: .95rem; }
.auth-feature-text h4 { font-size: .84rem; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.auth-feature-text p  { font-size: .74rem; color: var(--muted); line-height: 1.5; margin: 0; }
.auth-perks { display: flex; flex-direction: column; gap: 8px; }
.auth-perk  { display: flex; align-items: center; gap: 13px; font-size: .84rem; color: var(--muted); padding: 11px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.025); border-left: 2px solid rgba(39,174,96,.35); }
.auth-perk i { color: var(--green); font-size: .78rem; flex-shrink: 0; }
.auth-left-footer        { font-size: .74rem; color: rgba(234,234,248,.3); display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.auth-left-footer::before { content: ''; width: 28px; height: 1px; background: rgba(192,57,43,.4); }
.auth-right {
  flex: 1; background: linear-gradient(160deg, #0e0e18 0%, #0a0a12 100%);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 28px; overflow-y: auto;
}
.auth-right-inner    { width: 100%; max-width: 420px; }
.auth-form-header    { margin-bottom: 32px; }
.auth-form-header h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: 8px; letter-spacing: -.5px; }
.auth-form-header p  { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.auth-form-header a  { color: var(--accent); font-weight: 600; }

/* ──────────────────────────────────────────────────────────
   30. CENTERED CARD PAGES  (wachtwoord-vergeten)
────────────────────────────────────────────────────────── */
body.auth-card {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(192,57,43,.18) 0%, transparent 55%),
    var(--bg);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}
.auth-card-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
  max-width: 420px; width: 100%; box-shadow: var(--shadow);
}
.auth-card-logo   { text-align: center; margin-bottom: 28px; }
.auth-card-logo a { font-size: 1.4rem; font-weight: 900; letter-spacing: 3px; color: var(--text); text-decoration: none; }
.auth-card-logo a span { color: var(--accent); }
.auth-card-logo p { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.auth-card-title  { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.auth-card-desc   { color: var(--muted); font-size: .87rem; line-height: 1.65; margin-bottom: 28px; }

/* ──────────────────────────────────────────────────────────
   31. CONTENT PAGES  (spelregels / privacy)
────────────────────────────────────────────────────────── */
.og-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.og-nav-logo      { font-size: 1.2rem; font-weight: 900; letter-spacing: 2px; color: var(--text); text-decoration: none; }
.og-nav-logo span { color: var(--accent); }
.og-nav-back      { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; text-decoration: none; transition: color .2s; }
.og-nav-back:hover { color: var(--text); }
.og-content-page  { max-width: 780px; margin: 0 auto; padding: 60px 24px 100px; }
.og-page-header   { margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.og-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.og-page-meta      { font-size: .82rem; color: var(--muted); }
.og-prose h2            { font-size: 1.15rem; font-weight: 700; margin: 36px 0 12px; color: var(--text); }
.og-prose h2:first-child { margin-top: 0; }
.og-prose p             { font-size: .9rem; color: var(--muted); margin-bottom: 14px; line-height: 1.8; }
.og-prose ul            { padding-left: 20px; margin-bottom: 14px; }
.og-prose ul li         { font-size: .9rem; color: var(--muted); margin-bottom: 6px; line-height: 1.7; }
.og-prose strong        { color: var(--text); }
.og-prose a             { color: var(--accent); }
.og-prose a:hover       { text-decoration: underline; }
.og-info-box        { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; font-size: .87rem; color: var(--muted); line-height: 1.7; }
.og-info-box strong { color: var(--text); display: block; margin-bottom: 4px; }
.og-rule-card    { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; display: flex; gap: 16px; align-items: flex-start; }
.og-rule-num     { min-width: 32px; height: 32px; border-radius: 50%; background: rgba(192,57,43,.15); border: 1px solid rgba(192,57,43,.3); color: var(--accent); font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.og-rule-body h3 { font-size: .92rem; font-weight: 700; margin-bottom: 4px; }
.og-rule-body p  { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.65; }
.og-warning        { background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.25); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; font-size: .87rem; color: var(--muted); line-height: 1.7; }
.og-warning strong { color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.og-footer         { border-top: 1px solid var(--border); padding: 24px; text-align: center; font-size: .78rem; color: rgba(234,234,248,.25); }
.og-footer a       { color: inherit; }
.og-footer a:hover { color: var(--muted); }

/* ──────────────────────────────────────────────────────────
   32. HOMEPAGE — Navigation
────────────────────────────────────────────────────────── */
/* Ensure nav + stats sit above hero pseudo-elements */
.hero-nav, .hero-stats { position: relative; z-index: 10; }

.hero-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative; z-index: 10;
}
.hero-nav-logo      { font-size: 1.3rem; font-weight: 900; letter-spacing: 2px; color: #eaeaf8; }
.hero-nav-logo span { color: var(--accent); }
.hero-nav-links     { display: flex; align-items: center; gap: 28px; }
.hero-nav-links a   { font-size: .84rem; color: rgba(234,234,248,.55); transition: color .2s; }
.hero-nav-links a:hover { color: #eaeaf8; }
.hero-nav-actions   { display: flex; gap: 10px; }

/* ──────────────────────────────────────────────────────────
   33. HOMEPAGE — Hero
────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 70%, rgba(192,57,43,.35) 0%, transparent 48%),
    radial-gradient(ellipse at 80% 15%, rgba(192,57,43,.14) 0%, transparent 42%),
    linear-gradient(180deg, rgba(3,3,7,.94) 0%, rgba(5,5,12,.88) 60%, rgba(4,4,10,.95) 100%),
    url('/assets/img/dark-city.jpg') center bottom / cover no-repeat;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
/* Gun watermark — faint weapon silhouette right side */
.hero::before {
  content: '';
  position: absolute; top: 0; right: 5%; bottom: 0;
  width: 55%; max-width: 700px;
  background: url('/assets/img/gun-table.jpg') center center / contain no-repeat;
  opacity: .045; pointer-events: none; z-index: 0;
  filter: grayscale(100%) contrast(1.5);
}
.hero::after {
  content: 'OMERTÀ';
  position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%);
  font-size: clamp(48px, 14vw, 160px); font-weight: 900; color: rgba(192,57,43,.045);
  pointer-events: none; user-select: none; letter-spacing: 14px; white-space: nowrap; z-index: 0;
}

/* ── Hero 2-column body ── */
.hero-body {
  flex: 1; display: flex; flex-direction: row;
  align-items: center; justify-content: center;
  padding: 56px 48px 80px; gap: 52px;
  max-width: 1240px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
.hero-content { flex: 1; min-width: 0; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.3);
  color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 99px; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(1.7rem, 3.6vw, 3.0rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 18px;
}
.hero-title em  { color: var(--accent); font-style: normal; display: block; font-size: .8em; }
.hero-sub {
  font-size: clamp(.88rem, 1.4vw, 1rem);
  color: rgba(234,234,248,.58); max-width: 520px; line-height: 1.8; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Hero login card (right column) ── */
.hero-login-card {
  width: 390px; flex-shrink: 0;
  background: rgba(8,8,16,.82);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow:
    0 32px 80px rgba(0,0,0,.75),
    0 0 0 1px rgba(192,57,43,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
}
/* Bullet-hole corner accent */
.hero-login-card::before {
  content: '✦';
  position: absolute; top: 12px; right: 14px;
  font-size: .65rem; color: rgba(192,57,43,.4);
  letter-spacing: 4px;
}
.hlc-header        { margin-bottom: 22px; }
.hlc-header h2     { font-size: 1.25rem; font-weight: 900; margin-bottom: 5px; letter-spacing: -.3px; }
.hlc-header p      { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.hlc-header a      { color: var(--accent); font-weight: 600; }
.hlc-divider       { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.hlc-divider::before,
.hlc-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.hlc-divider span  { font-size: .72rem; color: var(--muted2); white-space: nowrap; }
.hlc-msg           { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: .8rem; line-height: 1.4; margin-bottom: 14px; display: none; }
.hlc-msg.show      { display: flex; }
.hlc-msg.err       { background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.28); color: #e74c3c; }
.hlc-perks         { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.hlc-perk          { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted2); }
.hlc-perk i        { color: var(--green); font-size: .62rem; flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────
   34. HOMEPAGE — Stats bar
────────────────────────────────────────────────────────── */
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.018); flex-shrink: 0; position: relative; z-index: 1;
}
.hero-stat {
  flex: 1; max-width: 200px; text-align: center;
  padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.06);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val { font-size: 1.8rem; font-weight: 900; color: #eaeaf8; line-height: 1; }
.hero-stat-lbl { font-size: .72rem; color: rgba(234,234,248,.4); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ──────────────────────────────────────────────────────────
   35. HOMEPAGE — Features section
────────────────────────────────────────────────────────── */
.features { padding: 100px 24px; background: #080810; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -.5px; margin-bottom: 14px; }
.section-sub   { font-size: .95rem; color: rgba(234,234,248,.5); max-width: 520px; line-height: 1.75; margin-bottom: 56px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  border-left: 2px solid rgba(192,57,43,.3); border-radius: 12px; padding: 28px 24px;
  transition: all .2s;
}
.feature-card:hover {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1);
  border-left-color: var(--accent); transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--accent); margin-bottom: 18px;
}
.feature-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: 8px; }
.feature-card p  { font-size: .82rem; color: rgba(234,234,248,.5); line-height: 1.7; margin: 0; }

/* ──────────────────────────────────────────────────────────
   36. HOMEPAGE — CTA & Footer
────────────────────────────────────────────────────────── */
.cta-section {
  padding: 100px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(192,57,43,.15) 0%, transparent 60%),
    #0a0a0f;
  text-align: center;
}
.cta-title     { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.5px; margin-bottom: 16px; }
.cta-title em  { color: var(--accent); font-style: normal; }
.cta-sub       { font-size: .95rem; color: rgba(234,234,248,.5); max-width: 480px; margin: 0 auto 40px; line-height: 1.75; }
.og-footer-bar {
  border-top: 1px solid rgba(255,255,255,.06); padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: #080810;
}
.og-footer-logo      { font-size: 1.05rem; font-weight: 900; letter-spacing: 2px; }
.og-footer-logo span { color: var(--accent); }
.og-footer-links     { display: flex; gap: 20px; }
.og-footer-links a   { font-size: .78rem; color: rgba(234,234,248,.35); transition: color .2s; }
.og-footer-links a:hover { color: rgba(234,234,248,.7); }
.og-footer-copy { font-size: .76rem; color: rgba(234,234,248,.25); }

/* ──────────────────────────────────────────────────────────
   37. OUTGAME RESPONSIVE
────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  body.auth-split           { flex-direction: column; overflow: auto; height: auto; }
  .auth-left                { width: 100%; min-height: auto; padding: 20px 24px; flex-direction: row; align-items: center; gap: 16px; }
  .auth-left::after         { display: none; }
  .auth-left-body,
  .auth-left-footer         { display: none; }
  .auth-left-logo           { font-size: 1.2rem; }
  .auth-right               { padding: 28px 20px; min-height: auto; }
  .auth-right-inner         { max-width: 100%; }
  .form-row-2               { grid-template-columns: 1fr; }
}

/* Hero 2-col → 1-col stacks */
@media (max-width: 1000px) {
  .hero-body                { padding: 48px 32px 72px; gap: 40px; }
  .hero-login-card          { width: 360px; }
}
@media (max-width: 820px) {
  .hero::before             { opacity: .03; }
  .hero-body                { flex-direction: column; align-items: center; text-align: center; padding: 40px 24px 60px; }
  .hero-content             { display: flex; flex-direction: column; align-items: center; }
  .hero-sub                 { max-width: 560px; }
  .hero-cta                 { justify-content: center; }
  .hero-login-card          { width: 100%; max-width: 420px; }
}
@media (max-width: 768px) {
  .hero-nav                 { padding: 0 20px; }
  .hero-nav-links           { display: none; }
  .features-grid            { grid-template-columns: 1fr 1fr; }
  .hero-stats               { flex-wrap: wrap; }
  .hero-stat                { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); min-width: 50%; }
  .og-footer-bar            { flex-direction: column; gap: 16px; text-align: center; padding: 24px; }
}
@media (max-width: 540px) {
  .auth-card-wrap           { padding: 32px 20px; }
  .hero-cta                 { flex-direction: column; align-items: stretch; }
  .hero-cta .btn            { justify-content: center; }
  .features-grid            { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   ██  H O M E P A G E   E X T R A   S E C T I O N S
   ══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   38. SECTION SHELL
────────────────────────────────────────────────────────── */
.section       { padding: 90px 0; }
.section-alt   { background: var(--surface); }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-head  { margin-bottom: 52px; }
.section-head.centered { text-align: center; }
.section-head.centered .section-sub { margin: 0 auto; }

/* re-usable label + title + sub */
.s-label { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.s-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.s-title { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.5px; margin-bottom: 14px; }
.s-sub   { font-size: .95rem; color: rgba(234,234,248,.5); max-width: 540px; line-height: 1.75; }

/* ──────────────────────────────────────────────────────────
   39. ABOUT STRIP  (2-col, facts + prose)
────────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.about-prose p {
  font-size: .92rem; color: var(--muted); line-height: 1.85; margin-bottom: 18px;
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong { color: var(--text); }
.about-facts { display: flex; flex-direction: column; gap: 12px; }
.about-fact {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid rgba(192,57,43,.4); transition: all .2s;
}
.about-fact:hover { border-left-color: var(--accent); background: rgba(255,255,255,.04); }
.about-fact-ico {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--accent);
}
.about-fact-body h4 { font-size: .84rem; font-weight: 700; margin-bottom: 3px; }
.about-fact-body p  { font-size: .76rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ──────────────────────────────────────────────────────────
   40. STEPS  (how to play)
────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  text-align: center; padding: 32px 24px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); transition: all .2s; position: relative;
}
.step:hover { background: rgba(255,255,255,.04); transform: translateY(-3px); }
/* connector line between steps */
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 50px; right: -15px;
  width: 30px; height: 1px; background: rgba(192,57,43,.3);
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(192,57,43,.1); border: 2px solid rgba(192,57,43,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; color: var(--accent); margin: 0 auto 18px;
  transition: all .2s;
}
.step:hover .step-num { background: rgba(192,57,43,.18); border-color: var(--accent); box-shadow: 0 0 20px rgba(192,57,43,.2); }
.step h3 { font-size: .95rem; font-weight: 800; margin-bottom: 8px; }
.step p  { font-size: .82rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ──────────────────────────────────────────────────────────
   41. SEASON BANNER
────────────────────────────────────────────────────────── */
.season-banner {
  background:
    radial-gradient(ellipse at 5% 50%, rgba(192,57,43,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 95% 50%, rgba(243,156,18,.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(192,57,43,.1) 0%, rgba(192,57,43,.04) 100%);
  border: 1px solid rgba(192,57,43,.2); border-radius: var(--radius);
  padding: 40px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; position: relative; overflow: hidden;
}
.season-banner::before {
  content: 'S1'; position: absolute; right: 48px; top: 50%;
  transform: translateY(-50%);
  font-size: 9rem; font-weight: 900; color: rgba(192,57,43,.06);
  pointer-events: none; user-select: none; line-height: 1; letter-spacing: -8px;
}
.season-info { position: relative; z-index: 1; }
.season-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.season-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 1.5s infinite; }
.season-info h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; letter-spacing: -.3px; }
.season-info p  { font-size: .88rem; color: var(--muted); line-height: 1.6; max-width: 440px; }
.season-stats { display: flex; gap: 28px; flex-shrink: 0; position: relative; z-index: 1; }
.season-stat { text-align: center; }
.season-stat-val { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.season-stat-lbl { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.season-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; position: relative; z-index: 1; }

/* ──────────────────────────────────────────────────────────
   42. FAQ ACCORDION
────────────────────────────────────────────────────────── */
.faq-list  { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item  {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.faq-item.open { border-color: rgba(192,57,43,.3); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: var(--surface2); cursor: pointer; text-align: left;
  color: var(--text); font-size: .9rem; font-weight: 600; transition: background .2s;
  border: none; font-family: inherit;
}
.faq-question:hover { background: var(--surface3); }
.faq-item.open .faq-question { background: rgba(192,57,43,.07); }
.faq-question-ico {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-left: 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .7rem; transition: all .25s;
}
.faq-item.open .faq-question-ico { background: rgba(192,57,43,.15); border-color: rgba(192,57,43,.3); color: var(--accent); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .32s ease; background: var(--surface); }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 18px 22px; color: var(--muted); font-size: .87rem; line-height: 1.8; margin: 0;
}
.faq-answer a { color: var(--accent); }
.faq-answer a:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────────
   43. WAR STORIES / TESTIMONIALS
────────────────────────────────────────────────────────── */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story-card {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 22px 20px;
  position: relative; overflow: hidden; transition: all .2s;
}
.story-card:hover { background: rgba(255,255,255,.04); transform: translateY(-2px); }
.story-card::before {
  content: '"'; position: absolute; top: 8px; right: 16px;
  font-size: 5rem; font-weight: 900; color: rgba(192,57,43,.08);
  line-height: 1; pointer-events: none; font-family: Georgia, serif;
}
.story-text { font-size: .85rem; color: var(--muted); line-height: 1.75; margin-bottom: 16px; font-style: italic; }
.story-author { display: flex; align-items: center; gap: 10px; }
.story-ava {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #7a1c12 100%);
  border: 2px solid rgba(192,57,43,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; color: #fff;
}
.story-name { font-size: .8rem; font-weight: 700; }
.story-rank { font-size: .68rem; color: var(--gold); margin-top: 1px; }

/* ──────────────────────────────────────────────────────────
   44. GANGSTER WATERMARK VARIANTS
────────────────────────────────────────────────────────── */
.wm-omerta::after {
  content: 'OMERTÀ';
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: clamp(40px, 8vw, 100px); font-weight: 900;
  color: rgba(192,57,43,.04); pointer-events: none; user-select: none;
  letter-spacing: 12px; white-space: nowrap; z-index: 0;
}
.wm-famiglia::after {
  content: 'LA FAMIGLIA';
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: clamp(30px, 6vw, 80px); font-weight: 900;
  color: rgba(192,57,43,.04); pointer-events: none; user-select: none;
  letter-spacing: 10px; white-space: nowrap; z-index: 0;
}
.wm-cosa::after {
  content: 'COSA NOSTRA';
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: clamp(26px, 5vw, 72px); font-weight: 900;
  color: rgba(192,57,43,.04); pointer-events: none; user-select: none;
  letter-spacing: 8px; white-space: nowrap; z-index: 0;
}
.wm-capo::after {
  content: 'CAPO DEI CAPI';
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: clamp(22px, 4.5vw, 66px); font-weight: 900;
  color: rgba(192,57,43,.04); pointer-events: none; user-select: none;
  letter-spacing: 8px; white-space: nowrap; z-index: 0;
}

/* Section must be position:relative for watermarks */
.section-rel { position: relative; overflow: hidden; }

/* ── Section photo watermarks ── */
/* Usage: add class + position:relative to section */
.img-wm-gun::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background: url('/assets/img/gun-table.jpg') right center / contain no-repeat;
  opacity: .04; pointer-events: none; z-index: 0;
  filter: grayscale(100%) contrast(1.4);
}
.img-wm-city::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/img/noir-alley.jpg') center / cover no-repeat;
  opacity: .07; pointer-events: none; z-index: 0;
  filter: grayscale(100%) contrast(1.2);
}
.img-wm-money::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 40%; height: 60%;
  background: url('/assets/img/money-cash.jpg') left bottom / contain no-repeat;
  opacity: .05; pointer-events: none; z-index: 0;
  filter: grayscale(100%);
}
/* Ensure inner content sits above image watermarks */
.img-wm-gun > *, .img-wm-city > *, .img-wm-money > * { position: relative; z-index: 1; }

/* ──────────────────────────────────────────────────────────
   45. HOMEPAGE FOOTER (full grid version)
────────────────────────────────────────────────────────── */
.site-footer {
  background: #060609; border-top: 1px solid rgba(255,255,255,.06);
  padding: 64px 0 0;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 24px 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand-logo      { font-size: 1.35rem; font-weight: 900; letter-spacing: 2.5px; margin-bottom: 14px; display: block; }
.footer-brand-logo span { color: var(--accent); }
.footer-brand p { font-size: .82rem; color: var(--muted); line-height: 1.8; margin-bottom: 20px; max-width: 280px; }
.footer-brand-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .66rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--muted2);
}
.footer-badge.accent { background: rgba(192,57,43,.1); border-color: rgba(192,57,43,.2); color: var(--accent); }
.footer-col h5 {
  font-size: .68rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted3); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: .83rem; color: rgba(234,234,248,.38); margin-bottom: 9px;
  transition: color .2s;
}
.footer-col a:hover { color: rgba(234,234,248,.75); }
.footer-col a i { margin-right: 6px; font-size: .72rem; color: var(--accent); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p     { font-size: .76rem; color: rgba(234,234,248,.22); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .74rem; color: rgba(234,234,248,.25); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(234,234,248,.55); }
.footer-seo {
  max-width: 1100px; margin: 0 auto; padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.03);
  font-size: .72rem; color: rgba(234,234,248,.18); line-height: 1.8;
}

/* ──────────────────────────────────────────────────────────
   46. EXTRA RESPONSIVE (new sections)
────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .stories-grid  { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .steps-grid    { grid-template-columns: 1fr; gap: 20px; }
  .step:not(:last-child)::after { display: none; }
  .season-banner { flex-direction: column; padding: 28px 24px; }
  .season-stats  { gap: 24px; }
  .section       { padding: 60px 0; }
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 540px) {
  .stories-grid  { grid-template-columns: 1fr; }
  .season-stat-val { font-size: 1.5rem; }
}

/* ──────────────────────────────────────────────────────────
   Publieke (indexeerbare) layout — gasten & Google
────────────────────────────────────────────────────────── */
body.public { background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
.pub-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 50;
}
.pub-logo { font-weight: 900; font-size: 1.25rem; letter-spacing: 1px; color: var(--text); text-decoration: none; }
.pub-logo span { color: var(--accent); }
.pub-nav { display: flex; gap: 8px; align-items: center; }
.pub-main { flex: 1; padding: 22px 16px 40px; }
.pub-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 18px 16px; }
.pub-footer-in {
  max-width: 1100px; margin: 0 auto; display: flex; gap: 10px;
  justify-content: space-between; align-items: center; flex-wrap: wrap;
  font-size: .72rem; color: var(--muted);
}
.pub-footer-links a { color: var(--muted); text-decoration: none; }
.pub-footer-links a:hover { color: var(--text); }
@media (max-width: 560px) { .pub-footer-in { justify-content: center; text-align: center; } }

/* ──────────────────────────────────────────────────────────
   Kluiscodes-pagina
────────────────────────────────────────────────────────── */
.vault-sub { padding: 12px 14px 6px; font-size: .58rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted2); font-weight: 800; }
.vault-code { font-family: 'Courier New', monospace; font-size: .8rem; letter-spacing: .5px; font-weight: 700; color: var(--gold); }
.vault-code.muted { color: var(--muted); }

.vault-done-list { padding: 0 8px; }
.vault-open-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 2px; }
.vault-chip-code { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(241,196,15,.08); cursor: pointer; transition: background .12s, border-color .12s, transform .08s; }
.vault-chip-code:hover { background: rgba(241,196,15,.18); border-color: rgba(241,196,15,.5); }
.vault-chip-code:active { transform: scale(.96); }
.vault-chip-code > i { color: var(--gold); font-size: .66rem; opacity: .85; }

.vault-done-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.vault-done-row:hover { background: rgba(255,255,255,.02); }
.vault-done-reward { font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Rechterkolom — verzilveren */
.vault-textarea { width: 100%; resize: vertical; font-family: 'Courier New', monospace; letter-spacing: 1px; line-height: 1.7; text-transform: uppercase; min-height: 130px; }
.vault-bar { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 12px; }
.vault-count { font-size: .72rem; color: var(--muted); }
.vault-count strong { color: var(--gold); font-size: .85rem; }
.vault-clear { background: none; border: none; color: var(--muted2); font-size: .72rem; cursor: pointer; }
.vault-clear:hover { color: var(--text); }
.vault-submit { background: linear-gradient(90deg, #f1c40f, #e67e22); border: none; color: #1b1b22; font-weight: 800; }

/* Resultaatpaneel */
.vault-result { margin: 14px 16px 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.02); }
.vault-result-banner { display: flex; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(135deg, rgba(241,196,15,.12), rgba(230,126,34,.04)); border-bottom: 1px solid var(--border); }
.vault-result-ico { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #1b1b22; background: linear-gradient(135deg, #f1c40f, #e67e22); box-shadow: 0 0 22px rgba(241,196,15,.35); }
.vault-result-title { font-size: 1.05rem; font-weight: 900; }
.vault-result-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.vault-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.vault-pill.ok   { background: rgba(46,204,113,.15); color: #2ecc71; }
.vault-pill.fail { background: rgba(231,76,60,.15);  color: #e74c3c; }

/* Totaal-buit (de kern: wat heb je gekregen) */
.vault-totals-head, .vault-result-detail { padding: 12px 16px 4px; font-size: .6rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted2); font-weight: 800; }
.vault-totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 4px 16px 14px; }
.vault-total-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); }
.vault-total-ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 2px; }
.vault-total-val { font-size: 1rem; font-weight: 900; }
.vault-total-lab { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }

.vault-result-detail { border-top: 1px solid rgba(255,255,255,.05); }
.vault-result-list { max-height: 200px; overflow-y: auto; }
.vault-rrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.04); border-left: 3px solid transparent; }
.vault-rrow:last-child { border-bottom: none; }
.vault-rrow.ok   { border-left-color: #2ecc71; }
.vault-rrow.fail { border-left-color: #e74c3c; }
.vault-reward { font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Legenda met chips */
.vault-legend { padding: 6px 16px 16px; border-top: 1px solid rgba(255,255,255,.05); margin-top: 6px; }
.vault-legend-title { font-size: .72rem; font-weight: 800; margin-bottom: 10px; }
.vault-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vault-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; padding: 5px 11px 5px 5px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.02); }
.vault-chip-ico { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; }
.vault-hint { font-size: .66rem; color: var(--muted); margin: 12px 0 0; }

/* Kluiscodes — resultaat bovenaan + link naar gebruikte codes */
.vault-result-top { margin: 0 0 16px; }
.vault-used-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 12px 14px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 700; transition: background .12s, border-color .12s; }
.vault-used-link:hover { background: rgba(241,196,15,.08); border-color: rgba(241,196,15,.4); }
.vault-used-link > span > i { color: var(--gold); margin-right: 6px; }
.vault-used-link > i { color: var(--muted2); font-size: .72rem; }

/* ──────────────────────────────────────────────────────────
   Families
────────────────────────────────────────────────────────── */
.fam-header { overflow: hidden; }
.fam-banner { display: flex; align-items: center; gap: 16px; padding: 18px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--fam, #e74c3c) 14%, transparent), transparent); }
.fam-emblem { width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; box-shadow: 0 0 26px rgba(0,0,0,.4); }
.fam-id { min-width: 0; }
.fam-name { margin: 0; font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.fam-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: .74rem; color: var(--muted); }
.fam-meta span { display: inline-flex; align-items: center; gap: 6px; }
.fam-desc { padding: 0 16px 16px; font-size: .82rem; color: var(--text); line-height: 1.6; }

.fam-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fam-stat { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fam-stat-ico { font-size: 1.1rem; margin-bottom: 2px; }
.fam-stat-val { font-size: 1.05rem; font-weight: 900; }
.fam-stat-lab { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }

.fam-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.fam-yourrank { font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.fam-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.fam-bank-balance { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; }

.fam-pending-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.fam-pending-row:last-child { border-bottom: none; }

/* Familie-upgrade */
.upg-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; margin: 12px auto 0; max-width: 220px; }
.upg-bar-fill { height: 100%; background: linear-gradient(90deg, #f1c40f, #e67e22); border-radius: 6px; }
.upg-step { display: flex; align-items: center; justify-content: center; gap: 16px; }
.upg-step-box { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; border: 1px solid var(--border); background: var(--surface3); color: var(--muted); }
.upg-step-box.gold { border-color: transparent; background: linear-gradient(135deg, #f1c40f, #e67e22); color: #1b1b22; box-shadow: 0 0 22px rgba(241,196,15,.3); }

/* Nav-item als knop (familie verlaten/opheffen in het menu) */
.nav-item-btn { width: 100%; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; font-size: .76rem; font-weight: 500; }

/* Familie-profiel kiezers */
.fam-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-swatch { width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; transition: transform .1s, border-color .12s; }
.fam-swatch:hover { transform: scale(1.08); }
.fam-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.4) inset; }
.fam-iconpick { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface3); color: var(--muted); cursor: pointer; font-size: 1rem; transition: all .12s; }
.fam-iconbtn:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.fam-iconbtn.active { background: linear-gradient(135deg, #f1c40f, #e67e22); color: #1b1b22; border-color: transparent; }

/* Familie aan/uit-toggle */
.fam-toggle { width: 46px; height: 26px; border-radius: 20px; border: none; cursor: pointer; background: rgba(255,255,255,.12); position: relative; transition: background .18s; flex-shrink: 0; }
.fam-toggle.on { background: #2ecc71; }
.fam-toggle-dot { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .18s; }
.fam-toggle.on .fam-toggle-dot { left: 23px; }

/* Familie opheffen/verlaten — waarschuwingslijst */
.fam-warn-list { text-align: left; max-width: 420px; margin: 6px auto 0; display: flex; flex-direction: column; gap: 8px; }
.fam-warn-list > div { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--text); background: rgba(231,76,60,.06); border: 1px solid rgba(231,76,60,.15); border-radius: 10px; padding: 9px 12px; }

/* Klikbare familie-sectiekop in het menu */
.nav-section-link { display: block; text-decoration: none; transition: color .12s; }
.nav-section-link:hover { color: var(--muted); }
.nav-section-link.active { color: var(--text); }

/* Familiebedrijven (tycoon) */
.fam-biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.fam-biz-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface2); overflow: hidden; transition: border-color .15s, transform .08s; }
.fam-biz-card.owned { border-color: color-mix(in srgb, var(--bz, #2ecc71) 45%, transparent); }
.fam-biz-card:hover { transform: translateY(-2px); }
.fam-biz-head { display: flex; gap: 12px; align-items: center; padding: 14px 14px 10px; }
.fam-biz-ico { width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; }
.fam-biz-name { font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.fam-biz-lvl { font-size: .6rem; font-weight: 800; background: rgba(241,196,15,.16); color: var(--gold); padding: 2px 7px; border-radius: 20px; }
.fam-biz-desc { font-size: .66rem; color: var(--muted); margin-top: 2px; }
.fam-biz-body { padding: 0 14px 14px; }
.fam-biz-stat { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--muted); padding: 8px 0 12px; border-top: 1px solid rgba(255,255,255,.05); }
.fam-biz-next { font-size: .64rem; color: var(--muted2); text-align: center; margin-top: 7px; }
.fam-biz-max { text-align: center; font-size: .74rem; font-weight: 700; color: var(--gold); padding: 6px 0; }

/* Bedrijven-mini op het familieprofiel */
.fam-biz-mini { padding: 4px 8px; }
.fam-biz-mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; }
.fam-biz-mini-row:hover { background: rgba(255,255,255,.03); }
.fam-biz-mini-ico { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .9rem; color: #fff; }
.fam-biz-mini-name { flex: 1; min-width: 0; font-weight: 700; font-size: .8rem; display: flex; align-items: center; gap: 7px; }
.fam-biz-mini-inc { font-weight: 800; font-size: .78rem; white-space: nowrap; }

/* Familieprofiel — hero banner + layout (drugs.php-stijl) */
.fam-hero { overflow: hidden; position: relative; padding: 0; margin-bottom: 14px; }
.fam-hero-cover { height: 84px; background: linear-gradient(120deg, color-mix(in srgb, var(--fam, #e74c3c) 38%, #15151b), #15151b 75%); position: relative; }
.fam-hero-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 18% 120%, color-mix(in srgb, var(--fam, #e74c3c) 30%, transparent), transparent 60%); }
.fam-hero-body { display: flex; align-items: flex-end; gap: 16px; padding: 0 18px 14px; margin-top: -44px; position: relative; }
.fam-hero-emblem { width: 88px; height: 88px; border-radius: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 2.1rem; color: #fff; border: 3px solid var(--surface2); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.fam-hero-emblem img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.fam-hero-id { min-width: 0; padding-bottom: 4px; }
.fam-hero-name { margin: 0; font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.fam-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: .74rem; color: var(--muted); align-items: center; }
.fam-hero-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.fam-hero-desc { padding: 0 18px 16px; font-size: .84rem; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.05); margin-top: 4px; padding-top: 14px; }

/* Rechterkolom: cards netjes onder elkaar */
.fam-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fam-main > .card { margin: 0; }

/* Familie 2.0 — overval-rolkeuze & kluskeuze */
.fam-pick { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid rgba(255,255,255,.08); border-radius:10px; cursor:pointer; transition:border-color .15s, background .15s; }
.fam-pick:hover { border-color:rgba(241,196,15,.4); }
.fam-pick input[type=radio]:checked ~ .dt-strong { color:var(--gold); }
.fam-pick:has(input:checked) { border-color:var(--gold); background:rgba(241,196,15,.06); }
.fam-role-row { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid rgba(255,255,255,.07); border-radius:10px; }
.fam-role-row.filled { border-color:rgba(46,204,113,.35); background:rgba(46,204,113,.05); }

/* Beheerpaneel — uitklapbare economie-groep in het tabmenu */
.adm-group > summary { display:flex; align-items:center; }
.adm-group > summary::-webkit-details-marker { display:none; }
.adm-group > summary::marker { content:''; }
.adm-group[open] > summary .fa-chevron-down { transform:rotate(180deg); }
.adm-group > summary .fa-chevron-down { transition:transform .15s; }

/* ── Beheerpaneel: icon-picker ── */
.icon-picker { position:relative; display:inline-block; }
.icon-picker-btn { display:flex; align-items:center; gap:8px; min-width:150px; padding:8px 10px; background:var(--surface2,#1b1b22); border:1px solid rgba(255,255,255,.12); border-radius:8px; color:var(--text,#eee); cursor:pointer; font:inherit; font-size:.78rem; }
.icon-picker-btn .ip-label { font-family:monospace; font-size:.7rem; opacity:.85; }
.icon-picker-pop { display:none; position:absolute; z-index:50; top:calc(100% + 4px); left:0; width:280px; max-width:80vw; background:#15151b; border:1px solid rgba(255,255,255,.14); border-radius:10px; padding:8px; box-shadow:0 10px 30px rgba(0,0,0,.5); }
.icon-picker.open .icon-picker-pop { display:block; }
.icon-picker-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; max-height:220px; overflow-y:auto; margin-top:8px; }
.icon-picker-opt { aspect-ratio:1; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.05); border:1px solid transparent; border-radius:7px; color:#ccc; cursor:pointer; font-size:.9rem; }
.icon-picker-opt:hover { background:rgba(241,196,15,.18); color:var(--gold,#f1c40f); }
.icon-picker-opt.sel { border-color:var(--gold,#f1c40f); color:var(--gold,#f1c40f); }

/* ── Beheerpaneel: compacte uitklap-rijen (table-overzicht) ── */
.adm-item { border:1px solid rgba(255,255,255,.07); border-radius:10px; margin-bottom:7px; background:rgba(255,255,255,.015); }
.adm-item[open] { border-color:rgba(241,196,15,.3); }
.adm-item > summary { display:flex; align-items:center; gap:10px; padding:9px 12px; cursor:pointer; list-style:none; }
.adm-item > summary::-webkit-details-marker { display:none; }
.adm-item > summary::marker { content:''; }
.adm-item > summary .adm-chev { margin-left:auto; font-size:.7em; opacity:.55; transition:transform .15s; }
.adm-item[open] > summary .adm-chev { transform:rotate(180deg); }
.adm-item-body { padding:4px 12px 12px; border-top:1px solid rgba(255,255,255,.06); }
.adm-addbtn { display:inline-flex; }
.adm-add[open] > summary { color:var(--gold,#f1c40f); }

/* ── Beheerpaneel: compacte invoervelden (geen icoon-padding nodig) ── */
.bp-body .form-input { padding: 7px 12px; }
.bp-body input[type=number].form-input { padding-right: 6px; }
.bp-body .icon-picker .form-input,
.bp-body .icon-picker-search { padding-left: 28px; }

/* ── Vlaggen (echte landvlaggen i.p.v. emoji) ── */
.flag-img { display:inline-block; vertical-align:-2px; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,.25); object-fit:cover; }
.flag-emoji { display:inline-block; vertical-align:middle; }

/* ── Beheerpaneel: nette, leesbare bewerk-formulieren (grid i.p.v. krappe flex) ── */
.bp-body .fform { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:12px 14px; align-items:end; }
.bp-body .fform .fld { display:flex; flex-direction:column; min-width:0; }
.bp-body .fform .fld.wide { grid-column:span 2; }
.bp-body .fform .fld.full { grid-column:1 / -1; }
.bp-body .fform .fld > label { font-size:.6rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.bp-body .fform .fld .form-input,
.bp-body .fform .fld textarea.form-input { width:100%; }
.bp-body .fform .fld input[type=number].form-input { text-align:left; }
.bp-body .fform .fld-check { flex-direction:row; align-items:center; gap:7px; }
.bp-body .fform .fld-check input { width:16px; height:16px; }
.bp-body .fform .fld-actions { grid-column:1 / -1; display:flex; gap:8px; flex-wrap:wrap; margin-top:2px; }
/* Leesbare beheer-tabel (bewerken inline) */
.bp-body .mtable { width:100%; border-collapse:collapse; }
.bp-body .mtable th { text-align:left; font-size:.6rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:700; padding:8px 10px; border-bottom:1px solid var(--border); }
.bp-body .mtable td { padding:9px 10px; border-bottom:1px solid var(--border); font-size:.78rem; vertical-align:middle; }
.bp-body .mtable tr:last-child td { border-bottom:none; }
.bp-body .mtable tr:hover td { background:rgba(255,255,255,.02); }
.bp-body .mtable .form-input { padding:5px 9px; }
.bp-body .mtable td .row-form { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }

/* ── Beheerpaneel: compacte shop-formulieren ── */
.bp-body .form-input { padding: 6px 11px; font-size: .76rem; }
.bp-body .fform { gap: 9px 11px; }
.bp-body .fform .fld > label { font-size: .56rem; margin-bottom: 3px; }
.bp-body .form-label { font-size: .58rem; }
.bp-body .icon-picker-btn { padding: 6px 10px; font-size: .76rem; }

/* ── Pakket/diamant-samensteller: rijen (select + aantal + verwijder naast elkaar) ── */
.bld-rows { display:flex; flex-direction:column; gap:7px; }
.bld-row { display:flex; gap:8px; align-items:center; }
.bld-row select.form-input { flex:1 1 auto; min-width:0; }
.bld-row input.form-input { width:130px; flex:none; }
.bld-row .bld-del { flex:none; }

/* ── Beheerpaneel: compacte, nette adm-items & tabellen overal ── */
.bp-body .card-title { font-size:.84rem; }
.bp-body .card-header { padding:9px 13px; }
.bp-body .adm-item { margin-bottom:6px; }
.bp-body .adm-item > summary { padding:8px 11px; gap:9px; }
.bp-body .adm-item > summary .dt-strong { font-size:.8rem; }
.bp-body .adm-item > summary .dt-sub { font-size:.65rem; }
.bp-body .adm-item .dt-ico, .bp-body .mtable .dt-ico { width:26px; height:26px; font-size:.74rem; border-radius:7px; }
.bp-body .adm-item-body { padding:6px 11px 11px; }
.bp-body .mtable td { font-size:.74rem; padding:7px 9px; }
.bp-body .mtable td .dt-strong { font-size:.76rem; }
.bp-body .mtable td .dt-sub { font-size:.64rem; }
.bp-body .badge { font-size:.56rem; }
.bp-body .btn-sm { font-size:.68rem; padding:5px 9px; }
.bp-body .shop-tab { font-size:.72rem; padding:7px 10px; }
.bp-body .shop-badge { font-size:.5rem; }

/* ── Beheerpaneel: ruimte tussen opeenvolgende kaarten (nooit tegen elkaar) ── */
.bp-body .card + .card { margin-top:14px; }

/* ── Shop → VIP-voordelen: nette tegelraster (was verdwenen na CSS-migratie) ── */
.bp-body .vip-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:9px; }
.bp-body .vip-card { display:flex; align-items:flex-start; gap:10px; padding:10px 11px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.015); cursor:pointer; transition:border-color .15s, background .15s; }
.bp-body .vip-card:hover { border-color:rgba(241,196,64,.4); }
.bp-body .vip-card.on { border-color:rgba(241,196,64,.65); background:rgba(241,196,64,.07); }
.bp-body .vip-card input[type=checkbox] { margin-top:2px; flex:none; accent-color:#f1c40f; }
.bp-body .vip-card .vip-ico { width:30px; height:30px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(241,196,64,.12); color:#f1c40f; font-size:.84rem; }
.bp-body .vip-card .dt-strong { font-size:.78rem; }
.bp-body .vip-card .dt-sub { font-size:.66rem; color:var(--muted); line-height:1.35; }

/* ── Shop → Betaalmethodes: nette rij per methode (was verdwenen) ── */
.bp-body .pm-row { display:flex; align-items:center; gap:11px; padding:9px 11px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.015); margin-bottom:8px; }
.bp-body .pm-row:last-child { margin-bottom:0; }
.bp-body .pm-row img { width:34px; height:24px; object-fit:contain; flex:none; }
.bp-body .pm-row .pm-name { flex:1; min-width:0; font-size:.8rem; font-weight:600; }
.bp-body .pm-row form { flex:none; }

/* ── Social-knoppen in de topbar ── */
.topbar-btn.tb-social{text-decoration:none}
.topbar-btn.tb-discord{color:#5865F2}
.topbar-btn.tb-discord:hover{color:#fff;background:#5865F2}

/* ── Sociale iconen op de auth-pagina's (login/registreren/wachtwoord) ── */
.auth-socials{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;flex-wrap:wrap}
.auth-socials-lbl{font-size:.72rem;color:rgba(234,234,248,.4);margin-right:2px}
.auth-socials a{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:#cfcfe0;font-size:.95rem;text-decoration:none;transition:.15s}
.auth-socials a:hover{background:#c0392b;border-color:#c0392b;color:#fff;transform:translateY(-2px)}
