:root {
    /* STADIUM PALETTE */
    --night-sky: #020617;
    --floodlight: #38bdf8;
    --flash-gold: #facc15;
    --turf: #10b981;
    --clay: #f97316;
    --white-line: #f8fafc;

    /* PREMIUM GLASS SURFACES */
    --glass-surf: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* SAFE AREAS */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);

    /* ENGINE COMPATIBILITY */
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.35);
    --accent-primary: #10b981;
    --accent-secondary: #38bdf8;
    --bg-panel: #020617;
    --accent-gold: #fbbf24;
    --accent-blue: #38bdf8;
    --accent-purple: #8b5cf6;
    --accent-danger: #ef4444;
}

/* ── PREMIUM SCROLLBAR ─────────────────────────────────────────────────────── */
/* Thin, dark-glass scrollbar that blends with the stadium UI.                */
/* Appears semi-transparent and becomes visible on hover.                     */

/* Webkit (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

*::-webkit-scrollbar-track {
    background: transparent !important;
}

*::-webkit-scrollbar-thumb {
    background: transparent !important;
}

*::-webkit-scrollbar-thumb:hover {
    background: transparent !important;
}

*::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* Firefox */
* {
    scrollbar-width: none !important;
}

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


/* --- GLOBAL RESET --- */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0d10;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;

    /* Native App Feel Enforcements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

option {
    background-color: #0f172a;
    color: #f8fafc;
}

/* --- APP CONTAINER --- */
.app-container {
    width: 95vw;
    max-width: 480px;
    min-height: 100dvh;
    background: radial-gradient(circle at 50% -10%, #172554 0%, var(--night-sky) 60%);
    border-radius: 30px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    margin: auto;
    padding-top: env(safe-area-inset-top);

    /* Hide initially, shown via JS after auth */
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.app-container.active {
    display: flex;
    opacity: 1;
}

@media (max-width: 500px) {
    .app-container {
        width: 100vw !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
    }
}

/* --- AUTH GATE --- */
#auth-gate {
    position: absolute;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% -10%, #172554 0%, var(--night-sky) 60%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--glass-surf);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 22px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin: auto 0;
    flex-shrink: 0;
}

/* Register card: tighter padding so buttons are always visible */
#view-register.auth-card {
    padding: 22px 20px 24px;
    margin: 16px 0;
}

.brand {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.brand span {
    color: var(--turf);
}


/* --- FLASH PULSE ANIMATION --- */
@keyframes flash-pulse {
    0% {
        box-shadow: 0 0 10px rgba(250, 204, 21, 0.2), 0 0 0 0 rgba(250, 204, 21, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(250, 204, 21, 0.4), 0 0 12px 4px rgba(250, 204, 21, 0.15);
    }

    100% {
        box-shadow: 0 0 10px rgba(250, 204, 21, 0.2), 0 0 0 0 rgba(250, 204, 21, 0.0);
    }
}

@keyframes flash-pulse-orange {
    0% {
        box-shadow: 0 0 12px rgba(249, 115, 22, 0.25), 0 0 0 0 rgba(239, 68, 68, 0.2);
    }

    50% {
        box-shadow: 0 0 24px rgba(249, 115, 22, 0.45), 0 0 14px 4px rgba(239, 68, 68, 0.12);
    }

    100% {
        box-shadow: 0 0 12px rgba(249, 115, 22, 0.25), 0 0 0 0 rgba(239, 68, 68, 0.0);
    }
}

/* --- COMMON BUTTONS --- */

.btn-action {
    background: rgba(255, 255, 255, 0.07);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 14px;
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.btn-action:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

/* --- LAYOUT STRUCTURE --- */
#lobby-layer {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 0 20px;
    transition: transform 0.4s var(--ease-smooth), opacity 0.4s;
    z-index: 10;
    overflow: hidden;
    min-height: 0;
    /* Prevent flex overflow in nested flex column */
}

/* HEADER */
.header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    padding-top: max(0px, var(--safe-top));
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 10px;
    position: relative;
}

.u-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.u-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333 url('https://i.pravatar.cc/150?img=12') center/cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.u-txt {
    flex: 1;
    min-width: 0;
}

.u-txt h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 20px;
    margin: 0;
    line-height: 1.1;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.u-txt p {
    font-size: 11px;
    color: var(--floodlight);
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.u-socials {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.us-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.us-icon {
    font-size: 11px;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}

.header-btn-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.friend-btn-header {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.friend-btn-header:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    border-color: var(--turf);
}

.friend-btn-header:active {
    transform: scale(0.95);
}

.friend-btn-header span {
    font-size: 16px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55));
}

#header-friend-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid #0b0d10;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
    z-index: 2;
}

.live-pill {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: #ef4444;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    max-width: 150px;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .live-pill {
        max-width: 110px;
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* TASK 3: ON AIR ANIMATIONS */
@keyframes flame-flicker {
    0% {
        transform: scale(1) rotate(-2deg);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.1) rotate(2deg);
        opacity: 1;
    }
}

@keyframes wave-expand {
    0% {
        width: 8px;
        height: 8px;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 32px;
        height: 32px;
        opacity: 0;
        border-width: 0px;
    }
}

@keyframes pulse-beacon {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* ── FLARE CARD AMBIENT ANIMATIONS ──────────────────────────────────── */

/* Slow ember border glow — orange pulses softly to red, never jarring */
@keyframes ember-glow {
    0% {
        box-shadow: 0 4px 20px rgba(249, 115, 22, 0.10), 0 0 0 1px rgba(249, 115, 22, 0.20);
    }

    40% {
        box-shadow: 0 4px 28px rgba(239, 68, 68, 0.18), 0 0 0 1px rgba(249, 115, 22, 0.35);
    }

    70% {
        box-shadow: 0 4px 24px rgba(249, 115, 22, 0.22), 0 0 0 1px rgba(239, 68, 68, 0.28);
    }

    100% {
        box-shadow: 0 4px 20px rgba(249, 115, 22, 0.10), 0 0 0 1px rgba(249, 115, 22, 0.20);
    }
}

/* Top accent line shimmer — the fire streak drifts left to right */
@keyframes flare-streak {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Fuse bar inner shimmer — a light sweep that reads as burning */
@keyframes fuse-burn {
    0% {
        background-position: -100% 0;
    }

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

/* Very slow background breathe — the card smoulders without distracting */
@keyframes flare-bg-breathe {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.88;
    }
}

/* Assembled class — applied to the card container */
.flare-card-active {
    animation: ember-glow 4s ease-in-out infinite, flare-bg-breathe 6s ease-in-out infinite;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.flare-card-active:active {
    transform: scale(0.99);
}

/* The shimmer streak on top of the fuse bar fill */
.flare-fuse-bar {
    position: relative;
    overflow: hidden;
}

.flare-fuse-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.55) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: fuse-burn 2.5s ease-in-out infinite;
    border-radius: 2px;
}

/* Beacon glow classes — shared across locker room and beacon list */
.beacon-glow-flare {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.beacon-glow-flash {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ── Flash Beacon Wave (Yellow Signal Rings) ── */
@keyframes flashWaveExpand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.7;
        border-width: 2px;
    }

    100% {
        width: 90px;
        height: 90px;
        opacity: 0;
        border-width: 0px;
    }
}

/* ── Flare Wave Expand (Orange Signal Rings) ── */
@keyframes flareWaveExpand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.5;
        border-width: 2px;
    }

    100% {
        width: 90px;
        height: 90px;
        opacity: 0;
        border-width: 0px;
    }
}

