/* ==========================================================================
   DJ-ThaBelg Club — designsysteem (app11)
   Donkere club-vibe met neon-accenten. Kleuren altijd via tokens (var(--x)).
   Skeleton-fase: dit groeit uit tot het volledige component-systeem.
   ========================================================================== */

:root,
:root[data-theme="dark"] {
    --bg:            #0b0b0e;
    --bg-2:          #14141a;
    --surface:       #17171f;
    --surface-2:     #20202b;
    --line:          #33333f;
    --text:          #f7f5ef;
    --text-dim:      #bdbac6;
    --text-mute:     #8a8794;

    /* Belgische vlag: zwart (basis) · geel · rood */
    --accent:        #ff2e3e;   /* rood (neon) — primair accent */
    --accent-2:      #ffd23f;   /* geel/goud — highlight */
    --accent-3:      #c8102e;   /* diep rood — gradient-diepte */
    --accent-ink:    #0b0b0e;   /* zwart */

    --radius:        16px;
    --radius-sm:     10px;
    --shadow:        0 18px 50px -20px rgba(0,0,0,.75);
    --shadow-sm:     0 6px 18px -10px rgba(0,0,0,.6);
    --glow:          0 0 40px -6px var(--accent);
    --maxw:          1280px;
    --font:          system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Layout-schaal (app-shell) + spacing-schaal — niet thema-afhankelijk */
    --topbar-h:      60px;
    --tabbar-h:      62px;
    --space-1:       .35rem;
    --space-2:       .6rem;
    --space-3:       1rem;
    --space-4:       1.4rem;
    --space-5:       2rem;
}

:root[data-theme="light"] {
    --bg:            #f4f3fb;
    --bg-2:          #ffffff;
    --surface:       #ffffff;
    --surface-2:     #f2f0fb;
    --line:          #e2def2;
    --text:          #17152b;
    --text-dim:      #4a4770;
    --text-mute:     #7d7aa0;
    --accent:        #e4002b;   /* rood */
    --accent-2:      #b8860b;   /* donker goud (contrast op licht) */
    --accent-3:      #a80020;   /* diep rood */
    --accent-ink:    #ffffff;
    --shadow:        0 18px 40px -24px rgba(30,20,60,.35);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255,46,62,.20), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(255,210,63,.12), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }

/* Form-controls erven het paginafont (nooit het UA-systeemfont) — werkregel: fonts hard pinnen. */
button, input, select, textarea { font: inherit; color: inherit; }

