/* ===================================================================
   UEFA Euro 2024 Pool — Modern stylesheet
   =================================================================== */

/* ── Custom fonts ────────────────────────────────────────────────── */
@font-face {
    font-family: 'UEFA Euro';
    src: url('UEFAEuro-Bold.eot');
    src: local('UEFA Euro Bold'),
         url('UEFAEuro-Bold.eot?#iefix') format('embedded-opentype'),
         url('UEFAEuro-Bold.ttf')        format('truetype');
    font-weight: bold; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'UEFA Euro';
    src: url('UEFAEuro-Medium.eot');
    src: local('UEFA Euro Medium'),
         url('UEFAEuro-Medium.eot?#iefix') format('embedded-opentype'),
         url('UEFAEuro-Medium.ttf')        format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'UEFA Euro Book';
    src: url('UEFAEuro-Book.eot');
    src: local('UEFA Euro Book'),
         url('UEFAEuro-Book.eot?#iefix') format('embedded-opentype'),
         url('UEFAEuro-Book.ttf')        format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'UEFA Euro Extrabold Narrow';
    src: url('UEFAEuro-ExtraBoldNarrow.eot');
    src: local('UEFA Euro Extrabold Narrow'),
         url('UEFAEuro-ExtraBoldNarrow.eot?#iefix') format('embedded-opentype'),
         url('UEFAEuro-ExtraBoldNarrow.ttf')        format('truetype');
    font-weight: bold; font-style: normal; font-display: swap;
}

/* ── Custom properties ───────────────────────────────────────────── */
:root {
    --c-bg:           #150a05;
    --c-bg2:          #231205;
    --c-primary:      #0e9fc2;
    --c-primary-dk:   #0a7a96;
    --c-accent:       #00d4f0;
    --c-orange:       #f59e0b;
    --c-surface:      rgba(21, 10, 5, 0.80);
    --c-surface-hov:  rgba(21, 10, 5, 0.92);
    --c-border:       rgba(255,255,255,0.14);
    --c-text:         #dff0f6;
    --c-text-dim:     rgba(223,240,246,0.60);
    --c-error:        #ff6060;
    --c-gold:         #f0c040;
    --c-win:          #4ade80;
    --c-draw:         #888888;
    --c-lose:         #f87171;
    --c-supermax:     #f0a830;
    --c-max:          #9333ea;
    --c-chart-purple: #a78bfa;
    --c-chart-green:  #34d399;
    --radius-sm:      6px;
    --radius:         12px;
    --radius-lg:      18px;
    --shadow:         0 4px 28px rgba(0,0,0,0.55);
    --blur:           blur(16px);
    --transition:     140ms ease;
    --nav-h:          62px;
    --col-l:          220px;
    --col-r:          300px;
    --max-w:          1280px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ────────────────────────────────────────────────────────── */
html, body {
    min-height: 100vh;
    font-family: 'UEFA Euro Book', system-ui, sans-serif;
    font-size: 13px;
    color: var(--c-text);
    /* 40 % dark overlay tones the bright orange down so dark-glass cards pop */
    background:
        linear-gradient(rgba(4,12,28,0.40), rgba(4,12,28,0.40)),
        url('../../img/ek2024/background2.jpg') center / cover fixed,
        var(--c-bg);
}

a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }
h2, h3, h4, h5 { font-family: 'UEFA Euro', system-ui, sans-serif; font-weight: bold; line-height: 1.2; }
h2 { font-size: 18px; color: var(--c-accent); margin-bottom: 14px; }
h3 { font-size: 14px; color: var(--c-text); margin-bottom: 10px; }
h4 { font-size: 12px; color: var(--c-text-dim); }

/* ── App shell ───────────────────────────────────────────────────── */
.app-shell {
    display: grid;
    grid-template-rows: auto var(--nav-h) 1fr auto;
    min-height: 100vh;
}
/* Pin each shell section to its row explicitly so hiding one (e.g. .poolpageheader
   on mobile) doesn't shift the others and collapse main-wrap into the nav slot. */
.app-shell > .poolpageheader { grid-row: 1; }
.app-shell > .site-nav    { grid-row: 2; }
.app-shell > .main-wrap   { grid-row: 3; }
.app-shell > .site-footer { grid-row: 4; }

/* ── Site header (wk2026/header.svg banner) ──────────────────────── */
.poolpageheader {
    width: 100%;
    background: #020911;   /* matches SVG dark corner */
    line-height: 0;
    overflow: hidden;
}
.poolpageheader img {
    display: block;
    width: 100%;
    max-width: var(--max-w);
    height: auto;
    margin: 0 auto;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--nav-h);
    background: rgba(5,15,30,0.96);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    /* orange line ties nav visually to the header banner */
    border-bottom: 2px solid var(--c-orange);
    box-shadow: 0 2px 16px rgba(0,0,0,0.50);
}

.nav-inner {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-brand {
    font-family: 'UEFA Euro Extrabold Narrow', system-ui, sans-serif;
    font-size: 17px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin-right: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 10px 4px 0;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.nav-brand:hover { color: var(--c-orange); }
.nav-brand-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.40));
    transition: opacity 0.15s;
}
.nav-brand:hover .nav-brand-img { opacity: 0.85; }

/* ── Top-level list ───────────────────────────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--c-text-dim);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li:hover > a {
    background: rgba(232,116,10,0.15);
    color: #fff;
}
/* Active/current page indicator */
.nav-links > li:hover > a,
.nav-links > li.nav-active > a {
    border-bottom: 2px solid var(--c-orange);
    margin-bottom: -2px;  /* compensate so height doesn't shift */
}
.nav-links > li.nav-active > a {
    background: rgba(232,116,10,0.18);
    color: #fff;
}

/* ── Dropdown (shared base) ────────────────────────────────────── */
.nav-links .dropdown,
.nav-gear-dropdown {
    position: absolute;
    top: 100%;
    min-width: 200px;
    background: rgba(6, 16, 34, 0.98);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255,255,255,0.09);
    border-top: 2px solid var(--c-primary);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 6px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.60);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
}
.nav-links .dropdown { left: 0; }
.nav-gear-dropdown  { right: 0; }

.nav-links > li:hover .dropdown,
.nav-links > li.nav-open .dropdown,
.nav-gear-wrap:hover .nav-gear-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav-links .dropdown a,
.nav-gear-dropdown a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--c-text-dim);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.nav-links .dropdown a:hover,
.nav-gear-dropdown a:hover {
    background: rgba(14,159,194,0.12);
    color: var(--c-accent);
}

/* ── Right-hand nav area ───────────────────────────────────────── */
.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Login form inline in nav */
.nav-login-form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-login-form input[type="text"],
.nav-login-form input[type="password"] {
    width: 136px;
    padding: 7px 11px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.nav-login-form input[type="text"]:focus,
.nav-login-form input[type="password"]:focus {
    border-color: var(--c-primary);
    background: rgba(255,255,255,0.08);
}

.nav-login-form input::placeholder { color: var(--c-text-dim); }

.nav-remember {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--c-text-dim);
    white-space: nowrap;
    cursor: pointer;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'UEFA Euro', system-ui, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--c-accent);
    color: var(--c-bg);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--c-text-dim);
    border: 1px solid var(--c-border);
}
.btn-ghost:hover {
    background: var(--c-surface-hov);
    color: #fff;
}

/* Nav username + logout */
.nav-username {
    font-family: 'UEFA Euro', system-ui, sans-serif;
    font-weight: bold;
    font-size: 13px;
    color: var(--c-accent);
    white-space: nowrap;
}

.nav-logout a {
    padding: 5px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-dim);
    font-size: 11px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.nav-logout a:hover {
    background: rgba(255,60,60,0.12);
    border-color: rgba(255,60,60,0.4);
    color: var(--c-error);
}

/* Register pill */
.nav-register {
    padding: 6px 13px;
    border: 1px solid var(--c-accent);
    border-radius: var(--radius-sm);
    color: var(--c-accent) !important;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background var(--transition), color var(--transition) !important;
}
.nav-register:hover {
    background: var(--c-accent);
    color: var(--c-bg) !important;
}

/* ================================================================
   MAIN 3-COLUMN LAYOUT
   ================================================================ */
.main-wrap {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: var(--col-l) 1fr var(--col-r);
    gap: 20px;
    align-items: start;
}
/* Admin pages: no right sidebar column */
.main-wrap.no-right {
    grid-template-columns: var(--col-l) 1fr;
}
/* Guest view: swap sidebars — right sidebar shown left, left sidebar shown right */
.main-wrap.guest-swap {
    grid-template-columns: var(--col-r) 1fr var(--col-l);
}
.main-wrap.guest-swap .sidebar-right { grid-column: 1; }
.main-wrap.guest-swap .sidebar-left  { grid-column: 3; }
.main-wrap.guest-swap .content-area  { grid-column: 2; }
/* Stand expanded: full-width, no sidebars */
.main-wrap.no-sidebars {
    grid-template-columns: 1fr;
    max-width: none;
}
/* Allow horizontal scrolling inside page-content when no sidebars (e.g. bracket) */
.main-wrap.no-sidebars .page-content {
    overflow-x: auto;
    overflow-y: visible;
}

.sidebar-left,
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.card-header {
    padding: 4px 16px;
    background: rgba(232,116,10,0.14);
    border-bottom: 1px solid rgba(232,116,10,0.25);
    font-family: 'UEFA Euro Extrabold Narrow', system-ui, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ffb870;
}

.card-body {
    padding: 12px 14px;
}
/* Card-body containing a stand table: no padding, table fills edge-to-edge */
.card-body:has(> .topusers-wrap),
.card-body:has(> table.liststand) {
    padding: 0;
}
.card--compact .card-header {
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 1px;
}
.card--compact .card-body {
    padding: 8px 12px;
}

/* Back navigation button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--c-text, #dff0f6);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition, 140ms ease);
    cursor: pointer;
}
.btn-back:hover {
    background: rgba(14,159,194,0.15);
    color: var(--c-text, #dff0f6);
}
.btn-back--sm {
    font-size: 11px;
    padding: 3px 9px;
    white-space: nowrap;
}

/* ================================================================
   PROGRAMME (results + next match)
   ================================================================ */
.programme {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow);
}

.programme > div {
    display: flex;
    flex-direction: column;
}

/* single-child — no divider needed */

/* Cards bleed edge-to-edge inside the programme wrapper */
.programme .card-body { padding: 0; }

/* "All results" footer link */
.programme .more-link {
    display: block;
    padding: 9px 14px;
    font-size: 11px;
    text-align: center;
    color: var(--c-accent);
    border-top: 1px solid var(--c-border);
    transition: color var(--transition), background var(--transition);
}
.programme .more-link:hover { color: #fff; background: rgba(14,159,194,0.08); }

/* ── Laatste uitslagen — animated match cards ─────────────────────────── */
.lw-cards { display: flex; flex-direction: column; }

.lw-card {
    position: relative;
    padding: 11px 14px 8px;
    border-bottom: 1px solid var(--c-border);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    animation: lw-fadein 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lw-card:last-child { border-bottom: none; }

/* Subtle result tint */
.lw-card--hw::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(74,222,128,0.13) 0%, transparent 55%);
}
.lw-card--aw::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent 45%, rgba(248,113,113,0.13) 100%);
}
.lw-card--dr::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, rgba(136,136,136,0.09) 0%, transparent 70%);
}

/* Three-column grid: home | score | away */
.lw-match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* Team sides */
.lw-side { display: flex; align-items: center; gap: 8px; }
.lw-side-home { justify-content: flex-end; }
.lw-side-away { justify-content: flex-start; }

.lw-flag {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.50);
    flex-shrink: 0;
    animation: flag-spin 0.8s ease-out calc(var(--lw-delay, 0ms) + 300ms) 1 both;
}

.lw-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.2;
}

/* Score box */
.lw-scorebox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 64px;
}

.lw-sc {
    font-size: 26px;
    font-weight: 800;
    color: rgba(223,240,246,0.45);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}
.lw-sc-win { color: var(--c-win); text-shadow: 0 0 12px rgba(74,222,128,0.45); }

.lw-sc-sep {
    font-size: 14px;
    font-weight: 300;
    color: var(--c-text-dim);
    opacity: 0.4;
    margin: 0 1px;
}

/* ── Clickable table row button (voorspellen_all, bonus) ── */
.vp-click-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 7px;
    border: 1px solid rgba(14,159,194,0.30);
    background: rgba(14,159,194,0.10);
    color: var(--c-accent, #0e9fc2);
    font-size: 44px;
    line-height: 1;
    font-weight: 300;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.vp-click-btn:hover {
    background: rgba(14,159,194,0.22);
    border-color: rgba(14,159,194,0.60);
}
/* Team name + flag link */
.mc-team-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.mc-team-link:hover .mc-name {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.vp-match-row td { transition: background 0.12s; }

/* W/G/V prediction bar on laatste uitslagen cards */
.lw-wgv-bar {
    display: flex;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin: 5px 0 3px;
    gap: 1px;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.lw-wgv-bar.is-loaded { clip-path: inset(0 0% 0 0); }
.lw-wgv-w { background: var(--c-win);  min-width:0; }
.lw-wgv-g { background: var(--c-draw); min-width:0; }
.lw-wgv-v { background: var(--c-lose); min-width:0; }
.lw-wgv-w span, .lw-wgv-g span, .lw-wgv-v span { display:none; }

/* Goal-share bar */
.lw-bar {
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.07);
    margin: 8px 0 5px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.lw-bar-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.lw-card--hw .lw-bar-fill { background: linear-gradient(90deg, var(--c-win), rgba(74,222,128,0.65)); }
.lw-card--aw .lw-bar-fill { background: linear-gradient(90deg, var(--c-lose), rgba(248,113,113,0.65)); }
.lw-card--dr .lw-bar-fill { background: linear-gradient(90deg, var(--c-draw), rgba(136,136,136,0.55)); }

/* Meta row: venue · date */
.lw-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    color: var(--c-text-dim);
    opacity: 0.70;
    position: relative;
    z-index: 1;
}
.lw-meta-sep { opacity: 0.35; }

/* Staggered entry animation */
@keyframes lw-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Next match widget */
.next-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0 6px;
}

.next-match-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

/* reset margin from .page-content p — this p is outside that scope anyway */
.next-match-team p {
    font-weight: bold;
    font-size: 13px;
    color: var(--c-text);
    margin: 0;
}

.next-match-team img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.40);
}

.next-match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.next-match-center > span:first-child {
    font-size: 22px;
    font-weight: bold;
    color: var(--c-text-dim);
    line-height: 1;
}

.pct {
    font-size: 10px;
    color: var(--c-text-dim);
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    padding: 2px 5px;
    white-space: nowrap;
}
.pct-none { color: var(--c-text-dim); opacity: 0.45; }
.pct-no-pred {
    text-align: center;
    font-size: 11px;
    color: var(--c-text-dim);
    opacity: 0.6;
    margin: 6px 0 0;
}

.datum-badge {
    font-size: 11px;
    color: var(--c-accent);
    text-align: center;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* ================================================================
   CONTENT AREA
   ================================================================ */
.content-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Page content card ────────────────────────────────────────── */
/* Wraps every included page so content always sits on a readable
   dark-glass surface, regardless of what the sub-page outputs.   */
.page-content {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 26px 30px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--c-text);
    line-height: 1.65;
    /* clip legacy overflow (old float layouts) */
    overflow: hidden;
}

/* News page: drop the outer panel so each entry sits as its own card */
.page-content--bare {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;  /* contain entries — prevents bleed into sidebar rows */
}
.page-content--bare .stats-header {
    margin: 0 0 14px;
    border-radius: var(--radius);
}
.page-content--bare #news-entries {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.page-content--bare #news-entries article.gb-entry { margin-bottom: 0; }

/* Hide the auto-generated "Nieuwsberichten" header on the index news feed */
.page-content--bare > .stats-header { display: none; }

/* ── News entry cards — mobile (≤ 680px) ───────────────────────── */
@media (max-width: 680px) {
    /* Entries: max-width so they don't span the full viewport on wider phones */
    .page-content--bare { max-width: 100%; }
    .page-content--bare #news-entries { gap: 10px; }
    /* Pull news cards edge-to-edge — compensate for main-wrap padding */
    .page-content--bare article.gb-entry {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 10px;
        border-left: none;
        border-right: none;
    }

    article.gb-entry {
        /* Stop the native orange/blue tap-highlight when user scrolls or taps */
        -webkit-tap-highlight-color: transparent;
    }
    /* Card header: smaller title, timestamp on own line */
    .page-content--bare .gb-card-header {
        padding: 8px 14px 10px;
        flex-wrap: wrap;
        gap: 3px;
    }
    .page-content--bare .gb-card-title { font-size: 11px; letter-spacing: 0.6px; }
    .page-content--bare .gb-card-time {
        position: static;
        font-size: 10px;
        opacity: 0.65;
        flex-basis: 100%;
    }
    /* Body: reduce side padding for more reading room */
    .page-content--bare .gb-entry-main .gb-body {
        padding: 10px 14px 0;
        font-size: 13px;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    /* Footer: stack meta (full row) then buttons below */
    .page-content--bare .gb-entry-main .gb-entry-footer {
        padding: 8px 14px 12px !important;
        flex-wrap: wrap;
        gap: 6px 10px;
    }
    .page-content--bare .gb-entry-footer .gb-entry-meta { flex: 1 1 100%; min-width: 0; }
    .page-content--bare .gb-entry-footer .news-react-btn,
    .page-content--bare .gb-entry-footer .news-reacties-btn,
    .page-content--bare .gb-entry-footer .gb-like-btn { font-size: 12px; }
    /* Admin edit/delete icons: hide on mobile (still accessible on desktop) */
    .page-content--bare .gb-actions { display: none; }

    /* Sidebar-left on mobile: must not overflow content-area visually.
       Ensure the carousel is strictly contained. */
    .sidebar-left { overflow: hidden; }
}

/* Contain admin-authored news body HTML so nothing can push the viewport wider */
.page-content--bare .gb-entry,
.page-content--bare .gb-body { min-width: 0; }
.page-content--bare .gb-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.page-content--bare .gb-body img,
.page-content--bare .gb-body video,
.page-content--bare .gb-body iframe,
.page-content--bare .gb-body embed,
.page-content--bare .gb-body object {
    max-width: 100%;
    height: auto;
    display: block;
}
.page-content--bare .gb-body table { max-width: 100%; display: block; overflow-x: auto; }
.page-content--bare .gb-body pre,
.page-content--bare .gb-body code {
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
}

/* Viewport lock: prevent any descendant from forcing horizontal body scroll */
html, body { overflow-x: hidden; }
.app-shell, .content-area { min-width: 0; max-width: 100%; }
.main-wrap { min-width: 0; }   /* max-width comes from --max-w in the .main-wrap rule */

/* Join/register call-to-action (shown on news page for logged-out guests) */
.join-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14,159,194,0.22), rgba(14,159,194,0.06));
    border: 1px solid rgba(14,159,194,0.40);
    text-decoration: none;
    color: var(--c-text);
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    transition: border-color .18s, background .18s, transform .12s;
}
.join-cta:hover {
    border-color: rgba(14,159,194,0.70);
    background: linear-gradient(135deg, rgba(14,159,194,0.30), rgba(14,159,194,0.10));
    transform: translateY(-1px);
}
.join-cta-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}
.join-cta-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
}
.join-cta-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--c-text);
}
.join-cta-sub {
    font-size: 12px;
    color: var(--c-text-dim);
}
.join-cta-arrow {
    font-size: 22px;
    color: var(--c-accent);
    flex-shrink: 0;
}
@media (max-width: 680px) {
    .join-cta { padding: 14px 14px; gap: 12px; }
    .join-cta-icon { font-size: 26px; }
    .join-cta-title { font-size: 15px; }
    .join-cta-sub { font-size: 11px; }
    .join-cta-arrow { font-size: 18px; }
}

/* Sub-pages that already wrap in #content — neutralise the double layer */
.page-content #content {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ── Prose elements (sub-page output) ────────────────────────── */
.page-content p {
    margin-bottom: 14px;
    color: var(--c-text);
    line-height: 1.65;
}

.page-content p:last-child { margin-bottom: 0; }

.page-content strong,
.page-content b { color: #fff; }

.page-content h2 { margin-top: 6px; margin-bottom: 18px; }
.page-content h3 { margin-top: 22px; margin-bottom: 10px; }
.page-content h4 { margin-top: 16px; margin-bottom: 8px; }

.page-content hr {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: 18px 0;
}

/* ── Generic tables from sub-pages (no class) ────────────────── */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 14px;
}

.page-content table td,
.page-content table th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: top;
    color: var(--c-text);
}

.page-content table th {
    background: rgba(232,116,10,0.10);
    color: #ffb870;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.page-content table tr:last-child > td { border-bottom: none; }
.page-content table tr:hover > td { background: var(--c-surface-hov); }

/* Legacy td classes from news() and other includes */
td.jwit { color: var(--c-text); line-height: 1.65; }
td.jwit p, td.jwit br { line-height: 1.65; }

/* ── Forms in sub-pages ──────────────────────────────────────── */
.page-content input[type="text"],
.page-content input[type="email"],
.page-content input[type="password"],
.page-content select,
.page-content textarea {
    background: rgba(7,20,38,0.60);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--c-text);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.page-content input[type="text"]:focus,
.page-content input[type="email"]:focus,
.page-content input[type="password"]:focus,
.page-content select:focus,
.page-content textarea:focus {
    border-color: var(--c-primary);
    background: rgba(7,20,38,0.80);
}

.page-content input[type="submit"],
.page-content button[type="submit"],
.page-content input.button,
.page-content button.button {
    background: var(--c-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 22px;
    color: #fff;
    font-family: 'UEFA Euro', system-ui, sans-serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.page-content input[type="submit"]:hover,
.page-content button[type="submit"]:hover,
.page-content input.button:hover,
.page-content button.button:hover {
    background: var(--c-accent);
    color: var(--c-bg);
    transform: translateY(-1px);
}

/* ================================================================
   TABLES (shared across sub-pages)
   ================================================================ */
table.list {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

table.list tr.top th,
table.list tr.top td {
    background: rgba(14,159,194,0.18);
    color: var(--c-accent);
    padding: 8px 10px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

table.list tr.bottom th,
table.list tr.bottom td {
    background: rgba(7,20,38,0.30);
    padding: 7px 10px;
    font-size: 11px;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
}

table.list td, table.list th {
    padding: 7px 10px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
    color: var(--c-text);
}

table.list tr:hover td { background: var(--c-surface-hov); }
table.list tr:last-child td { border-bottom: none; }

td.lwit  { color: var(--c-text); }
td.th1   { color: var(--c-text-dim); font-size: 11px; }
.lwit    { color: var(--c-text); }

/* ================================================================
   FORMS (sub-pages) — legacy class selectors
   ================================================================ */
input.select, select.select {
    background: rgba(7,20,38,0.60);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--c-text);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    width: 100%;
    transition: border-color var(--transition), background var(--transition);
}

input.select:focus, select.select:focus {
    border-color: var(--c-primary);
    background: rgba(7,20,38,0.80);
}

input.select::placeholder { color: var(--c-text-dim); }

/* ================================================================
   SIDEBAR COMPONENTS
   ================================================================ */

/* Online users list */
#leftmenu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#leftmenu li a {
    display: block;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--c-text);
    transition: background var(--transition), color var(--transition);
}

#leftmenu li a:hover {
    background: var(--c-surface-hov);
    color: var(--c-text);
}

/* Right sidebar utility */
table.rt { width: 100%; border-collapse: collapse; }
table.rt td.wd { text-align: right; padding: 8px 0 0; font-size: 11px; color: var(--c-text-dim); }

/* Kop/inhoud used by legacy includes */
.kop {
    padding: 12px 16px;
    background: rgba(232,116,10,0.14);
    border: 1px solid rgba(232,116,10,0.25);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-family: 'UEFA Euro Extrabold Narrow', system-ui, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ffb870;
    margin-top: 10px;
}

.kop h3 { font: inherit; color: inherit; }

.inhoud {
    border: 1px solid var(--c-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 8px;
    background: var(--c-surface);
}

/* ================================================================
   AD BANNER
   ================================================================ */
.ad { text-align: center; }
.ad img { border-radius: var(--radius-sm); display: inline-block; }

/* ================================================================
   ERROR BOX
   ================================================================ */
.error-box {
    padding: 22px;
    background: rgba(255,60,60,0.07);
    border: 1px solid rgba(255,60,60,0.25);
    border-radius: var(--radius);
    color: #ff8080;
}

.error-box h2 { color: var(--c-error); margin-bottom: 8px; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    border-top: 1px solid var(--c-border);
    background: rgba(7,20,38,0.75);
    padding: 16px 20px;
    text-align: center;
    font-size: 11px;
    color: var(--c-text-dim);
}

.site-footer a { color: var(--c-text-dim); }
.site-footer a:hover { color: var(--c-text); }

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ================================================================
   TOP-USERS RANKING TABLES  (topusers.php)
   ================================================================ */

/* Section heading + points badge */
h2.topusers-heading {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-text);
}
h2.topusers-heading:first-child { margin-top: 0; }
.vp-section > h2.topusers-heading:first-child { margin-top: 20px; }

.pts-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(232,116,10,0.18);
    border: 1px solid rgba(232,116,10,0.35);
    color: #ffb870;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ── Stats page header ───────────────────────────────────── */
.stats-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: -26px -30px 24px -30px;
    padding: 12px 30px;
    background: rgba(232,116,10,0.14);
    border-bottom: 1px solid rgba(232,116,10,0.25);
    border-radius: var(--radius) var(--radius) 0 0;
}
.stats-title {
    font-family: 'UEFA Euro Extrabold Narrow', system-ui, sans-serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ffb870;
    margin: 0;
    line-height: 1.2;
}
.stats-subtitle {
    font-family: 'UEFA Euro Extrabold Narrow', system-ui, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--c-text-dim);
}

/* ── Voorspellen-all → stand_detail card ────────────────── */
.vp-sd-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 2 1 240px;
    max-width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(232,116,10,0.14), rgba(180,60,0,0.08));
    border: 1px solid rgba(232,116,10,0.38);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    position: relative;
    overflow: hidden;
}
.vp-sd-card:hover {
    background: linear-gradient(135deg, rgba(232,116,10,0.24), rgba(180,60,0,0.14));
    border-color: rgba(232,116,10,0.65);
    transform: translateY(-1px);
}
.vp-sd-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.vp-sd-card-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--c-text-dim);
}
.vp-sd-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffb870;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vp-sd-card-rank {
    font-size: 12px;
    color: var(--c-text-dim);
}
.vp-sd-card-cta {
    font-size: 12px;
    color: #ffb870;
    opacity: 0.75;
    margin-top: 2px;
}
.vp-sd-card:hover .vp-sd-card-cta { opacity: 1; }
.vp-sd-card-chart {
    flex-shrink: 0;
    opacity: 0.85;
    pointer-events: none;
}