/* ── Flare Glow Pulse (Inner Flame Glow) ── */
@keyframes flareGlowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* ── Flame Flicker ── */
@keyframes flameFlicker {
    0% {
        transform: scale(1) rotate(-2deg);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.08) rotate(2deg);
        opacity: 1;
    }
}

/* ─────────────────────────────────────────────────────────────────── */

/* 1. FLARE ACTIVE (Orange/Red) */
.live-pill.active-flare {
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.flame-icon {
    display: inline-block;
    animation: flame-flicker 0.1s infinite alternate;
    filter: drop-shadow(0 0 5px rgba(255, 255, 0, 0.5));
    font-size: 14px;
}

/* 2. FLASH ACTIVE (Yellow/Gold) */
.live-pill.active-flash {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.flash-icon {
    display: inline-block;
    animation: pulse-beacon 1.5s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    font-size: 14px;
}

/* 3. BEACON ACTIVE (Blue/Cyan) */
.live-pill.active-beacon {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.beacon-wave-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.bw-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
    opacity: 0;
    animation: wave-expand 2s infinite;
}

.bw-ring:nth-child(2) {
    animation-delay: 0.5s;
}

/* WIZARD TABS & LISTS */
/* ── Header Action Buttons (💡 Guide, 👥 Friends) ───────── */
.friend-btn-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 18px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.10), rgba(99, 102, 241, 0.08)) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.22) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.friend-btn-header:hover {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.14)) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: scale(1.08);
}

.friend-btn-header:active {
    transform: scale(0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Notification badge (red dot) — pulsing glow */
#header-friend-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid rgba(10, 10, 20, 0.9);
    animation: badgePulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.9), 0 0 20px rgba(239, 68, 68, 0.3);
        transform: scale(1.25);
    }
}

/* ── Club Banner Overlay Buttons (◀▶, ⓘ, 🌐) ───────── */
.club-banner-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.65);
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.10), rgba(99, 102, 241, 0.08));
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.club-banner-btn:hover {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.16));
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: scale(1.08);
}

.club-banner-btn:active {
    transform: scale(0.90);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Purple variant for admin guide ⓘ */
.club-banner-btn.banner-btn-purple {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.12), rgba(139, 92, 246, 0.08));
    border-color: rgba(168, 85, 247, 0.35);
    color: #a855f7;
}

.club-banner-btn.banner-btn-purple:hover {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.22), rgba(139, 92, 246, 0.16));
    border-color: rgba(168, 85, 247, 0.5);
    color: #c084fc;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Smaller variant for Locker Room arrows */
.club-banner-btn.club-banner-btn-sm {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.wave-tab-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 10px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
    border-radius: 10px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.tab-btn:focus,
.tab-btn:focus-visible,
.tab-btn:focus-within {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn:active {
    transform: none;
}

.tab-btn.active,
.tab-btn.active:hover,
.tab-btn.active:focus,
.tab-btn.active:focus-visible,
.tab-btn.active:active {
    color: white;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.12));
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transform: none;
}

.tab-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

.input-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* LIST ITEMS */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
    cursor: pointer;
    color: var(--text-main);
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.list-item.selected {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--clay);
}

.list-item.selected .item-name span {
    color: white !important;
}

.list-item.selected .item-name {
    color: white !important;
}

.list-item.favorite {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.45);
}

.list-item.shadowed {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
}

.pref-mark {
    font-size: 18px;
}

.pref-mark.accept {
    color: #22c55e;
}

.pref-mark.shadow {
    color: #94a3b8;
}

.pref-hint {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.5);
    padding: 0 6px;
    border-radius: 10px;
    line-height: 18px;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-av {
    width: 32px;
    height: 32px;
    background: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.item-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.item-del {
    color: #ef4444;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.item-del:hover {
    opacity: 1;
}

.session-detail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
}

.session-detail-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
}

.session-detail-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.session-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.session-detail-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.session-detail-val {
    font-size: 12px;
    font-weight: 800;
    color: white;
}

.session-detail-lbl {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 2px;
}

.session-chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.session-chat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-chat-item.me {
    align-items: flex-end;
}

.session-chat-bubble {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: white;
    max-width: 85%;
}

.session-chat-item.me .session-chat-bubble {
    background: var(--floodlight);
    color: var(--night-sky);
}

.session-chat-meta {
    font-size: 9px;
    color: var(--text-muted);
}

.session-chat-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.session-chat-send {
    background: var(--turf);
    color: #022c22;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
}

/* STAGING AREA */
.squad-staging-area {
    min-height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.staged-player-chip {
    background: var(--clay);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chip-remove {
    cursor: pointer;
    opacity: 0.8;
    font-size: 10px;
}

.chip-remove:hover {
    opacity: 1;
}

/* 3. SESSION GUIDE */
.live-pill.active-guide {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding-right: 12px;
}

.live-pill.active-live-event {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

/* STAGE */
.dynamic-stage {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 1. FEED */
.feed-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 2;
}

.feed-container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 2px;
}

.fh-lbl {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fh-count {
    display: none;
    /* replaced by dots */
}

.skip-btn {
    align-self: center;
    margin-top: 12px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 30px;
    background: transparent;
    border: none;
    transition: color 0.2s;
}

.skip-btn:hover {
    color: rgba(255, 255, 255, 0.5);
}

.skip-btn:active {
    transform: scale(0.96);
}

.stack-area {
    width: 100%;
    flex: 1;
    position: relative;
    perspective: 1000px;
    min-height: 0;
}

.card {
    position: absolute;
    width: 92%;
    left: 4%;
    top: 0;
    bottom: 0;
    background: var(--glass-surf);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s var(--ease-smooth), opacity 0.3s;
    transform-origin: 50% 120%;
    overflow: hidden;
}

/* New card tag — inline colour strip, no more white chip */
.c-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: auto;
    /* colour set via inline style in JS */
}

/* Legacy classes kept for fallback static cards */
.c-img {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 22px 22px 0 0;
}

.c-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, transparent 50%);
    border-radius: 22px 22px 0 0;
}

