/* Race Plus */
.race-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(0, 240, 255, 0.28), transparent 36%),
        radial-gradient(circle at 85% 25%, rgba(255, 0, 128, 0.26), transparent 34%),
        linear-gradient(135deg, rgba(10, 16, 36, 0.98), rgba(20, 8, 42, 0.95));
    border: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.race-hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -70px 12%;
    height: 130px;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 14px, transparent 14px 28px),
        linear-gradient(90deg, transparent, rgba(0,240,255,0.32), transparent);
    transform: rotate(-4deg);
    opacity: 0.22;
}

.race-hero h3 {
    position: relative;
    z-index: 1;
    margin: 4px 0 8px;
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.race-hero p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
    line-height: 1.55;
}

.race-hero-small {
    align-items: center;
    padding: 18px 20px;
}

.race-hero-small h3 {
    font-size: 22px;
}

.race-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.race-hero-track {
    position: relative;
    z-index: 1;
    min-width: 180px;
    display: grid;
    grid-template-columns: repeat(2, 68px);
    gap: 12px;
    align-content: center;
}

.race-hero-track span,
.race-hero-orbit {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 26px rgba(0, 240, 255, 0.08);
    font-size: 30px;
}

.race-hero-track span:nth-child(2),
.race-hero-track span:nth-child(3) {
    transform: translateY(12px);
}

.race-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.race-event-card,
.race-settings-card,
.race-event-admin-form,
.race-admin-event-row {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(7, 10, 22, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.race-event-card.live {
    border-color: rgba(245, 158, 11, 0.42);
}

.race-event-card.finished {
    border-color: rgba(0, 255, 170, 0.24);
}

.race-event-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.race-event-top h4 {
    margin: 4px 0;
    color: #fff;
    font-size: 18px;
}

.race-event-top p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.race-status-pill {
    height: fit-content;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.26);
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 800;
}

.race-h2h-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255, 0, 85, 0.14), rgba(0, 240, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.race-h2h-strip span {
    color: #ff6b9d;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.race-h2h-strip em {
    color: var(--text-muted);
    font-style: normal;
}

.race-pick-form,
.race-event-admin-form,
.race-admin-event-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.race-pick-form label,
.race-settings-grid label,
.race-event-admin-form label,
.race-admin-event-row label,
.race-admin-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.race-field-hint {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.race-duel-explainer {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.18);
}

.race-duel-explainer strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent-cyan);
}

.race-duel-explainer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.race-pick-form select,
.race-settings-grid input,
.race-event-admin-form input,
.race-event-admin-form textarea,
.race-admin-event-row input,
.race-admin-event-row textarea,
.race-admin-grid input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.26);
    color: #fff;
    padding: 10px 11px;
}

.race-podium-inputs,
.race-settings-grid,
.race-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.race-save-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-neon));
    color: #001018;
    font-weight: 900;
}

.race-locked {
    margin: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

.race-podium {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    gap: 10px;
    align-items: end;
    margin: 12px 0;
}

.race-podium-place {
    display: flex;
    min-height: 88px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.race-podium-place span {
    font-size: 26px;
}

.race-podium-place strong {
    color: #fff;
    font-size: 13px;
}

.race-podium-place.p1 {
    min-height: 116px;
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.22), rgba(255, 255, 255, 0.05));
    border-color: rgba(250, 204, 21, 0.38);
}

.race-score-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.2);
}

.race-score-box strong {
    color: var(--accent-neon);
    font-size: 22px;
}

.race-score-box span,
.race-detail {
    color: var(--text-muted);
    font-size: 12px;
}

.race-detail {
    margin-top: 10px;
}

.race-detail div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.race-leaderboard {
    display: grid;
    gap: 10px;
}

.race-lb-card {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.race-lb-rank {
    font-weight: 900;
    color: var(--accent-cyan);
}

.race-lb-card strong {
    color: var(--accent-neon);
}

.race-lb-card span:last-child {
    color: var(--text-muted);
    font-size: 12px;
}

.race-admin-wrap {
    display: grid;
    gap: 16px;
}

.race-admin-events {
    display: grid;
    gap: 12px;
}

.race-admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.race-create-choice {
    padding: 12px;
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.06);
}

@media (max-width: 768px) {
    .race-hero {
        flex-direction: column;
        padding: 18px;
        border-radius: 18px;
    }

    .race-hero-track {
        min-width: 0;
        grid-template-columns: repeat(4, 1fr);
    }

    .race-hero-track span,
    .race-hero-orbit {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 24px;
    }

    .race-hero-track span:nth-child(2),
    .race-hero-track span:nth-child(3) {
        transform: none;
    }

    .race-event-grid,
    .race-podium-inputs,
    .race-settings-grid,
    .race-admin-grid {
        grid-template-columns: 1fr;
    }

    .race-event-top,
    .race-score-box,
    .race-h2h-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .race-lb-card {
        grid-template-columns: 42px 1fr;
    }

    .race-lb-card strong,
    .race-lb-card span:last-child {
        grid-column: 2;
    }
}
/**
 * Tipovačka Pro - Premium Cyber Theme & Multi-Layout System
 */

:root {
    --bg-base: #060b13;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;

    --accent-cyan: #00f0ff;
    --accent-neon: #00ffaa;
    --accent-purple: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glow-cyan: rgba(0, 240, 255, 0.25);
    --glow-neon: rgba(0, 255, 170, 0.2);

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- PREPÍNAČ LAYOUTOV --- */
.layout-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.column-selector {
    display: none;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.column-selector-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.col-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
}
.col-btn.active,
.col-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}
.layout-switcher {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-sm);
    gap: 4px;
    margin-right: 15px;
}

.layout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.layout-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.layout-btn.active {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}
.mobile-menu-toggle {
    display: none;
}

/* --- NAVIGÁCIA --- */
.top-nav {
    position: sticky;
    top: 0;
    min-height: 76px;
    height: auto;
    background: rgba(6, 11, 19, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    z-index: 999;
    padding: 0 24px 16px;
}

.nav-sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-brand strong {
    font-size: 18px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.06);
}

.user-zone {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-badge {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.mobile-league-bar {
    display: none;
}

.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 32px;
    transition: var(--transition);
}

.competition-header-box {
    margin-top: 16px;
    margin-bottom: 28px;
    padding-top: 4px;
    animation: compHeaderFadeIn 0.55s ease-out both;
}
@keyframes compHeaderFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.competition-header-box h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 24px;
    margin: 0 0 8px;
}