/* Eén zichtbare toetsenbord-focus voor alle interactieve elementen (a11y + polish). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .btn:focus-visible, .quiz-opt:focus-visible, .tabbar a:focus-visible,
.anav a:focus-visible, summary:focus-visible, .nav-toggle:focus-visible ~ .nav-burger {
    outline: 2px solid var(--accent-2); outline-offset: 2px;   /* geen border-radius → vervormt geen pill/cirkel */
}
/* Visueel-verborgen-maar-focusbaar (toetsenbord kan de menu-checkbox bereiken). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack > * + * { margin-top: var(--space-3); }

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand__name { font-size: 1.15rem; }
.brand__name em { color: var(--accent); font-style: normal; }
.brand__logo { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 45%, transparent)); }
.brand__disc {
    width: 26px; height: 26px; border-radius: 50%;
    background: conic-gradient(from 0deg, #000, #333, #000, #333, #000);
    border: 2px solid var(--accent);
    box-shadow: var(--glow);
    position: relative;
}
.brand__disc::after {
    content: ""; position: absolute; inset: 0; margin: auto;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
}
.topnav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); flex-wrap: wrap; }
.topnav a { color: var(--text-dim); font-weight: 600; position: relative; }
.topnav a:hover { color: var(--text); text-decoration: none; }
.topnav > a.is-active:not(.btn) { color: var(--text); }
.topnav > a.is-active:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    border-radius: 2px; background: var(--accent-2);
}

/* Mobiel menu (hamburger, CSS-only via een checkbox — geen JS nodig). */
.nav-burger { display: none; }
@media (max-width: 760px) {
    .topbar { position: relative; }
    .nav-burger {
        display: inline-flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
        width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
        background: var(--surface-2); cursor: pointer;
    }
    .nav-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
    .topnav {
        display: none; position: absolute; top: calc(100% + 6px); right: clamp(1rem, 4vw, 2rem); left: clamp(1rem, 4vw, 2rem);
        flex-direction: column; align-items: stretch; gap: .15rem; flex-wrap: nowrap;
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: .5rem; box-shadow: var(--shadow); z-index: 55;
    }
    .nav-toggle:checked ~ .topnav { display: flex; animation: navdrop .16s ease; }
    .topnav > a, .topnav > .inline-form, .topnav > .inline-form > button { width: 100%; }
    .topnav > a { padding: .7rem .8rem; border-radius: 8px; }
    .topnav > a:hover, .topnav > a.is-active { background: var(--surface-2); }
    .topnav > a.is-active::after { display: none; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@keyframes navdrop { from { opacity: 0; transform: translateY(-6px); } }

/* ── Account-menu rechtsboven (avatar-dropdown, app12-model) ──── */
.topbar__right { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.topbar__reg { color: var(--text-dim); font-weight: 600; }
.topbar__reg:hover { color: var(--text); }
.dropdown { position: relative; }
.user-chip {
    display: flex; align-items: center; gap: .5rem; padding: 5px 12px 5px 5px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text);
    cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.user-chip:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
    font-weight: 800; font-size: .82rem; color: #fff; letter-spacing: .02em;
    background: linear-gradient(135deg, hsl(calc(var(--av, 320) * 1deg) 68% 45%), hsl(calc((var(--av, 320) + 42) * 1deg) 70% 36%));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.user-chip__meta { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.user-chip__name { font-size: .86rem; font-weight: 700; max-width: 13ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__role { font-size: .72rem; color: var(--text-mute); }
.user-chip__caret { color: var(--text-mute); font-size: .7rem; transition: transform .15s ease; }
.dropdown[data-open="true"] .user-chip__caret { transform: rotate(180deg); }
.dropdown__menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 232px; max-width: calc(100vw - 24px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px; display: none; z-index: 70;
}
.dropdown[data-open="true"] .dropdown__menu { display: block; animation: pop .13s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.dropdown__item {
    display: flex; align-items: center; gap: .55rem; width: 100%; padding: .6rem .7rem;
    border-radius: 9px; background: none; border: none; color: var(--text); font-weight: 600;
    font-size: .95rem; text-align: left; cursor: pointer;
}
.dropdown__item:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.dropdown__item.is-active { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent); }
.dropdown__item--admin { color: var(--accent-2); }
.dropdown__sep { height: 1px; background: var(--line); margin: 5px 4px; }
.dropdown__form { margin: 0; }
@media (max-width: 640px) {
    .user-chip { padding: 4px; }
    .user-chip__meta, .user-chip__caret { display: none; }
}

/* ── Layout ──────────────────────────────────────────────────── */
.wrap {
    flex: 1;
    width: 100%; max-width: var(--maxw);
    margin: 0 auto; padding: clamp(1rem, 4vw, 2rem);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: clamp(2rem, 8vw, 5rem) 1rem 3rem; }
.hero__glow {
    position: absolute; inset: -20% 10% auto; height: 320px; z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
    filter: blur(30px);
}
.hero__eyebrow {
    display: inline-block; margin: 0 0 1rem; padding: .35rem .9rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03);
}
.hero__title {
    font-size: clamp(2.4rem, 9vw, 4.6rem); font-weight: 900; letter-spacing: -1px;
    background: linear-gradient(120deg, var(--text), var(--accent-2) 42%, var(--accent) 78%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title span { color: var(--accent); -webkit-text-fill-color: currentColor; }
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text-dim); max-width: 40ch; margin: 0 auto 1.6rem; }
.hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__note { margin-top: 2rem; color: var(--text-mute); font-size: .95rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(120deg, var(--accent), var(--accent-3)); color: #fff; box-shadow: var(--glow); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn--pill { background: var(--surface-2); border-color: var(--line); color: var(--text); padding: .5rem 1.1rem; }
.btn--pill:hover { border-color: var(--accent); }

/* ── Cards ───────────────────────────────────────────────────── */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.card {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card--pad { padding: clamp(1.2rem, 3vw, 1.8rem); }
.card__icon { font-size: 1.8rem; margin-bottom: .4rem; }
.card h2 { font-size: 1.2rem; }
.card p { color: var(--text-dim); margin: 0; }

.appbar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.appbar span { color: var(--text-dim); }

/* ── Publieke "wat kan je doen"-showcase ─────────────────────────
   Toont dynamisch de ingeschakelde club-activiteiten. Compacte icoon-
   rijen i.p.v. logge kaarten → meer items overzichtelijk op één blik. */
.showcase { margin-top: clamp(2rem, 5vw, 3.2rem); }
.showcase__head { text-align: center; max-width: 46ch; margin: 0 auto 1.6rem; }
.showcase__title { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 .5rem; }
.showcase__sub { color: var(--text-dim); margin: 0; }
.showcase__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .7rem;
}
.feat {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease;
    animation: featIn .5s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.feat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.feat__icon {
    flex: 0 0 auto; font-size: 1.5rem; line-height: 1; width: 2.6rem; height: 2.6rem;
    display: grid; place-items: center; border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}
.feat__body { min-width: 0; }
.feat__title { font-size: 1.02rem; margin: .1rem 0 .25rem; }
.feat__text { color: var(--text-dim); margin: 0; font-size: .92rem; line-height: 1.45; }
.showcase__cta { text-align: center; margin-top: 1.6rem; }
@keyframes featIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .feat { animation: none; } }

/* ── Footer ──────────────────────────────────────────────────── */
.foot {
    text-align: center; padding: 2rem 1rem; color: var(--text-mute);
    border-top: 1px solid var(--line); margin-top: 2rem;
}
.foot p { margin: .2rem 0; }
.foot__small { font-size: .85rem; opacity: .8; margin-top: .4rem; }
.foot__brand { display: flex; flex-direction: column; gap: .1rem; align-items: center; margin-bottom: .7rem; }
.foot__logo { font-weight: 900; font-size: 1.05rem; color: var(--text); letter-spacing: .01em; }
.foot__tag { color: var(--text-dim); font-size: .9rem; }

/* ── Flash-meldingen ─────────────────────────────────────────── */
.flash { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1rem; }
.flash ul { margin: 0; padding-left: 1.1rem; }
.flash--success { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); background: rgba(255,210,63,.10); }
.flash--danger  { border-color: color-mix(in srgb, var(--accent) 55%, var(--line));  background: rgba(255,46,62,.12); }
.flash--info    { border-color: var(--line); background: rgba(255,255,255,.04); }

/* ── Formulieren ─────────────────────────────────────────────── */
.authcard { max-width: 460px; margin: 2rem auto; }
.authcard__alt { margin: .45rem 0 0; color: var(--text-dim); }
/* Eerste hulplink na het formulier: duidelijk losgekoppeld van de submit-knop. */
.authcard .form + .authcard__alt { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.authperks { list-style: none; margin: 1rem 0 1.4rem; padding: .9rem 1rem; display: grid; gap: .5rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 6%, transparent); }
.authperks li { display: flex; gap: .6rem; align-items: center; color: var(--text-dim); font-size: .95rem; }
.authperks li span { font-size: 1.1rem; line-height: 1; }
.muted { color: var(--text-dim); }

.form { display: grid; gap: .9rem; margin-top: 1rem; }
.field { display: grid; gap: .35rem; }
.field > span { font-weight: 600; font-size: .92rem; color: var(--text-dim); }
.field > span em { color: var(--text-mute); font-style: normal; font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="password"] {
    width: 100%; padding: .7rem .85rem; font-size: 1rem;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: .55rem; align-items: flex-start; color: var(--text-dim); font-size: .95rem; }
.check input { margin-top: .2rem; accent-color: var(--accent); }
.inline-form { display: inline; margin: 0; }

/* ── Dashboard ───────────────────────────────────────────────── */
.dash__head { margin-bottom: 1.2rem; }
.stat { display: flex; flex-direction: column; }
.stat__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); }
.stat__value { font-size: 2.4rem; font-weight: 900; line-height: 1.1; color: var(--accent-2); }
.stat__value--sm { font-size: 1.5rem; }
.stat__sub { color: var(--text-dim); font-size: .95rem; }

/* ── Tabel ───────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--text-mute); font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .pos { color: var(--accent-2); font-weight: 700; }
.table .neg { color: var(--accent); font-weight: 700; }

/* ── Admin ───────────────────────────────────────────────────── */
.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin__head h1 { margin: 0; }
.anav { display: flex; gap: .4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.anav::-webkit-scrollbar { height: 6px; }
.anav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.anav a { padding: .5rem .9rem; border-radius: 999px; color: var(--text-dim); font-weight: 600; white-space: nowrap; flex: none; }
.anav a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.anav a.is-active { background: linear-gradient(120deg, var(--accent), var(--accent-3)); color: #fff; box-shadow: var(--shadow-sm); }
.anav__group { align-self: center; padding: 0 .2rem 0 .7rem; margin-left: .3rem; font-size: .66rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .09em; color: var(--text-mute); white-space: nowrap; flex: none;
    border-left: 1px solid var(--line); }

/* Toggle-switch (app6-model) — voor 'aan/uit'-instellingen, tokengebaseerd. */
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; }
.switch > input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__slider { width: 44px; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .2s ease, border-color .2s ease; flex: none; }
.switch__slider::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-mute); transition: transform .2s ease, background .2s ease; }
.switch > input:checked + .switch__slider { background: color-mix(in srgb, var(--accent-2) 30%, transparent); border-color: var(--accent-2); }
.switch > input:checked + .switch__slider::before { transform: translateX(18px); background: var(--accent-2); }
.switch > input:focus-visible + .switch__slider { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.searchbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.searchbar input { flex: 1; min-width: 200px; padding: .6rem .8rem; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.form select { width: 100%; padding: .6rem .7rem; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.form h3 { margin: 0 0 .3rem; }
.lb-top { background: rgba(255,210,63,.06); }
.lb .lb-top td { font-weight: 700; font-size: 1.05rem; }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; font-size: .9em; }

/* ── Content-pagina's (prose) ────────────────────────────────── */
/* Seizoenen — ere-galerij (wall-of-fame) */
.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.hof-card, .hof-block { border: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--line)); border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-2) 7%, transparent); padding: .9rem 1rem; }
.hof-block { margin-bottom: .7rem; }
.hof-card__title, .hof-block__title { font-weight: 800; margin-bottom: .5rem; }
.hof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.hof-list li { display: flex; align-items: center; gap: .5rem; }
.hof-medal { flex: 0 0 auto; width: 1.6rem; text-align: center; font-weight: 800; }
.hof-name { font-weight: 600; }
.hof-pts { margin-left: auto; color: var(--text-mute); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* PWA-install: links-uitgelijnde knop met eigen accent-look (anders dan de pill-knoppen) */
.app-install { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 10px;
    font-weight: 800; font-size: .85rem; cursor: pointer; white-space: nowrap;
    color: var(--accent-ink); background: linear-gradient(120deg, var(--accent-2), #ffe27a);
    border: 1px solid color-mix(in srgb, var(--accent-2) 60%, #000); box-shadow: 0 4px 14px -6px var(--accent-2); }
.app-install:hover { filter: brightness(1.05); }
.app-install:active { transform: translateY(1px); }
.app-install span { font-size: 1rem; line-height: 1; }

/* PWA-install-modal (na ~8s; Android 1 tik / iOS instructies) — app6-stijl */
.pwa-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    padding: 1.2rem; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); animation: pwaFade .2s ease; }
.pwa-modal[hidden] { display: none; }
.pwa-modal__card { width: 100%; max-width: 380px; text-align: center; padding: 1.6rem 1.4rem;
    background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); animation: pwaRise .28s cubic-bezier(.2,.7,.3,1); }
.pwa-modal__icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.pwa-modal__title { font-size: 1.25rem; margin: .8rem 0 .4rem; }
.pwa-modal__desc { color: var(--text-dim); margin: 0 0 1.1rem; font-size: .95rem; line-height: 1.5; }
.pwa-modal__ios { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .8rem 1rem; margin: 0 0 1.1rem; display: grid; gap: .5rem; }
.pwa-step { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--text-dim); font-size: .92rem; }
.pwa-step__n { flex: 0 0 auto; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; }
.pwa-modal__btns { display: flex; flex-direction: column; gap: .5rem; }
body.pwa-modal-open { overflow: hidden; }
@keyframes pwaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pwaRise { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pwa-modal, .pwa-modal__card { animation: none; } }