.c-bod {
    flex: 1;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.c-act {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--floodlight);
    letter-spacing: 0.5px;
}


/* 2. DASHBOARD (LOCKER ROOM) - FIXED OVERLAPS */
.dashboard-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* FIX: Consistent spacing between all elements */
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease 0.2s, transform 0.6s var(--ease-smooth) 0.2s;
    z-index: 1;
    overflow-y: auto;
    scrollbar-width: none;
}

.dashboard-container::-webkit-scrollbar {
    display: none;
}

.dashboard-container.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.dash-header {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: white;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    flex-shrink: 0;
}

.cal-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.cal-day {
    min-width: 52px;
    height: 72px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.cal-day.active {
    background: var(--floodlight);
    color: var(--night-sky);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
    border-color: var(--floodlight);
}

.cd-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.cd-num {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.cd-vital {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--turf);
    margin-top: 6px;
    box-shadow: 0 0 5px var(--turf);
    opacity: 0;
    transition: 0.3s;
}

.cal-day.has-event .cd-vital {
    opacity: 1;
}

.cal-day.active .cd-vital {
    background: var(--night-sky);
    box-shadow: none;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-shrink: 0;
}

.act-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.3s ease;
    animation: act-card-pulse 3s ease-in-out infinite;
}

/* ── Shimmer Sweep — diagonal light sweep across the card ── */
.act-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.06) 55%,
            transparent 70%);
    transform: skewX(-15deg);
    animation: act-shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* ── Ripple burst on click ── */
.act-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.act-card:active::after {
    width: 250px;
    height: 250px;
    opacity: 1;
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.5s ease-out;
}

/* ── Pulse glow — subtle breathing border glow ── */
@keyframes act-card-pulse {

    0%,
    100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
            0 0 0 0 transparent;
    }

    50% {
        box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.3),
            0 0 18px -4px var(--act-glow, rgba(56, 189, 248, 0.2));
    }
}

/* ── Shimmer keyframes ── */
@keyframes act-shimmer {
    0% {
        left: -60%;
    }

    50%,
    100% {
        left: 130%;
    }
}

.act-card:active {
    transform: scale(0.96);
    filter: brightness(1.15);
}

/* ── Per-card glow color from border-bottom accent ── */
.act-card[style*="floodlight"] {
    --act-glow: rgba(56, 189, 248, 0.25);
}

.act-card[style*="turf"] {
    --act-glow: rgba(16, 185, 129, 0.25);
}

.ac-icon {
    font-size: 26px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
    position: relative;
    z-index: 3;
}

.ac-lbl {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

.ac-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.dash-widget {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.dw-left div:first-child {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.dw-left div:last-child {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.dw-right {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--turf);
}

.elo-flip-card {
    perspective: 1000px;
    margin-top: 10px;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    min-height: 130px;
    width: 100%;
}

.join-club-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--glass-border);
    border-bottom: 3px solid var(--floodlight);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.join-club-overlay:active {
    transform: scale(0.98);
    background: rgba(30, 41, 59, 0.9);
}

.elo-flip-card.join-open {
    min-height: 420px;
}

.elo-flip-card.join-open .join-club-overlay {
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px;
}

.join-club-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.join-club-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.join-club-title {
    font-family: 'Oswald';
    font-size: 16px;
    color: white;
    letter-spacing: 1px;
}

.join-club-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 700;
}

.jc-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 12px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.join-club-search {
    font-size: 12px;
}

.join-club-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    flex: 1;
}

.join-club-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 10px;
    display: none;
}

.jc-icon {
    font-size: 28px;
    color: var(--floodlight);
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.jc-text {
    font-family: 'Oswald';
    font-size: 18px;
    color: white;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.2;
}

.jc-subtext {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

.elo-flip-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    height: 130px;
}

.elo-flip-card.flipped .elo-flip-inner {
    transform: rotateY(180deg);
}

.elo-face {
    backface-visibility: hidden;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(30, 41, 59, 0.45);
    padding: 14px 16px;
    height: 130px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.elo-club-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.elo-player-section {
    padding-top: 8px;
}

.elo-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.elo-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.elo-rank {
    font-size: 13px;
    font-weight: 800;
    color: white;
}

.elo-front {
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
}

#elo-club-nav-container {
    height: 100%;
}

.elo-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    justify-content: flex-start;
}

.elo-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.elo-title {
    font-size: 14px;
    font-weight: 900;
    color: white;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.elo-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--turf);
}

.elo-rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.elo-xp-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6px;
}

.elo-xp-text {
    font-size: 8px;
    color: var(--floodlight);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.elo-loot-row {
    display: flex;
    gap: 12px;
    font-size: 10px;
    font-weight: 800;
    color: #f8fafc;
}

.elo-mini {
    display: flex;
    align-items: center;
    gap: 6px;
}

.elo-xp-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.elo-xp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--floodlight), var(--turf));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

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

.elo-back-title {
    font-size: 9px;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.elo-back-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
}

.elo-back-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.elo-back-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
}