/* ── Stand detail — charts ───────────────────────────────── */
.chart-label {
    font-size: 11px;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}


/* ── Stand detail — ranking position chart ───────────────── */
.sd-pos-chart-wrap {
    margin-bottom: 24px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px 18px 12px;
}
.sd-pos-canvas {
    width: 100% !important;
    height: 520px !important;
}
/* ── Stand detail — custom legend ───────────────────────── */
.sd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 14px 0 4px;
}
.sd-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    transition: background 0.12s, opacity 0.12s;
}
.sd-legend-item:hover { background: rgba(255,255,255,0.10); }
.sd-legend-hidden { opacity: 0.35; }
.sd-legend-line {
    display: inline-block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}
.sd-legend-name {
    font-size: 13px;
    font-weight: 600;
    color: #eee;
    white-space: nowrap;
}

.sd-compare-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--c-border);
}
.sd-compare-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.sd-compare-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.sd-compare-hint {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.6;
}
.sd-compare-clear {
    font-size: 11px;
    color: var(--c-text-dim);
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.7;
    white-space: nowrap;
}
.sd-compare-clear:hover { opacity: 1; }
.sd-compare-row {
    display: flex;
    gap: 12px;
}
.sd-compare-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.sd-compare-col:first-child { flex: 0 0 180px; }
.sd-compare-colhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.sd-compare-select {
    width: 100%;
    height: 160px;
    background: var(--c-bg);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 4px 2px;
    font-size: 13px;
    line-height: 1.8;
}
.sd-compare-col:first-child .sd-compare-select { height: 160px; }
.sd-compare-select option { padding: 3px 10px; }
.sd-compare-btn {
    align-self: flex-start;
    padding: 8px 22px;
    font-size: 13px;
}

/* ── Poll card widget ────────────────────────────────────── */
.poll-wrap { font-size: 13px; }
.poll-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.4;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.poll-form { display: flex; flex-direction: column; gap: 5px; }
.poll-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 14px;
    color: var(--c-text);
}
.poll-option-label:hover {
    background: rgba(14,159,194,0.10);
    border-color: rgba(14,159,194,0.40);
}
.poll-option-label input[type="radio"] { accent-color: var(--c-primary); flex-shrink: 0; }
.poll-vote-btn {
    margin-top: 4px;
    padding: 7px 0;
    width: 100%;
    border-radius: 7px;
    border: none;
    background: var(--c-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.poll-vote-btn:hover { opacity: 0.85; }
.poll-results { display: flex; flex-direction: column; gap: 8px; }
.poll-result-row { padding: 6px 0; }
.poll-result-row.poll-result-winner .poll-result-label { color: var(--c-accent); }
.poll-result-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.poll-result-label {
    font-size: 12px;
    color: var(--c-text);
    font-weight: 600;
}
.poll-jij {
    font-size: 10px;
    font-weight: 700;
    color: var(--c-accent);
    opacity: .85;
    margin-left: 3px;
}
.poll-result-pct {
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}
.poll-result-votes {
    font-size: 10px;
    color: var(--c-text-dim);
    margin-top: 3px;
}
.poll-total {
    font-size: 11px;
    color: var(--c-text-dim);
    margin: 8px 0 0;
    text-align: right;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Progress / poll bar ─────────────────────────────────── */
table.liststand .col-bar { min-width: 140px; }
.poll-bar-wrap { display: flex; align-items: center; gap: 8px; }
.poll-bar {
    flex: 1;
    height: 7px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}
.poll-bar-fill {
    height: 100%;
    background: var(--c-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.poll-bar-pct {
    width: 36px;
    text-align: right;
    font-size: 12px;
    color: var(--c-text);
    flex-shrink: 0;
    font-weight: 600;
}

/* ── Match cards (nvoorspellen) ──────────────────────────── */
.match-card {
    background: rgba(14,159,194,0.06);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px 14px;
    margin-bottom: 16px;
}
.match-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 13px;
    font-weight: bold;
    color: var(--c-text);
    margin-bottom: 4px;
}
.match-card-title img { vertical-align: middle; }
.match-ronde {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--c-text-dim);
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 1px 5px;
    margin-right: 6px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}
.match-card-score {
    margin-left: 8px;
    font-size: 15px;
    font-weight: 900;
    color: var(--c-accent);
}
.match-card-meta {
    font-size: 11px;
    color: var(--c-text-dim);
    margin-bottom: 8px;
}
.match-card table { margin-top: 8px; }
.match-card .lwit { padding: 2px 0; }

/* ── Section label (pool/group name) ─────────────────────── */
/* ── Guestbook ────────────────────────────────────────────── */
.gb-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(14,159,194,0.07);
    border: 1px solid rgba(14,159,194,0.18);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.gb-welcome-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.gb-welcome-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gb-welcome-text strong {
    font-size: 14px;
    color: var(--c-text);
}
.gb-welcome-text span {
    font-size: 12px;
    color: var(--c-text-dim);
}
.gb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.gb-count {
    font-size: 13px;
    color: var(--c-text-dim);
}
.gb-write-btn {
    display: inline-block;
    padding: 7px 16px;
    background: var(--c-primary);
    color: #001a28;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.gb-write-btn:hover { background: var(--c-accent); }

/* ── Entry card ──────────────────────────────────────────── */
article.gb-entry {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--c-surface, rgba(255,255,255,0.05));
    border: 1px solid var(--c-border, rgba(255,255,255,0.08));
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.gb-entry-body {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.gb-card-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 20px 14px;
    background: rgba(232,116,10,0.14);
    border-bottom: 1px solid rgba(232,116,10,0.25);
}
.gb-card-title {
    flex: 1;
    font-family: 'UEFA Euro Extrabold Narrow', system-ui, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ffb870;
    text-align: left;
}
.gb-card-time {
    position: absolute;
    right: 12px;
    bottom: 3px;
    font-size: 10px;
    color: var(--c-text-dim);
    opacity: 0.7;
    cursor: help;
    white-space: nowrap;
}
article.gb-entry:hover {
    border-color: rgba(14,159,194,0.40);
    background: var(--c-surface);        /* keep dark base — just light up border */
    box-shadow: 0 0 0 1px rgba(14,159,194,0.20), 0 4px 16px rgba(0,0,0,0.28);
    transform: translateY(-1px);
}
article.gb-entry-admin-post {
    border-left: 3px solid var(--c-gold);
    background: rgba(240,192,64,0.04);
    box-shadow: 0 2px 8px rgba(240,192,64,0.08);
}
article.gb-entry-admin-post:hover {
    border-color: var(--c-gold);
    background: rgba(240,192,64,0.08);
    box-shadow: 0 4px 16px rgba(240,192,64,0.14);
}

/* Message body column — right */
.gb-entry-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.gb-entry-main .gb-body { padding: 12px 20px 0; flex: 1; }
.gb-entry-main .gb-entry-footer { padding: 8px 20px 14px; }

/* User meta column — left, compact */
.gb-entry-meta {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 14px 16px 16px;
    border-right: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}
.gb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    flex-shrink: 0;
}
.gb-admin-badge {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c-gold);
    line-height: 1;
    text-align: center;
}
.gb-author { font-size: 12px; font-weight: 700; color: var(--c-text); word-break: break-word; }
.gb-author-link { color: inherit; text-decoration: none; }
.gb-author-link:hover { color: var(--c-accent); }
time.gb-time {
    font-size: 10px;
    color: var(--c-text-dim);
    cursor: help;
    border-bottom: 1px dotted rgba(255,255,255,0.15);
}
/* Desktop: larger footer row */
@media (min-width: 681px) {
    .gb-entry-footer {
        font-size: 14px !important;
        padding: 10px 20px 12px !important;
        gap: 14px;
        min-height: 52px;
    }
    .gb-entry-footer .gb-entry-meta {
        gap: 10px;
    }
    .gb-avatar-mini {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
        font-size: 16px;
        border-radius: 50% !important;
    }
    .gb-entry-footer .gb-author { font-size: 15px !important; font-weight: 700 !important; }
    .gb-entry-footer time.gb-time { font-size: 13px; }
    .gb-admin-badge { font-size: 11px; }
    .gb-ip { font-size: 11px; }
    /* Larger react + like buttons */
    .news-react-btn {
        font-size: 14px;
        padding: 7px 18px;
        border-radius: 18px;
    }
    .gb-entry-footer .gb-like-btn {
        font-size: 15px !important;
        padding: 8px 20px !important;
        border-radius: 22px !important;
        line-height: 1 !important;
    }
    .gb-entry-footer .gb-like-btn .gb-heart,
    .gb-entry-footer .gb-heart { font-size: 17px !important; }
}
.gb-ip {
    font-size: 10px;
    color: var(--c-text-dim);
    font-family: monospace;
    opacity: 0.55;
}
.gb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}
article.gb-entry:hover .gb-actions { opacity: 1; }
.gb-action {
    font-size: 14px;
    text-decoration: none;
    color: var(--c-text-dim);
    transition: color 0.15s;
    line-height: 1;
}
.gb-action:hover { color: var(--c-text); }
.gb-check { width: 14px; height: 14px; cursor: pointer; accent-color: var(--c-primary); }


/* Message body */
.gb-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--c-text);
    word-break: break-word;
}
.gb-body p          { margin: 0 0 0.65em; }
.gb-body p:last-child { margin-bottom: 0; }
.gb-body ul, .gb-body ol { margin: 0.4em 0 0.65em 1.4em; padding: 0; }
.gb-body li         { margin-bottom: 0.25em; }
.gb-body a          { color: var(--c-accent); }
.gb-body strong     { font-weight: 700; }
.gb-body em         { font-style: italic; }

/* AJAX loading fade */
#gb-entries-container.gb-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s;
}

/* Pagination */
.gb-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.gb-page {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    font-size: 13px;
    text-decoration: none;
    color: var(--c-text);
    background: rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.gb-page:hover { background: rgba(14,159,194,0.15); }
.gb-page-active {
    background: var(--c-primary);
    color: #001a28;
    font-weight: 700;
    border-color: var(--c-primary);
    pointer-events: none;
}
.gb-page-nav { font-size: 16px; padding: 4px 8px; }
.gb-page-disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}
.gb-page-ellipsis {
    border: none;
    background: none;
    color: var(--c-text-dim);
    padding: 4px 2px;
    cursor: default;
}

/* Bulk-delete bar */
.gb-bulk-bar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
}
.gb-bulk-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: rgba(255,255,255,0.06);
    color: var(--c-text);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.gb-bulk-btn:hover { background: rgba(14,159,194,0.15); }
.gb-bulk-delete {
    border-color: rgba(220,60,60,0.5);
    color: #e05555;
}
.gb-bulk-delete:hover { background: rgba(220,60,60,0.12); }

