/* Portal polish UI */
.what-now-card {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(0, 255, 170, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.what-now-card h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--accent-cyan);
}
.what-now-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.what-now-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}
.what-now-list a:hover {
    background: rgba(0, 240, 255, 0.12);
}
.notif-center-wrap {
    position: relative;
    z-index: 2;
}
.notif-center-btn {
    position: relative;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
}
.notif-center-btn .nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
}
.notif-center-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, 90vw);
    max-height: min(360px, calc(100vh - 100px));
    overflow-y: auto;
    background: rgba(12, 18, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 10100;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}
.notif-center-panel.open { display: block; }
.notif-center-panel h5 {
    margin: 4px 8px 10px;
    font-size: 12px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
}
.notif-item:hover { background: rgba(255, 255, 255, 0.05); }
.notif-item strong { display: block; color: #fff; font-size: 13px; margin-bottom: 2px; }
.league-promo-banner {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}
.league-promo-banner.promo-boss {
    background: rgba(255, 100, 100, 0.12);
    border: 1px solid rgba(255, 100, 100, 0.35);
    color: #ffb4b4;
}
.nearby-lb-wrap {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.nearby-lb-wrap h4 { margin: 0 0 10px; font-size: 13px; color: var(--accent-cyan); }
.nearby-lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nearby-lb-row.is-me { color: var(--accent-neon); font-weight: 700; }
.setup-my-leagues {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.setup-league-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.guest-tip-cta {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.25);
    font-size: 12px;
    text-align: center;
}
.guest-tip-cta a { color: var(--accent-neon); font-weight: 700; }
.sync-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}
.sync-badge.sync-api { background: rgba(0, 240, 255, 0.15); color: var(--accent-cyan); }
.sync-badge.sync-manual { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.match-card > .sync-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}
.match-card { position: relative; }
.chat-duel-link {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.admin-audit-list { font-size: 12px; color: var(--text-muted); }
.admin-audit-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.share-rank-btn { margin-left: auto; }

/* Panel notifikácií musí byť nad riadkom menu (nav-sub-links je v DOM až za nav-container) */
.top-nav {
    overflow: visible !important;
}

.top-nav .nav-container {
    position: relative;
    z-index: 5;
}

.top-nav .nav-sub-links {
    position: relative;
    z-index: 1;
}

.notif-center-panel.open {
    position: fixed;
    z-index: 10100;
}

@media (max-width: 768px) {
    /* Riadok s bell ikonou nad mobilným menu (nav-sub-links má z-index 9999) */
    .top-nav .nav-container {
        position: relative;
        z-index: 10060;
    }

    .notif-center-panel.open {
        max-height: min(420px, calc(100dvh - 140px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-demo-spotlight,
    .lb-podium-slot,
    .achievement-unlock-icon { animation: none !important; }
}

/* --- Zápasy: prepínač Zápasy / Tabuľky --- */
.matches-subnav {
    display: inline-flex;
    align-items: stretch;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(8, 18, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.matches-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #8ea0ad;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.matches-subnav-link:hover {
    color: #dce6ec;
    background: rgba(255, 255, 255, 0.05);
}
.matches-subnav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 96, 169, 0.95), rgba(0, 132, 68, 0.85));
    box-shadow: 0 4px 14px rgba(0, 132, 68, 0.25);
}
.matches-subnav-icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}
.matches-subnav-link.active .matches-subnav-icon {
    opacity: 1;
}

/* --- Zápasy: kompaktný riadok štatistík --- */
.matches-stats-compact.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-bottom: 18px;
    padding: 0;
    grid-template-columns: unset;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
}
.matches-stats-compact .stat-card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.matches-stats-compact .stat-card::before { display: none; }
.matches-stats-compact .stat-card + .stat-card {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.matches-stats-compact .stat-card span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8ea0ad;
    white-space: nowrap;
}
.matches-stats-compact .stat-card strong {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.matches-stats-compact .stat-card .form-badges {
    margin-left: 4px;
}
@media (max-width: 640px) {
    .matches-subnav {
        display: flex;
        width: 100%;
    }
    .matches-subnav-link {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
    }
    .matches-stats-compact.dashboard-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .matches-stats-compact .stat-card + .stat-card {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }
}

/* --- Skupinové tabuľky (Poradie) — Flashscore štýl --- */
.gs-standings-wrap { display: flex; flex-direction: column; gap: 18px; }
.gs-table-block { background: #0b1920; border-radius: 4px; overflow: hidden; }
.gs-table-scroll { overflow-x: auto; }
.gs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
    min-width: 560px;
    display: table !important;
}
.gs-table thead { display: table-header-group !important; }
.gs-table tbody { display: table-row-group !important; }
.gs-table tr { display: table-row !important; }
.gs-th, .gs-td { display: table-cell !important; }
.gs-th {
    padding: 9px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8ea0ad;
    background: #0f222b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    user-select: none;
}
.gs-th-rank { width: 34px; }
.gs-th-team { width: auto; text-align: left; padding-left: 10px; }
.gs-th-pts { width: 42px; }
.gs-th-form { width: 118px; }
.gs-col-rank { width: 34px; }
.gs-col-team { width: 38%; }
.gs-col-form { width: 118px; }
.gs-td {
    padding: 0 6px;
    height: 38px;
    text-align: center;
    color: #dce6ec;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
.gs-row { transition: background-color 0.12s ease; }
.gs-row:hover { background-color: rgba(255, 255, 255, 0.07); cursor: default; }
.gs-row:hover .gs-team-name { color: #fff; }
.gs-td-rank { width: 34px; }
.gs-td-team { text-align: left; padding-left: 10px; overflow: hidden; }
.gs-td-num { font-variant-numeric: tabular-nums; color: #c5d3dc; }
.gs-td-pts { font-weight: 700; color: #fff; font-size: 14px; }
.gs-team-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gs-team-cell .flag-badge-img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.gs-team-name { font-weight: 400; color: #eef4f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-rank-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 3px; border-radius: 3px;
    font-size: 11px; font-weight: 700; color: #fff;
    background: rgba(255, 255, 255, 0.14); cursor: help;
}
.gs-rank-badge.gs-zone-qual { background: #0b60a9; }
.gs-rank-badge.gs-zone-third { background: #008044; }
.gs-rank-badge.gs-zone-out { background: rgba(255, 255, 255, 0.12); color: #9fb0bb; }
.gs-gd-pos { color: #59c27a; }
.gs-gd-neg { color: #e55353; }
.gs-td-form { padding-right: 8px; }
.gs-form-strip { display: inline-flex; gap: 2px; justify-content: flex-end; align-items: center; }
.gs-form-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 3px;
    font-size: 10px; font-weight: 700; line-height: 1; cursor: help; color: #fff;
}
.gs-form-win { background: #008044; }
.gs-form-draw { background: #c68400; }
.gs-form-loss { background: #b42a2a; }
.gs-form-unknown { background: rgba(255, 255, 255, 0.1); color: #8ea0ad; }
.gs-tip {
    position: fixed !important;
    z-index: 99999 !important;
    max-width: 280px; padding: 8px 11px;
    border-radius: 4px; background: #233945; border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f7fa; font-size: 12px; line-height: 1.4; pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    opacity: 0; visibility: hidden; transition: opacity 0.1s ease;
    text-align: center; white-space: normal;
}
.gs-tip strong { display: block; font-weight: 700; color: #fff; margin-bottom: 2px; }
.gs-tip .gs-tip-date { display: block; margin-top: 2px; color: #8ea0ad; font-size: 11px; font-weight: 400; }
.gs-tip.visible { opacity: 1; visibility: visible; }
@media (max-width: 640px) {
    .gs-table { min-width: 520px; font-size: 12px; }
    .gs-td { height: 36px; }
    .gs-form-badge { width: 16px; height: 16px; font-size: 9px; }
}
