:root {
    --mvp-bg: #f6f8fb;
    --mvp-surface: #ffffff;
    --mvp-surface-soft: #eef2f7;
    --mvp-text: #172033;
    --mvp-muted: #6b7280;
    --mvp-primary: #155eef;
    --mvp-primary-dark: #0f46b8;
    --mvp-success: #16a34a;
    --mvp-danger: #dc2626;
    --mvp-border: #e5e7eb;
    --mvp-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --mvp-radius: 18px;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--mvp-bg);
    color: var(--mvp-text);
    /* De pagina zelf scrolt nooit horizontaal; brede tabellen scrollen
       binnen hun eigen kaart (.table-card, overflow-x: auto). */
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: inherit;
        text-decoration: none;
    }

.app-shell {
    min-height: 100vh;
    background: var(--mvp-bg);
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 104px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--mvp-border);
    backdrop-filter: blur(14px);
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    height: 92px;
    width: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 850px) {
    .nav-logo {
        height: 68px;
    }
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.dropdown-button {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    color: var(--mvp-muted);
    cursor: pointer;
}

    .nav-link:hover,
    .dropdown-button:hover {
        background: var(--mvp-surface-soft);
        color: var(--mvp-text);
    }

.live-link {
    color: var(--mvp-danger);
}

.nav-auth {
    display: flex;
    align-items: center;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--mvp-primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(21, 94, 239, 0.2);
}

    .login-button:hover {
        background: var(--mvp-primary-dark);
        color: white;
    }

.nav-dropdown {
    position: relative;
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    background: var(--mvp-surface);
    box-shadow: var(--mvp-shadow);
    border: 1px solid var(--mvp-border);
}

    .dropdown-menu a {
        display: block;
        padding: 11px 12px;
        border-radius: 12px;
        color: var(--mvp-text);
        font-weight: 600;
    }

    .dropdown-group-label {
        padding: 10px 12px 4px;
        color: var(--mvp-muted);
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

        .dropdown-menu a:hover {
            background: var(--mvp-surface-soft);
        }

/* Desktop: dropdown opent op hover. Op touch-toestellen werkt hover niet,
   daar opent hij via klik (klasse .open, gezet in NavMenu). */
@media (hover: hover) {
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

/* Klik-ernaast sluit het open menu. De laag ligt ONDER de navigatiebalk
   (z 20), zodat het open menu en alle navigatieknoppen klikbaar blijven,
   maar boven de pagina-inhoud. */
.dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: transparent;
}

.nav-dropdown.open {
    z-index: 40;
}

.page-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 64px;
}

.page-header {
    margin-bottom: 28px;
}

.page-kicker {
    color: var(--mvp-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.page-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-subtitle {
    max-width: 680px;
    margin-top: 16px;
    color: var(--mvp-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    border-radius: var(--mvp-radius);
    padding: 22px;
    box-shadow: var(--mvp-shadow);
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.card-muted {
    color: var(--mvp-muted);
    line-height: 1.55;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    background: var(--mvp-surface-soft);
    color: var(--mvp-muted);
}

.badge-live {
    background: #fee2e2;
    color: var(--mvp-danger);
}

.table-card {
    /* Nooit afkappen: te brede tabellen scrollen horizontaal binnen de kaart.
       De gradient-lagen zijn "scrollschaduwen": op iPhone is er geen
       scrollbalk, dus een schaduw aan de rand verraadt dat er meer kolommen
       zijn en je kan vegen. */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    background:
        linear-gradient(90deg, #fff 35%, rgba(255, 255, 255, 0)) left / 44px 100%,
        linear-gradient(270deg, #fff 35%, rgba(255, 255, 255, 0)) right / 44px 100%,
        radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, 0.22), transparent) left / 16px 100%,
        radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.22), transparent) right / 16px 100%,
        #fff;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll, local;
}

/* De tabel zelf moet doorzichtig zijn, anders bedekt hij de schaduwen. */
.table-card .data-table {
    background: transparent;
}

/* Kopcellen licht doorschijnend zodat de scrollschaduw zichtbaar blijft. */
.table-card .data-table th {
    background: rgba(241, 245, 249, 0.72);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th,
    .data-table td {
        text-align: left;
        padding: 12px 14px;
        border-bottom: 1px solid var(--mvp-border);
        vertical-align: top;
    }

    .data-table th {
        background: var(--mvp-surface-soft);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--mvp-muted);
    }

    .data-table tr:last-child td {
        border-bottom: 0;
    }

.score {
    font-weight: 900;
    font-size: 1.15rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    align-items: stretch;
}

.hero-panel {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
}

.primary-button {
    background: var(--mvp-primary);
    color: white;
}

    .primary-button:hover {
        background: var(--mvp-primary-dark);
        color: white;
    }

.secondary-button {
    background: var(--mvp-surface-soft);
    color: var(--mvp-text);
}

    .secondary-button:hover {
        background: #dde4ef;
        color: var(--mvp-text);
    }

.nav-user-link {
    text-decoration: none;
    color: inherit;
}

    .nav-user-link:hover {
        color: var(--mvp-primary);
    }

/* Naam-dropdown (admin): kapiteinslijst om als te werken */
.dropdown-menu-right {
    left: auto;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.dropdown-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--mvp-muted);
}

/* Impersonatiebalk: admin werkt tijdelijk als een kapitein */
.impersonation-bar {
    /* Bewust niet zwevend: zo kan de balk nooit boven de navigatie of haar
       open dropdowns komen. De naam rechtsboven toont sowieso de kapitein. */
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    color: #92400e;
    padding: 8px 16px;
    font-weight: 600;
}

    .impersonation-bar button {
        border: 1px solid #f59e0b;
        background: #fff;
        border-radius: 999px;
        padding: 6px 14px;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
        color: #92400e;
    }

/* Testdatum-veld voor admins (fictief "vandaag") */
.clock-override {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--mvp-border);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mvp-muted);
    background: var(--mvp-surface);
}

    .clock-override input[type=date] {
        border: 0;
        background: transparent;
        font: inherit;
        color: inherit;
    }

.clock-override-active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.clock-override-reset {
    border: 0;
    background: transparent;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    color: inherit;
    padding: 0 2px;
}

/* "Menu"-knop: enkel zichtbaar op mobiel (bewust een woord, geen hamburger). */
.menu-button {
    display: none;
    border: 1px solid var(--mvp-border);
    background: var(--mvp-surface);
    padding: 10px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    color: var(--mvp-text);
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: var(--mvp-surface);
    overflow-y: auto;
    padding: 18px 22px 40px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mobile-menu-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.mobile-menu-close {
    border: 1px solid var(--mvp-border);
    background: var(--mvp-surface);
    padding: 10px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-link {
    display: block;
    padding: 14px 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mvp-text);
    border-bottom: 1px solid var(--mvp-border);
    text-decoration: none;
}

.mobile-menu-sub {
    padding-left: 28px;
    font-weight: 600;
}

.mobile-menu-group {
    padding: 16px 10px 4px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mvp-primary);
}