/* Impersonatie-balk ("bekijken als clublid") — altijd zichtbaar bovenaan */
.imp-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: .6rem 1rem;
    align-items: center; justify-content: center; text-align: center; padding: .55rem 1rem;
    background: linear-gradient(90deg, var(--accent-2), #ffe27a); color: var(--accent-ink); font-weight: 700; font-size: .92rem; }
.imp-bar strong { text-decoration: underline; }
.imp-bar .btn { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); }

/* Admin-cockpit: "vraagt je aandacht"-strip + live-badge */
.live-badge-admin { padding: .7rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem;
    background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.todo-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.todo-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: 999px;
    text-decoration: none; color: var(--text); font-size: .92rem;
    background: color-mix(in srgb, var(--accent-2) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.todo-chip:hover { text-decoration: none; border-color: var(--accent-2); transform: translateY(-1px); }
.todo-chip strong { color: var(--accent-2); }

/* Uitbetaal-aanvragen (admin) */
.payout-note p { margin: 0; }
.payout-row { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
    padding: .8rem 0; border-bottom: 1px solid var(--line); }
.payout-row:last-child { border-bottom: 0; }
.payout-row__bank { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .35rem; font-size: .9rem; }
.payout-iban { font-family: ui-monospace, monospace; font-weight: 700; color: var(--accent-2); letter-spacing: .02em; }
.payout-row__act { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.payout-note-in { padding: .4rem .6rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--surface-2); color: var(--text); font-size: .85rem; max-width: 160px; }

/* Gebrande 404-pagina */
.notfound { text-align: center; max-width: 520px; margin: 3rem auto; padding: 0 1rem; }
.notfound__badge { position: relative; display: inline-grid; place-items: center; margin-bottom: 1.2rem; }
.notfound__disc { font-size: 4.5rem; line-height: 1; filter: grayscale(.2); animation: nfSpin 8s linear infinite; }
.notfound__code { position: absolute; font-weight: 900; font-size: 1.5rem; color: var(--accent-2);
    text-shadow: 0 2px 10px rgba(0,0,0,.5); letter-spacing: .05em; }
.notfound__title { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 .5rem; }
.notfound__text { color: var(--text-dim); margin: 0 0 1.5rem; }
.notfound__cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
@keyframes nfSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .notfound__disc { animation: none; } }

/* Content-pagina-kop (Info/Reglement/juridisch) — nette titelband boven de prose. */
.page-hero { text-align: center; max-width: 820px; margin: .5rem auto 1.2rem; }
.page-hero__title { font-size: clamp(1.8rem, 5vw, 2.7rem); margin: 0; }
.page-hero__rule { display: block; width: 64px; height: 4px; border-radius: 999px; margin: .8rem auto 0;
    background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.page-body { margin: 0 auto; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .8rem; }
.prose h2 { margin-top: 1.8rem; margin-bottom: .5rem; }
.prose h3 { margin-top: 1.3rem; margin-bottom: .4rem; }
.prose p, .prose li { color: var(--text-dim); line-height: 1.7; }
.prose p { margin: 0 0 1rem; }
.prose li { margin: .3rem 0; }
.prose a { color: var(--accent-2); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.form textarea { width: 100%; padding: .7rem .85rem; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); resize: vertical; }
.form textarea.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .85rem; line-height: 1.5; }

.foot__nav { display: flex; gap: .3rem 1.1rem; justify-content: center; flex-wrap: wrap; margin-bottom: .5rem; }
.foot__nav a { color: var(--text-dim); font-size: .9rem; text-decoration: none; }
.foot__nav a:hover { color: var(--accent); text-decoration: underline; }

/* ── Profiel + shows ─────────────────────────────────────────── */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.niclist { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.niclist li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .8rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); flex-wrap: wrap; }
.niclist li > span:first-child { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.niclist__actions { display: inline-flex; gap: .4rem; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line); }
.pill code { background: color-mix(in srgb, var(--accent-2) 20%, transparent); padding: .02rem .3rem; border-radius: 4px; font-weight: 700; letter-spacing: .04em; }
.pill--ok { color: #16a34a; border-color: color-mix(in srgb, #16a34a 45%, transparent); background: color-mix(in srgb, #16a34a 12%, transparent); }
.pill--warn { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); background: color-mix(in srgb, var(--accent-2) 12%, transparent); }
.show-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.show-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.show-card__date { font-size: .8rem; color: var(--accent-2); font-weight: 700; letter-spacing: .05em; }
.show-card h2 { font-size: 1.15rem; margin: .2rem 0 .4rem; }
.show-card__cta { margin-top: auto; color: var(--accent); font-weight: 700; padding-top: .5rem; }

