/* ===============================================
   VVS ROTSELAAR – GLOBAL STYLESHEET  v2
   Refined Athletic  ·  Blauw-wit huisstijl
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ─────────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────────── */
:root {
    /* Brand */
    --primary-blue:  #0047AB;
    --dark-blue:     #003380;
    --light-blue:    #4A90E2;
    --accent-blue:   #00A3E0;

    /* Header (always dark – independent of page theme) */
    --header-bg:     #0B1D3A;
    --header-border: rgba(255,255,255,0.08);
    --header-text:   #FFFFFF;
    --header-muted:  rgba(255,255,255,0.62);
    --header-hover:  rgba(255,255,255,0.09);
    --header-active: rgba(255,255,255,0.14);

    /* Page */
    --white:         #FFFFFF;
    --off-white:     #F4F6FA;
    --text-dark:     #131B2E;
    --text-gray:     #5A6478;
    --border-color:  #DDE1EB;
    --card-bg:       #FFFFFF;

    /* Status */
    --success: #1DB954;
    --warning: #F59E0B;
    --danger:  #E53E3E;

    /* Shadows */
    --shadow:    rgba(11, 29, 58, 0.08);
    --shadow-lg: rgba(11, 29, 58, 0.18);

    /* Radius */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; height: auto; }

/* ─────────────────────────────────────────────
   HEADER & NAVIGATION
───────────────────────────────────────────── */

.main-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}

.header-container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.logo-section { display: flex; align-items: center; }

.nav-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.team-logo {
    width: 46px; height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
    transition: transform 0.22s ease;
}
.team-logo:hover { transform: scale(1.07); }

.title-section h1 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--header-text);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-align: center;
    text-transform: uppercase;
}
.title-section h1 a { color: inherit; }
.title-section h1 a:hover { opacity: 0.85; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.hamburger:hover { background: var(--header-hover); }

.hamburger span {
    display: block;
    width: 26px; height: 2.5px;
    background: var(--header-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* Nav links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
    justify-content: flex-end;
}

.nav-menu li a {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--header-muted);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color 0.18s ease, background 0.18s ease;
    display: block;
    white-space: nowrap;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--header-text);
    background: var(--header-hover);
}

.nav-menu li a.active {
    color: var(--header-text);
    background: var(--header-active);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 55%; height: 2px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* Mobile nav — hamburger shows below 900px */
@media (max-width: 900px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .team-logo { width: 40px; height: 40px; }
    .title-section h1 { font-size: 1.3rem; letter-spacing: 1.5px; }

    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 68px; right: -100%;
        width: min(300px, 80vw);
        height: calc(100vh - 68px);
        background: var(--header-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0.75rem 0.6rem 2rem;
        gap: 0;
        box-shadow: -8px 0 40px rgba(0,0,0,0.5);
        transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
        border-left: 1px solid var(--header-border);
        z-index: 1001;
        overscroll-behavior: contain;
    }

    .nav-menu.active { right: 0; }

    .nav-menu > li {
        width: 100%;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .nav-menu li a {
        padding: 0.8rem 1rem;
        font-size: 1.05rem;
        color: var(--header-muted);
        white-space: normal;
        width: 100%;
        display: block;
    }
    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: var(--header-text);
        background: var(--header-hover);
    }
    .nav-menu li a.active::after { display: none; }
}

/* ─────────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────────── */

.contact-section {
    background: var(--white);
    padding: 3.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 44px; height: 44px;
    color: var(--primary-blue);
    flex-shrink: 0;
    background: rgba(0,71,171,0.08);
    padding: 10px;
    border-radius: var(--radius);
}

.contact-text h3 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.contact-text p { color: var(--text-gray); font-size: 0.95rem; }
.contact-text a { color: var(--primary-blue); font-weight: 600; transition: color 0.2s ease; }
.contact-text a:hover { color: var(--dark-blue); text-decoration: underline; }

@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─────────────────────────────────────────────
   TEAMS / EVENEMENTEN DROPDOWN
───────────────────────────────────────────── */

.nav-dropdown { position: relative; }

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--header-muted);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
    color: var(--header-text);
    background: var(--header-hover);
}