@media (max-width: 850px) {
    /* Mobiel zonder testdatum (bezoeker/speler/kapitein): compacte rij
       logo · [naam Uitloggen] · Menu, die enkel wrapt als het niet past. */
    .top-nav {
        height: auto;
        min-height: 72px;
        padding: 12px 16px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 8px 10px;
    }

    .nav-brand {
        margin-right: auto;
    }

    .nav-auth {
        gap: 8px;
    }

    .menu-button {
        display: inline-flex;
        margin-left: 0;
    }

    .nav-links {
        display: none;
    }

    /* Ingelogd op een smal scherm: naam + Uitloggen op de eerste rij,
       de Menu-knop zakt naar de rij eronder (rechts). Past alles wél op
       één rij (bredere schermen), dan blijft de volgorde Menu · naam ·
       Uitloggen. Voor bezoekers (geen naam) verandert er niets. */
    @media (max-width: 560px) {
        .top-nav:has(.nav-user, .user-dropdown) .nav-auth {
            order: 2;
        }

        .top-nav:has(.nav-user, .user-dropdown) .menu-button {
            order: 3;
            margin-left: auto;
        }
    }

    /* Mobiel MET testdatum (admin) — vaste indeling:
       rij 1:  LOGO   TESTDATUM   UITLOGGEN
       rij 2:                     GEBRUIKER
       rij 3:                     MENU        */
    .top-nav:has(.clock-override) {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 6px 12px;
    }

        .top-nav:has(.clock-override) .nav-brand {
            grid-row: 1;
            grid-column: 1;
            align-self: start;
            margin-right: 0;
        }

        .top-nav:has(.clock-override) .nav-auth {
            grid-column: 3;
            grid-row: 1 / span 2;
            display: flex;
            flex-direction: column-reverse;
            align-items: flex-end;
            gap: 6px;
        }

        .top-nav:has(.clock-override) .menu-button {
            grid-column: 3;
            grid-row: 3;
            justify-self: end;
        }

    .clock-override {
        grid-row: 1;
        grid-column: 2;
        justify-self: center;
        padding: 4px 8px;
    }

        .clock-override > span {
            display: none;
        }

        .clock-override input[type=date] {
            max-width: 105px;
            font-size: 0.8rem;
        }

    /* Lange namen afkappen in plaats van de balk te verbreden. */
    .nav-user,
    .user-dropdown .dropdown-button {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 6px 8px;
    }

    .logout-button,
    .login-button {
        padding: 8px 14px;
    }

    .nav-logo {
        height: 56px;
    }

    /* Dropdown vouwt op mobiel gewoon open in de flow, zodat hij nooit
       buiten het scherm valt en alle items aanklikbaar zijn. */
    .nav-dropdown.open .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
    }

    .hero,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .page-content {
        width: calc(100% - 24px);
    }

    /* Brede tabellen scrollen horizontaal binnen hun kaart in plaats van
       knoppen af te snijden. */
    .table-card {
        overflow-x: auto;
    }

    .data-table {
        min-width: 640px;
    }
}
/*dit  voor def home*/
.section-block {
    margin-top: 42px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

    .section-heading h2 {
        margin: 0;
        font-size: 1.75rem;
        letter-spacing: -0.03em;
    }

.section-link {
    font-weight: 800;
    color: var(--mvp-primary);
}

.news-card {
    min-height: 190px;
}

    .news-card .card-title {
        margin-top: 10px;
    }

.news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-category {
    color: var(--mvp-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
}

.news-date {
    color: var(--mvp-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Publieke nieuwspagina */
.quarter-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border: 1px solid var(--mvp-border);
    border-radius: var(--mvp-radius);
    background: var(--mvp-surface);
    box-shadow: var(--mvp-shadow);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mvp-text);
    cursor: pointer;
}

.news-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.news-article .card-title {
    margin-top: 8px;
    font-size: 1.4rem;
}

.news-body {
    margin-top: 10px;
    color: var(--mvp-text);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Carrousel */
.news-carousel {
    position: relative;
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mvp-surface-soft);
}

.news-carousel-image {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--mvp-text);
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--mvp-shadow);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

    .carousel-dot.active {
        background: white;
    }

/* Admin thumbnails */
.news-image-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.news-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--mvp-border);
}

    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-thumb-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.mini-match-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
}

    .mini-match span {
        display: block;
        color: var(--mvp-muted);
        margin-top: 4px;
    }

/* Sponsor-carrousel op de homepagina */
.sponsor-carousel {
    position: relative;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    border-radius: var(--mvp-radius);
    box-shadow: var(--mvp-shadow);
    padding: 24px 60px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.sponsor-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.sponsor-slot-side {
    flex: 0 1 22%;
    opacity: 0.55;
    transform: scale(0.8);
}

.sponsor-slot-center {
    flex: 0 1 40%;
    opacity: 1;
    transform: scale(1);
}

.sponsor-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sponsor-slot-side .sponsor-slide img {
    max-height: 80px;
}

.sponsor-slot-center .sponsor-slide img {
    max-height: 130px;
}

    .sponsor-slide img {
        max-width: 100%;
        width: auto;
        object-fit: contain;
        animation: sponsorFade 0.5s ease;
    }

.sponsor-name {
    font-weight: 800;
    color: var(--mvp-text);
    text-align: center;
    animation: sponsorFade 0.5s ease;
}

@keyframes sponsorFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 700px) {
    .sponsor-row {
        gap: 10px;
    }

    .sponsor-slot-side .sponsor-slide img {
        max-height: 48px;
    }

    .sponsor-slot-center .sponsor-slide img {
        max-height: 90px;
    }
}

@media (max-width: 850px) {
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*dit is voor de competitiespagina*/
.team-card {
    min-height: 220px;
}

/*Teams*/
.team-filter-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.filter-card {
    min-width: 260px;
    padding: 14px;
    border-radius: 16px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    box-shadow: var(--mvp-shadow);
}

    .filter-card label {
        display: block;
        margin-bottom: 8px;
        color: var(--mvp-muted);
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .filter-card select {
        width: 100%;
        border: 1px solid var(--mvp-border);
        border-radius: 12px;
        padding: 10px 12px;
        background: white;
        color: var(--mvp-text);
        font: inherit;
        font-weight: 600;
    }

.player-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
}

    .player-row strong {
        display: block;
        font-size: 0.95rem;
    }

    .player-row span {
        display: block;
        margin-top: 2px;
        color: var(--mvp-muted);
        font-size: 0.84rem;
    }

.player-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mvp-primary);
    color: white;
    font-weight: 900;
    font-size: 0.82rem;
}

.team-meta {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
}

    .team-meta span {
        display: block;
        color: var(--mvp-muted);
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 4px;
    }

    .team-meta strong {
        display: block;
        color: var(--mvp-text);
    }

/*Admin*/
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    box-shadow: var(--mvp-shadow);
}

.admin-nav-link {
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--mvp-muted);
    white-space: nowrap;
}

    .admin-nav-link:hover {
        background: var(--mvp-surface-soft);
        color: var(--mvp-text);
    }

    .admin-nav-link.active {
        background: var(--mvp-primary);
        color: white;
    }

@media (max-width: 850px) {
    .admin-nav {
        border-radius: 18px;
    }
}

.login-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(460px, 100%);
}