/* Show-detail: nette herbeluister-panel rond de native audio-speler */
.show-back { margin: 0 0 .6rem; }
.show-detail__head { margin-bottom: 1rem; }
.show-detail__date { display: inline-block; font-size: .82rem; color: var(--accent-2); font-weight: 700; letter-spacing: .04em; margin-bottom: .3rem; }
.showplayer { border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 7%, transparent); padding: 1rem 1.1rem; margin: .4rem 0 1.2rem; }
.showplayer--empty { display: flex; gap: .8rem; align-items: center; }
.showplayer__label { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--text); margin-bottom: .7rem; }
.showplayer__dot { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: .85rem; }
.showplayer__dot--off { background: var(--surface-2); }
.showplayer__audio { width: 100%; }
.showplayer__foot { margin: .7rem 0 0; }
.show-detail__desc { margin-top: 1.2rem; }

/* ── Top-3 podium (Toppers, app9-geïnspireerd) ───────────────── */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: .6rem; padding: 1rem 1rem 0; max-width: 560px; margin: 0 auto; }
.podium__slot { display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 90px; max-width: 168px; }
.podium__info { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin-bottom: .5rem; text-align: center; }
.podium__medal { font-size: 1.6rem; animation: medalFloat 2.6s ease-in-out infinite; }
.podium__slot:nth-child(2) .podium__medal { animation-delay: .2s; }
.podium__slot:nth-child(3) .podium__medal { animation-delay: .4s; }
@keyframes medalFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.avatar--pod { width: 52px; height: 52px; font-size: 1.05rem; }
.podium__name { font-weight: 800; font-size: .92rem; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__pts { font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; font-size: .85rem; }
.podium__pts small { color: var(--text-mute); font-weight: 600; }
.podium__block { width: 100%; display: grid; place-items: center; border-radius: 8px 8px 0 0; font-weight: 900; font-size: 2.1rem; position: relative; overflow: hidden; animation: podRise .9s cubic-bezier(.34,1.56,.64,1) both; }
.podium__block::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%); }
.podium__block--gold   { height: 128px; background: linear-gradient(180deg, #ffe071, #c99700); color: #3a2c00; box-shadow: 0 -6px 30px rgba(255,215,0,.28); }
.podium__block--silver { height: 96px;  background: linear-gradient(180deg, #e8ecf7, #aab2c6); color: #2a2f3a; box-shadow: 0 -6px 26px rgba(192,200,220,.22); }
.podium__block--bronze { height: 72px;  background: linear-gradient(180deg, #e6a86b, #b06a2c); color: #3a2210; box-shadow: 0 -6px 26px rgba(205,127,50,.22); }
.podium__slot:nth-child(2) .podium__block { animation-delay: .06s; }
.podium__slot:nth-child(1) .podium__block { animation-delay: .22s; }
.podium__slot:nth-child(3) .podium__block { animation-delay: .4s; }
@keyframes podRise { from { transform: translateY(100%); opacity: 0; } }
.lb-rank-pill { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); font-weight: 800; font-size: .85rem; }

/* "Jouw plek"-callout + eigen-rij-highlight in het klassement */
.lb-me-callout { display: flex; gap: .8rem; align-items: center; max-width: 560px; margin: 1rem auto 0;
    padding: .8rem 1rem; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--text-dim); font-size: .95rem; }
.lb-me-callout strong { color: var(--text); }
.lb-me-callout__pos { flex: 0 0 auto; font-weight: 900; font-size: 1.3rem; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.lb-me-callout--muted { border-color: var(--line); background: var(--surface-2); }
.lb-me-callout--muted a { color: var(--accent-2); }
.lb--me td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lb--me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.podium__slot--me .podium__name { color: var(--accent-2); }
.podium__slot--me .avatar--pod { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Homepage-teasers ────────────────────────────────────────── */
.teaser { margin-top: 2rem; }
.teaser__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.teaser__head h2 { font-size: 1.35rem; margin: 0; }
.teaser__more { color: var(--accent-2); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.teaser__more:hover { color: var(--accent); }

.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.toplist__row { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toplist__row--podium { border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.toplist__rank { font-size: 1.15rem; font-weight: 800; min-width: 2ch; text-align: center; color: var(--accent-2); }
.toplist__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist__pts { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.toplist__pts small { font-weight: 600; color: var(--text-dim); }

.rewardteas__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; }
.rewardteas { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1rem .7rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rewardteas__icon { font-size: 2rem; line-height: 1; }
.rewardteas__name { font-weight: 700; font-size: .95rem; }
.rewardteas__cost { font-size: .82rem; font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; }

/* ── Spraakmuur (/spreekbuis) ────────────────────────────────── */
.vwall-hero { text-align: center; padding: 1.5rem 1rem .5rem; }
.vwall-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 .4rem; }
.vwall { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.vwall__card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.vwall__head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.vwall__who { font-weight: 700; }
.vwall__dur { font-size: .82rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.vwall__note { margin: 0; color: var(--text-dim); font-style: italic; }
.vwall__audio { width: 100%; height: 40px; }

/* ── Backup-codes (2FA) ──────────────────────────────────────── */
.backup-codes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.backup-codes code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .6rem; font-size: 1rem; letter-spacing: .05em; }

/* ── Mail-look designer (/admin/maildesign) ──────────────────── */
.md-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .md-wrap { grid-template-columns: 1fr; } }
.md-preview { position: sticky; top: 1rem; }
.md-preview__label { font-size: .85rem; color: var(--text-dim); margin: 0 0 .5rem; font-weight: 600; }
#mailPreview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field--color { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: .8rem; }
.field--color input[type="color"] { width: 56px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; flex: none; }

/* ── PWA app-shell (app.thabelg.club) — native gevoel ────────── */
body.is-app { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

/* Persistente app-speler-balk (blijft spelen door de navigatie heen). */
.appplayer { display: flex; align-items: center; gap: .8rem; padding: .6rem clamp(1rem, 4vw, 2rem); max-width: var(--maxw); margin: 0 auto; width: 100%; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 78%, transparent); }
body.is-app .appplayer { position: sticky; top: var(--topbar-h); z-index: 40; backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.appplayer__btn { width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; flex: none; display: grid; place-items: center; font-size: 1.05rem; color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent-3)); box-shadow: var(--glow); transition: transform .12s ease; }
.appplayer__btn:hover { transform: translateY(-1px); }
.appplayer__btn:active { transform: translateY(1px); }
.appplayer__btn--off { background: var(--surface-2); color: var(--text-mute); box-shadow: none; cursor: default; }
.appplayer__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.appplayer__name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appplayer__status { font-size: .82rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appplayer.is-live .appplayer__status { color: var(--accent); font-weight: 700; }
.appplayer__eq { display: none; gap: 3px; align-items: flex-end; height: 20px; flex: none; }
.appplayer.is-playing .appplayer__eq { display: inline-flex; }
.appplayer__eq i { width: 3px; height: 100%; background: var(--accent-2); border-radius: 2px; transform-origin: bottom; animation: appeq .9s ease-in-out infinite; }
.appplayer__eq i:nth-child(2) { animation-delay: .2s; }
.appplayer__eq i:nth-child(3) { animation-delay: .4s; }
@keyframes appeq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
/* Vaste, glas-geblurde header die tot achter de notch tekent (app12-model). */
body.is-app .topbar {
    position: sticky; top: 0; z-index: 60;
    padding-top: calc(1rem + env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px -14px rgba(0,0,0,.6);
}
.tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: .5rem 0 .45rem; color: var(--text-mute); font-size: .68rem; font-weight: 700;
    position: relative; transition: color .15s ease;
}
.tabbar a:hover { text-decoration: none; color: var(--text); }
.tabbar a.is-active { color: var(--accent-2); }
.tabbar a.is-active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent-2);
}
.tabbar__i { font-size: 1.3rem; line-height: 1; transition: transform .15s ease; }
.tabbar a.is-active .tabbar__i { transform: translateY(-1px) scale(1.08); }

/* ── Rad van Fortuin ─────────────────────────────────────────── */
.wheelwrap { position: relative; width: min(340px, 86vw); aspect-ratio: 1; margin: 1rem auto; }
.wheel { width: 100%; height: 100%; border-radius: 50%; position: relative; border: 8px solid var(--surface-2); box-shadow: var(--shadow), 0 0 0 4px var(--accent); transition: transform 4s cubic-bezier(.17,.67,.28,1); }
.wheel__lbl { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; }
.wheel__lbl span { margin-top: 14px; font-weight: 900; color: #0b0b0e; font-size: 1rem; text-shadow: 0 1px 0 rgba(255,255,255,.25); }
.wheel__hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 0 0 4px var(--accent-2); }
.wheel__pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3; width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 26px solid var(--accent-2); filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.wheelctl { text-align: center; }
.wheel__out { margin-top: .8rem; font-size: 1.1rem; min-height: 1.6em; }
.wheelcta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; text-decoration: none; color: var(--text); flex-wrap: wrap; }
.wheelcta:hover { text-decoration: none; border-color: var(--accent); }
.wheelcta > .btn { margin-left: auto; }

/* ── Dashboard "speel & verdien"-grid ────────────────────────────
   Compacte actie-tegels i.p.v. gestapelde volle-breedte balken. */
.dash-actions { margin-top: 1.6rem; }
.dash-actions__title { font-size: 1.15rem; margin: 0 0 .8rem; }
.actiongrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; }
.action-tile {
    display: flex; flex-direction: column; gap: .25rem;
    padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    color: var(--text); text-decoration: none; position: relative; overflow: hidden;
    transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
a.action-tile:hover { transform: translateY(-3px); text-decoration: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow-sm); }
.action-tile.is-done { opacity: .72; }
.action-tile__icon { font-size: 1.9rem; line-height: 1; }
.action-tile__title { font-weight: 800; font-size: 1.02rem; }
.action-tile__sub { color: var(--text-dim); font-size: .88rem; line-height: 1.4; flex: 1; }
.action-tile__act { margin-top: .7rem; }
.action-tile__act > form { margin: 0; }
.action-tile__done { color: var(--text-mute); font-weight: 700; font-size: .9rem; }
.btn--sm { padding: .45rem .9rem; font-size: .9rem; }

/* ── Live-console + poller ───────────────────────────────────── */
.live-zone:not(:empty) { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: .3rem clamp(1rem,4vw,2rem) 0; }
.live-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--accent), var(--accent-3)); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); margin: .4rem 0; font-weight: 600; box-shadow: var(--glow); animation: livein .3s ease; }
.live-pts { opacity: .9; font-weight: 800; }
.live-done { font-weight: 800; color: #fff; }
.live-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: .5rem; max-width: min(340px, 82vw); }
body.is-app .live-toasts { bottom: 84px; }
.live-toast { background: var(--surface-2); border: 1px solid var(--accent-2); border-left: 4px solid var(--accent-2); color: var(--text); padding: .7rem .9rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); animation: livein .3s ease; }
.live-toast.out { opacity: 0; transform: translateX(20px); transition: .4s; }
@keyframes livein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.trigrid { display: flex; flex-wrap: wrap; gap: .5rem; }
.live-admin { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; margin: .5rem 0; }
.live-admin__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.live-admin__type { display: inline-block; font-size: .78rem; color: var(--text-mute); margin-right: .4rem; }
.live-admin__claims { margin-top: .6rem; }
.claimlist { margin: 0; padding-left: 1.4rem; display: grid; gap: .35rem; }
.claimlist li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }

