:root {
    --page-bg: #0b1220;
    --frame-bg: #111a2e;
    --frame-border: #263247;
    --frame-border-soft: #303d53;
    --panel-bg: #0f1728;
    --panel-top: #212d3f;
    --text-main: #ffffff;
    --text-soft: #99a8c1;
    --text-muted: #7f8ea6;
    --accent: #635bff;
    --success: #29c880;
    --danger: #f36b7f;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    min-height: 100%;
    background: #0a1120;
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
}
body { padding: 26px 28px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.app-shell { max-width: 1284px; margin: 0 auto; }
.app-frame {
    background: var(--frame-bg);
    border: 1px solid var(--frame-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.topbar {
    height: 64px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a2436;
    border-bottom: 1px solid var(--frame-border-soft);
}
.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    flex: 0 0 auto;
    margin-right: 10px;
    flex: 0 0 auto;
}
.brand-logo {
    display: block;
    height: 45px;
    width: auto;
    object-fit: contain;
}
.topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
    margin-right: auto;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #edf2fb;
    opacity: 0.92;
}
.nav-link i {
    font-size: 13px;
    line-height: 1;
    margin-right: 2px;
}
.nav-link-active {
    background: #0f1729;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    color: #ffffff;
    opacity: 1;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.icon-button {
    width: 20px;
    height: 20px;
    color: #d1d8e6;
    display: inline-flex;
}
.icon-button svg { width: 100%; height: 100%; }
.user-chip {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.user-menu {
    position: relative;
}
.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.user-menu-chevron {
    color: #8ea3c5;
    font-size: 12px;
    line-height: 1;
    transition: transform .16s ease, color .16s ease;
}
.user-menu.is-open .user-menu-chevron {
    transform: rotate(180deg);
    color: #dbe5f8;
}
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    border-radius: 12px;
    background: #152033;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    display: grid;
    gap: 4px;
    z-index: 30;
}
.user-menu-dropdown[hidden] {
    display: none !important;
}
.user-menu-item {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #edf2fb;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    cursor: pointer;
}
.user-menu-item i {
    width: 16px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    margin-right: 2px;
}
.user-menu-item:hover {
    background: rgba(255,255,255,0.05);
}
.user-menu-item-danger {
    color: #ffb7c2;
}
.user-menu-item-danger:hover {
    background: rgba(243, 107, 127, 0.12);
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f6d9bd, #d7a880);
    color: #1a2231;
    font-size: 13px;
    font-weight: 600;
}
.ghost-button {
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.page-banner {
    min-height: 84px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    background: #243044;
    border-bottom: 1px solid var(--frame-border-soft);
}
.page-banner h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.content-stage {
    background: #0b1323;
    padding: 24px 20px 24px;
}
.content-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}
.two-column-dashboard {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    align-items: stretch;
}
.surface-card {
    background: #10192b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 18px;
}
.tabbed-card {
    min-height: 640px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.leaderboard-side-card {
    min-height: 640px;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.tabs-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #0e1627;
    border: 1px solid rgba(255,255,255,0.05);
}
.tab-button {
    border: 0;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 9px;
    background: transparent;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.tab-button.is-active {
    background: #1b2640;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.dashboard-tabs {
    display: grid;
    gap: 18px;
}
.dashboard-tabs-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dashboard-tab {
    position: relative;
    border: 0;
    padding: 0 0 12px;
    background: transparent;
    color: #8ea3c5;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color .16s ease;
}
.dashboard-tab:hover {
    color: #dbe5f8;
}
.dashboard-tab.is-active {
    color: #ffffff;
}
.dashboard-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transition: background-color .16s ease;
}
.dashboard-tab.is-active::after {
    background: #6d5dff;
}
.dashboard-tab-panel {
    display: none;
}
.dashboard-tab-panel.is-active {
    display: block;
}
.dashboard-tab-panel .predictions-info-banner {
    margin-bottom: 16px;
}
.dashboard-async-placeholder {
    min-height: 180px;
}
.surface-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.surface-head h2 {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.surface-head-tight { align-items: center; }
.section-kicker {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.empty-placeholder {
    min-height: 160px;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 14px;
    color: var(--text-soft);
    background:
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 8px),
        #10192b;
    text-align: center;
}
.countdown-panel, .mini-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    background: #151f31;
    color: #eef3fb;
    font-size: 12px;
    font-weight: 500;
}
.countdown-panel strong { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.countdown-label { color: var(--text-soft); }
.countdown-panel-danger { border-color: rgba(243,107,127,0.35); color: #ffd4da; }
.countdown-panel-inline {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 16px;
    white-space: nowrap;
}
.mini-badge { justify-content: center; font-size: 13px; }
.success-badge { color: #d9ffea; border-color: rgba(41,200,128,0.28); }
.stack-list, .leaderboard-list, .match-stack { display: grid; gap: 12px; }
.marks-banner {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(28, 49, 84, 0.5);
    color: #8fc2ff;
    font-size: 14px;
    text-align: left;
    border: 0;
}
.predictions-info-banner {
    width: 100%;
}
.marks-banner-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}
.marks-banner-icon i {
    font-size: 18px;
    line-height: 1;
}
.marks-banner-copy {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}
.marks-banner-separator {
    color: rgba(143, 194, 255, 0.72);
}
.result-line, .leader-row, .fixture-card {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #121c2f;
}
.result-line, .leader-row {
    padding: 14px 16px;
}
.fixture-card {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.fixture-title {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.fixture-title span { color: var(--text-muted); font-weight: 500; }
.fixture-card-stacked {
    display: grid;
    gap: 14px;
}
.fixture-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.result-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
}
.result-tags span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
}
.state-correct { border-color: rgba(41,200,128,0.22); }
.state-wrong { border-color: rgba(243,107,127,0.22); }
.summary-banner {
    margin-top: 14px;
    border-radius: 12px;
    background: rgba(41,200,128,0.08);
    border: 1px solid rgba(41,200,128,0.16);
    padding: 14px 16px;
    color: #dffeed;
    font-size: 13px;
    font-weight: 500;
}
.context-alert {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 0;
}
.context-alert-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}
.context-alert-icon i {
    width: 100%;
    height: 100%;
    font-size: 18px;
    line-height: 1;
}
.context-alert-copy {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}
.context-alert-success {
    background: rgba(19, 62, 49, 0.42);
    color: #8ef0c4;
}
.context-alert-danger {
    background: rgba(84, 34, 44, 0.42);
    color: #ff9baa;
}
.context-alert-info {
    background: rgba(28, 49, 84, 0.5);
    color: #8fc2ff;
}
.context-alert-warning {
    background: rgba(54, 53, 37, 0.7);
    color: #ffd84d;
}
.market-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.market-pill {
    min-width: 84px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: grid;
    gap: 4px;
}
.market-pill span {
    color: #f3f7ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}
.market-pill strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 23px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(20, 211, 123, 0.12);
    color: #14d37b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    border: 0;
    margin-top: 5px;
}
.predictions-table-wrap {
    overflow-x: auto;
}
.predictions-table thead th,
.predictions-table tbody td {
    white-space: nowrap;
}
.predictions-table thead th:first-child,
.predictions-table tbody td:first-child {
    text-align: left;
}
.predictions-table .match-cell {
    flex-wrap: nowrap;
    white-space: nowrap;
}
.predictions-table .match-home,
.predictions-table .match-away,
.predictions-table .table-vs {
    white-space: nowrap;
}
.dashboard-predictions-table thead th,
.dashboard-predictions-table tbody td {
    padding: 12px;
}
.dashboard-predictions-table thead th {
    font-size: 12px;
}
.dashboard-predictions-table tbody td {
    font-size: 13px;
}
.dashboard-predictions-table thead th:first-child,
.dashboard-predictions-table tbody td:first-child {
    min-width: 210px;
    padding-left: 12px;
    padding-right: 8px;
}
.dashboard-predictions-table .match-cell {
    gap: 6px;
}
.dashboard-predictions-table .match-home,
.dashboard-predictions-table .match-away,
.dashboard-predictions-table .table-vs {
    font-size: 13px;
}
.dashboard-predictions-table .prediction-stat-badge {
    min-width: 52px;
    min-height: 21px;
    padding: 0 8px;
    font-size: 11px;
}
.dashboard-predictions-table-wrap {
    overflow-x: auto;
}
.predictions-table tbody td:not(:first-child),
.predictions-table thead th:not(:first-child) {
    text-align: center;
}
.prediction-stat-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 23px;
    padding: 0 10px;
    border-radius: 8px;
    background: #242656;
    color: #9b8cff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 0;
    overflow: hidden;
}
.prediction-stat-badge-max {
    background: #242656;
    color: #ffffff;
}
.prediction-stat-badge-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(90deg, rgba(122, 104, 255, 0.9), rgba(150, 129, 255, 0.96));
    opacity: 0.26;
    pointer-events: none;
}
.prediction-stat-badge-fill.is-full {
    border-radius: inherit;
}
.prediction-stat-badge-max .prediction-stat-badge-fill {
    background: linear-gradient(90deg, rgba(122, 104, 255, 0.9), rgba(150, 129, 255, 0.96));
    opacity: 0.38;
}
.prediction-stat-badge-value {
    position: relative;
    z-index: 1;
}
.regulations-card {
    width: 100%;
    max-width: none;
}
.rules-hero {
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background:
        radial-gradient(circle at top right, rgba(99, 91, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        #121c2f;
}
.rules-hero-copy p {
    margin: 0;
    max-width: 760px;
    color: #dfe8f8;
    font-size: 15px;
    line-height: 1.7;
}
.rules-summary-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.rules-summary-card {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(12, 19, 34, 0.52);
    border: 1px solid rgba(255,255,255,0.05);
    display: grid;
    gap: 6px;
}
.rules-summary-card span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.rules-summary-card strong {
    font-size: 18px;
    line-height: 1.1;
}
.points-scale {
    margin-bottom: 22px;
    padding: 34px 24px 20px;
    border-radius: 22px;
    background: #121D2E;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}
.points-scale-head {
    text-align: center;
}
.points-scale-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f2bb2c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.32em;
}
.points-scale-kicker-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
}
.points-scale-kicker-icon svg {
    width: 100%;
    height: 100%;
}
.points-scale-head h3 {
    margin: 16px 0 0;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.points-scale-head p {
    margin: 10px 0 0;
    color: #7e92b6;
    font-size: 18px;
}
.points-scale-track {
    position: relative;
    margin-top: 34px;
}
.points-scale-line {
    position: absolute;
    left: 56px;
    right: 56px;
    top: 74px;
    height: 2px;
    background: linear-gradient(90deg, rgba(99,115,143,0.35), rgba(27,167,255,0.55) 68%, rgba(242,187,44,0.75));
}
.points-scale-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
}
.score-card {
    position: relative;
    min-height: 142px;
    padding: 18px 14px 16px;
    border-radius: 18px;
    background: #1C283F;
    border: 2px solid rgba(118, 131, 156, 0.22);
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    z-index: 1;
}
.score-card-ratio {
    color: #87a0c8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
.score-card-value {
    margin-top: 10px;
    color: #ffffff;
    font-size: 54px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
}
.score-card-value span {
    margin-left: 4px;
    color: #87a0c8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}
.score-card-stars {
    margin-top: 14px;
    color: rgba(130, 143, 168, 0.44);
    font-size: 14px;
    letter-spacing: 0.16em;
}
.score-card-tag {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(18, 146, 227, 0.16);
    color: #24a9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}
.score-card-icon {
    margin-top: 34px;
    color: #23b3ff;
    font-size: 23px;
    line-height: 1;
}
.score-card-bonus {
    margin-top: 8px;
    color: #24a9ff;
    font-size: 14px;
    font-weight: 700;
}
.score-card-value-blue {
    color: #16acff;
}
.score-card-stars-blue {
    color: #15a8ff;
}
.score-card-streak,
.score-card-fire {
    min-height: 174px;
    border-color: rgba(20, 173, 255, 0.85);
    background:
        radial-gradient(circle at 50% 0%, rgba(18, 176, 255, 0.12), transparent 50%),
        rgba(15, 35, 53, 0.88);
    box-shadow:
        0 0 0 1px rgba(20, 173, 255, 0.14) inset,
        0 0 26px rgba(19, 158, 255, 0.18);
}
.score-card-fire .score-card-stars {
    letter-spacing: 0.12em;
}
.score-card-perfect {
    min-height: 184px;
    border-color: rgba(242, 187, 44, 0.85);
    background:
        radial-gradient(circle at 50% 0%, rgba(242, 187, 44, 0.16), transparent 52%),
        rgba(54, 46, 19, 0.92);
    box-shadow:
        0 0 0 1px rgba(242, 187, 44, 0.16) inset,
        0 0 32px rgba(242, 187, 44, 0.28);
}
.score-card-tag-gold,
.score-card-icon-gold,
.score-card-value-gold,
.score-card-bonus-gold,
.score-card-stars-gold {
    color: #f2c63b;
}
.bonus-zone {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid rgba(242, 187, 44, 0.22);
    background: rgba(57, 54, 32, 0.42);
}
.bonus-zone-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #8399bf;
    font-size: 15px;
}
.bonus-zone-copy strong,
.bonus-zone-icon,
.bonus-zone-stars {
    color: #f2c63b;
}
.bonus-zone-copy strong {
    font-size: 22px;
    line-height: 1;
}
.bonus-zone-icon {
    font-size: 18px;
}
.bonus-zone-stars {
    font-size: 20px;
    letter-spacing: 0.18em;
}
.rules-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.rule-item {
    position: relative;
    padding: 18px 18px 18px 64px;
    border-radius: 14px;
    background: #121c2f;
    border: 1px solid rgba(255,255,255,0.06);
}
.rule-index {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #1c2740;
    color: #8ea4c7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.rule-item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.2;
}
.rule-item p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}
.week-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));
    gap: 16px;
    margin-bottom: 18px;
}
.filter-field {
    display: grid;
    gap: 8px;
}
.week-filter-label {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
}
.week-filter-select {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d1525;
    color: #ffffff;
}
.single-select {
    position: relative;
}
.single-select-trigger {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #20293a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}
.single-select-value,
.single-select-option-copy {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.single-select-chevron {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #93a6c9;
    flex: 0 0 16px;
}
.single-select-chevron svg {
    width: 16px;
    height: 16px;
}
.single-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 320px;
    padding: 8px 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #20293a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.36);
    display: none;
    overflow-y: auto;
    z-index: 20;
}
.single-select.is-open .single-select-menu {
    display: block;
}
.single-select-option {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #e8eefb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}
.single-select-option:hover {
    background: rgba(255,255,255,0.04);
}
.single-select-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #66748e;
    flex: 0 0 8px;
}
.single-select-status-dot-online {
    background: #25d874;
}
.single-select-check {
    color: #7f86ff;
    opacity: 0;
    font-size: 16px;
}
.single-select-option.is-selected .single-select-check {
    opacity: 1;
}
.results-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background: #121c2f;
}
.results-table {
    width: 100%;
    border-collapse: collapse;
}
.results-table thead th {
    padding: 16px 18px;
    text-align: left;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.results-table tbody td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.results-table thead th:not(:first-child),
.results-table tbody td:not(:first-child) {
    text-align: center;
}
.results-table tbody tr:last-child td {
    border-bottom: 0;
}
.results-table tbody td:first-child {
    font-weight: 600;
}
.match-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.table-vs {
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10px;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 0;
}
.status-badge-correct {
    color: #14d37b;
    background: rgba(20, 211, 123, 0.12);
}
.status-badge-wrong {
    color: #ff5f73;
    background: rgba(255, 95, 115, 0.12);
}
.status-badge-missed {
    color: #ffb020;
    background: rgba(255, 176, 32, 0.14);
}
.status-badge-progress {
    color: #8fb6ff;
    background: rgba(70, 118, 255, 0.14);
}
.status-badge-pending {
    color: #bfc9da;
    background: rgba(191, 201, 218, 0.12);
}
.status-badge-secret {
    color: #ffd84d;
    background: rgba(131, 111, 31, 0.18);
}
.prediction-badges {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}
.prediction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    min-height: 28px;
    padding: 0 8px;
    margin-right: 3px;
    border-radius: 8px;
    background: #23314a;
    color: #f3f7ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 0;
}
.prediction-badges .prediction-badge:last-child {
    margin-right: 0;
}
.pick-group { display: flex; gap: 10px; }
.locked-prediction-wrap {
    display: flex;
    justify-content: center;
}
.pick-option {
    position: relative;
    overflow: hidden;
    width: 72px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #161f31;
    display: grid;
    place-items: center;
    color: #f6f8fe;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.pick-option::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 35%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.04) 65%, transparent 100%);
    transform: translateX(-115%);
    opacity: 0;
    pointer-events: none;
}
.pick-option:hover { border-color: rgba(255,255,255,0.18); }
.pick-option.is-active {
    background: #635bff;
    border-color: #635bff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.pick-option.is-loading::before {
    opacity: 1;
    animation: pick-option-sweep .45s linear infinite;
}
.pick-option.is-error-flash {
    border-color: rgba(255, 95, 115, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 95, 115, 0.18);
}
.pick-option.is-locked { opacity: 0.78; cursor: default; }
.pick-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.has-modal-open {
    overflow: hidden;
}
.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
}
.modal-shell[hidden] {
    display: none !important;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 18, 0.74);
    z-index: 0;
}
.modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 548px);
    border-radius: 12px;
    overflow: hidden;
    background: #202c3d;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}