.dropdown-chevron { transition: transform 0.22s ease; flex-shrink: 0; stroke: currentColor; }
.nav-dropdown-btn[aria-expanded="true"] .dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    /* Dark — matches the header */
    background: #0F2040;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
    list-style: none;
    min-width: 172px;
    padding: 0.35rem;
    z-index: 1100;
    animation: dropdown-in 0.16s ease;
}

@keyframes dropdown-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-menu.open { display: block; }

.nav-dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: rgba(255,255,255,0.82);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown-menu li a:hover {
    background: rgba(255,255,255,0.10);
    color: var(--white);
}
.nav-dropdown-menu li a.active {
    background: var(--primary-blue);
    color: var(--white);
}
.nav-dropdown-menu li a::after { display: none !important; }

@media (max-width: 900px) {
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
        flex-shrink: 0;
    }

    .nav-dropdown-btn {
        padding: 0.8rem 1rem;
        font-size: 1.05rem;
        width: 100%;
        justify-content: space-between;
        border-radius: var(--radius-sm);
        color: var(--header-muted);
        background: transparent;
        font-family: 'Barlow Condensed', sans-serif;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        font-weight: 600;
        display: flex;
        align-items: center;
    }
    .nav-dropdown-btn:hover,
    .nav-dropdown-btn.active { color: var(--header-text); background: var(--header-hover); }

    /* On mobile: submenus are dark, matching the sidebar */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        /* Keep display:none; JS toggles .open which switches to display:block */
        /* Use visibility + max-height for smooth animation without bleed-through */
        display: block;
        background: rgba(255,255,255,0.05);
        animation: none;
        border-left: 2px solid var(--accent-blue);
        margin-left: 0.75rem;
        overflow: hidden;
        /* Collapsed: zero height, zero margin, invisible */
        max-height: 0;
        visibility: hidden;
        margin-top: 0;
        margin-bottom: 0;
        transition: max-height 0.28s ease, visibility 0s linear 0.28s,
                    margin-top 0.28s ease, margin-bottom 0.28s ease;
    }
    .nav-dropdown-menu.open {
        max-height: 260px;
        visibility: visible;
        margin-top: 0.1rem;
        margin-bottom: 0.1rem;
        /* Delay on visibility removed when opening */
        transition: max-height 0.28s ease, visibility 0s linear 0s,
                    margin-top 0.28s ease, margin-bottom 0.28s ease;
    }

    .nav-dropdown-menu li a {
        color: rgba(255,255,255,0.72);
        background: transparent;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        border-radius: 0;
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        display: block;
        width: 100%;
    }
    .nav-dropdown-menu li a:hover  { background: var(--header-hover); color: var(--white); }
    .nav-dropdown-menu li a.active { color: var(--white); background: var(--header-active); }
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */

.main-footer {
    background: var(--header-bg);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    border-top: 1px solid var(--header-border);
}

.main-footer p { font-size: 0.85rem; color: var(--header-muted); }
.main-footer a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.main-footer a:hover { color: rgba(255,255,255,0.85); }

.theme-toggle-wrap {
    position: absolute; right: 1.5rem; top: 50%;
    transform: translateY(-50%);
    display: flex; align-items: center; gap: 0.5rem;
}
@media (max-width: 480px) {
    .theme-toggle-wrap { right: 0.75rem; }
    .theme-toggle-label { display: none; }
}

.theme-toggle-label { font-size: 0.8rem; opacity: 0.6; user-select: none; color: var(--white); }
.theme-toggle { position: relative; width: 46px; height: 24px; flex-shrink: 0; }
.theme-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.theme-toggle-slider {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.18);
    border-radius: 24px; cursor: pointer;
    transition: background 0.3s;
    display: flex; align-items: center; padding: 3px;
}
.theme-toggle input:checked + .theme-toggle-slider { background: rgba(255,255,255,0.38); }