.login-title {
    margin: 0 0 12px;
    font-size: 2.2rem;
    letter-spacing: -0.04em;
}

.form-group {
    margin-top: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--mvp-muted);
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.form-control-mvp {
    width: 100%;
    border: 1px solid var(--mvp-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: white;
    color: var(--mvp-text);
    font: inherit;
    font-weight: 600;
}

    .form-control-mvp:focus {
        outline: 3px solid rgba(21, 94, 239, 0.16);
        border-color: var(--mvp-primary);
    }

.full-width {
    width: 100%;
    border: 0;
    margin-top: 22px;
}

.form-error {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fee2e2;
    color: var(--mvp-danger);
    font-weight: 800;
}

.nav-user {
    margin-right: 10px;
    color: var(--mvp-muted);
    font-weight: 700;
    white-space: nowrap;
}

.logout-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--mvp-surface-soft);
    color: var(--mvp-text);
    font-weight: 800;
    cursor: pointer;
}

    .logout-button:hover {
        background: #dde4ef;
    }

.admin-card {
    display: block;
    min-height: 190px;
}

    .admin-card:hover {
        transform: translateY(-2px);
    }

/*Navmenu*/
.login-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(460px, 100%);
}

.login-title {
    margin: 0 0 12px;
    font-size: 2.2rem;
    letter-spacing: -0.04em;
}

.form-group {
    margin-top: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--mvp-muted);
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.form-control-mvp {
    width: 100%;
    border: 1px solid var(--mvp-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: white;
    color: var(--mvp-text);
    font: inherit;
    font-weight: 600;
}

    .form-control-mvp:focus {
        outline: 3px solid rgba(21, 94, 239, 0.16);
        border-color: var(--mvp-primary);
    }

.full-width {
    width: 100%;
    border: 0;
    margin-top: 22px;
}

.form-error {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fee2e2;
    color: var(--mvp-danger);
    font-weight: 800;
}

.nav-user {
    margin-right: 10px;
    color: var(--mvp-muted);
    font-weight: 700;
    white-space: nowrap;
}

.logout-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--mvp-surface-soft);
    color: var(--mvp-text);
    font-weight: 800;
    cursor: pointer;
}

    .logout-button:hover {
        background: #dde4ef;
    }

.admin-card {
    display: block;
    min-height: 190px;
}

    .admin-card:hover {
        transform: translateY(-2px);
    }

/*AdminCompetitions*/
.form-success {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
}

.table-link {
    color: var(--mvp-primary);
    font-weight: 800;
}

/*AdminTeams*/
.field-help {
    margin: 8px 0 0;
    color: var(--mvp-muted);
    font-size: 0.85rem;
}