.elo-back-label {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.elo-back-val {
    font-size: 10px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.elo-more-btn {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--floodlight);
    border: none;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 800;
    padding: 2px 5px;
    cursor: pointer;
    transition: 0.2s;
}

.elo-more-btn:hover {
    background: var(--floodlight);
    color: var(--bg-deep);
}

.rank-tab {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: 0.2s;
}

.rank-tab.active {
    background: var(--floodlight);
    color: var(--bg-deep);
}

.rank-table {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.rank-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-row:last-child {
    border-bottom: none;
}

.rank-row.highlight {
    background: rgba(56, 189, 248, 0.1);
}

.rr-pos {
    width: 25px;
    font-family: 'Oswald';
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.rr-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    margin: 0 10px;
    background-size: cover;
    flex-shrink: 0;
}

.rr-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    /* FIX: Text overflow safety */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.rr-elo {
    font-family: 'Manrope';
    font-weight: 700;
    font-size: 13px;
    color: var(--turf);
}

.refresh-btn {
    text-align: center;
    font-size: 11px;
    color: var(--floodlight);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    font-weight: 800;
    padding: 12px 20px;
    margin: 20px auto 30px auto;
    width: max-content;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.refresh-btn:active {
    transform: scale(0.96);
    background: rgba(56, 189, 248, 0.2);
}

/* --- DOCK --- */
.dock-wrap {
    flex-shrink: 0;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    padding-top: 0.9375rem;
    background: rgba(2, 6, 23, 0.85);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
}

.dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    min-height: 3.75rem;
    max-width: 280px;
    margin: 0 auto;
    padding: 0;
}

/* LEAGUE SPECIFIC */
.score-input-mini {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    text-align: center;
    color: white;
    font-family: 'Oswald';
    font-size: 14px;
    font-weight: 700;
}

.score-input-mini:focus {
    border-color: var(--floodlight);
    outline: none;
}

.score-input-mini:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border: none;
    background: transparent;
}

/* PLAYMAKER PRO SPECIFIC */
.round-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.round-head {
    font-family: 'Oswald';
    font-size: 18px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.game-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.court-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.points-reminder {
    color: var(--accent-gold);
    opacity: 0.8;
}

.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-side {
    flex: 1;
    font-size: 13px;
    color: white;
    font-weight: 600;
}

.team-side.right {
    text-align: right;
}

.score-tunnel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-input {
    width: 45px;
    height: 35px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    text-align: center;
    color: white;
    font-family: 'Oswald';
    font-size: 18px;
}

.score-input:focus {
    border-color: var(--floodlight);
    outline: none;
    background: rgba(0, 0, 0, 0.6);
}

.score-input.winner {
    border-color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.vs-divider {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-muted);
    opacity: 0.5;
}

.sit-out-box {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 191, 36, 0.05);
    border-radius: 8px;
    font-size: 11px;
    color: var(--accent-gold);
    border: 1px dashed rgba(251, 191, 36, 0.2);
}

.btn-enter {
    background: var(--turf) !important;
    color: #022c22 !important;
    font-size: 11px !important;
    padding: 10px !important;
    border-radius: 8px !important;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    font-size: 11px !important;
    padding: 10px !important;
    border-radius: 8px !important;
}

.btn-enter:hover {
    background: #10b981 !important;
    transform: translateY(-1px);
}

.btn-edit:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    color: white !important;
}

.btn-confirm {
    background: var(--accent-danger) !important;
    color: white !important;
    border: none !important;
}

#sheet-playmaker input,
#sheet-playmaker textarea,
#sheet-playmaker select {
    color: white !important;
}

#sheet-playmaker input::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}

#sheet-playmaker .sheet-body::-webkit-scrollbar {
    width: 4px;
}

#sheet-playmaker .sheet-body::-webkit-scrollbar-track {
    background: transparent;
}

#sheet-playmaker .sheet-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
}

#sheet-playmaker .sheet-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.65);
}

.analytics-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
}

.analytics-head h3 {
    font-family: 'Oswald';
    font-size: 18px;
    color: white;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

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

.analytics-table th {
    text-align: left;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.analytics-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: white;
    font-size: 13px;
}

.rank-box {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.name-input-cell {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 13px;
    width: 100%;
    padding: 4px 0;
}

.name-input-cell:focus {
    border-color: var(--floodlight);
    outline: none;
}

.name-input-cell::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.score-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.stat-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    margin-right: 5px;
}

.pill-win {
    background: rgba(16, 185, 129, 0.1);
    color: var(--turf);
}


.league-tag {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.tag-up {
    background: rgba(56, 189, 248, 0.1);
    color: var(--floodlight);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.tag-mid-up {
    background: rgba(34, 197, 94, 0.1);
    color: var(--turf);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* AI Validator & Offerings */
.ai-status-box {
    margin: 15px 0 !important;
    padding: 18px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.ai-status-box.success {
    border-left: 4px solid var(--turf) !important;
    background: rgba(16, 185, 129, 0.08) !important;
}

.ai-status-box.warning {
    border-left: 4px solid var(--accent-gold) !important;
    background: rgba(251, 191, 36, 0.08) !important;
}

#pm-aiOffering {
    margin-top: 15px;
    background: rgba(56, 189, 248, 0.05) !important;
    border: 1px dashed rgba(56, 189, 248, 0.3) !important;
}

.btn-xs {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-muted);
    font-size: 9px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.btn-xs:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

/* --- ROSTER CHIP INPUT --- */
.roster-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    min-height: 140px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    cursor: text;
    transition: all 0.3s var(--ease-smooth);
    margin-bottom: 6px;
    position: relative;
    box-sizing: border-box;
}

.roster-container:focus-within {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

.roster-chip {
    background: var(--accent-gold);
    color: #000;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: chipAppear 0.2s var(--ease-smooth);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes chipAppear {
    from {
        transform: scale(0.8) translateY(5px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.roster-chip .remove-btn {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-weight: 900;
}

.roster-chip .remove-btn:hover {
    opacity: 1;
}

.roster-input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
    padding: 6px;
    outline: none;
}

.roster-input::placeholder {
    color: var(--text-muted);
    opacity: 0.4;
}

.roster-count {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* --- SHEETS --- */
.sheet {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f172a;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-bottom);
    transform: translateY(100%);
    visibility: hidden;
    /* belt-and-suspenders: can't scroll into view */
    pointer-events: none;
    overflow: hidden;
}

.sheet *::-webkit-scrollbar {
    display: none;
}

.sheet * {
    scrollbar-width: none;
}

.sheet.active {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

#sheet-league {
    z-index: 105;
}

#sheet-squads {
    z-index: 105;
}

#sheet-schedule {
    z-index: 105;
}

/* ── Club Hub: subtle atmospheric top-hint ───────────────────────────────────
   Just a whisper of blue depth at the very top — calm dark base otherwise. */
#sheet-club {
    background:
        radial-gradient(ellipse 80% 30% at 50% 0%,
            rgba(20, 45, 90, 0.25) 0%,
            transparent 70%),
        #0f172a;
}

.sheet-head {
    flex-shrink: 0;
    padding: 20px 20px 15px 20px;
    padding-top: max(20px, var(--safe-top, 20px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0.05), transparent);
}

.sh-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px !important;
    font-weight: 500;
    color: white !important;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px !important;
    opacity: 0.8 !important;
}

.close-circle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.sheet-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 25px;
    overscroll-behavior: contain;
}

.sheet-body::-webkit-scrollbar {
    display: none;
}

.section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* CLUB HUB INTEGRATION */
.hub-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.hub-stat-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.hsb-val {
    font-family: 'Oswald';
    font-size: 24px;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.hsb-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.session-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
}

.si-time {
    font-family: 'Manrope';
    font-weight: 800;
    color: var(--floodlight);
    font-size: 14px;
    width: 50px;
}

.si-det {
    flex: 1;
    padding: 0 10px;
}

.si-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.si-loc {
    font-size: 11px;
    color: #94a3b8;
}

.si-btn {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
}

/* PLAY / MATCHMAKING */
.match-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mt-opt {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    border-radius: 25px;
    transition: 0.2s;
    cursor: pointer;
}

.mt-opt.active {
    background: var(--floodlight);
    color: var(--night-sky);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.search-btn {
    width: 100%;
    background: var(--floodlight);
    color: var(--night-sky);
    padding: 18px;
    border-radius: 16px;
    font-family: 'Oswald';
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    cursor: pointer;
}

/* PULSE BAR */
.pulse-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.pulse-fill {
    height: 100%;
    background: var(--career);
    width: 75%;
    box-shadow: 0 0 10px var(--career);
}

/* CLUB HUB ENHANCEMENTS — Premium Slim Redesign */
.club-hub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.ch-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--turf);
}