/* ── Spraakberichten ─────────────────────────────────────────── */
.voicecard { text-align: center; }
.vc-time { font-size: 2rem; font-weight: 900; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.vc-controls { display: flex; justify-content: center; gap: .6rem; }
.vc-note { width: 100%; padding: .6rem .8rem; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.voice-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.voice-row audio { max-width: 100%; }
.voice-admin { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; margin: .5rem 0; }
.voice-admin.is-new { border-color: var(--accent-2); }
.voice-admin__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }

/* ── Dubbel of Niks (gokspel) ────────────────────────────────── */
.gamblecard { text-align: center; }
.coin { width: 120px; height: 120px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.4rem; color: #0b0b0e; background: radial-gradient(circle at 35% 30%, #ffe98a, var(--accent-2)); box-shadow: 0 0 0 5px var(--surface-2), var(--shadow); }
.coin.is-munt { background: radial-gradient(circle at 35% 30%, #ff8a8a, var(--accent)); color: #fff; }
.coin.spin { animation: coinspin .9s linear; }
@keyframes coinspin { to { transform: rotateY(1440deg); } }
.gamble-bal { margin: .4rem 0 .8rem; color: var(--text-dim); }
.gamble-choices { display: flex; gap: .6rem; justify-content: center; margin-top: .8rem; }
.gamble-msg { margin-top: .9rem; font-size: 1.1rem; min-height: 1.5em; }
.gamble-msg.is-win { color: var(--accent-2); font-weight: 800; }
.gamble-msg.is-lose { color: var(--accent); font-weight: 700; }

/* ── Muziekquiz ──────────────────────────────────────────────── */
.quizcard h2 { font-size: 1.25rem; }
.quiz-opts { display: grid; gap: .5rem; }
.quiz-opt { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.quiz-opt:hover { border-color: var(--accent-2); }
.quiz-opt input { accent-color: var(--accent); }

/* ── LIVE-indicator ──────────────────────────────────────────── */
.topbar__left { display: flex; align-items: center; gap: .7rem; }
.live-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .03em; animation: livepulse 1.6s ease-in-out infinite; }
.live-pill:hover { text-decoration: none; }
.live-hero-banner { display: block; margin: 0 auto 1.2rem; max-width: 540px; padding: .6rem 1.1rem; border-radius: 999px; background: linear-gradient(120deg, var(--accent), var(--accent-3)); color: #fff; font-weight: 600; text-align: center; animation: livepulse 1.6s ease-in-out infinite; }
.live-hero-banner:hover { text-decoration: none; }
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,46,62,.5); } 50% { box-shadow: 0 0 0 9px rgba(255,46,62,0); } }

/* ── Badges ──────────────────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.badge { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 94px; padding: .7rem .3rem; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.badge__icon { font-size: 1.8rem; line-height: 1; }
.badge__title { font-size: .72rem; color: var(--text-dim); font-weight: 600; line-height: 1.2; }
.badge--locked { opacity: .45; filter: grayscale(1); }
.lb-badges { font-size: .8rem; color: var(--accent-2); font-weight: 700; margin-left: .3rem; white-space: nowrap; }

/* ── Cookiemelding ───────────────────────────────────────────── */
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 640px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; box-shadow: var(--shadow); font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Comeback-afteller ────────────────────────────────────────── */
.comeback { margin: 1.6rem auto .4rem; max-width: 560px; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.comeback__title { font-size: clamp(1.2rem, 4vw, 1.75rem); }
.comeback__text { color: var(--text-dim); margin: .35rem 0 1rem; }
.comeback__clock { display: flex; justify-content: center; gap: .55rem; flex-wrap: wrap; }
.cb-unit { min-width: 66px; padding: .55rem .4rem; border-radius: var(--radius-sm); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent); border: 1px solid var(--line); }
.cb-num { display: block; font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-2); }
.cb-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); }
.cb-live { font-size: 1.35rem; font-weight: 800; color: var(--accent); }