/* Records & mijlpalen: speelse kaarten. */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.record-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.record-card-gold {
    background: linear-gradient(135deg, #fff7e0, #ffe9b3);
}

.record-emoji {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
}

.record-title {
    font-weight: 800;
    font-size: 1.02rem;
}

.record-sub {
    color: var(--mvp-muted, #64748b);
    font-size: 0.8rem;
    margin-top: 2px;
}

.record-value {
    font-size: 1.9rem;
    font-weight: 900;
    margin: 6px 0 4px;
    color: var(--mvp-primary, #155eef);
}

.record-card-gold .record-value {
    color: #b45309;
}

.record-holder {
    margin-top: 4px;
    font-weight: 600;
}

.record-team {
    color: var(--mvp-muted, #64748b);
    font-weight: 400;
    font-size: 0.85rem;
}

.record-empty {
    color: var(--mvp-muted, #64748b);
    font-style: italic;
    margin-top: 6px;
}

/* ── Halloweenthema: subtiele knipogen, niet te druk. ─────────────── */
.theme-halloween {
    --mvp-primary: #ea580c;
}

/* Pompoentje vóór de paginakop en warme accentkleur. */
.theme-halloween .page-header .page-kicker::before {
    content: "🎃 ";
}

.theme-halloween .page-kicker {
    color: #ea580c;
}

/* Warme knoppen. */
.theme-halloween .primary-button,
.theme-halloween .login-button {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

/* Zachte pompoengloed op kaarten bij hover. */
.theme-halloween .record-card:hover,
.theme-halloween .card.admin-card:hover {
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.18);
}

/* Slingerend spinnetje rechtsboven, aan een dun draadje. */
.hw-spider {
    position: fixed;
    top: 0;
    right: 42px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.95rem;
    opacity: 0.8;
    transform-origin: top center;
    animation: hw-swing 6s ease-in-out infinite;
    pointer-events: none;
}

.hw-thread {
    width: 1px;
    height: 46px;
    background: rgba(100, 116, 139, 0.3);
}

@keyframes hw-swing {
    0%, 100% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(-5deg);
    }
}

/* Spinnenweb stil in de linkerbovenhoek. */
.hw-web {
    position: fixed;
    top: -6px;
    left: -6px;
    z-index: 40;
    font-size: 1.7rem;
    opacity: 0.3;
    transform: rotate(-20deg);
    pointer-events: none;
    filter: grayscale(0.4);
}

/* Halloween-loader: de bezem veegt pompoenen richting de ketel. */
.hw-bezem {
    font-size: 1.7rem;
    line-height: 1;
    display: inline-block;
    transform: rotate(90deg);
    animation: hw-veeg 1.3s ease-in-out infinite;
}

.hw-pompoen {
    font-size: 1.4rem;
    line-height: 1;
    display: inline-block;
}

.hw-pompoen-1 { animation: balRol 1.3s ease-in-out infinite; }
.hw-pompoen-2 { animation: balRol 1.3s ease-in-out 0.15s infinite; }
.hw-pompoen-3 { animation: balRol 1.3s ease-in-out 0.3s infinite; }

.hw-ketel {
    font-size: 1.8rem;
    line-height: 1;
}

@keyframes hw-veeg {
    0%, 100% { transform: rotate(90deg) translateY(10px); }
    40%      { transform: rotate(90deg) translateY(-5px); }
}

/* Professionele themasignatuur: een slanke, langzaam verschuivende
   gradientlijn bovenaan de navigatie in plaats van een emoji bij het logo. */
.theme-halloween .top-nav,
.theme-kerst .top-nav {
    position: relative;
}

.theme-halloween .top-nav::before,
.theme-kerst .top-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-size: 300% 100%;
    animation: thema-schuif 14s linear infinite;
}

.theme-halloween .top-nav::before {
    background-image: linear-gradient(90deg, #4c1d95, #ea580c, #fbbf24, #ea580c, #4c1d95);
}

.theme-kerst .top-nav::before {
    background-image: linear-gradient(90deg, #14532d, #dc2626, #fcd34d, #dc2626, #14532d);
}

@keyframes thema-schuif {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 300% 0;
    }
}

/* Zachte, warme achtergrondzweem bovenaan de pagina-inhoud. */
.theme-halloween .page-content {
    background: radial-gradient(90% 300px at 50% 0, rgba(234, 88, 12, 0.06), transparent 70%);
}

.theme-kerst .page-content {
    background: radial-gradient(90% 300px at 50% 0, rgba(21, 128, 61, 0.06), transparent 70%);
}

/* Af en toe vliegt er een vleermuis over het scherm. */
.hw-bat {
    position: fixed;
    top: 12vh;
    left: -60px;
    z-index: 40;
    font-size: 1.5rem;
    pointer-events: none;
    animation: hw-vlieg 26s linear infinite;
}

@keyframes hw-vlieg {
    /* Grootste deel van de tijd buiten beeld wachten. */
    0%, 62% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }

    63% {
        opacity: 0.85;
    }

    70% {
        transform: translateX(30vw) translateY(-4vh) rotate(6deg);
    }

    78% {
        transform: translateX(62vw) translateY(3vh) rotate(-6deg);
        opacity: 0.85;
    }

    85%, 100% {
        transform: translateX(110vw) translateY(-2vh);
        opacity: 0;
    }
}


@media (prefers-reduced-motion: reduce) {
    .hw-spider,
    .hw-bat,
    .hw-bezem,
    .hw-pompoen {
        animation: none;
    }
}

/* ── Kerstthema: warme rood-groene accenten met sneeuw. ───────────── */
.theme-kerst {
    --mvp-primary: #b91c1c;
}

.theme-kerst .page-header .page-kicker::before {
    content: "🎄 ";
}

.theme-kerst .page-kicker {
    color: #15803d;
}

.theme-kerst .primary-button,
.theme-kerst .login-button {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.theme-kerst .record-card:hover,
.theme-kerst .card.admin-card:hover {
    box-shadow: 0 14px 28px rgba(21, 128, 61, 0.18);
}

/* Kerstbal aan een draadje rechtsboven: een echte CSS-bal met gouden
   kapje en glansje, geen emoji. */
.kerst-bal-hang {
    position: fixed;
    top: 0;
    right: 48px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: hw-swing 6s ease-in-out infinite;
    pointer-events: none;
}

.kerst-bal-cap {
    width: 6px;
    height: 5px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #fcd34d, #b45309);
}

.kerst-bal {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fca5a5 0 18%, #dc2626 45%, #7f1d1d 100%);
    box-shadow: 0 2px 6px rgba(127, 29, 29, 0.35);
}

/* Dwarrelende sneeuwvlokken. */
.kerst-vlok {
    position: fixed;
    top: -30px;
    z-index: 40;
    font-size: 1rem;
    opacity: 0.5;
    pointer-events: none;
    animation: kerst-dwarrel 12s linear infinite;
}

.kerst-vlok-1 { left: 12vw; animation-delay: 0s; }
.kerst-vlok-2 { left: 55vw; animation-delay: 3.5s; font-size: 0.8rem; }
.kerst-vlok-3 { left: 85vw; animation-delay: 7s; font-size: 1.2rem; }

@keyframes kerst-dwarrel {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
        opacity: 0;
    }

    8% {
        opacity: 0.7;
    }

    50% {
        transform: translateY(55vh) translateX(24px) rotate(180deg);
    }

    92% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(108vh) translateX(-12px) rotate(360deg);
        opacity: 0;
    }
}

/* Af en toe glijdt de arrenslee voorbij. */
.kerst-slee {
    position: fixed;
    top: 10vh;
    left: -60px;
    z-index: 40;
    font-size: 1.6rem;
    pointer-events: none;
    transform: scaleX(-1);
    animation: kerst-glij 30s linear infinite;
}

@keyframes kerst-glij {
    0%, 68% {
        transform: scaleX(-1) translateX(0) translateY(0);
        opacity: 0;
    }

    69% {
        opacity: 0.9;
    }

    78% {
        transform: scaleX(-1) translateX(-45vw) translateY(-3vh);
    }

    86% {
        transform: scaleX(-1) translateX(-90vw) translateY(2vh);
        opacity: 0.9;
    }

    90%, 100% {
        transform: scaleX(-1) translateX(-115vw) translateY(0);
        opacity: 0;
    }
}

/* Kerstman-loader: hij schuift de pakjes onder de boom. */
.kerst-man {
    font-size: 1.7rem;
    line-height: 1;
    display: inline-block;
    animation: keuStoot 1.3s ease-in-out infinite;
}

/* ── Premium-laag voor de thema's: donkere sfeernavigatie, thema-hero's,
   gloedeffecten en de kerstlichtjes. ─────────────────────────────── */

/* Halloween: nachtelijke navigatie. */
.theme-halloween .top-nav {
    background: linear-gradient(180deg, #171226, #241a38);
}

.theme-halloween .top-nav .nav-link,
.theme-halloween .top-nav .dropdown-button,
.theme-halloween .top-nav .nav-user {
    color: #e7e2f5;
}

.theme-halloween .top-nav .nav-link:hover,
.theme-halloween .top-nav .dropdown-button:hover {
    color: #fdba74;
}

.theme-halloween .menu-button {
    background: #2d2344;
    color: #f5f3ff;
    border: none;
}

.theme-halloween .logout-button {
    background: #2d2344;
    color: #e7e2f5;
    border: none;
}

/* Halloween-hero: nachthemel met een gloeiende maan en mist onderaan. */
.theme-halloween .hero-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #171226 0%, #2b1e46 55%, #3d1f35 100%);
}

.theme-halloween .hero-panel::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -95px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.75) 0 24%, rgba(253, 186, 116, 0.25) 45%, transparent 70%);
    animation: hw-maan 7s ease-in-out infinite;
    pointer-events: none;
}

.theme-halloween .hero-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    height: 90px;
    background: radial-gradient(60% 100% at 30% 100%, rgba(148, 130, 190, 0.35), transparent 70%),
                radial-gradient(50% 100% at 75% 100%, rgba(148, 130, 190, 0.25), transparent 70%);
    filter: blur(6px);
    pointer-events: none;
}

@keyframes hw-maan {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

.theme-halloween .hero-panel .page-title {
    color: #f8fafc;
    text-shadow: 0 2px 14px rgba(249, 115, 22, 0.25);
}

.theme-halloween .hero-panel .page-subtitle {
    color: #c4bfd6;
}

.theme-halloween .hero-panel .primary-button {
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.5);
    animation: thema-gloed 3.2s ease-in-out infinite;
}

@keyframes thema-gloed {
    0%, 100% {
        box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
    }

    50% {
        box-shadow: 0 0 26px rgba(249, 115, 22, 0.65);
    }
}

