:root {
    --bg: #0b1220;
    --panel: #121b2e;
    --panel2: #0f1727;
    --text: #eaf6ff;
    --muted: #9bb3c7;
    --accent: #0fd0ff;
    --danger: #ff5a6a;
    --ok: #5dffb3;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 600px at 20% 0%, #102742 0%, var(--bg) 60%);
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(8,12,20,.65);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
}

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

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(15,208,255,.35);
    box-shadow: 0 0 20px rgba(15,208,255,.12);
    background: radial-gradient(circle at 30% 30%, rgba(15,208,255,.35), rgba(15,208,255,.05));
}

.brand h1 {
    font-size: 16px;
    margin: 0;
    letter-spacing: .4px;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .nav a {
        padding: 8px 10px;
        border-radius: 10px;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.06);
    }

        .nav a:hover {
            background: rgba(15,208,255,.10);
            border-color: rgba(15,208,255,.25);
        }

.container {
    max-width: 1100px;
    margin: 22px auto;
    padding: 0 16px;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: span 12;
}

@media (max-width: 900px) {
    .col-6 {
        grid-column: span 12;
    }
}

h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

p {
    color: var(--muted);
    line-height: 1.5;
}

.input, textarea, select {
    width: 100%;
    background: rgba(0,0,0,.30);
    border: 1px solid rgba(255,255,255,.10);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    outline: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.row {
    display: flex;
    gap: 10px;
}

    .row > * {
        flex: 1;
    }

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(15,208,255,.18);
    border: 1px solid rgba(15,208,255,.35);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
}

    .btn:hover {
        background: rgba(15,208,255,.26);
    }

.btn-danger {
    background: rgba(255,90,106,.18);
    border: 1px solid rgba(255,90,106,.35);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    color: var(--muted);
    font-size: 12px;
}

/* Multi-line information badges: keep long help/summary text inside its border. */
.badge.badge-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 16px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    margin-left: 0;
    margin-right: 0;
}

.flash {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
}

    .flash.success {
        border-color: rgba(93,255,179,.35);
    }

    .flash.warning {
        border-color: rgba(255,190,90,.35);
    }

    .flash.danger {
        border-color: rgba(255,90,106,.35);
    }

    .flash.info {
        border-color: rgba(15,208,255,.25);
    }

.footer {
    margin: 30px 0 18px;
    text-align: center;
    color: rgba(155,179,199,.75);
    font-size: 12px;
}

/* ===== Players/Profiles polish ===== */
.tile {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .5px;
    color: rgba(234,246,255,.9);
    background: radial-gradient(circle at 30% 30%, rgba(15,208,255,.35), rgba(15,208,255,.08));
}

.tile-body p {
    margin: 6px 0;
}

.mini-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.profile-head {
    display: flex;
    gap: 14px;
    align-items: center;
}

.avatar {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.stat-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 140px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
}

/* ===== Modal popup (client demo) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 18px;
}

.modal {
    width: min(560px, 96vw);
    border-radius: 18px;
    padding: 16px 16px 14px;
    background: rgba(8, 16, 26, .92);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
}

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

.modal-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .2px;
}

.modal-close {
    appearance: none;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(234,246,255,.92);
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}

.modal-body {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    color: rgba(234,246,255,.92);
}

    .modal-body .big {
        font-size: 14px;
        font-weight: 800;
        margin-bottom: 6px;
    }

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
}

.modal-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(15,208,255,.95);
    border: 1px solid rgba(15,208,255,.30);
    background: rgba(15,208,255,.08);
}

/* ===== Modal animations ===== */
.modal-overlay {
    animation: modalFade .18s ease-out;
}

.modal {
    animation: modalPop .18s ease-out;
}

@keyframes modalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalPop {
    from {
        transform: translateY(10px) scale(.985);
        opacity: .7;
    }

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

/* ===== Left sidebar navigation (replaces the top menu) ===== */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex: 0 0 auto;
    padding: 14px 14px;
    border-right: 1px solid rgba(255,255,255,.08);
    background: rgba(8,12,20,.65);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.brand--side {
    align-items: flex-start;
    gap: 12px;
    padding: 10px 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
}

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

.brand--side h1 {
    margin: 0;
}

.side-nav {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 42px;
}

.tv-safe-user {
    margin: 12px 12px 0;
    padding: 10px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

.quick-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15,208,255,.35);
    background: rgba(15,208,255,.10);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.quick-logout:hover,
.quick-logout:focus {
    text-decoration: none;
    background: rgba(15,208,255,.18);
    border-color: rgba(15,208,255,.55);
}


.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    color: var(--text);
    text-decoration: none;
}