.modal-card-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 28px 18px;
}
.modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
}
.modal-icon svg {
    width: 22px;
    height: 22px;
}
.modal-icon-danger {
    background: rgba(255, 82, 98, 0.12);
    color: #ff6879;
}
.modal-copy h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}
.modal-copy p {
    margin: 0;
    color: #a7b5ca;
    font-size: 14px;
    line-height: 1.55;
}
.modal-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #253246;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.modal-button {
    min-width: 96px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.modal-button-primary {
    background: #ff4b57;
    color: #ffffff;
}
@keyframes pick-option-sweep {
    from {
        transform: translateX(-115%);
    }
    to {
        transform: translateX(115%);
    }
}
.prediction-form {
    display: grid;
    gap: 16px;
    align-content: start;
}
.primary-button {
    justify-self: start;
    border: 0;
    border-radius: 10px;
    min-height: 42px;
    padding: 0 18px;
    background: #635bff;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.leaderboard-list {
    height: calc(100% - 56px);
    align-content: start;
    padding-bottom: 12px;
}
.leaderboard-footer-link {
    margin-top: auto;
    padding: 12px 6px 4px;
    text-align: center;
}
.leaderboard-footer-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    background: #27345a;
    color: #7f8cff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background-color .16s ease, color .16s ease;
}
.leaderboard-footer-link a:hover {
    background: #314271;
    color: #98a4ff;
}
.leader-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 18px 20px;
    font-size: 14px;
}
.leader-row[data-row-link],
.players-table tr[data-row-link] {
    cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease;
}
.leader-row[data-row-link]:hover {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.04),
        0 10px 24px rgba(0, 0, 0, 0.18);
    background-color: rgba(255,255,255,0.035);
}
.players-table tr[data-row-link]:hover td {
    background-color: rgba(255,255,255,0.015);
}
.leader-row[data-row-link]:focus-visible,
.players-table tr[data-row-link]:focus-visible {
    outline: 2px solid rgba(99, 91, 255, 0.45);
    outline-offset: -2px;
}
.leader-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.leader-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}
.leader-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #2b3447;
    color: #8fa3c6;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.leader-avatar-active {
    color: #b7c9ea;
    background: #303a50;
}
.leader-status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #5f6c86;
    border: 2px solid #121c2f;
}
.leader-status-dot-online {
    background: #19c96b;
}
.leader-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.leader-copy strong {
    font-size: 15px;
    font-weight: 200;
    line-height: 1.2;
    color: #ffffff;
}
.leader-copy span {
    color: #8194b6;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leader-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-items: end;
    text-align: right;
}
.leader-meta strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: 60px;
    padding: 0 12px;
    border-radius: 9px;
    background: #243149;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}