/* Kerst: diepgroene navigatie met een lichtjesslinger. */
.theme-kerst .top-nav {
    background: linear-gradient(180deg, #0c3524, #11492f);
}

.theme-kerst .top-nav .nav-link,
.theme-kerst .top-nav .dropdown-button,
.theme-kerst .top-nav .nav-user {
    color: #eafff3;
}

.theme-kerst .top-nav .nav-link:hover,
.theme-kerst .top-nav .dropdown-button:hover {
    color: #fcd34d;
}

.theme-kerst .menu-button {
    background: #0b3d2b;
    color: #eafff3;
    border: none;
}

.theme-kerst .logout-button {
    background: #0b3d2b;
    color: #eafff3;
    border: none;
}

/* Lichtjesslinger: twinkelende bolletjes die aan de gradientlijn hangen. */
.kerst-lichtjes {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    z-index: 41;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.kerst-lichtjes span {
    width: 8px;
    height: 11px;
    border-radius: 50% 50% 56% 56%;
    animation: kerst-twinkel 2.4s ease-in-out infinite;
}

.kerst-lichtjes span:nth-child(4n+1) { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.9); }
.kerst-lichtjes span:nth-child(4n+2) { background: #fcd34d; box-shadow: 0 0 8px rgba(252, 211, 77, 0.9); animation-delay: 0.6s; }
.kerst-lichtjes span:nth-child(4n+3) { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.9); animation-delay: 1.2s; }
.kerst-lichtjes span:nth-child(4n+4) { background: #60a5fa; box-shadow: 0 0 8px rgba(96, 165, 250, 0.9); animation-delay: 1.8s; }

@keyframes kerst-twinkel {
    0%, 100% {
        opacity: 1;
        filter: brightness(1.15);
    }

    50% {
        opacity: 0.45;
        filter: brightness(0.8);
    }
}

/* Kersthero: dennengroen met gouden glans en een sneeuwrand onderaan. */
.theme-kerst .hero-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #0b3d2e 0%, #14532d 55%, #175e38 100%);
}

.theme-kerst .hero-panel::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -85px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 211, 77, 0.55) 0 20%, rgba(252, 211, 77, 0.18) 45%, transparent 70%);
    animation: hw-maan 6s ease-in-out infinite;
    pointer-events: none;
}

.theme-kerst .hero-panel::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -34px;
    height: 70px;
    background: radial-gradient(45% 100% at 20% 100%, rgba(255, 255, 255, 0.85), transparent 70%),
                radial-gradient(55% 100% at 60% 100%, rgba(255, 255, 255, 0.75), transparent 70%),
                radial-gradient(45% 100% at 95% 100%, rgba(255, 255, 255, 0.85), transparent 70%);
    filter: blur(5px);
    pointer-events: none;
}

.theme-kerst .hero-panel .page-title {
    color: #f8fafc;
    text-shadow: 0 2px 14px rgba(252, 211, 77, 0.3);
}

.theme-kerst .hero-panel .page-subtitle {
    color: #cde9d8;
}

.theme-kerst .hero-panel .page-kicker {
    color: #fcd34d;
}

.theme-kerst .hero-panel .primary-button {
    box-shadow: 0 0 22px rgba(220, 38, 38, 0.5);
    animation: kerst-gloed 3.2s ease-in-out infinite;
}