.ch-info {
    flex: 1;
    min-width: 0;
}

.ch-name {
    font-family: 'Oswald';
    font-size: 18px;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.ch-country {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Inline Stats Strip */
.club-hub-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
}

.ch-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    position: relative;
}

.ch-stat+.ch-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.chs-val {
    font-family: 'Manrope';
    font-size: 17px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.chs-lbl {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Club Hub Box — flat style */
.club-hub-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.65;
}

/* Admin Hub Grid Buttons */
.admin-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    min-height: 85px;
    border-radius: 12px;
    transition: all 0.2s ease-out;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.admin-grid-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.admin-grid-btn span:first-child {
    font-size: 24px;
    transition: transform 0.2s;
}

.admin-grid-btn:hover span:first-child {
    transform: scale(1.1);
}

.admin-grid-btn span:last-child {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-highlight);
    letter-spacing: 0.5px;
}

.premium-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    border-radius: 12px;
    border: 2px solid rgba(168, 85, 247, 0.5);
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
    min-height: 85px;
    grid-column: span 2;
    transition: all 0.2s ease-out;
}

.premium-grid-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.premium-grid-btn span:first-child {
    font-size: 28px;
    transition: transform 0.2s;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.premium-grid-btn:hover span:first-child {
    transform: scale(1.15) rotate(5deg);
}

.premium-grid-btn span:last-child {
    font-size: 13px;
    font-weight: 900;
    color: #c084fc;
    letter-spacing: 1px;
}

/* Action Row */
.club-value-row {
    padding: 0;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.club-gold-btn {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1f2937;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25);
    text-transform: uppercase;
    font-size: 12px;
    padding: 12px 8px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.club-gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

.club-gold-icon {
    font-size: 16px;
}

.club-value-sub {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 10px;
    margin-top: -2px;
}

.leave-club-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
    color: #f87171;
    font-family: 'Oswald';
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.leave-club-btn:active {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(0.98);
}

/* ─── SEARCHABLE LOCATION DROPDOWN ─── */
.loc-dropdown {
    position: relative;
    margin-bottom: 0;
}

.loc-search-input {
    width: 100%;
    box-sizing: border-box;
}

.loc-dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.loc-dropdown-item {
    padding: 10px 14px;
    font-size: 13px;
    color: #e2e8f0;
    cursor: pointer;
    transition: 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.loc-dropdown-item:last-child {
    border-bottom: none;
}

.loc-dropdown-item:hover,
.loc-dropdown-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--turf);
}

.loc-dropdown-item.selected {
    color: #34d399;
    font-weight: 700;
}

.loc-no-result {
    padding: 12px 14px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Searchable Dropdown UI */
.loc-display-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    text-align: left;
}

.loc-placeholder {
    color: var(--text-muted);
}

.loc-internal-search {
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    padding: 10px;
}

.loc-items-container {
    max-height: 200px;
    overflow-y: auto;
}

/* Member Row — slim */
.ch-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ch-member-row:last-child {
    border-bottom: none;
}

.ch-member-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ch-member-info {
    flex: 1;
    min-width: 0;
}

.ch-member-name {
    font-size: 13px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-member-sub {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-role-badge {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ch-role-owner {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.ch-role-mod {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.ch-role-officer {
    background: rgba(45, 212, 191, 0.15);
    color: #2dd4bf;
}

.ch-role-member {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* ─── Avatar Preset Grid ─── */
.avatar-preset-grid-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 8px 0;
}

.ap-item:hover {
    border-color: rgba(255, 255, 255, 0.65) !important;
    transform: scale(1.08);
}

.ap-item.selected {
    border-color: var(--turf) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─── ALL CLUBS (Discover Tab) ─── */
.ch-discover-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ch-discover-card:last-child {
    border-bottom: none;
}

.ch-discover-av {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--turf);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.ch-discover-info {
    flex: 1;
    min-width: 0;
}

.ch-discover-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-discover-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-join-club {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    text-transform: uppercase;
}

.btn-join-club:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.6);
}

.badge-joined {
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.badge-current-club {
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}


/* --- TASK 4: CREATE SESSION VIEW (Red Frame Content) --- */
.create-session-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.create-session-view::-webkit-scrollbar {
    display: none;
}

.create-session-view.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* SPLIT PANEL */
.cs-split-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.cs-split-btn {
    flex: 1;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 20px;
}

.cs-split-btn:active {
    transform: scale(0.98);
}

.cs-split-btn.flash {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.05));
    border-color: rgba(56, 189, 248, 0.2);
}

.cs-split-btn.flare {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border-color: rgba(249, 115, 22, 0.2);
}

.cs-icon {
    font-size: 32px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px currentColor);
}

.cs-title {
    font-family: 'Oswald';
    font-size: 24px;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.cs-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 200px;
}

/* WIZARD CONTAINER */
.wizard-container {
    display: none;
    flex-direction: column;
    height: 100%;
}

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.wh-title {
    font-family: 'Oswald';
    font-size: 20px;
    color: white;
    letter-spacing: 1px;
}

.wh-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* WIZARD INPUTS */
.wiz-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wiz-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.wiz-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.wiz-btn.active-flash {
    background: rgba(186, 230, 253, 0.1) !important;
    border-color: rgba(125, 211, 252, 0.55) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.1);
}

.wiz-btn.active-flare {
    background: var(--clay);
    color: white;
    border-color: var(--clay);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.wiz-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-family: 'Manrope';
    font-size: 14px;
    margin-bottom: 20px;
    outline: none;
    transition: 0.2s;
}

.wiz-input:focus {
    border-color: var(--floodlight);
    background: rgba(0, 0, 0, 0.5);
}

/* CUSTOM DATE PICKER STYLE */
.custom-calendar-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 280px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.custom-calendar-popup.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.cc-title {
    font-family: 'Oswald';
    font-size: 18px;
    color: white;
    letter-spacing: 1px;
}

.cc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.cc-day-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 800;
    padding-bottom: 5px;
}

.cc-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.cc-date:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.cc-date.today {
    color: var(--floodlight);
    font-weight: 800;
    border-color: rgba(56, 189, 248, 0.3);
}

.cc-date.selected {
    background: var(--floodlight);
    color: var(--night-sky);
    font-weight: 800;
}

.cc-date.other-month {
    opacity: 0.2;
    pointer-events: none;
}

.cc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.cc-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 10px;
}