.leaderboard-page-card {
    padding: 18px 18px 0;
}
.players-table-shell {
    overflow-x: auto;
}
.players-table {
    width: 100%;
    border-collapse: collapse;
}
.players-table th,
.players-table td {
    padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    vertical-align: middle;
}
.players-table thead th {
    border-top: 0;
    color: #f4f7ff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.players-table tbody td {
    color: #c9d4e8;
    font-size: 14px;
    line-height: 1.45;
}
.players-table-row-active {
    background:
        radial-gradient(circle at bottom right, rgba(99, 91, 255, 0.14), transparent 48%),
        linear-gradient(180deg, rgba(18, 28, 47, 0.98), rgba(26, 36, 58, 0.96));
}
.players-table-row-active td {
    background: transparent;
}
.players-table-rank {
    width: 70px;
    text-align: center;
}
.players-table-rank-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.players-table-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: #0A111F;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
.players-table-rank-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.players-table-rank-trend i {
    line-height: 1;
}
.players-table-rank-trend-up {
    color: #29c880;
}
.players-table-rank-trend-down {
    color: #f36b7f;
}
.players-table-rank-trend-same {
    color: #8ea3c5;
}
.players-table-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
}
.players-table-copy {
    display: grid;
    gap: 4px;
}
.players-table-copy strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}
.players-table-copy span {
    color: #88a0c3;
    font-size: 13px;
    line-height: 1.3;
}
.players-table-lastseen {
    min-width: 150px;
    color: #9eb0cc;
    white-space: nowrap;
}
.players-table-lastseen-now {
    color: #29c880;
    font-weight: 600;
}
.players-table-accuracy-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}
.players-table-accuracy-bar {
    position: relative;
    width: 104px;
    height: 8px;
    border-radius: 999px;
    background: #243149;
    overflow: hidden;
}
.players-table-accuracy-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5c6bff 0%, #6d5dff 100%);
}
.players-table-accuracy-value {
    color: #f4f7ff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
.players-table-points {
    width: 92px;
}
.players-table-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    background: #243149;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}
.players-table-empty {
    color: #8ca1c1;
}
.profile-grid {
    grid-template-columns: minmax(0, 1fr);
}
.profile-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: stretch;
}
.profile-stats-card,
.profile-chart-card,
.profile-accuracy-card,
.profile-bars-card,
.profile-results-card,
.profile-history-card {
    padding: 22px;
    min-width: 0;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    font-size: 30px;
}
.profile-stat-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 14px;
}
.profile-stat-box {
    padding: 16px 18px;
    border-radius: 14px;
    background: #121c2f;
    border: 1px solid rgba(255,255,255,0.06);
    display: grid;
    align-content: start;
    gap: 8px;
}
.profile-stat-box > span {
    color: #8ea3c5;
    font-size: 13px;
    line-height: 1.2;
}
.profile-stat-box strong {
    display: inline-flex;
    align-items: flex-end;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    min-height: 32px;
}
.profile-player-box {
    align-content: center;
    grid-column: auto;
}
.profile-player-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.profile-player-inline .profile-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    font-size: 24px;
}
.profile-player-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.profile-player-copy strong {
    font-size: 15px;
    line-height: 1.2;
}
.profile-player-copy small {
    color: #8ea3c5;
    font-size: 13px;
    line-height: 1.3;
}
.profile-rank-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
}
.profile-rank-summary .status-badge {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.profile-rank-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.profile-rank-primary {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
.profile-rank-primary sup {
    font-size: 11px;
    line-height: 1;
    vertical-align: super;
}
.profile-trend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.profile-trend-up {
    color: #29c880 !important;
}
.profile-trend-down {
    color: #f36b7f !important;
}
.profile-trend-same {
    color: #8ea3c5 !important;
}
.profile-history-list {
    display: grid;
    gap: 12px;
}
.profile-chart {
    min-height: 320px;
    width: 100%;
    min-width: 0;
}
.profile-accuracy-radial {
    min-height: 340px;
    width: 100%;
    min-width: 0;
}
.profile-bars-chart {
    min-height: 320px;
    width: 100%;
    min-width: 0;
}
.profile-chart .apexcharts-canvas,
.profile-chart .apexcharts-svg,
.profile-accuracy-radial .apexcharts-canvas,
.profile-accuracy-radial .apexcharts-svg,
.profile-bars-chart .apexcharts-canvas,
.profile-bars-chart .apexcharts-svg {
    background: transparent !important;
}
.profile-chart-tooltip {
    min-width: 118px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f1118;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}
.profile-chart-tooltip-title {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.profile-chart-tooltip-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dbe6fb;
    font-size: 13px;
    line-height: 1.2;
}
.profile-chart-tooltip-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 10px;
}
.profile-history-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: #121c2f;
    border: 1px solid rgba(255,255,255,0.06);
}
.profile-history-row span {
    color: #8ea3c5;
}
.profile-history-row strong {
    color: #ffffff;
}
.profile-settings-grid {
    grid-template-columns: minmax(0, 1fr);
}
.profile-results-card .week-filter-form {
    grid-template-columns: minmax(0, 1fr);
}
.profile-results-card .filter-field {
    min-width: 0;
}
.profile-settings-card {
    padding: 22px;
}
.profile-settings-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.profile-settings-preview {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 24px 20px;
    border-radius: 16px;
    background: #121c2f;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.profile-settings-avatar {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    font-size: 38px;
}
.profile-settings-preview-copy {
    display: grid;
    gap: 6px;
}
.profile-settings-preview-copy strong {
    font-size: 18px;
    line-height: 1.2;
}
.profile-settings-preview-copy span {
    color: #8ea3c5;
    font-size: 13px;
}
.profile-settings-form {
    display: grid;
    gap: 16px;
}
.profile-settings-form-narrow {
    max-width: 520px;
}
.profile-settings-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.profile-settings-form input[type="text"],
.profile-settings-form input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d1525;
    color: #ffffff;
}
.profile-settings-form input[disabled] {
    color: #8ea3c5;
    opacity: 1;
    cursor: not-allowed;
}
.avatar-color-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.avatar-color-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #121c2f;
    cursor: pointer;
}
.avatar-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.avatar-color-option:has(input:checked) {
    border-color: rgba(99, 91, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(99, 91, 255, 0.22);
}
.avatar-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    flex: 0 0 18px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.leader-meta span {
    color: #8ca0c1;
    font-size: 13px;
    line-height: 1.2;
}
.leader-row-active {
    background:
        radial-gradient(circle at bottom right, rgba(99, 91, 255, 0.14), transparent 48%),
        linear-gradient(180deg, rgba(18, 28, 47, 0.98), rgba(26, 36, 58, 0.96));
}
.leader-rank {
    width: 24px;
    color: #87a0c7;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}
.leader-rank-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.auth-wrap {
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}
.auth-logo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    min-width: 0;
}
.auth-logo-image {
    width: min(100%, 340px);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.34));
}
.auth-card {
    width: min(100%, 980px);
    padding: 22px;
    background: #111a2e;
    border: 1px solid var(--frame-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1fr);
    align-items: center;
    gap: 18px;
}
.auth-card h1 {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.muted { color: var(--text-soft); }
.auth-form {
    margin-top: 0;
    display: grid;
    gap: 14px;
    padding: 18px 14px 18px 6px;
}
.auth-form .primary-button {
    background: #9E3EB8;
}
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; color: #dce6f6; }
.field input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d1525;
    color: white;
}
.remember-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.remember-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.remember-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #2b354a;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: background .16s ease;
}
.remember-toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #f4f7fd;
    transition: transform .16s ease;
}
.remember-toggle-input:checked + .remember-toggle-switch {
    background: #243149;
}
.remember-toggle-input:checked + .remember-toggle-switch::after {
    transform: translateX(20px);
}
.remember-toggle-label {
    color: #edf2fb;
    font-size: 14px;
    font-weight: 600;
}
@media (max-width: 860px) {
    .auth-card {
        grid-template-columns: 1fr;
        width: min(100%, 520px);
        gap: 10px;
    }
    .auth-logo-panel {
        padding: 8px 8px 0;
    }
    .auth-logo-image {
        width: min(100%, 220px);
    }
    .auth-form {
        padding: 8px 6px 6px;
    }
}
.wide { width: 100%; }
.error-text { color: #ff98a2; font-size: 12px; }
.message-stack { display: grid; gap: 10px; margin-top: 14px; }
.frame-messages { padding: 0 20px; }
.message {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}
.message-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}
.message-icon i {
    font-size: 18px;
    line-height: 1;
}
.message-copy {
    min-width: 0;
}
.message.success {
    background: rgba(19, 62, 49, 0.42);
    color: #8ef0c4;
}
.message.error {
    background: rgba(84, 34, 44, 0.42);
    color: #ff9baa;
}
.message.warning {
    background: rgba(54, 53, 37, 0.7);
    color: #ffd84d;
}
.message.info,
.message.debug {
    background: rgba(28, 49, 84, 0.5);
    color: #8fc2ff;
}

