/* ==========================================================================
   Agoplay.Web — stijl van de website
   --------------------------------------------------------------------------
   Eigen ontwerp voor groot scherm (de app heeft haar eigen schermen):
   donkergroene zijbalk zoals een padelbaan, kalkwitte werkruimte, en de gele
   bal (#DDEA3B) enkel voor wat gekozen of actief is. De baantijdlijn
   (.court) is het enige "luide" element: groen veld met witte lijnen.
   ========================================================================== */

:root {
    /* App-palet (theme.css "Fresh"): baan = padelblauw van "Jouw matchen", werkruimte = app-achtergrond. */
    --court: #2C6E7E;
    --court-2: #24606E;
    --court-line: rgba(255, 255, 255, .55);
    --chalk: #EEF4EE;
    --paper: #FFFFFF;
    --ink: #15201F;
    --ink-2: #4E5A56;
    --ink-3: #87918C;
    --line: #E1E6DD;
    --line-2: #EEF1EB;
    --lime: #DDEA3B;
    --lime-ink: #3F4708;
    --glass: #0E8FA8;
    --app-acc: #0E8FA8;
    --glass-soft: #E1F0F3;
    --clay: #C2603F;
    --clay-soft: #F6E6DF;
    --danger: #B3261E;
    --danger-soft: #FBEAE8;
    --warn: #7A5410;
    --warn-soft: #F6EDD3;

    --font-display: 'Quicksand', 'Outfit', system-ui, sans-serif;
    --font-body: 'Archivo', system-ui, sans-serif;

    --r-panel: 14px;
    --r-control: 10px;
    --rail: 248px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--chalk);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.15;
}

h1 { font-size: 30px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }

p { margin: 0; }

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

button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2.5px solid var(--glass);
    outline-offset: 2px;
}

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

/* ---------- Opstarten ---------- */

.boot {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--court);
}

.boot svg { animation: boot-bounce 1.1s ease-in-out infinite; }

@keyframes boot-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--danger);
    color: #fff;
}
#blazor-error-ui a { color: #fff; font-weight: 600; text-decoration: underline; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ---------- Schil: zijbalk + werkruimte ---------- */

.shell { min-height: 100vh; }

.rail {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 14px 16px;
    background: var(--court);
    color: #fff;
    /* Achterlijn + middenlijn van een baan, heel subtiel. */
    background-image:
        linear-gradient(90deg, transparent calc(100% - 1px), rgba(255, 255, 255, .08) 0),
        linear-gradient(0deg, transparent calc(50% - .5px), rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) calc(50% + .5px), transparent 0);
}

.rail-logo { padding: 2px 10px 0; color: #fff; }
.rail-logo:hover { text-decoration: none; }

.rail-nav { display: flex; flex-direction: column; gap: 2px; }

.rail-group {
    padding: 14px 12px 4px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}

.rail-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--r-control);
    color: rgba(255, 255, 255, .86);
    font-weight: 500;
    font-size: 14.5px;
}
.rail-link svg { width: 20px; height: 20px; flex: none; }
.rail-link:hover { background: var(--court-2); color: #fff; text-decoration: none; }
.rail-link.active { background: var(--lime); color: var(--ink); }
.rail-link .count {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
}
.rail-link.active .count { background: var(--ink); color: var(--lime); }

.rail-me {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--r-control);
    color: #fff;
}
.rail-me:hover { background: var(--court-2); text-decoration: none; }
.rail-me .name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.rail-me .sub { font-size: 12px; color: rgba(255, 255, 255, .6); }

.main { min-width: 0; }

.page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 34px 40px 72px;
}

.page.narrow { max-width: 760px; }

.page-head {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.page-head .lead { color: var(--ink-2); margin-top: 6px; max-width: 62ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.back:hover { color: var(--ink); text-decoration: none; }

/* Mobiele kop + tabbalk (verborgen op groot scherm) */
.topbar, .tabbar { display: none; }

@media (max-width: 900px) {
    .shell { display: block; }
    .rail { display: none; }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        background: var(--court);
        color: #fff;
    }
    .topbar .spacer { flex: 1; }
    .topbar a { color: #fff; display: flex; position: relative; }
    .topbar a:hover { text-decoration: none; }
    .topbar svg { width: 22px; height: 22px; }
    .topbar .dot {
        position: absolute;
        top: -3px; right: -4px;
        width: 9px; height: 9px;
        border-radius: 50%;
        background: var(--lime);
        border: 2px solid var(--court);
    }

    .tabbar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: var(--paper);
        border-top: 1px solid var(--line);
    }
    .tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 5px 0;
        border-radius: var(--r-control);
        color: var(--ink-3);
        font-size: 11.5px;
        font-weight: 600;
    }
    .tabbar a:hover { text-decoration: none; }
    .tabbar a svg { width: 22px; height: 22px; }
    .tabbar a.active { color: var(--ink); }
    .tabbar a.active svg { color: var(--ink); background: var(--lime); border-radius: 8px; padding: 2px; width: 26px; height: 26px; margin: -2px 0; }

    .page { padding: 22px 16px 104px; }
    h1 { font-size: 25px; }
}

/* ---------- Bouwstenen ---------- */

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack.tight { gap: 12px; }

@media (max-width: 980px) {
    .grid-2, .grid-2.even { grid-template-columns: minmax(0, 1fr); }
}

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    padding: 20px 22px;
}
.panel.flush { padding: 0; overflow: hidden; }
.panel.quiet { background: transparent; border-style: dashed; }

.panel-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.panel-head .side { margin-left: auto; font-size: 14px; }
.panel-head .sub { color: var(--ink-3); font-size: 13.5px; }

.rows > * + * { border-top: 1px solid var(--line-2); }

.row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
}
.panel.flush .row { padding: 13px 22px; }
a.row, button.row {
    width: 100%;
    color: inherit;
    text-align: left;
    background: none;
    border-left: 0; border-right: 0; border-bottom: 0;
    cursor: pointer;
}
.rows > a.row:first-child, .rows > button.row:first-child { border-top: 0; }
a.row:hover, button.row:hover { background: #F7F9F4; text-decoration: none; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.row .meta { color: var(--ink-3); font-size: 13.5px; }
.row .end { flex: none; text-align: right; }

.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }
.strong { font-weight: 600; }
.num { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.error {
    color: var(--danger);
    font-size: 14px;
}
.notice {
    padding: 12px 14px;
    border-radius: var(--r-control);
    background: var(--glass-soft);
    color: #0D4452;
    font-size: 14px;
}
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--danger-soft); color: var(--danger); }
.notice.good { background: #EEF4C8; color: var(--lime-ink); }

.empty {
    padding: 26px 8px;
    text-align: center;
    color: var(--ink-2);
}
.empty .title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }

/* ---------- Knoppen ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: var(--r-control);
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { background: #26332F; text-decoration: none; color: #fff; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: default; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn.lg { min-height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.ball { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.ball:hover { background: #D2E02C; color: var(--ink); }
.btn.ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: #F5F7F2; color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #9A1F18; }
.btn.danger-ghost { background: var(--paper); border-color: #EBC9C5; color: var(--danger); }
.btn.danger-ghost:hover { background: var(--danger-soft); color: var(--danger); }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--glass);
    font-weight: 600;
    cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
.link-btn.quiet { color: var(--ink-2); }
.link-btn.bad { color: var(--danger); }

/* Standaardgrootte voor <Icon> zonder Size (bv. het pijltje in een rij). Lage specificiteit:
   regels zoals ".btn svg" of ".icon-btn svg" gaan voor. */
.ic { width: 20px; height: 20px; flex: none; }

.icon-btn {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    flex: none;
}
.icon-btn:hover { background: #F5F7F2; }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Keuzes ---------- */

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.chip:hover { border-color: #C9D1C5; }
/* Eenvoudige weergave van de vrije uren (CourtTimeline, lijst). */
.slot-list { display: flex; flex-direction: column; gap: 16px; }
.slot-list-court .court-name { margin-bottom: 8px; font-size: 14px; }
.slot-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s; }
.slot-box:hover { border-color: var(--ink); }
.slot-box b { font-family: var(--font-display); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-box small { font-size: 12px; color: var(--ink-3); }
.slot-box.on { background: var(--lime); border-color: var(--lime); }
.slot-box.busy { background: #EEF1EC; border-color: transparent; color: var(--ink-3); cursor: default; }
.slot-box.busy b { text-decoration: line-through; }
.chips-sep { flex: none; align-self: center; width: 1px; height: 20px; background: var(--line); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:disabled { opacity: .5; cursor: default; }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; }

.seg {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 12px;
    background: #E7EBE3;
}
.seg button {
    border: 0;
    background: transparent;
    padding: 7px 14px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.seg button svg { width: 18px; height: 18px; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 32, 31, .12); }
.seg.block { display: flex; }
.seg.block button { flex: 1; justify-content: center; }

/* Glijdende pil zoals .ag-seg-slide in de app: agoplay.js zet --px/--pw/--po op elke .seg (data-pill).
   Zonder JavaScript blijft de achtergrond op button.on staan. */
.seg { position: relative; }
.seg[data-pill]::before {
    content: "";
    position: absolute; top: 3px; bottom: 3px; left: 0;
    width: var(--pw, 0); transform: translateX(var(--px, 0)); opacity: var(--po, 0);
    border-radius: 9px; background: var(--paper);
    box-shadow: 0 2px 6px rgba(16, 26, 25, .1);
    transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1), opacity .2s;
    pointer-events: none;
}
.seg[data-pill="init"]::before { transition: none; }
.seg[data-pill] > button { position: relative; z-index: 1; transition: color .3s; }
.seg[data-pill] > button.on { background: transparent !important; box-shadow: none !important; }

.toggle {
    flex: none;
    position: relative;
    width: 42px; height: 24px;
    border-radius: 999px;
    border: 0;
    background: #CDD5CB;
    cursor: pointer;
    transition: background .15s;
}
.toggle::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s;
}
.toggle.on { background: var(--ink); }
.toggle.on::after { transform: translateX(18px); background: var(--lime); }

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
}
.check-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.input:focus { outline: none; border-color: var(--glass); box-shadow: 0 0 0 3px var(--glass-soft); }
textarea.input { padding: 10px 14px; min-height: 44px; resize: none; line-height: 1.45; }
input.score { width: 54px; text-align: center; padding: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    background: #E7EBE3;
}
.stepper button {
    width: 30px; height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink-2);
}
.stepper button:hover { background: var(--paper); color: var(--ink); }
.stepper .value { min-width: 54px; text-align: center; font-family: var(--font-display); font-weight: 600; }

/* ---------- Labels ---------- */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--line-2);
    color: var(--ink-2);
    white-space: nowrap;
}
.tag.padel { background: var(--glass-soft); color: #0D4452; }
.tag.tennis { background: var(--clay-soft); color: #7D3519; }
.tag.ball { background: var(--lime); color: var(--ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--danger-soft); color: var(--danger); }
.tag.dark { background: var(--ink); color: #fff; }

.sport-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--glass); }
.sport-dot.tennis { background: var(--clay); }

.rank {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--glass-soft);
    color: #0D4452;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
}

/* ---------- Avatars ---------- */

.avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    overflow: hidden;
    background: var(--ink);
    position: relative;
    /* Met een foto ligt de basislijn onderaan: zonder dit krijgt de omliggende regel extra ruimte (scheve ring). */
    vertical-align: middle;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.avatar.open { background: var(--paper); color: var(--ink-3); border: 1.5px dashed #B9C2BC; }
button.avatar, a.avatar { border: 0; padding: 0; cursor: pointer; }

.club-badge {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
}
.club-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Clubfoto of de gestreepte plaatshouder (zoals in de app). */
.photo {
    position: relative;
    overflow: hidden;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .09) 0 10px, transparent 10px 20px);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Laden ---------- */