.cc-btn.primary {
    color: var(--floodlight);
}

.wiz-action-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-family: 'Oswald';
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.wiz-action-btn.flash {
    background: var(--flash-gold);
    color: var(--night-sky);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.wiz-action-btn.flare {
    background: var(--clay);
    color: white;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

/* FLARE WIZARD STEPS */
.flare-steps {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.step-dot.active {
    background: var(--clay);
    color: white;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    border-color: var(--clay);
}

.step-dot.completed {
    background: var(--clay);
    color: white;
    opacity: 0.5;
}

.wiz-step {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.wiz-step.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MISSING UI ELEMENTS (Added for Theme Consistency) --- */
.modern-input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    transition: 0.3s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.modern-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.55);
}

/* Fix for dropdown options visibility */
.modern-input option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.modern-input.focus-flare:focus {
    border-color: var(--clay);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.modern-input.focus-flash:focus {
    border-color: var(--flash-gold);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

.btn-option {
    flex: 1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    min-height: 52px;
}

.btn-option:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
    border-color: rgba(255, 255, 255, 0.65);
}

.btn-option:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.35);
}

.btn-option.active-flash {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
}

.btn-option.active-flare {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--clay);
    color: white;
    box-shadow: inset 0 0 15px rgba(249, 115, 22, 0.1);
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.btn-option:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-next {
    margin-top: auto;
    background: white;
    color: black;
    border: none;
    padding: 18px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    min-height: 56px;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.55);
}

.btn-next:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* --- TAG BUTTONS --- */
.tag-btn.active-fav {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.tag-btn.active-block {
    background: rgba(148, 163, 184, 0.2) !important;
    border: 1px solid rgba(148, 163, 184, 0.5) !important;
    opacity: 0.8;
}

.tag-btn:hover {
    transform: scale(1.1);
}

.tag-btn:active {
    transform: scale(0.9);
}

/* ── Club Header Toggle (ADMIN ↔ CLUB HUB button) ────────── */
.club-header-toggle {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.club-header-toggle:active {
    transform: scale(0.93);
}

.club-header-toggle:focus {
    outline: none;
}

/* ADMIN mode — red accent */
.club-header-toggle.admin-mode {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(190, 24, 93, 0.12));
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.club-header-toggle.admin-mode:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(190, 24, 93, 0.18));
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* HUB mode (← CLUB HUB) — teal accent */
.club-header-toggle.hub-mode {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.club-header-toggle.hub-mode:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.18));
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.club-hub-tabs {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 3px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.club-hub-tabs::-webkit-scrollbar {
    display: none;
}

.club-hub-tabs .tab-btn {
    border-radius: 10px;
    font-size: 11px;
    padding: 8px 4px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* ── Admin Grid Buttons (CLUB SETTINGS, SESSION, ROUND, etc.) ── */
.admin-grid-btn {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.06)) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    border-radius: 14px !important;
    padding: 20px 10px !important;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.admin-grid-btn:hover {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.10)) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.admin-grid-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.admin-grid-btn:focus {
    outline: none;
}

/* ── Action Buttons (CLUB SOCIETY, LADDER LEAGUE, etc.) ──── */
.btn-action {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
    padding: 20px 14px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    flex: 1;
}

.btn-action:hover {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.10));
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.btn-action:active {
    transform: scale(0.95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.btn-action:focus {
    outline: none;
}

.club-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px;
    border-radius: 12px;
}

.club-member-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.club-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background-size: cover;
    background-position: center;
}

.club-member-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.club-member-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.club-member-name {
    color: white;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.club-member-level {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--floodlight);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.club-member-role-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.club-member-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
    white-space: nowrap;
}

.club-member-sub {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.2px;
}

.club-member-badge {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.club-member-badge.owner {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.2);
}

.club-member-badge.moderator {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.club-member-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.club-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 30px;
    justify-content: center;
}

.club-tag-btn:hover {
    transform: translateY(-1px);
}

.club-tag-btn:active {
    transform: scale(0.98);
}

.club-tag-btn.active-fav {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.7);
    color: #fecaca;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.25);
}

.club-tag-btn.active-block {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.8);
    color: #e2e8f0;
    box-shadow: 0 0 12px rgba(148, 163, 184, 0.25);
}

.club-tag-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 320px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    padding: 0 15px;
    box-sizing: border-box;
}