.theme-toggle-thumb {
    width: 18px; height: 18px;
    background: white; border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; line-height: 1;
}
.theme-toggle input:checked + .theme-toggle-slider .theme-toggle-thumb { transform: translateX(22px); }

/* ─────────────────────────────────────────────
   MODAL
───────────────────────────────────────────── */

.modal {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 29, 58, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 2000; padding: 1rem;
}
.modal.active { display: flex; }

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 100%; max-width: 500px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(11,29,58,0.3), 0 0 0 1px rgba(0,0,0,0.06);
    position: relative;
    border-top: 3px solid var(--primary-blue);
}
.modal-content.large { max-width: 600px; }

.modal-content h3 { color: var(--primary-blue); font-size: 1.5rem; margin-bottom: 1.5rem; }
.modal-body { margin-bottom: 1.5rem; }
.modal-body input {
    width: 100%; padding: 0.9rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem; margin-bottom: 1rem;
    transition: border-color 0.2s; font-family: inherit; background: var(--white);
}
.modal-body input:focus { outline: none; border-color: var(--primary-blue); }

.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.modal-btn {
    flex: 1; padding: 0.9rem;
    font-size: 0.95rem; font-weight: 700;
    border-radius: var(--radius); transition: all 0.2s ease;
    font-family: inherit; letter-spacing: 0.03em;
}
.modal-btn.cancel {
    background: var(--off-white); color: var(--text-gray);
    border: 1.5px solid var(--border-color);
}
.modal-btn.cancel:hover { background: var(--border-color); }
.modal-btn.confirm { background: var(--primary-blue); color: var(--white); }
.modal-btn.confirm:hover { background: var(--dark-blue); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,71,171,0.3); }
.modal-btn.danger { background: var(--danger); color: var(--white); }
.modal-btn.danger:hover { filter: brightness(0.9); transform: translateY(-1px); }
.modal-btn:hover { box-shadow: 0 4px 12px var(--shadow); }

@media (max-width: 600px) { .modal-actions { flex-direction: column; } }

/* ─────────────────────────────────────────────
   FORM GROUPS
───────────────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }

.form-group label {
    font-weight: 700; color: var(--text-dark);
    font-size: 0.87rem; text-transform: uppercase; letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.97rem; font-family: inherit;
    background: var(--white); color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none; border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,71,171,0.10);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group small { font-size: 0.82rem; color: var(--text-gray); }

.password-input-wrapper { position: relative; display: flex; align-items: center; }
.password-input-wrapper input { width: 100%; padding-right: 3rem; margin-bottom: 0; }
.password-toggle {
    position: absolute; right: 0;
    background: transparent; border: none;
    padding: 0.75rem 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.2s ease;
}
.password-toggle:hover { opacity: 0.7; }
.password-toggle .eye-icon { width: 20px; height: 20px; color: var(--text-gray); transition: color 0.2s ease; }
.password-toggle:hover .eye-icon { color: var(--primary-blue); }

.error-message {
    padding: 0.85rem 1rem; background: #FFF5F5;
    color: var(--danger); border-radius: var(--radius);
    font-size: 0.9rem; border-left: 3px solid var(--danger);
}
.success-message {
    padding: 0.85rem 1rem; background: #F0FFF4;
    color: #1A6632; border-radius: var(--radius);
    font-size: 0.9rem; border-left: 3px solid var(--success);
}

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

.loading {
    display: flex; justify-content: center; align-items: center;
    padding: 3rem; min-height: 200px;
    color: var(--text-gray); font-style: italic;
}
.error-text { color: var(--danger); }

/* Spinner */
.loader {
    width: 48px; aspect-ratio: 1;
    border-radius: 50%;
    border: 6px solid var(--border-color);
    border-top-color: var(--primary-blue);
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Legacy clip-path loader keyframes (kept for compatibility) */
@keyframes l20-1 {
   0%    {clip-path:polygon(50% 50%,0 0,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%)}
   12.5% {clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 0%,100% 0%,100% 0%)}
   25%   {clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 100%,100% 100%,100% 100%)}
   50%   {clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 100%,50% 100%,0% 100%)}
   62.5% {clip-path:polygon(50% 50%,100% 0,100% 0%,100% 0%,100% 100%,50% 100%,0% 100%)}
   75%   {clip-path:polygon(50% 50%,100% 100%,100% 100%,100% 100%,100% 100%,50% 100%,0% 100%)}
   100%  {clip-path:polygon(50% 50%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,0% 100%)}
}
@keyframes l20-2 {
    0%     {transform:scaleY(1)  rotate(0deg)}
    49.99% {transform:scaleY(1)  rotate(135deg)}
    50%    {transform:scaleY(-1) rotate(0deg)}
    100%   {transform:scaleY(-1) rotate(-135deg)}
}