@keyframes kerst-gloed {
    0%, 100% {
        box-shadow: 0 0 14px rgba(220, 38, 38, 0.35);
    }

    50% {
        box-shadow: 0 0 26px rgba(252, 211, 77, 0.6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kerst-bal-hang,
    .kerst-vlok,
    .kerst-slee,
    .kerst-man,
    .kerst-lichtjes span,
    .theme-halloween .hero-panel::before,
    .theme-kerst .hero-panel::before,
    .theme-halloween .hero-panel .primary-button,
    .theme-kerst .hero-panel .primary-button,
    .theme-halloween .top-nav::before,
    .theme-kerst .top-nav::before {
        animation: none;
    }
}

/* Ploegstatistiek-kaarten: kleurchips, verhoudingsbalkjes en de donut. */
.team-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 12px;
}

.team-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.team-chip-win {
    background: #dcfce7;
    color: #166534;
}

.team-chip-draw {
    background: #fef9c3;
    color: #854d0e;
}

.team-chip-loss {
    background: #fee2e2;
    color: #991b1b;
}

.team-stat-bar {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    margin-top: 10px;
}

.team-stat-bar > div {
    transform-origin: left;
    animation: team-bar-grow 0.9s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.team-bar-win {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.team-bar-draw {
    background: linear-gradient(90deg, #fde047, #eab308);
}

.team-bar-loss {
    background: linear-gradient(90deg, #f87171, #dc2626);
}

@keyframes team-bar-grow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.team-donut-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.team-donut {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
}

.team-donut-fill {
    animation: team-donut-sweep 1.1s ease-out both;
}

@keyframes team-donut-sweep {
    from {
        stroke-dasharray: 0 213.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-stat-bar > div,
    .team-donut-fill {
        animation: none;
    }
}

/* "Installeer de app"-knop onderaan het mobiele menu. */
.install-app-button {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: var(--mvp-primary, #155eef);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.install-app-hint {
    margin: 10px 2px 0;
    color: var(--mvp-muted, #64748b);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* Grote score-tikknoppen op het kapiteinsblad: goed rakbaar op een gsm. */
.score-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.score-btn {
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid var(--mvp-border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.score-btn span {
    display: block;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--mvp-muted, #64748b);
}

.score-btn:active {
    transform: scale(0.97);
}

.score-btn-active {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}

.score-btn-active span {
    color: #15803d;
}

.score-clear {
    border: none;
    background: none;
    color: var(--mvp-muted, #64748b);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px;
    text-decoration: underline;
}

/* Meervoudige competitiefilter: dropdown met aanvinkbare opties. */
.multi-filter {
    position: relative;
}

.multi-filter-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: #fff;
}

.multi-filter-caret {
    color: var(--mvp-muted, #64748b);
}

.multi-filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--mvp-border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    padding: 8px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.multi-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.multi-filter-option:hover {
    background: var(--mvp-surface-soft, #f1f5f9);
}

.multi-filter-option input {
    width: 17px;
    height: 17px;
    accent-color: var(--mvp-primary, #155eef);
}

.multi-filter-clear {
    display: block;
    width: 100%;
    border: none;
    background: var(--mvp-surface-soft, #f1f5f9);
    color: var(--mvp-primary, #155eef);
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 8px;
    margin-top: 6px;
    cursor: pointer;
}

.multi-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
}

/* Sterkte-indicator in de spelerslijst. */
.strength-cell {
    white-space: nowrap;
    font-weight: 800;
}

.strength-up {
    color: #16a34a;
}

.strength-down {
    color: #dc2626;
}

.strength-flat {
    color: var(--mvp-muted, #64748b);
}

/* "Vandaag"-pil: rustig blauw in plaats van alarm-rood. */
.badge-today {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
}

/* Competitienaam onder de ploegen in het "vandaag"-lijstje. */
.mini-match-comp {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    color: var(--mvp-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* 🎂 Verjaardagsregel op de homepage. */
.birthday-line {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.92rem;
}

/* 🔥 Match van de week op de homepage. */
.motw-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #fbbf24;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.motw-card .badge {
    align-self: flex-start;
}

.motw-teams {
    font-size: 1.15rem;
}

/* 🔮 Winstkans-balk op het wedstrijdblad. */
.chance-labels {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 6px;
    gap: 10px;
}

.chance-bar {
    display: flex;
    height: 30px;
    border-radius: 999px;
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

.chance-bar > div {
    display: flex;
    align-items: center;
    padding: 0 12px;
    min-width: 52px;
    transform-origin: left;
    animation: team-bar-grow 0.9s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.chance-home {
    background: linear-gradient(90deg, #155eef, #1148b8);
}

.chance-away {
    background: linear-gradient(90deg, #64748b, #475569);
    justify-content: flex-end;
}

/* 🖨️ QR-poster per ploeg (A4-printbaar). */
.poster-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.team-poster {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
}

.poster-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin: 6px 0 4px;
}

.poster-sub {
    color: var(--mvp-muted, #64748b);
    font-size: 1.05rem;
}

.poster-qr {
    width: min(420px, 80%);
    margin: 22px auto 10px;
    display: block;
}

.poster-scan {
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
}

.poster-url {
    color: var(--mvp-primary, #155eef);
    font-weight: 700;
    margin: 4px 0 18px;
}

.poster-foot {
    color: var(--mvp-muted, #64748b);
    border-top: 1px solid var(--mvp-border, #e2e8f0);
    padding-top: 14px;
    margin: 0;
}

@media print {
    .top-nav, .back-button, .poster-toolbar, .mobile-menu-overlay {
        display: none !important;
    }

    .team-poster {
        box-shadow: none;
        max-width: none;
    }
}

/* Footer: heel klein en onopvallend, onderaan elke pagina. */
.site-footer {
    text-align: center;
    padding: 26px 16px 18px;
    color: #94a3b8;
    font-size: 0.72rem;
}

@media print {
    .site-footer {
        display: none !important;
    }
}

/* 404-pagina: vriendelijk en met duidelijke uitwegen. */
.notfound-card {
    max-width: 560px;
    margin: 8vh auto 0;
    text-align: center;
    padding: 40px 28px;
}

.notfound-emoji {
    font-size: 3rem;
    margin-bottom: 8px;
}

.notfound-actions {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Klein statistiekknopje naast een spelersnaam in de klassementen. */
.player-stats-link {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--mvp-surface-soft, #f1f5f9);
    color: var(--mvp-primary, #155eef);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.player-stats-link:hover {
    background: #e2e8f0;
    text-decoration: none;
}

/* Podiums op de recordpagina: 2-1-3-opstelling met opkomende tredes. */
.podium {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
}

.podium-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 0;
}

/* De tredes staan bovenaan op één gedeelde grondlijn; de namen eronder. */
.podium-steparea {
    height: 84px;
    display: flex;
    align-items: flex-end;
}

.podium-step {
    width: 100%;
}

.podium-names {
    margin-top: 6px;
}

.podium-name {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.podium-sub {
    display: block;
    color: var(--mvp-muted, #64748b);
    font-weight: 400;
    font-size: 0.72rem;
}

.podium-more {
    display: inline-block;
    border: none;
    background: var(--mvp-surface-soft, #f1f5f9);
    border-radius: 999px;
    padding: 2px 10px;
    color: var(--mvp-primary, #155eef);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.podium-more:hover {
    background: #e2e8f0;
}

.podium-step {
    border-radius: 10px 10px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
    color: #fff;
    transform-origin: bottom;
    animation: podium-rise 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.podium-p1 .podium-step {
    height: 84px;
    background: linear-gradient(180deg, #fbd34d, #d99b12);
    animation-delay: 0.35s;
}

.podium-p2 .podium-step {
    height: 62px;
    background: linear-gradient(180deg, #d8dee6, #9aa5b1);
    animation-delay: 0.15s;
}

.podium-p3 .podium-step {
    height: 46px;
    background: linear-gradient(180deg, #e7a86f, #bd7538);
    animation-delay: 0.55s;
}

.podium-lege .podium-step {
    opacity: 0.25;
}

.podium-medal {
    font-size: 1.3rem;
    line-height: 1.2;
}

.podium-value {
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1.15;
    padding: 0 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@keyframes podium-rise {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* Subtiele beweging: kaarten liften zachtjes op bij hover. */
.record-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.record-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.record-card-gold {
    position: relative;
    overflow: hidden;
}

.record-card-gold::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -80%;
    width: 50%;
    height: 220%;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: record-shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes record-shine {
    0%, 60% {
        left: -80%;
    }

    100% {
        left: 160%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .podium-step,
    .record-card,
    .record-card-gold::after {
        animation: none;
        transition: none;
    }
}

/* Statusregel van een competitie: rustige pillen i.p.v. een rode badge. */
.competition-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.status-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--mvp-surface-soft, #f1f5f9);
    color: var(--mvp-muted, #64748b);
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pill-active {
    background: #dcfce7;
    color: #166534;
}

/* Tabbladen van de competitiepagina: Kalender · Stand · Individueel · Duo. */
.competition-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
}

.competition-tab {
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--mvp-muted, #64748b);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

    .competition-tab:hover {
        color: var(--mvp-primary, #155eef);
    }

    .competition-tab.active {
        background: var(--mvp-primary, #155eef);
        color: #fff;
    }

/* Flyout-submenu: competitie op niveau 1, de vier pagina's klappen bij
   hover uit naar rechts. */
.dropdown-flyout {
    position: relative;
}

    .dropdown-flyout > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

.flyout-arrow {
    color: var(--mvp-muted, #64748b);
    font-size: 0.8rem;
}

.dropdown-flyout-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: -6px;
    min-width: 160px;
    padding: 8px;
    border-radius: 16px;
    background: var(--mvp-surface, #fff);
    box-shadow: var(--mvp-shadow, 0 10px 24px rgba(15, 23, 42, 0.1));
    border: 1px solid var(--mvp-border, #e2e8f0);
}

.dropdown-flyout:hover .dropdown-flyout-menu {
    display: block;
}

.mobile-menu-link.mobile-menu-subsub {
    padding-left: 52px;
    font-size: 0.92rem;
    color: var(--mvp-muted, #64748b);
}

/* Statistiek-widgets op de admin-statistiekenpagina. */
.stat-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stat-widget {
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.stat-widget-accent {
    background: linear-gradient(135deg, var(--mvp-primary, #155eef), #4f8bff);
    color: #fff;
}

    .stat-widget-accent .stat-widget-label {
        color: rgba(255, 255, 255, 0.85);
    }

.stat-widget-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 6px;
}

.stat-widget-value {
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.15;
}

.stat-widget-label {
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mvp-muted, #64748b);
}

/* Rood stipje bij "Live" wanneer er nu een wedstrijd bezig is. */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    margin-left: 4px;
    vertical-align: middle;
    animation: live-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes live-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Info-icoontje en uitklapbaar adres bij het thuislokaal (mobiel). */
.venue-info {
    font-size: 0.8em;
    color: var(--mvp-primary, #155eef);
    margin-left: 2px;
}

.venue-address {
    margin-top: 4px;
    padding: 6px 8px;
    background: var(--mvp-surface-soft, #f1f5f9);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--mvp-muted, #64748b);
    max-width: 260px;
    white-space: normal;
}

/* Scorebord op het wedstrijdblad: stand groot en centraal. */
.match-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 6px 0 4px;
}

.match-scoreboard-team {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
}

.match-scoreboard-away {
    text-align: left;
}

.match-scoreboard-score {
    background: var(--mvp-primary, #1d4ed8);
    color: #fff;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    padding: 12px 20px;
    border-radius: 14px;
    white-space: nowrap;
}

.match-scoreboard-dash {
    opacity: 0.65;
    margin: 0 10px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .match-scoreboard-team {
        font-size: 1.05rem;
    }

    .match-scoreboard-score {
        font-size: 1.6rem;
        padding: 10px 14px;
    }

    .match-scoreboard-dash {
        margin: 0 6px;
    }
}

/* Wachtwoordveld met oog-knop: toon/verberg wat je typt. */
.password-wrap {
    position: relative;
}

    .password-wrap .form-control-mvp {
        padding-right: 44px;
        width: 100%;
    }

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 6px;
}

/* Kalender-export: ploegkalender meenemen naar je eigen agenda-app. */
.calendar-export {
    margin-bottom: 14px;
    padding: 14px 18px;
}

.calendar-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.compact-filter {
    min-width: 240px;
    box-shadow: none;
}

.show-inactive-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    box-shadow: var(--mvp-shadow);
    font-weight: 700;
    cursor: pointer;
}

    .show-inactive-toggle input {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

/* Tijdelijk uitgeschakelde actie (met tooltip via title) */
.link-button-disabled {
    display: inline-block;
    margin-top: 12px;
    color: var(--mvp-muted);
    font-weight: 700;
    opacity: 0.55;
    cursor: not-allowed;
    text-decoration: line-through;
}

.info-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: var(--mvp-surface-soft);
    border: 1px solid var(--mvp-border);
}

.danger-solid {
    background: var(--mvp-danger);
    color: white;
}

    .danger-solid:hover {
        background: #b91c1c;
        color: white;
    }

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    width: min(480px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--mvp-surface);
    border-radius: var(--mvp-radius);
    padding: 24px;
    box-shadow: var(--mvp-shadow);
}

.modal-box-wide {
    width: min(820px, 100%);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-close {
    border: 0;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    color: var(--mvp-muted);
}

    .modal-close:hover {
        color: var(--mvp-text);
    }

/* Knoppenrijen: nooit afsnijden, altijd wrappen */
.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.small-button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--mvp-surface-soft);
    color: var(--mvp-text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

    .small-button:hover {
        background: #dde4ef;
    }

.danger-button {
    background: #fee2e2;
    color: var(--mvp-danger);
}

.small-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

    .small-button:disabled:hover {
        background: #fee2e2;
    }

    .danger-button:hover {
        background: #fecaca;
    }

/* Intern reglement (publiek) */
.rule-card {
    margin-top: 12px;
    display: grid;
    gap: 14px;
}

.rule-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    line-height: 1.55;
}

.rule-subitem {
    margin-top: 10px;
    margin-left: 4px;
}

.rule-nr {
    color: var(--mvp-primary);
    font-weight: 800;
    white-space: nowrap;
}

.board-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 28px 20px;
}

/* Biljart-lader: keu stoot drie ballen aan (puur CSS, geen overhead) */
.biljart-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 70px 0;
    /* Pas zichtbaar na 0,35 s: bij een snelle laadbeurt zie je hem nooit. */
    opacity: 0;
    animation: loaderIn 0.25s ease-out 0.35s forwards;
}

@keyframes loaderIn {
    to { opacity: 1; }
}

/* Intro op de homepage: meteen zichtbaar, zonder verschijnvertraging. */
.biljart-loader-instant {
    opacity: 1;
    animation: none;
}

.biljart-balls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biljart-keu {
    width: 78px;
    height: 7px;
    border-radius: 4px;
    background: linear-gradient(90deg, #5b3a1e, #a9743f 60%, #e5c49b);
    animation: keuStoot 1.3s ease-in-out infinite;
}

.biljart-bal {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: inset -3px -3px 5px rgba(0, 0, 0, 0.25), inset 3px 3px 5px rgba(255, 255, 255, 0.45);
}

.bal-wit  { background: #f8fafc; border: 1px solid #cbd5e1; animation: balRol 1.3s ease-in-out infinite; }
.bal-rood { background: #dc2626; animation: balRol 1.3s ease-in-out 0.15s infinite; }

@keyframes keuStoot {
    0%, 100% { transform: translateX(-10px); }
    40%      { transform: translateX(5px); }
}

@keyframes balRol {
    0%, 20%, 100% { transform: translateX(0); }
    55%           { transform: translateX(12px); }
}

/* Sponsorpagina */
.sponsor-main-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 16px;
}

.sponsor-main-logo {
    max-height: 90px;
    max-width: 80%;
    object-fit: contain;
}

.sponsor-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 8px 14px;
    border: 1px dashed var(--mvp-border);
    border-radius: 10px;
    font-weight: 700;
    color: var(--mvp-muted);
    text-align: center;
}

.sponsor-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.sponsor-premium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

    .sponsor-premium-card img {
        max-height: 70px;
        max-width: 100%;
        object-fit: contain;
    }

    .sponsor-premium-card:hover {
        border-color: var(--mvp-primary);
    }

/* Reacties onder nieuwsberichten */
.news-comments {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--mvp-border);
}

.news-comments-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.news-comment {
    background: var(--mvp-surface-soft);
    border: 1px solid var(--mvp-border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.news-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--mvp-muted);
    margin-bottom: 6px;
}

.news-comment-hidden {
    opacity: 0.6;
    border-style: dashed;
    border-color: var(--mvp-danger);
}

.news-comment-text {
    font-size: 0.95rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

    .news-comment-text a {
        color: var(--mvp-primary);
        text-decoration: underline;
    }

/* Doorklikbare nieuwskaarten op de homepagina */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .news-card-link:hover .news-card {
        border-color: var(--mvp-primary);
    }

.news-read-more {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--mvp-primary);
    font-size: 0.9rem;
}

/* Gemarkeerd bericht na doorklik vanaf de homepagina */
.news-highlight {
    border: 2px solid var(--mvp-primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

/* Bevestigingen op het wedstrijdblad van de kapitein */
.confirmation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.confirmation-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--mvp-border);
    border-radius: 12px;
    background: var(--mvp-surface-soft);
}

.confirmation-done {
    border-color: #86efac;
    background: #f0fdf4;
}

.confirmation-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    flex-shrink: 0;
}

.confirmation-done .confirmation-icon {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.confirmation-label {
    flex: 1;
    font-weight: 600;
}

.confirmation-status {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mvp-muted);
}

.confirmation-done .confirmation-status {
    color: #16a34a;
}

/* Flash-meldingen: centrale pop-up voor fout/succes */
.flash-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(15, 23, 42, 0.25);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 14vh 16px 0;
}

.flash-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 480px;
    width: 100%;
    background: var(--mvp-surface);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
    font-weight: 600;
    animation: toastIn 0.2s ease-out;
}

.flash-error {
    border: 2px solid var(--mvp-danger);
    color: var(--mvp-danger);
}

.flash-success {
    border: 2px solid #16a34a;
    color: #166534;
}

.flash-icon {
    font-size: 1.2rem;
    line-height: 1.3;
}

.flash-text {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0 2px;
}

/* Live-toasts op de homepagina */
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-primary);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    font-size: 0.9rem;
    font-weight: 600;
    animation: toastIn 0.25s ease-out;
}

.toast-text {
    flex: 1;
}

.toast-close {
    border: none;
    background: none;
    color: var(--mvp-muted, #64748b);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    margin: -2px -4px 0 0;
    border-radius: 6px;
}

.toast-close:hover {
    background: var(--mvp-surface-soft, #f1f5f9);
    color: #0f172a;
}

@keyframes toastIn {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Terug-knop bovenaan elke pagina */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--mvp-primary);
    cursor: pointer;
    margin-bottom: 14px;
}

    .back-button:hover {
        border-color: var(--mvp-primary);
    }

/* Thuislokaal in de kalender: compact, volledig adres bij hover */
.venue-hover {
    display: inline-block;
    font-size: 0.8em;
    color: #8a8f98;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: help;
}

/* Tussenheader per speelweek in de competitiekalender */
.week-header-row {
    cursor: pointer;
}

.week-toggle {
    display: inline-block;
    width: 16px;
}

.week-header-row td {
    /* Bewust anders dan de tabelheader: lichtblauwe band. */
    background: #dbe7ff;
    color: var(--mvp-primary-dark, #1d4ed8);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-top: 2px solid #b6ccff;
}

/* Klikbare wedstrijdrij in de kalender */
.match-row {
    cursor: pointer;
}

    .match-row:hover td {
        background: #eff6ff;
    }

/* Publiek wedstrijdblad */
.match-line-winner {
    color: var(--mvp-primary);
    font-weight: 700;
}

.match-line-belle td {
    background: #fef9c3;
}

.cup-match-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .cup-match-link:hover .cup-match {
        border-color: var(--mvp-primary);
    }

/* Beker: ploegkeuze in admin */
.cup-team-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 14px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--mvp-border);
    border-radius: 10px;
    padding: 10px;
}

.cup-team-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.cup-preview-list {
    margin: 0 0 6px;
    padding-left: 18px;
    font-size: 0.9rem;
}

    .cup-preview-list li {
        margin-bottom: 2px;
    }

/* Beker: manuele samenstelling volgende ronde */
.cup-pairing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

    .cup-pairing-row select {
        flex: 1;
        min-width: 180px;
    }

    .cup-pairing-row input[type=date] {
        width: 160px;
    }

/* Beker: rondeplanning in admin */
.cup-round-planning {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px 14px;
    margin-bottom: 8px;
}

/* Beker: horizontale knock-out tree, finale in het midden */
.cup-bracket-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
}

.cup-bracket {
    display: flex;
    gap: 18px;
    align-items: stretch;
    min-width: max-content;
}

.cup-round-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 14px;
    min-width: 220px;
}

.cup-round-title {
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mvp-primary);
    border-radius: 999px;
    padding: 5px 8px;
}

/* De twee helften een eigen tint zodat de structuur meteen leesbaar is. */
.cup-col-left .cup-round-title {
    background: #eff6ff;
    color: #1d4ed8;
}

.cup-col-right .cup-round-title {
    background: #ecfdf5;
    color: #047857;
}

.cup-final-col .cup-round-title {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.cup-col-side {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

/* Legende boven het schema. */
.cup-halves-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 2px;
}

.cup-half-pill {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* De pillen zijn ook scrollknoppen: duidelijke knop-look met schaduw. */
button.cup-nav-btn {
    border: none;
    cursor: pointer;
    min-height: 38px;
    padding: 6px 16px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s ease;
}

button.cup-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

button.cup-nav-btn:active {
    transform: scale(0.96);
}

/* De kant waar je al staat: gedimd, duidelijk geen actieve knop. */
button.cup-nav-btn.cup-nav-dim {
    opacity: 0.35;
    box-shadow: none;
    transform: none;
    cursor: default;
}

.cup-half-left {
    background: #eff6ff;
    color: #1d4ed8;
}

.cup-half-right {
    background: #ecfdf5;
    color: #047857;
}

.cup-half-mid {
    flex: 1;
    text-align: center;
    color: var(--mvp-muted, #64748b);
    font-size: 0.82rem;
    min-width: 200px;
}

/* Veeg-hint enkel op kleine schermen, waar het schema breder is dan het scherm. */
.cup-swipe-hint {
    display: none;
    text-align: center;
}

@media (max-width: 900px) {
    .cup-swipe-hint {
        display: block;
    }
}

.cup-match {
    background: var(--mvp-surface);
    border: 1px solid var(--mvp-border);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.cup-final-col .cup-match {
    border-color: var(--mvp-primary);
    border-width: 2px;
}

.cup-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
}

    .cup-team strong {
        color: var(--mvp-primary);
    }

.cup-team-winner span {
    color: var(--mvp-primary);
}

.cup-vs {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0;
}

    .cup-vs em {
        font-style: normal;
        color: #d97706;
    }

.cup-match-tbd {
    opacity: 0.7;
    border-style: dashed;
}

    .cup-match-tbd .cup-team-known span {
        color: var(--mvp-primary);
    }

.cup-match-bye .cup-vs {
    margin: 2px 0 0;
}

.hero-content {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

    .hero-content > div:first-child {
        min-width: 0;
        flex: 1;
    }

.hero-image {
    max-width: 240px;
    max-height: 240px;
    border-radius: var(--mvp-radius);
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-image {
        max-width: 100%;
        margin-top: 12px;
    }
}

.board-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--mvp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
}

.board-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mvp-primary);
}

.rule-card mark,
.quarter-header mark {
    background: #fde68a;
    border-radius: 3px;
    padding: 0 2px;
}

/* Reglement-beheer (admin) */
.rule-admin-section {
    margin-top: 14px;
    padding: 14px 16px;
}

.rule-admin-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-admin-toggle {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 4px 0;
}

.rule-admin-items {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.rule-admin-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--mvp-surface-soft);
}

.rule-admin-sub {
    margin-left: 34px;
    background: transparent;
    border: 1px dashed var(--mvp-border);
}

.rule-admin-text {
    flex: 1;
    line-height: 1.4;
}

.drag-handle {
    cursor: grab;
    color: var(--mvp-muted);
    font-size: 1.1rem;
    user-select: none;
    padding: 0 2px;
}

.rule-admin-dropzone {
    margin-top: 10px;
    padding: 10px;
    border: 2px dashed var(--mvp-border);
    border-radius: 12px;
    text-align: center;
    color: var(--mvp-muted);
    font-size: 0.85rem;
}

.drag-over {
    outline: 2px solid var(--mvp-primary);
    outline-offset: 2px;
}

/* Bediening in een tabelcel onder elkaar i.p.v. naast elkaar, zodat de
   tabel smal blijft en niets afgekapt wordt. */
.cell-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

    .cell-stack .table-date-input {
        width: 100%;
        max-width: 160px;
    }

    .cell-stack .small-button {
        white-space: normal;
        text-align: left;
    }

/* Handmatig aangepaste wedstrijddatum of -uur: duidelijk afwijkende kleur */
.match-manual {
    color: #c2410c;
    font-weight: 800;
}

.match-time-auto {
    font-size: 0.8em;
    color: #8a8f98;
}

.table-date-input {
    border: 1px solid var(--mvp-border);
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-size: 0.85rem;
    background: white;
    color: var(--mvp-text);
    max-width: 150px;
}

.empty-state {
    padding: 20px 0;
    color: var(--mvp-muted);
}

.admin-secondary-action {
    margin-top: 10px;
}

@media (max-width: 850px) {
    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .section-heading .filter-card,
    .compact-filter,
    .filter-card {
        width: 100%;
        min-width: 0;
    }
}