.toast-notification {
    background: var(--glass-surf);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    animation: toastSlideInTop 0.4s var(--ease-smooth);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast-notification.success {
    border-color: rgba(16, 185, 129, 0.3);
}

.toast-notification.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-notification.info {
    border-color: rgba(56, 189, 248, 0.3);
}

.toast-notification.success .toast-icon {
    color: var(--turf);
}

.toast-notification.error .toast-icon {
    color: #ef4444;
}

.toast-notification.info .toast-icon {
    color: var(--floodlight);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-icon {
    font-size: 14px;
}

.toast-message {
    letter-spacing: 0.3px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.35);
    width: 100%;
    animation: toastProgress linear forwards;
}

@keyframes toastSlideInTop {
    from {
        transform: translateY(-15px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateY(-15px);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* --- CUSTOM CONFIRM MODAL (Added to fix bug) --- */
.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 30px;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Less intrusive wave details popup */
.wave-details-popup {
    background: rgba(2, 6, 23, 0.5) !important;
    backdrop-filter: blur(4px) !important;
}

.wave-details-popup .custom-modal {
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.custom-modal {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 35px 30px;
    width: 85%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transform: translateY(30px);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-sizing: border-box;
}

.modal-btn.confirm {
    background: var(--turf);
    color: #022c22;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.modal-btn:active {
    transform: scale(0.96);
}

.modal-btn:hover {
    filter: brightness(1.2);
}

/* --- TOURNAMENT BRACKET STYLES --- */
.bracket-container {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    gap: 40px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 200px;
}

.bracket-round-title {
    text-align: center;
    color: var(--accent-secondary);
    font-family: 'Oswald';
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 1px;
}

.bracket-match {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bracket-match::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--border-light);
}

.bracket-round:last-child .bracket-match::after {
    display: none;
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: white;
    padding: 4px;
    border-radius: 4px;
}

.bracket-team.winner {
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-primary);
    font-weight: bold;
}

.bracket-input {
    width: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    text-align: center;
    border-radius: 4px;
}

.gold-border {
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* --- PLAYMAKER ENGINE STYLES --- */
.pm-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pm-round-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pm-round-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    font-family: 'Oswald';
    color: var(--accent-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border-light);
}

.pm-match-item {
    background: var(--bg-card);
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pm-court-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    background: var(--accent-primary);
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.pm-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.pm-team {
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex: 1;
    text-align: center;
}

.pm-input {
    width: 40px;
    height: 35px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

.pm-sit-out {
    padding: 10px 20px;
    background: rgba(255, 77, 77, 0.1);
    color: var(--accent-danger);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

/* --- KOTC ENGINE STYLES --- */
.kotc-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.kotc-sidebar {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 5px;
    /* Add some space between sidebar and main */
}

.kotc-main {
    flex: 2 1 400px;
    min-width: 0;
    /* Prevents flex items from overflowing */
}

.kotc-sidebar .squad-card {
    margin-bottom: 0;
    padding: 15px;
}

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

.kotc-table th {
    text-align: left;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.kotc-table td {
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-muted);
}

.kotc-rank-circle {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
}

.kotc-val-pos {
    color: var(--accent-primary);
    font-weight: 700;
}

.kotc-val-neg {
    color: var(--accent-danger);
    font-weight: 700;
}

.kotc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.kotc-match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kotc-match-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.kotc-badge {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--accent-secondary);
    color: #000;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
}

.kotc-court-tag {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.kotc-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.kotc-team {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.kotc-team.right {
    text-align: right;
}

.kotc-score-box {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 10px;
    margin: 0 10px;
    align-items: center;
}

.kotc-input {
    width: 35px;
    height: 35px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    background: var(--bg-panel);
    color: white;
}

.kotc-input:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.kotc-input:disabled {
    border-color: transparent;
    color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.1);
}

/* --- SQUAD WIZARD --- */
.squad-phase {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-smooth);
}

.squad-phase.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.squad-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
}

.input-label {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.modern-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Fix for width overflow */
}

.modern-input:focus {
    border-color: #f97316;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.action-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-row.action-row-triple {
    flex-wrap: wrap;
    gap: 10px;
}

.action-row.action-row-triple .btn-primary {
    order: 1;
    flex: 1 1 100%;
}

.action-row.action-row-triple .btn-ghost {
    order: 2;
    flex: 1 1 calc(50% - 5px);
    padding: 12px;
    font-size: 12px;
}

.btn-ghost {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

.btn-primary {
    flex: 2;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 14px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ── Neutral dark CTA button (platform-wide) ─────────────────────────────── */
.btn-neutral {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: white;
    border-radius: 12px;
    padding: 13px 20px;
    font-weight: 800;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-neutral:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.5);
}

.btn-neutral:active {
    transform: scale(0.97);
    opacity: 0.85;
}


.btn-small {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    color: white;
    cursor: pointer;
}

.clay-bg {
    background: var(--clay) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.clay-text {
    color: var(--clay) !important;
}

.flood-text {
    color: var(--floodlight) !important;
}

.squad-q .mt-opt.active {
    background: #f97316;
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.squad-q .mt-opt {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pref-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pref-label {
    font-size: 13px;
    color: var(--text-main);
    flex: 1;
    padding-right: 15px;
}

.phase-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 5px;
}

.result-container {
    text-align: center;
    padding: 40px 0;
}

.result-icon {
    font-size: 64px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.65));
}

.result-title {
    font-family: 'Oswald';
    font-size: 28px;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.result-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 35px;
    padding: 0 20px;
}

.auto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.auto-row:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

.auto-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auto-sub {
    font-size: 11px;
    color: var(--text-muted);
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- LOCKER ROOM DYNAMIC BUTTON HOVERS --- */
/* Target all inline action buttons generated in JS */
#locker-schedule button,
#locker-club-schedule button,
#locker-club-event-schedule button,
#beacon-list button,
.admin-grid-btn,
.session-tab-content button,
.event-tab-content button,
.doubles-tab-panel button,
#event-detail-actions button,
#session-detail-actions button,
#doubles-detail-actions button,
#doubles-details-page button,
.si-btn,
.list-item .si-btn,
.cal-day,
.friend-btn-header,
.live-pill,
.act-card,
.dock-btn,
.session-item,
.hover-scale {
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.1s ease !important;
}

#locker-schedule button:not(:disabled):hover,
#locker-club-schedule button:not(:disabled):hover,
#locker-club-event-schedule button:not(:disabled):hover,
#beacon-list button:not(:disabled):hover,
.admin-grid-btn:not(:disabled):hover,
.session-tab-content button:not(:disabled):hover,
.event-tab-content button:not(:disabled):hover,
.doubles-tab-panel button:not(:disabled):hover,
#event-detail-actions button:not(:disabled):hover,
#session-detail-actions button:not(:disabled):hover,
#doubles-detail-actions button:not(:disabled):hover,
#doubles-details-page button:not(:disabled):hover,
.si-btn:hover,
.cal-day:hover,
.friend-btn-header:hover,
.live-pill:hover,
.act-card:hover,
.dock-btn:hover,
.session-item:hover,
.hover-scale:hover {
    filter: brightness(1.15) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transform: translateY(-2px);
    cursor: pointer;
}

#locker-schedule button:not(:disabled):active,
#locker-club-schedule button:not(:disabled):active,
#locker-club-event-schedule button:not(:disabled):active,
#beacon-list button:not(:disabled):active,
.admin-grid-btn:not(:disabled):active,
.session-tab-content button:not(:disabled):active,
.event-tab-content button:not(:disabled):active,
.doubles-tab-panel button:not(:disabled):active,
#event-detail-actions button:not(:disabled):active,
#session-detail-actions button:not(:disabled):active,
#doubles-detail-actions button:not(:disabled):active,
#doubles-details-page button:not(:disabled):active,
.si-btn:active,
.cal-day:active,
.friend-btn-header:active,
.live-pill:active,
.act-card:active,
.dock-btn:active,
.session-item:active,
.hover-scale:active {
    filter: brightness(0.9);
    transform: scale(0.96);
}

/* Tab menu buttons (Standings, Matches, Players, etc.) inside modals */
.wave-tab-menu .tab-btn {
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wave-tab-menu .tab-btn:not(.disabled):hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.wave-tab-menu .tab-btn:not(.disabled):active {
    transform: none;
}

/* Active tab must override wave-tab-menu hover/active specificity */
.wave-tab-menu .tab-btn.active,
.wave-tab-menu .tab-btn.active:hover,
.wave-tab-menu .tab-btn.active:focus,
.wave-tab-menu .tab-btn.active:active {
    color: white;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.12));
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Close buttons (✕) */
.close-circle {
    transition: all 0.2s ease;
}

.close-circle:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.close-circle:active {
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0.9);
}

/* --- PATH TABS --- */
.path-tab {
    color: rgba(255, 255, 255, 0.65);
}

.path-tab.active {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

.path-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

.path-pane {
    display: none;
}

.path-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}


/* --- PATH SUB-TABS --- */
.path-sub-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-bottom: 15px;
    scrollbar-width: none;
}

.path-sub-tabs::-webkit-scrollbar {
    display: none;
}

.path-sub-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: 0.2s;
}

.path-sub-tab.active {
    background: var(--clay);
    color: var(--night-sky);
    border-color: var(--clay);
}

/* ==========================================================================
   PREMIUM FRIENDS UI (ft. Player Profile Card Styling)
   ========================================================================== */

.premium-friend-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-friend-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pf-avatar-wrap {
    position: relative;
    margin-right: 14px;
    flex-shrink: 0;
}

.pf-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pf-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pf-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.pf-name {
    font-size: 15px;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-loc {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.pf-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pf-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pf-badge.gender {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.pf-badge.rank {
    background: rgba(56, 189, 248, 0.1);
    color: var(--floodlight);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.pf-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pf-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Manrope', sans-serif;
}

.pf-btn:hover {
    transform: scale(1.05);
}

.pf-btn:active {
    transform: scale(0.95);
}

.pf-btn.primary {
    background: linear-gradient(135deg, var(--turf), #059669);
    color: var(--night-sky);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pf-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.pf-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pf-btn.action-gradient {
    background: linear-gradient(135deg, var(--clay), #f97316);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* =========================================
   LOCKER ROOM — Section Label Dividers & Accordions
   ========================================= */

/* Wrapper for each collapsible section */
.locker-accordion {
    margin-bottom: 0;
}

/* The clickable header row */
.locker-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}

.locker-section-label:active {
    opacity: 0.7;
}

.locker-section-label::before,
.locker-section-label::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08));
}

.locker-section-label::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}

.locker-section-label span {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Chevron icon injected by locker-accordions.js */
.locker-section-label .lsl-chevron {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.locker-accordion.is-open>.locker-section-label .lsl-chevron {
    transform: rotate(90deg);
    color: rgba(255, 255, 255, 0.65);
}

/* The collapsible content wrapper — CSS grid trick for smooth height animation */
.locker-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
    opacity: 0;
    overflow: hidden;
}

.locker-accordion.is-open>.locker-accordion-content {
    grid-template-rows: 1fr;
    opacity: 1;
}

/* Inner div needed for the grid trick to measure content correctly */
.locker-accordion-content>.lsl-inner {
    min-height: 0;
    overflow: hidden;
    padding-top: 8px;
    padding-bottom: 6px;
}

/* Empty state banner — compact one-liner */
.locker-empty-banner {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    padding: 10px 12px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* -- PLAYER BIO section cards -------------------------------- */
.bio-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 14px 12px;
    transition: border-color 0.15s;
}

.bio-card:hover {
    border-color: rgba(167, 139, 250, 0.18);
}

.bio-card-label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bio-card-hint {
    font-size: 8px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.5px;
}

/* Tag pill buttons — dark-theme base */
.bio-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bio-pill:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.bio-pill:active {
    transform: scale(0.96);
}

.bio-pill-active {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   CLUB TIER — Hide Pulse/Evolution UI
   Premier-only features hidden when body.club-tier is active.
   Backend tracking (ELO, stats, hours) is unaffected.
   ═══════════════════════════════════════════════════════════ */

/* Pulse avatar ring + stage elements on ELO card */
body.club-tier #pulse-elo-avatar-ring,
body.club-tier #pulse-elo-avatar-img,
body.club-tier #pulse-elo-stage-label,
body.club-tier #pulse-elo-pts,
body.club-tier #pulse-elo-bar {
    display: none !important;
}

/* Pulse avatar modal (click to enlarge) */
body.club-tier #pulse-avatar-modal {
    display: none !important;
}

/* Pulse evolution overlay (stage-up cinematic) */
body.club-tier #pulse-evolution-overlay {
    display: none !important;
}

/* Pulse tab in leaderboard / rankings panel */
body.club-tier #pwr-tab-pulse {
    display: none !important;
}

/* Pulse widget on The Path hero panel */
body.club-tier #path-pulse-hero,
body.club-tier #path-pulse-glow,
body.club-tier #path-pulse-pts {
    display: none !important;
}

/* Career card pulse section */
body.club-tier #career-pulse {
    display: none !important;
}

/* Admin dev panel (admin-only anyway, but extra safety) */
body.club-tier #admin-pulse-vision {
    display: none !important;
}