.skel {
    border-radius: 8px;
    background: linear-gradient(90deg, #E9EDE6 0%, #F3F5F0 50%, #E9EDE6 100%);
    background-size: 200% 100%;
    animation: skel 1.3s linear infinite;
}
@keyframes skel { to { background-position: -200% 0; } }

.spinner {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2.5px solid var(--line);
    border-top-color: var(--ink);
    animation: spin .8s linear infinite;
    flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Dagen ---------- */

/* Datumkiezer boven de dagenrij (DayStrip): native kalender via een onzichtbare input over de knop. */
.datepick-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.datepick { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.datepick:hover { border-color: #C9D1C5; }
.datepick .txt { display: inline-block; }
.datepick .txt::first-letter { text-transform: uppercase; }
.datepick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; cursor: pointer; }
.datepick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.day {
    flex: none;
    width: 58px;
    padding: 8px 0 7px;
    border-radius: var(--r-control);
    border: 1px solid var(--line);
    background: var(--paper);
    text-align: center;
    cursor: pointer;
}
.day .dow { font-size: 12.5px; color: var(--ink-3); }
.day .d { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.day:hover { border-color: #C9D1C5; }
.day.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.on .dow { color: rgba(255, 255, 255, .7); }

/* ---------- Baantijdlijn (het opvallende element) ---------- */

.court {
    position: relative;
    border-radius: var(--r-panel);
    background: var(--court);
    color: #fff;
    padding: 14px 16px 16px;
    overflow-x: auto;
}
.court-inner { position: relative; }
.court-hours { position: relative; height: 22px; margin-left: var(--label); }
.court-hour {
    position: absolute;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .85);
}
.court-row { display: flex; flex-direction: column; margin-top: 10px; }
/* Naam van de baan boven de urenbalk: volledig leesbaar; blijft links staan bij horizontaal scrollen. */
.court-label {
    position: sticky;
    left: 0;
    align-self: flex-start;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.court-label .n { font-weight: 600; font-size: 14px; line-height: 1.2; }
.court-label .m { font-size: 12px; color: rgba(255, 255, 255, .6); }
.court-track {
    position: relative;
    flex: none;
    height: 52px;
    border: 1.5px solid var(--court-line);
    border-radius: 4px;
}
.court-track::before {
    /* het net */
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    border-left: 1.5px dashed rgba(255, 255, 255, .22);
}
.court-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(255, 255, 255, .09); }
.court-block {
    position: absolute;
    top: 5px; bottom: 5px;
    border-radius: 5px;
    padding: 4px 7px;
    overflow: hidden;
    text-align: left;
    font-size: 12px;
    line-height: 1.2;
}
.court-block .t { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.court-block.busy {
    background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .22) 0 6px, rgba(0, 0, 0, .12) 6px 12px);
    color: rgba(255, 255, 255, .55);
}
.court-block.free {
    border: 1.5px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
}
.court-block.free:hover { background: rgba(255, 255, 255, .18); }
.court-block.on {
    border: 0;
    background: var(--lime);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(221, 234, 59, .35);
}
.court-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.court-legend span { display: inline-flex; align-items: center; gap: 6px; }
.court-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }

/* ---------- Ticket (match) ---------- */

.ticket {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    overflow: hidden;
}
.ticket-top { padding: 22px 24px 18px; }
.ticket-time { font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.ticket-cut {
    position: relative;
    border-top: 1.5px dashed var(--line);
    margin: 0 14px;
}
.ticket-cut::before, .ticket-cut::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--chalk);
    border: 1px solid var(--line);
}
.ticket-cut::before { left: -26px; }
.ticket-cut::after { right: -26px; }
.ticket-bottom { padding: 16px 24px 20px; }

.steps { display: flex; }
.step { flex: 1; position: relative; padding-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.step::before {
    content: "";
    position: absolute;
    top: 5px; left: 0; right: 0;
    height: 2px;
    background: var(--line);
}
.step i {
    position: absolute;
    top: 0; left: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--line);
}
.step.done::before, .step.now::before { background: var(--ink); }
.step.done i { background: var(--ink); border-color: var(--ink); }
.step.now i { background: var(--lime); border-color: var(--ink); }
.step.done, .step.now { color: var(--ink); font-weight: 600; }
.step:last-child::before { right: auto; width: 12px; }

.seats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 10px; }
.seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: #FAFBF8;
    text-align: center;
    cursor: default;
}
button.seat { cursor: pointer; font: inherit; }
/* Boeker: speler verwijderen (057). */
.seat-remove { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; background: var(--card, #fff); color: var(--ink-2); box-shadow: 0 1px 4px rgba(14, 21, 20, .2); font: 700 15px/24px var(--font-body); cursor: pointer; }
.seat-remove:hover { background: #FBE9E7; color: #B3261E; }
button.seat:hover { border-color: #C9D1C5; }
.seat.team-b { background: #F1F7F8; }
.seat .ring { display: flex; padding: 3px; border-radius: 50%; border: 2.5px solid var(--glass); }
.seat .ring.unpaid { border-style: dashed; border-color: #D9A520; }
.seat .ring.free { border: 1.5px dashed #B9C2BC; }
.seat .who { font-weight: 600; font-size: 14px; }
.seat .state { font-size: 12.5px; color: var(--ink-3); }
.vs { align-self: center; justify-self: center; font-family: var(--font-display); font-weight: 600; color: var(--ink-3); }

.scoreline { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.scoreline .who { flex: 1; min-width: 0; }
.scoreline .g { width: 34px; text-align: center; font-family: var(--font-display); font-size: 22px; color: var(--ink-3); }
.scoreline .g.win { color: var(--ink); font-weight: 600; }

/* ---------- Kaarten: rail met competities ---------- */

.rail-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.comp {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: var(--r-panel);
    background: var(--paper);
    border: 1px solid var(--line);
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.comp:hover { border-color: #C9D1C5; text-decoration: none; }
.comp .name { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.comp .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- Clubs ---------- */

.club-hero {
    position: relative;
    height: 220px;
    border-radius: var(--r-panel);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 22px 24px;
    color: #fff;
}
.club-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(14, 21, 20, .72), rgba(14, 21, 20, 0) 65%);
}
.club-hero > * { position: relative; z-index: 1; }
.club-hero h1 { font-size: 34px; }

.club-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: var(--r-panel);
    background: var(--paper);
    border: 1px solid var(--line);
    color: inherit;
}
.club-card:hover { border-color: #C9D1C5; text-decoration: none; }
.club-card .photo { height: 84px; border-radius: 10px; }
@media (max-width: 600px) {
    .club-card { grid-template-columns: 76px minmax(0, 1fr); }
    .club-card .photo { height: 64px; }
    .club-card .end { display: none; }
}

.club-map { height: 520px; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); }
/* Clubkaart (MapLibre, js/clubmap.js): pin per club en het kaartje bij een klik. */
.ag-clubpin-wrap {
    width: 38px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.ag-clubpin {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    background: var(--pin, #3F7A62);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(16, 26, 25, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 2px;
}

    .ag-clubpin > * {
        transform: rotate(45deg);
    }

    .ag-clubpin > span {
        color: #fff;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 11.5px;
    }

    .ag-clubpin > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ag-clubpop-wrap .maplibregl-popup-content {
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(16, 26, 25, .18);
}

.ag-clubpop-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: #101a19;
}

.ag-clubpop-addr {
    font-size: 12px;
    color: #5d6b66;
    margin-top: 2px;
}

.ag-clubpop-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

    .ag-clubpop-actions button, .ag-clubpop-actions a {
        flex: 1;
        padding: 8px 10px;
        border-radius: 999px;
        border: 0;
        font: 700 12px var(--font-body);
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        white-space: nowrap;
    }

    .ag-clubpop-open {
        background: #101a19;
        color: #fff;
    }

    .ag-clubpop-route {
        background: #EEF4C2;
        color: #4a540a;
    }

/* Mijn locatie op de clubkaart: blauwe stip met halo, en de knop "naar mijn locatie". */
.ag-here-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1a73e8;
    border: 3px solid #fff;
    box-shadow: 0 0 0 6px rgba(26, 115, 232, .22), 0 1px 4px rgba(0, 0, 0, .3);
}

.ag-locate-ctrl button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
}

/* ---------- Betalen ---------- */

.sum { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt, .sum span:first-child { color: var(--ink-2); }
.sum .total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line-2);
    align-items: baseline;
}
.sum .total strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }

.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-control);
    border: 1.5px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
}
.method:hover { border-color: #C9D1C5; }
.method.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.method img { width: 36px; height: 26px; object-fit: contain; flex: none; }

/* ---------- Chat ---------- */

.chat {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    height: calc(100vh - 160px);
    min-height: 460px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    overflow: hidden;
}
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list .row { padding: 12px 16px; }
.chat-list .row.on { background: #F1F4EC; }
.chat-room { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; background: #FAFBF8; }
.chat-day { align-self: center; margin: 12px 0 6px; font-size: 12.5px; color: var(--ink-3); }
.msg { max-width: 72%; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .who { font-size: 12.5px; font-weight: 600; }
.msg .bubble {
    padding: 9px 13px;
    border-radius: 14px 14px 14px 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.msg.mine .bubble { border-radius: 14px 14px 4px 14px; background: var(--ink); border-color: var(--ink); color: #fff; }
.msg .at { font-size: 11.5px; color: var(--ink-3); }
.chat-compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
    .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 210px); }
    .chat.in-room .chat-list { display: none; }
    .chat:not(.in-room) .chat-room { display: none; }
}

/* ---------- Aanmelden ---------- */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 520px);
}
.auth-court {
    position: relative;
    overflow: hidden;
    background: var(--court);
    color: #fff;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* Bovenaanzicht van een padelbaan: achterlijnen, servicelijnen, net. */
.auth-court .lines {
    position: absolute;
    inset: 60px 80px;
    border: 2px solid var(--court-line);
    border-radius: 2px;
}
.auth-court .lines::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 30%; bottom: 30%;
    border-top: 2px solid var(--court-line);
    border-bottom: 2px solid var(--court-line);
}
.auth-court .lines::after {
    content: "";
    position: absolute;
    top: 30%; bottom: 30%;
    left: 50%;
    border-left: 2px solid var(--court-line);
}
.auth-court .net { position: absolute; left: 80px; right: 80px; top: 50%; border-top: 3px solid rgba(255, 255, 255, .85); }
.auth-court .ball {
    position: absolute;
    top: calc(30% + 30px);
    left: calc(62% - 9px);
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}
.auth-court > *:not(.lines):not(.net):not(.ball) { position: relative; z-index: 1; }
.auth-court h1 { font-size: 44px; font-weight: 500; letter-spacing: -.035em; max-width: 13ch; }
.auth-court .lead { margin-top: 12px; color: rgba(255, 255, 255, .78); max-width: 42ch; font-size: 16px; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px; gap: 18px; background: var(--paper); }
.auth-form .seg { margin-bottom: 6px; }
/* Registreren in stappen (jij, klassement, account). */
.steps-mini { display: flex; gap: 6px; margin-top: -6px; }
.steps-mini span { flex: 1; padding-top: 8px; border-top: 3px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-3); transition: border-color .3s, color .3s; }
.steps-mini span.on { border-top-color: var(--ink); color: var(--ink); }

@media (max-width: 900px) {
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-court { min-height: 260px; padding: 24px; }
    .auth-court h1 { font-size: 30px; }
    .auth-court .lines { inset: 24px 28px; }
    .auth-court .net { left: 28px; right: 28px; }
    .auth-form { padding: 28px 20px 40px; }
}

/* ---------- Diversen ---------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); }
.stat .v { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat .k { margin-top: 6px; color: var(--ink-3); font-size: 13.5px; }

.result-dot {
    flex: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    background: var(--line-2);
    color: var(--ink-2);
}
.result-dot.won { background: var(--lime); color: var(--ink); }

.bar { position: relative; height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--glass); }
.bar > b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.blocks { display: flex; gap: 4px; }
.blocks i { flex: 1; height: 10px; border-radius: 3px; background: var(--line-2); }
.blocks i.on { background: var(--ink); }

.qr-hint { display: flex; gap: 10px; align-items: flex-start; }

.overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(14, 21, 20, .6);
}
.overlay .panel { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; }

/* ---------- Clubplattegrond (CourtPlan) en "Waar speel je?" ----------
   Zelfde look als de app: banen van boven met lijnen en net, jouw veld in lime. */
.court-plan { display: grid; gap: 8px; justify-content: center; /* kolommen max. zo breed als een rij hoog: banen blijven 2:1 */ }
.seg.plan-area { display: flex; margin-bottom: 12px; }
.seg.plan-area button { flex: 1; justify-content: center; }
.seg.plan-area .n { margin-left: 4px; opacity: .55; font-weight: 600; }
.plan-court {
    position: relative;
    width: 100%; height: 100%; min-width: 0;
    padding: 0; border: 0; border-radius: 10px;
    overflow: hidden;
    background: var(--glass);
    color: #fff;
    font: inherit;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(21, 32, 31, .14);
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, filter .2s ease;
}
.plan-court.tennis { background: var(--clay); }
.plan-court .ln { position: absolute; background: rgba(255, 255, 255, .5); }
.plan-court .outline { inset: 7px; background: none; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 2px; }
.plan-court .svc-a, .plan-court .svc-b { top: 7px; bottom: 7px; width: 1.5px; }
.plan-court .svc-a { left: 24%; }
.plan-court .svc-b { right: 24%; }
.plan-court .mid { left: 24%; right: 24%; top: 50%; height: 1.5px; margin-top: -.75px; }
.plan-court .net { position: absolute; left: 50%; top: 3px; bottom: 3px; width: 3px; margin-left: -1.5px; background: rgba(255, 255, 255, .9); box-shadow: 2px 0 5px rgba(0, 0, 0, .18); }
.plan-court.portrait .svc-a, .plan-court.portrait .svc-b { top: auto; bottom: auto; left: 7px; right: 7px; width: auto; height: 1.5px; }
.plan-court.portrait .svc-a { top: 24%; }
.plan-court.portrait .svc-b { bottom: 24%; }
.plan-court.portrait .mid { top: 24%; bottom: 24%; left: 50%; right: auto; width: 1.5px; height: auto; margin: 0 0 0 -.75px; }
.plan-court.portrait .net { top: 50%; bottom: auto; left: 3px; right: 3px; width: auto; height: 3px; margin: -1.5px 0 0; box-shadow: 0 2px 5px rgba(0, 0, 0, .18); }
.plan-label {
    position: relative;
    max-width: calc(100% - 10px);
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 4px 9px;
    border-radius: 10px;
    background: rgba(21, 32, 31, .62);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    text-align: center;
}
.plan-label .nm { max-width: 100%; font: 700 12px/1.15 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-label .sub { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.plan-label .sub i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.plan-court.portrait .plan-label { padding: 4px 5px; }
.plan-court.full { filter: saturate(.35); opacity: .55; }
.plan-court.on, .plan-court.here { box-shadow: 0 0 0 2.5px var(--lime), 0 6px 18px rgba(0, 0, 0, .2); }
.plan-court.on .plan-label, .plan-court.here .plan-label { background: var(--lime); color: var(--ink); }
.plan-court.on .plan-label .sub, .plan-court.here .plan-label .sub { color: var(--ink); font-weight: 700; }
.plan-court.on .plan-label .sub i, .plan-court.here .plan-label .sub i { background: var(--ink); }
.plan-court.here { z-index: 1; animation: plan-here 1.8s ease-out .4s infinite; }
@keyframes plan-here {
    0% { box-shadow: 0 0 0 2.5px var(--lime), 0 0 0 2.5px rgba(221, 234, 59, .55), 0 6px 18px rgba(0, 0, 0, .2); }
    100% { box-shadow: 0 0 0 2.5px var(--lime), 0 0 0 14px rgba(221, 234, 59, 0), 0 6px 18px rgba(0, 0, 0, .2); }
}
.plan-court.dim { opacity: .45; filter: saturate(.5); cursor: default; }
.book-plan .plan-court.dim { cursor: pointer; } /* banenfilter: gedimde baan = tik om terug te tonen */
@media (prefers-reduced-motion: reduce) { .plan-court.here { animation: none; } }

.overlay .panel.plan-dialog { max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.plan-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-dialog-head .eyebrow { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-dialog-head .title { font: 700 24px/1.1 var(--font-display); letter-spacing: -.025em; margin-top: 3px; }
.plan-here-row { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.plan-here-row b { color: var(--ink); }
.plan-here-row .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(221, 234, 59, .35); }
.plan-ground {
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(rgba(21, 32, 31, .05) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(90deg, rgba(21, 32, 31, .05) 1px, transparent 1px) 0 0 / 18px 18px,
        var(--chalk);
}
.plan-empty { padding: 16px; border-radius: 16px; background: var(--chalk); font-size: 14px; color: var(--ink-2); line-height: 1.45; }

.leaflet-container { font-family: var(--font-body); }

.mobile-only { display: none !important; }
@media (max-width: 900px) { .mobile-only { display: inline-flex !important; } }

/* ---------- Openbare website ---------- */
/* Vervangt in Agoplay.Web/wwwroot/css/site.css alles vanaf
   "---------- Openbare website ----------" tot het einde van het bestand.
   Stijl 2a: baangroene kop + hero, lime band, inkt (#15201F) onderaan. */

.pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--chalk); }
.pub main { flex: 1; }
.pub-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pub h1:focus, .pub h1:focus-visible { outline: none; }

.btn.pill { border-radius: 999px; }

/* Kop */
.pub-head { position: sticky; top: 0; z-index: 20; background: var(--court); color: #fff; }
.pub-head .pub-wrap { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.pub-head .spacer { flex: 1; }
.pub-logo { color: #fff; }
.pub-logo:hover { text-decoration: none; }
.pub-nav { display: flex; gap: 4px; }
.pub-nav a { color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.pub-nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.pub-nav a.active { background: rgba(255, 255, 255, .14); }
.pub-head .seg { margin: 0 !important; background: rgba(255, 255, 255, .1); }
.pub-head .seg button { color: rgba(255, 255, 255, .7); padding: 5px 9px; font-size: 13px; }
.pub-head .seg button.on { background: #fff; color: var(--ink); box-shadow: none; }
.pub-head .btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Hero */
.pub-hero { background: var(--court); color: #fff; padding: 56px 0 88px; }
.pub-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.pub-hero h1 { font-size: clamp(44px, 7.2vw, 92px); font-weight: 700; line-height: .92; letter-spacing: -.06em; }
.pub-hero h1 span { display: block; }
.pub-hero h1 .light { font-weight: 300; }
.pub-lead { margin-top: 30px; font-size: 18.5px; line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 44ch; }
.pub-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pub-cta .btn { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn.pub-ghost { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn.pub-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Match-ticket in de hero */
.pub-ticket {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5);
    transform: rotate(2deg);
}
.pub-ticket-top { padding: 22px 24px 18px; }
.pub-ticket-head { display: flex; justify-content: space-between; align-items: center; }
.pub-ticket-time { margin: 14px 0 6px; font-family: var(--font-display); font-size: 50px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.pub-ticket-cut { position: relative; border-top: 1.5px dashed var(--line); margin: 0 14px; }
.pub-ticket-cut::before, .pub-ticket-cut::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--court); /* zelfde kleur als de hero: "uitgeknipt" */
}
.pub-ticket-cut::before { left: -26px; }
.pub-ticket-cut::after { right: -26px; }
.pub-ticket-bottom { padding: 16px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.pub-seats { display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; gap: 8px; align-items: center; text-align: center; font-size: 12.5px; font-weight: 600; }
.pub-seat { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pub-seat .avatar { width: 38px; height: 38px; font-size: 14px; }
.pub-seat.open { color: var(--ink-3); }
.pub-seat .avatar.open { font-family: var(--font-body); font-size: 18px; font-weight: 400; }
.pub-vs { font-family: var(--font-display); font-weight: 600; color: var(--ink-3); }
.pub-ticket .btn.block { min-height: 46px; }

/* Lime band met functienamen */
.pub-strip { background: var(--lime); color: var(--ink); padding: 18px 0; overflow: hidden; }
.pub-strip ul {
    list-style: none;
    margin: 0;
    padding: 0 24px;
    display: flex;
    gap: 28px;
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -.02em;
}
.pub-strip li { display: flex; align-items: center; gap: 28px; }
.pub-strip li + li::before { content: "●"; color: rgba(21, 32, 31, .35); }

/* Secties */
.pub-section { padding: 96px 0; }
.pub-h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.pub-sub { margin-top: 18px; color: var(--ink-2); font-size: 16.5px; max-width: 36ch; }
.pub-body { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }

/* Functies: accordeon */
.pub-features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
.pub-acc { display: flex; flex-direction: column; gap: 10px; }
.pub-acc details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 26px;
    transition: background .15s, border-color .15s;
}
.pub-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -.02em;
}
.pub-acc summary::-webkit-details-marker { display: none; }
.pub-acc summary::after {
    content: "+";
    flex: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
}
.pub-acc details:hover { border-color: #C9D1C5; }
.pub-acc details[open] { background: var(--ink); border-color: var(--ink); color: #fff; padding: 24px 26px; }
.pub-acc details[open] summary { font-size: 24px; }
.pub-acc details[open] summary::after { content: "−"; background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pub-acc details p { margin-top: 10px; color: rgba(255, 255, 255, .8); line-height: 1.6; max-width: 56ch; }

/* Zo werkt het */
.pub-how { padding-top: 0; }
.pub-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pub-steps li { background: var(--ink); color: #fff; border-radius: 18px; padding: 28px 28px 32px; }
.pub-steps li:last-child { background: var(--lime); color: var(--ink); }
.pub-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 96px; line-height: .9; letter-spacing: -.06em; color: var(--lime); }
.pub-steps li:last-child .pub-num { color: var(--ink); }
.pub-steps h3 { margin-top: 22px; font-size: 21px; }
.pub-steps p { margin-top: 6px; color: rgba(255, 255, 255, .78); }
.pub-steps li:last-child p { color: var(--ink); }

/* Clubband (loopt over in de footer) */
.pub-band { background: var(--ink); color: #fff; padding: 72px 0 64px; }
.pub-band-row { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.pub-band-row > div { flex: 1; min-width: 280px; }
.pub-band p { margin-top: 12px; color: rgba(255, 255, 255, .8); font-size: 16.5px; max-width: 58ch; }
.pub-band .btn { min-height: 54px; padding: 0 28px; font-size: 16px; }

/* Andere openbare pagina's (Voor clubs, Veelgestelde vragen) */
.pub-page-head { background: var(--court); color: #fff; padding: 56px 0 64px; }
.pub-page-head h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; line-height: .95; letter-spacing: -.05em; }
.pub-page-head .pub-lead { max-width: 56ch; }
.pub-narrow > * { max-width: 760px; }

.pub-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pub-feat { padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.pub-feat h3 { font-size: 21px; }
.pub-feat p { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }

.pub-faq { margin-bottom: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 26px; }
.pub-faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; list-style: none; position: relative; }
.pub-faq summary::-webkit-details-marker { display: none; }
.pub-faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 400; font-size: 18px; }
.pub-faq[open] summary::after { content: "−"; background: var(--lime); border-color: var(--lime); }
.pub-faq p { padding: 0 40px 20px 0; color: var(--ink-2); max-width: 62ch; }

/* Footer */
.pub-foot { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.pub-foot .pub-wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pub-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pub-foot nav a { color: rgba(255, 255, 255, .85); }
.pub-foot .small { margin-left: auto; }

@media (max-width: 900px) {
    .pub-wrap { padding: 0 16px; }
    .pub-nav { display: none; }
    .pub-head .pub-wrap { gap: 10px; min-height: 64px; }
    .pub-hero { padding: 36px 0 56px; }
    .pub-hero-grid, .pub-features { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .pub-ticket { transform: none; max-width: 420px; }
    .pub-strip ul { font-size: 18px; gap: 20px; }
    .pub-strip li { gap: 20px; }
    .pub-section { padding: 56px 0; }
    .pub-how { padding-top: 0; }
    .pub-steps, .pub-feats { grid-template-columns: minmax(0, 1fr); }
    .pub-num { font-size: 72px; }
    .pub-band { padding: 52px 0 44px; }
    .pub-foot .small { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 520px) {
    .pub-head .seg button { padding: 5px 7px; }
    .pub-head .btn.sm { padding: 0 12px; }
    .pub-seats { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .pub-ticket { transform: none; }
}

/* Functies: alles in één oogopslag (geen accordeon); logo groter. */
.pub-head .pub-wrap { min-height: 84px; }
.pub-feat-head { margin-bottom: 36px; }
.pub-feat-head .pub-sub { max-width: 56ch; }
.pub-feats .pub-feat.lead { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #fff; padding: 32px 34px; }
.pub-feats .pub-feat.lead h3 { font-size: 28px; }
.pub-feats .pub-feat.lead p { color: rgba(255, 255, 255, .82); font-size: 17.5px; line-height: 1.6; max-width: 62ch; }
@media (max-width: 900px) {
    .pub-head .pub-wrap { min-height: 68px; }
    .pub-feats .pub-feat.lead { padding: 26px 24px; }
}
@media (max-width: 520px) {
    .pub-logo > span { zoom: .8; }
}

/* ---------- Openbare website: clubs overtuigen ---------- */

.pub-hero { padding: 64px 0 80px; }
.pub-hero-grid { align-items: center; }
.pub-hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: .98; letter-spacing: -.05em; }

/* Live balie-voorbeeld in de hero */
.pub-live { margin: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 22px 22px 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.pub-live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pub-live-head h2 { font-size: 20px; }
.pub-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #2E9D5B; box-shadow: 0 0 0 4px rgba(46, 157, 91, .18); }
.pub-live-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.pub-live-row:first-child { border-top: 0; }
.pub-live-court { width: 58px; flex: none; font-weight: 600; }
.pub-live-row .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pub-live-av { display: flex; flex: none; }
.pub-live-av i { width: 30px; height: 30px; margin-left: -8px; border: 2px solid var(--paper); border-radius: 50%; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pub-live-av i:first-child { margin-left: 0; }

/* Vier feiten onder de hero */
.pub-proof { background: var(--paper); border-bottom: 1px solid var(--line); }
.pub-proof-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.pub-proof-row > div { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.pub-proof-row > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.pub-proof-row strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.pub-proof-row span { color: var(--ink-2); font-size: 14.5px; }

.pub-h2-wide { max-width: 24ch; }

/* Vier redenen */
.pub-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: 40px; }
.pub-why-item { padding: 30px 0 34px; border-top: 2px solid var(--ink); }
.pub-why-item h3 { font-size: 26px; letter-spacing: -.03em; }
.pub-why-item p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 52ch; }

/* Clubplatform */
.pub-platform { background: var(--ink); color: #fff; padding: 96px 0; }
.pub-platform .pub-sub { color: rgba(255, 255, 255, .78); max-width: 44ch; }
.pub-platform-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.pub-planner { margin: 36px 0 0; padding: 22px; background: var(--court); border-radius: 18px; }
.pub-pl-grid { display: grid; grid-template-columns: 58px repeat(5, minmax(0, 1fr)); gap: 6px; align-items: center; }
.pub-pl-h { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.pub-pl-c { font-size: 13px; font-weight: 600; }
.pub-pl-slot { display: block; height: 36px; border-radius: 6px; }
.pub-pl-slot.free { background: #fff; }
.pub-pl-slot.taken { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 4px, rgba(255, 255, 255, .08) 4px 8px); }
.pub-pl-slot.pick { background: var(--lime); }
.pub-planner figcaption { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.pub-planner figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.pub-planner figcaption i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.pub-screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pub-screens li { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: 6px; }
.pub-screens strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.pub-screens span { color: rgba(255, 255, 255, .72); font-size: 15px; }

/* Spelersdeel */
.pub-feat-head { margin-bottom: 36px; }
.pub-players { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.pub-players .pub-ticket { position: sticky; top: 112px; }
.pub-players .pub-ticket-cut::before, .pub-players .pub-ticket-cut::after { background: var(--chalk); }
.pub-players .pub-feats { grid-template-columns: minmax(0, 1fr); }
.pub-players .pub-feat.lead { padding: 30px 32px; }

@media (max-width: 1000px) {
    .pub-players { grid-template-columns: minmax(0, 1fr); }
    .pub-players .pub-ticket { position: static; order: -1; max-width: 420px; }
}
@media (max-width: 900px) {
    .pub-hero { padding: 36px 0 52px; }
    .pub-proof-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pub-proof-row > div, .pub-proof-row > div + div { padding: 20px 12px 20px 0; border-left: 0; }
    .pub-why, .pub-platform-grid, .pub-screens { grid-template-columns: minmax(0, 1fr); }
    .pub-why { gap: 0; }
    .pub-platform { padding: 56px 0; }
    .pub-platform-grid { gap: 40px; }
}
.pub-players { grid-template-columns: minmax(0, 1fr) 320px; }
.pub-players .pub-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pub-players .pub-feat.lead { grid-column: 1 / -1; }
@media (max-width: 1000px) { .pub-players { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .pub-players .pub-feats { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Openbare website: beweging ---------- */
/* Basisstijl = eindstand. Animaties staan onder .rv-on (gezet door agoplay.reveal) of onder
   prefers-reduced-motion: no-preference, zodat alles zichtbaar blijft zonder JS of bij "minder beweging". */

.pub-hero { position: relative; overflow: hidden; }
.pub-hero-grid { position: relative; z-index: 1; }
.pub-hero-lines { position: absolute; right: -40px; bottom: -70px; width: 520px; color: #fff; opacity: .13; pointer-events: none; transform: rotate(-8deg); }
.pub-hero-lines * { stroke-dasharray: 1; stroke-dashoffset: 0; }

.pub-live { position: relative; }
.pub-ball { position: absolute; top: -12px; right: 38px; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); box-shadow: 0 10px 18px rgba(0, 0, 0, .35); z-index: 2; }

/* Baan 3 wisselt tussen vrij en net geboekt */
.pub-live-row .swap { display: grid; }
.pub-live-row .swap > div { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pub-live-row .swap-b { visibility: hidden; }

/* Vul de open plek in het ticket */
.pub-fill { position: relative; }
.pub-fill b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 400; }
.pub-fill b + b { opacity: 0; font-weight: 700; }

/* Planner: "Geboekt" */
.pub-pl-done { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 600; }
.pub-pl-done b { font-size: 12px; }

/* Lijn boven de vier redenen */
.pub-why-item { position: relative; border-top: 0; }
.pub-why-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; }

/* Rustige hover op kaarten */
.pub-feat, .pub-faq, .pub-steps li { transition-property: box-shadow, border-color; transition-duration: .2s; }
.pub-feat:hover { border-color: #C9D1C5; box-shadow: 0 14px 30px -18px rgba(21, 32, 31, .35); }
.pub-ticket-wrap { position: sticky; top: 112px; }
.pub-players .pub-ticket { position: static; }
@media (max-width: 1000px) { .pub-ticket-wrap { position: static; order: -1; max-width: 420px; } }

@media (prefers-reduced-motion: no-preference) {
    /* Hero: één georkestreerd moment bij het laden */
    .pub-hero h1 span { animation: pub-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
    .pub-hero h1 .light { animation-delay: .14s; }
    .pub-hero .pub-lead { animation: pub-rise .9s cubic-bezier(.2, .7, .2, 1) .3s both; }
    .pub-hero .pub-cta { animation: pub-rise .9s cubic-bezier(.2, .7, .2, 1) .44s both; }
    .pub-live { animation: pub-rise 1s cubic-bezier(.2, .7, .2, 1) .3s both; }
    .pub-live-row { animation: pub-fade .6s ease both; animation-delay: calc(.75s + var(--i, 0) * .14s); }
    .pub-hero-lines * { animation: pub-draw 2.6s cubic-bezier(.5, 0, .2, 1) .2s both; }
    .pub-ball { animation: pub-bounce 1.5s cubic-bezier(.3, 0, .6, 1) .9s both; }
    .pub-live-dot { animation: pub-pulse 2.4s ease-out infinite; }
    .pub-live-row.cycle { animation: pub-fade .6s ease both, pub-flash 10s ease-in-out 2.2s infinite; animation-delay: calc(.75s + var(--i, 0) * .14s), 2.2s; }
    .pub-live-row .swap-a { animation: pub-swap-a 10s ease-in-out 2.2s infinite; }
    .pub-live-row .swap-b { animation: pub-swap-b 10s ease-in-out 2.2s infinite; }
}

@keyframes pub-rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes pub-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes pub-draw { from { stroke-dashoffset: 1; } }
@keyframes pub-bounce {
    0% { transform: translateY(-260px); opacity: 0; }
    12% { opacity: 1; }
    42% { transform: translateY(0); }
    58% { transform: translateY(-46px); }
    72% { transform: translateY(0); }
    83% { transform: translateY(-14px); }
    100% { transform: translateY(0); }
}
@keyframes pub-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 157, 91, .45); } 80%, 100% { box-shadow: 0 0 0 12px rgba(46, 157, 91, 0); } }
@keyframes pub-swap-a { 0%, 42% { visibility: visible; opacity: 1; } 46%, 96% { visibility: hidden; opacity: 0; } 100% { visibility: visible; opacity: 1; } }
@keyframes pub-swap-b { 0%, 42% { visibility: hidden; opacity: 0; } 46%, 92% { visibility: visible; opacity: 1; } 96%, 100% { visibility: hidden; opacity: 0; } }
@keyframes pub-flash { 0%, 42% { background: transparent; } 46% { background: #F4F8D2; } 60%, 100% { background: transparent; } }

/* Onthullen bij scrollen */
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.rv-on .rv.in { opacity: 1; transform: none; }
.rv-on .pub-why-item.rv { transform: none; }
.rv-on .pub-why-item::before { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.rv-on .pub-why-item.in::before { transform: none; }

/* Planner: de gekozen uren schuiven in beeld, daarna verschijnt "Geboekt" */
.rv-on .pub-planner .pub-pl-grid .pub-pl-slot.pick { transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1) .5s; }
.rv-on .pub-planner.in .pub-pl-grid .pub-pl-slot.pick { transform: none; }
.rv-on .pub-planner .pub-pl-done { opacity: 0; transform: scale(.8); transition: opacity .3s 1.3s, transform .4s cubic-bezier(.3, 1.6, .5, 1) 1.3s; }
.rv-on .pub-planner.in .pub-pl-done { opacity: 1; transform: none; }

/* Ticket: de open plek wordt ingevuld */
.rv-on .pub-ticket-wrap.in .pub-fill { animation: pub-fillbg .5s ease 1.6s forwards; }
.rv-on .pub-ticket-wrap.in .pub-fill b:first-child { animation: pub-out .3s ease 1.6s forwards; }
.rv-on .pub-ticket-wrap.in .pub-fill b + b { animation: pub-in .4s cubic-bezier(.3, 1.6, .5, 1) 1.7s forwards; }
@keyframes pub-fillbg { to { background: var(--lime); border-color: var(--lime); border-style: solid; } }
@keyframes pub-out { to { opacity: 0; } }
@keyframes pub-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
/* Hele baan achter de kaart, in plaats van een afgesneden hoek */
.pub-hero-lines { right: 5%; top: 50%; bottom: auto; width: auto; height: 118%; transform: translateY(-50%) rotate(0deg); opacity: .12; }
@media (max-width: 900px) { .pub-hero-lines { right: -20%; height: 70%; opacity: .1; } }
.pub-hero .pub-ticket-wrap { position: relative; top: auto; max-width: 400px; justify-self: end; width: 100%; }
.pub-hero .pub-ticket-wrap .pub-ball { top: -14px; right: 44px; }
.pub-devices { padding-top: 0; }
.pub-devices .pub-body { margin-top: 18px; }
@media (max-width: 900px) { .pub-hero .pub-ticket-wrap { justify-self: start; } }
.pub-feats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pub-feats.three { grid-template-columns: minmax(0, 1fr); } }

/* Productvideo in de hero */
.pub-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.pub-video-el { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--court); object-fit: cover; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.pub-hero-media:not(.no-video) .pub-ticket-wrap { display: none; }
.pub-hero-media.no-video .pub-video-el { display: none; }
@media (max-width: 900px) { .pub-hero-grid { grid-template-columns: minmax(0, 1fr); } .pub-video-el { border-radius: 14px; } }
@media (prefers-reduced-motion: reduce) {
    .pub-hero-media .pub-video-el { display: none; }
    .pub-hero-media:not(.no-video) .pub-ticket-wrap { display: block; }
}
.pub-hero .pub-video-el { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .55); }
.pub-hero h1 { font-size: clamp(40px, 4.8vw, 68px); }
/* Mobiel: video over de volle breedte, niet bijgesneden */
@media (max-width: 900px) {
    .pub-hero-media { margin: 0 -16px; }
    .pub-hero .pub-video-el { aspect-ratio: 16 / 9; object-fit: contain; border-radius: 0; box-shadow: none; }
}


/* ---------- Aangemeld: kop met de tabs van de app bovenaan ---------- */

.shell {
    /* Kleuren en vormen van de app (theme.css, thema "Fresh") */
    --chalk: #EEF4EE;
    --app-card: #FFFFFF;
    --app-acc: #0E8FA8;
    --font-display: 'Quicksand', 'Outfit', system-ui, sans-serif;
    background: var(--chalk);
}
.shell .rail, .shell .tabbar, .shell .topbar { display: none; }

/* Menuknop: wit vierkant met afgeronde hoeken zoals de knoppen in de app; open = geel. */
.burger {
    position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px;
    border: 0; background: #fff; color: var(--ink); padding: 0;
    display: grid; place-items: center; cursor: pointer;
    transition: background .2s, transform .15s;
}

.burger:hover { background: #F6F9F6; }
.burger:active { transform: scale(.95); }
.burger:focus-visible { outline: 2px solid var(--app-acc); outline-offset: 2px; }
.burger .bars { position: relative; width: 18px; height: 13px; display: block; }
.burger .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.burger .bars i:nth-child(1) { top: 0; }
.burger .bars i:nth-child(2) { top: 5.5px; width: 70%; }
.burger .bars i:nth-child(3) { top: 11px; }
.burger.open, .burger.open:hover { background: var(--lime); color: var(--ink); }
.burger.open .bars i:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.burger.open .bars i:nth-child(2) { opacity: 0; }
.burger.open .bars i:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }
.burger .dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--app-acc); border: 2px solid var(--chalk); }

.menu-scrim { position: fixed; inset: 0; z-index: 24; background: rgba(21, 32, 31, .35); }
.menu {
    position: fixed; z-index: 25; top: 90px; right: max(24px, calc((100vw - 1120px) / 2 + 24px));
    width: 380px; max-height: calc(100vh - 94px); overflow-y: auto;
    background: var(--paper); border-radius: 26px; padding: 10px;
    box-shadow: 0 24px 60px -18px rgba(16, 26, 25, .35), 0 8px 24px rgba(16, 26, 25, .08);
    transform-origin: top right;
}
.menu-me { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--chalk); color: var(--ink); }
.menu-me:hover { text-decoration: none; background: #E6EEE6; }
.menu-me .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.menu-me .who strong { font-family: var(--font-display); font-size: 16px; }
.menu-me .who small { color: var(--ink-2); font-size: 12.5px; }
.menu-me svg { width: 18px; height: 18px; color: var(--ink-3); }

/* De vijf tabs: zoals de navigatie van de app, één gele tegel glijdt naar de actieve tab. */
.menu-tabs { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 8px 0; --row: 46px; }
.menu-slider {
    position: absolute; left: 10px; top: calc(7px + var(--i, 0) * (var(--row) + 2px));
    width: 48px; height: 32px; border-radius: 7px; background: var(--lime);
    transition: top .5s cubic-bezier(.3, 1.35, .5, 1);
}
.menu-tab { position: relative; display: flex; align-items: center; gap: 14px; height: var(--row); padding: 0 10px; border-radius: 16px; color: #56605D; }
.menu-tab:hover { background: var(--chalk); text-decoration: none; color: var(--ink); }
.menu-tab .tile { position: relative; width: 48px; height: 32px; border-radius: 7px; display: grid; place-items: center; }
.menu-tab .tile svg { width: 24px; height: 24px; }
.menu-tab .tile svg g { stroke-width: 1.8px; }
.menu-tab .lbl { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.menu-tab.on { color: var(--ink); }

.menu-inbox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.menu-inbox a {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px;
    background: var(--chalk); color: var(--ink); font-weight: 600; font-size: 14px;
}
.menu-inbox a:hover { background: #E6EEE6; text-decoration: none; }
.menu-inbox svg { width: 20px; height: 20px; flex: none; }
.menu-inbox span { flex: 1; min-width: 0; }
.menu-inbox b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--app-acc); color: #fff; font-size: 12px; display: grid; place-items: center; }

.menu-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 10px 4px; }
.menu-foot a { color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.menu-foot a:hover { color: var(--ink); }
.menu-foot .badge { margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--app-acc); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

@media (max-width: 900px) { .menu { top: 74px; } }

@media (prefers-reduced-motion: no-preference) {
    .menu { animation: menu-in .22s cubic-bezier(.2, .8, .2, 1); }
    .menu-scrim { animation: scrim-in .2s ease; }
    .menu > * { animation: menu-item-in .3s ease both; }
    .menu > *:nth-child(2) { animation-delay: .04s; }
    .menu > *:nth-child(3) { animation-delay: .08s; }
    .menu > *:nth-child(4) { animation-delay: .12s; }
}
@keyframes scrim-in { from { opacity: 0; } }
@keyframes menu-item-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .menu { left: 10px; right: 10px; width: auto; max-height: calc(100vh - 80px); transform-origin: top center; }
    .shell .page { padding: 18px 14px 40px; }
}

/* Werkruimte: smaller en met de kaarten van de app (afgeronde witte vlakken zonder rand) */
.shell .page { max-width: 980px; padding: 24px 20px 56px; }
.shell .panel { border: 0; border-radius: 22px; padding: 16px 18px; }
.shell .panel.flush { padding: 0 0 6px; }
.shell .seg { background: #F1F5F1; border-radius: 13px; }
.shell .seg[data-pill]::before { border-radius: 10px; }
.shell .tag.ball, .shell .btn.ball { background: var(--lime); color: var(--ink); }

/* Startpagina zoals Spelen in de app (Play 3b) */
.play-sport { margin-bottom: 6px; display: flex; align-items: center; gap: 14px; }
.play-sport .seg { flex: 1; min-width: 0; display: flex; }
.play-sport .seg button { flex: 1; justify-content: center; padding: 10px 14px; font-size: 14.5px; font-weight: 700; }
.play-sport .seg button svg { width: 20px; height: 20px; }
.play-block { margin-top: 22px; }
.play-block > .panel-head { padding: 0 4px; margin-bottom: 12px; }
.play-block > .panel-head h2 { font-family: var(--font-body); font-weight: 700; font-size: 16px; letter-spacing: 0; }
.play-block > .panel-head .side, .play-head .side { color: var(--app-acc); font-size: 13.5px; }
.play-note { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--ink); }
.play-note:hover { text-decoration: none; background: #FBFCFA; }
.play-note .grow { flex: 1; min-width: 0; }

/* Jouw clubs: ronde foto's (StoryCircle) */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink); }
.story:hover { text-decoration: none; }
.story:hover .ring { transform: translateY(-2px); }
.story .ring { position: relative; padding: 2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #E2E7E1; transition: transform .2s; }
.story.hot .ring { box-shadow: 0 0 0 2px var(--app-acc); }
.story-photo { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.story-photo img { z-index: 1; }
.story-photo .ini { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.story-dot { position: absolute; right: -1px; top: -1px; z-index: 2; width: 17px; height: 17px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--chalk); }
.story-fav { position: absolute; right: -3px; bottom: -3px; z-index: 2; width: 23px; height: 23px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.story .nm { width: 84px; font-size: 12.5px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .cap { font-size: 11.5px; font-weight: 500; color: var(--ink-3); line-height: 1.1; margin-top: -3px; }
.story.hot .cap { color: var(--app-acc); }

.comp-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
.comp-rail::-webkit-scrollbar { display: none; }
.comp-rail > * { flex: none; width: 260px; }

/* Jouw matchen: baan van boven (CourtCarousel), zoals .ag-court in de app */
.mc-card { padding: 8px 8px 14px; }
.mc-viewport { overflow: hidden; border-radius: 16px; }
.mc-track { display: flex; transition: transform .55s cubic-bezier(.65, 0, .25, 1); }
.mc-court { flex: 1 1 0; min-width: 0; position: relative; aspect-ratio: 2 / 1; max-height: 300px; min-height: 184px; overflow: hidden; background: #2C6E7E; }
.mc-court.tennis { background: #B85F3E; }
.mc-link { position: absolute; inset: 0; z-index: 1; }
.mc-link:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; border-radius: 16px; }
.mc-court .ln { position: absolute; background: rgba(255, 255, 255, .55); }
.mc-court .outline { inset: 14px; background: none; border: 2px solid rgba(255, 255, 255, .55); }
.mc-court .svc-l, .mc-court .svc-r { top: 14px; bottom: 14px; width: 2px; }
.mc-court .svc-l { left: 24%; }
.mc-court .svc-r { right: 24%; }
.mc-court .mid { left: 24%; right: 24%; top: 50%; height: 2px; margin-top: -1px; }
.mc-court .net { position: absolute; left: 50%; top: 5px; bottom: 5px; width: 5px; margin-left: -2.5px; background: rgba(255, 255, 255, .9); box-shadow: 3px 0 8px rgba(0, 0, 0, .18); }
.mc-court .countdown { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 4px 10px; border-radius: 0 0 10px 0; background: var(--lime); color: var(--ink); font: 700 11.5px var(--font-body); pointer-events: none; }
.mc-court .plan-btn {
    position: absolute; right: 14px; top: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 9px;
    border: 0; border-radius: 0 0 0 10px; background: rgba(255, 255, 255, .92); color: var(--ink);
    font: 700 11.5px var(--font-body); cursor: pointer;
}
.mc-court .plan-btn:hover { background: #fff; }
.mc-seat { position: absolute; z-index: 1; width: 76px; margin: -26px 0 0 -38px; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.mc-seat.pop { animation: ag-pop-in .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.mc-seat .av {
    position: relative; width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid #fff; overflow: hidden;
    color: #fff; font: 700 15px var(--font-display); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}
.mc-seat .av.me { background: #fff; color: var(--ink); }
.mc-seat .av.open { border: 2px dashed var(--lime); background: rgba(221, 234, 59, .18); color: var(--lime); overflow: visible; animation: ag-open 1.8s ease-out 1s infinite; }
.mc-seat .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-seat .nm { max-width: 76px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mc-info { display: flex; align-items: flex-start; gap: 10px; padding: 14px 8px 0; }
.mc-info .grow { flex: 1; min-width: 0; color: inherit; }
.mc-info .grow:hover { text-decoration: none; }
.mc-info .when { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.mc-info .where { font-size: 13px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-map { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px 5px 8px; border-radius: 999px; background: #F1F5F1; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mc-map:hover { text-decoration: none; background: #E6EEE6; color: var(--ink); }
.mc-status { flex: none; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #E3EAE4; color: #56605D; }
.mc-status.open { background: #EEF4C2; color: #55600B; }
.mc-status.wait { background: #F5E9CF; color: #7A5410; }
.mc-status.cancelled { background: #F6E1DF; color: var(--danger); }

.mc-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 0; }
.mc-dots { display: flex; align-items: center; gap: 7px; }
.mc-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #D3DBD5; cursor: pointer;
    transition: width .35s cubic-bezier(.3, 1.4, .5, 1), height .35s cubic-bezier(.3, 1.4, .5, 1), background-color .3s;
}
.mc-dots button:hover { background: #B9C4BC; }
.mc-dots button.on { width: 15px; height: 15px; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); }
.mc-btns { display: flex; gap: 6px; }
.mc-btns .prev { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #F1F5F1; color: var(--ink); font: 700 16px var(--font-body); cursor: pointer; }
.mc-btns .prev:disabled { opacity: .4; cursor: default; }
.mc-btns .next { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 700 13px var(--font-body); cursor: pointer; }
.mc-btns .next:hover { background: #26332F; }

@media (max-width: 600px) {
    .mc-court { aspect-ratio: auto; height: 184px; }
    .mc-seat { width: 64px; margin: -21px 0 0 -32px; }
    .mc-seat .av { width: 40px; height: 40px; font-size: 13px; }
    .mc-seat .nm { font-size: 10.5px; max-width: 64px; }
    .mc-info { flex-wrap: wrap; row-gap: 10px; }
    .mc-info .grow { flex-basis: 100%; }
    .mc-info .when { font-size: 18px; }
    .story { width: 74px; }
    .story .nm { width: 74px; }
    .story-photo { width: 60px; height: 60px; }
}

/* Binnenkomen (zoals .ag-in-up / .ag-in-pop / .ag-in-right in de app); niet bij een tweede bezoek (.calm). */
@media (prefers-reduced-motion: no-preference) {
    .in-up { animation: ag-in-up .45s ease both; }
    .in-pop { animation: ag-pop-in .45s cubic-bezier(.3, 1.4, .5, 1) both; }
    .in-right { animation: ag-in-r .5s cubic-bezier(.22, .9, .3, 1) both; }
}
.calm .in-up, .calm .in-pop, .calm .in-right { animation: none !important; }
@keyframes ag-in-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ag-pop-in { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes ag-in-r { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes ag-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ag-open { 0% { box-shadow: 0 0 0 0 rgba(221, 234, 59, .8); } 70%, 100% { box-shadow: 0 0 0 10px rgba(221, 234, 59, 0); } }
@keyframes ag-drop {
    0% { transform: translateY(-90px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
    45% { transform: translateY(0) scale(1.14, .86); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
    65% { transform: translateY(-18px) scale(.97, 1.03); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
    82% { transform: translateY(0) scale(1.05, .95); }
    100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .mc-track, .mc-dots button, .menu-slider, .seg[data-pill]::before { transition: none !important; }
}
.shell .app-head { z-index: 26; }


/* ---------- Mobiel (gsm, ≤ 600px) ---------- */

/* FocusOnNavigate zet de focus op de h1: geen kader rond de titel. */
h1:focus, h1:focus-visible { outline: none; }

/* Clubpagina: de foto groeit mee met naam en adres (lange namen werden afgeknipt). */
.club-hero { height: auto; min-height: 220px; }
.club-hero-name { flex: 1 1 220px; min-width: 0; }
@media (max-width: 600px) {
    .club-hero { min-height: 200px; padding: 72px 16px 16px; }
    .club-hero h1 { font-size: 24px; line-height: 1.15; overflow-wrap: break-word; }
    .club-hero .btn.sm { min-height: 36px; padding: 0 12px; }
}

/* Aanmelden: de baantekening blijft decoratie achter de tekst. */
@media (max-width: 600px) {
    .auth-court { min-height: 220px; }
    .auth-court .lines, .auth-court .net { opacity: .35; }
    .auth-court .ball { display: none; }
    .auth-court h1 { font-size: 28px; max-width: none; }
}

/* Publieke kop: logo, taal en Aanmelden passen naast elkaar. */
@media (max-width: 420px) {
    .pub-head .pub-wrap { gap: 6px; }
    .pub-head .seg button { padding: 4px 6px; font-size: 12px; }
    .pub-head .btn.sm { padding: 0 10px; font-size: 13px; min-height: 36px; }
    .pub-logo > span { zoom: .72; }
}

/* Matchrij: de hele rij linkt naar de match; de kaartknop ligt erboven en opent de route. */
.match-row { position: relative; }
.match-row:hover { background: #F7F9F4; }
.match-row-link { position: absolute; inset: 0; z-index: 0; }
.match-row-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.match-row-tags { display: inline-flex; align-items: center; gap: 8px; }
.match-row-map { position: relative; z-index: 1; color: var(--ink); }

/* Lijstrijen (bv. Jouw matchen): de status gaat onder de tekst, zodat datum en club leesbaar blijven. */
@media (max-width: 600px) {
    .match-row { flex-wrap: wrap; row-gap: 6px; }
    .match-row > .end { order: 3; flex-basis: 100%; text-align: left; padding-left: 58px; display: flex; align-items: center; gap: 10px; }
    .match-row > .end .num { margin-top: 0 !important; }
}

/* Gesegmenteerde keuzes breken niet midden in een woord ("30 min"). */
.seg button { white-space: nowrap; }
@media (max-width: 600px) {
    .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .seg::-webkit-scrollbar { display: none; }
}

/* ---------- Clubpagina: lichte kop zoals in de app ----------
   Bovenaan de clubfoto of een baan van boven in de sportkleur (padel glas-blauw, tennis gravel),
   daaronder een witte kaart met logo, naam, adres en drie feiten om te boeken. */

.club-head { margin-bottom: 26px; display: flex; flex-direction: column; }
.club-head-visual {
    position: relative;
    height: 230px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--line-2);
    box-shadow: 0 10px 26px rgba(21, 32, 31, .10);
}
.club-head-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.club-head.photo .club-head-visual::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(21, 32, 31, .26) 0%, rgba(21, 32, 31, 0) 40%);
}
.club-head-courtart { position: absolute; inset: 0; background: var(--glass); }
.club-head-courtart.tennis { background: var(--clay); }
.club-head-courtart .ln { position: absolute; background: rgba(255, 255, 255, .5); }
.club-head-courtart .outline { inset: 22px 24px 58px; background: none; border: 2px solid rgba(255, 255, 255, .5); }
.club-head-courtart .svc-l, .club-head-courtart .svc-r { top: 22px; bottom: 58px; width: 2px; }
.club-head-courtart .svc-l { left: 26%; }
.club-head-courtart .svc-r { right: 26%; }
.club-head-courtart .mid { left: 26%; right: 26%; top: calc(50% - 18px); height: 2px; }
.club-head-courtart .net { position: absolute; left: 50%; top: 12px; bottom: 48px; width: 6px; margin-left: -3px; background: rgba(255, 255, 255, .9); box-shadow: 3px 0 8px rgba(0, 0, 0, .18); }

.club-head-actions { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; gap: 8px; }
.club-head-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 15px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font: inherit; font-size: 13.5px; font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
}
.club-head-btn:hover { background: #fff; color: var(--ink); text-decoration: none; }
.club-head-btn.on { background: var(--lime); }
.club-head-btn svg { width: 18px; height: 18px; }
.club-head-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.club-head-body {
    position: relative;
    margin: -46px 14px 0;
    padding: 16px 26px 22px;
    border-radius: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(21, 32, 31, .08);
    display: grid;
    gap: 16px;
}
.club-head-id { display: flex; align-items: flex-end; gap: 16px; }
.club-head-badge { margin-top: -50px; }
.club-head-badge { flex: none; border-radius: 18px; padding: 3px; background: var(--paper); box-shadow: 0 6px 16px rgba(21, 32, 31, .16); line-height: 0; }
.club-head-badge > * { border-radius: 15px; }
.club-head h1 { color: var(--ink); font-size: 34px; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: break-word; }
.club-head-addr { margin-top: 4px; color: var(--ink-3); }

.club-score {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border-top: 1px solid var(--line-2);
    padding-top: 14px;
}
.club-score > div { padding: 0 18px; }
.club-score > div:first-child { padding-left: 0; }
.club-score > div + div { border-left: 1px solid var(--line-2); }
.club-score dt { font-size: 13px; color: var(--ink-3); }
.club-score dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.club-score > div:first-child dd { color: var(--glass); }

.club-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.club-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--chalk); color: var(--ink-2); font-weight: 500; }
.club-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8FA011; }

/* Boeken in drie stappen, verbonden met een stippellijn. */
.book-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.book-steps > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.book-steps > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px; top: 36px; bottom: -18px;
    border-left: 2px dotted var(--line);
}
.book-step-n {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--court);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.book-step-body { min-width: 0; }
.book-step-body h3 { font-size: 15.5px; margin: 3px 0 10px; }

/* Jouw boeking als ticket. */
.club-ticket { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); }
.club-ticket-top { padding: 22px 22px 18px; }
.club-ticket-time { margin-top: 10px; font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.club-ticket-cut { position: relative; border-top: 1.5px dashed var(--line); margin: 0 16px; }
.club-ticket-cut::before, .club-ticket-cut::after {
    content: "";
    position: absolute;
    top: -10px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--chalk);
    border: 1px solid var(--line);
}
.club-ticket-cut::before { left: -27px; clip-path: inset(0 0 0 50%); }
.club-ticket-cut::after { right: -27px; clip-path: inset(0 50% 0 0); }
.club-ticket-bottom { padding: 16px 22px 22px; }

@media (max-width: 600px) {
    .club-head { margin-bottom: 20px; }
    .club-head-visual { height: 180px; border-radius: 18px; }
    .club-head-btn span { display: none; }
    .club-head-btn { width: 38px; padding: 0; justify-content: center; }
    .club-head-body { margin: -34px 8px 0; padding: 12px 16px 16px; gap: 12px; }
    .club-head-id { gap: 12px; }
    .club-head-badge { margin-top: -42px; }
    .club-head h1 { font-size: 24px; }
    .club-score { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
    .club-score > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; }
    .club-score > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
    .club-score dd { font-size: 17px; text-align: right; }
    .book-steps > li { display: block; }
    .book-steps > li::after { display: none; }
    .book-step-n { position: absolute; left: 0; top: 0; width: 26px; height: 26px; font-size: 13px; }
    .book-step-body h3 { padding-left: 36px; margin-top: 2px; }
}

/* Klassementsbadge (RankBadge.razor): geverifieerd, niet geverifieerd, geen. */
.rank.verified, .rank.unverified { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.rank svg { width: 11px; height: 11px; }
/* Niet geverifieerd: zelfde box als geverifieerd, maar oranje met "PR" (pending review). */
.rank.unverified { background: #F5A23A; color: var(--ink); }
/* Inschaling (050): nog geen eigen klassement; neutraal, nodigt uit om TPV te koppelen. */
.rank.inschaling { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; background: #fff; border: 1px solid #D5DED5; color: var(--ink-2); padding: 0 6px; }
.rank.inschaling i { font-style: normal; font-weight: 600; font-size: .9em; color: var(--ink-3); margin-left: 2px; }
.av-rank.inschaling { background: #fff; border: 1.5px solid #D5DED5; color: var(--ink-2); }
.rank.none { background: transparent; color: var(--ink-3); font-family: var(--font-body); font-weight: 500; font-size: 12.5px; padding: 1px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Klassement onderaan een profielfoto (AvatarRank, in Avatar); grootte en positie inline. */
.av-wrap { position: relative; flex: none; display: inline-flex; }
.av-rank { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 999px; border: 2px solid #fff; background: var(--lime); color: var(--ink); font-family: var(--font-display); font-weight: 700; line-height: 1.25; white-space: nowrap; pointer-events: none; }
.av-rank svg { width: 0.9em; height: 0.9em; }
.av-rank.unverified { background: #F5A23A; color: var(--ink); gap: 3px; }
.av-rank.unverified b, .rank.unverified b { font-size: 0.8em; font-weight: 800; letter-spacing: .02em; padding: 0 3px; border-radius: 4px; background: rgba(26, 37, 35, .14); color: var(--ink); }
.av-rank.none { background: #fff; border: 1.5px solid #D5DED5; color: var(--ink-3); font-weight: 600; }
.play-sport .av-wrap, .menu-me .av-wrap { margin-bottom: 4px; }
.play-sport .av-rank, .menu-me .av-rank { border-color: var(--chalk); }
.av-rank svg, .menu-me .av-rank svg { width: 0.9em; height: 0.9em; color: inherit; }
.seat .ring { margin-bottom: 6px; }

/* "Ik wil spelen" (Offers.razor): wizard en zoekende avatar */
.lfg-radar { position: relative; width: 240px; height: 240px; margin: 4px auto 0; display: grid; place-items: center; }
.lfg-radar .me { position: relative; z-index: 2; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 12px 30px rgba(21, 32, 31, .18); }
.lfg-radar .ring { position: absolute; inset: 50% auto auto 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; animation: lfg-pulse 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
.lfg-radar .ring.r2 { animation-delay: 1.2s; }
.lfg-radar .ring.r3 { animation-delay: 2.4s; }
.lfg-radar .orbit { position: absolute; inset: 24px; border-radius: 50%; border: 1.5px dashed #C8D3CB; animation: lfg-spin 9s linear infinite; z-index: 1; }
.lfg-radar .lens { position: absolute; top: -20px; left: 50%; margin-left: -20px; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(21, 32, 31, .2); animation: lfg-spin 9s linear infinite reverse; }
@keyframes lfg-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes lfg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.lfg-radar .ring, .lfg-radar .orbit, .lfg-radar .lens { animation: none; }
	.lfg-radar .ring.r1 { opacity: .5; transform: scale(1.5); }
}
.lfg-steps { display: flex; gap: 6px; margin-top: 12px; max-width: 320px; }
.lfg-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.lfg-steps i.on { background: var(--ink); }
.lfg-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.lfg-days .day { width: auto; min-width: 0; }
.lfg-days .day:disabled { opacity: .4; cursor: default; }
.lfg-club { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line-2, #EEF1EC); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.lfg-club:last-child { border-bottom: 0; }
.lfg-club:hover { background: var(--chalk); }
.lfg-check { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #C3CFC6; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.lfg-check.on { background: var(--ink); border-color: var(--ink); }
.lfg-foot { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.lfg-foot .btn.lg { flex: 1; min-width: 160px; }
.lfg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lfg-days .day.today:not(.on) { border-color: var(--ink-3); }

/* Dagenrij: stip als er nog vrije uren zijn (062) */
.day-dot { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 4px auto 0; background: transparent; }
.day-dot.free { background: var(--glass); }
.day.on .day-dot.free { background: var(--lime); }

/* Fotoreeks op de clubpagina (072): horizontaal scrollen met snap. */
.club-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 6px; margin: 14px 0 4px; scrollbar-width: thin; }
.club-gallery a { flex: 0 0 auto; scroll-snap-align: start; border-radius: 16px; overflow: hidden; display: block; }
.club-gallery img { display: block; height: 180px; width: auto; max-width: 320px; object-fit: cover; }
@media (max-width: 640px) { .club-gallery img { height: 140px; max-width: 240px; } }
/* Mijn boekingen (sprint 7): dezelfde rij als "Jouw matchen", met extra info eronder. */
.booking-item + .booking-item { border-top: 1px solid var(--line); }
.booking-extra { padding: 0 12px 14px 68px; }
@media (max-width: 640px) { .booking-extra { padding-left: 12px; } }

/* ---------- Hulp, support en contact met de club (077) ---------- */
.help-faq { border-top: 1px solid var(--line-2); }
.help-faq:first-of-type { border-top: 0; }
.help-faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 600; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: "+"; margin-left: auto; flex: none; font-size: 20px; font-weight: 500; color: var(--ink-3); }
.help-faq[open] summary::after { content: "−"; }
.help-faq p { margin: -4px 0 16px; color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; }
.ticket-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--glass); }
.status-pill { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #F1F4EC; color: var(--ink-2); }
.status-pill.answered { background: var(--glass-soft); color: var(--ink); }
.status-pill.open { background: var(--warn-soft); color: var(--warn); }
.photo-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.chat-photo { display: block; max-width: 260px; max-height: 300px; border-radius: 12px; border: 1px solid var(--line); margin-top: 2px; object-fit: cover; }
.support-thread { display: flex; flex-direction: column; min-height: 460px; height: calc(100vh - 260px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.contact-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #F1F4EC; display: flex; align-items: center; justify-content: center; }
.contact-ic svg { width: 18px; height: 18px; }


/* ==========================================================================
   Openbare website en kop in de kleuren van de app
   --------------------------------------------------------------------------
   Zelfde opbouw als voorheen, maar licht: app-achtergrond (#EEF4EE), witte
   kaarten, inkt voor tekst en knoppen, padelblauw (#2C6E7E) voor de baan en
   het geel van de bal als accent. Geldt ook voor de kop van de ingelogde site.
   ========================================================================== */

/* Kop: licht en wazig over de pagina, inkt in plaats van wit */
.pub-head {
    background: color-mix(in srgb, var(--chalk) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    color: var(--ink);
    border-bottom: 1px solid rgba(26, 37, 35, .06);
}
.pub-logo, .pub-logo:hover { color: var(--ink); }
.pub-nav a { color: var(--ink-2); font-weight: 600; border-radius: 999px; padding: 8px 14px; }
.pub-nav a:hover { background: rgba(26, 37, 35, .05); color: var(--ink); }
.pub-nav a.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(16, 26, 25, .08); }
.pub-head .seg { background: #fff; border-radius: 12px; }
.pub-head .seg button { color: var(--ink-2); }
.pub-head .seg button.on { background: var(--lime); color: var(--ink); }
.pub-head .seg[data-pill]::before { background: var(--lime); box-shadow: none; border-radius: 9px; }
.pub-head .btn.ball { background: var(--ink); border-color: var(--ink); color: #fff; }
.pub-head .btn.ball:hover { background: #26332F; color: #fff; }

/* Hero: lichte achtergrond met een padelbaan van boven op de achtergrond */
.pub-hero { background: var(--chalk); color: var(--ink); }
.pub-lead { color: var(--ink-2); }
.btn.pub-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.pub-ghost:hover { background: rgba(26, 37, 35, .06); color: var(--ink); }
.pub-hero .btn.ball { background: var(--ink); border-color: var(--ink); color: #fff; }
.pub-hero .btn.ball:hover { background: #26332F; color: #fff; }
.pub-hero-lines { color: var(--court); opacity: .16; }
.pub-hero .pub-video-el { box-shadow: 0 0 0 1px rgba(26, 37, 35, .06), 0 40px 80px -36px rgba(16, 26, 25, .45); }
.pub-ticket { box-shadow: 0 30px 60px -28px rgba(16, 26, 25, .4); border-radius: 22px; }
.pub-ticket-cut::before, .pub-ticket-cut::after { background: var(--chalk); }
.pub-live { border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(16, 26, 25, .4); }
.pub-ball { box-shadow: 0 10px 18px rgba(16, 26, 25, .22); }

/* Feiten onder de hero: witte kaarten zoals in de app i.p.v. een strook met lijnen */
.pub-proof { background: transparent; border-bottom: 0; padding-bottom: 8px; }
.pub-proof-row { gap: 12px; }
.pub-proof-row > div, .pub-proof-row > div + div { background: #fff; border: 0; border-radius: 22px; padding: 20px 22px; }
@media (max-width: 900px) { .pub-proof-row > div, .pub-proof-row > div + div { padding: 16px 18px; } }

/* Kaarten: wit, geen rand, ronde hoeken van de app */
.pub-feat, .pub-faq, .pub-acc details { border: 0; border-radius: 22px; }
.pub-feat:hover { box-shadow: 0 14px 30px -18px rgba(16, 26, 25, .3); }
.pub-faq summary::after, .pub-acc summary::after { border-color: var(--line); background: #F1F5F1; }

/* Zo werkt het: witte kaarten met het nummer in de themakleur, de laatste in het geel van de bal */
.pub-steps li { background: #fff; color: var(--ink); border-radius: 22px; }
.pub-num { color: var(--app-acc, #0E8FA8); }
.pub-steps p { color: var(--ink-2); }
.pub-steps li:last-child { background: var(--lime); }

/* Clubplatform: lichte sectie met de planner op een padelbaan */
.pub-platform { background: #fff; color: var(--ink); }
.pub-platform .pub-sub { color: var(--ink-2); }
.pub-planner { background: var(--court); border-radius: 22px; color: #fff; }
.pub-screens li { border-top-color: var(--line); }
.pub-screens span { color: var(--ink-2); }

/* Band "Ben je een club?" en footer: padelblauw en inkt */
.pub-band { background: var(--court); }
.pub-band p { color: rgba(255, 255, 255, .85); }
.pub-foot { background: var(--ink); }

/* Andere openbare pagina's: lichte kop */
.pub-page-head { background: var(--chalk); color: var(--ink); }
.pub-page-head .pub-lead { color: var(--ink-2); }

/* Gewone pagina's: kaarten zonder rand, zoals de app */
.panel:not(.quiet) { border: 0; }
.panel { border-radius: 22px; }

/* ---------- Startpagina (ingelogd) als website ---------- */
.home .page-head h1 { font-size: 34px; }
.home .page-head .actions { align-items: center; }
.home .play-note { margin-bottom: 18px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.home-matches .mc-card { padding: 0; background: none; border-radius: 0; }
.home-matches .mc-info { padding: 14px 2px 0; }
.home-more { margin-top: 14px; border-top: 1px solid var(--line-2); }
.home-side { gap: 22px; }
.home-side .play-block { margin-top: 0; }
.home-side .panel.flush .panel-head { padding: 18px 22px 0; margin-bottom: 6px; }
.club-line .tag { flex: none; }
.home-comps { margin-top: 34px; }
.home-comps .panel-head { padding: 0 4px; }
.comp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 980px) {
    .home-grid { grid-template-columns: minmax(0, 1fr); }
    .comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home .page-head h1 { font-size: 26px; }
    .home .page-head .actions { margin-left: 0; width: 100%; }
    .home .page-head .actions .seg { flex: 1; }
    .home .page-head .actions .seg button { flex: 1; justify-content: center; }
    .comp-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Squash en badminton (086) ---------- */
:root { --wood: #B07D45; --wood-soft: #F3E8DA; --hall: #3D7A57; --hall-soft: #E1EFE5; --pickle: #6C5B9E; --pickle-soft: #ECE6F6; }
.tag.squash { background: var(--wood-soft); color: #6A4518; }
.tag.badminton { background: var(--hall-soft); color: #1F5136; }
.sport-dot.squash { background: var(--wood); }
.sport-dot.badminton { background: var(--hall); }
.plan-court.squash, .mc-court.squash, .club-head-courtart.squash { background: var(--wood); }
.plan-court.badminton, .mc-court.badminton, .club-head-courtart.badminton { background: var(--hall); }
/* Pickleball (087) */
.tag.pickleball { background: var(--pickle-soft); color: #3D2F6B; }
.sport-dot.pickleball { background: var(--pickle); }
.plan-court.pickleball, .mc-court.pickleball, .club-head-courtart.pickleball { background: var(--pickle); }

/* ---------- Trainingen per club (uitklapbaar, zoals in de app) ---------- */

.tg-list { display: flex; flex-direction: column; gap: 14px; }
.tg { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.tg-head { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tg-photo { display: block; height: 132px; }
.tg-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 18, 0) 20%, rgba(10, 20, 18, .66) 100%); }
.tg-id { position: absolute; left: 20px; right: 120px; bottom: 14px; display: flex; align-items: center; gap: 12px; }
.tg-id .club-badge { border: 2px solid #fff; }
.tg-name-wrap { display: flex; flex-direction: column; min-width: 0; }
.tg-name { display: flex; align-items: center; gap: 7px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); min-width: 0; }
.tg-sub { color: rgba(255, 255, 255, .85); font-size: 13px; margin-top: 2px; }
.tg-count { position: absolute; right: 16px; bottom: 16px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .92); padding: 5px 11px; border-radius: 999px; }
.tg-bar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; }
.tg-next { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tg-chev { flex: none; color: var(--ink-3); transition: transform .22s ease; }
.tg.open .tg-chev { transform: rotate(180deg); }
.tg-head:hover .tg-chev { color: var(--ink); }
.tg-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.tg.open .tg-body { grid-template-rows: 1fr; }
.tg-inner { overflow: hidden; min-height: 0; }
.tg-inner .rows { border-top: 1px solid var(--line-2); }
.tg-inner .row { padding: 13px 20px; }
.tg-club { display: block; padding: 12px 20px 14px; border-top: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
@media (max-width: 560px) {
    .tg-photo { height: 112px; }
    .tg-id { left: 14px; right: 100px; }
    .tg-bar, .tg-club, .tg-inner .row { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-body, .tg-chev { transition: none; }
}

/* Uitleg achter een "?" (InfoTip, sprint 8) */
.info-tip-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.info-tip-btn:hover { color: var(--ink); }
.info-tip-q { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line-2); color: var(--ink); font-size: 12px; font-weight: 700; }
.info-tip-body { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-control); background: var(--line-2); font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

/* Verwittig me: actieve meldingen en schema (093) */
.watch-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.watch-list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: var(--r-control); font-size: 13.5px; font-weight: 600; }
.watch-list li > span { flex: 1; min-width: 0; }
.watch-list li > svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.overlay .panel.watch-dialog { max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.watch-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.watch-days .chip { justify-content: center; padding-left: 0; padding-right: 0; }
.watch-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.watch-times label { display: flex; flex-direction: column; gap: 4px; }

/* Wie betaalt (098): keuzekaarten bij het boeken */
.pay-opts { display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pay-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); transition: border .15s; }
.pay-opt.on .pay-radio { border: 6px solid var(--ink); }
.pay-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pay-txt b { font-size: 14px; color: var(--ink); }
.pay-txt small { font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.pay-amt { flex: none; font-weight: 700; color: var(--ink); }
.match-pay { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* Enkelbaan padel (100): 20 × 6 m i.p.v. 20 × 10 m, dus 60% zo breed binnen dezelfde plaats. */
.plan-court.single:not(.portrait) { height: 60%; align-self: center; }
.plan-court.single.portrait { width: 60%; justify-self: center; }

/* Privacyverklaring (Pages/Privacy.razor) */
.pub-legal h2 { font-size: 20px; margin: 28px 0 8px; }
.pub-legal p, .pub-legal li { line-height: 1.65; }
.pub-legal ul { padding-left: 20px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.pub-legal ul ul { margin-top: 6px; }

/* Laadanimatie (AgLoader / Loader): stuiterende agoplay-bal met schaduw i.p.v. "Laden…". */
.ag-loader { display: flex; width: fit-content; flex-direction: column; align-items: center; justify-content: flex-end; height: calc(var(--s) * 2.1); margin: 6px auto; }
.ag-loader-ball { width: var(--s); height: var(--s); transform-origin: 50% 100%; animation: ag-loader-bounce .9s cubic-bezier(.45, 0, .55, 1) infinite; }
.ag-loader-ball svg { display: block; width: 100%; height: 100%; animation: ag-loader-spin 1.8s linear infinite; }
.ag-loader-shadow { width: calc(var(--s) * .8); height: calc(var(--s) * .16); margin-top: 3px; border-radius: 50%; background: rgba(21, 32, 31, .16); animation: ag-loader-shadow .9s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes ag-loader-bounce {
    0%, 100% { transform: translateY(0) scale(1.12, .86); }
    12% { transform: translateY(0) scale(1, 1); }
    50% { transform: translateY(calc(var(--s) * -1)) scale(.96, 1.04); }
    88% { transform: translateY(0) scale(1, 1); }
}
@keyframes ag-loader-spin { to { transform: rotate(360deg); } }
@keyframes ag-loader-shadow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.55); opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
    .ag-loader-ball, .ag-loader-ball svg, .ag-loader-shadow { animation-duration: 2.4s; }
}

/* Geen internet / fout op een pagina (ScreenErrorBoundary, OfflineBanner). */
.ag-fail { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 24px; text-align: center; color: var(--ink); }
.ag-fail-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink); margin-bottom: 6px; }
.ag-fail h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.ag-fail p { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ag-fail-btn { margin-top: 12px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ag-fail-btn:hover { background: #24302E; }
.ag-offline-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 900; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.2); pointer-events: none; }
.ag-offline-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }

/* Klassementskaart op het profiel (RankCard): padel en tennis als tegels, TPV-koppeling als oproep. */
.rankcard { display: block; margin-top: 16px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.rankcard:hover { border-color: var(--ink-3); box-shadow: 0 6px 20px rgba(21, 32, 31, .06); }
.rankcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rankcard-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--app-acc); }
/* Rustig, zoals de andere panelen: twee kolommen met een scheidingslijn, status als gekleurde tekst. */
.rankcard-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.ranktile { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 2px 0; }
.ranktile + .ranktile { padding-left: 20px; border-left: 1px solid var(--line-2); }
.ranktile-sport { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ranktile.current .ranktile-sport { color: var(--ink); font-weight: 700; }
.ranktile-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ranktile-value.empty { color: var(--ink-3); }
.rankstate { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; color: var(--ink-3); }
.rankstate svg { width: 13px; height: 13px; }
.rankstate i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rankstate.verified { color: var(--app-acc); }
.rankstate.pending { color: var(--warn); }
.rankstate.inschaling { color: var(--ink-2); }
.rankstate.none i { display: none; }
.rankcard-cta { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--ink); }
.rankcard-cta .t { font-weight: 700; font-size: 14.5px; }
.rankcard-cta .s { font-size: 13px; margin-top: 2px; color: var(--ink-2); }
.rankcard-cta.pending .s { margin-top: 0; }
.rankcard-cta > svg { flex: none; color: var(--ink-3); }
.rankcard-cta-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--chalk); display: flex; align-items: center; justify-content: center; }
.rankcard-cta.pending .rankcard-cta-icon { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 520px) { .ranktile { padding: 14px; } .ranktile-value { font-size: 28px; } }

/* Clubchat (123): strook onder de kop van de clubpagina. */
.club-community {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin: 14px 0 18px; padding: 14px 16px; border-radius: var(--r-panel);
    background: linear-gradient(120deg, var(--paper) 0%, var(--glass-soft) 100%); border: 1px solid var(--line);
}
.club-community.guest { background: var(--paper); }
.club-community-ico {
    position: relative; flex: none; width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; background: var(--glass); color: #fff;
}
.club-community.guest .club-community-ico { background: var(--line-2); color: var(--ink-2); }
.club-community-ico i { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 2px var(--paper); }
.club-community-txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.club-community-txt b { font-family: var(--font-display); font-size: 17px; display: flex; align-items: center; }
.club-community-txt small { color: var(--ink-2); font-size: 13px; }
.club-community-links { display: flex; flex-wrap: wrap; gap: 8px; }
.club-community-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
    background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none;
}
.club-community-chip:hover { border-color: var(--glass); color: var(--glass); }
.club-community-chip.new { border-color: var(--glass); }
.club-community-chip em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--glass); border-radius: 999px; padding: 1px 7px; }

/* ---------- Paginatabs (PageTabs: Meespelen, Boekingen), zoals .ag-pagetabs in de app ---------- */
.pagetabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pagetabs::-webkit-scrollbar { display: none; }
.pagetabs button {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 14px;
    border: 0;
    background: transparent;
    color: var(--ink-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: color .2s;
}
.pagetabs button svg { width: 18px; height: 18px; }
.pagetabs button:hover { color: var(--ink-2); }
.pagetabs button.on { color: var(--ink); }
.pagetabs button::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ink);
    transform: scaleX(0);
    transition: transform .3s cubic-bezier(.3, 1.3, .5, 1);
}
.pagetabs button.on::after { transform: scaleX(1); }
.pagetabs .n {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    background: var(--line-2);
    color: var(--ink-2);
}
.pagetabs button.on .n { background: var(--lime); color: var(--lime-ink); }
@media (prefers-reduced-motion: reduce) {
    .pagetabs button, .pagetabs button::after { transition: none; }
}

/* Meespelen > Ik zoek mee: compacte strook "Je bent aan het zoeken" (geen radar-animatie meer). */
.lfg-live {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.lfg-live .dot {
    flex: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--glass);
    box-shadow: 0 0 0 5px var(--glass-soft);
}
.lfg-live .txt { flex: 1; min-width: 0; }
.lfg-live h2 { font-size: 17px; }
.lfg-live p { margin-top: 2px; }
.lfg-live .btn { flex: none; }