.nav-ico {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--muted);
}

    .nav-ico svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.side-text {
    font-weight: 800;
    letter-spacing: .1px;
}

.side-link:hover .nav-ico,
.side-link.active .nav-ico {
    color: var(--accent);
}


.side-link:hover {
    text-decoration: none;
    background: rgba(15,208,255,.10);
    border-color: rgba(15,208,255,.25);
}

.side-link.active {
    background: rgba(15,208,255,.14);
    border-color: rgba(15,208,255,.45);
}

.side-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 6px 0;
}

.main {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-topbar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(8,12,20,.65);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.mobile-title {
    font-weight: 900;
    letter-spacing: .3px;
}

.menu-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.menu-btn-icon {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
}

    .menu-btn:hover {
        background: rgba(15,208,255,.10);
        border-color: rgba(15,208,255,.25);
    }

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 40;
}

/* Mobile slide-in sidebar */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        z-index: 50;
        width: 260px;
        transform: translateX(-105%);
        transition: transform .18s ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .overlay {
        display: block;
    }

    .mobile-topbar {
        display: flex;
    }
}

@media (max-width: 520px) {
    .mobile-topbar {
        padding: 10px 12px;
        gap: 12px;
    }

    .menu-btn {
        padding: 10px 13px;
    }

    .mobile-brand-logo {
        width: min(142px, 45vw);
    }
}

/* ===== LEAGUEDESK GRID COLUMN FIX - 2026-06-09 =====
   The registration pages use col-8 and col-4. The original stylesheet only
   defined col-6 and col-12, which caused those cards to collapse to 1 grid
   column each on desktop screens.
*/
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }

.btn--ghost {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.14);
}

@media (max-width: 900px) {
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        grid-column: span 12;
    }

    .row {
        flex-direction: column;
    }
}


/* ===== PUBLIC PLAYER PROFILE PERFORMANCE LAYOUT - 2026-06-15 ===== */
.performance-strip {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15,208,255,.06);
    border: 1px solid rgba(15,208,255,.14);
}

.performance-strip__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.performance-strip__label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.performance-strip__value {
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

.performance-meter {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,.32);
    border: 1px solid rgba(255,255,255,.08);
}

.performance-meter span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15,208,255,.55), rgba(93,255,179,.60));
}

.profile-section-title {
    margin: 16px 0 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.club-rank-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.club-rank-card {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
}

.club-rank-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.club-rank-name {
    font-weight: 800;
    color: var(--text);
}

.club-rank-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.club-rank-stat {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,.20);
    border: 1px solid rgba(255,255,255,.06);
}

.club-rank-stat small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 3px;
}

.club-rank-stat strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.private-profile-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 700px) {
    .club-rank-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===== LEAGUEDESK BRAND REFRESH - 2026-08-05 =====
   Applies the approved public-site black/gold/white theme while keeping the
   existing LeagueDesk teal/cyan accents for live/active states.
*/
:root {
    --bg: #04080f;
    --panel: #121b2a;
    --panel2: #09101b;
    --text: #eef8ff;
    --muted: #aec7dc;
    --accent: #ffc31d;
    --danger: #ff5a6a;
    --ok: #00f58a;
    --cyan: #00c8f8;
    --cyan-2: #0b6f88;
    --gold: #ffc31d;
    --gold-2: #f0a900;
    --gold-soft: #ffe891;
    --line: rgba(142, 197, 232, 0.15);
    --gold-line: rgba(255, 195, 29, 0.34);
}

body {
    background:
        radial-gradient(circle at 22% 8%, rgba(0,200,248,.16), transparent 34rem),
        radial-gradient(circle at 82% 22%, rgba(255,195,29,.13), transparent 36rem),
        linear-gradient(180deg, #02060c, #07111f 36%, #04080f 100%);
}

a { color: var(--gold-soft); }
a:hover { color: #ffffff; }

.sidebar,
.mobile-topbar {
    background: rgba(3, 9, 16, .90);
    border-color: rgba(0, 200, 248, .13);
    box-shadow: 14px 0 46px rgba(0,0,0,.22);
}

.leaguedesk-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 10px 14px;
    border: 1px solid rgba(255,195,29,.24);
    background:
        radial-gradient(circle at 25% 0%, rgba(0,200,248,.12), transparent 62%),
        linear-gradient(145deg, rgba(9,16,27,.84), rgba(3,8,16,.96));
    box-shadow: 0 14px 42px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.leaguedesk-side-logo-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.leaguedesk-side-logo {
    display: block;
    width: min(178px, 100%);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(255,195,29,.20));
}

.brand-tagline {
    color: #d7e8f7;
    background: rgba(255,195,29,.055);
    border-color: rgba(255,195,29,.22);
    font-weight: 750;
}

.mobile-title-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-brand-logo {
    width: 142px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255,195,29,.18));
}