/* --- KARTY ZÁPASOV --- */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.match-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 2px 10px var(--glow-cyan);
}
body.modal-open .match-card {
    transform: none !important;
}
[id^="pointsModal_"].points-modal-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
[id^="pointsModal_"].points-modal-open > div {
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}
.match-row-compact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    width: 100%;
    min-height: 44px;
}
.match-col-date {
    flex: 0 0 82px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
    white-space: nowrap;
}
.match-col-teams {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.team-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.team-name { color: var(--text-main); font-weight: 500; font-size: 13px; }
.team-name-strong { font-weight: 700; font-size: 14px; }
.match-vs {
    color: var(--accent-cyan);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}
.match-vs-hint { font-size: 11px; color: var(--text-muted); }
.match-col-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.match-score-sep {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
}
.bet-input {
    width: 34px;
    padding: 5px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
}
.match-tip-input {
    width: 110px;
    padding: 5px 8px;
    font-size: 12px;
}
.match-save-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
    min-width: 34px;
}
.match-others-btn {
    padding: 4px 8px !important;
    font-size: 12px !important;
    opacity: 0.85;
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.text-locked { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.match-finished-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
}
.match-date-finished { align-self: flex-start; font-size: 11px; color: var(--text-muted); }

.match-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.match-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flag-badge {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
}

.flag-badge-img {
    width: 32px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
}

.vs-divider {
    color: var(--accent-cyan);
    font-weight: 400;
    font-size: 13px;
}

.match-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.match-bet {
    display: flex;
    align-items: center;
    gap: 16px;
}

.match-result-badge {
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
}

.match-result-badge strong {
    color: var(--accent-neon);
}

.bet-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-input {
    width: 46px;
    height: 38px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.bet-input:focus {
    border-color: var(--accent-cyan);
}
.match-row-compact .bet-input {
    width: 34px;
    height: 30px;
    font-size: 13px;
    padding: 4px;
}
.match-row-compact .match-tip-input {
    width: 110px;
    height: 30px;
    font-size: 12px;
}

/* --- VŠEOBECNÉ KOMPONENTY --- */
.card {
    background: linear-gradient(145deg, var(--bg-surface), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.competition-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.switcher-select {
    background: var(--bg-surface);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Grid Štatistík */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-purple);
}
.stat-card:nth-child(2)::before { background: var(--accent-cyan); }
.stat-card:nth-child(3)::before { background: var(--accent-neon); }
.stat-card:nth-child(4)::before { background: #e11d48; }

.stat-card span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.stat-card strong { font-size: 32px; color: var(--text-main); font-weight: 800; }

.btn {
    background: linear-gradient(135deg, var(--accent-neon), #00cc88);
    color: #060b13; font-weight: 700; padding: 10px 20px; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 255, 170, 0.4); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: #ef4444; color: #fff; box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.form-control {
    width: 100%; padding: 12px; background: var(--bg-base); border: 1px solid var(--border-color); color: #fff; border-radius: var(--radius-sm); outline: none;
}
.alert { padding: 16px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 14px; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #fca5a5; }
.alert-success { background: rgba(0, 255, 170, 0.15); border: 1px solid var(--accent-neon); color: #6ee7b7; }

/* --- ARENA VÝZIEV --- */
.arena-section {
    margin-bottom: 24px;
}

.arena-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.arena-header-row h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.arena-header-row p {
    color: var(--text-muted);
    font-size: 13px;
}

.arena-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.arena-filters label {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    min-width: 150px;
    text-transform: uppercase;
}

.arena-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.arena-challenge-card {
    background: rgba(6, 11, 19, 0.45);
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    transition: var(--transition);
}

.arena-challenge-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 20px var(--glow-cyan);
    transform: translateY(-2px);
}

.arena-challenge-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.arena-status-badge,
.arena-joined-badge {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 5px 9px;
    text-transform: uppercase;
}

.arena-status-badge.status-new {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-cyan);
}

.arena-status-badge.status-ongoing {
    background: rgba(0, 255, 170, 0.12);
    color: var(--accent-neon);
}

.arena-status-badge.status-ended {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

.arena-joined-badge {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
}

.arena-challenge-card h4 {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.arena-challenge-meta {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    font-size: 13px;
    gap: 5px;
}

.arena-challenge-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.arena-challenge-actions a {
    text-decoration: none;
}

.arena-pagination {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.pagination-disabled {
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--radius-sm);
    color: rgba(148, 163, 184, 0.55);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
}

/* ==========================================================================
   🔥 STRUKTURÁLNE ZMENY PRE JEDNOTLIVÉ DIZAJNY (HTML/ROOT REŠTRUKTURALIZÁCIA)
   ========================================================================== */

/* LAYOUT 1: Dashboard (Predvolený riadkový stav) */
.layout-dashboard .main-content { max-width: 1200px; }

/* LAYOUT 2: Split Screen Stream (Fixné stats vľavo, obsah vpravo) */
.layout-split .main-content {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}
.layout-split .dashboard-grid { grid-template-columns: 1fr; position: sticky; top: 108px; }
.layout-split .competition-bar { grid-column: span 2; }

/* LAYOUT 3: Modulárny Grid Kartičiek (Boxy namiesto riadkov) */
.layout-cards .matches-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.layout-cards .match-card {
    margin-bottom: 0;
    border-radius: var(--radius-md);
}
.layout-cards .match-row-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    min-height: 0;
}
.layout-cards .match-col-date { flex: none; }
.layout-cards .match-col-teams {
    justify-content: center;
    text-align: center;
}
.layout-cards .match-col-actions {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.layout-cards .match-header { justify-content: center; flex-direction: column; }
.layout-cards .match-bet { flex-direction: column; width: 100%; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 14px; }
.layout-cards .bet-inputs { justify-content: center; width: 100%; }

/* LAYOUT 1: Riadky – plná šírka, tenké */
.layout-dashboard .matches-list-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.layout-dashboard .match-card {
    margin-bottom: 0;
}
.layout-dashboard .match-row-compact {
    padding: 7px 12px;
    min-height: 40px;
    gap: 12px;
}
.layout-dashboard .match-col-teams {
    flex-wrap: nowrap;
    overflow: hidden;
}
.layout-dashboard .match-card-finished .match-finished-center {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 7px 12px;
    text-align: left;
}
.layout-dashboard .match-card-finished .match-date-finished {
    flex: 0 0 82px;
    align-self: center;
}
.layout-dashboard .match-card-finished .match-finished-center > div:first-of-type {
    flex: 1;
    max-width: none !important;
    margin: 0 !important;
    gap: 10px !important;
}
.layout-dashboard .match-card-finished .match-points-summary {
    flex: 0 0 auto;
    margin-top: 0 !important;
    font-size: 12px !important;
}
.layout-dashboard .match-card-finished .match-finished-center > div:last-child {
    margin-top: 0 !important;
}
.layout-dashboard .match-card-finished .match-finished-center .btn-sm {
    padding: 4px 8px !important;
    font-size: 11px !important;
}
.layout-cards .match-card-finished .match-finished-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 14px;
    text-align: center;
}
@media (max-width: 900px) {
    .match-row-compact {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .match-col-date { flex: 0 0 100%; }
    .match-col-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
    .layout-dashboard .match-card-finished .match-finished-center {
        flex-wrap: wrap;
    }
    .layout-dashboard .match-card-finished .match-date-finished {
        flex: 0 0 100%;
    }
}

/* LAYOUT 4: Cyber-Minimal Ticker (Ultra zhuštený flat dizajn) */
.layout-minimal .main-content { max-width: 1000px; }
.layout-minimal .card { background: transparent; border: none; padding: 0; }
.layout-minimal .dashboard-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; background: var(--bg-surface); padding: 12px; border-radius: var(--radius-sm); border-bottom: 2px solid var(--accent-cyan); }
.layout-minimal .stat-card { background: transparent; padding: 8px; flex-direction: row; justify-content: space-between; align-items: center; }
.layout-minimal .stat-card::before { display: none; }
.layout-minimal .stat-card strong { font-size: 20px; }
.layout-minimal .match-card { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.05); border-radius: 0; padding: 12px 0; margin-bottom: 0; }
.layout-minimal .match-card:hover { box-shadow: none; background: rgba(255,255,255,0.02); transform: none; }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .layout-split .main-content { grid-template-columns: 1fr; }
    .layout-split .dashboard-grid { grid-template-columns: repeat(2, 1fr); position: static; }
    .layout-split .competition-bar { grid-column: span 1; }
}
@media (max-width: 768px) {
    body.is-app {
        padding-bottom: 0;
    }
    body.is-landing {
        padding-bottom: 0;
    }
    .top-nav {
        height: auto;
        position: sticky;
        top: 0;
        padding: 8px 10px;
    }
    .nav-container {
        flex-direction: row;
        height: auto;
        padding: 0;
        gap: 8px;
        align-items: center;
    }
    .nav-brand {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }
    body.is-app .nav-brand .switcher-select {
        display: none;
    }
    .nav-brand strong {
        font-size: 0;
        width: 28px;
        flex: 0 0 28px;
    }
    .nav-brand strong::before {
        content: "🏆";
        font-size: 18px;
        -webkit-text-fill-color: initial;
    }
    .switcher-select {
        min-width: 0;
        width: 100%;
        max-width: none;
        height: 34px;
        padding: 6px 30px 6px 10px;
        font-size: 12px;
    }
    .user-zone {
        flex: 0 0 auto;
        gap: 6px;
    }
    .layout-controls {
        gap: 5px;
    }
    .layout-controls .layout-btn[data-layout],
    .column-selector {
        display: none !important;
    }
    .app-theme-toggle {
        width: 34px;
        height: 34px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 34px;
        padding: 0 10px;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        color: var(--text-main);
        font-size: 12px;
        font-weight: 800;
    }
    .lang-switcher {
        margin-right: 4px;
    }
    .lang-switcher-btn {
        padding: 3px 6px 3px 4px;
        font-size: 10px;
    }
    .lang-switcher-menu {
        min-width: 150px;
    }
    .nav-sub-links {
        position: sticky;
        top: 50px;
        z-index: 9999;
        display: none !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        padding: 10px !important;
        background: rgba(6, 11, 19, 0.96);
        border-top: 1px solid var(--border-color) !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.28);
        backdrop-filter: blur(18px);
    }
    .nav-sub-links.mobile-menu-open {
        display: grid !important;
    }
    html.landing-light .nav-sub-links {
        background: rgba(255,255,255,0.96);
        box-shadow: 0 -10px 30px rgba(15,23,42,0.12);
    }
    .nav-sub-links .sub-link,
    .nav-sub-links > a {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        min-height: 42px;
        margin: 0 !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.1;
        text-align: left;
        white-space: nowrap;
        background: rgba(255,255,255,0.035);
        border: 1px solid rgba(255,255,255,0.05);
    }
    .mobile-nav-matches::before { content: "⚽"; font-size: 16px; }
    .mobile-nav-leaderboard::before { content: "🏆"; font-size: 16px; }
    .mobile-nav-arena::before { content: "⚔️"; font-size: 16px; }
    .mobile-nav-chat::before { content: "💬"; font-size: 16px; }
    .mobile-nav-profile::before { content: "👤"; font-size: 16px; }
    .nav-sub-links .sub-link.active,
    .nav-sub-links > a.active {
        background: rgba(0,240,255,0.12) !important;
        color: var(--accent-cyan) !important;
        border-color: rgba(0,240,255,0.22);
    }
    .nav-badge {
        margin-left: auto;
        position: static;
    }
    .main-content {
        padding: 14px 10px 18px;
    }
    .mobile-league-bar {
        display: block;
        position: sticky;
        top: 50px;
        z-index: 998;
        padding: 8px 10px 10px;
        background: rgba(6, 11, 19, 0.94);
        border-bottom: 1px solid rgba(51, 65, 85, 0.55);
        backdrop-filter: blur(16px);
    }
    .nav-sub-links.mobile-menu-open + .mobile-league-bar,
    .top-nav:has(.mobile-menu-open) + .mobile-league-bar {
        top: 50px;
    }
    .mobile-league-bar label {
        display: block;
        margin-bottom: 5px;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.6px;
        text-transform: uppercase;
    }
    .mobile-league-select {
        width: 100%;
        min-height: 42px;
        padding: 9px 36px 9px 12px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        color: var(--text-main);
        font-size: 14px;
        font-weight: 700;
        outline: none;
    }
    html.landing-light .mobile-league-bar {
        background: rgba(255, 255, 255, 0.96);
        border-bottom-color: #e5e7eb;
    }
    html.landing-light .mobile-league-select {
        background: #fff;
        color: #111827;
        border-color: #d1d5db;
    }
    .competition-header-box {
        padding: 12px !important;
        margin-bottom: 14px !important;
        border-radius: 12px;
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--border-color);
    }
    .competition-header-box h2 {
        font-size: 18px !important;
        margin-bottom: 6px !important;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .share-league-btn {
        display: block;
        margin: 8px 0 0 !important;
        width: 100%;
    }
    .dashboard-grid, .layout-minimal .dashboard-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .stat-card {
        padding: 14px;
        border-radius: 12px;
    }
    .stat-card strong {
        font-size: 22px;
    }
    .view-header-row {
        margin-bottom: 14px !important;
    }
    .filters-toggle {
        display: flex !important;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        color: var(--text-main);
        font-weight: 700;
    }
    .filters-panel {
        display: none !important;
        margin-top: 10px;
        padding: 10px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
    }
    .filters-panel.open {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }
    .filters-panel select,
    .filters-panel .form-control {
        width: 100% !important;
        min-width: 0;
        font-size: 12px;
        padding: 9px 8px;
    }
    .match-card { flex-direction: column !important; align-items: stretch !important; gap: 0; }
    .match-row-compact {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
        min-height: 0;
    }
    .match-col-date {
        flex: none;
        font-size: 11px;
    }
    .match-col-teams {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        overflow: visible !important;
    }
    .team-inline {
        width: 100%;
    }
    .match-vs {
        display: none;
    }
    .team-name {
        font-size: 14px;
    }
    .match-col-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
        flex-wrap: wrap;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    html.landing-light .match-col-actions {
        border-top-color: #e5e7eb;
    }
    .match-row-compact .bet-input {
        width: 42px;
        height: 34px;
    }
    .match-bet { width: 100%; justify-content: space-between; }
    .layout-cards .matches-list-container { grid-template-columns: 1fr; }
    .layout-dashboard .match-card-finished .match-finished-center,
    .layout-cards .match-card-finished .match-finished-center {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-height: 0;
        padding: 12px;
        text-align: left;
    }
    .layout-dashboard .match-card-finished .match-date-finished {
        flex: none;
        align-self: auto;
    }
    .layout-dashboard .match-card-finished .match-finished-center > div:first-of-type {
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: none !important;
        width: 100% !important;
    }
    .layout-dashboard .match-card-finished .match-finished-center > div:first-of-type > div {
        justify-content: flex-start !important;
        text-align: left !important;
    }
    .layout-dashboard .match-card-finished .match-points-summary {
        flex-wrap: wrap;
    }
    .leaderboard-table,
    .leaderboard-table thead,
    .leaderboard-table tbody,
    .leaderboard-table tr,
    .leaderboard-table td {
        display: block;
        width: 100%;
    }
    .leaderboard-table thead {
        display: none;
    }
    .leaderboard-table tbody {
        display: grid;
        gap: 10px;
    }
    .leaderboard-table tr {
        position: relative;
        padding: 12px;
        border: 1px solid var(--border-color) !important;
        border-radius: 14px;
        background: var(--bg-card);
    }
    .leaderboard-table td {
        padding: 3px 0 !important;
        text-align: left !important;
    }
    .leaderboard-table td:first-child {
        position: absolute;
        top: 12px;
        right: 12px;
        width: auto;
        font-size: 16px;
    }
    .leaderboard-table td:nth-child(2) {
        padding-right: 48px !important;
        margin-bottom: 8px;
    }
    .leaderboard-table td:nth-child(3)::before {
        content: "Body: ";
        color: var(--text-muted);
        font-weight: 600;
    }
    .leaderboard-table td:nth-child(4)::before {
        content: "Presnosť: ";
        color: var(--text-muted);
        font-weight: 600;
    }
    .leaderboard-table td:nth-child(5) {
        margin-top: 8px;
    }
    .leaderboard-table .btn-arena-challenge {
        width: 100%;
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }
    .portal-footer {
        margin-top: 20px;
        padding: 20px 14px 12px;
    }
    .portal-footer-inner {
        gap: 14px;
        grid-template-columns: 1fr;
    }
    .portal-footer-tagline {
        display: none;
    }
    .portal-footer-bottom {
        margin-top: 12px;
        padding-top: 10px;
    }
    body.is-app .portal-footer {
        display: none;
    }
    body.is-landing .landing-top-bar {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    body.is-landing .landing-main {
        padding: 48px 12px 18px;
        gap: 18px;
    }
    body.is-landing .auth-container {
        margin-bottom: 8px;
        padding: 20px 16px;
        border-radius: 18px;
    }
    body.is-landing .public-league-picker-prominent {
        margin-bottom: 18px;
        padding: 14px;
    }
    body.is-landing .public-league-row {
        flex-direction: column;
    }
    body.is-landing .public-league-btn,
    body.is-landing .public-league-btn-primary {
        width: 100%;
    }
    body.is-landing .landing-content h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    body.is-landing .landing-content p.hero-p {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
    body.is-landing .landing-stats {
        gap: 10px;
        justify-content: center;
        margin-bottom: 18px;
    }
    body.is-landing .landing-stat {
        flex: 1 1 42%;
        padding: 10px;
        background: rgba(255,255,255,0.035);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 12px;
    }
    body.is-landing .portal-footer {
        margin-top: 8px;
        padding: 16px 14px 10px;
        background: rgba(4, 7, 15, 0.72);
    }
    body.is-landing .portal-footer-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    body.is-landing .portal-footer-col {
        align-items: center;
        gap: 4px;
    }
    body.is-landing .portal-footer-col:nth-child(2) {
        display: none;
    }
    body.is-landing .portal-footer-label {
        margin-bottom: 2px;
    }
    body.is-landing .portal-footer-bottom {
        font-size: 11px;
    }
    [id^="pointsModal_"].points-modal-open {
        padding: 10px !important;
        align-items: flex-start !important;
        overflow-y: auto;
    }
    [id^="pointsModal_"].points-modal-open > div {
        width: 100% !important;
        max-width: none !important;
        max-height: none;
        margin: 10px 0 18px;
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }
    #betsModal {
        padding: 10px;
        align-items: flex-start !important;
        overflow-y: auto;
    }
    #betsModal > .card {
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 10px 0 18px;
        border-radius: 16px;
    }
}
/* --- VLASTNÝ POČET STĹPCOV PRE KARTY --- */
/* Ak si používateľ manuálne zvolí počet (3, 4 alebo 5) */
html[data-columns="3"] .layout-cards .matches-list-container { 
    grid-template-columns: repeat(3, 1fr); 
}
html[data-columns="4"] .layout-cards .matches-list-container { 
    grid-template-columns: repeat(4, 1fr); 
}
html[data-columns="5"] .layout-cards .matches-list-container { 
    grid-template-columns: repeat(5, 1fr); 
}
html[data-columns="6"] .layout-cards .matches-list-container { 
    grid-template-columns: repeat(6, 1fr); 
}

/* Ochrana: Na mobiloch a tabletoch to vždy zredukujeme, inak by to bolo nečitateľné */
@media (max-width: 1200px) {
    html[data-columns] .layout-cards .matches-list-container { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}
@media (max-width: 768px) {
    html[data-columns] .layout-cards .matches-list-container { 
        grid-template-columns: 1fr !important; 
    }
}
/* --- VLASTNÝ POČET STĹPCOV PRE KARTY --- */
html[data-columns="3"].layout-cards .matches-list-container { 
    grid-template-columns: repeat(3, 1fr) !important; 
}
html[data-columns="4"].layout-cards .matches-list-container { 
    grid-template-columns: repeat(4, 1fr) !important; 
}
html[data-columns="5"].layout-cards .matches-list-container { 
    grid-template-columns: repeat(5, 1fr) !important; 
}
html[data-columns="6"].layout-cards .matches-list-container { 
    grid-template-columns: repeat(6, 1fr) !important; 
}

/* Ochrana pre mobily a tablety */
@media (max-width: 1200px) {
    html[data-columns].layout-cards .matches-list-container { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}
@media (max-width: 768px) {
    html[data-columns].layout-cards .matches-list-container { 
        grid-template-columns: 1fr !important; 
    }
}

/* --- VLAJKY - EDITÁCIA A UPLOAD --- */
.flag-upload-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    line-height: 0;
}

.flag-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
}

.flag-upload-container:hover .flag-edit-overlay {
    display: flex;
}

.flag-input-hidden {
    display: none !important;
}

.team-flag-edit {
    border: 2px dashed var(--border-color);
    padding: 2px;
    border-radius: 50%;
}

/* Admin Panel - Sekcie */
.admin-section {
    margin-top: 24px;
}

.admin-subsection {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.admin-subsection h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid pre upload vlajok */
.flag-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.flag-upload-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(51, 65, 85, 0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.flag-upload-item label {
    color: #fff;
    display: block;
    margin-bottom: 8px;
    word-break: break-word;
}

/* Admin events list */
.admin-event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    gap: 12px;
}

.admin-title {
    font-weight: 600;
    color: #fff;
    min-width: 200px;
}

.admin-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-mini {
    width: 60px !important;
    padding: 6px !important;
    font-size: 12px !important;
}
.matches-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.matches-page-wrap {
    width: 100%;
}

.match-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
/* --- CENTROVANIE VÝSLEDKU A BODOV --- */
.match-card.finished {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.result-center-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    gap: 20px;
}

.team-side {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.team-side.team-a { justify-content: flex-end; text-align: right; }
.team-side.team-b { justify-content: flex-start; text-align: left; }

.score-middle {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 90px;
    text-align: center;
}

.match-points-info {
    margin-top: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.points-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
}
.points-badge.success {
    background: rgba(0, 255, 200, 0.15);
    color: #00ffcc;
}
.points-badge.zero {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* --- NOVÉ REŽIMY A ŠTÝLY --- */

/* 1. SVETLÝ REŽIM (Light Mode) */
.layout-light {
    --bg-primary: #f4f6f9;
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --accent-neon: #0d6efd;
    --glow-neon: rgba(13, 110, 253, 0.15);
}
.layout-light .score-middle {
    background: #e9ecef;
}
.layout-light .points-badge.success {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

/* 2. TMAVÝ REŽIM (Pure Dark bez neónov) */
.layout-dark {
    --bg-primary: #0f1015;
    --bg-card: #181a22;
    --text-main: #f1f3f5;
    --text-muted: #969faf;
    --border-color: #2a2e3d;
    --accent-neon: #4c6ef5;
    --glow-neon: rgba(76, 110, 245, 0.2);
}

/* 3. BONUS: CYBERPUNK REŽIM (Retro-futuristický štýl) */
.layout-cyberpunk {
    --bg-primary: #0b0314;
    --bg-card: #16072b;
    --text-main: #00ffcc;
    --text-muted: #ff007f;
    --border-color: #ff007f;
    --accent-neon: #39ff14;
    --glow-neon: rgba(57, 255, 20, 0.4);
    font-family: 'Courier New', monospace;
}
.layout-cyberpunk .match-card {
    border: 2px solid var(--border-color);
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}
.layout-cyberpunk .score-middle {
    color: #fffb00;
    border-color: #00ffcc;
    text-shadow: 0 0 5px #fffb00;
}
/* --- VIZUÁLNE STAVY TIPOV --- */
.bet-input.is-saved, .form-control.is-saved {
    border-color: var(--accent-neon) !important;
    background: rgba(0, 255, 170, 0.05) !important;
    color: var(--accent-neon) !important;
}

.bet-input.is-modified, .form-control.is-modified {
    border-color: #f59e0b !important; /* Oranžová farba pre neuloženú zmenu */
    background: rgba(245, 158, 11, 0.05) !important;
    color: #f59e0b !important;
}

/* --- PREPÍNAČ JAZYKOV (dropdown) --- */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}
.lang-switcher-dropdown {
    z-index: 12000;
}
.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px 4px 5px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-main);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.lang-switcher-btn:hover,
.lang-switcher-dropdown.is-open .lang-switcher-btn {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}
.lang-switcher-code {
    min-width: 1.6em;
}
.lang-switcher-chevron {
    font-size: 10px;
    opacity: 0.75;
    transition: transform 0.15s ease;
}
.lang-switcher-dropdown.is-open .lang-switcher-chevron {
    transform: rotate(180deg);
}
.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 168px;
    max-height: min(320px, 70vh);
    overflow-y: auto;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 22, 0.96);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
}
.lang-switcher-menu[hidden] {
    display: none !important;
}
.lang-switcher-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease;
}
.lang-switcher-option:hover {
    background: rgba(0, 240, 255, 0.08);
    color: #fff;
}
.lang-switcher-option.active {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-cyan);
    font-weight: 700;
}
.lang-switcher-option-text {
    white-space: nowrap;
}
.lang-flag-img {
    display: block;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}
/* legacy flag links (fallback) */
.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    opacity: 0.55;
    transition: var(--transition);
    line-height: 0;
    text-decoration: none;
}
.lang-flag:hover {
    opacity: 1;
    border-color: rgba(0, 240, 255, 0.5);
}
.lang-flag.active {
    opacity: 1;
    border-color: var(--accent-cyan);
}
.lang-switcher-landing .lang-switcher-btn {
    background: rgba(0, 0, 0, 0.45);
}
.lang-switcher-landing .lang-switcher-menu {
    right: 0;
}