/* Write / mail form */
.gb-form-row {
    display: flex;
    gap: 16px;
}
.gb-form-row .gb-field { flex: 1; }
.gb-form-wrap {
    max-width: 680px;
}
.gb-form {
    background: rgba(14,159,194,0.05);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gb-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gb-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gb-input, .gb-textarea {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    padding: 8px 10px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.gb-input:focus, .gb-textarea:focus {
    outline: none;
    border-color: var(--c-primary);
}
.gb-textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.gb-field-actions {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.gb-submit-btn {
    padding: 9px 22px;
    background: var(--c-primary);
    color: #001a28;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.gb-submit-btn:hover { background: var(--c-accent); }
.gb-cancel-link {
    font-size: 13px;
    color: var(--c-text-dim);
    text-decoration: none;
}
.gb-cancel-link:hover { color: var(--c-text); }
.gb-logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: transparent;
    color: rgba(220, 80, 80, 0.85);
    border: 2px solid rgba(220, 80, 80, 0.4);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    margin-left: auto;
}
.gb-logout-btn:hover {
    background: rgba(220, 80, 80, 0.12);
    color: rgba(220, 80, 80, 1);
    border-color: rgba(220, 80, 80, 0.75);
}
.gb-reply-notice {
    font-size: 13px;
    color: var(--c-text-dim);
    margin: 0 0 12px;
}
.gb-reply-notice a { color: var(--c-primary); text-decoration: none; }
.gb-reply-notice a:hover { text-decoration: underline; }
.gb-replies-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--c-border);
}
.gb-replies-list { margin-bottom: 24px; }
.gb-reply-entry { opacity: 0.9; }
.gb-reply-entry .gb-entry-footer { gap: 8px; }
.gb-reply-entry .gb-card-time { margin-left: auto; font-size: 11px; color: var(--c-text-dim); }
/* Threaded replies under a top-level entry */
.gb-thread-replies {
    margin: -4px 0 8px 24px;
    border-left: 2px solid var(--c-border);
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gb-entry-reply { background: rgba(255,255,255,0.025); }
.gb-reply-label { font-size: 12px; color: var(--c-text-dim); font-style: italic; }

/* Alert */
.gb-alert {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}
.gb-alert-error {
    background: rgba(220,60,60,0.10);
    border: 1px solid rgba(220,60,60,0.35);
    color: #e05555;
}
.alert-success {
    background: rgba(74,222,128,0.10);
    border: 1px solid rgba(74,222,128,0.30);
    color: var(--c-win, #4ade80);
    padding: 10px 14px;
    border-radius: var(--radius-sm, 6px);
    margin-bottom: 14px;
    font-size: 13px;
}
.alert-error {
    background: rgba(220,60,60,0.10);
    border: 1px solid rgba(220,60,60,0.30);
    color: #e05555;
    padding: 10px 14px;
    border-radius: var(--radius-sm, 6px);
    margin-bottom: 14px;
    font-size: 13px;
}

/* Entry footer + like button */
.gb-entry-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 4px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
    color: var(--c-text-dim);
    line-height: 1;
}
.gb-entry-main .gb-entry-footer { padding: 4px 20px 8px !important; }
.gb-entry-footer .gb-entry-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    width: auto;
    flex-direction: row;
    text-align: left;
}
.gb-avatar-mini {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}
img.gb-avatar-mini { display: block; padding: 0; }
.gb-entry-footer .gb-like-btn {
    padding: 2px 8px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
    line-height: 1.4 !important;
}
.gb-entry-footer .gb-like-btn .gb-heart { font-size: 11px; }
.gb-entry-footer .gb-author { font-size: 11px; font-weight: 600; color: var(--c-text); }
.gb-entry-footer .gb-admin-badge {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(232,116,10,0.15);
    color: var(--c-gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
}
.gb-entry-footer time.gb-time {
    font-size: 11px;
    color: var(--c-text-dim);
    border-bottom: 0;
    cursor: help;
}
.gb-entry-footer .gb-ip {
    font-size: 10px;
    font-family: monospace;
    color: var(--c-text-dim);
    opacity: 0.55;
}
.gb-meta-sep { opacity: 0.4; }

.news-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--c-text-dim);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    margin-left: auto;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.news-react-btn:hover {
    color: var(--c-accent);
    border-color: rgba(14,159,194,0.40);
    background: rgba(14,159,194,0.07);
}
/* Reacties toggle button */
.news-reacties-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--c-accent, #0e9fc2);
    padding: 5px 14px 5px 12px;
    border-radius: 16px;
    border: none;
    margin-left: auto;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.news-reacties-btn:hover {
    background: var(--c-accent-dark, #0b84a3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.30);
}
.news-reacties-btn--open {
    background: var(--c-accent-dark, #0b84a3);
}
/* Arrow icon inside the button */
.news-reacties-btn .nr-arrow {
    display: inline-block;
    font-style: normal;
    font-size: 10px;
    transition: transform 0.2s;
    line-height: 1;
}
.news-reacties-btn--open .nr-arrow {
    transform: rotate(180deg);
}
/* Collapsible replies section inside the news article */
.news-replies-wrap {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 4px;
}
/* Reageer link row at the bottom of the expanded section */
.news-reageer-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px 4px;
}
.gb-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(220,60,80,0.25);
    background: rgba(220,60,80,0.07);
    color: #c07080;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
    line-height: 1;
}
.gb-like-btn:hover {
    border-color: rgba(220,60,80,0.55);
    background: rgba(220,60,80,0.15);
    color: #e07090;
    transform: scale(1.05);
}
.gb-like-btn.gb-liked {
    border-color: rgba(220,60,80,0.7);
    background: rgba(220,60,80,0.18);
    color: #e84060;
}
.gb-like-btn:disabled { opacity: 0.55; cursor: default; }
.gb-heart { font-size: 15px; line-height: 1; }
.gb-like-count { min-width: 6px; }
.gb-like-static {
    font-size: 12px;
    color: var(--c-text-dim);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
@keyframes gb-pop {
    0%   { transform: scale(1);    color: inherit; }
    15%  { transform: scale(1.65); color: #f04060; }
    45%  { transform: scale(0.82); color: #e05070; }
    70%  { transform: scale(1.18); color: #e05070; }
    100% { transform: scale(1);    color: inherit; }
}
@keyframes gb-btn-ring {
    0%   { box-shadow: 0 0 0 0   rgba(220,60,80,0.55); }
    55%  { box-shadow: 0 0 0 9px rgba(220,60,80,0); }
    100% { box-shadow: 0 0 0 0   rgba(220,60,80,0); }
}
.gb-like-btn.gb-like-pop .gb-heart {
    animation: gb-pop 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.gb-like-btn.gb-like-pop {
    animation: gb-btn-ring 0.48s ease-out both;
}

/* ── News entry cards — use gb-entry styles, just keep #news-entries spacing ── */
article.news-entry:hover .gb-actions { opacity: 1; }

#news-entries { margin-top: 0; }

.section-label {
    font-size: 11px;
    font-weight: bold;
    color: var(--c-text-dim);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 0 6px;
    border-bottom: 1px solid rgba(232,116,10,0.20);
    margin-bottom: 12px;
}

/* ── Legacy sub-page table header/row classes ────────────── */
td.lheader, th.lheader { background: rgba(14,159,194,0.12); color: var(--c-accent); font-size: 11px; font-weight: bold; padding: 7px 10px; text-align: left; }
td.cheader, th.cheader { background: rgba(14,159,194,0.12); color: var(--c-accent); font-size: 11px; font-weight: bold; padding: 7px 10px; text-align: center; }
td.rheader, th.rheader { background: rgba(14,159,194,0.12); color: var(--c-accent); font-size: 11px; font-weight: bold; padding: 7px 10px; text-align: right; }
td.cwit  { color: var(--c-text); text-align: center; }
td.rwit  { color: var(--c-text); text-align: right; }
td.lwits { color: var(--c-text); font-size: 11px; }
td.lselected { background: rgba(14,159,194,0.14); color: var(--c-accent); }
td.cselected { background: rgba(14,159,194,0.14); color: var(--c-accent); text-align: center; }
td.rselected { background: rgba(14,159,194,0.14); color: var(--c-accent); text-align: right; }

/* Full-width row highlight for logged-in user */
tr.lselected td,
tr.row-me td { background: rgba(14,159,194,0.14) !important; color: var(--c-accent); }
tr.lselected:hover td,
tr.row-me:hover td { background: rgba(14,159,194,0.22) !important; }

/* Stat images (bonus question icons) */
.stat-icon    { display: inline-block; width: 26px; height: 26px; object-fit: contain; vertical-align: middle; margin-right: 6px; filter: brightness(1.1); }
/* Stat icons in card-header, sidebar, and admin list */
.card-header img[src*="img/stats/"],
.admin-list-stat-img { width:28px; height:28px; object-fit:contain; vertical-align:middle; }

/* ── All-time seasons column ─────────────────────────────── */
table.liststand .col-seasons { width: 44px; text-align: center; font-size: 11px; color: var(--c-text-dim); }

/* Subpool selector */
.topusers-subpool { margin-bottom: 20px; }
.subpool-label    { font-size: 12px; color: var(--c-text-dim); display: block; }
.subpool-label select { margin-top: 4px; }

/* Table wrapper — small bottom gap between sections */
.topusers-wrap {
    overflow-x: auto;
    margin-bottom: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
}

/* Inside a card-body: no own border needed — card provides it */
.card-body > .topusers-wrap,
.card-body > .stand-filters + .topusers-wrap {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
}

/* ── Spelregels ───────────────────────────────────────────── */
.rules-content {
    margin-bottom: 28px;
}
.rule-section {
    background: rgba(14,159,194,0.05);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 12px;
}
.rule-section p {
    margin: 0 0 8px;
    line-height: 1.6;
    color: var(--c-text);
}
.rule-section p:last-child { margin-bottom: 0; }
.rule-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}
.rule-list {
    margin: 6px 0 0 18px;
    padding: 0;
    line-height: 1.7;
    color: var(--c-text);
}
.rule-deadline {
    color: var(--c-error, #e05555);
}

/* ── Prijzenpot ───────────────────────────────────────────── */
.prize-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.prize-summary-item {
    flex: 1 1 7em;
    min-width: 0;
    background: rgba(14,159,194,0.08);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    cursor: default;
}
.prize-summary-item:hover {
    background: rgba(14,159,194,0.16);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.prize-summary-label {
    font-size: 11px;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}
.prize-summary-value {
    font-size: clamp(13px, 2vw, 18px);
    font-weight: 700;
    color: var(--c-accent);
    align-self: flex-end;
    word-break: break-word;
}
.prize-summary-item.prize-summary-alert {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.4);
}
.prize-summary-item.prize-summary-alert:hover {
    background: rgba(239,68,68,0.22);
}
.prize-summary-item.prize-summary-alert .prize-summary-value {
    color: #ef4444;
}
.prize-explanation {
    margin: 0 0 20px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--c-text-dim);
    line-height: 1.7;
}
.prize-explanation p { margin: 0 0 8px; }
.prize-explanation p:last-child { margin-bottom: 0; }
.prize-explanation ul { margin: 6px 0 10px; padding-left: 20px; }
.prize-explanation li { margin-bottom: 4px; }
.prize-explanation strong { color: var(--c-text); }
table.liststand .col-prize {
    width: 120px;
    text-align: right;
    padding-right: 12px;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
    .col-prize-full { display: none !important; }
    .prize-summary-item { flex: 1 1 5em; }
    .prize-explanation { font-size: 13px; }
}
@media (max-width: 480px) {
    /* Hide % column so prize table fits on mobile — Stand + Naam + € kas = ~270px */
    table.liststand .col-pct { display: none !important; }
    /* Summary items: 2-per-row grid */
    .prize-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .prize-summary-item { flex: none; }
    .prize-summary-value { font-size: 15px; }
    /* Explanation: tighter */
    .prize-explanation { padding: 10px 12px; font-size: 12px; }
}
/* ── Prijzenpot % progress bar column ── */
table.liststand .col-pct {
    width: 110px;
    text-align: left;
    padding-right: 10px;
}
.pp-pct-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 70px;
}
.pp-pct-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}
.pp-pct-bar {
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.pp-pct-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--c-accent, #0e9fc2);
    transition: width 0.4s ease;
}
.pp-pct-fill-total {
    background: linear-gradient(90deg, var(--c-accent,#0e9fc2), #4ade80);
}
/* ── Summary card inline % bar ── */
.prize-summary-pct-bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-top: 4px;
}
.prize-summary-pct-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--c-accent, #0e9fc2);
}
.prize-summary-pct-bar-dim span {
    background: rgba(255,255,255,0.25);
}
table.liststand tr.totals-row td {
    background: rgba(14,159,194,0.10);
    border-top: 2px solid var(--c-border);
    font-weight: 700;
}

/* Clickable detail rows */
.det-row { cursor: pointer; }
.det-row:hover td { background: rgba(14,159,194,0.08); }

/* The ranking table itself */
table.liststand {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

/* Header row */
table.liststand thead tr th {
    background: rgba(14,159,194,0.12);
    color: var(--c-accent);
    padding: 5px 10px;
    text-align: left;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--c-border);
    white-space: nowrap;
}

/* Data cells */
table.liststand tbody tr td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
    color: var(--c-text);
    background: transparent;
    transition: background var(--transition);
}

table.liststand tbody tr:last-child td { border-bottom: none; }
table.liststand tbody tr:hover td     { background: var(--c-surface-hov); }

/* Column widths / alignment */
table.liststand .col-rank   { width: 30px;  text-align: center; color: var(--c-text-dim); }
table.liststand .col-icon   { width: 28px;  text-align: center; }
table.liststand .col-gender { width: 28px;  text-align: center; }
table.liststand .col-sub    { font-size: 11px; color: var(--c-text-dim); }
table.liststand .col-pts    { width: 70px;  text-align: center; font-size: 13px; font-weight: bold; }
table.liststand td.no-data  { text-align: center; color: var(--c-text-dim); font-style: italic; padding: 20px 10px; }

/* Sidebar cards — compact column widths to fit narrow widget */
.sidebar-right table.liststand .col-rank { width: 22px; }
.sidebar-right table.liststand .col-icon { width: 22px; }
.sidebar-right table.liststand .col-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sidebar-right table.liststand .col-name a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar-right table.liststand .col-pts  { width: 42px; font-size: 12px; }
/* Subpool card: single combined avg+total pts column */
.sidebar-right table.liststand th:nth-child(3),
.sidebar-right table.liststand td:nth-child(3) { width: 58px; font-size: 12px; }
/* Prize badges + subpool names in sidebar — allow wrap */
.sidebar-right .st-prize-badge { white-space: normal; word-break: break-word; font-size: 10px; padding: 2px 5px; margin-left: 0; margin-top: 2px; display: inline-flex; }
.sidebar-right .col-sub { white-space: normal; word-break: break-word; }

/* Stats icon link — bar-chart SVG via mask-image */
table.liststand a.stats-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(14,159,194,0.12);
    border: 1px solid rgba(14,159,194,0.25);
    color: var(--c-primary);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
table.liststand a.stats-link::before {
    content: '';
    display: block;
    width: 13px;
    height: 13px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='9' width='4' height='6'/%3E%3Crect x='6' y='5' width='4' height='10'/%3E%3Crect x='11' y='2' width='4' height='13'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='9' width='4' height='6'/%3E%3Crect x='6' y='5' width='4' height='10'/%3E%3Crect x='11' y='2' width='4' height='13'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}
table.liststand a.stats-link:hover {
    background: rgba(14,159,194,0.28);
    color: var(--c-accent);
}

/* Gender badge (CSS-only, replaces PNG) */
.gender-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}
.gender-m {
    background: rgba(14,159,194,0.14);
    border: 1px solid rgba(14,159,194,0.35);
    color: var(--c-primary);
}
.gender-f {
    background: rgba(220,80,140,0.14);
    border: 1px solid rgba(220,80,140,0.35);
    color: #e87bb0;
}

/* Medal badge (rank 1/2/3) */
.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}
.medal-gold   { background: var(--c-gold);     color: #3a2800; }
.medal-silver { background: #b0bec5;         color: #1a2530; }
.medal-bronze { background: #cd9060;         color: #2a1800; }
.medal-me     { background: var(--c-primary); color: #001a28; }

/* Trend arrows (sidebar cards) */
.trend { font-size: 10px; }
.trend-up   { color: #4caf88; }
.trend-down { color: #e06060; }
.trend-eq   { color: var(--c-text-dim); }

/* Team name link — flex so avatar and name always vertically centred */
table.liststand .col-name a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}
table.liststand .col-name a:hover { color: var(--c-accent); }

/* Trend column in the Top-N / Score-ronde widgets — keep it tight (it only holds
   a small ▲/▼ marker) so the team name gets the room. */
table.liststand td.col-icon,
table.liststand th.col-icon {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

/* ── Podium & current-user highlights ────────────────────────── */

/* ── Podium rows — strong left stripe + coloured text ─────── */

/* Gold — rank 1 */
table.liststand tbody tr.rank-gold td             { background: rgba(240,192,64,0.24); }
table.liststand tbody tr.rank-gold td:first-child { border-left: 6px solid var(--c-gold); }
table.liststand tbody tr.rank-gold .col-rank      { color: var(--c-gold); font-size: 16px; font-weight: 900; text-shadow: 0 0 8px rgba(240,192,64,0.70); }
table.liststand tbody tr.rank-gold .col-pts       { color: var(--c-gold); font-size: 15px; text-shadow: 0 0 6px rgba(240,192,64,0.50); }
table.liststand tbody tr.rank-gold:hover td       { background: rgba(240,192,64,0.34); }

/* Silver — rank 2 */
table.liststand tbody tr.rank-silver td             { background: rgba(192,200,210,0.20); }
table.liststand tbody tr.rank-silver td:first-child { border-left: 6px solid #b0bec5; }
table.liststand tbody tr.rank-silver .col-rank      { color: #d8e6ee; font-size: 16px; font-weight: 900; text-shadow: 0 0 7px rgba(176,190,197,0.60); }
table.liststand tbody tr.rank-silver .col-pts       { color: #d8e6ee; font-size: 15px; }
table.liststand tbody tr.rank-silver:hover td       { background: rgba(192,200,210,0.30); }

/* Bronze — rank 3 */
table.liststand tbody tr.rank-bronze td             { background: rgba(205,127,50,0.22); }
table.liststand tbody tr.rank-bronze td:first-child { border-left: 6px solid #cd9060; }
table.liststand tbody tr.rank-bronze .col-rank      { color: #e0b080; font-size: 16px; font-weight: 900; text-shadow: 0 0 7px rgba(205,144,96,0.55); }
table.liststand tbody tr.rank-bronze .col-pts       { color: #e0b080; font-size: 15px; }
table.liststand tbody tr.rank-bronze:hover td       { background: rgba(205,127,50,0.32); }
table.liststand tbody tr.rank-gold   td             { border-bottom: 1px solid rgba(255,255,255,0.10); }
table.liststand tbody tr.rank-silver td             { border-bottom: 1px solid rgba(255,255,255,0.10); }
table.liststand tbody tr.rank-bronze td             { border-bottom: 2px solid rgba(255,255,255,0.12); }

/* Current logged-in user */
table.liststand tbody tr.rank-me td             { background: rgba(14,159,194,0.12); }
table.liststand tbody tr.rank-me td:first-child { border-left: 4px solid var(--c-primary); }
table.liststand tbody tr.rank-me .col-rank      { color: var(--c-accent); }
table.liststand tbody tr.rank-me .col-pts       { color: var(--c-accent); }
table.liststand tbody tr.rank-me:hover td       { background: rgba(14,159,194,0.20); }

/* ================================================================
   TOOLTIP (wz_tooltip override)
   ================================================================ */

/* Outer container — colours come from wz_tooltip.js config;
   CSS adds border-radius + overflow so the title bar is clipped */
.WzTooltip {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.70) !important;
}

/* Bold labels inside user-profile tooltip */
.WzTooltip b,
.WzTooltip strong {
    color: #ffb870 !important;     /* amber — matches card-header colour */
}

/* Ensure table inside tooltip is clean */
.WzTooltip table {
    border-collapse: collapse !important;
    width: 100% !important;
}

.WzTooltip td {
    line-height: 1.5 !important;
    vertical-align: middle !important;
}

/* ================================================================
   POLL (includes/poll.php output)
   ================================================================ */
div#poll table { width: 100%; }
div#poll td { padding: 3px 0; font-size: 11px; color: var(--c-text-dim); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
    :root { --col-l: 190px; --col-r: 230px; }
    .main-wrap.no-right { grid-template-columns: var(--col-l) 1fr; }
    .main-wrap.no-sidebars { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
    .main-wrap,
    .main-wrap.no-right,
    .main-wrap.no-sidebars {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    /* Mobile stack order: content → left sidebar → right sidebar */
    .content-area { grid-row: 1; }
    .sidebar-left  { grid-row: 2; }
    .sidebar-right { grid-row: 3; }
    .nav-login-form input { width: 110px; }
}

/* ── Admin shared components ─────────────────────────────────── */
.admin-add-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(14,159,194,0.13);
    border: 1px solid rgba(14,159,194,0.35);
    border-radius: var(--radius-sm);
    color: var(--c-accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.admin-add-btn:hover {
    background: rgba(14,159,194,0.22);
    border-color: rgba(14,159,194,0.55);
    color: var(--c-accent);
}
.admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transition), opacity var(--transition);
    border: none;
    background: transparent;
}
.admin-icon-edit {
    background: rgba(14,159,194,0.12);
    color: var(--c-accent);
}
.admin-icon-edit:hover { background: rgba(14,159,194,0.24); color: var(--c-accent); }
.admin-icon-del {
    background: rgba(220,60,60,0.10);
    color: #e05555;
}
.admin-icon-del:hover { background: rgba(220,60,60,0.22); color: #e05555; }

/* Filter tabs */
.admin-filter-tabs { display: flex; gap: 6px; }
.admin-filter-tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--c-border);
    color: var(--c-text-dim);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.admin-filter-tab:hover,
.admin-filter-tab.active {
    background: rgba(14,159,194,0.14);
    border-color: rgba(14,159,194,0.40);
    color: var(--c-accent);
}

/* ── Admin params form ───────────────────────────────────────────────── */
.params-section {
    border: 1px solid rgba(14,159,194,0.14);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}
.params-section-title {
    background: rgba(14,159,194,0.08);
    border-bottom: 1px solid rgba(14,159,194,0.14);
    padding: 11px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--c-accent);
}
.params-row {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.params-row:last-child { border-bottom: none; }
.params-section-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* match-card row inside params-section-body */
/* ── AWB desktop row ─────────────────────────────────────────────────────── */
.awb-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.awb-row .awb-field { flex: 2; min-width: 180px; }
.awb-row .awb-field-sm { flex: 1; min-width: 100px; }
.awb-date-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.awb-date-grid .gb-field { flex: 1; min-width: 100px; }
.awb-match-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.awb-match-row .gb-field { flex: 1; }
.awb-vs {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--c-text-dim);
    padding-bottom: 10px;
    flex-shrink: 0;
}
.awb-tijd-input {
    width: 56px;
    min-width: 56px;
    text-align: center;
}
/* Stepper input size helpers — defined again with higher specificity after the
   .pred-stepper .inputblue rule further down the file (see line ~5169) */
/* score row inside uitslag section */
.awb-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.awb-score-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-dim);
}
.awb-score-sep {
    font-size: 20px;
    color: var(--c-text-dim);
    line-height: 1;
}

/* ── AWB mobile ──────────────────────────────────────────────────────────── */
/* ── Pool koppeling input — monospace code style, compact width ──────────── */
.kpool-input {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: .04em;
    max-width: 220px;
}

/* ── Prijzenpot responsive table ─────────────────────────────────────────── */
.pp-table { width: 100%; table-layout: auto; }
.pp-col-id    { width: 3em; }
.pp-col-pct   { width: 5em; }
.pp-col-stand { width: 7em; }
.pp-col-sub   { width: 12em; }
.pp-col-btn   { width: 2.5em; }
/* Below 600 px: hide ID column, collapse subpool label */
@media (max-width: 600px) {
    .pp-col-id   { display: none; }
    .pp-col-sub  { width: 7em; }
    .pp-col-stand { width: 5.5em; }
}
@media (max-width: 420px) {
    .pp-col-sub  { display: none; }
}

.params-label {
    flex: 1;
    font-size: 13px;
    color: var(--c-text);
    line-height: 1.4;
}
.params-hint {
    display: block;
    font-size: 11px;
    color: var(--c-text-dim);
    margin-top: 2px;
}
/* Nee/Ja toggle */
.params-toggle {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
}
.params-toggle input[type=radio] { display: none; }
.params-toggle label {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    color: var(--c-text-dim);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    user-select: none;
}
.params-toggle label:first-of-type { border-right: 1px solid rgba(255,255,255,0.10); }
.params-toggle input[type=radio]:checked + label {
    background: var(--c-primary);
    color: #fff;
}
/* Numeric inputs */
.params-num {
    width: 72px !important;
    text-align: center;
    flex-shrink: 0;
}
.params-url { flex: 1; max-width: 320px; }
/* Points grid */
.params-points-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 0;
}
.params-point-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.params-point-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.04); }
.params-point-label {
    flex: 1;
    font-size: 13px;
    color: var(--c-text);
}
.params-point-num {
    width: 56px !important;
    text-align: center;
    flex-shrink: 0;
}
.params-point-unit {
    font-size: 11px;
    color: var(--c-text-dim);
    width: 22px;
}
@media (max-width: 600px) {
    .params-points-wrap { grid-template-columns: 1fr; }
    .params-point-item:nth-child(odd) { border-right: none; }
    .params-row { flex-wrap: wrap; }
}

/* ── Inline-edit table inputs ────────────────────────────────────────── */
.inline-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: var(--c-text);
    padding: 5px 8px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}
.inline-input:focus { border-color: var(--c-primary); background: rgba(14,159,194,0.06); }
/* Number spinner — larger and always visible */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: inner-spin-button;
    opacity: 1;
    width: 22px;
    height: 100%;
    cursor: pointer;
    background: rgba(14,159,194,0.12);
    border-left: 1px solid rgba(14,159,194,0.25);
    border-radius: 0 4px 4px 0;
}
input[type="number"]::-webkit-inner-spin-button:hover,
input[type="number"]::-webkit-outer-spin-button:hover {
    background: rgba(14,159,194,0.28);
}

/* ── nvoorspellen mode tabs ──────────────────────────────────────────────── */
.nv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.nv-tab {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--c-text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: color 0.18s, background 0.18s, border-color 0.18s;
    white-space: nowrap;
}
.nv-tab:hover {
    color: var(--c-accent);
    background: rgba(14,159,194,0.08);
    border-color: rgba(14,159,194,0.25);
}
.nv-tab-active {
    color: var(--c-accent) !important;
    background: rgba(14,159,194,0.12);
    border-color: rgba(14,159,194,0.35);
}
.nv-avg-line {
    font-size: 13px;
    color: var(--c-text-dim);
    margin: 4px 0 10px;
}

/* lw-date / lw-team / lw-score / lw-stadion removed — replaced by animated card design above */

/* ── Volgende wedstrijd sidebar card ─────────────────────────────────────── */
@keyframes flag-spin {
    0%   { transform: rotateY(0deg); }
    40%  { transform: rotateY(180deg); }
    70%  { transform: rotateY(270deg); }
    100% { transform: rotateY(360deg); }
}
.nm-teams { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 10px; }
.nm-team  { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.nm-team span { font-size: 11px; font-weight: 600; text-align: center; }
.nm-team img  { border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,0.35);
                animation: flag-spin 0.8s ease-out 0.3s 1 both; }
.nm-vs        { font-size: 16px; font-weight: bold; color: var(--c-text-dim); flex-shrink: 0; }
.nm-gauges    { margin: 4px 0 8px; }
.nm-gauge-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.nm-gauge-lbl { width: 12px; font-size: 11px; font-weight: 700; color: var(--c-text-dim); flex-shrink: 0; }
.nm-gauge-pct { width: 28px; text-align: right; font-size: 11px; color: var(--c-text-dim); flex-shrink: 0; }
.nm-datum     { font-size: 17px; font-weight: 700; color: var(--c-accent); text-align: center; margin: 6px 0 0; letter-spacing: 0.02em; }
/* W/G/V gauge coloring */
.nm-gauges .nm-gauge-row:nth-child(1) .nm-gauge-lbl { color: var(--c-win); }
.nm-gauges .nm-gauge-row:nth-child(2) .nm-gauge-lbl { color: var(--c-draw); }
.nm-gauges .nm-gauge-row:nth-child(3) .nm-gauge-lbl { color: var(--c-lose); }
.nm-gauges .nm-gauge-row:nth-child(1) .poll-bar-fill { background: var(--c-win); }
.nm-gauges .nm-gauge-row:nth-child(2) .poll-bar-fill { background: var(--c-draw); }
.nm-gauges .nm-gauge-row:nth-child(3) .poll-bar-fill { background: var(--c-lose); }
.nm-gauges .nm-gauge-row:nth-child(1) .nm-gauge-pct { color: var(--c-win); }
.nm-gauges .nm-gauge-row:nth-child(2) .nm-gauge-pct { color: var(--c-draw); }
.nm-gauges .nm-gauge-row:nth-child(3) .nm-gauge-pct { color: var(--c-lose); }
.nm-pred-info { font-size: 10px; color: var(--c-text-dim); text-align: right; margin: -4px 0 4px; opacity: 0.6; }
.nm-no-pred   { font-size: 11px; color: var(--c-text-dim); text-align: center; font-style: italic; margin: 6px 0 8px; }
.nm-locatie   { font-size: 11px; color: var(--c-text-dim); text-align: center; margin: 2px 0 0; opacity: 0.8; }
.nm-locatie-link { color: var(--c-accent); text-decoration: none; }
.nm-locatie-link:hover { text-decoration: underline; }
.pred-meta-stad-link { color: var(--c-accent); text-decoration: none; }
.pred-meta-stad-link:hover { text-decoration: underline; }
.lw-stad-link { color: inherit; text-decoration: none; }
.lw-stad-link:hover { color: var(--c-accent); text-decoration: underline; }

/* ── Meer wedstrijden toggle ── */
.nm-meer-wrap { border-top: 1px solid rgba(255,255,255,0.07); }
.nm-meer-toggle { width: 100%; background: none; border: none; color: var(--c-text-dim); font-size: 11px; padding: 7px 12px; cursor: pointer; text-align: center; letter-spacing: 0.03em; }
.nm-meer-toggle:hover { color: var(--c-accent); }
.nm-meer-list { display: none; list-style: none; margin: 0; padding: 2px 0 6px; }
.nm-meer-wrap.open .nm-meer-toggle { color: var(--c-accent); }
.nm-meer-wrap.open .nm-meer-list { display: block; }
.nm-meer-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 12px; text-decoration: none; color: inherit; }
.nm-meer-row:hover { background: rgba(255,255,255,0.04); }
.nm-meer-teams { display: flex; align-items: center; gap: 4px; font-size: 11px; flex: 1; min-width: 0; }
.nm-meer-teams img { border-radius: 2px; flex-shrink: 0; }
.nm-meer-vs { color: var(--c-text-dim); margin: 0 1px; }
.nm-meer-meta { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.nm-meer-datum { font-size: 10px; color: var(--c-text-dim); white-space: nowrap; }
.nm-meer-loc { font-size: 12px; text-decoration: none; opacity: 0.6; }
.nm-meer-loc:hover { opacity: 1; }

/* ── Inline-edit save button (icon, consistent with edit/delete) ─────── */
.admin-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: none;
    background: rgba(39,174,96,0.13);
    color: #4caf88;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}
.admin-save-btn:hover { background: rgba(39,174,96,0.28); color: #4caf88; }

/* ── Toggle switch (boolean fields) ─────────────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    cursor: pointer;
    vertical-align: middle;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(120,130,150,0.50);
    border-radius: 20px;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--c-accent); }
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
    background: #fff;
}

/* ── User table badges ───────────────────────────────────────────────── */
.ub-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
.ub-paid { background: rgba(39,174,96,0.15); color: #4caf88; }
.ub-warn { background: rgba(224,112,80,0.15); color: #e07050; }

@media (max-width: 680px) {
    :root { --nav-h: 56px; }
    .poolpageheader { display: none; }   /* too narrow to read at this width */
    .nav-inner { padding: 0 8px; }
    .nav-brand { font-size: 15px; border-right: none; padding-right: 0; }
    .nav-brand-img { height: 28px; }
    .nav-links { display: none; }
    .nav-login-form { display: none; }
    .main-wrap { padding: 12px; }
    /* sidebar-right stays in flow below content (grid-row:3 from 920px block) */
    .programme { grid-template-columns: 1fr; } /* already single-col, keep for compat */
}

/* ── News like button in header right ────────────────────────── */
.news-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.news-like-btn {
    font-size: 15px;
    padding: 5px 14px;
}
.news-like-btn .gb-heart { font-size: 16px; }
article.news-entry:hover .news-header-right .gb-actions { opacity: 1; }

/* ── Subpool: combined avg + total cell ──────────────────────── */
.sp-avg { display: block; font-weight: 700; }
.sp-tot { font-size: 10px; color: var(--c-text-dim); white-space: nowrap; }

/* ── Gear profile icon in nav-right ─────────────────────────── */
.nav-gear-wrap { position: relative; }
.nav-gear-btn {
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-dim);
    font-size: 16px;
    width: 30px;
    height: 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition),
                color var(--transition), transform 0.5s ease;
}
.nav-gear-btn:hover {
    background: rgba(14,159,194,0.10);
    border-color: rgba(14,159,194,0.45);
    color: var(--c-accent);
    transform: rotate(90deg);
}

/* ── Avatar edit overlay (user_profiel header) ──────────────── */
.av-edit-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    text-decoration: none;
}
.av-edit-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.av-edit-wrap:hover .av-edit-overlay { opacity: 1; }

/* ── Profile page ────────────────────────────────────────────── */
.profiel-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 680px;
}
.profiel-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(14,159,194,0.12);
    border-radius: 12px;
    padding: 24px;
}
.profiel-avatar-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.profiel-avatar-block .av-edit-overlay { font-size: 32px; }
.profiel-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
    overflow: hidden;
}
.profiel-av-img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    display: block;
}
.profiel-teamname {
    font-family: 'UEFA Euro', system-ui, sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: var(--c-accent);
}
.profiel-fullname {
    font-size: 12px;
    color: var(--c-text-dim);
    margin-top: 3px;
}
.profiel-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 16px;
}
.profiel-tbl td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}
.profiel-tbl td:first-child {
    width: 150px;
    color: var(--c-text-dim);
    font-size: 12px;
}
.profiel-tbl tr:last-child td { border-bottom: none; }
.profiel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* ── DiceBear avatar picker ──────────────────────────────────────────── */
.av-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 6px;
    margin-top: 8px;
}
.av-opt {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.av-tile {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.av-img,
.av-none {
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color 0.15s, transform 0.15s, opacity 0.15s;
    opacity: 0.55;
    display: block;
    width: 52px;
    height: 52px;
}
.av-none {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.av-tile:has(.av-opt:checked) .av-img,
.av-tile:has(.av-opt:checked) .av-none {
    border-color: var(--c-accent);
    opacity: 1;
    transform: scale(1.18);
}
.av-tile:hover .av-img,
.av-tile:hover .av-none { opacity: 0.85; transform: scale(1.06); }

/* ── Standings inline avatar ─────────────────────────────────────────── */
.stand-av {
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Nav-bar avatar ──────────────────────────────────────────────────── */
.nav-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.18);
}

/* Stats card */
.profiel-stats-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(14,159,194,0.12);
    border-radius: 12px;
    padding: 20px 24px;
}
.profiel-stats-title {
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--c-accent);
    opacity: .65;
    margin-bottom: 14px;
    font-family: 'UEFA Euro', system-ui, sans-serif;
}
.profiel-stat-row {
    display: flex;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}
.profiel-stat-box {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.profiel-stat-box:last-child { border-right: none; }
.profiel-stat-val {
    font-family: 'UEFA Euro', system-ui, sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: var(--c-accent);
    line-height: 1;
}
.profiel-stat-lbl {
    font-size: 11px;
    color: var(--c-text-dim);
    margin-top: 5px;
}
.profiel-hist-label {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    margin: 18px 0 8px;
    opacity: .7;
}
.profiel-hist-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.profiel-hist-tbl td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.profiel-hist-tbl tr:last-child td { border-bottom: none; }
.profiel-hist-tbl td:first-child { color: var(--c-text-dim); padding-left: 0; }
.profiel-hist-tbl td:nth-child(2) { text-align: center; }

/* ── Nav profile link (avatar + username clickable) ─────────────────── */
.nav-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--c-text);
    border-radius: var(--radius-sm);
    padding: 3px 6px;
    transition: background var(--transition), color var(--transition);
}
.nav-profile-link:hover {
    background: rgba(14,159,194,0.10);
    color: var(--c-accent);
}
.nav-profile-link .nav-username { color: inherit; }

/* ── Admin section separator label ──────────────────────────────────── */
.admin-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--c-accent);
    opacity: .7;
    margin-bottom: 8px;
}

/* ── Params numeric inputs — visual styling ──────────────────────────── */
.params-num,
.params-point-num {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    padding: 7px 10px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}
.params-num:focus,
.params-point-num:focus {
    outline: none;
    border-color: var(--c-primary);
}
.params-num::-webkit-inner-spin-button,
.params-num::-webkit-outer-spin-button,
.params-point-num::-webkit-inner-spin-button,
.params-point-num::-webkit-outer-spin-button { opacity: 0.4; }

/* ── Admin team responsive ───────────────────────────────────────────── */
.admin-team-wrap { max-width: 100%; }
@media (max-width: 860px) {
    .admin-team-wrap table .lheader:last-of-type,
    .admin-team-wrap table td.lwit:nth-child(5) { display: none; } /* hide website col */
}
@media (max-width: 600px) {
    .admin-team-wrap table .cheader:nth-child(4),
    .admin-team-wrap table td.cwit:nth-child(4) { display: none; } /* hide logo# col */
}
.profiel-hist-tbl td:last-child { text-align: right; color: var(--c-gold); padding-right: 0; }

/* ── Admin info page ─────────────────────────────────────────────────── */
.info-cards { display: flex; flex-direction: column; gap: 16px; }
.info-section {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 16px 18px;
}
.info-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c-text-dim);
    margin-bottom: 12px;
}
.info-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.info-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    min-width: 80px;
}
.info-kpi-val {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--c-text);
}
.info-kpi-lbl {
    font-size: 11px;
    color: var(--c-text-dim);
    margin-top: 4px;
    white-space: nowrap;
}
.info-detail-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}
.info-detail-card {
    flex: 1;
    min-width: 260px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 14px 16px;
}