.icon { width: 1em; height: 1em; object-fit: contain; display: inline-block; vertical-align: middle; flex-shrink: 0; color: white; }
.icon-sm { width: 0.85em; height: 0.85em; }
.icon-lg { width: 1.25em; height: 1.25em; }

/* ─────────────────────────────────────────────
   DARK MODE
───────────────────────────────────────────── */

html.dark {
    --primary-blue:  #5B9CF6;
    --dark-blue:     #3B7DE8;
    --light-blue:    #7AB3F8;
    --accent-blue:   #38BDF8;
    --white:         #1C2136;
    --off-white:     #131929;
    --text-dark:     #E6EAF4;
    --text-gray:     #8B95B0;
    --border-color:  #283050;
    --card-bg:       #1C2136;
    --success:       #34D399;
    --warning:       #FBBF24;
    --danger:        #F87171;
    --shadow:        rgba(0, 0, 0, 0.4);
    --shadow-lg:     rgba(0, 0, 0, 0.6);
    --header-bg:     #080F1E;
}

html.dark body { background-color: var(--off-white); color: var(--text-dark); }
html.dark .main-header { background: var(--header-bg); }
html.dark .nav-menu    { background: var(--header-bg); }

html.dark .nav-dropdown-menu {
    background: #0a1628;
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}
html.dark .nav-dropdown-menu li a { color: #b8c4e0; }
html.dark .nav-dropdown-menu li a:hover,
html.dark .nav-dropdown-menu li a.active { background: var(--primary-blue); color: #fff; }
/* Mobile dark mode: submenus already dark from sidebar background */
@media (max-width: 900px) {
    html.dark .nav-dropdown-menu { background: rgba(255,255,255,0.04); }
    html.dark .nav-dropdown-menu li a { color: rgba(255,255,255,0.65); }
}

html.dark .contact-section { background: var(--white); border-color: var(--border-color); }
html.dark .contact-icon { background: rgba(91,156,246,0.10); }
html.dark .main-footer { background: #03070f; }

.team-overlay h2,
html.dark .team-title,
html.dark .availability-btn.available span,
html.dark .wl-day-header-inner,
html.dark .wl-btn.btn-sign-in,
html.dark .werklijst-hero,
html.dark .event-tag { color: #ffffff !important; }

html.dark .ranking-table          { background: var(--white); }
html.dark .ranking-table th       { background: #1a1e35; color: var(--text-dark); border-color: var(--border-color); }
html.dark .ranking-table td       { border-color: var(--border-color); color: var(--text-dark); }
html.dark .ranking-table .vvs-row { background: #244a949d; }
html.dark .ranking-table .even-row { background: #2a3050; }
html.dark .ranking-table .odd-row  { background: #232840; }
html.dark .ranking-table .even-row:hover { background: #303860; }
html.dark .ranking-table .odd-row:hover  { background: #2a3055; }

html.dark .next-match-card           { background: var(--white); }
html.dark .recent-match-card         { background: var(--white); }
html.dark .recent-match-card.result-win  { border-left-color: var(--success); }
html.dark .recent-match-card.result-loss { border-left-color: var(--danger); }
html.dark .recent-match-card.result-draw { border-left-color: var(--warning); }

html.dark .modal-content    { background: var(--white); border-top-color: var(--primary-blue); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
html.dark .modal-btn.cancel { background: #283050; color: var(--text-dark); border-color: var(--border-color); }
html.dark .av-toggle-panel  { background: var(--white); border: 1px solid var(--border-color); }

html.dark .form-group input,
html.dark .form-group textarea,
html.dark .form-group select,
html.dark .modal-body input { background: #1a2040; color: var(--text-dark); border-color: var(--border-color); }
html.dark .form-group input::placeholder,
html.dark .form-group textarea::placeholder { color: var(--text-gray); }
html.dark .form-group label { color: var(--text-dark); }

html.dark .load-more-btn { background: #252840; color: var(--text-dark); border-color: var(--border-color); }
html.dark code { background: #252840; color: var(--accent-blue); padding: 1px 5px; border-radius: 3px; }

.saldo-pos { color: #1DB954 !important; }
.saldo-neg { color: #E53E3E !important; }

html.dark .cash-input-wrapper       { background: var(--white); border-color: var(--border-color); }
html.dark .cash-input-wrapper input { background: var(--white); color: var(--text-dark); }
html.dark .euro-sign                { background: var(--off-white); color: var(--text-gray); border-color: var(--border-color); }
html.dark .wisselgeld-display       { background: var(--off-white); border-color: var(--border-color); }

/* ─────────────────────────────────────────────
   NOTIFICATION BANNERS
───────────────────────────────────────────── */

.notif-banner {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(140px);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem 1.25rem;
    box-shadow: 0 12px 40px var(--shadow-lg);
    z-index: 4000;
    max-width: 460px; width: calc(100vw - 2rem);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
    pointer-events: none;
}
.notif-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1; pointer-events: auto;
}

.notif-banner-title-row { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.35rem; }
.notif-banner-icon  { font-size: 1.2rem; flex-shrink: 0; }
.notif-banner-title { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); flex: 1; }
.notif-banner-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-gray); font-size: 1.1rem;
    padding: 2px 4px; flex-shrink: 0; line-height: 1;
    transition: color 0.2s; border-radius: var(--radius-sm);
}
.notif-banner-close:hover { color: var(--text-dark); background: var(--off-white); }
.notif-banner-text { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 0.85rem; line-height: 1.4; }
.notif-banner-matches { display: flex; flex-direction: column; gap: 0.65rem; }

.notif-match-card {
    background: var(--off-white); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 0.75rem 0.9rem;
    display: flex; flex-direction: column; gap: 0.45rem;
}
.notif-match-top { display: flex; align-items: center; gap: 0.5rem; }
.notif-urgency { font-size: 0.9rem; flex-shrink: 0; }
.notif-match-teams { font-weight: 700; font-size: 0.92rem; color: var(--text-dark); line-height: 1.25; }
.notif-match-meta { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; align-items: center; }
.notif-meta-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--text-gray); font-weight: 500; }
.notif-meta-item svg { flex-shrink: 0; opacity: 0.7; }

.notif-match-btn {
    display: inline-block; margin-top: 0.2rem;
    padding: 0.5rem 0.9rem; background: var(--primary-blue);
    color: #fff !important; font-size: 0.82rem; font-weight: 700;
    border-radius: var(--radius-sm); text-decoration: none !important;
    text-align: center; transition: background 0.2s, transform 0.1s; align-self: flex-start;
}
.notif-match-btn:hover { background: var(--dark-blue); transform: translateY(-1px); }

@media (max-width: 480px) {
    .notif-banner { padding: 1rem; }
    .notif-match-btn { align-self: stretch; text-align: center; }
    .notif-match-meta { gap: 0.4rem 0.75rem; }
}

#notifStack {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
    width: calc(100vw - 2rem); max-width: 460px; pointer-events: none;
}

#notifStack .notif-banner {
    position: static; left: auto; bottom: auto;
    width: 100%; max-width: 100%; pointer-events: auto;
    transform: translateY(20px); opacity: 0; max-height: 600px; overflow: hidden;
    margin-top: 0.65rem;
    transition:
        transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
        opacity 0.3s ease, max-height 0.35s ease,
        margin-top 0.35s ease, padding-top 0.35s ease, padding-bottom 0.35s ease;
}
#notifStack .notif-banner:first-child { margin-top: 0; }
#notifStack .notif-banner.visible { transform: translateY(0); opacity: 1; }
#notifStack .notif-banner.collapsing {
    max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0;
    opacity: 0; transform: translateY(10px); pointer-events: none;
}

.notif-custom { border-top-color: var(--notif-accent, var(--primary-blue)); }
.notif-text-center { text-align: center; }

/* ─────────────────────────────────────────────
   GLOBAL SEARCH
───────────────────────────────────────────── */

.nav-search-li { display: flex; align-items: center; }

.global-search-btn {
    background: none; border: none; cursor: pointer;
    padding: 0.4rem 0.6rem;
    color: var(--header-muted);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.global-search-btn:hover { background: var(--header-hover); color: var(--header-text); }
.global-search-btn svg { stroke: currentColor; }

.nav-search-mobile-li { display: none; }
.nav-search-mobile-btn {
    display: flex; align-items: center; gap: 0.6rem;
    width: 100%; background: none; border: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--header-muted);
    padding: 0.85rem 1rem; border-radius: var(--radius-sm); cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.nav-search-mobile-btn:hover { background: var(--header-hover); color: var(--header-text); }
.nav-search-mobile-btn svg { flex-shrink: 0; stroke: currentColor; }

@media (max-width: 900px) {
    .nav-search-li        { display: none; }
    .nav-search-mobile-li { display: block; margin-bottom: 0.15rem; }
}

.search-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(11,29,58,0.65); z-index: 5000;
    align-items: flex-start; justify-content: center;
    padding: 5rem 1rem 1rem;
    backdrop-filter: blur(6px);
}
.search-overlay.active { display: flex; }

.search-modal {
    background: var(--white); border-radius: var(--radius-lg);
    width: 100%; max-width: 620px;
    box-shadow: 0 20px 60px rgba(11,29,58,0.35);
    overflow: hidden; border-top: 3px solid var(--primary-blue);
}

.search-input-wrap {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.9rem 1rem; border-bottom: 1px solid var(--border-color);
}
.search-icon { color: var(--text-gray); flex-shrink: 0; }
.search-input { flex: 1; border: none; font-size: 1rem; font-family: inherit; color: var(--text-dark); background: none; outline: none; }
.search-close-btn {
    background: var(--off-white); border: none;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 0.85rem; font-weight: 700; color: var(--text-gray);
    cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.search-close-btn:hover { background: var(--border-color); }

.search-results { max-height: 420px; overflow-y: auto; padding: 0.5rem 0; }
.sr-status, .sr-empty { padding: 1.25rem; color: var(--text-gray); font-size: 0.9rem; }
.sr-group-label { padding: 0.4rem 1.25rem 0.2rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-gray); }
.sr-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.25rem; cursor: default; transition: background 0.12s; text-decoration: none; color: inherit; }
a.sr-item { cursor: pointer; }
.sr-item:hover { background: var(--off-white); }
.sr-icon { font-size: 1.2rem; flex-shrink: 0; }
.sr-text { flex: 1; min-width: 0; }
.sr-title { display: block; font-weight: 600; font-size: 0.92rem; color: var(--text-dark); }
.sr-sub   { display: block; font-size: 0.78rem; color: var(--text-gray); margin-top: 1px; }
.sr-arrow { color: var(--text-gray); flex-shrink: 0; font-size: 1.2rem; }
.sr-mark  { background: #FFF3CD; color: var(--text-dark); border-radius: 2px; }
html.dark .sr-mark { background: #4b3e0f; color: #f1c40f; }
.sr-live-badge {
    display: inline-block; background: var(--danger); color: #fff;
    font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px;
    margin-left: 0.4rem; vertical-align: middle; animation: pulse-live 2s infinite;
}
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }

html.dark .search-modal      { background: #1C2338; border-top-color: var(--primary-blue); }
html.dark .search-input      { color: var(--text-dark); }
html.dark .search-input-wrap { border-color: var(--border-color); }
html.dark .sr-item:hover     { background: #232b45; }
html.dark .sr-group-label    { color: var(--text-gray); }

/* ─────────────────────────────────────────────
   WEDSTRIJD DELEN
───────────────────────────────────────────── */

.share-match-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--off-white); border: 1.5px solid var(--border-color);
    border-radius: var(--radius); padding: 0.45rem 0.9rem;
    font-size: 0.85rem; font-weight: 600; color: var(--primary-blue);
    cursor: pointer; margin: 0.75rem auto 0;
    font-family: inherit; transition: background 0.15s, border-color 0.15s;
}
.share-match-btn:hover { background: #E3F2FD; border-color: var(--primary-blue); }

.share-popup {
    display: none; position: fixed; inset: 0;
    background: rgba(11,29,58,0.6); z-index: 5000;
    align-items: center; justify-content: center; padding: 1rem;
    backdrop-filter: blur(4px);
}
.share-popup.active { display: flex; }

.share-popup-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 1.75rem; width: 100%; max-width: 360px;
    box-shadow: 0 20px 60px rgba(11,29,58,0.3);
    position: relative; text-align: center;
    border-top: 3px solid var(--primary-blue);
}
.share-popup-card h4  { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.share-popup-title    { font-weight: 700; font-size: 0.95rem; color: var(--primary-blue); margin-bottom: 1.25rem; }
.share-popup-close    { position: absolute; top: 0.9rem; right: 1rem; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-gray); }
.share-popup-actions  { display: flex; flex-direction: column; gap: 0.65rem; }
.share-btn {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.7rem 1rem; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem; text-decoration: none; cursor: pointer;
    border: none; font-family: inherit; transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.twitter  { background: #000; color: #fff; }
.share-btn.copy     { background: var(--off-white); color: var(--text-dark); border: 1.5px solid var(--border-color); justify-content: center; }

html.dark .share-popup-card { background: #1C2338; }
html.dark .share-btn.copy   { background: #283050; color: var(--text-dark); }

.match-share-row { display: flex; justify-content: flex-end; padding: 0 0 0.5rem; }
.match-share-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: none; border: 1.5px solid var(--border-color);
    border-radius: var(--radius); padding: 0.4rem 0.85rem;
    font-size: 0.82rem; font-weight: 600; color: var(--primary-blue);
    cursor: pointer; font-family: inherit; transition: background 0.15s, border-color 0.15s;
}
.match-share-btn:hover { background: #E3F2FD; border-color: var(--primary-blue); }

.share-preview-card {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: #fff; border-radius: var(--radius);
    padding: 1.25rem; margin-bottom: 1rem; text-align: center;
}
.spc-club { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.85; margin-bottom: 0.75rem; }
.spc-teams { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.spc-team  { font-size: 1.05rem; font-weight: 800; flex: 1; text-align: center; }
.spc-vs    { font-size: 0.8rem; font-weight: 700; opacity: 0.7; flex-shrink: 0; background: rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 12px; }
.spc-date, .spc-loc { font-size: 0.82rem; opacity: 0.9; margin-bottom: 0.3rem; }
.spc-live  { margin-top: 0.75rem; font-size: 0.78rem; opacity: 0.85; background: rgba(255,255,255,0.12); padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); display: inline-block; }