/* --- TOAST --- */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.app-toast {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.app-toast.show { transform: translateX(0); opacity: 1; }
.app-toast-success { border-color: rgba(0,255,170,0.4); color: var(--accent-neon); }
.app-toast-error { border-color: rgba(239,68,68,0.5); color: #f87171; }

/* --- STAVY ZÁPASOV --- */
.match-card.match-tipped { border-left: 4px solid var(--accent-neon); }
.match-card.match-pending { border-left: 4px solid var(--text-muted); }
.match-card.match-missed { border-left: 4px solid #ef4444; background: rgba(239,68,68,0.04); }
.match-card.match-finished-done { border-left: 4px solid var(--accent-cyan); opacity: 0.95; }
.match-card.match-live {
    border-left: 4px solid #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18), 0 0 18px rgba(239, 68, 68, 0.12);
}
.match-card.match-awaiting-result { border-left: 4px solid #f59e0b; }
.match-card.match-upcoming { border-left: 4px solid var(--text-muted); }
.match-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.match-status-live {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #fca5a5;
    animation: livePulse 1.4s ease-in-out infinite;
}
.match-status-awaiting {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fbbf24;
}
.match-status-upcoming {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text-muted);
}
.match-status-finished {
    background: rgba(0, 255, 170, 0.13);
    border: 1px solid rgba(0, 255, 170, 0.26);
    color: var(--accent-neon);
}
.live-score-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.34);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.live-score-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.34);
    color: #fca5a5;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
}
.match-admin-score-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px dashed rgba(0, 240, 255, 0.22);
}
.match-admin-score-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.match-admin-score-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.match-admin-score-input {
    width: 42px !important;
    min-width: 42px;
    text-align: center;
    font-weight: 800;
}
.match-admin-live-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}
.match-admin-ft-btn {
    background: rgba(0, 255, 170, 0.16) !important;
    color: var(--accent-neon) !important;
    border: 1px solid rgba(0, 255, 170, 0.28) !important;
    white-space: nowrap;
    font-weight: 800;
}
@media (max-width: 768px) {
    .match-admin-score-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .match-admin-score-form {
        width: 100%;
        justify-content: flex-start;
    }
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.35); }
}