/* ── Admin info — mobile (≤680px) ──────────────────────────────────── */
@media (max-width: 680px) {
    .info-cards { gap: 12px; }
    .info-section { padding: 12px 12px; }
    .info-section-title { font-size: 10px; letter-spacing: 0.05em; margin-bottom: 10px; }
    .info-kpi-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        flex-wrap: initial;
    }
    .info-kpi {
        min-width: 0;
        padding: 8px 6px;
        border-radius: var(--radius-sm);
    }
    .info-kpi-val { font-size: 18px; }
    .info-kpi-lbl { font-size: 10px; white-space: normal; text-align: center; line-height: 1.2; }

    .info-detail-wrap { gap: 12px; margin-top: 12px; }
    .info-detail-card { min-width: 0; padding: 12px 12px; }
    .info-detail-card table.list { font-size: 12px; }
    .info-detail-card table.list th,
    .info-detail-card table.list td { padding: 5px 6px; }

    /* "Omgeving" table: fill width */
    .info-section > table.list { max-width: none !important; }
}
@media (max-width: 360px) {
    .info-kpi-row { grid-template-columns: repeat(2, 1fr); }
    .info-kpi-val { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Admin pages — mobile safety net (≤680px)
   Overrides the many inline `style="min-width:..."` values on tables,
   flex form fields, and form panels so the viewport never forces scroll.
   Tables that really need width get wrapped in an overflow-x container.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
    /* Neutralize inline min-widths on admin tables; let them wrap + scroll their parent.
       Exclude .stand-tbl — it has its own mobile handling above. */
    .page-content table.list:not(.stand-tbl),
    .page-content table.liststand:not(.stand-tbl),
    .page-content table.users-tbl {
        min-width: 0 !important;
        width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .page-content table.list:not(.stand-tbl) tbody,
    .page-content table.list:not(.stand-tbl) thead,
    .page-content table.liststand:not(.stand-tbl) tbody,
    .page-content table.liststand:not(.stand-tbl) thead { display: table; width: 100%; }

    /* Form grids (admin_*_bewerk): stack every flex field to full-width */
    .page-content .gb-form-row,
    .page-content .gb-field-row {
        flex-direction: column;
        align-items: stretch;
    }
    .page-content .gb-field,
    .page-content [style*="min-width"][style*="flex"] {
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
        flex: 1 1 auto !important;
    }
    /* Buttons with inline min-width */
    .page-content .pred-save-btn[style*="min-width"] { min-width: 0 !important; }

    /* Admin toolbars & action rows: always wrap */
    .admin-toolbar, .admin-actions, .admin-filter-tabs { flex-wrap: wrap !important; }

    /* Inline-styled flex rows in mail_hub / params / mail_tpl with min-widths */
    .page-content [style*="flex:1;min-width"],
    .page-content [style*="flex:2;min-width"] {
        min-width: 0 !important;
        flex-basis: auto !important;
    }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.vp-hidden { display: none !important; }
.disabled { opacity: 0.18 !important; cursor: default !important; pointer-events: none; }

/* ── Mode 2 — Groepswedstrijden accordion ────────────────────────────────── */
.nv2-step-hint {
    font-size: 13px;
    color: var(--c-text-dim, #aaa);
    margin: 8px 0 10px;
}
.nv2-loading {
    font-size: 13px;
    color: var(--c-text-dim, #aaa);
    padding: 12px 0;
}

/* Pool tab strip */
.nv2-pool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.nv2-pool-tab {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--c-text, #e8e8e8);
    cursor: pointer;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    min-width: 64px;
    text-align: center;
}
.nv2-pool-tab:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.25);
}
.nv2-pool-tab.active {
    background: rgba(14,159,194,0.2);
    border-color: var(--c-accent, #0e9fc2);
    color: var(--c-accent, #0e9fc2);
}

/* Shared content area */
.nv2-content-area {
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 16px;
}

/* Match grid — full-width rows like voorspellen_all */
.nv2-match-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.nv2-mc {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 7px;
    color: var(--c-text, #e8e8e8);
    cursor: pointer;
    padding: 9px 12px;
    text-align: left;
    transition: background 0.13s, border-color 0.13s;
    width: 100%;
}
.nv2-mc:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.2);
}
.nv2-mc.active {
    border-color: var(--c-accent, #0e9fc2);
    background: rgba(14,159,194,0.13);
}
.nv2-mc-played { border-left: 3px solid rgba(74,222,128,0.45); }
/* Round badge */
.nv2-mc-ronde {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-dim, #aaa);
    min-width: 28px;
    flex-shrink: 0;
}
/* Home team */
.nv2-mc-home, .nv2-mc-away {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.nv2-mc-away { justify-content: flex-end; }
.nv2-mc-home img, .nv2-mc-away img { flex-shrink: 0; vertical-align: middle; }
.nv2-mc-tname {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Score in the middle */
.nv2-mc-score {
    font-size: 14px;
    font-weight: 700;
    color: #4ade80;
    min-width: 52px;
    text-align: center;
    flex-shrink: 0;
}
.nv2-mc-score.nv2-mc-noscore {
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text-dim, #aaa);
}

/* Prediction panel */
.nv2-pred-panel {
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
}
.nv2-spfilter {
    margin-bottom: 12px;
}

/* ── Match info header (shown in AJAX panel) ─────────────────────────────── */
.nv-match-header {
    margin-bottom: 14px;
}
.nv-match-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.nv-match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    flex: 1;
    min-width: 120px;
}
.nv-match-team img { vertical-align: middle; }
.nv-match-team:last-child { justify-content: flex-end; }
.nv-match-vs {
    font-size: 20px;
    font-weight: 800;
    color: #4ade80;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}
.nv-match-vs b { color: #4ade80; }
.nv-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: var(--c-text-dim, #aaa);
}

/* ── Info row: W/G/V + gem. voorspelling side by side ───────────────────── */
.nv-info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.nv-wgv-block { flex: 1; min-width: 180px; }
.nv-dist-block { flex: 1; min-width: 200px; }
.nv-info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-dim, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

/* Score distribution bars */
.nv-dist-list { display: flex; flex-direction: column; gap: 4px; }
.nv-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.nv-dist-score {
    font-weight: 700;
    min-width: 34px;
    color: var(--c-text, #e8e8e8);
}
.nv-dist-bar-wrap {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    height: 8px;
    overflow: hidden;
}
.nv-dist-bar {
    display: block;
    height: 100%;
    background: var(--c-accent, #0e9fc2);
    border-radius: 3px;
    transition: width 0.3s;
}
.nv-dist-pct {
    min-width: 70px;
    color: var(--c-text-dim, #aaa);
    text-align: right;
}

/* Mode 4 filter row */
.nv4-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.nv4-filters .topusers-subpool {
    margin: 0;
}

/* ── W/G/V bar ───────────────────────────────────────────────────────────── */
.nv-wgv-wrap { margin: 10px 0 14px; }
.nv-wgv-bar {
    display: flex;
    height: 22px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 11px;
}
.nv-wgv-w { background: var(--c-win);  display:flex; align-items:center; justify-content:center; overflow:hidden; }
.nv-wgv-g { background: var(--c-draw); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.nv-wgv-v { background: var(--c-lose); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.nv-wgv-w span, .nv-wgv-g span, .nv-wgv-v span { color:#fff; font-weight:700; white-space:nowrap; padding:0 3px; }
.nv-wgv-legend {
    margin-top: 5px;
    font-size: 12px;
    color: var(--c-text-dim, #aaa);
}
.nv-wgv-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 3px;
}
.nv-wgv-dot-w { background: var(--c-win); }
.nv-wgv-dot-g { background: var(--c-draw); }
.nv-wgv-dot-v { background: var(--c-lose); }

/* ── Prediction page (wedstrijden.php) ──────────────────────────────── */

/* Per-group heading ("Voorspel de Groep A") */
.vp-group-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text, #dff0f6);
    margin: 22px 0 6px;
    letter-spacing: .02em;
}
.vp-group-block { margin-bottom: 24px; }

/* ── Per-group card ──────────────────────────────────────────────────────── */
.vp-group-card {
    background: var(--c-surface, rgba(7,20,38,0.80));
    border: 1px solid var(--c-border, rgba(255,255,255,0.10));
    border-radius: var(--radius, 12px);
    margin-bottom: 20px;
    overflow: hidden;
}
.vp-group-card-header {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-accent, #00d4f0);
    text-transform: uppercase;
    letter-spacing: .08em;
    background: rgba(0,212,240,0.06);
    border-bottom: 1px solid rgba(0,212,240,0.12);
}
/* group counter (N / Total) inside carousel cards — hidden on desktop */
.vp-group-counter { display: none; }
.vp-group-card-body {
    padding: 14px 18px 6px;
}
/* table and vp-matches-label sit flush inside the card */
.vp-group-card .vp-matches-label {
    padding: 8px 18px 4px;
    margin: 0;
}
.vp-group-card .topusers-wrap {
    margin: 0 !important;
    border-radius: 0;
    border: none;
}
.vp-group-card table.list,
.vp-group-card table.pred-table {
    border-radius: 0;
    border: none;
}
.vp-group-card table.pred-table thead th {
    color: var(--c-accent, #00d4f0);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(0,212,240,0.06);
    border-bottom: 1px solid rgba(0,212,240,0.12);
}
.vp-matches-heading { font-size: 13px; font-weight: 700; color: var(--c-text, #dff0f6); }
.vp-intro { display: none; } /* legacy — suppressed */

/* Section slicer tabs */
.pred-slicer {
    display: flex;
    gap: 6px;
    margin: 16px 0 12px;
}
.slicer-btn {
    padding: 8px 22px;
    border: 1px solid var(--c-border, rgba(255,255,255,0.12));
    border-radius: 20px;
    background: transparent;
    color: var(--c-text-dim, rgba(223,240,246,0.60));
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, color .15s;
    -webkit-appearance: none;
    appearance: none;
}
.slicer-btn:hover {
    background: rgba(255,255,255,0.07);
    color: var(--c-text, #eee);
}
.slicer-btn.active {
    background: var(--c-accent, rgba(232,116,10,0.85));
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(14,159,194,0.40), 0 2px 8px rgba(14,159,194,0.25);
}

/* pred-pool-header removed — replaced by .vp-matches-label */

/* ── Pool / group filter slicer ──────────────────────────────────────────── */
.pool-slicer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 16px;
    min-height: 0;
}
.pool-slicer:empty { margin: 0; }
.pool-pill {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--c-border, rgba(255,255,255,0.12));
    background: transparent;
    color: var(--c-text-dim);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .14s, color .14s, border-color .14s;
    white-space: nowrap;
}
.pool-pill:hover {
    background: rgba(0,212,240,0.08);
    border-color: rgba(0,212,240,0.30);
    color: var(--c-accent, #00d4f0);
}
.pool-pill.active {
    background: rgba(0,212,240,0.14);
    border-color: rgba(0,212,240,0.45);
    color: var(--c-accent, #00d4f0);
    font-weight: 700;
}

/* Match prediction table */
table.pred-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 14px;
}
table.pred-table th {
    padding: 7px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-dim, #aaa);
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.15);
}
table.pred-table tr:nth-child(even) {
    background: rgba(255,255,255,0.025);
}
table.pred-table tr:hover {
    background: rgba(255,255,255,0.05);
}
table.pred-table td {
    padding: 8px 10px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--c-text, #eee);
}
table.pred-table td img[width="24"] {
    vertical-align: middle;
    border-radius: 2px;
    margin-right: 5px;
}
table.pred-table .tekst {
    vertical-align: middle;
    font-size: 14px;
}

/* Score inputs - editable */
.inputblue {
    width: 36px;
    padding: 4px 6px;
    border: 1px solid rgba(80,140,255,0.45);
    border-radius: 5px;
    background: rgba(40,80,160,0.18);
    color: #aad0ff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: border-color .15s, background .15s;
    margin: 0 2px;
}
.inputblue:focus {
    border-color: rgba(80,140,255,0.8);
    background: rgba(40,80,160,0.30);
    outline: none;
}

/* Score inputs - readonly (locked) */
.inputro {
    width: 36px;
    padding: 4px 6px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    background: rgba(255,255,255,0.04);
    color: var(--c-text-dim, #aaa);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: not-allowed;
    margin: 0 2px;
}

/* Double/star radio */
table.pred-table input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--c-accent, #e8740a);
    cursor: pointer;
}

/* Notice bar (info/warning) */
.pred-notice {
    padding: 9px 14px;
    margin: 10px 0;
    border-radius: 6px;
    background: rgba(220,160,20,0.08);
    border: 1px solid rgba(220,160,20,0.22);
    color: #e8c84a;
    font-size: 13px;
    line-height: 1.5;
}
.pred-notice-warn {
    background: rgba(220,60,60,0.08);
    border-color: rgba(220,60,60,0.22);
    color: #f08080;
}

/* save bar removed — will be re-added later */

/* ── Completion metric cards ─────────────────────────────────────────────── */
.pred-metric-row {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px;
    flex-wrap: wrap;
}
.pred-metric-card {
    flex: 1 1 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--c-card-bg, #0b1e38);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 10px 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}
.pred-metric-card:hover {
    border-color: var(--c-accent, #0e9fc2);
    background: rgba(14,159,194,0.07);
}
.pred-metric-card--active {
    border-color: var(--c-accent, #0e9fc2);
    background: rgba(14,159,194,0.18);
    box-shadow: 0 0 0 2px rgba(14,159,194,0.40), 0 4px 12px rgba(14,159,194,0.18);
    transform: translateY(-1px);
}
@media (max-width: 680px) {
    .pred-metric-card--active {
        background: rgba(14,159,194,0.22);
        box-shadow: 0 0 0 2px rgba(14,159,194,0.55);
        transform: none;
    }
    .pred-metric-card--active .pred-metric-count { font-size: 17px; color: var(--c-accent); }
    .pred-metric-card--active .pred-metric-label { color: var(--c-text); }
}
.pred-metric-card--done {
    border-color: rgba(0,212,100,0.35);
    background: rgba(0,180,80,0.07);
}
.pred-metric-card--done:hover {
    border-color: rgba(0,212,100,0.6);
}
/* Uncompleted predictions (none or only some filled in) → red */
.pred-metric-card--empty,
.pred-metric-card--partial {
    border-color: rgba(220,60,60,0.45);
    background: rgba(220,60,60,0.06);
}
.pred-metric-card--empty:hover,
.pred-metric-card--partial:hover {
    border-color: rgba(220,60,60,0.7);
}
.pred-metric-card--empty .pred-metric-count,
.pred-metric-card--partial .pred-metric-count {
    color: #e25555;
}
.pred-metric-icon {
    font-size: 22px;
    line-height: 1;
}
.pred-metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text-dim, #8fa8c0);
    text-align: center;
}
.pred-metric-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text, #d0e4f4);
    line-height: 1.1;
}
.pred-metric-of {
    font-size: 11px;
    font-weight: 400;
    color: var(--c-text-dim, #8fa8c0);
}
.pred-metric-na {
    font-size: 13px;
    color: var(--c-text-dim, #8fa8c0);
}
.pred-metric-bar {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ef4444, #f59e0b 50%, #22c55e);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
}
.pred-metric-fill {
    height: 100%;
    width: calc(100% - var(--pct, 0%));
    background: var(--c-surface, #131e2e);
    border-radius: 0 2px 2px 0;
    transition: width 0.4s ease;
}

/* ── Autosave status pill ───────────────────────────────────────────────── */
.vp-autosave-pill {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 500;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    background: rgba(30,40,60,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
}
.vp-autosave-pill.show { opacity: 1; transform: translateY(0); }
.vp-autosave-saving { background: rgba(60,90,150,0.95); }
.vp-autosave-ok     { background: rgba(34,140,80,0.95); border-color: rgba(74,222,128,0.40); }
.vp-autosave-err    { background: rgba(170,45,45,0.95); border-color: rgba(248,113,113,0.40); }

/* ── Admin edit bar ──────────────────────────────────────────────────────── */
.pred-admin-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(160,80,220,0.12);
    border: 1px solid rgba(160,80,220,0.4);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #c084f5;
    flex-wrap: wrap;
}
.pred-admin-icon {
    font-size: 16px;
}
.pred-admin-back {
    margin-left: auto;
    color: var(--c-text-dim, #8fa8c0);
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}
.pred-admin-back:hover {
    color: var(--c-accent, #0e9fc2);
}

/* ── Save bar ─────────────────────────────────────────────────────────────── */
.pred-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: linear-gradient(to top, var(--c-bg, #071426) 70%, transparent);
    padding: 14px 0 18px;
    text-align: center;
    margin-top: 12px;
}
.pred-save-btn {
    display: inline-block;
    padding: 11px 48px;
    background: var(--c-accent, #0e9fc2);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.18s, transform 0.1s;
}
.pred-save-btn:hover {
    background: #00b8d9;
}
.pred-save-btn:active {
    transform: scale(0.97);
}

/* ── KO team select ───────────────────────────────────────────────────────── */
.pred-ko-select {
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 5px;
    background: #0b2240;
    color: var(--c-text, #d0e4f4);
    border: 1px solid rgba(14,159,194,0.35);
    max-width: 150px;
}

/* Bonus question table */
table.pred-table.bonus-table td,
table.uitslagen td {
    padding: 8px 10px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--c-text, #eee);
}

/* Inline predicted poulestand */
.pred-stand {
    margin: 4px 0 8px;
}
.pred-stand-loading {
    color: var(--c-text-dim, #aaa);
    font-size: 13px;
    font-style: italic;
    padding: 8px 0;
    display: block;
}

/* ── Poulestand block (inline predicted + voorspellen_all) ───────────── */
.pstand-block {
    margin: 8px 0 12px;
    display: block;
    width: 100%;
    width: auto;
}
.pstand-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}
.pstand-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-accent, #00d4f0);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.pstand-note {
    font-size: 11px;
    color: var(--c-text-dim, rgba(223,240,246,0.55));
    font-style: italic;
}
/* Scrollable wrapper — full-width with horizontal scroll on narrow screens */
.pstand-block .topusers-wrap {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
}
table.pstand-tbl {
    width: 100%;
    min-width: 320px;
    font-size: 12px;
    white-space: nowrap;
}
table.pstand-tbl thead th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-dim);
    padding: 4px 7px;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
table.pstand-tbl thead th.pstand-col-name { text-align: left; }
table.pstand-tbl tbody td {
    padding: 4px 7px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
    text-align: center;
    color: var(--c-text-dim);
}
table.pstand-tbl tbody tr:last-child td { border-bottom: none; }
table.pstand-tbl tbody tr:hover td { background: rgba(255,255,255,0.04); }
.pstand-col-rank { width: 18px; text-align: center; }
.pstand-col-flag { width: 60px; text-align: center; padding: 2px 4px; }
.pstand-col-flag .pred-flag { display: inline-block !important; width: 40px !important; height: auto !important; }
.pstand-flag { width: 40px; height: auto; display: block; margin: 0 auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.pstand-col-name { text-align: left !important; color: var(--c-text) !important; font-weight: 500; padding-right: 12px !important; }
.pstand-col-stat { width: 24px; }
.pstand-col-pts  { width: 28px; font-weight: 700; color: var(--c-text) !important; }
/* Top 2 rows highlighted (qualify) */
table.pstand-tbl tbody tr.pstand-qualify td { background: rgba(14,159,194,0.06); }
table.pstand-tbl tbody tr.pstand-qualify .pstand-col-name { color: var(--c-accent) !important; }

/* ── Group label above match table ──────────────────────────────────── */
.vp-matches-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 14px 0 2px;
}

/* ── Read-only score cell ─────────────────────────────────────────────── */
.pred-score-ro {
    padding: 6px 10px !important;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}
.pred-score-static {
    display: inline-block;
    width: 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text-dim);
    text-align: center;
}

/* Stat image in bonus table */
table.pred-table td img[width="32px"],
table.uitslagen td img[width="32px"] {
    vertical-align: middle;
}

/* Select boxes in bonus/KO */
select.select, select.select2 {
    padding: 4px 8px;
    border: 1px solid rgba(80,140,255,0.35);
    border-radius: 5px;
    background: rgba(20,30,60,0.5);
    color: #aad0ff;
    font-size: 14px;
}
select.disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Match W/G/V prediction bar (wedstrijden.php) ───────────────────── */
.pred-wgv-cell {
    width: 72px;
    padding: 6px 8px !important;
    vertical-align: middle;
}
.pred-wgv-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.07);
    gap: 2px;
}
.pred-wgv-w,
.pred-wgv-g,
.pred-wgv-v {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0,0,0,0.65);
}
.pred-wgv-w span,
.pred-wgv-g span,
.pred-wgv-v span { white-space: nowrap; }
.pred-wgv-w { background: var(--c-win,  #4caf50); }
.pred-wgv-g { background: var(--c-draw, #9e9e9e); }
.pred-wgv-v { background: var(--c-lose, #f44336); }
.pred-wgv-labels { display: none; }
/* WGV bar as link */
.pred-wgv-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    padding-top: 10px;
}
.pred-wgv-link:hover .pred-wgv-bar {
    background: rgba(255,255,255,0.13);
}

/* ── Match cell layout ───────────────────────────────────────────────── */
.pred-match-cell {
    padding: 8px 12px !important;
}
.pred-match-teams {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pred-team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.pred-team-away {
    flex-direction: row-reverse; /* flag on right for away team */
}
.pred-flag {
    flex-shrink: 0;
    width: 40px;
    height: auto;
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.pred-team-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text, #eee);
}
.pred-team-unknown {
    font-size: 12px;
    font-style: italic;
    color: var(--c-text-dim);
}
.pred-vs {
    color: var(--c-text-dim, #888);
    font-size: 13px;
    flex-shrink: 0;
    padding: 0 2px;
}
.pred-match-meta {
    margin-top: 4px;
    font-size: 11px;
    color: var(--c-text-dim, #888);
    letter-spacing: 0.02em;
}
.pred-ko-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #aad0ff;
    background: rgba(80,140,255,0.12);
    border: 1px solid rgba(80,140,255,0.25);
    border-radius: 3px;
    padding: 1px 5px;
    margin-bottom: 5px;
}

/* ── Round # cell ───────────────────────────────────────────────────── */
.pred-rnd-cell {
    text-align: center;
    color: var(--c-text-dim);
    font-size: 12px;
    width: 32px;
    padding: 6px 4px !important;
    vertical-align: top;
}
/* ── Dubbel (×2) column ─────────────────────────────────────────────── */
.pred-dub-cell {
    text-align: center;
    width: 36px;
    padding: 6px 2px !important;
    vertical-align: middle;
    white-space: nowrap;
}

/* ── Score row inside match cell (read-only) ─────────────────────────── */
.pred-match-score {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
}
.pred-match-score--ro {
    font-weight: 700;
    color: var(--c-text);
}

/* ── Match card: symmetric 3-col grid ────────────────────────────────────
   Row 1: [flag name]  vs  [name flag]   ← teams always visible
   Row 2: [stepper  ]      [  stepper]   ← inputs below
   ────────────────────────────────────────────────────────────────────── */
.mc {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 6px;
    align-items: center;
}
/* Row 1 — home team */
.mc-row-home {
    grid-column: 1; grid-row: 1;
    display: flex; align-items: center; gap: 5px; min-width: 0;
}
/* vs in row 2 — centered between the two steppers */
.mc-vs {
    grid-column: 2; grid-row: 2;
    align-self: center; justify-self: center;
    font-size: 12px; font-weight: 700;
    color: var(--c-text-dim); text-align: center;
    line-height: 1;
}
.mc-vs-edit, .mc-vs-ro { padding-right: 0; }
/* Row 1 — away team, left-aligned, flag on right of name */
.mc-row-away {
    grid-column: 3; grid-row: 1;
    display: flex; align-items: center; gap: 5px; min-width: 0;
    justify-content: flex-start;
}
.mc-row-away .mc-team { flex-direction: row-reverse; min-width: 0; }
.mc-row-home .mc-team { min-width: 0; }
/* Flags: never shrink, consistent size even if image missing */
.mc-row-home .pred-flag,
.mc-row-away .pred-flag { flex-shrink: 0; width: 42px !important; height: 24px; object-fit: contain; }
/* Away flag: no extra margin needed when left-aligned */
.mc-row-away .pred-flag { margin-right: 0; }
/* Team names: slightly larger */
.mc .mc-name { font-size: 15px; font-weight: 500; min-width: 0; }
/* Row 2 — home stepper/score: right-aligned so it sits flush against vs */
.mc-input-home {
    grid-column: 1; grid-row: 2;
    display: flex; align-items: center; justify-content: flex-end;
    padding-top: 10px;
}
/* Row 2 — away stepper/score: left-aligned so it sits flush against vs */
.mc-input-away {
    grid-column: 3; grid-row: 2;
    display: flex; align-items: center; justify-content: flex-start;
    padding-top: 10px;
}
/* Legacy mc-row class (kept for compatibility) */
.mc-row { display: flex; align-items: center; gap: 8px; }
.mc-team {
    display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.mc-name {
    font-size: 14px; font-weight: 500; color: var(--c-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mc-score-ro {
    font-size: 18px; font-weight: 700; min-width: 28px; text-align: center;
    color: var(--c-text); font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.mc-no-score { color: var(--c-text-dim); font-size: 14px; }
.mc-meta { font-size: 11px; color: var(--c-text-dim); margin-bottom: 2px; }

/* ── Inner flex layout: left (teams+meta+score) | right (WGV+bekijk) ─── */
.pred-match-cell { vertical-align: top; }
.pred-match-inner {
    display: flex;
    align-items: stretch;
    gap: 16px;
}
.pred-match-left {
    flex: 1 1 0%;
    min-width: 0;
}
/* voorspellen_all: flex rows at ALL widths — pred-match-cell always gets remaining width */
table.pred-table--vpa,
table.pred-table--vpa tbody { display: block; width: 100%; }
table.pred-table--vpa thead { display: none; }
table.pred-table--vpa tr.vp-match-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    overflow: hidden;
}
/* suppress base alternating-row background on card rows */
table.pred-table--vpa tr:nth-child(even) { background: transparent !important; }
table.pred-table--vpa tr.vp-match-row > td.pred-rnd-cell {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    padding: 0 !important;
    text-align: center;
    color: var(--c-text-dim);
    font-size: 12px;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.07);
    border-bottom: none !important;
}
table.pred-table--vpa tr.vp-match-row > td.pred-match-cell {
    flex: 1;
    min-width: 0;
    padding: 14px 14px 10px !important;
    border: none !important;
}
table.pred-table--vpa tr.vp-subtotal,
table.pred-table--vpa tr.vp-total-row { display: block; width: 100%; }
table.pred-table--vpa tr.vp-subtotal > td,
table.pred-table--vpa tr.vp-total-row > td { display: flex !important; padding: 8px 12px !important; }
.pred-match-inner--vpa { display: block; }
.pred-match-inner--vpa .pred-match-left { display: block; }
/* mc must not overflow its cell */
.mc { min-width: 0; }

/* Desktop: right-side panel — dubbel stacked above bekijk */
.pred-match-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    width: auto;
}
.pred-dub-wrap { flex-shrink: 0; }
.pred-match-bottom .vp-click-btn { align-self: flex-end; }

.pred-wgv-wrap { min-width: 0; }
.pred-wgv-fullwidth { width: 100%; margin-top: 6px; }
.pred-wgv-fullwidth .pred-wgv-bar { width: 100%; }
/* WGV bar sits below pred-match-inner inside pred-match-cell */

/* Narrow: stack left+right vertically */
@media (max-width: 520px) {
    .pred-match-inner { flex-direction: column; align-items: stretch; gap: 0; }
    .pred-match-bottom {
        flex-direction: row;
        align-items: center;
        width: auto;
        min-width: 0;
        margin-top: 4px;
        justify-content: flex-end;
    }
    .pred-dub-wrap { justify-content: flex-start; }
}

/* Swipe hint is a touch-only affordance — hide it on desktop (the card switcher
   is keyboard/click driven there). The styled/animated version lives in the
   ≤680px block below. */
@media (min-width: 681px) {
    .pool-swipe-hint { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   user_voorspellen / voorspellen_all — MOBILE REBUILD (≤ 680px)
   Goals: no hidden data, swipe-friendly nav, bigger tap targets,
   table → stacked cards.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
    /* ── Reduce page-content side padding; allow overflow so sticky slicer works ── */
    .page-content { padding: 16px 14px; overflow: visible; }
    /* Stats header: match reduced padding so it bleeds full width */
    .stats-header { margin: -16px -14px 14px -14px; padding: 10px 14px; }

    /* ── Metric cards: 4-across compact grid ──────────────────── */
    .pred-metric-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin: 10px 0 14px;
    }
    .pred-metric-card {
        flex: none;
        padding: 8px 4px 8px;
        gap: 2px;
        min-width: 0;
        border-radius: 8px;
    }
    .pred-metric-icon { font-size: 18px; }
    .pred-metric-label {
        font-size: 9px;
        letter-spacing: 0.02em;
        line-height: 1.15;
    }
    .pred-metric-count { font-size: 14px; }
    .pred-metric-of { font-size: 9px; }
    .pred-metric-na  { font-size: 11px; }
    .pred-metric-bar { margin-top: 3px; }

    /* ── Section slicer: sticky top so active tab always visible ── */
    #section-slicer.pred-slicer {
        position: sticky;
        top: 0;
        z-index: 40;
        background: #150a05;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        overflow: visible;
        color-scheme: dark;
    }
    .pred-slicer {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        margin: 6px -14px 6px;
        padding: 4px 14px 6px;
        scrollbar-width: none;
    }
    .pred-slicer::-webkit-scrollbar { display: none; }
    .pred-slicer .slicer-btn {
        flex: 0 0 auto;
        padding: 8px 18px;
        font-size: 13px;
        scroll-snap-align: center;
        color: #dff0f6 !important;
        -webkit-text-fill-color: #dff0f6 !important;
        background: rgba(35, 18, 6, 0.9) !important;
        border-color: rgba(255,255,255,0.22) !important;
        -webkit-appearance: none;
        appearance: none;
        color-scheme: dark;
    }
    .pred-slicer .slicer-btn.active {
        background: #00d4f0 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        border-color: transparent !important;
    }

    /* ── Swipeable pool-pill bar — visually nested under active section ── */
    .pool-slicer-wrap {
        position: relative;
        margin: 4px 0 8px 12px;          /* indent to show hierarchy */
        border-left: 2px solid rgba(14,159,194,0.35);
        padding-left: 10px;
    }
    .pool-slicer-wrap::before,
    .pool-slicer-wrap::after {
        content: "";
        position: absolute;
        top: 0; bottom: 10px;
        width: 28px;
        pointer-events: none;
        z-index: 2;
        transition: opacity .18s;
    }
    .pool-slicer-wrap::before {
        left: 0;
        background: linear-gradient(to right, var(--c-bg, #071426), transparent);
    }
    .pool-slicer-wrap::after {
        right: 0;
        background: linear-gradient(to left, var(--c-bg, #071426), transparent);
    }
    .pool-slicer-wrap.at-start::before { opacity: 0; }
    .pool-slicer-wrap.at-end::after    { opacity: 0; }
    .pool-slicer {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 2px 14px 6px;
        scrollbar-width: none;
    }
    .pool-slicer::-webkit-scrollbar { display: none; }
    .pool-pill {
        flex: 0 0 auto;
        scroll-snap-align: center;
        padding: 8px 18px;
        font-size: 13px;
    }
    .pool-pill.active {
        box-shadow: 0 0 0 2px rgba(14,159,194,0.35);
    }
    /* Pagination dots under the slicer */
    .pool-dots {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin: -2px 0 8px;
    }
    .pool-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.18);
        transition: background .18s, transform .18s;
    }
    .pool-dot.active {
        background: var(--c-accent, #0e9fc2);
        transform: scale(1.4);
    }
    /* One-time swipe hint animation */
    .pool-swipe-hint {
        text-align: center;
        font-size: 11px;
        color: var(--c-text-dim);
        letter-spacing: 0.04em;
        margin: 0 0 6px;
        opacity: 0;
        animation: poolSwipePulse 2.4s ease-out 0.3s 2 forwards;
    }
    @keyframes poolSwipePulse {
        0%, 100% { opacity: 0; transform: translateX(0); }
        25%       { opacity: 1; transform: translateX(-4px); }
        50%       { opacity: 0.8; transform: translateX(4px); }
        75%       { opacity: 1; transform: translateX(0); }
    }

    /* Pool group card directional slide */
    @keyframes poolCardSlideRight {
        from { opacity: 0; transform: translateX(32px); }
        to   { opacity: 1; transform: none; }
    }
    @keyframes poolCardSlideLeft {
        from { opacity: 0; transform: translateX(-32px); }
        to   { opacity: 1; transform: none; }
    }
    .pool-card-slide-right { animation: poolCardSlideRight 0.22s ease-out both; }
    .pool-card-slide-left  { animation: poolCardSlideLeft  0.22s ease-out both; }

    /* ── Group card: trim padding ─────────────────────────────── */
    .vp-group-card { padding: 0; margin-bottom: 12px; border-left: none; border-right: none; border-radius: 0; }
    .vp-group-card-header { font-size: 14px; padding: 8px 12px; }
    .vp-group-card .vp-matches-label,
    .vp-matches-label { margin: 10px 0 6px; font-size: 11px; }

    /* ── Table → card transform ───────────────────────────────── */
    .vp-group-card .topusers-wrap { overflow: visible; margin: 0; }
    table.pred-table,
    table.pred-table thead,
    table.pred-table tbody {
        display: block;
        width: 100%;
    }
    table.pred-table thead { display: none; }
    table.pred-table tr.vp-match-row,
    table.pred-table tr.vp-subtotal,
    table.pred-table tr.vp-total-row {
        display: block;
        width: 100%;
    }
    table.pred-table tr.vp-match-row {
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 10px;
        background: rgba(255,255,255,0.03) !important;
        margin-bottom: 8px;
        padding: 10px 12px 12px;
    }
    table.pred-table tr.vp-match-row:hover td { background: transparent !important; }
    table.pred-table tr.vp-match-row > td { display: block; width: 100%; border: none !important; padding: 0 !important; }
    /* put match cell first, dubbel at the bottom */
    table.pred-table tr.vp-match-row > .pred-match-cell { order: 1; }
    table.pred-table tr.vp-match-row > .pred-dub-cell   { order: 2; margin-top: 8px; }
    table.pred-table tr.vp-subtotal > td,
    table.pred-table tr.vp-total-row > td {
        display: flex !important;
        width: 100%;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Round # shown in meta line instead of its own cell */
    .pred-rnd-cell { display: none !important; }

    /* Dubbel column removed — now lives in pred-match-bottom */
    .pred-dub-cell { display: none !important; }

    .pred-match-cell { padding: 0 !important; }
    /* Row layout: left column (mc stacked above WGV bar), right column (arrow) */
    .pred-match-inner { flex-direction: row; gap: 0; align-items: stretch; }
    .pred-match-left  { flex: 1; min-width: 0; overflow: hidden; }
    /* Right column: arrow sits at the bottom, aligned with the WGV bar */
    .pred-match-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        width: auto;
        margin-top: 0;
        padding: 0;
        border-top: none;
        border-left: none;
    }
    .pred-match-bottom .vp-click-btn { margin-left: 0; align-self: center; font-size: 44px; padding: 4px 12px; }
    /* Meta: never wrap */
    .mc-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Bigger tap targets for steppers */
    .stepper-btn { width: 32px; height: 36px; font-size: 18px; }
    .pred-stepper .inputblue {
        width: 40px; min-width: 40px; height: 36px; font-size: 16px;
    }

    /* Match: 3-col × 2-row grid — vs spans both rows, perfectly centered */
    .mc {
        display: grid;
        grid-template-columns: 1fr 22px 1fr;
        grid-template-rows: auto auto;
        gap: 6px 6px;
    }
    /* Scores row 2: enforce alignment — home right (toward vs), away left (toward vs) */
    .mc-input-home { justify-content: flex-end !important; }
    .mc-input-away { justify-content: flex-start !important; }
    /* Mobile: flags never shrink; names truncate cleanly */
    .mc-row-home .pred-flag,
    .mc-row-away .pred-flag { flex-shrink: 0; }
    .mc-row-home .mc-name,
    .mc-row-away .mc-name { flex-shrink: 1; min-width: 0; font-size: 13px; }
    /* KO select: full column width */
    .mc-row-home .mc-name:has(select),
    .mc-row-away .mc-name:has(select) { white-space: normal; overflow: visible; flex: 1; }
    /* Row 2: steppers / scores */
    .mc-input-home {
        grid-column: 1; grid-row: 2;
        display: flex; align-items: center;
        padding-left: 10px;
    }
    .mc-input-away {
        grid-column: 3; grid-row: 2;
        display: flex; align-items: center; justify-content: flex-end;
        padding-right: 10px;
    }

    /* ── Mobile dubbel row: shown as full-width pill above team rows ── */
    /* Use .mc > .mc-dub-row (specificity 0,2,0) so it beats the global
       .mc-dub-row { display:none } (0,1,0) that comes later in the file */
    .mc > .mc-dub-row {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 0 2px 2px;
    }
    .mc-dub-row .pred-dub-wrap { flex-direction: row; justify-content: flex-end; }
    .mc-dub-row .pred-dubbel-label {
        font-size: 12px;
        padding: 5px 14px;
        min-height: 30px;
        min-width: 80px;
        justify-content: center;
    }
    /* When mc-dub-row is present: push team rows to row 2, scores/vs to row 3 */
    .mc:has(.mc-dub-row) .mc-row-home,
    .mc:has(.mc-dub-row) .mc-row-away { grid-row: 2; }
    .mc:has(.mc-dub-row) .mc-vs,
    .mc:has(.mc-dub-row) .mc-input-home,
    .mc:has(.mc-dub-row) .mc-input-away { grid-row: 3; }
    /* Hide the tiny right-panel dubbel on mobile (replaced by mc-dub-row) */
    .pred-match-bottom .pred-dub-wrap,
    .pred-match-bottom .pred-dubbel-on { display: none !important; }

    /* Team names: fully readable */
    .mc-name { font-size: 12px; flex: 1; min-width: 0; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mc-row-away .mc-name { text-align: right; }
    .mc-score-ro { font-size: 18px; font-weight: 800; }

    /* KO selects: full column width, max readable size on one line */
    .pred-ko-select {
        max-width: none !important;
        width: 100% !important;
        box-sizing: border-box;
        font-size: 14px;
        padding: 7px 8px;
        min-height: 38px;
        border-radius: 6px;
        white-space: nowrap;
    }
    .mc-row-home .mc-name:has(select),
    .mc-row-away .mc-name:has(select) { white-space: normal; overflow: visible; flex: 1; }

    /* Steppers */
    .mc .stepper-btn { width: 30px; height: 36px; font-size: 18px; }
    .mc .pred-stepper .inputblue { width: 38px; min-width: 38px; height: 36px; font-size: 16px; }

    /* Remove desktop padding offsets */
    .mc-vs-edit, .mc-vs-ro { padding-right: 0; }

    /* Constrain WGV bar to its cell — no overflow */
    .pred-wgv-fullwidth { width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 6px; }
    .pred-wgv-fullwidth .pred-wgv-bar { width: 100%; box-sizing: border-box; }
    .mc-meta { font-size: 10px; margin-bottom: 4px; }

    /* KO select full width in the team-name slot */
    .pred-ko-select {
        max-width: none;
        width: 100%;
        font-size: 14px;
        padding: 6px 8px;
    }
    .mc-team { min-width: 0; }

    /* KO round badge */
    .pred-ko-badge { font-size: 9px; padding: 1px 5px; margin-bottom: 4px; }

    /* Poulestand table: full width + compact so it matches wedstrijden table */
    .vp-group-card .vp-group-card-body { padding: 0; }
    .vp-group-card .pstand-header { display: none; }
    .pstand-block { margin: 0 0 8px; }
    .pstand-block .topusers-wrap { overflow-x: visible !important; }
    table.pstand-tbl {
        min-width: 0 !important;
        width: 100%;
        font-size: 11px;
        table-layout: fixed;
    }
    table.pstand-tbl thead th { padding: 2px 1px; font-size: 9px; }
    table.pstand-tbl tbody td { padding: 3px 1px; }
    .pstand-col-rank { width: 16px !important; }
    .pstand-col-flag { width: 30px !important; padding: 0 1px !important; }
    .pstand-flag     { width: 22px !important; }
    .pstand-col-name {
        padding-left: 2px !important;
        padding-right: 2px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .pstand-col-stat { width: 20px !important; font-size: 10px; }
    .pstand-col-pts  { width: 24px !important; }

    /* Bonus rows: icon+label on row 1, input full-width on row 2 */
    .bonus-row { padding: 10px 12px; gap: 8px 10px; }
    .bonus-label { min-width: 0; flex: 1; }          /* grows to fill row 1 after icon */
    /* Use .bonus-row > .bonus-input for higher specificity than .stat-input-cell (0,1,0)
       and than theme.css .bonus-input { flex:2 1 0; align-items:flex-end } */
    .bonus-row > .bonus-input {
        flex: 0 0 100%;                               /* own row, fixed full width */
        white-space: normal !important;               /* override .stat-input-cell nowrap */
        padding: 4px 0 0 !important;                  /* override .stat-input-cell padding */
        align-items: stretch;                         /* override theme.css align-items:flex-end */
    }
    .bonus-input .gb-input,
    .bonus-input select { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
    .bonus-input .pred-stepper { width: 100%; display: flex; justify-content: center; }
    .bonus-row .admin-icon-btn { display: none; }     /* hide detail link — clutter on mobile */
    .stat-title { font-size: 13px; }
    .stat-tip { font-size: 11px; }

    /* WGV bar smaller */
    .pred-wgv-labels { font-size: 9px; }

    /* Save bar: wide button */
    .pred-save-bar { padding: 10px 0 14px; }
    .pred-save-btn { width: 100%; max-width: 420px; padding: 13px 24px; font-size: 14px; }

    /* Notices: tighter */
    .pred-notice { padding: 8px 12px; font-size: 12px; }
    .pred-admin-bar { padding: 8px 12px; font-size: 12px; }

    /* ── Pool/KO sections: native scroll-snap carousel on mobile ── */
    .pool-slicer-wrap { display: none; }
    .vp-carousel-wrap { overflow: hidden; margin: 0; }
    #section-pool,
    #section-knockout {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        gap: 0;
        padding: 0;
    }
    #section-pool::-webkit-scrollbar,
    #section-knockout::-webkit-scrollbar { display: none; }
    #section-pool > .vp-group-card,
    #section-knockout > .vp-group-card {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-bottom: 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    }
    /* Non-card items (notices etc.) in scroll sections: full-width, no snap */
    #section-pool > :not(.vp-group-card),
    #section-knockout > :not(.vp-group-card) {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-align: none;
    }
    .vp-group-card-header { display: flex; align-items: center; justify-content: space-between; }
    .vp-group-counter { display: inline; font-size: 11px; color: rgba(237,233,224,0.78); font-weight: 500; }
}

/* Very narrow: 360px phones — allow 2×2 metric grid so labels breathe */
@media (max-width: 360px) {
    .pred-metric-row { grid-template-columns: repeat(2, 1fr); }
    .pred-metric-icon { font-size: 20px; }
    .pred-metric-label { font-size: 10px; }
    .pred-metric-count { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   voorspellen_all — MOBILE REBUILD (≤ 680px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
    /* Personal stats grid: 2 cols, tighter */
    .ps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ps-card { flex: none; max-width: none; min-width: 0; padding: 10px 12px; }
    .ps-card .ps-label { font-size: 10px; }
    .ps-card .ps-value { font-size: 18px; }
    .ps-card .ps-unit { font-size: 11px; }

    /* stand_detail promo card: span full width when it appears */
    .ps-grid > .vp-sd-card { grid-column: 1 / -1; }

    /* Score row: stack score lines so they don't wrap mid-line */
    .vpa-score-row { font-size: 12px; line-height: 1.6; }
    .vpa-score-label { font-size: 10px; }

    /* vpa-right is no longer used on mobile — replaced by vpa-bottom-bar */
    .vpa-right { display: none !important; }
    /* pts in bottom bar */
    .vpa-pts-wrap { flex-direction: row; align-items: center; gap: 6px; flex-shrink: 0; }
    .vpa-pts { font-size: 20px; }
    .vpa-pts-label { font-size: 10px; }
    .vpa-land-pts { font-size: 12px; }

    /* KO teams line: wrap safely */
    .vpa-ko-teams { flex-wrap: wrap; font-size: 12px; gap: 4px 6px; }

    /* Teams line: 3-col grid so home | dash | away stay on one line */
    .pred-mle-teams {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 4px 6px;
    }
    .pred-mle-dash  { text-align: center; color: var(--c-text-dim); font-size: 11px; }
    /* Home: left-aligned; Away: right-aligned */
    .pred-mle-teams > .pred-team:first-child  { justify-content: flex-start; min-width: 0; }
    .pred-mle-teams > .pred-team-away         { justify-content: flex-end;   min-width: 0; flex-direction: row-reverse; }
    /* Truncate long team names */
    .pred-mle-teams .pred-team-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 75px;
        display: inline-block;
        vertical-align: middle;
    }
    /* Score row below teams */
    .vpa-score-row { margin-top: 4px; font-size: 12px; line-height: 1.6; }

    /* Subtotal / grand total rows: card-friendly */
    tr.vp-subtotal td,
    tr.vp-total-row td {
        padding: 8px 12px !important;
        font-size: 12px;
        text-align: left;
    }
    .vp-subtotal-pts,
    .vpa-grand-pts { float: right; }

    /* ── voorspellen_all pool/KO sections: scroll-snap carousel ── */
    .vp-carousel-wrap { overflow: hidden; margin: 0; }
    #vp-pool,
    #vp-ko {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        gap: 0;
        padding: 0;
    }
    #vp-pool::-webkit-scrollbar,
    #vp-ko::-webkit-scrollbar { display: none; }
    #vp-pool > .vp-group-card,
    #vp-ko > .vp-group-card {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-bottom: 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    }
    .vp-group-card-header { display: flex; align-items: center; justify-content: space-between; }
    .vp-group-counter { display: inline; font-size: 11px; color: rgba(237,233,224,0.78); font-weight: 500; }
    .pool-slicer-wrap { display: none; }
}

@media (max-width: 360px) {
    .ps-grid { grid-template-columns: 1fr 1fr; }
    .ps-card .ps-value { font-size: 16px; }
}

/* ── Score stepper ───────────────────────────────────────────────────── */
.pred-score-cell {
    padding: 6px 10px !important;
    white-space: nowrap;
    vertical-align: middle;
}
.pred-score-cell { display: table-cell; }
.pred-score-cell > * { display: inline-flex; vertical-align: middle; }
.pred-score-sep {
    display: inline-block;
    margin: 0 6px;
    color: var(--c-text-dim, #888);
    font-size: 13px;
    vertical-align: middle;
}
.pred-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(80,140,255,0.35);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(20,30,60,0.3);
    align-self: flex-start; /* prevent stretching to 100% when inside a flex-column .gb-field */
}
.stepper-btn {
    width: 24px;
    height: 30px;
    border: none;
    background: rgba(80,140,255,0.10);
    color: #7abaff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background .12s;
    flex-shrink: 0;
}
.stepper-btn:hover {
    background: rgba(80,140,255,0.25);
}
.stepper-btn:active {
    background: rgba(80,140,255,0.40);
}
/* Generic input inside any pred-stepper (admin pages use gb-input, params-num, etc.) */
.pred-stepper input {
    width: auto;          /* override .gb-input width:100% so + button isn't clipped */
    border: none;
    border-left: 1px solid rgba(80,140,255,0.20);
    border-right: 1px solid rgba(80,140,255,0.20);
    border-radius: 0;
    background: transparent;
    text-align: center;
    height: 30px;
    box-sizing: border-box;
    padding: 4px 6px;
    color: inherit;
}
/* Override inputblue inside stepper — no border, no bg (stepper provides it) */
.pred-stepper .inputblue {
    width: 32px;      /* default for score inputs (2 digits) */
    min-width: 32px;
    margin: 0;        /* reset inputblue's 2px side-margins so buttons sit flush */
    border: none;
    border-left: 1px solid rgba(80,140,255,0.20);
    border-right: 1px solid rgba(80,140,255,0.20);
    border-radius: 0;
    background: transparent;
    text-align: center;
    padding: 4px 4px;
    height: 30px;
    box-sizing: border-box;
}
/* awb size overrides — must come AFTER .pred-stepper .inputblue to win on specificity */
.pred-stepper .inputblue.awb-num-sm    { width: 48px; min-width: 48px; }
.pred-stepper .inputblue.awb-num-lg    { width: 64px; min-width: 64px; }
.pred-stepper .inputblue.awb-tijd-input { width: 64px; min-width: 64px; }
/* Wider stepper input for bonus number questions (4 digits) */
.stat-input-cell .pred-stepper .inputblue {
    width: 56px;
    min-width: 56px;
}
.pred-stepper-ro {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.pred-stepper-ro .inputro {
    width: 32px;
    border: none;
    background: transparent;
    text-align: center;
    padding: 4px 2px;
    height: 30px;
    box-sizing: border-box;
}

/* Star / double radio cell */
.pred-star-cell {
    text-align: center;
    padding: 6px 8px !important;
    vertical-align: middle;
}
.pred-star-cell input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--c-accent, #e8740a);
    cursor: pointer;
}

/* Disabled stepper buttons (readonly rows) — same shape, muted color */
.stepper-btn:disabled {
    color: rgba(255,255,255,0.18);
    background: transparent;
    cursor: default;
    pointer-events: none;
}
/* Readonly input inside same stepper — keep blue tint but dimmed */
.pred-stepper .inputblue[readonly] {
    color: var(--c-text-dim, #aaa);
    opacity: 0.6;
    cursor: default;
}
/* Remove the now-unused pred-stepper-ro variant */

/* ── Dubbel badge toggle ─────────────────────────────────────────────── */
/* mc-dub-row: mobile-only prominent dubbel toggle injected into the mc grid;
   hidden on desktop (dubbel lives in pred-match-bottom there) */
.mc-dub-row { display: none; }

.dubbel-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.pred-dubbel-cell {
    text-align: center;
    padding: 6px 10px !important;
    vertical-align: middle;
}
/* Dubbel toggle — unselected: muted pill */
.pred-dubbel-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.04);
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
    user-select: none;
    white-space: nowrap;
}
.pred-dubbel-label:hover {
    border-color: rgba(249,115,22,0.50);
    color: #f97316;
    background: rgba(249,115,22,0.10);
    transform: scale(1.03);
}
/* Checked / active — orange pill with glow */
/* label wraps input — use :has() to detect checked state */
label.pred-dubbel-label:has(.dubbel-radio:checked),
.pred-dubbel-label.pred-dubbel-on {
    background: rgba(249,115,22,0.18);
    color: #f97316;
    border-color: rgba(249,115,22,0.65);
    box-shadow: 0 0 10px rgba(249,115,22,0.30);
    transform: none;
}

/* ── Bonus question rows ─────────────────────────────────────────────── */
.bonus-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.bonus-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bonus-row:last-child {
    border-bottom: none;
}
.bonus-icon {
    flex-shrink: 0;
    object-fit: contain;
}
.bonus-label {
    flex: 1;
    min-width: 140px;
}
.bonus-input {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}
/* Very narrow phones: smaller icon; inherit the ≤680px layout rules above */
@media (max-width: 480px) {
    .bonus-icon { width: 32px; height: 32px; }
    .bonus-label { min-width: 0; flex: 1; }
}
.stat-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text, #eee);
}
.stat-tip {
    display: block;
    font-size: 12px;
    color: var(--c-text-dim, #999);
    margin-top: 3px;
    line-height: 1.4;
}
/* Tables inside stat-tip (WYSIWYG content) */
.stat-tip table {
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 6px;
    width: 100%;
}
.stat-tip table th,
.stat-tip table td {
    border: 1px solid rgba(128,128,128,0.30);
    padding: 3px 7px;
    text-align: left;
    vertical-align: top;
}
.stat-tip table th {
    font-weight: 700;
    background: rgba(128,128,128,0.10);
}
.stat-avg {
    font-style: italic;
    opacity: 0.75;
}
.stat-score-info {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.stat-score-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.stat-score-exact {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}
.stat-score-range {
    background: rgba(14,159,194,0.15);
    color: var(--c-accent);
    border: 1px solid rgba(14,159,194,0.3);
}
.stat-score-desc {
    font-size: 11px;
    color: var(--c-text-dim);
    white-space: nowrap;
}
.stat-input-cell {
    padding: 8px 12px !important;
    vertical-align: middle;
    white-space: nowrap;
}

/* ── admin_stat_bewerk.php ── */
.stat-img-tile {
    display:flex;align-items:center;justify-content:center;
    width:52px;height:52px;border-radius:8px;cursor:pointer;
    background:rgba(255,255,255,0.04);border:2px solid transparent;
    transition:border-color .15s,background .15s;
}
.stat-img-tile:hover { background:rgba(255,255,255,0.09); }
.stat-img-tile.selected { border-color:var(--c-accent);background:rgba(232,116,10,0.12); }

/* ── bonus_detail.php ── */
.wd-panel        { border-radius:10px; border:1px solid rgba(255,255,255,0.10); background:rgba(255,255,255,0.04); overflow:hidden; margin-bottom:18px; display:inline-block; width:auto; min-width:320px; }
.wd-panel-match  { display:flex; align-items:center; padding:12px 16px 10px; gap:10px; }
.wd-panel-name   { font-size:14px; font-weight:700; color:var(--c-text,#dff0f6); }
a.wd-team-link   { text-decoration:none; transition:color .12s; }
a.wd-team-link:hover { color:var(--c-accent); }
a.wd-loc-link    { text-decoration:none; transition:color .12s; }
a.wd-loc-link:hover  { color:var(--c-accent); text-decoration:underline; }
.wd-panel-meta   { display:flex; align-items:center; gap:14px; padding:6px 16px 8px; flex-wrap:wrap; border-top:1px solid rgba(255,255,255,0.06); font-size:11px; color:var(--c-text-dim,#aaa); }
.wd-panel-meta-item { white-space:nowrap; }
.wd-panel-dist   { padding:8px 16px 12px; border-top:1px solid rgba(255,255,255,0.06); }
.wd-panel-dist-label { font-size:11px; font-weight:600; color:var(--c-text-dim,#aaa); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
.wd-dist-tbl     { width:100%; border-collapse:collapse; font-size:12px; }
.wd-dist-tbl th  { color:var(--c-text-dim,#aaa); font-weight:600; padding:2px 6px; text-align:left; border-bottom:1px solid rgba(255,255,255,0.10); }
.wd-dist-tbl td  { padding:2px 6px; color:var(--c-text,#dff0f6); border-bottom:1px solid rgba(255,255,255,0.04); }
.wd-dist-score   { font-weight:700; min-width:80px; }
.wd-dist-n       { color:var(--c-text-dim,#aaa); text-align:right; }
.wd-dist-bar-cell { width:100%; padding:2px 6px; }
.wd-dist-bar     { display:block; height:6px; border-radius:3px; background:var(--c-primary,#0e9fc2); opacity:0.7; }
.wd-dist-pct     { text-align:right; color:var(--c-text-dim,#aaa); white-space:nowrap; width:1px; }
.wd-dist-total td { border-top:1px solid rgba(255,255,255,0.12); font-weight:600; color:var(--c-text-dim,#aaa); padding-top:5px !important; }
.wd-dist-correct td { color:var(--c-win,#4ade80); }
.wd-dist-correct .wd-dist-bar { background:var(--c-win,#4ade80); opacity:0.85; }
.wd-dist-mine td { color:var(--c-accent,#0e9fc2); }
.wd-dist-mine .wd-dist-bar { background:var(--c-accent,#0e9fc2); opacity:0.75; }

/* ── spelregels.php ── */
.sr-intro { margin-bottom:20px; color:var(--c-text,#dff0f6); line-height:1.7; }
.sr-keyfacts { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:24px; }
.sr-keyfact { flex:1 1 100px; min-width:90px; background:rgba(14,159,194,0.10); border:1px solid rgba(14,159,194,0.25); border-radius:9px; padding:12px 14px; text-align:center; }
.sr-kf-val { display:block; font-size:26px; font-weight:800; color:#ffb870; line-height:1.1; }
.sr-kf-lbl { display:block; font-size:10px; text-transform:uppercase; letter-spacing:0.06em; color:var(--c-text-dim,#aaa); margin-top:4px; }
.sr-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.sr-grid-full { grid-column: 1 / -1; }
.sr-section-heading { margin:20px 0 12px; }
.sr-section-heading h2 { font-size:14px; text-transform:uppercase; letter-spacing:1px; color:var(--c-text,#dff0f6); margin:0 0 6px; font-weight:700; }
.sr-section-heading p { font-size:13px; color:var(--c-text-dim,#aaa); margin:0; }
.sr-badge-list { list-style:none; padding:0; margin:10px 0 0; display:flex; flex-direction:column; gap:10px; }
.sr-badge-list li { display:flex; align-items:flex-start; gap:10px; }
.vp-badge{display:inline-block;border-radius:4px;font-size:11px;font-weight:700;letter-spacing:0.04em;padding:2px 7px;vertical-align:middle;line-height:18px;white-space:nowrap;flex-shrink:0}
.vp-toto{background:rgba(34,197,94,0.16);color:#4ade80;border:1px solid rgba(34,197,94,0.40)}
.vp-dubbel{background:rgba(249,115,22,0.18);color:#f97316;border:1px solid rgba(249,115,22,0.40)}
.vp-max{background:rgba(147,51,234,0.15);color:#9333ea;border:1px solid rgba(147,51,234,0.50);text-shadow:0 0 6px rgba(147,51,234,0.45)}
.vp-supermax{background:linear-gradient(90deg,rgba(255,180,0,0.28),rgba(255,120,0,0.22));color:#f0a830;border:1px solid rgba(255,160,0,0.55)}
/* Green "LIVE" in-progress ticker (shared: stand_virtueel, programma, voorspellen_all, wedstrijd_detail) */
.live-tkr{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;letter-spacing:.04em;color:#0a7c43;background:rgba(34,197,94,0.14);border:1px solid rgba(34,197,94,0.45);border-radius:999px;padding:2px 8px;line-height:16px;vertical-align:middle;white-space:nowrap}
.live-tkr-dot{width:7px;height:7px;border-radius:50%;background:#16a34a;animation:liveTkrPulse 1.3s infinite}
.live-tkr-score{font-weight:800}
.live-tkr-min{opacity:.75;font-weight:700}
@keyframes liveTkrPulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}70%{box-shadow:0 0 0 6px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.nm-live-score{color:#0a7c43;font-weight:800;font-size:18px}
.js-live-card .card-header{color:#0a7c43}
/* Mobile-only live card pinned to the top of every page; desktop uses the sidebar card. */
.nm-live-mobile{display:none}
@media (max-width:920px){ .nm-live-mobile{display:block;margin:0 0 14px} }
.nm-live-events{display:flex;flex-wrap:wrap;gap:3px 8px;justify-content:center;margin:2px 0 0;font-size:11px;line-height:1.5}
.nm-live-ev{white-space:nowrap;color:var(--c-text-dim)}
.nm-live-venue{text-align:center;font-size:11px;color:var(--c-text-dim);margin:5px 0 0}
/* KO bracket-feeder label (knockoutpool) shown in an unknown ("?") team slot. */
.ko-tbd{font-style:italic;color:var(--c-text-dim);font-size:0.92em}
@media (max-width:600px){ .sr-grid{grid-template-columns:1fr} .sr-grid-full{grid-column:1} }

/* ── stand.php (inschrijvingen card grid) ── */
.ps-grid{display:flex;flex-wrap:wrap;gap:10px}
.ps-card{flex:1 1 100px;min-width:90px;max-width:160px;border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;justify-content:flex-start;gap:2px;border:1px solid transparent}
.ps-label{font-size:10px;color:rgba(255,255,255,.50);font-weight:500;line-height:1.3}
.ps-value{font-size:18px;font-weight:700;color:var(--c-text,#fff);line-height:1.1}

/* ── stand.php (main stand table) ── */
.stand-admin-bar  { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding:10px 14px; border-radius:9px; border:1px solid rgba(255,255,255,0.10); background:rgba(255,255,255,0.04); }
.stand-mail-form  { display:flex; align-items:center; gap:10px; flex-wrap:wrap; width:100%; }
.stand-mail-label { font-size:13px; color:var(--c-text-dim,#aaa); flex:1; }
.stand-mail-btn        { padding:6px 16px; border-radius:7px; border:none; background:var(--c-primary,#0e9fc2); color:#fff; font-size:12px; font-weight:700; cursor:pointer; transition:opacity 0.15s; white-space:nowrap; }
.stand-mail-btn:hover  { opacity:0.85; }
.stand-mail-btn-test   { background:rgba(255,255,255,0.12); color:var(--c-text-dim,#aaa); border:1px solid rgba(255,255,255,0.18); }
.stand-mail-btn-test:hover { background:rgba(255,255,255,0.18); opacity:1; }
.stand-mail-done  { font-size:13px; }
.stand-toolbar    { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.stand-blurb      { color:var(--c-text-dim); font-size:14px; line-height:1.65; margin:0 0 22px; max-width:640px; }
.stand-blurb strong { color:var(--c-text,#e8e8e8); font-weight:600; }
.wd-sp-wrap  { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.wd-sp-label { font-size:12px; font-weight:600; color:var(--c-text-dim,#aaa); white-space:nowrap; }
.wd-sp-btns  { display:flex; gap:6px; flex-wrap:wrap; }
.wd-sp-btn   { padding:5px 12px; border-radius:6px; border:1px solid rgba(255,255,255,0.14); background:rgba(255,255,255,0.05); color:var(--c-text-dim,#aaa); font-size:12px; font-weight:600; cursor:pointer; text-decoration:none; transition:all 0.13s; display:inline-block; }
.wd-sp-btn:hover        { background:rgba(14,159,194,0.12); color:var(--c-accent,#0e9fc2); border-color:rgba(14,159,194,0.30); }
.wd-sp-btn.wd-sp-active { background:rgba(14,159,194,0.20); color:var(--c-accent,#0e9fc2); border-color:rgba(14,159,194,0.45); }
.wd-sp-cnt             { opacity:.55; font-size:10px; margin-left:3px; font-weight:500; }
.stand-wrap        { overflow-x:auto; }
.stand-tbl         { min-width:500px; }
.stand-tbl thead tr:not(.st-group-row) th { padding:6px 9px !important; }
.stand-tbl .col-name                      { min-width:100px; font-size:11px; }
.st-rank-cell      { white-space:nowrap; }
.st-rank-num       { font-weight:700; color:var(--c-text-dim,#aaa); font-size:13px; }
.col-trend         { width:30px; text-align:center; white-space:nowrap; }
.st-trend          { font-size:15px; font-weight:800; line-height:1; letter-spacing:-0.5px; }
.st-trend-up       { color:var(--c-win,#4ade80); }
.st-trend-dn       { color:var(--c-lose,#f87171); }
.st-trend-same     { color:var(--c-text-dim,#555); font-weight:400; }
.st-last-gain      { font-size:10px; font-weight:700; color:var(--c-win,#27a85f); margin-left:3px; vertical-align:top; }
.stand-tbl thead a              { color:inherit !important; text-decoration:none; font-weight:inherit; }
.stand-sort-active              { color:var(--c-accent,#0e9fc2) !important; font-weight:700; }
.stand-tbl .col-rank            { width:auto; min-width:0; }
.stand-tbl .col-name            { min-width:60px; }
/* Trend column: shrink-to-content + tight padding so the name column keeps the room.
   (Default cell padding is 7px 10px — far too wide for a tiny ▲1/▼1 marker.) */
.stand-tbl .col-trend,
.stand-tbl thead th.col-trend {
    width: 1%;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
    padding-left: 1px !important;
    padding-right: 1px !important;
}
/* Name cell: avatar + name share an inner flex row so a long name wraps to the
   RIGHT of the avatar instead of dropping underneath it. The prize badge / mobile
   meta stay in normal block flow below (no stray <br> inside a flex container). */
.stand-tbl .col-name .st-name-main {
    display: flex;
    align-items: center;
    gap: 5px;
}
/* Name + prize badge stack in a column beside the avatar, so the badge sits BELOW
   the team name (aligned under it), not below the avatar and not inline beside it. */
.stand-tbl .col-name .st-name-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    gap: 3px;
}
.stand-tbl .col-name a.wd {
    min-width: 0;
    display: block;        /* wraps long names within the name column */
}
.stand-tbl .col-name .st-prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.stand-tbl thead th a { color:inherit; text-decoration:none; }
.stand-tbl thead th a:hover { color:var(--c-accent,#0e9fc2); }
.st-rnd            { font-size:11px; color:var(--c-text-dim,#999); width:32px; padding-left:4px !important; padding-right:4px !important; text-align:center; }
.stand-tbl.st-exp-pool .st-fase-pool,
.stand-tbl.st-exp-ko   .st-fase-ko,
.stand-tbl.st-exp-bonus .st-fase-bonus { width:22px !important; min-width:0 !important; padding:2px !important; font-size:10px !important; font-weight:400 !important; }
.stand-tbl.st-exp-pool thead .st-fase-pool,
.stand-tbl.st-exp-ko   thead .st-fase-ko,
.stand-tbl.st-exp-bonus thead .st-fase-bonus { font-size:9px !important; letter-spacing:0; }
.stand-tbl.st-exp-pool tbody tr td,
.stand-tbl.st-exp-ko   tbody tr td,
.stand-tbl.st-exp-bonus tbody tr td { padding-top:3px !important; padding-bottom:3px !important; }
.st-dub            { text-align:center; width:36px; }
.st-dub-val        { display:inline-flex; align-items:baseline; gap:1px; font-size:13px; font-weight:700; }
.st-dub-val small  { font-size:9px; font-weight:400; color:var(--c-text-dim,#aaa); }
.st-dub-part       { color:var(--c-accent,#0e9fc2); }
.st-dub-full       { color:var(--c-win,#4ade80); }
.col-dub-hdr       { width:36px; }
.st-dim            { color:var(--c-text-dim,#444); }
.st-subname        { color:var(--c-text-dim,#aaa); font-size:11px; white-space:nowrap; background:none; border:none; padding:0; cursor:pointer; }
button.st-subname:hover { color:var(--c-accent,#0e9fc2); text-decoration:underline; }
.st-group-row th   { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; padding:4px 6px; }
.st-group-hdr      { background:rgba(14,159,194,0.08); color:var(--c-accent,#0e9fc2); text-align:center; border-left:1px solid rgba(14,159,194,0.20); border-right:1px solid rgba(14,159,194,0.20); }
.st-fase-total     { background:rgba(255,255,255,0.04); color:var(--c-text,#dff0f6); font-weight:700; font-size:13px; border-left:1px solid rgba(255,255,255,0.08); }
.st-grand-total    { background:rgba(14,159,194,0.12); color:var(--c-accent,#0e9fc2); font-weight:800; font-size:14px; border-left:2px solid rgba(14,159,194,0.30); }
.st-fase-pool, .st-fase-ko, .st-fase-bonus { display:none; }
.stand-tbl.st-exp-pool   .st-fase-pool   { display:table-cell; }
.stand-tbl.st-exp-ko     .st-fase-ko     { display:table-cell; }
.stand-tbl.st-exp-bonus  .st-fase-bonus  { display:table-cell; }
.st-group-hdr   { cursor:pointer; user-select:none; }
.st-group-hdr:hover { background:rgba(14,159,194,0.16); }
.st-grp-chevron { display:inline-block; transition:transform 0.18s; font-size:11px; vertical-align:middle; color:var(--c-orange); }
.stand-tbl.st-exp-pool   .st-grp-pool   .st-grp-chevron,
.stand-tbl.st-exp-ko     .st-grp-ko     .st-grp-chevron,
.stand-tbl.st-exp-bonus  .st-grp-bonus  .st-grp-chevron { transform:rotate(90deg); }
.st-prize-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(251,191,36,0.14);
    border: 1px solid rgba(251,191,36,0.30);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}
/* Subpool prize badge — cyan variant so it's distinct from the gold overall-prize badge */
.st-prize-badge-sub {
    background: rgba(14,159,194,0.14);
    border-color: rgba(14,159,194,0.35);
    color: var(--c-accent, #0e9fc2);
}
/* Subpool rank in the first column: when a subpool is selected (table gets .st-sp-on)
   show the subpool rank as primary with the overall rank (#N) as a small line below.
   "Alle"/Algemeen (no .st-sp-on) keeps the normal overall rank. */
.st-rank-sub { display: none; }
#standTable.st-sp-on .st-rank-overall { display: none; }
#standTable.st-sp-on .st-rank-sub {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.st-rank-overall-mini {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--c-text-dim, #888);
    margin-top: 2px;
}
.stand-tbl tbody tr.rank-gold   td { background:rgba(240,192,64,0.10) !important;  border-bottom:1px solid rgba(255,255,255,0.10) !important; }
.stand-tbl tbody tr.rank-silver td { background:rgba(192,200,210,0.10) !important; border-bottom:1px solid rgba(255,255,255,0.10) !important; }
.stand-tbl tbody tr.rank-bronze td { background:rgba(205,127,50,0.10) !important;  border-bottom:2px solid rgba(255,255,255,0.12) !important; }
.stand-tbl tbody tr.rank-prize  td { background:rgba(139,92,246,0.07) !important; }
.stand-tbl tbody tr.rank-gold:hover   td { background:rgba(240,192,64,0.17) !important; }
.stand-tbl tbody tr.rank-silver:hover td { background:rgba(192,200,210,0.17) !important; }
.stand-tbl tbody tr.rank-bronze:hover td { background:rgba(205,127,50,0.17) !important; }
.stand-tbl tbody tr.rank-gold .col-pts,
.stand-tbl tbody tr.rank-silver .col-pts,
.stand-tbl tbody tr.rank-bronze .col-pts { color:inherit; font-size:inherit; text-shadow:none; }
.stand-tbl tbody tr.rank-gold .col-rank,
.stand-tbl tbody tr.rank-silver .col-rank,
.stand-tbl tbody tr.rank-bronze .col-rank { font-size:inherit; font-weight:inherit; text-shadow:none; }
.stand-tbl tbody tr.rank-gold   .col-name,
.stand-tbl tbody tr.rank-silver .col-name,
.stand-tbl tbody tr.rank-bronze .col-name { font-size:14px; font-weight:700; }
.stand-tbl.st-exp-pool tbody tr.rank-gold td,
.stand-tbl.st-exp-pool tbody tr.rank-silver td,
.stand-tbl.st-exp-pool tbody tr.rank-bronze td,
.stand-tbl.st-exp-ko   tbody tr.rank-gold td,
.stand-tbl.st-exp-ko   tbody tr.rank-silver td,
.stand-tbl.st-exp-ko   tbody tr.rank-bronze td,
.stand-tbl.st-exp-bonus tbody tr.rank-gold td,
.stand-tbl.st-exp-bonus tbody tr.rank-silver td,
.stand-tbl.st-exp-bonus tbody tr.rank-bronze td { padding-top:3px !important; padding-bottom:3px !important; }
.stand-tbl.st-exp-pool tbody tr.rank-gold .col-name,
.stand-tbl.st-exp-pool tbody tr.rank-silver .col-name,
.stand-tbl.st-exp-pool tbody tr.rank-bronze .col-name,
.stand-tbl.st-exp-ko   tbody tr.rank-gold .col-name,
.stand-tbl.st-exp-ko   tbody tr.rank-silver .col-name,
.stand-tbl.st-exp-ko   tbody tr.rank-bronze .col-name,
.stand-tbl.st-exp-bonus tbody tr.rank-gold .col-name,
.stand-tbl.st-exp-bonus tbody tr.rank-silver .col-name,
.stand-tbl.st-exp-bonus tbody tr.rank-bronze .col-name { font-size:13px; }
.stand-tbl.st-exp-pool tbody tr.rank-gold .st-grand-total,
.stand-tbl.st-exp-pool tbody tr.rank-silver .st-grand-total,
.stand-tbl.st-exp-pool tbody tr.rank-bronze .st-grand-total,
.stand-tbl.st-exp-ko   tbody tr.rank-gold .st-grand-total,
.stand-tbl.st-exp-ko   tbody tr.rank-silver .st-grand-total,
.stand-tbl.st-exp-ko   tbody tr.rank-bronze .st-grand-total,
.stand-tbl.st-exp-bonus tbody tr.rank-gold .st-grand-total,
.stand-tbl.st-exp-bonus tbody tr.rank-silver .st-grand-total,
.stand-tbl.st-exp-bonus tbody tr.rank-bronze .st-grand-total { font-size:13px; }
.stand-tbl.st-exp-pool tbody tr.rank-gold .st-rank-cell,
.stand-tbl.st-exp-pool tbody tr.rank-silver .st-rank-cell,
.stand-tbl.st-exp-pool tbody tr.rank-bronze .st-rank-cell,
.stand-tbl.st-exp-ko   tbody tr.rank-gold .st-rank-cell,
.stand-tbl.st-exp-ko   tbody tr.rank-silver .st-rank-cell,
.stand-tbl.st-exp-ko   tbody tr.rank-bronze .st-rank-cell,
.stand-tbl.st-exp-bonus tbody tr.rank-gold .st-rank-cell,
.stand-tbl.st-exp-bonus tbody tr.rank-silver .st-rank-cell,
.stand-tbl.st-exp-bonus tbody tr.rank-bronze .st-rank-cell { font-size:13px; }
.medal        { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; font-size:12px; font-weight:800; }
.medal-gold   { background:rgba(251,191,36,0.20); color:#fbbf24; border:1px solid rgba(251,191,36,0.40); }
.medal-silver { background:rgba(148,163,184,0.18); color:#94a3b8; border:1px solid rgba(148,163,184,0.35); }
.medal-bronze { background:rgba(180,120,60,0.20); color:#b47c3c; border:1px solid rgba(180,120,60,0.35); }
.medal-prize  { background:rgba(139,92,246,0.18); color:#a78bfa; border:1px solid rgba(139,92,246,0.35); }
.stand-tbl tbody tr.rank-prize td { background:rgba(139,92,246,0.07); }
.stand-tbl tbody tr.rank-prize .col-name { color:var(--c-text,#dff0f6); }
.stand-tbl tbody tr.rank-prize .st-rank-num { color:#a78bfa; font-weight:700; }
.st-mobile-meta { display:none; }
/* Row expand toggle + expanded row: mobile-only */
.st-row-toggle { display: none; }
.st-row-rondes { display: none; }
@media (max-width: 680px) {
    .st-row-rondes { display: table-row; }
    .st-row-rondes[hidden] { display: none; }
}
.medal.st-winnaar { width:auto; height:auto; padding:3px 9px; border-radius:8px; font-size:15px; letter-spacing:0.01em; border-width:2px; animation:winnaar-pulse 2.4s ease-in-out infinite; }
@keyframes winnaar-pulse {
    0%,100% { box-shadow:0 0 0 0 rgba(251,191,36,0); }
    50%      { box-shadow:0 0 8px 3px rgba(251,191,36,0.35); }
}

/* ── Stand table: tablet (681px – 920px) ─────────────────────────────── */
@media (min-width: 681px) and (max-width: 920px) {
    .stand-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; }
    .stand-tbl thead tr:not(.st-group-row) th { padding: 4px 6px !important; font-size: 11px; }
    .stand-tbl tbody tr td                    { padding: 4px 6px !important; font-size: 12px; }
    .stand-tbl .col-name a.wd                 { font-size: 12px; }
    .stand-tbl .st-grand-total                { font-size: 13px; }
    .st-group-row th                          { font-size: 9px; padding: 3px 4px; }
}

@media (max-width: 680px) {
    /* Inscription table: hide the entry-date column */
    .inschr-date { display:none !important; }

    /* ══ stand.php — compact scrollable table (mobile) ═══════════════════ */
    .stand-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -14px;
    }

    /* Restore proper table layout */
    .stand-tbl       { display: table; width: 100%; min-width: 340px; }
    .stand-tbl thead { display: table-header-group; }
    .stand-tbl tbody { display: table-row-group; }

    .stand-tbl tbody tr:not(.st-row-rondes) {
        display: table-row;
    }

    /* All cells visible + compact */
    .stand-tbl td    { padding: 4px 5px !important; font-size: 12px; }
    .stand-tbl thead th { padding: 3px 4px !important; font-size: 10px; }

    /* Trend + subpool columns: display:none on mobile.
       Colspan in the group header is corrected via JS (see stand.php). */
    .stand-tbl .col-trend,
    .stand-tbl .st-sub { display: none !important; }

    /* Rank cell */
    .stand-tbl .col-rank,
    .stand-tbl .st-rank-cell { display: table-cell; width: 26px; font-size: 12px; padding: 4px 2px 4px 6px !important; }

    /* Name cell */
    .stand-tbl .col-name {
        display: table-cell !important;
        flex-direction: unset;
        min-width: 0;
        max-width: 150px;
    }
    .stand-tbl .col-name a.wd {
        font-size: 12px; font-weight: 600; color: var(--c-text); text-decoration: none;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
        max-width: 130px;
    }
    .stand-tbl tr.rank-gold .col-name a.wd,
    .stand-tbl tr.rank-silver .col-name a.wd,
    .stand-tbl tr.rank-bronze .col-name a.wd { font-size: 13px; }

    /* Grand total */
    .stand-tbl .st-grand-total {
        display: table-cell;
        flex-direction: unset; align-items: unset; line-height: unset;
        font-size: 14px; font-weight: 800; min-width: 34px; white-space: nowrap;
    }
    .stand-tbl .st-grand-total::after { display: none; }

    /* Phase totals */
    .stand-tbl .st-fase-total { font-size: 11px; font-weight: 700; min-width: 24px; white-space: nowrap; }

    /* Doublers */
    .stand-tbl .st-dub { width: 22px; }
    .stand-tbl .st-dub-val { font-size: 11px; }

    /* Group header row: compact */
    .stand-tbl .st-group-row th { font-size: 9px; padding: 2px 3px; }

    /* Mobile meta: trend + subpool inside name cell */
    .st-mobile-meta { display: flex; align-items: center; gap: 4px; margin-top: 2px; flex-wrap: wrap; }
    .st-mobile-sub  { font-size: 10px; color: var(--c-text-dim, #aaa); }
    .st-prize-badge { font-size: 10px; padding: 2px 5px; margin: 2px 0 0; display: inline-flex; }
    .st-mb-trend { display: inline-flex; align-items: center; padding: 1px 4px; border-radius: 4px; font-size: 10px; font-weight: 700; }
    .st-mb-trend-up   { background: rgba(74,222,128,0.12); color: var(--c-win, #4ade80); }
    .st-mb-trend-dn   { background: rgba(248,113,113,0.12); color: var(--c-lose, #f87171); }
    .st-mb-trend-same { color: var(--c-text-dim, #666); font-size: 10px; }

    /* Row expand toggle: hidden on mobile */
    .st-row-toggle {
        display: none !important;
    }
    .st-row-rondes td {
        background: rgba(14,159,194,0.07) !important;
        padding: 8px 10px !important;
    }
    .st-rr-wrap {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
    .st-rr-label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--c-text-dim);
        margin-right: 2px;
    }
    .st-rr-sep { width: 8px; }
    .st-rr-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        border-radius: 6px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        font-size: 11px;
        font-weight: 600;
        color: var(--c-text);
    }
    .st-rr-chip-lbl {
        font-size: 9px;
        font-weight: 600;
        color: var(--c-text-dim);
        text-transform: uppercase;
    }

    /* Subpool slicer: swipeable pill bar */
    .stand-toolbar { margin: 0 -14px 10px; padding: 0 14px; }
    .wd-sp-btns {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .wd-sp-btns::-webkit-scrollbar { display: none; }
    .wd-sp-btn { flex: 0 0 auto; scroll-snap-align: center; }
    /* Stand page: wrap the subpool pills onto multiple lines instead of one scroll row */
    #stand-sp-slicer {
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }
    #stand-sp-slicer .wd-sp-btn { scroll-snap-align: none; }

    /* Stand blurb: slightly tighter */
    .stand-blurb { font-size:13px; margin: 0 0 14px; }
}

@media (max-width: 360px) {
    .stand-tbl td     { padding: 3px 3px !important; font-size: 11px; }
    .stand-tbl .col-name a.wd { max-width: 90px; font-size: 11px; }
    .stand-tbl .st-grand-total { font-size: 12px; min-width: 28px; }
    .stand-tbl .st-fase-total  { font-size: 10px; min-width: 20px; }
    .stand-tbl .st-dub-val     { font-size: 10px; }
}

/* ── Mobile widget strip (news page top cards) — desktop: hidden ─── */
.mob-widget-strip { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   index.php (news/landing) — MOBILE swipe carousels (≤ 680px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
    /* Suppress tap-highlight globally on mobile — fixes the orange swipe flash */
    a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }

    /* Laatste uitslagen: unlock programme so the inner scroll container works.
       iOS Safari won't touch-scroll a child when an ancestor has overflow:hidden. */
    .programme {
        overflow: visible;
        border-radius: 0;  /* radius moves to individual cards below */
    }
    .programme .card-body { padding: 0; overflow: visible; }
    /* 2-row grid that fills column-by-column → swipe between columns of 2 */
    .programme .lw-cards {
        display: grid;
        grid-template-rows: 1fr 1fr;
        grid-auto-flow: column;
        grid-auto-columns: 74%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    .programme .lw-cards::-webkit-scrollbar { display: none; }

    .programme .lw-cards > .lw-link {
        min-width: 0;
        overflow: hidden;
        border-right: 1px solid var(--c-border);
    }
    /* Snap on first item of each column (odd-numbered items) */
    .programme .lw-cards > .lw-link:nth-child(odd) {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        border-bottom: 1px solid var(--c-border);
    }
    /* Remove right border on last 2 items (last column) */
    .programme .lw-cards > .lw-link:nth-last-child(1),
    .programme .lw-cards > .lw-link:nth-last-child(2) { border-right: none; }

    .programme .lw-card {
        border-bottom: none;
        border-radius: 0;
        padding: 8px 10px 6px;
        height: 100%;
        box-sizing: border-box;
    }
    /* Scale content inside narrow snap card */
    .programme .lw-match-row { gap: 6px; }
    .programme .lw-scorebox  { min-width: 44px; }
    .programme .lw-sc        { font-size: 18px; }
    .programme .lw-name      { font-size: 11px; }
    .programme .lw-flag      { width: 20px !important; height: auto; }
    .programme .lw-meta      { font-size: 9px; }
    .programme .lw-wgv-bar   { margin: 3px 0 2px; }
    .programme .more-link { padding: 10px 14px; }

    /* Mobile widget strip: stacked — next match + latest results both shown (no swipe) */
    .mob-widget-strip {
        display: block;
        position: relative;
        width: 100%;
        margin-bottom: 12px;
    }
    .mob-widget-card {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }
    .mob-widget-card:last-child { margin-bottom: 0; }
    /* Dot indicator */
    .mws-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin: 6px 0 4px;
    }
    .mws-dot {
        width: 7px; height: 7px;
        border-radius: 50%;
        background: var(--c-border, rgba(255,255,255,0.25));
        transition: background 200ms;
        cursor: pointer;
    }
    .mws-dot.mws-active { background: var(--c-accent, #1976d2); }
    /* Hide the desktop versions on mobile */
    .programme { display: none; }
    .mob-hide-vw { display: none !important; }

    /* Sidebars on mobile: stacked — all cards shown below the news (no swipe).
       Order (grid-row 2 then 3): left sidebar (poll) first, then right sidebar. */
    .sidebar-left,
    .sidebar-right {
        display: block !important;
        width: 100%;
        overflow: hidden;
    }
    .sidebar-left > .card,
    .sidebar-right .sb-cards > .card {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }
    .sidebar-left > .card:last-child,
    .sidebar-right .sb-cards > .card:last-child { margin-bottom: 0; }
    .sidebar-right .sb-cards {
        display: block;
        width: 100%;
    }
    /* sidebar-left scroll container must stay overflow-x:auto (set above) */
}

/* ── standtop.php ── */
.liststand tbody tr.rank-prize td { background:rgba(139,92,246,0.07); }

/* ── topusers.php ── */
.topusers-wrap table.liststand:not(.stand-tbl) tbody tr.rank-gold   td { background:rgba(240,192,64,0.10) !important; border-left:none !important; }
.topusers-wrap table.liststand:not(.stand-tbl) tbody tr.rank-silver td { background:rgba(192,200,210,0.10) !important; border-left:none !important; }
.topusers-wrap table.liststand:not(.stand-tbl) tbody tr.rank-bronze td { background:rgba(205,127,50,0.10) !important;  border-left:none !important; }
.stand-tbl tbody tr.rank-gold   td:first-child,
.stand-tbl tbody tr.rank-silver td:first-child,
.stand-tbl tbody tr.rank-bronze td:first-child { border-left:none !important; }
.topusers-wrap .stand-tbl tbody tr.rank-gold   .st-fase-total,
.topusers-wrap .stand-tbl tbody tr.rank-silver .st-fase-total,
.topusers-wrap .stand-tbl tbody tr.rank-bronze .st-fase-total,
.topusers-wrap .stand-tbl tbody tr.rank-prize  .st-fase-total { border-left:1px solid rgba(255,255,255,0.08) !important; }
.topusers-wrap .stand-tbl tbody tr.rank-gold   .st-grand-total,
.topusers-wrap .stand-tbl tbody tr.rank-silver .st-grand-total,
.topusers-wrap .stand-tbl tbody tr.rank-bronze .st-grand-total,
.topusers-wrap .stand-tbl tbody tr.rank-prize  .st-grand-total { border-left:2px solid rgba(14,159,194,0.30) !important; }
.topusers-wrap table.liststand tbody tr.rank-gold:hover   td { background:rgba(240,192,64,0.17) !important; }
.topusers-wrap table.liststand tbody tr.rank-silver:hover td { background:rgba(192,200,210,0.17) !important; }
.topusers-wrap table.liststand tbody tr.rank-bronze:hover td { background:rgba(205,127,50,0.17) !important; }
.topusers-wrap table.liststand tbody tr.rank-gold   .col-pts,
.topusers-wrap table.liststand tbody tr.rank-silver .col-pts,
.topusers-wrap table.liststand tbody tr.rank-bronze .col-pts { color:inherit; font-size:inherit; text-shadow:none; }
.topusers-wrap table.liststand tbody tr.rank-gold   .col-rank,
.topusers-wrap table.liststand tbody tr.rank-silver .col-rank,
.topusers-wrap table.liststand tbody tr.rank-bronze .col-rank { font-size:inherit; font-weight:inherit; text-shadow:none; }
.tu-sep-row td{padding:2px 0;border:none;background:none}
.tu-sep-dots{display:block;text-align:center;font-size:20px;line-height:1;color:var(--c-text-dim,#666);letter-spacing:2px}
.tu-user-extra td{border-top:2px dashed rgba(14,159,194,0.35)}
.tu-mode-toggle{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.tu-mode-btn{padding:9px 22px;border-radius:20px;border:2px solid rgba(255,255,255,0.15);background:rgba(255,255,255,0.05);color:var(--c-text-dim,#999);font-size:14px;font-weight:700;cursor:pointer;transition:all 0.18s;letter-spacing:0.02em}
.tu-mode-btn:hover{background:rgba(14,159,194,0.12);color:var(--c-accent,#0e9fc2);border-color:rgba(14,159,194,0.35)}
.tu-mode-active{background:rgba(14,159,194,0.20)!important;color:var(--c-accent,#0e9fc2)!important;border-color:rgba(14,159,194,0.55)!important}
.vp-tabs{display:flex;gap:6px;margin-bottom:18px;flex-wrap:wrap;align-items:center}
.vp-tab-break{width:100%;height:0}
.vp-tab-group-label{width:100%;font-size:11px;color:var(--c-text-dim,#888);letter-spacing:0.05em;text-transform:uppercase;padding:2px 0 0;margin-top:2px}
.vp-tab{padding:7px 18px;border-radius:8px;border:1px solid rgba(255,255,255,0.12);background:rgba(255,255,255,0.05);color:var(--c-text-dim,#999);font-size:13px;font-weight:600;cursor:pointer;transition:all 0.15s}
.vp-tab:hover{background:rgba(14,159,194,0.12);color:var(--c-accent,#0e9fc2);border-color:rgba(14,159,194,0.30)}
.vp-tab-active{background:rgba(14,159,194,0.18);color:var(--c-accent,#0e9fc2);border-color:rgba(14,159,194,0.45)}
.vp-tab-super{background:linear-gradient(90deg,rgba(255,180,0,0.18),rgba(255,100,0,0.12));color:#f0a830;border-color:rgba(255,160,0,0.40);font-size:11px;letter-spacing:0.05em}
.vp-tab-super:hover{background:linear-gradient(90deg,rgba(255,180,0,0.26),rgba(255,100,0,0.20));border-color:rgba(255,160,0,0.60)}
.vp-tab-super.vp-tab-active{background:linear-gradient(90deg,rgba(255,180,0,0.32),rgba(255,100,0,0.26));border-color:rgba(255,160,0,0.75);animation:vp-glow 1.6s ease-in-out infinite alternate}
.vp-tab-max{background:rgba(167,139,250,0.14);color:#a78bfa;border-color:rgba(167,139,250,0.45);font-size:11px;letter-spacing:0.05em;text-shadow:0 0 5px rgba(167,139,250,0.40)}
.vp-tab-max:hover{background:rgba(167,139,250,0.22);border-color:rgba(167,139,250,0.65)}
.vp-tab-max.vp-tab-active{background:rgba(167,139,250,0.28);border-color:rgba(167,139,250,0.80);box-shadow:0 0 8px rgba(167,139,250,0.35)}
.vp-tab-toto{background:rgba(34,197,94,0.14);color:#4ade80;border-color:rgba(34,197,94,0.40);font-size:11px;letter-spacing:0.05em}
.vp-tab-toto:hover{background:rgba(34,197,94,0.22);border-color:rgba(34,197,94,0.60)}
.vp-tab-toto.vp-tab-active{background:rgba(34,197,94,0.28);border-color:rgba(34,197,94,0.70)}
@keyframes vp-glow{from{box-shadow:0 0 3px rgba(255,160,0,0.30)}to{box-shadow:0 0 8px rgba(255,160,0,0.70)}}
.vp-section{display:block}
.vp-hidden{display:none}
.col-seasons{text-align:center;width:36px;font-size:12px;color:var(--c-text-dim,#888)}
.tu-sp-you{font-size:10px;color:var(--c-accent,#0e9fc2);font-weight:600;margin-left:4px;vertical-align:middle}
.tu-sp-atonly { display:none; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — hamburger + slide drawer
   ═══════════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-right: 8px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop overlay */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.mob-overlay.open { opacity: 1; pointer-events: auto; }

/* Slide-in drawer */
.mob-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    max-width: 90vw;
    height: 100dvh;
    background: rgba(4,12,28,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -4px 0 32px rgba(0,0,0,0.5);
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.mob-drawer.open { transform: translateX(0); }

/* Drawer header */
.mob-drawer-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 2px solid var(--c-orange);
    position: sticky;
    top: 0;
    background: rgba(4,12,28,0.98);
    z-index: 1;
}
.mob-drawer-title {
    font-family: 'UEFA Euro', system-ui, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: var(--c-text);
    letter-spacing: 0.5px;
}
.mob-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    color: var(--c-text);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}
.mob-drawer-close:hover { background: rgba(255,255,255,0.12); }

/* Nav list */
.mob-nav-list {
    list-style: none;
    padding: 8px 0;
}
.mob-nav-list > li { border-bottom: 1px solid rgba(255,255,255,0.04); }

.mob-nav-list > li > a,
.mob-nav-list > li > button.mob-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--c-text-dim);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.mob-nav-list > li > a:hover,
.mob-nav-list > li > button.mob-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}
.mob-nav-list > li.mob-active > a {
    color: var(--c-accent);
    background: rgba(14,159,194,0.07);
    border-left: 3px solid var(--c-orange);
    padding-left: 15px;
}

/* Chevron */
.mob-chevron {
    font-size: 10px;
    color: var(--c-text-dim);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.mob-nav-list > li.mob-sub-open .mob-chevron { transform: rotate(90deg); }

/* Sub-menu */
.mob-sub-list {
    display: none;
    list-style: none;
    background: rgba(0,0,0,0.2);
}
.mob-sub-list.open { display: block !important; }
.mob-sub-list li { border-bottom: 1px solid rgba(255,255,255,0.03); }
.mob-sub-list li:last-child { border-bottom: none; }
.mob-sub-list a {
    display: block;
    padding: 12px 18px 12px 32px;
    font-size: 13px;
    color: var(--c-text-dim);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.mob-sub-list a:hover { color: #fff; background: rgba(255,255,255,0.03); }

/* User section */
.mob-user-section {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.mob-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 10px;
}
.mob-user-links { display: flex; gap: 8px; }
.mob-user-links a {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.mob-link-profiel {
    background: rgba(14,159,194,0.12);
    border: 1px solid rgba(14,159,194,0.25);
    color: var(--c-accent) !important;
}
.mob-link-profiel:hover { background: rgba(14,159,194,0.22) !important; }
.mob-link-loguit {
    background: rgba(255,80,80,0.10);
    border: 1px solid rgba(255,80,80,0.22);
    color: #e06060 !important;
}
.mob-link-loguit:hover { background: rgba(255,80,80,0.18) !important; }

/* Login section (guests) */
.mob-login-section {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.mob-login-section h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    margin-bottom: 12px;
}
.mob-login-section input[type=text],
.mob-login-section input[type=password] {
    display: block;
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: var(--c-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.mob-login-section input:focus { border-color: var(--c-primary); }
.mob-login-section .nav-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--c-text-dim);
    margin-bottom: 12px;
}
.mob-login-section .nav-remember input { width: auto; }
.mob-login-section .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px;
    font-size: 14px;
}
.mob-register-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--c-text-dim);
}

/* Login accordion item in guest drawer */
.mob-toggle--login {
    color: var(--c-accent);
    font-weight: 700;
}
.mob-login-inline li { list-style: none; padding: 0 4px; }
.mob-login-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(5, 15, 30, 0.92);
    color: #dff0f6;
    -webkit-text-fill-color: #dff0f6;
    color-scheme: dark;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.mob-login-input:focus { border-color: var(--c-accent); }
.mob-login-input:-webkit-autofill,
.mob-login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(5,15,30,0.97) inset;
    -webkit-text-fill-color: #dff0f6;
}

/* Mobile login button shown in the top nav bar (guests only) */
.nav-mob-login-btn {
    display: none; /* shown via media query */
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--c-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    margin-right: 6px;
    white-space: nowrap;
}

/* ── Show hamburger + drawer on mobile only ── */
@media (max-width: 680px) {
    .nav-links           { display: none; }
    .nav-login-form      { display: none; }
    .nav-hamburger       { display: flex; }
    .mob-overlay,
    .mob-drawer          { display: block; }
    /* hide entire nav-right on mobile (login/profile lives in drawer) */
    .nav-right           { display: none; }
}

/* ── Responsive nav (681px–900px): shrink links, keep hover dropdowns ── */
@media (min-width: 681px) and (max-width: 900px) {
    .nav-links > li > a { padding: 6px 8px; font-size: 10px; letter-spacing: 0.5px; }
    .nav-login-form input[type="text"],
    .nav-login-form input[type="password"] { width: 90px; font-size: 11px; }
}

/* ── Misc mobile content fixes ── */
@media (max-width: 680px) {
    /* Cards: full width, sensible padding */
    .card-body { padding: 12px 14px; }
    .card-header { padding: 10px 14px; }

    /* Stats header on listing pages */
    .stats-header { flex-wrap: wrap; gap: 6px; }
    .stats-title  { font-size: 18px; }

    /* Slicer pills wrap nicely */
    .pred-slicer  { flex-wrap: wrap; }

    /* Admin filter tabs wrap */
    .admin-filter-tabs { flex-wrap: wrap; }

    /* Forms: stack labels + inputs */
    .gb-form-row { flex-direction: column; }

    /* Right sidebar: single column below 680px (it's hidden but this fixes it if shown) */
    .sidebar-right { grid-template-columns: 1fr; }

    /* Programme (recent results) single column already, ensure gap is tight */
    .programme { gap: 8px; }

    /* Prediction table: compress padding */
    .pred-table th,
    .pred-table td { padding: 8px 6px; }
    .pred-match-cell { padding: 6px 8px !important; }

    /* Allow group card to scroll horizontally if still needed */
    .vp-group-card { overflow-x: auto; }
    .vp-group-card .topusers-wrap { overflow-x: visible; }

    /* Admin params: stack toggle rows vertically */
    .params-row { flex-wrap: wrap; gap: 8px; }

    /* Footer compact */
    .site-footer { font-size: 11px; padding: 10px 12px; }

    /* Guestbook form full-width textarea */
    .gb-form-row textarea,
    .gb-form-row input[type=text] { width: 100%; }
}

@media (max-width: 480px) {
    /* Score steppers: ensure touch targets */
    .stepper-btn { min-width: 36px; min-height: 36px; }

    /* vs is now a grid item — no padding-right needed */

    /* Bonus question form inputs */
    .bonus-input { width: 100%; }

    /* Stand table extra trimming already handled by 580px query */
    .main-wrap { padding: 8px; }

    /* Admin tables: hide less critical columns */
    .admin-team-wrap table .cheader:nth-child(1),
    .admin-team-wrap table td.cwit:nth-child(1) { display: none; } /* hide ID */

    /* Wedstrijden table: hide locatie, pool, type, KO on tiny screens */
    .wed-col-loc, .wed-col-pool, .wed-col-type, .wed-col-kop { display: none; }

    /* Users table: hide NP and doublers columns */
    .usr-col-np, .usr-col-dub { display: none; }

    /* Icon buttons: larger touch targets on mobile */
    .admin-icon-btn { width: 34px; height: 34px; font-size: 15px; }
    .admin-save-btn { width: 34px; height: 34px; }

    /* Prediction: hide round # cell on very small screens */
    .pred-rnd-cell { display: none !important; }
}

/* ── Old-style admin form tables: stack label + input vertically on mobile ── */
@media (max-width: 580px) {
    .admin-form-tbl { width: 100%; }
    .admin-form-tbl tr { display: block; margin-bottom: 12px; border-bottom: none !important; }
    .admin-form-tbl tr:last-child { margin-bottom: 0; }
    .admin-form-tbl td { display: block; width: 100% !important; box-sizing: border-box;
                         padding: 2px 0 !important; border: none !important; background: none !important; }
    .admin-form-tbl td.lwit:first-child { font-size: 12px; color: var(--c-text-dim);
                                          padding-bottom: 4px !important; font-weight: 500; }
    .admin-form-tbl input.select,
    .admin-form-tbl select.select,
    .admin-form-tbl textarea.select { width: 100% !important; box-sizing: border-box; }
    .admin-form-tbl center { display: flex; gap: 8px; }
    .admin-form-tbl input.button { flex: 1; min-width: 0; }
}

/* ── Right sidebar: stack to 1 column below 640px (was 2-col grid at 920px) ── */
@media (max-width: 640px) {
    .sidebar-right { grid-template-columns: 1fr !important; }
}

/* ── wedstrijd_detail.php: panel full-width on mobile ── */
@media (max-width: 680px) {
    .wd-panel { display: block; width: 100%; min-width: 0; }
}

/* sb-cards is transparent so cards are direct flex children (get gap) */
.sb-cards { display: contents; }
.tu-lazy-placeholder { padding:32px 0; color:var(--c-text-dim); font-size:14px; display:flex; align-items:center; gap:10px; }
.tu-lazy-spinner { display:inline-block; width:18px; height:18px; border:2px solid rgba(14,159,194,0.25); border-top-color:var(--c-accent,#0e9fc2); border-radius:50%; animation:tu-spin 0.7s linear infinite; flex-shrink:0; }
@keyframes tu-spin { to { transform:rotate(360deg); } }

/* ── user_voegtoe.php ── */
.gb-input-error { border-color: rgba(220,60,60,0.6) !important; }
.gb-field-error { color: #e05555; font-size: 12px; margin-top: 4px; }

/* ── voorspellen_all.php (block 1 — match table styles) ── */
.vp-team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.vp-team img {
    flex-shrink: 0;
    vertical-align: middle;
    border-radius: 2px;
}
.vp-subtotal td {
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.10);
    font-size: 12px;
    color: var(--c-text-dim, #999);
    padding: 4px 10px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vp-subtotal-pts {
    font-weight: 700;
    color: var(--c-accent, #0e9fc2);
    font-size: 22px;        /* large, like the per-match pnt (.vpa-pts) */
    line-height: 1;
    margin-left: auto;      /* push to the right of the flex subtotal row */
    padding-left: 12px;
}

/* ── voorspellen_all KO pts breakdown ───────────────────────────────────── */
.vpa-ko-breakdown {
    font-size: 10px;
    font-weight: 600;
    color: var(--c-text-dim);
    letter-spacing: 0.02em;
    margin-top: 1px;
    display: block;
    text-align: center;
    white-space: nowrap;
}

/* ── voorspellen_all bonus section ──────────────────────────────────────── */
.vpa-bonus-wrap {
    display: block !important;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}
.vpa-bonus-wrap table.list { width: 100%; }

/* The generic vp-total-row rule forces its cells to display:flex (for the
   pred-table layouts). That leaks onto the bonus total row and collapses its
   cells out of the column grid — force them back to real table cells. Scoped to
   .vpa-bonus-wrap so it can NOT touch the prediction tables (which also carry
   class="list" and rely on the flex subtotal/total rows for right-alignment). */
.vpa-bonus-wrap table.list tr.vp-total-row > td {
    display: table-cell !important;
}
/* …but keep the prediction column hidden on mobile so the total stays in the
   same column as the rows. */
@media (max-width: 680px) {
    .vpa-bonus-wrap table.list tr.vp-total-row > td.vpa-bonus-col-pred {
        display: none !important;
    }
}

/* Bonus points column — fixed width + right aligned so per-row points and the
   total line up in the exact same column (data rows + total share this class). */
table.list td.vpa-bonus-col-pts {
    width: 56px;
    text-align: right !important;
    padding-right: 8px !important;
    white-space: nowrap;
}

/* Bonus per-row scoring info (Exact / Schatting sub-line, mirrors user_voorspellen) */
.vpa-bonus-score-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.vpa-bonus-score-desc {
    font-size: 11px;
    color: var(--c-text-dim);
}
/* Bonus prediction: correct answer highlighted green (like match results) */
.vpa-bonus-correct {
    color: var(--c-win, #27a85f);
    font-weight: 700;
}
/* The actual result shown under a wrong prediction (the correct answer) */
.vpa-bonus-result {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-win, #27a85f);
}
/* Desktop shows the prediction in its own column; this inline copy is mobile-only */
.vpa-bonus-pred-inline { display: none; }

/* Bonus total row */
.vpa-bonus-total-label {
    font-weight: 700;
    color: var(--c-accent, #0e9fc2);
}
.vpa-bonus-total-pts {
    font-weight: 700;
    color: var(--c-accent, #0e9fc2);
    text-align: center;
}

@media (max-width: 680px) {
    /* Hide "Jouw voorspelling" column on mobile — prediction shown inline via title */
    .vpa-bonus-col-pred { display: none !important; }
    /* …and surface that prediction + result inline under the question title */
    .vpa-bonus-pred-inline {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        font-weight: 400;
        color: var(--c-text-dim, #aaa);
    }
    /* Bekijk: tighter */
    .vpa-bonus-col-bekijk { padding-right: 4px !important; }
    /* Icon smaller */
    .vpa-bonus-col-icon img { height: 22px !important; }
    /* Title: allow wrap */
    .vpa-bonus-col-title { white-space: normal; font-size: 13px; }
    /* Pts: larger, right-aligned */
    .vpa-bonus-col-pts { font-size: 15px !important; font-weight: 700; min-width: 36px; }
}

/* ── voorspellen_all: scores centered flex row ──────────────────────────── */
.vpa-scores-flex {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    column-gap: 6px;
    align-items: center;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
}
.vpa-vs-sep {
    font-size: 11px; font-weight: 700;
    color: var(--c-text-dim); flex-shrink: 0; white-space: nowrap;
    text-align: center;
}
.vpa-score-home { display: flex; flex-direction: column; align-items: flex-end;             } /* flush right against vs */
.vpa-score-away { display: flex; flex-direction: column; align-items: flex-start !important; } /* flush left against vs */

/* KO pred row: uses same mc-row structure as game row → flags auto-align */
.mc-vpa-pred { margin-top: 0; }
/* "voorspelling" full-width label row between score and pred teams */
.vpa-pred-label {
    font-size: 10px;
    color: var(--c-text-dim);
    text-align: center;
    padding: 4px 0 2px;
    opacity: 0.7;
}
/* Pred score row below pred teams */
.vpa-pred-scores { margin-top: 2px; }
/* Game team green when prediction was correct */
.mc-row-home.vpa-game-correct .mc-name,
.mc-row-away.vpa-game-correct .mc-name { color: var(--c-win, #4ade80); font-weight: 700; }

/* ── voorspellen_all score columns (per team, adjacent to vs) ───────────── */
.vpa-score-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
/* Home score: right-align numbers (flush against vs from left) */
.mc-input-home .vpa-score-col { align-items: flex-end; }
/* Away score: left-align numbers (flush against vs from right) */
.mc-row-away .vpa-score-col,
.mc-input-away .vpa-score-col { align-items: flex-start; }

/* Actual result score (top) */
.vpa-sc-actual {
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text-dim);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.vpa-sc-exact { color: var(--c-win, #4ade80); }
/* vpa-sc-toto defined below in the score coloring block */

/* Predicted score — same font as actual */
.vpa-sc-pred {
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text-dim);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
/* When no actual yet — pred takes the main slot */
.vpa-sc-only {
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text);
}

/* voorspellen_all mc: single-row grid — no empty row 2 gap on desktop */
.mc-vpa { grid-template-rows: auto !important; }
/* Align teams toward the center (mirror the score row layout) */
.mc-vpa .mc-row-home { justify-content: flex-end; }
.mc-vpa .mc-row-home .mc-team { flex-direction: row-reverse; flex: 0 1 auto; }
.mc-vpa .mc-row-away { justify-content: flex-start; }
.mc-vpa .mc-row-away .mc-team { flex-direction: row; flex: 0 1 auto; }

/* ── voorspellen_all score coloring ─────────────────────────────────────── */
/* Unified: same class on actual and predicted, per side */
.vpa-sc-super     { color: var(--c-supermax, #f0a830) !important; font-weight: 800; }
.vpa-sc-max       { color: var(--c-max, #9333ea)      !important; font-weight: 800; }
.vpa-sc-toto      { color: var(--c-win, #4ade80)       !important; font-weight: 800; }
.vpa-sc-toto-hit  { color: var(--c-win, #4ade80)       !important; font-weight: 800; }
.vpa-sc-pred-digit { color: #f97316 !important; font-weight: 600; }
.vpa-sc-pred-max   { color: var(--c-max, #9333ea) !important; font-weight: 700; }
.vpa-sc-pred-super { color: var(--c-supermax, #f0a830) !important; font-weight: 800; }
.vpa-sc-pred-toto  { color: var(--c-text) !important; font-weight: 600; }

/* ── Match card border by game state ────────────────────────────────────── */
/* One consistent border for every match row — the game state is already conveyed
   by the result/points colouring, so no per-state border colour. A faint
   background tint is kept as a subtle cue. */
table.pred-table tr.vp-match-row {
    border: 1px solid rgba(255,255,255,0.10) !important;
}
table.pred-table tr.vpa-row-pending.vp-match-row { background: rgba(255,255,255,0.02) !important; }
table.pred-table tr.vpa-row-toto.vp-match-row    { background: rgba(14,159,194,0.04) !important; }
table.pred-table tr.vpa-row-exact.vp-match-row   { background: rgba(74,222,128,0.05) !important; }

/* KO predicted teams row — aligns under result teams in mc grid */
.vpa-ko-row { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.mc-input-away.vpa-ko-row { justify-content: flex-end; flex-direction: row-reverse; }

/* KO team correct / wrong highlighting */
.vpa-ko-correct { color: var(--c-win, #4ade80); }
.vpa-ko-correct .pred-team-name,
.vpa-ko-correct .mc-name { color: var(--c-win, #4ade80); font-weight: 700; }
.vpa-ko-wrong   { opacity: 0.45; }
.vpa-ko-wrong .pred-team-name,
.vpa-ko-wrong .mc-name { text-decoration: line-through; }

/* ── voorspellen_all bottom bar: bekijk | badges | pts ───────────────────── */
.vpa-bottom-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    /* no width:100% — block element fills its parent naturally */
}
/* Badges centered (aligned with vs); pts right with breathing room */
.vpa-bottom-bar .vpa-badges {
    display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap;
    flex: 1;                        /* take remaining space between bekijk and pts */
    justify-content: center;        /* center badges — aligns visually with vs above */
}
.vpa-badges { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vpa-bottom-bar .vpa-pts-wrap { flex-shrink: 0; text-align: right; margin-left: auto; margin-right: 12px; }
.vpa-bottom-bar .vpa-pts { font-size: 22px; }

/* ── voorspellen_all WGV + arrow — last row of match card ───────────────── */
.vpa-wgv-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.vpa-wgv-row .pred-wgv-wrap {
    flex: 1;
    min-width: 0;
}
.vpa-wgv-row .pred-wgv-bar { width: 100%; }

/* ── voorspellen_all right panel ────────────────────────────────────────── */
.vpa-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    width: 80px;
}
.vpa-right-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.vpa-right-bottom .vp-click-btn { align-self: stretch; text-align: center; justify-content: center; }

/* ── voorspellen_all flex-row specifics ─────────────────────────────────── */
.vpa-score-row {
    font-size: clamp(13px, 2vw, 15px);
    color: var(--c-text);
    margin-top: 4px;
}
.vpa-score-label {
    color: var(--c-text-dim);
    font-size: 11px;
}
.vpa-ko-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-size: 13px;
    width: 100%;
}
.vpa-ko-teams .vpa-score-label {
    width: 100%;
    margin-bottom: 2px;
}
.vpa-pts-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 2px;
}
.vpa-pts {
    font-size: 25px;
    font-weight: 700;
    text-align: center;
}
.vpa-pts-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vpa-pts-zero   { color: var(--c-text-dim); }
.vpa-pts-super  { color: var(--c-supermax); }
.vpa-pts-max    { color: var(--c-max); }
.vpa-pts-dubbel { color: #f97316; }
.vpa-pts-toto   { color: var(--c-win); }
.vpa-land-pts {
    font-size: 12px;
    color: var(--c-accent, #0e9fc2);
    font-weight: 600;
}
.vpa-grand-pts {
    font-weight: 700;
    color: var(--c-accent, #0e9fc2);
    margin-left: auto;
    padding-left: 12px;
}
.vp-ko-teams {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.vp-ko-sep {
    color: var(--c-text-dim, #666);
    font-size: 11px;
}
.vp-match-row:hover td {
    background: rgba(255,255,255,0.05) !important;
}
.vp-total-row td {
    background: rgba(14,159,194,0.08);
    border-top: 2px solid rgba(14,159,194,0.30);
    font-weight: 700;
    color: var(--c-accent, #0e9fc2);
    padding: 6px 10px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vp-group-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text, #dff0f6);
    letter-spacing: 0.02em;
}
.vp-group-heading::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--c-primary, #0e9fc2);
    flex-shrink: 0;
}
.vp-matches-heading {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-dim, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 14px 0 6px;
}
.vp-intro {
    color: var(--c-text-dim, #aaa);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 18px;
}

/* ── vpa legend ────────────────────────────────────────────────────────────── */
.vpa-legend {
    background: var(--c-bg2, rgba(255,255,255,0.04));
    border: 1px solid var(--c-border, rgba(255,255,255,0.10));
    border-radius: 10px;
    margin: 18px 0 20px;
    font-size: 13px;
}
.vpa-legend-toggle {
    cursor: pointer;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--c-text-dim);
    list-style: none;
    user-select: none;
}
.vpa-legend-toggle::-webkit-details-marker { display: none; }
.vpa-legend[open] .vpa-legend-toggle { border-bottom: 1px solid var(--c-border, rgba(255,255,255,0.08)); }
.vpa-legend-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px 20px;
    padding: 14px 16px;
}
.vpa-legend-section strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-dim);
    margin-bottom: 6px;
}
.vpa-legend-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.vpa-legend-section li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--c-text);
    line-height: 1.4;
}
.vpa-legend-color {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ── voorspellen_all.php (block 2 — stat card colours) ── */
.ps-card-rank {
    background: linear-gradient(135deg, rgba(14,159,194,0.22), rgba(14,120,160,0.14));
    border-color: rgba(14,159,194,0.45);
}
.ps-card-rank .ps-value { color: #2dd4f0; }
.ps-card-rank .ps-sub   { color: rgba(45,212,240,0.75); font-size: 12px; font-weight: 600; }
.ps-card-pool {
    background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(16,130,60,0.10));
    border-color: rgba(34,197,94,0.38);
}
.ps-card-pool .ps-value { color: #4ade80; }
.ps-card-ko {
    background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(109,40,217,0.10));
    border-color: rgba(139,92,246,0.40);
}
.ps-card-ko .ps-value { color: #c4b5fd; }
.ps-card-bonus {
    background: linear-gradient(135deg, rgba(236,72,153,0.16), rgba(190,24,93,0.10));
    border-color: rgba(236,72,153,0.38);
}
.ps-card-bonus .ps-value { color: #f9a8d4; }
.ps-card-avg {
    background: linear-gradient(135deg, rgba(249,115,22,0.16), rgba(194,65,12,0.10));
    border-color: rgba(249,115,22,0.38);
}
.ps-card-avg .ps-value { color: #fdba74; }
.ps-card-best {
    background: linear-gradient(135deg, rgba(234,179,8,0.18), rgba(161,98,7,0.10));
    border-color: rgba(234,179,8,0.40);
}
.ps-card-best .ps-value { color: #fde047; }
.ps-card-super {
    background: linear-gradient(135deg, rgba(255,180,0,0.22), rgba(255,100,0,0.14));
    border-color: rgba(255,160,0,0.50);
}
.ps-card-super .ps-value { color: #f0a830; }
.ps-card-dubbel {
    background: linear-gradient(135deg, rgba(14,159,194,0.14), rgba(6,100,140,0.08));
    border-color: rgba(14,159,194,0.32);
}
.ps-card-dubbel .ps-value { color: #f97316; }
.ps-unit {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.65;
}

/* ── wedstrijd_detail.php ── */
.wd-panel-team  { display:flex; align-items:center; gap:8px; flex:1; }
.wd-panel-team-away { justify-content:flex-end; }
.wd-panel-flag  { width:30px; height:auto; border-radius:2px; }
.wd-panel-score { font-size:22px; font-weight:800; color:var(--c-text,#dff0f6); letter-spacing:2px; text-align:center; padding:0 12px; white-space:nowrap; }
.wd-panel-vs    { font-size:14px; font-weight:600; color:var(--c-text-dim,#888); text-align:center; padding:0 12px; }
.wd-panel-meta-sep  { flex:1; }
.wd-panel-wgv   { padding:8px 16px 10px; border-top:1px solid rgba(255,255,255,0.06); }
.wd-panel-wgv-labels { display:flex; justify-content:space-between; font-size:11px; font-weight:600; margin-bottom:4px; }
.wd-wgv-title   { font-size:11px; color:var(--c-text-dim,#aaa); text-transform:uppercase; letter-spacing:0.06em; }
.wd-wgv-lbl-w   { color:var(--c-win,#4ade80); }
.wd-wgv-lbl-g   { color:var(--c-draw,#888); }
.wd-wgv-lbl-v   { color:var(--c-lose,#f87171); }
.wd-wgv-bar     { display:flex; border-radius:4px; overflow:hidden; gap:2px; }
.wd-wgv-seg     { display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:rgba(0,0,0,0.65); min-width:0; }
.wd-wgv-seg span { white-space:nowrap; }
.wd-wgv-seg-w   { background:var(--c-win,#4ade80); }
.wd-wgv-seg-g   { background:var(--c-draw,#888); }
.wd-wgv-seg-v   { background:var(--c-lose,#f87171); }
.wd-dist-score  { font-weight:700; min-width:36px; }
.wd-dist-correct .wd-dist-score { font-weight:700; }
.wd-badges { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }

/* ── KO predicted teams column ──────────────────────────────────────────── */
.col-teams { white-space: nowrap; font-size: 12px; }
.wd-pred-team {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.wd-pred-vs {
    display: inline-block;
    margin: 0 5px;
    font-size: 11px;
    color: var(--c-text-dim, #888);
}
.wd-team-correct { color: var(--c-win, #4ade80); }
.wd-team-wrong   { color: var(--c-text-dim, #888); text-decoration: line-through; }

/* ── wedstrijd_detail + bonus_detail — MOBILE (≤ 680px) ─────────────── */
@media (max-width: 680px) {
    /* Info panel: full width, no inline-block */
    .wd-panel {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Team flags + score + name: scale down */
    .wd-panel-flag  { width: 22px !important; }
    .wd-panel-score { font-size: 18px; letter-spacing: 1px; padding: 0 6px; }
    .wd-panel-vs    { font-size: 13px; padding: 0 6px; }
    .wd-panel-name  { font-size: 13px; }

    /* Meta strip: smaller gaps */
    .wd-panel-meta { gap: 8px; padding: 5px 12px 7px; font-size: 10px; }
    .wd-panel-wgv  { padding: 6px 12px 8px; }

    /* Distribution table: tighter */
    .wd-panel-dist { padding: 8px 12px 10px; }
    .wd-dist-tbl   { font-size: 11px; }
    .wd-dist-tbl td, .wd-dist-tbl th { padding: 2px 4px; }

    /* Predictions table: hide Badge col (merged into name on mobile) +
       hide Subpool col + hide the empty last col */
    .wd-badge-col { display: none !important; }
    #wd-table .col-sub,
    #bd-table .col-sub { display: none !important; }

    /* Badge appears inline below team name on mobile */
    #wd-table td.col-name { white-space: normal; }
    #wd-table td.col-name::after { display: block; }

    /* Subpool filter: horizontal scroll */
    .wd-sp-btns {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .wd-sp-btns::-webkit-scrollbar { display: none; }
    .wd-sp-btn { flex: 0 0 auto; }

    /* Ensure horizontal scroll on predictions table */
    .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOERNOOI PAGES  (toernooi_info, stadiums, team_detail, toernooi_schema)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared navigation bar ──────────────────────────────────────────────── */
.ti-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ── Shared badges ──────────────────────────────────────────────────────── */
/* Base for all coloured inline badges — set color/background via style="" */
.badge-conf {
    border-radius: 3px;
    padding: 0 5px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.6;
}
.badge-win {
    background: rgba(255,200,0,0.15);
    border: 1px solid rgba(255,200,0,0.4);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #ffc800;
    white-space: nowrap;
}
.badge-runner {
    background: rgba(180,180,180,0.1);
    border: 1px solid rgba(180,180,180,0.3);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #a0a8b0;
    white-space: nowrap;
}
.badge-count {
    background: rgba(14,159,194,0.1);
    border-radius: 12px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-accent);
    white-space: nowrap;
}
.badge-finale {
    background: rgba(255,200,0,0.15);
    border: 1px solid rgba(255,200,0,0.4);
    border-radius: 4px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    color: #ffc800;
}
/* Surface/confederation coloured badge — set border-color and color via style="" */
.badge-surface {
    border-radius: 4px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid transparent;
}

/* ── W/G/V record ───────────────────────────────────────────────────────── */
.wkr-stat { font-size: 10px; white-space: nowrap; }
.wkr-w    { color: #4caf7d; font-weight: 700; }
.wkr-g    { color: var(--c-text-dim); font-weight: 600; }
.wkr-v    { color: #e05252; font-weight: 700; }
.wkr-sep  { opacity: .35; }

/* ══════════════════════════════════════════════════════════
   TOERNOOI_INFO
   ══════════════════════════════════════════════════════════ */
.ti-legend-body {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 12px;
    color: var(--c-text-dim);
}
.ti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}
.ti-flag-cell {
    width: 60px;
    padding: 8px 10px 8px 14px;
    vertical-align: middle;
}
.ti-flag-cell img { border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); vertical-align: middle; }
.ti-info-cell { padding: 8px 10px 8px 6px; }
.ti-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.2;
}
.ti-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}
.ti-coach {
    font-size: 10px;
    color: var(--c-text-dim);
    white-space: nowrap;
}
.ti-coach-icon { font-size: 13px; }
.ti-contender {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.ti-spacer { flex: 1; }
.ti-fifa {
    font-size: 10px;
    color: var(--c-text-dim);
    font-weight: 500;
    white-space: nowrap;
}
.ti-fifa strong { font-size: 12px; font-weight: 700; }
.ti-group-counter {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: var(--c-text-dim);
    letter-spacing: 0.04em;
}
tr.team-row { transition: background 120ms ease; cursor: pointer; }
tr.team-row:hover { background: rgba(255,255,255,0.06); }
tr.team-row:hover .team-row-arrow { color: var(--c-accent); }
.team-row-arrow { color: var(--c-accent); font-size: 32px; line-height: 1; padding: 10px 14px 10px 4px; transition: color 120ms ease; vertical-align: middle; font-weight: 700; }

/* Desktop: counter hidden (already obvious in grid) */
.ti-group-counter { display: none; }
/* Make card-header a flex row so counter can sit right */
.ti-grid > .card .card-header {
    display: flex;
    align-items: center;
}

@media (max-width: 680px) {
    /* toernooi_info: swipeable card carousel */
    .ti-group-counter { display: inline; }

    .ti-carousel-wrap {
        position: relative;
        /* overflow:hidden clips the peeking next card cleanly */
        overflow: hidden;
        margin: 0 -14px;          /* bleed to page edges */
    }

    .ti-grid {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        gap: 12px;
        padding: 4px 14px 4px;   /* left pad = card starts at 14px; right pad shows peek */
        /* right side: card is 88% wide so ~12% of next card peeks in */
        box-sizing: content-box;
    }
    .ti-grid::-webkit-scrollbar { display: none; }

    .ti-grid > .card[data-group] {
        flex: 0 0 88%;
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-bottom: 0;
        /* Lift cards so they look physical */
        box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    }

    /* Dots sit nicely under the track */
    #ti-pool-dots {
        margin: 8px 14px 4px;
    }
}

/* ══════════════════════════════════════════════════════════
   STADIUMS
   ══════════════════════════════════════════════════════════ */
#stadium-map { height: 380px; width: 100%; background: #1a2030; }
.stad-country-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.stad-country-header img { border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.stad-country-stats {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: var(--c-text-dim);
}
.stad-item {
    cursor: pointer;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.stad-item:hover { background: rgba(14,159,194,0.06); }
.stad-item:last-child { border-bottom: 0; }
.stad-body { display: flex; align-items: flex-start; gap: 12px; }
.stad-detail { flex: 1; min-width: 0; }

/* ── stadium_detail metrics strip ── */
.stad-metrics { display: flex; gap: 0; margin-bottom: 14px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); }
.stad-metric  { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 6px; background: var(--c-card-bg); border-right: 1px solid rgba(255,255,255,0.07); }
.stad-metric:last-child { border-right: 0; }
.stad-metric-val { font-size: 14px; font-weight: 700; color: var(--c-text); line-height: 1; }
.stad-metric-lbl { font-size: 9px; color: var(--c-text-dim); text-align: center; white-space: nowrap; }

.stad-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.stad-name { font-size: 14px; font-weight: 700; color: var(--c-text); }
.stad-sub  { font-size: 11px; color: var(--c-text-dim); margin-top: 2px; }
.stad-info-text {
    font-size: 11px;
    color: var(--c-text-dim);
    margin-top: 5px;
    opacity: .8;
    line-height: 1.4;
}
.stad-capbar-wrap {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stad-capbar-bg {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    max-width: 200px;
}
.stad-capbar-fill { height: 100%; border-radius: 2px; background: var(--c-accent); }
.stad-capbar-fill--final { background: linear-gradient(90deg, #ffc800, #ff9800); }
.stad-capbar-val { font-size: 11px; font-weight: 600; color: var(--c-text-dim); }
.stad-games { text-align: center; flex-shrink: 0; }
.stad-games-n {
    background: rgba(14,159,194,0.12);
    border-radius: 10px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-accent);
}
.stad-games-lbl { font-size: 9px; color: var(--c-text-dim); margin-top: 2px; }
.stad-games-none { font-size: 11px; color: var(--c-text-dim); }

/* ══════════════════════════════════════════════════════════
   TEAM_DETAIL
   ══════════════════════════════════════════════════════════ */
.td-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.td-header .stats-title { margin: 0 0 2px; }
.td-flag { border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.td-flag-emoji { font-size: 48px; line-height: 1; }
.td-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px 20px;
}
.td-info-item { display: flex; flex-direction: column; gap: 4px; }
.td-info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-dim);
}
.td-info-val { font-size: 13px; font-weight: 600; color: var(--c-text); }
.td-conf-badge {
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
    width: fit-content;
    border: 1px solid transparent;
}
.td-rank { font-size: 20px; font-weight: 800; line-height: 1; }
.td-wdl { font-size: 13px; font-weight: 600; }
.td-wdl-w { color: #27a85f; }
.td-wdl-g { color: var(--c-text-dim); }
.td-wdl-v { color: #e05252; }
.td-wdl-sep { color: var(--c-text-dim); margin: 0 3px; }
.td-stat-cards { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.td-stat-card { flex: 1; min-width: 120px; text-align: center; }
.td-stat-emoji { font-size: 22px; }
.td-stat-val { font-size: 20px; font-weight: 700; color: var(--c-text); }
.td-stat-lbl { font-size: 11px; color: var(--c-text-dim); }
.td-stat-detail { font-size: 10px; color: var(--c-text-dim); margin-top: 2px; }
.td-note {
    margin-bottom: 16px;
    padding: 9px 13px;
    background: rgba(14,159,194,0.08);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: var(--c-text-dim);
}
.td-appearances { display: flex; flex-wrap: wrap; gap: 5px; }
.td-year-badge {
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 11px;
    border: 1px solid transparent;
}
.td-appearances-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 10px;
    color: var(--c-text-dim);
}
.td-fixtures td { padding: 9px 8px; }
.td-fixtures .fx-date { font-size: 11px; color: var(--c-text-dim); white-space: nowrap; padding-left: 14px; }
.td-fixtures .fx-date span { opacity: .6; }
.td-fixtures .fx-hu { font-size: 12px; color: var(--c-text-dim); padding: 9px 6px; }
.td-fixtures .fx-opp { font-size: 13px; font-weight: 600; color: var(--c-text); }
.td-fixtures .fx-score { text-align: center; }
.td-fixtures .fx-score-val { font-size: 12px; font-weight: 700; color: var(--c-accent); }
.td-fixtures .fx-score-empty { font-size: 11px; color: var(--c-text-dim); }
.td-fixtures .fx-stad { font-size: 11px; color: var(--c-text-dim); text-align: right; padding-right: 14px; }
.td-fixtures .fx-stad a { color: var(--c-accent); text-decoration: none; }
.td-table-th { padding: 8px 14px; text-align: left; font-size: 11px; }
.td-table-th--right { text-align: right; }
.td-leg-name { padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--c-text); }
.td-leg-pos  { padding: 9px 10px; font-size: 12px; color: var(--c-text-dim); }
.td-leg-yrs  { padding: 9px 14px; font-size: 11px; color: var(--c-text-dim); text-align: right; }

/* ── Team detail hero ───────────────────────────────────────────────────── */
.td-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, rgba(14,159,194,0.08) 0%, rgba(232,116,10,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}
.td-hero-flag { flex-shrink: 0; }
.td-hero-flag img  { width: 80px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.5); display: block; }
.td-hero-flag span { font-size: 72px; line-height: 1; display: block; }
.td-hero-body { flex: 1; min-width: 0; }
.td-hero-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.td-hero-name {
    font-family: 'UEFA Euro Extrabold Narrow', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: .5px;
    color: var(--c-text);
    margin: 0;
    line-height: 1.1;
}
.td-hero-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--c-text-dim);
    margin-bottom: 14px;
}
.td-hero-dot { opacity: .4; }
.td-hero-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.td-hs-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--c-text-dim);
    flex-wrap: wrap;
}
.td-hs-gold   { border-color: rgba(255,200,0,0.35); background: rgba(255,200,0,0.08); }
.td-hs-silver { border-color: rgba(180,180,180,0.3); background: rgba(180,180,180,0.06); }
.td-hs-record { font-size: 12px; font-weight: 600; }
.td-hs-val { font-size: 16px; font-weight: 800; color: var(--c-text); }
.td-hs-gold   .td-hs-val { color: #ffc800; }
.td-hs-silver .td-hs-val { color: #a0a8b0; }
.td-hs-lbl    { font-size: 11px; color: var(--c-text-dim); }
.td-hs-years  { font-size: 10px; color: var(--c-text-dim); opacity: .8; }

/* ── Poulestand team link ───────────────────────────────────────────────── */
a.pstand-team-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    transition: color .12s;
}
a.pstand-team-link:hover { color: var(--c-accent); }

.td-funfact {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(14,159,194,0.07) 0%, rgba(232,116,10,0.06) 100%);
    border: 1px solid rgba(14,159,194,0.18);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 8px 8px 0;
}
.td-funfact-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-accent);
    margin-bottom: 8px;
}
.td-funfact-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--c-text-dim);
}
.td-funfact-text em { color: var(--c-accent); font-style: normal; font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   TOERNOOI_SCHEMA  (bracket moved from inline <style>)
   ══════════════════════════════════════════════════════════ */
.bracket-wrap { overflow-x: auto; padding-bottom: 8px; }
.bracket { display: flex; align-items: stretch; min-width: 860px; gap: 0; }
.bround {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    min-width: 110px;
}
.bround-label {
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    color: var(--c-text-dim);
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2px;
}
.bpod {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    min-height: 0;
}
.bm-sr {
    font-weight: 400;
    opacity: .65;
    font-size: 7px;
    margin-left: 4px;
    letter-spacing: 0;
}
.bm {
    margin: 2px 0;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: default;
    transition: border-color .15s, background .15s;
    font-size: 10px;
}
.bm:hover, .bm.bm--hi { border-color: rgba(14,159,194,0.5); background: rgba(14,159,194,0.06); }
.bm--played { background: rgba(255,255,255,0.07); }
.bm-round { font-size: 8px; font-weight: 700; color: #fff; padding: 1px 5px; letter-spacing: .05em; }
.bm-teams { padding: 3px 5px 1px; }
.bm-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.2;
    overflow: hidden;
}
.bm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.bm-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 1px 0; }
.bm-score { font-size: 11px; flex-shrink: 0; }
.bm-meta {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 1px 5px 2px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 2px;
}
.bm-date { font-size: 8px; color: var(--c-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bconn { width: 14px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-around; }
.bconn-pair { flex: 1; display: flex; flex-direction: column; align-items: flex-end; }
.bconn-pair::before { content:''; flex:1; width:7px; border-right:1px solid rgba(14,159,194,0.35); border-bottom:1px solid rgba(14,159,194,0.35); }
.bconn-pair::after  { content:''; flex:1; width:7px; border-right:1px solid rgba(14,159,194,0.35); border-top:1px solid rgba(14,159,194,0.35); }
.bconn--rev .bconn-pair { align-items: flex-start; }
.bconn--rev .bconn-pair::before { border-right:none; border-left:1px solid rgba(14,159,194,0.35); border-bottom:1px solid rgba(14,159,194,0.35); }
.bconn--rev .bconn-pair::after  { border-right:none; border-left:1px solid rgba(14,159,194,0.35); border-top:1px solid rgba(14,159,194,0.35); }
.bcenter { display:flex; flex-direction:column; justify-content:center; align-items:stretch; flex-shrink:0; width:140px; padding:0 3px; gap:6px; }
.bcenter .bm { margin: 0; }
.bconn-sf { justify-content: center; }
.bconn-sf .bconn-pair, .bconn-sf-pair { flex: unset; height: 50%; }

/* ── Mobile inline quick-nav (Toernooi / Voorspellen / Poolstand) ─── */
/* hidden by default, shown on mobile as inline flex inside .site-nav */
.mob-nav-links {
    display: none;
}
@media (max-width: 680px) {
    .mob-nav-links {
        display: flex;
        flex: 1;
        align-self: stretch;
        position: relative;   /* anchor for the .mqn-pop submenu dropdowns */
    }
    .mqn-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 5px 2px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: var(--c-text-dim);
        text-decoration: none;
        transition: color 0.15s, background 0.15s;
        line-height: 1;
        /* reset native <button> chrome (some quick-nav items are buttons now) */
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        border: none;
        border-left: 1px solid rgba(255,255,255,0.06);
        font-family: inherit;
        cursor: pointer;
        margin: 0;
    }
    .mqn-btn:first-child { border-left: none; }
    .mqn-btn:hover,
    .mqn-btn:active { color: #fff; background: rgba(255,255,255,0.05); }
    .mqn-btn.mqn-active {
        color: var(--c-orange);
        background: rgba(232,116,10,0.10);
        border-bottom: 2px solid var(--c-orange);
    }
    .mqn-icon {
        font-size: 16px;
        line-height: 1;
    }
    /* Submenu popovers, opened by the Toernooi / Voorspellen / Stand buttons */
    .mqn-pop {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1300;
        background: var(--c-bg2, #0b1e38);
        border-top: 1px solid var(--c-border, rgba(255,255,255,0.12));
        box-shadow: 0 10px 22px rgba(0,0,0,0.40);
        padding: 4px 0;
    }
    .mqn-pop.open { display: block; }
    .mqn-pop a {
        display: block;
        padding: 12px 18px;
        font-size: 14px;
        font-weight: 600;
        color: var(--c-text, #dff0f6);
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .mqn-pop a:last-child { border-bottom: none; }
    .mqn-pop a:active { background: rgba(255,255,255,0.06); }
    .mqn-btn[data-mqn].mqn-open {
        color: var(--c-orange);
        background: rgba(232,116,10,0.10);
    }
}

/* ── admin_topscorer: NL import button + log ──────────────────────────────── */
.btn-import-squad {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,165,0,0.18);
    border: 1px solid rgba(255,165,0,0.45);
    border-radius: 6px;
    cursor: pointer;
    transition: background 150ms, border-color 150ms;
    white-space: nowrap;
}
.btn-import-squad:hover {
    background: rgba(255,165,0,0.30);
    border-color: rgba(255,165,0,0.70);
}
.import-log {
    font-size: 11px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(14,159,194,0.06);
    border: 1px solid rgba(14,159,194,0.20);
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.import-log strong { color: var(--c-text); margin-right: 4px; }
.import-log-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}
.import-log-num {
    font-weight: 700;
    color: var(--c-accent);
    min-width: 22px;
}
.import-log-pos { color: var(--c-text-dim); font-size: 10px; }
.import-log-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 2px;
}
.import-log-ins .import-log-badge {
    background: rgba(39,174,96,0.15);
    color: #4caf88;
    border: 1px solid rgba(39,174,96,0.30);
}
.import-log-upd .import-log-badge {
    background: rgba(14,159,194,0.12);
    color: var(--c-accent);
    border: 1px solid rgba(14,159,194,0.25);
}

/* ── WK2026 Squad card (team_detail.php) ──────────────────────────────────── */
.squad-pos-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    padding: 8px 12px 4px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.squad-pos-header:first-child { border-top: none; }
.squad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.squad-th {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    color: var(--c-text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}
.squad-th-num  { width: 28px; text-align: center; }
.squad-th-age  { width: 30px; text-align: right; }
.squad-th-caps { width: 38px; text-align: right; }
.squad-td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.squad-td-num {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--c-accent);
    width: 28px;
}
.squad-td-naam { font-weight: 500; }
.squad-td-club {
    color: var(--c-text-dim);
    font-size: 11px;
}
.squad-td-age, .squad-td-caps {
    text-align: right;
    color: var(--c-text-dim);
    font-size: 11px;
    white-space: nowrap;
}
.squad-row--captain .squad-td-naam { color: var(--c-accent-warm, #ffc800); }
.squad-captain-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    color: var(--c-accent-warm, #ffc800);
    background: rgba(255,200,0,0.12);
    border: 1px solid rgba(255,200,0,0.30);
    border-radius: 3px;
    padding: 0 3px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 14px;
}
.squad-note {
    font-size: 10px;
    color: var(--c-text-dim);
    opacity: .6;
    padding: 6px 12px;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-style: italic;
}
@media (max-width: 480px) {
    .squad-th-club, .squad-td-club { display: none; }
}