.card,
.modal,
.feature-card,
.club-rank-card,
.stat,
.tile-avatar,
.avatar,
.side-user,
.tv-safe-user {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    border-color: rgba(142,197,232,.13);
    box-shadow: 0 18px 52px rgba(0,0,0,.26);
}

.btn,
button.btn,
a.btn {
    background: linear-gradient(180deg, #ffd84d, #f2a900);
    border-color: rgba(255,210,68,.94);
    color: #120e03;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(255,195,29,.18), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn:hover,
button.btn:hover,
a.btn:hover {
    color: #120e03;
    background: linear-gradient(180deg, #ffe485, #ffc31d);
    box-shadow: 0 0 34px rgba(255,195,29,.30), inset 0 1px 0 rgba(255,255,255,.35);
    text-decoration: none;
}
.btn-secondary,
.btn--ghost,
a.btn-secondary,
button.btn-secondary {
    background: rgba(255,255,255,.045);
    border-color: rgba(255,195,29,.26);
    color: #eef8ff;
    box-shadow: none;
}
.btn-secondary:hover,
.btn--ghost:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
    background: rgba(255,195,29,.10);
    border-color: rgba(255,195,29,.44);
    color: #ffffff;
}
.btn-danger {
    background: rgba(255,90,106,.18) !important;
    border-color: rgba(255,90,106,.42) !important;
    color: #fff !important;
}

.badge,
.modal-tag {
    border-color: rgba(255,195,29,.26);
    background: rgba(255,195,29,.06);
    color: var(--gold-soft);
}

.input, textarea, select {
    background: rgba(0,0,0,.34);
    border-color: rgba(255,195,29,.16);
    color: var(--text);
}
.input:focus, textarea:focus, select:focus {
    border-color: rgba(255,195,29,.58);
    box-shadow: 0 0 0 3px rgba(255,195,29,.10);
}

.nav-ico,
.side-link:hover .nav-ico,
.side-link.active .nav-ico {
    color: var(--gold);
}
.side-link {
    background: rgba(255,255,255,.035);
    border-color: rgba(142,197,232,.10);
}
.side-link:hover {
    background: rgba(255,195,29,.08);
    border-color: rgba(255,195,29,.30);
}
.side-link.active {
    background: linear-gradient(90deg, rgba(255,195,29,.16), rgba(0,200,248,.08));
    border-color: rgba(255,195,29,.52);
    box-shadow: 0 0 26px rgba(255,195,29,.10);
}

.quick-logout,
.menu-btn {
    border-color: rgba(255,195,29,.36);
    background: rgba(255,195,29,.08);
    color: var(--text);
}
.quick-logout:hover,
.quick-logout:focus,
.menu-btn:hover {
    border-color: rgba(255,195,29,.62);
    background: rgba(255,195,29,.14);
}

.flash.success { border-color: rgba(0,245,138,.42); }
.flash.warning { border-color: rgba(255,195,29,.44); }
.flash.info { border-color: rgba(255,195,29,.32); }

.performance-strip {
    background: linear-gradient(135deg, rgba(255,195,29,.08), rgba(0,200,248,.04));
    border-color: rgba(255,195,29,.20);
}
.performance-meter span {
    background: linear-gradient(90deg, #00c8f8, #00f58a, #ffc31d);
}

.footer {
    color: rgba(174,199,220,.75);
}