/* --- FORMA HRÁČA --- */
.form-badges { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-badge {
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
}
.form-badge-W { background: rgba(0,255,170,0.15); color: var(--accent-neon); border: 1px solid rgba(0,255,170,0.3); }
.form-badge-D { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.form-badge-L { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* --- LEADERBOARD & ACHIEVEMENT BADGES --- */
.lb-player-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.lb-achievements-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}
.leaderboard-table .lb-row {
    transition: background 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.leaderboard-table .lb-row:hover {
    transform: translateX(4px);
    background: rgba(0, 240, 255, 0.06) !important;
}
.leaderboard-table .lb-row-me:hover {
    background: rgba(0, 240, 255, 0.12) !important;
}
.achievement-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.achievement-badges-sm .achievement-badge-icon {
    font-size: 17px;
}
.achievement-badges-md .achievement-badge-icon,
.profile-achievements-block .achievement-badge-icon {
    font-size: 24px;
}
.achievement-badge-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    outline: none;
}
.achievement-badge-chip-inline {
    vertical-align: middle;
}
.achievement-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
    filter: drop-shadow(0 0 0 transparent);
}
.achievement-badge-chip:hover .achievement-badge-icon,
.achievement-badge-chip:focus-visible .achievement-badge-icon {
    transform: scale(1.18) rotate(-6deg);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.45));
}
.achievement-badge-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    min-width: 160px;
    max-width: 220px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(8, 14, 24, 0.96);
    border: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 240, 255, 0.08);
    color: #e2e8f0;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0.22s;
    z-index: 20;
}
.achievement-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 240, 255, 0.28);
}
.achievement-badge-tooltip strong {
    display: block;
    color: var(--accent-cyan);
    font-size: 12px;
    margin-bottom: 3px;
}
.achievement-badge-chip:hover .achievement-badge-tooltip,
.achievement-badge-chip:focus-visible .achievement-badge-tooltip,
.has-tooltip:hover .achievement-badge-tooltip,
.has-tooltip:focus-visible .achievement-badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.profile-animate-in {
    animation: overlayFadeIn 0.28s ease-out both;
}
.profile-card-pop {
    animation: profilePopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes profilePopIn {
    from { opacity: 0; transform: scale(0.9) translateY(24px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.profile-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.profile-username {
    margin: 0;
    font-size: 1.35rem;
    background: linear-gradient(90deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.profile-meta {
    color: var(--text-muted);
    font-size: 13px;
}
.profile-points-breakdown {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: profileSectionIn 0.5s ease-out 0.08s both;
}
.profile-points-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}
.profile-points-row strong {
    color: #fff;
    font-size: 15px;
}
.profile-points-total {
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.profile-points-total strong {
    color: var(--accent-neon);
    font-size: 1.25rem;
}
.profile-points-match strong { color: #f8fafc; }
.profile-points-arena strong { color: #fda4af; }
.profile-section {
    margin-bottom: 16px;
    animation: profileSectionIn 0.5s ease-out both;
}
.profile-section-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.profile-form-badges .form-badge {
    position: relative;
    animation: badgeStaggerIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.profile-achievements-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px dashed rgba(0, 240, 255, 0.15);
}
.profile-achievements-block .achievement-badge-chip {
    animation: badgeStaggerIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.profile-view-tips-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 4px;
    animation: profileSectionIn 0.5s ease-out 0.2s both;
}
@keyframes profileSectionIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes badgeStaggerIn {
    from { opacity: 0; transform: scale(0.5) rotate(-12deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

/* --- FILTRE MOBIL --- */
.filters-panel { display: flex; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
    .landing-how > div { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
    .filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 8px;
        color: #fff;
        font-size: 13px;
        cursor: pointer;
        margin-bottom: 10px;
    }
    .filters-panel { display: none; flex-wrap: wrap; gap: 10px; }
    .filters-panel.open { display: flex; }
}

/* --- ONBOARDING --- */
.onboard-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.onboard-card {
    background: var(--bg-card); border: 1px solid rgba(0,240,255,0.25);
    border-radius: 16px; padding: 28px; max-width: 420px; width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lb-player-link { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(0,240,255,0.35); }
.lb-player-link:hover { color: var(--accent-cyan); }

/* --- REBRÍČEK – triedenie --- */
.lb-sort-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}
.lb-sort-btn:hover {
    color: #fff;
    border-color: rgba(0, 240, 255, 0.35);
}
.lb-sort-btn.active {
    color: #000;
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* --- Avatary používateľov --- */
.user-avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--av-size, 28px);
    height: var(--av-size, 28px);
    flex-shrink: 0;
    vertical-align: middle;
}
.user-avatar-wrap .user-avatar-img {
    width: var(--av-size, 28px);
    height: var(--av-size, 28px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.user-avatar-wrap .user-avatar-fallback,
.chat-user-avatar.user-avatar-fallback {
    width: var(--av-size, 28px);
    height: var(--av-size, 28px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-cyan);
    font-size: calc(var(--av-size, 28px) * 0.42);
    font-weight: 700;
    line-height: 1;
}
.user-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}
.user-with-avatar-name { line-height: 1.2; }
.chat-msg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.chat-user-avatar { --av-size: 26px; }
.fighter .user-avatar-wrap { --av-size: 56px; margin: 0 auto 8px; }
.versus-card .fighter-avatar { min-height: 56px; display: flex; align-items: center; justify-content: center; }
.bets-table-user { display: flex; align-items: center; gap: 8px; }

/* --- FOOTER --- */
.portal-footer {
    position: relative; z-index: 2;
    margin-top: 40px; padding: 32px 24px 16px;
    background: rgba(4, 7, 15, 0.85); border-top: 1px solid rgba(255,255,255,0.06);
}
.portal-footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
}
.portal-footer-brand { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.portal-footer-ver { font-size: 11px; color: var(--text-muted); }
.portal-footer-tagline { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; line-height: 1.5; }
.portal-footer-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.portal-footer-col { display: flex; flex-direction: column; gap: 6px; }
.portal-footer-col a { color: var(--accent-cyan); font-size: 13px; text-decoration: none; }
.portal-footer-col a:hover { text-decoration: underline; }
.footer-email-link { color: var(--accent-cyan); font-size: 13px; }
.portal-footer-bottom { max-width: 1100px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 12px; color: var(--text-muted); }

/* --- NAV BADGE --- */
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
    font-size: 10px; font-weight: 800; color: #000;
    background: #ff0055; border-radius: 10px; vertical-align: middle;
}

/* --- EMPTY STATES --- */
.empty-state-box {
    text-align: center; padding: 40px 24px;
    background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 12px; margin: 16px 0;
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state-box p { color: var(--text-muted); font-size: 14px; margin: 0; }
.empty-state-hint { font-size: 13px; margin-top: 10px !important; }
.empty-state-hint a { color: var(--accent-cyan); }

/* --- HALL OF FAME --- */
.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.hof-card { transition: transform 0.2s, border-color 0.2s; }
.hof-card:hover { transform: translateY(-4px); border-color: rgba(0,240,255,0.3) !important; }
.hof-archived {
    display: inline-block; margin-left: 8px; font-size: 10px; padding: 2px 8px;
    background: rgba(255,255,255,0.06); border-radius: 10px; color: var(--text-muted);
}

/* --- LANDING PAGE --- */
.landing-bg-wrapper {
    position: fixed; inset: 0; z-index: -2;
    background: linear-gradient(135deg, #04070f 0%, #0a1628 40%, #0d1f1a 100%);
    overflow: hidden;
}
.landing-bg-wrapper::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 255, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 90%, rgba(255, 0, 85, 0.06) 0%, transparent 50%);
}
.landing-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.particle {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent-cyan); opacity: 0.4; animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.landing-top-bar {
    position: fixed; top: 16px; right: 16px; z-index: 10;
    display: flex; align-items: center; gap: 10px;
}
.landing-theme-btn {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 16px;
}
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.landing-page .portal-footer {
    margin-top: auto;
}
.landing-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 40px;
    flex: 1;
    min-height: 0;
    align-items: start;
    padding: 60px 32px 40px;
    margin: 0 auto;
    max-width: 1320px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.landing-content { grid-column: 1; max-width: 620px; }
.landing-hero-visual { grid-column: 1; }
.auth-container {
    grid-column: 2;
    grid-row: 1 / -1;
}
.landing-badge {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent-neon);
    background: rgba(0,255,170,0.1); border: 1px solid rgba(0,255,170,0.3);
    padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}
.landing-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 20px; line-height: 1.1;
    background: linear-gradient(120deg, #fff 0%, var(--accent-cyan) 50%, var(--accent-neon) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.landing-content p.hero-p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.landing-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.landing-stat { text-align: center; }
.landing-stat strong { display: block; font-size: 1.8rem; color: var(--accent-cyan); font-weight: 800; }
.landing-stat span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.landing-demo-wrap { margin-bottom: 24px; }
.landing-demo-showcase {
    margin: 0 0 28px;
    padding: 22px 20px 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(145deg, rgba(8, 18, 32, 0.92), rgba(12, 28, 42, 0.88));
    box-shadow: 0 0 36px rgba(0, 240, 255, 0.12), 0 12px 40px rgba(0, 0, 0, 0.28);
}
.landing-demo-showcase-head { text-align: center; margin-bottom: 18px; }
.landing-demo-showcase-sub { margin-bottom: 0 !important; }
.landing-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.landing-demo-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.landing-demo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 8px 28px rgba(0, 240, 255, 0.12);
}
.landing-demo-card.is-featured {
    border-color: rgba(0, 255, 170, 0.45);
    background: linear-gradient(160deg, rgba(0, 240, 255, 0.08), rgba(0, 255, 170, 0.05));
    box-shadow: inset 0 0 0 1px rgba(0, 255, 170, 0.15);
}
.landing-demo-card-icon { font-size: 1.8rem; line-height: 1; }
.landing-demo-card-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 999px;
    padding: 3px 8px;
}
.landing-demo-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    color: #f8fafc;
}
.landing-demo-card-desc {
    margin: 0;
    flex: 1;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}
.landing-demo-card .landing-demo-cta {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    padding: 10px 12px;
}
.landing-demo-spotlight {
    position: relative;
    margin: 0 0 28px;
    padding: 2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,240,255,0.85), rgba(0,255,170,0.65), rgba(255,215,0,0.45));
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.22), 0 12px 40px rgba(0, 0, 0, 0.35);
    animation: landingDemoPulse 2.8s ease-in-out infinite;
}
.landing-demo-spotlight-glow {
    position: absolute;
    inset: -8px;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 50%, rgba(0,240,255,0.25), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.landing-demo-spotlight-inner {
    position: relative;
    z-index: 1;
    padding: 22px 24px 24px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(8, 18, 32, 0.97), rgba(12, 28, 42, 0.92));
    text-align: center;
}
.landing-demo-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.12);
    border: 1px solid rgba(0, 255, 170, 0.35);
}
.landing-demo-headline {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}
.landing-demo-league-name {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-cyan);
}
.landing-demo-sub {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.landing-demo-cta {
    display: inline-block; padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(0,255,170,0.1));
    border: 1px solid rgba(0,240,255,0.4); border-radius: 10px;
    color: var(--accent-cyan); text-decoration: none; font-weight: 700; font-size: 14px;
    transition: box-shadow 0.3s, transform 0.2s;
}
.landing-demo-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 340px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 800;
    color: #041018;
    background: linear-gradient(135deg, #00f0ff, #00ffaa);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 240, 255, 0.35);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.25s;
}
.landing-demo-cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 255, 170, 0.45);
    color: #041018;
}
.landing-demo-arrow {
    display: inline-block;
    transition: transform 0.2s;
}
.landing-demo-cta-primary:hover .landing-demo-arrow { transform: translateX(4px); }
@keyframes landingDemoPulse {
    0%, 100% { box-shadow: 0 0 32px rgba(0, 240, 255, 0.18), 0 12px 40px rgba(0, 0, 0, 0.35); }
    50% { box-shadow: 0 0 48px rgba(0, 255, 170, 0.32), 0 12px 44px rgba(0, 0, 0, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
    .landing-demo-spotlight { animation: none; }
}
.landing-demo-cta:hover { box-shadow: 0 0 24px rgba(0,240,255,0.25); transform: translateY(-2px); }
.landing-ticker {
    margin-bottom: 28px; padding: 14px 16px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden;
}
.landing-ticker-title { margin: 0 0 10px; font-size: 13px; color: var(--accent-cyan); }
.landing-ticker-track { display: flex; gap: 32px; white-space: nowrap; }
.landing-ticker-animate { animation: tickerScroll 30s linear infinite; }
.landing-ticker-item { font-size: 12px; color: var(--text-muted); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.landing-how {
    margin-bottom: 28px; padding: 20px;
    background: rgba(0,0,0,0.25); border-radius: 14px; border: 1px solid rgba(255,255,255,0.06);
}
.landing-how h3 { color: var(--accent-cyan); margin: 0 0 14px; font-size: 1rem; }
.landing-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.landing-how-step { text-align: center; padding: 12px; }
.landing-how-step strong { font-size: 13px; color: #fff; }
.landing-how-step p { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.feature-card {
    background: rgba(15, 20, 35, 0.5); border: 1px solid rgba(255,255,255,0.07);
    padding: 20px; border-radius: 14px; backdrop-filter: blur(12px); transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(0, 240, 255, 0.35); }
.feature-card.highlight { border-color: rgba(255,0,85,0.35); background: rgba(40,0,20,0.25); }
.feature-card h3 { color: var(--accent-cyan); margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.landing-mockup { margin-bottom: 28px; }
.landing-mockup h3 { color: var(--accent-cyan); margin: 0 0 8px; font-size: 1.1rem; }
.landing-mockup-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.mockup-ui {
    background: rgba(11, 15, 25, 0.9); border: 1px solid rgba(0,240,255,0.2);
    border-radius: 14px; overflow: hidden; max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.mockup-header { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(0,0,0,0.4); }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.mockup-title { margin-left: 8px; font-size: 11px; color: var(--text-muted); }
.mockup-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mockup-tab { font-size: 11px; padding: 4px 10px; border-radius: 6px; color: var(--text-muted); }
.mockup-tab.active { background: rgba(0,240,255,0.12); color: var(--accent-cyan); }
.mockup-body { padding: 12px 14px; }
.mockup-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mockup-score { color: var(--accent-neon); font-weight: 700; }
.mockup-tip { color: var(--accent-cyan); }
.mockup-lb { color: #ffd700; }
.landing-demo-media { max-width: 420px; }
.landing-demo-video { width: 100%; border-radius: 14px; border: 1px solid rgba(0,240,255,0.2); }
.mockup-demo-player { position: relative; max-width: 420px; }
.mockup-stage { position: relative; min-height: 148px; padding: 0; overflow: hidden; }
.mockup-scene {
    position: absolute; left: 14px; right: 14px; top: 12px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}
.mockup-scene.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mockup-caption {
    padding: 8px 14px 12px; font-size: 12px; color: var(--accent-cyan);
    border-top: 1px solid rgba(255,255,255,0.06); min-height: 36px;
}
.mockup-toast {
    position: absolute; top: 52px; right: 12px;
    background: rgba(0,255,170,0.15); border: 1px solid rgba(0,255,170,0.4);
    color: var(--accent-neon); font-size: 11px; font-weight: 700;
    padding: 6px 10px; border-radius: 8px; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.35s, transform 0.35s; pointer-events: none;
}
.mockup-toast.is-visible { opacity: 1; transform: translateY(0); }
.demo-pills { display: flex; flex-direction: column; gap: 8px; }
.demo-pill {
    font-size: 11px; padding: 10px 12px; border-radius: 8px;
    background: rgba(0,240,255,0.08); border: 1px solid rgba(0,240,255,0.2);
    line-height: 1.35;
}
.demo-pill-f1 { border-color: rgba(255,0,85,0.25); background: rgba(255,0,85,0.06); }
.mockup-tip-dim { color: var(--text-muted); opacity: 0.5; }
.mockup-score-anim { animation: mockupScorePop 0.6s ease 0.4s both; }
@keyframes mockupScorePop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mockup-lb-2 { color: #c0c0c0; }
.mockup-lb-3 { color: #cd7f32; }
.demo-chat { display: flex; flex-direction: column; gap: 8px; }
.demo-chat-bubble {
    font-size: 11px; padding: 8px 10px; border-radius: 10px; line-height: 1.4;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    animation: chatIn 0.5s ease both;
}
.demo-chat-b { animation-delay: 0.25s; }
.demo-chat-bubble strong { color: var(--accent-cyan); }
@keyframes chatIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.demo-duel-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px;
    background: rgba(255,0,85,0.08); border: 1px solid rgba(255,0,85,0.25); border-radius: 10px;
}
.demo-duel-vs { font-weight: 800; font-size: 14px; color: #fff; }
.demo-duel-meta { font-size: 11px; color: var(--text-muted); }
.demo-duel-btn {
    font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 8px;
    background: var(--accent-magenta, #ff0055); color: #fff;
}
.mockup-race-picks { justify-content: flex-end; gap: 10px; }
.mockup-race-picks span { font-size: 12px; }
.demo-outro { text-align: center; padding: 16px 8px; }
.demo-outro strong { display: block; font-size: 15px; margin-bottom: 8px; background: linear-gradient(90deg, #fff, var(--accent-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.demo-outro-url { font-size: 13px; color: var(--accent-cyan); font-weight: 700; }
.landing-for-who { margin-bottom: 28px; }
.landing-for-who h3 { color: var(--accent-cyan); margin: 0 0 14px; font-size: 1.1rem; }
.for-who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.for-who-card {
    padding: 18px; text-align: center;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
    transition: border-color 0.2s;
}
.for-who-card:hover { border-color: rgba(0,255,170,0.3); }
.for-who-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.for-who-card strong { display: block; font-size: 13px; color: #fff; margin-bottom: 6px; }
.for-who-card p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.landing-steps { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.landing-step {
    flex: 1; min-width: 140px; text-align: center; padding: 16px;
    background: rgba(0,0,0,0.25); border-radius: 10px; border: 1px dashed rgba(255,255,255,0.1);
}
.landing-step .num { font-size: 1.5rem; font-weight: 900; color: var(--accent-neon); }
.landing-step p { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }
.landing-hero-visual { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.hero-arena-svg { width: 100%; max-width: 320px; filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.25)); animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-ring { transform-origin: 170px 170px; animation: ringSpin 20s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.hero-ring-reverse { transform-origin: 170px 170px; animation: ringSpin 28s linear infinite reverse; }
.hero-vs-text { font-family: system-ui, sans-serif; font-weight: 900; font-size: 28px; fill: url(#vsGrad); }
.auth-container {
    width: 100%; max-width: 380px; min-width: 280px;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.2); border-radius: 20px;
    padding: 32px; backdrop-filter: blur(30px); box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    position: sticky; top: 72px; justify-self: end;
}
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.auth-tab {
    flex: 1; text-align: center; padding: 12px; cursor: pointer;
    color: var(--text-muted); font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.auth-tab.active { color: var(--accent-cyan); border-bottom: 3px solid var(--accent-cyan); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form .form-group {
    margin-bottom: 16px;
}
.auth-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.auth-form .form-group input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form .form-group input:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}
.auth-form .form-group input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}
.auth-alert { padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; text-align: center; font-weight: 600; }
.auth-alert-error { background: rgba(239,68,68,0.15); border: 1px solid #ef4444; color: #ef4444; }
.auth-alert-success { background: rgba(0,255,170,0.15); border: 1px solid var(--accent-neon); color: var(--accent-neon); }
.public-league-picker {
    display: none;
    margin-bottom: 22px;
    padding: 14px;
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 14px;
}
.public-league-title {
    margin-bottom: 10px;
    color: var(--accent-cyan);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.public-league-row {
    display: flex;
    gap: 8px;
}
.public-league-select {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 13px;
}
.public-league-btn {
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    background: var(--accent-cyan);
    color: #001018;
    font-weight: 800;
    cursor: pointer;
}
body.is-landing .public-league-picker-prominent {
    display: block;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(0, 240, 255, 0.12), rgba(0, 255, 170, 0.08));
    border: 2px solid rgba(0, 240, 255, 0.45);
    border-radius: 16px;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.is-landing .public-league-picker-prominent .public-league-title {
    margin-bottom: 6px;
    font-size: 12px;
    color: #00ffaa;
}
.public-league-hint {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}
.public-league-btn-primary {
    flex-shrink: 0;
    padding: 13px 16px;
    font-size: 13px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #00f0ff, #00ffaa);
    color: #041018;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.public-league-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 255, 170, 0.4);
}
.auth-btn {
    width: 100%; margin-top: 4px; padding: 15px; background: var(--accent-cyan); color: #000;
    font-weight: 800; border: none; border-radius: 10px; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px; font-size: 14px;
}
.auth-btn.register-btn { background: var(--accent-neon); }
.auth-forgot { display: block; text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 12px; text-decoration: none; }

/* --- LANDING LIGHT THEME --- */
html.landing-light,
html.landing-light body {
    background: #eef2f7;
    color: #1a1a2e;
}
html.landing-light .landing-bg-wrapper { background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 50%, #f5f9f7 100%); }
html.landing-light .landing-bg-wrapper::before { opacity: 0.35; }
html.landing-light .landing-content h1 {
    background: linear-gradient(120deg, #1a1a2e 0%, #0066cc 50%, #00875a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html.landing-light .landing-badge { color: #007a55; background: rgba(0, 135, 90, 0.1); border-color: rgba(0, 135, 90, 0.25); }
html.landing-light .landing-content p.hero-p,
html.landing-light .landing-stat span,
html.landing-light .feature-card p,
html.landing-light .landing-ticker-item,
html.landing-light .landing-mockup-desc,
html.landing-light .for-who-card p,
html.landing-light .landing-how-step p,
html.landing-light .landing-step p,
html.landing-light .portal-footer-tagline,
html.landing-light .portal-footer-label,
html.landing-light .portal-footer-bottom,
html.landing-light .auth-forgot { color: #4b5563; }
html.landing-light .landing-stat strong { color: #0066cc; }
html.landing-light .landing-ticker-title,
html.landing-light .feature-card h3,
html.landing-light .landing-how h3,
html.landing-light .landing-mockup h3,
html.landing-light .landing-for-who h3,
html.landing-light .landing-how-step strong,
html.landing-light .for-who-card strong,
html.landing-light .landing-step .num { color: #1a1a2e; }
html.landing-light .landing-demo-cta { color: #0066cc; background: rgba(0, 102, 204, 0.08); border-color: rgba(0, 102, 204, 0.25); }
html.landing-light .landing-demo-showcase {
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
    border-color: rgba(0, 102, 204, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
html.landing-light .landing-demo-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
}
html.landing-light .landing-demo-card.is-featured {
    background: linear-gradient(160deg, rgba(0, 102, 204, 0.08), rgba(0, 135, 90, 0.06));
    border-color: rgba(0, 102, 204, 0.25);
}
html.landing-light .landing-demo-card-title { color: #1a1a2e; }
html.landing-light .landing-demo-card-desc { color: #4b5563; }
html.landing-light .landing-demo-card-tag {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.18);
}
html.landing-light .landing-demo-spotlight {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.55), rgba(0, 135, 90, 0.45));
    box-shadow: 0 0 32px rgba(0, 102, 204, 0.18), 0 12px 32px rgba(0, 0, 0, 0.08);
}
html.landing-light .landing-demo-spotlight-inner {
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
}
html.landing-light .landing-demo-kicker {
    color: #007a55;
    background: rgba(0, 135, 90, 0.1);
    border-color: rgba(0, 135, 90, 0.25);
}
html.landing-light .landing-demo-headline { color: #1a1a2e; }
html.landing-light .landing-demo-league-name { color: #0066cc; }
html.landing-light .landing-demo-sub { color: #4b5563; }
html.landing-light .landing-demo-cta-primary {
    color: #fff;
    background: linear-gradient(135deg, #0066cc, #00875a);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.28);
}
html.landing-light .landing-demo-cta-primary:hover {
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 102, 204, 0.35);
}
html.landing-light body.is-landing .public-league-picker-prominent {
    background: linear-gradient(145deg, rgba(0, 102, 204, 0.08), rgba(0, 135, 90, 0.06));
    border-color: rgba(0, 102, 204, 0.35);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
}
html.landing-light body.is-landing .public-league-picker-prominent .public-league-title {
    color: #007a55;
}
html.landing-light .public-league-hint { color: #4b5563; }
html.landing-light .public-league-btn-primary {
    background: linear-gradient(135deg, #0066cc, #00875a);
    color: #fff;
}
html.landing-light .feature-card,
html.landing-light .landing-how,
html.landing-light .landing-ticker,
html.landing-light .for-who-card,
html.landing-light .landing-step,
html.landing-light .mockup-ui,
html.landing-light .auth-container { background: #ffffff; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
html.landing-light .auth-tab { color: #6b7280; }
html.landing-light .auth-tab.active { color: #0066cc; border-bottom-color: #0066cc; }
html.landing-light .auth-form .form-group label { color: #374151; }
html.landing-light .auth-form .form-group input {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}
html.landing-light .auth-form .form-group input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}
html.landing-light .public-league-picker {
    background: rgba(0, 102, 204, 0.06);
    border-color: rgba(0, 102, 204, 0.18);
}
html.landing-light .public-league-title {
    color: #0066cc;
}
html.landing-light .public-league-select {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}
html.landing-light .public-league-btn {
    background: #0066cc;
    color: #fff;
}
html.landing-light .portal-footer { background: #f8fafc; border-color: rgba(0, 0, 0, 0.08); }
html.landing-light .portal-footer-brand { color: #1a1a2e; }
html.landing-light .portal-footer-col a,
html.landing-light .footer-email-link { color: #0066cc; }
html.landing-light .mockup-row { border-bottom-color: rgba(0, 0, 0, 0.06); }
html.landing-light .mockup-title,
html.landing-light .mockup-tab { color: #6b7280; }
html.landing-light .mockup-tab.active { color: #0066cc; background: rgba(0, 102, 204, 0.1); }
html.landing-light .particle { opacity: 0.12; }

/* --- APP LIGHT THEME (po prihlásení) --- */
html.landing-light {
    --bg-base: #eef2f7;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-color: #d1d5db;
    --text-main: #111827;
    --text-muted: #4b5563;
    --accent-cyan: #0077cc;
    --accent-neon: #059669;
    --accent-purple: #6d28d9;
    --glow-cyan: rgba(0, 119, 204, 0.12);
    --glow-neon: rgba(5, 150, 105, 0.12);
}
html.landing-light body {
    background: var(--bg-base);
    color: var(--text-main);
}
html.landing-light .top-nav {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5e7eb;
}
html.landing-light .nav-brand strong {
    background: linear-gradient(to right, #111827, #0077cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html.landing-light .nav-sub-links {
    border-top-color: #e5e7eb !important;
}
html.landing-light .main-content h2,
html.landing-light .main-content h3,
html.landing-light .competition-header-box h2,
html.landing-light .match-header,
html.landing-light .admin-title { color: var(--text-main); }
html.landing-light .card,
html.landing-light .match-card {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
html.landing-light .match-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 14px var(--glow-cyan);
}
html.landing-light .stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
html.landing-light .stat-card strong { color: #111827; }
html.landing-light .stat-card span,
html.landing-light .match-meta,
html.landing-light .competition-header-box span { color: #4b5563; }
html.landing-light .switcher-select,
html.landing-light .form-control,
html.landing-light .bet-input {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}
html.landing-light .layout-btn {
    color: #374151;
    border-color: #d1d5db;
    background: #ffffff;
}
html.landing-light .layout-btn:hover,
html.landing-light .layout-btn.active {
    color: #0077cc;
    border-color: #0077cc;
    background: rgba(0, 119, 204, 0.08);
}
html.landing-light .sub-link {
    color: #374151 !important;
    font-weight: 500;
}
html.landing-light .sub-link:hover {
    color: #0077cc !important;
    background: rgba(0, 119, 204, 0.06);
}
html.landing-light .sub-link.active {
    color: #0077cc !important;
    font-weight: 700;
    background: rgba(0, 119, 204, 0.12);
}
html.landing-light .filters-panel,
html.landing-light .filters-toggle {
    color: var(--text-main);
}
html.landing-light .match-result-badge {
    background: #f3f4f6;
    color: #374151;
}
html.landing-light .btn-secondary {
    color: #374151;
    border-color: #d1d5db;
    background: #ffffff;
}
html.landing-light .portal-footer { background: #f8fafc; }
html.landing-light .team-name { color: var(--text-main) !important; }
html.landing-light .match-card .btn-sm,
html.landing-light .btn-ghost {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb;
}
html.landing-light .bet-input {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}
html.landing-light .lang-switcher-btn { opacity: 0.92; }
html.landing-light .user-zone a { color: #0077cc; }

/* --- PWA BANNER --- */
.pwa-install-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990;
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 20px; background: rgba(11, 15, 25, 0.95);
    border-top: 1px solid rgba(0,240,255,0.25); font-size: 14px;
}
.pwa-dismiss { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; }

/* --- SHARE / PROFILE MODALS --- */
.share-modal-overlay, .player-profile-overlay, .shortcuts-overlay {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.share-modal-card, .player-profile-card, .shortcuts-card {
    background: var(--bg-card); border: 1px solid rgba(0,240,255,0.25);
    border-radius: 16px; padding: 24px; max-width: 420px; width: 90%;
    position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.share-close, .shortcuts-close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px;
}
.shortcuts-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.shortcuts-card li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05); }
.shortcuts-card kbd {
    display: inline-block; padding: 2px 8px; margin-right: 8px;
    background: rgba(255,255,255,0.08); border-radius: 4px; font-family: monospace; color: #fff;
}

/* --- SKELETON LOADERS --- */
.skeleton-loader { padding: 8px 0; }
.skeleton-line {
    height: 14px; margin-bottom: 10px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%; animation: skeletonShimmer 1.2s ease-in-out infinite;
}
.skeleton-line.short { width: 60%; }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- BET SAVE FLASH --- */
.bet-save-flash { animation: betSaveFlash 0.8s ease-out; }
@keyframes betSaveFlash {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.6); }
    50% { box-shadow: 0 0 20px 4px rgba(0, 255, 170, 0.4); }
    100% { box-shadow: none; }
}
.match-card.bet-save-flash { border-color: var(--accent-neon) !important; }

/* --- SYSTEM CHAT --- */
.chat-system-msg {
    text-align: center; margin: 12px 0; padding: 8px 14px;
    background: rgba(0, 240, 255, 0.06); border: 1px dashed rgba(0, 240, 255, 0.2);
    border-radius: 8px; font-size: 13px; color: var(--text-muted);
}
.chat-system-msg .chat-system-label {
    display: inline-block; font-size: 10px; text-transform: uppercase;
    letter-spacing: 1px; color: var(--accent-cyan); margin-right: 8px;
}

@media (max-width: 1100px) { .landing-hero-visual { display: none; } }
@media (max-width: 1000px) {
    .landing-main {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 16px;
    }
    .auth-container {
        grid-column: 1;
        grid-row: 1;
        position: static;
        justify-self: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 28px;
    }
    body.is-landing .public-league-picker-prominent {
        text-align: left;
    }
    .landing-content { grid-row: 2; }
    .features-grid, .for-who-grid, .landing-how-grid { grid-template-columns: 1fr; }
    .landing-stats { justify-content: center; }
    .mockup-ui { margin: 0 auto; }
}

/* --- LANDING MOBILE POLISH --- */
@media (max-width: 768px) {
    html,
    body.is-landing {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.is-landing .landing-page,
    body.is-landing .landing-main,
    body.is-landing .landing-content,
    body.is-landing .auth-container,
    body.is-landing .portal-footer {
        max-width: 100%;
        min-width: 0;
    }

    body.is-landing .landing-page {
        overflow-x: clip;
    }

    body.is-landing .landing-top-bar {
        position: absolute;
        top: 10px;
        right: 10px;
        gap: 6px;
        max-width: calc(100vw - 20px);
    }

    body.is-landing .landing-theme-btn {
        border-radius: 9px;
        font-size: 13px;
        min-height: 30px;
        padding: 5px 8px;
    }

    body.is-landing .lang-switcher,
    body.is-landing .lang-switcher-landing {
        margin-right: 0;
    }

    body.is-landing .lang-switcher-btn {
        padding: 3px 7px 3px 5px;
    }

    body.is-landing .lang-flag-img {
        width: 20px;
        height: 14px;
    }

    body.is-landing .landing-main {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 52px 14px 18px;
        text-align: left;
        width: 100%;
    }

    body.is-landing .auth-container {
        order: 1;
        margin: 0;
        padding: 18px 14px;
        position: static;
        width: 100%;
        border-radius: 18px;
        box-shadow: 0 16px 36px rgba(0,0,0,0.36);
    }

    body.is-landing .landing-content {
        order: 2;
        width: 100%;
    }

    body.is-landing .landing-hero-visual {
        display: none;
    }

    body.is-landing .landing-badge {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 14px;
        padding: 5px 10px;
    }

    body.is-landing .landing-content h1 {
        font-size: clamp(1.75rem, 10vw, 2.35rem);
        line-height: 1.08;
        margin-bottom: 12px;
        overflow-wrap: anywhere;
    }

    body.is-landing .landing-content p.hero-p {
        font-size: 0.94rem;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    body.is-landing .landing-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 18px;
    }

    body.is-landing .landing-stat {
        min-width: 0;
    }

    body.is-landing .landing-stat strong {
        font-size: 1.45rem;
    }

    body.is-landing .landing-stat span {
        display: block;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    body.is-landing .landing-demo-spotlight {
        margin-bottom: 20px;
        border-radius: 16px;
    }
    body.is-landing .landing-demo-showcase {
        padding: 16px 14px 14px;
        margin-bottom: 20px;
    }
    body.is-landing .landing-demo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    body.is-landing .landing-demo-spotlight-inner {
        padding: 18px 16px 20px;
    }
    body.is-landing .landing-demo-headline {
        font-size: 1.15rem;
    }
    body.is-landing .landing-demo-cta-primary {
        max-width: none;
        width: 100%;
        padding: 15px 18px;
        font-size: 15px;
    }

    body.is-landing .landing-ticker,
    body.is-landing .landing-how,
    body.is-landing .feature-card,
    body.is-landing .landing-step,
    body.is-landing .for-who-card,
    body.is-landing .mockup-ui {
        border-radius: 12px;
    }

    body.is-landing .landing-ticker {
        margin-bottom: 20px;
        padding: 12px;
    }

    body.is-landing .landing-ticker-track {
        gap: 20px;
        max-width: 100%;
    }

    body.is-landing .landing-how {
        margin-bottom: 20px;
        padding: 16px 12px;
    }

    body.is-landing .landing-how-grid,
    body.is-landing .features-grid,
    body.is-landing .for-who-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.is-landing .landing-how-step,
    body.is-landing .feature-card,
    body.is-landing .for-who-card,
    body.is-landing .landing-step {
        padding: 14px 12px;
    }

    body.is-landing .features-grid,
    body.is-landing .landing-for-who,
    body.is-landing .landing-mockup {
        margin-bottom: 20px;
    }

    body.is-landing .landing-steps {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.is-landing .mockup-ui {
        width: 100%;
    }

    body.is-landing .mockup-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.is-landing .mockup-tabs::-webkit-scrollbar {
        display: none;
    }

    body.is-landing .mockup-tab {
        flex: 0 0 auto;
        padding: 4px 8px;
    }

    body.is-landing .public-league-picker-prominent {
        margin-bottom: 16px;
        padding: 14px;
    }

    body.is-landing .public-league-row {
        flex-direction: column;
    }

    body.is-landing .public-league-btn,
    body.is-landing .public-league-btn-primary {
        width: 100%;
    }

    body.is-landing .auth-tabs {
        margin-bottom: 18px;
    }

    body.is-landing .auth-tab {
        padding: 10px 8px;
    }

    body.is-landing .auth-form .form-group {
        margin-bottom: 13px;
    }

    body.is-landing .auth-form .form-group input,
    body.is-landing .public-league-select {
        font-size: 16px;
        padding: 11px 12px;
    }

    body.is-landing .auth-btn {
        padding: 13px;
    }

    body.is-landing .portal-footer {
        margin-top: 6px;
        padding: 14px 14px 12px;
        background: linear-gradient(180deg, rgba(4, 7, 15, 0.38), rgba(4, 7, 15, 0.72));
        border-top: 1px solid rgba(0, 240, 255, 0.12);
    }

    body.is-landing .portal-footer-inner {
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    body.is-landing .portal-footer-col {
        align-items: center;
        gap: 3px;
    }

    body.is-landing .portal-footer-col:nth-child(2),
    body.is-landing .portal-footer-label,
    body.is-landing .portal-footer-tagline {
        display: none;
    }

    body.is-landing .portal-footer-brand {
        font-size: 14px;
        margin-bottom: 0;
    }

    body.is-landing .portal-footer-ver,
    body.is-landing .portal-footer-col,
    body.is-landing .portal-footer-bottom {
        font-size: 11px;
    }

    body.is-landing .portal-footer-bottom {
        margin-top: 8px;
        padding-top: 8px;
    }
}

@media (max-width: 380px) {
    body.is-landing .landing-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.is-landing .landing-content h1 {
        font-size: 1.72rem;
    }

    body.is-landing .landing-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    body.is-landing .auth-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* --- LIGHT MODE CONTRAST PASS --- */
html.landing-light body,
html.landing-light body.is-landing,
html.landing-light body.is-app {
    color: var(--text-main);
}

html.landing-light body.is-landing .landing-theme-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: #d1d5db;
    color: #111827;
}

html.landing-light body.is-landing .lang-switcher-btn {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

html.landing-light body.is-landing .lang-switcher-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: #d1d5db;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15);
}

html.landing-light body.is-landing .lang-switcher-option {
    color: #111827;
}

html.landing-light body.is-landing .lang-switcher-option:hover {
    background: rgba(0, 240, 255, 0.08);
}

html.landing-light body.is-landing .landing-content,
html.landing-light body.is-landing .landing-how-step strong,
html.landing-light body.is-landing .for-who-card strong,
html.landing-light body.is-landing .feature-card h3,
html.landing-light body.is-landing .landing-mockup h3,
html.landing-light body.is-landing .landing-for-who h3,
html.landing-light body.is-landing .landing-how h3 {
    color: #111827;
}

html.landing-light body.is-landing .landing-ticker,
html.landing-light body.is-landing .landing-how,
html.landing-light body.is-landing .feature-card,
html.landing-light body.is-landing .for-who-card,
html.landing-light body.is-landing .landing-step,
html.landing-light body.is-landing .mockup-ui,
html.landing-light body.is-landing .public-league-picker,
html.landing-light body.is-landing .auth-container {
    background: rgba(255, 255, 255, 0.96);
    border-color: #dbe3ee;
    color: #111827;
}

html.landing-light body.is-landing .landing-stat {
    background: rgba(255, 255, 255, 0.86);
    border-color: #dbe3ee;
    color: #111827;
}

html.landing-light body.is-landing .landing-content p.hero-p,
html.landing-light body.is-landing .landing-stat span,
html.landing-light body.is-landing .feature-card p,
html.landing-light body.is-landing .landing-ticker-item,
html.landing-light body.is-landing .landing-mockup-desc,
html.landing-light body.is-landing .for-who-card p,
html.landing-light body.is-landing .landing-how-step p,
html.landing-light body.is-landing .landing-step p {
    color: #4b5563;
}

html.landing-light body.is-landing .mockup-header,
html.landing-light body.is-landing .mockup-tabs {
    background: #f8fafc;
    border-color: #e5e7eb;
}

html.landing-light body.is-landing .mockup-row {
    color: #111827;
}

html.landing-light body.is-landing .auth-form .form-group input,
html.landing-light body.is-landing .public-league-select {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #111827;
}

html.landing-light body.is-landing .auth-form .form-group input::placeholder {
    color: #6b7280;
}

html.landing-light body.is-landing .portal-footer {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #eef2f7);
    border-top-color: #dbe3ee;
    color: #4b5563;
}

html.landing-light body.is-landing .portal-footer-brand {
    color: #111827;
}

html.landing-light body.is-landing .portal-footer-ver,
html.landing-light body.is-landing .portal-footer-col,
html.landing-light body.is-landing .portal-footer-bottom {
    color: #4b5563;
}

html.landing-light body.is-app .main-content,
html.landing-light body.is-app .view-wrapper,
html.landing-light body.is-app .card,
html.landing-light body.is-app .match-card,
html.landing-light body.is-app .admin-subsection,
html.landing-light body.is-app .arena-challenge-card,
html.landing-light body.is-app .flag-upload-item,
html.landing-light body.is-app .chat-window-box {
    color: var(--text-main);
}

html.landing-light body.is-app .main-content h2,
html.landing-light body.is-app .main-content h3,
html.landing-light body.is-app .main-content h4,
html.landing-light body.is-app .admin-title,
html.landing-light body.is-app .arena-challenge-card h4,
html.landing-light body.is-app .flag-upload-item label,
html.landing-light body.is-app .leaderboard-table td[style*="color:#fff"],
html.landing-light body.is-app .leaderboard-table td[style*="color: #fff"],
html.landing-light body.is-app .match-card [style*="color:#fff"],
html.landing-light body.is-app .match-card [style*="color: #fff"],
html.landing-light body.is-app .competition-header-box [style*="color:#fff"],
html.landing-light body.is-app .competition-header-box [style*="color: #fff"] {
    color: var(--text-main) !important;
}

html.landing-light body.is-app .main-content :is(div,span,td,b,strong,label,p,h1,h2,h3,h4)[style*="color:#fff"],
html.landing-light body.is-app .main-content :is(div,span,td,b,strong,label,p,h1,h2,h3,h4)[style*="color: #fff"],
html.landing-light body.is-app .main-content :is(div,span,td,b,strong,label,p,h1,h2,h3,h4)[style*="color:white"],
html.landing-light body.is-app .main-content :is(div,span,td,b,strong,label,p,h1,h2,h3,h4)[style*="color: white"] {
    color: var(--text-main) !important;
}

html.landing-light body.is-app .main-content [style*="color: #f8fafc"],
html.landing-light body.is-app .main-content [style*="color:#f8fafc"] {
    color: var(--text-main) !important;
}

html.landing-light body.is-app .match-meta,
html.landing-light body.is-app .arena-challenge-meta,
html.landing-light body.is-app .empty-text,
html.landing-light body.is-app .leaderboard-table th {
    color: inherit;
}

html.landing-light body.is-app .match-meta,
html.landing-light body.is-app .arena-challenge-meta,
html.landing-light body.is-app .empty-text,
html.landing-light body.is-app .leaderboard-table th,
html.landing-light body.is-app .match-points-info,
html.landing-light body.is-app .text-locked {
    color: var(--text-muted) !important;
}

html.landing-light body.is-app .guest-banner,
html.landing-light body.is-app .alert-info {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1e3a8a !important;
}

html.landing-light body.is-app .guest-banner strong,
html.landing-light body.is-app .alert-info strong {
    color: #075985 !important;
}

html.landing-light body.is-app code {
    background: #e0f2fe !important;
    color: #075985 !important;
}

html.landing-light body.is-app .match-result-badge,
html.landing-light body.is-app .btn-ghost,
html.landing-light body.is-app .match-card [style*="background: rgba(255,255,255"],
html.landing-light body.is-app .match-card [style*="background:rgba(255,255,255"],
html.landing-light body.is-app .main-content a.btn[style*="background: rgba(255,255,255"],
html.landing-light body.is-app .main-content a.btn[style*="background:rgba(255,255,255"],
html.landing-light body.is-app .main-content button[style*="background: rgba(255,255,255"],
html.landing-light body.is-app .main-content button[style*="background:rgba(255,255,255"] {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html.landing-light body.is-app .main-content :is(div,form):not([id^="pointsModal_"])[style*="background: rgba(0,0,0"],
html.landing-light body.is-app .main-content :is(div,form):not([id^="pointsModal_"])[style*="background:rgba(0,0,0"],
html.landing-light body.is-app .main-content :is(div,form):not([id^="pointsModal_"])[style*="background: rgba(255,255,255"],
html.landing-light body.is-app .main-content :is(div,form):not([id^="pointsModal_"])[style*="background:rgba(255,255,255"] {
    background: #f8fafc !important;
    border-color: #e5e7eb !important;
    color: var(--text-main) !important;
}

html.landing-light body.is-app [id^="pointsModal_"].points-modal-open > div {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #111827 !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18) !important;
}

html.landing-light body.is-app [id^="pointsModal_"] [style*="background: rgba(0,0,0"],
html.landing-light body.is-app [id^="pointsModal_"] [style*="background:rgba(0,0,0"],
html.landing-light body.is-app [id^="pointsModal_"] [style*="background: rgba(255,255,255"],
html.landing-light body.is-app [id^="pointsModal_"] [style*="background:rgba(255,255,255"] {
    background: #f8fafc !important;
    border-color: #e5e7eb !important;
    color: #111827 !important;
}

html.landing-light body.is-app [id^="pointsModal_"] button[style*="color: #fff"],
html.landing-light body.is-app [id^="pointsModal_"] button[style*="color:#fff"] {
    color: #334155 !important;
}

html.landing-light body.is-app .chat-window-box [style*="background: rgba(255,255,255"],
html.landing-light body.is-app .chat-window-box [style*="background:rgba(255,255,255"] {
    background: #f8fafc !important;
    border-color: #e5e7eb !important;
    color: #111827 !important;
}

html.landing-light body.is-app .nav-sub-links {
    background: rgba(255, 255, 255, 0.96);
}

html.landing-light body.is-app .mobile-nav-item,
html.landing-light body.is-app .mobile-nav-secondary {
    background: #ffffff;
    border-color: #e5e7eb;
}

html.landing-light body.is-app .portal-footer {
    color: #4b5563;
}

@media (max-width: 768px) {
    html.landing-light body.is-landing .portal-footer {
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), #eef2f7);
    }

    html.landing-light body.is-app .nav-sub-links {
        background: rgba(255, 255, 255, 0.98);
        border-top-color: #e5e7eb !important;
    }
}