@media (max-width: 1120px) {
    body { padding: 12px; }
    .topbar {
        height: auto;
        padding: 16px;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
    }
    .topnav {
        order: 3;
        margin: 0;
        flex-wrap: wrap;
    }
    .page-banner { padding: 22px 20px; min-height: auto; }
    .two-column-dashboard { grid-template-columns: 1fr; }
    .leaderboard-side-card,
    .tabbed-card { min-height: auto; }
    .fixture-card { flex-direction: column; align-items: flex-start; }
    .fixture-header-row { flex-direction: column; align-items: flex-start; }
    .pick-group { width: 100%; }
    .pick-option { flex: 1 1 0; width: auto; }
    .leader-row { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; }
    .leader-meta { grid-column: auto; justify-items: end; text-align: right; padding-left: 0; }
    .tabs-bar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-tabs-nav {
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 1px;
    }
    .dashboard-tab {
        white-space: nowrap;
    }
    .week-filter-form {
        grid-template-columns: 1fr;
    }
    .rules-list,
    .points-scale-grid {
        grid-template-columns: 1fr;
    }
    .points-scale {
        padding: 26px 16px 16px;
    }
    .points-scale-head h3 {
        font-size: 22px;
    }
    .points-scale-head p {
        font-size: 15px;
    }
    .points-scale-line {
        display: none;
    }
    .score-card,
    .score-card-streak,
    .score-card-fire,
    .score-card-perfect {
        min-height: auto;
    }
    .bonus-zone {
        flex-direction: column;
        align-items: flex-start;
    }
    .context-alert {
        padding: 16px;
    }
    .results-table thead {
        display: none;
    }
    .results-table,
    .results-table tbody,
    .results-table tr,
    .results-table td {
        display: block;
        width: 100%;
    }
    .results-table-wrap {
        border: 0;
        background: transparent;
        overflow: visible;
    }
    .results-table tbody td {
        display: grid;
        grid-template-columns: 96px 1fr;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        border-bottom: 0;
        text-align: left !important;
    }
    .results-table tbody tr {
        padding: 8px 0;
        margin-bottom: 12px;
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 12px;
        background: #121c2f;
    }
    .results-table tbody tr:last-child {
        margin-bottom: 0;
    }
    .results-table tbody td::before {
        content: attr(data-label);
        color: var(--text-soft);
        font-size: 12px;
        font-weight: 600;
    }
    .results-table tbody td:first-child {
        padding-top: 16px;
    }
    .results-table tbody td:last-child {
        padding-bottom: 16px;
    }
    .results-table tbody td[data-label="Αγώνας"] {
        align-items: start;
    }
    .results-table tbody td[data-label="Αγώνας"] .match-cell {
        display: block;
        white-space: nowrap;
    }
    .results-table tbody td[data-label="Αγώνας"] .match-home,
    .results-table tbody td[data-label="Αγώνας"] .match-away {
        display: inline;
        white-space: nowrap;
    }
    .results-table tbody td[data-label="Κατάσταση"] .status-badge {
        justify-self: start;
    }
    .predictions-table tbody td:not(:first-child) {
        text-align: left !important;
    }
    .predictions-table tbody td::before {
        text-align: center;
    }
    .predictions-table tbody td .prediction-stat-badge {
        justify-self: start;
    }
}
@media (max-width: 760px) {
    .leaderboard-page-card {
        padding-top: 18px;
    }
    .players-table-shell {
        overflow-x: visible;
    }
    .players-table,
    .players-table thead,
    .players-table tbody,
    .players-table tr,
    .players-table th,
    .players-table td {
        display: block;
        width: 100%;
    }
    .players-table thead {
        display: none;
    }
    .players-table tbody {
        display: grid;
        gap: 14px;
        padding: 0 18px 18px;
    }
    .players-table tr {
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px;
        background: #121c2f;
        overflow: hidden;
    }
    .players-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
        padding: 14px 16px;
        border-top: 1px solid rgba(255,255,255,0.06);
        text-align: left;
    }
    .players-table td:first-child {
        border-top: 0;
    }
    .players-table td::before {
        content: attr(data-label);
        color: #8ea3c5;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
    }
    .players-table-rank {
        text-align: left;
    }
    .players-table-rank-badge {
        justify-self: start;
    }
    .players-table-identity {
        min-width: 0;
    }
    .players-table td[data-label="Παίκτης"] .leader-avatar-wrap,
    .players-table td[data-label="Παίκτης"] .players-table-copy span {
        display: none;
    }
    .players-table td[data-label="Παίκτης"] .players-table-identity {
        display: block;
    }
    .players-table td[data-label="Παίκτης"] .players-table-copy {
        display: block;
    }
    .players-table-lastseen,
    .players-table-ratio,
    .players-table-points {
        min-width: 0;
        width: auto;
    }
    .players-table-accuracy-wrap {
        min-width: 0;
        justify-content: flex-start;
    }
    .players-table-accuracy-bar {
        width: min(160px, 100%);
    }
    .players-table-points .players-table-score {
        min-width: 60px;
        width: auto;
        justify-self: start;
    }
    .players-table-empty {
        display: block;
        text-align: center;
    }
    .players-table-empty::before {
        content: none;
    }
    .profile-stat-grid {
        grid-template-columns: 1fr;
    }
    .profile-analytics-grid {
        grid-template-columns: 1fr;
    }
    .profile-chart,
    .profile-accuracy-radial,
    .profile-bars-chart {
        min-height: 260px;
    }
    .profile-settings-layout,
    .profile-settings-fields,
    .avatar-color-options {
        grid-template-columns: 1fr;
    }
    .profile-history-row {
        grid-template-columns: 1fr;
    }
}