.streak-chip { display: inline-block; margin-top: .5rem; padding: .35rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: .9rem; }

.rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.reward { text-align: center; display: flex; flex-direction: column; gap: .35rem; position: relative; }
.reward--afford { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 30%, transparent), var(--shadow); }
.reward__flag { position: absolute; top: .7rem; right: .7rem; font-size: .72rem; font-weight: 800; letter-spacing: .03em;
    padding: .2rem .5rem; border-radius: 999px; color: var(--accent-ink);
    background: linear-gradient(90deg, var(--accent-2), #ffe27a); }
.reward__prog { margin-top: .2rem; }
.reward__progbar { height: 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.reward__progbar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.reward__progtxt { font-size: .78rem; color: var(--text-mute); margin-top: .25rem; }
.reward__icon { font-size: 2.4rem; line-height: 1; }
.reward__name { font-size: 1.05rem; margin: 0; }
.reward__desc { font-size: .85rem; }
.reward__cost { font-weight: 700; color: var(--accent-2); }
.reward__stock { font-size: .8rem; }
.reward__cta { margin-top: auto; padding-top: .6rem; }

.rankbar { margin-top: 1rem; }
.rankbar__labels { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; margin-bottom: .5rem; }
.rankbar__track { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.rankbar__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .5s ease; }
.lb-rank { font-size: 1rem; }

.req-actions { display: flex; gap: .25rem; flex-wrap: wrap; }
.req-status { font-size: .82rem; white-space: nowrap; }
.req-status--played { color: var(--accent-2); }
.req-status--skipped { color: var(--text-mute); }

.botkey { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.botkey__val { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg-2); padding: .45rem .7rem; border-radius: var(--radius-sm); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }

/* ── Live-radioplayer ─────────────────────────────────────────── */
/* Boxy-player-wrapper: centreert de vendored player in de hero. */
.boxy-wrap { max-width: 440px; margin: 1.5rem auto .3rem; }
.player { display: flex; align-items: center; gap: 1rem; max-width: 460px; margin: 1.5rem auto .3rem; padding: .6rem .8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.player__btn { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-3)); box-shadow: 0 6px 18px -6px var(--accent); transition: transform .12s ease; }
.player__icon { font-size: 1.25rem; line-height: 1; }
.player__btn:hover { transform: scale(1.06); }
.player__btn:active { transform: scale(.95); }
.player.is-playing .player__btn { animation: playerPulse 2.4s infinite; }
@keyframes playerPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .player.is-playing .player__btn { animation: none; } }
.player__meta { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: .1rem; }
.player__name { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__track { font-size: .82rem; color: var(--accent-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.player__status { font-size: .82rem; color: var(--text-dim); }
.player__volwrap { flex: none; display: flex; align-items: center; }
.player__vol { width: 86px; accent-color: var(--accent-2); cursor: pointer; }
@media (max-width: 520px) { .player { gap: .7rem; } .player__volwrap { display: none; } }

.cookie-note[hidden] { display: none; }  /* anders wint display:flex van het hidden-attribuut → Oké-knop verbergt niets */

.ios-install { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; padding: .55rem 1rem; background: color-mix(in srgb, var(--accent-2) 16%, var(--surface-2)); border-bottom: 1px solid var(--line); font-size: .88rem; text-align: center; }
.ios-install[hidden] { display: none; }

.sw-update { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 90; display: flex; align-items: center; gap: .8rem; background: var(--surface-2); border: 1px solid var(--accent); border-radius: 999px; padding: .45rem .5rem .45rem 1.1rem; box-shadow: var(--shadow); font-size: .9rem; max-width: calc(100% - 24px); }
.sw-update[hidden] { display: none; }
body.is-app .sw-update { bottom: 84px; }
.cookie-note span { flex: 1 1 260px; }
.cookie-note a { color: var(--accent-2); }
body.is-app .cookie-note { bottom: 76px; }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Kaart-hover-lift + mobiele collapse van 2-koloms rijen (batch-1 polish). */
.card--pad { transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
