@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../assets/fonts/dm-sans.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../assets/fonts/dm-sans-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../assets/fonts/bricolage-grotesque.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../assets/fonts/jetbrains-mono.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: italic;
    font-weight: 100 800;
    font-display: swap;
    src: url('../assets/fonts/jetbrains-mono-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/source-serif-4.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Serif 4';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/source-serif-4-italic.woff2') format('woff2');
}
:root {
    --purple: #1A0B2E;
    --purple-dark: #0F0A1A;
    --purple-soft: #2D1B4E;
    --orange: #FF6B00;
    --orange-dark: #CC5500;
    --brand-solid: #FF6B00;
    --brand-soft: rgba(255, 107, 0, 0.12);
    --bg: #F4F7F0;
    --card-bg: #ffffff;
    --panel: #EEF4E6;
    --text: #1A0B2E;
    --text-muted: #6B5B8A;
    --success: #6DBA42;
    --danger: #C94B4B;
    --warning: #D6A83B;
    --radius: 12px;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 16px 30px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: #F3F5EE;
    color: var(--text);
    margin: 0 auto;
    max-width: 520px;
    padding: 12px 10px 84px 10px;
    line-height: 1.35;
    font-size: 12px;
    overflow-x: hidden;
    animation: fadeIn 0.25s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body:not(.auth-page):not(.admin-body) {
    padding-top: 72px;
}
body:not(.auth-page):not(.admin-body) .page-header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 20px), 520px);
    z-index: 30;
}
body:not(.auth-page):not(.admin-body) {
    background: #0d1015;
}
body:not(.admin-body) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body:not(.admin-body)::-webkit-scrollbar {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

a {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 { color: var(--purple-dark); line-height: 1.25; }

/* ---------- Page header ---------- */
.page-header {
    position: sticky;
    top: 10px;
    z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    margin-bottom: 8px; padding: 8px 10px; background: rgba(17, 19, 24, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    border-left: 4px solid rgba(255,255,255,0.08);
}
.page-header h2 {
    margin: 0;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.page-header .sub {
    font-size: 11px;
    color: #f3f8f3;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.user-brief {
    align-items: center;
    justify-content: space-between;
}
.compact-home-header {
    padding: 10px 56px 10px 12px;
    margin-bottom: 10px;
}
.user-brief .welcome-line {
    font-size: 15px;
    font-weight: 800;
    color: #f4f9ef;
    letter-spacing: -0.02em;
}
.user-brief .mini-label {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.amount-mini {
    background: rgba(255,255,255,0.04);
    color: #f4f9ef;
    border-color: rgba(255,255,255,0.08);
    padding: 6px 8px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}
.page-header .hero-icon {
    width: 18px;
    height: 18px;
}

.bet-tabs {
    display: flex;
    gap: 6px;
    margin: 10px 0 12px;
}
.tab-btn {
    flex: 1;
    border: 1px solid #E3E9F0;
    background: #fff;
    color: var(--purple-dark);
    padding: 7px 8px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
}
.tab-btn.active {
    background: var(--brand-solid);
    color: #111;
    border-color: transparent;
}
.tab-badge {
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.12);
    font-size: 8px;
    font-weight: 800;
}
.tab-btn.active .tab-badge {
    background: rgba(17, 17, 17, 0.18);
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.bet-card {
    background: #1A0B2E;
    border: 1px solid rgba(255, 107, 0, 0.16);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(17,17,17,0.08);
    padding: 9px 9px 10px;
    margin-bottom: 7px;
}
.bet-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.bet-id {
    font-size: 10px;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}
.bet-match {
    font-size: 14px;
    font-weight: 800;
    color: #f4f9ef;
    margin-bottom: 8px;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.bet-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.bet-meta-grid div {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 107, 0, 0.12);
    border-radius: 10px;
    padding: 7px 6px;
    text-align: center;
}
@media (max-width: 420px) {
    .bet-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.bet-meta-grid small {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bet-meta-grid strong {
    font-size: 12px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

.profile-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}
.account-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    background: var(--brand-solid);
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}
.account-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--brand-solid);
    color: #06111a;
    font-size: 23px;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(255, 107, 0,0.28);
}
.account-kicker {
    color: #FFB380;
    font-size: 9px;
    font-weight: 800 !important;
    letter-spacing: 0.14em;
}
.account-hero h1 {
    margin: 3px 0 2px;
    color: #fff;
    font-size: 21px;
    line-height: 1.1;
}
.account-hero p {
    margin: 0;
    color: rgba(255,255,255,0.62);
    font-size: 11px;
    overflow-wrap: anywhere;
}
.profile-wallet {
    background: #1A0B2E;
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 16px;
    padding: 12px 12px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}
.profile-wallet .label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.profile-wallet .amount {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}
.profile-wallet .currency {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    margin-left: 6px;
}
.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.profile-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    font-size: 10px;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    border-radius: 10px;
    text-decoration: none;
}
.profile-actions .action-btn.primary {
    background: var(--brand-solid);
    color: #111;
    box-shadow: 0 8px 18px rgba(255, 107, 0,0.2);
}
.profile-actions .action-btn.secondary {
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 107, 0, 0.25);
}
.profile-panel {
    background: #1A0B2E;
    border: 1px solid rgba(255, 107, 0, 0.18);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(17,17,17,0.08);
    overflow: hidden;
}
.profile-panel summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 14px;
    font-weight: 800 !important;
    color: #f4f9ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.profile-panel summary::-webkit-details-marker { display: none; }
.profile-panel .panel-body {
    border-top: 1px solid rgba(255, 107, 0,0.12);
    padding: 0;
}
.panel-link {
    display: block;
    padding: 11px 14px;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255, 107, 0,0.08);
    font-weight: 600 !important;
    font-size: 12px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.panel-link:hover,
.profile-section .section-link:hover {
    background: rgba(255, 107, 0,0.08);
    padding-left: 18px;
}
.panel-link:last-child { border-bottom: none; }
.profile-section {
    background: #1A0B2E;
    border: 1px solid rgba(255, 107, 0,0.18);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(17,17,17,0.08);
    overflow: hidden;
}
.profile-section .section-head {
    padding: 14px 14px 9px;
    font-weight: 800 !important;
    color: #f4f9ef;
    font-size: 13px;
}
.profile-section .section-body {
    padding: 0 0 8px;
}
.app-download-body {
    padding: 0 18px 18px;
}
.profile-section .section-link {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 107, 0,0.08);
    color: rgba(255,255,255,0.82);
    font-weight: 600 !important;
    font-size: 12px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 107, 0,0.08);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
}
.profile-info-row strong {
    color: #fff;
    font-size: 12px;
}
.profile-info-row:last-child { border-bottom: none; }
.pwa-button {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border-radius: 10px;
    background: var(--brand-solid);
    color: #111;
    font-weight: 800 !important;
    border: none;
    cursor: pointer;
    font-size: 11px;
}
.logout-link {
    display: block;
    padding: 12px 18px;
    text-align: center;
    color: #ffb5b5;
    font-weight: 800 !important;
    font-size: 12px;
    border: 1px solid rgba(255,181,181,0.14);
    border-radius: 10px;
    background: rgba(201,75,75,0.08);
}
.language-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.language-form label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.language-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 0, 0.25);
    background: rgba(255,255,255,0.06);
    color: #f4f9ef;
    font-size: 12px;
    font-weight: 700;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FF6B00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.language-form select:focus {
    outline: none;
    border-color: var(--brand-solid);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}
@media (max-width: 420px) {
    .profile-actions {
        grid-template-columns: 1fr;
    }
}

/* ---------- Empty states ---------- */
.empty-state {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    text-align: center; min-height: 180px; padding: 34px 18px; color: var(--text-muted);
    background: #ffffff; border: 1px solid #edf1f7; border-radius: 18px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.empty-state .icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: #66738b;
}
.empty-state .icon svg {
    width: 30px;
    height: 30px;
}

/* ---------- Buttons ---------- */
button, .btn-primary, input[type="submit"] {
    background: var(--brand-solid);
    color: #101010;
    border: none;
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
button:hover, .btn-primary:hover, input[type="submit"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}
button:active, .btn-primary:active { transform: translateY(0) scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
    background: #fff;
    color: var(--purple);
    border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* ---------- Inputs ---------- */
input, select, textarea {
    border: 1px solid rgba(255, 107, 0, 0.22);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    margin: 3px 6px 3px 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: #f9faf7;
    color: var(--text);
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-solid);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
    background: #fff;
}
/* ---------- Auth pages (login, register, admin login) ---------- */
body.auth-page {
    position: relative;
    isolation: isolate;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px calc(32px + env(safe-area-inset-bottom));
    background: #eef2f8;
    color: #16233b;
    font-size: 14px;
}
body.auth-page::before {
    content: '';
    position: fixed;
    inset: 0 0 auto;
    height: 46vh;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(160deg, #3d9bf0 0%, #2b86e0 55%, #1f6fc4 100%);
    border-radius: 0 0 36px 36px;
}
.auth-shell {
    width: min(100%, 420px);
    animation: authLift 0.45s ease both;
}
.auth-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(22, 52, 102, 0.16);
    padding: 28px 26px 24px;
}
.brand-logo {
    display: block;
    width: 132px;
    height: auto;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #000;
}

.auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: #eef2f8;
}
.auth-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 9px;
    color: #66748c;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}
.auth-switch a:hover { color: #16233b; }
.auth-switch a.active {
    background: #2b86e0;
    color: #fff;
    box-shadow: 0 6px 16px rgba(43, 134, 224, 0.28);
}

.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head h1 {
    margin: 0 0 6px;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    color: #16233b;
}
.auth-head p {
    margin: 0 auto;
    max-width: 320px;
    color: #66748c;
    font-size: 13px;
    line-height: 1.5;
}
.auth-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f1fc;
    color: #1f6fc4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-alert {
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid transparent;
}
.auth-alert a { margin-left: 4px; font-weight: 800; color: inherit; text-decoration: underline; }
.auth-alert.error { background: #fdecec; border-color: #f6c4c6; color: #b3262b; }
.auth-alert.success { background: #e7f6ee; border-color: #b9e3cb; color: #11744a; }
.auth-alert.info { background: #e6f1fc; border-color: #bcd9f5; color: #1f5f9e; }
.auth-alert.info strong { color: #16233b; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-form .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.auth-form label,
.referral-field summary {
    font-size: 12px;
    font-weight: 700;
    color: #3a4a64;
    letter-spacing: 0.01em;
}
.input-wrap { position: relative; }
.field-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8a97ad;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s ease;
}
.auth-form .input-wrap input {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 12px 14px 12px 42px;
    border-radius: 11px;
    border: 1px solid #d8e0ec;
    background: #f7f9fc;
    color: #16233b;
    font-size: 15px;
    font-family: inherit;
}
.auth-form .input-wrap input::placeholder { color: #a3aec0; }
.auth-form .input-wrap input:focus {
    background: #fff;
    border-color: #2b86e0;
    box-shadow: 0 0 0 3px rgba(43, 134, 224, 0.18);
}
.input-wrap:focus-within .field-icon { stroke: #2b86e0; }
.auth-form input[aria-invalid="true"] {
    border-color: #e0464b;
    box-shadow: 0 0 0 3px rgba(224, 70, 75, 0.14);
}
.auth-form input:-webkit-autofill {
    -webkit-text-fill-color: #16233b;
    -webkit-box-shadow: 0 0 0 1000px #f7f9fc inset;
    caret-color: #16233b;
}
.auth-form .input-wrap input:has(+ .password-toggle) { padding-right: 48px; }

.password-toggle,
.password-toggle:hover,
.password-toggle:focus,
.password-toggle:active {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #8a97ad;
}
.password-toggle:hover,
.password-toggle:focus-visible { color: #2b86e0; background: #eef2f8; }
.password-toggle:focus-visible { outline: 2px solid rgba(43, 134, 224, 0.5); outline-offset: 1px; }
.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.password-toggle .eye-closed,
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }

.field-hint {
    margin: 0;
    font-size: 11.5px;
    color: #7a879c;
}
.field-hint.warn { color: #b7791f; font-weight: 700; }

.strength { display: flex; align-items: center; gap: 10px; }
.strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 1; }
.strength-bars i {
    height: 4px;
    border-radius: 999px;
    background: #e3e9f3;
    transition: background 0.25s ease;
}
.strength-label {
    min-width: 116px;
    text-align: right;
    font-size: 11.5px;
    color: #7a879c;
}
.strength[data-score="0"] .strength-bars i:nth-child(-n+1) { background: #e0464b; }
.strength[data-score="1"] .strength-bars i:nth-child(-n+1) { background: #e0464b; }
.strength[data-score="2"] .strength-bars i:nth-child(-n+2) { background: #f39c12; }
.strength[data-score="3"] .strength-bars i:nth-child(-n+3) { background: #5cb85c; }
.strength[data-score="4"] .strength-bars i { background: #179a5b; }
.strength[data-score="0"] .strength-label,
.strength[data-score="1"] .strength-label { color: #b3262b; }

.referral-field summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    cursor: pointer;
    list-style: none;
    color: #2b86e0;
}
.referral-field summary::-webkit-details-marker { display: none; }
.referral-field summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}
.referral-field[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.referral-field[open] summary { margin-bottom: 8px; }
.referral-field input { text-transform: uppercase; letter-spacing: 0.08em; }
.referral-field input::placeholder { text-transform: none; letter-spacing: 0; }

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 11px;
    background: #f7f9fc;
    border: 1px solid #e3e9f3;
    color: #3a4a64;
    cursor: pointer;
    font-weight: 500 !important;
    line-height: 1.45;
}
.check-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: #2b86e0;
    cursor: pointer;
}
.check-row:has(input[aria-invalid="true"]) { border-color: #e0464b; }

.auth-card .auth-submit {
    position: relative;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #3d9bf0, #2b86e0 60%, #1f6fc4);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(43, 134, 224, 0.3);
}
.auth-card .auth-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(43, 134, 224, 0.36);
}
.auth-card .auth-submit:focus-visible { outline: 2px solid #9ccaf5; outline-offset: 2px; }
.auth-card .auth-submit:disabled { opacity: 1; cursor: progress; }
.auth-submit.is-loading span { visibility: hidden; }
.auth-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-foot {
    margin: 18px 0 0;
    text-align: center;
    color: #66748c;
    font-size: 13px;
}
.auth-foot + .auth-foot { margin-top: 8px; }
.auth-foot.muted { color: #8a97ad; font-size: 12px; }
.auth-foot a { color: #2b86e0; font-weight: 700; }
.auth-foot a:hover { color: #1f6fc4; }
.auth-legal {
    margin: 16px 0 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #8a97ad;
}
.auth-debug {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #e6f1fc;
    border: 1px dashed #9ccaf5;
    color: #1f5f9e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
@media (max-width: 420px) {
    body.auth-page { padding: 18px 12px; align-items: flex-start; }
    .auth-card { padding: 24px 18px 20px; border-radius: 18px; }
    .auth-head h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-shell, .auth-submit.is-loading::after { animation: none; }
}
@keyframes authLift {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Cards ---------- */
.card {
    background: var(--card-bg);
    border: 1px solid #E7EBF0;
    border-radius: 14px;
    padding: 10px 10px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.promo-banner-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin: 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #101010;
    box-shadow: 0 18px 32px rgba(17, 17, 17, 0.2);
}
.promo-banner-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
    z-index: 0;
}
.promo-banner-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.14);
}
.promo-banner-track {
    display: flex;
    gap: 12px;
    width: max-content;
    min-width: 100%;
    padding: 10px;
    animation: promo-scroll 25s linear infinite;
}
.promo-slide {
    position: relative;
    width: min(82vw, 360px);
    min-height: 120px;
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 8px;
    padding: 12px 12px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 12px 24px rgba(0,0,0,0.18);
    transform: translateZ(0);
    animation: floatingCard 5.5s ease-in-out infinite;
}
.promo-slide::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.42);
}
.promo-slide::after {
    content: "";
    position: absolute;
    inset: -17% -8% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    filter: blur(16px);
    animation: glowPulse 4.2s ease-in-out infinite alternate;
}
@keyframes glowPulse {
    0% { transform: scale(0.75) translate(6px, 0); opacity: 0.45; }
    100% { transform: scale(1.25) translate(-10px, -8px); opacity: 1; }
}
@keyframes floatingCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}
.promo-copy, .promo-bet-box {
    position: relative; z-index: 1;
}
.promo-copy {
    max-width: 70%;
    color: #fff;
}
.promo-label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #f3f8f3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.promo-copy h3 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.1;
    color: #fff;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.promo-copy p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 10px;
    line-height: 1.4;
}
.promo-bet-box {
    min-width: 74px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f4ffe6;
    text-align: center;
    backdrop-filter: blur(2px);
}
.promo-bet-box span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}
.promo-bet-box strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    margin-top: 4px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}
.promo-slide-primary {
    background-image: url('https://images.unsplash.com/photo-1547347298-4074fc3086f0?auto=format&fit=crop&w=900&q=80');
}
.promo-slide-secondary {
    background-image: url('https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=900&q=80');
}
@keyframes promo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 420px) {
    .promo-slide { width: 82vw; }
    .promo-copy { max-width: 72%; }
}

.game-card {
    margin-bottom: 10px; padding: 10px 10px 12px; border-radius: 16px;
    background: #1A0B2E; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 12px 24px rgba(17,17,17,0.08);
}
.game-card .matchup {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 8px; font-size: 14px; font-weight: 800; color: #f4f9ef;
    margin-bottom: 8px; text-align: center;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.game-card .meta {
    font-size: 10px; color: rgba(255,255,255,0.72); line-height: 1.45;
    padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255, 107, 0,0.12);
    text-align: center;
}
.game-card .rule-row {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; padding-bottom: 4px;
}
.game-card .rule-badge {
    display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.02em;
}
.rule-loss { background: rgba(197,62,62,0.12); color: #f7c8c8; }
.rule-win { background: rgba(255,255,255,0.06); color: #e9ffbf; }
.rule-refund { background: rgba(214,168,59,0.14); color: #ffe8ac; }
.game-card .bet-form {
    display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 14px;
}
.game-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 18px 14px 14px;
    border-radius: 18px;
    background: #151a21;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 34px rgba(0,0,0,0.24);
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--brand-solid);
}
.game-card-main {
    gap: 14px;
}
.game-card .matchup {
    flex: 1;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.game-card .badge {
    width: 36px;
    height: 36px;
    padding: 4px;
    border: 1px solid rgba(255, 107, 0,0.2);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.game-card .team-block {
    flex-direction: column;
    gap: 6px;
}
.game-card .team-block span {
    max-width: 92px;
    font-size: 12px;
    text-align: center;
}
.game-card .versus-pill {
    min-width: 30px;
    padding: 5px 6px;
    color: #FFB380;
    border-color: rgba(255, 107, 0,0.22);
    background: rgba(255, 107, 0,0.08);
}
.game-card .match-summary {
    justify-content: flex-start;
    margin: 14px 0 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.62);
}
.game-card .rule-row {
    justify-content: flex-start;
    margin: 0;
    padding: 0 0 12px;
}
.game-card .meta {
    margin-top: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.045);
    border-color: rgba(255,255,255,0.09);
}
.game-card .bet-form {
    margin-top: 12px;
}
.game-card .bet-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    font-size: 11px;
}
@media (max-width: 420px) {
    .game-card {
        padding-left: 12px;
        padding-right: 12px;
    }
    .game-card-main {
        gap: 10px;
    }
    .game-card .volume-ring,
    .game-card .home-volume-ring {
        width: 58px;
        height: 58px;
    }
    .game-card .team-block span {
        max-width: 78px;
        font-size: 11px;
    }
}
.bet-btn {
    background: var(--brand-solid); color: #111; border: none; border-radius: 9px;
    padding: 7px 12px; font-size: 10px; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 107, 0,0.18); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bet-btn:hover {
    transform: translateY(-2px); box-shadow: 0 14px 26px rgba(255, 107, 0,0.22);
}
.bet-slip {
    position: sticky;
    top: 66px;
    z-index: 18;
    background: #1A0B2E; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 14px 12px; margin: 0 0 14px;
    box-shadow: 0 14px 28px rgba(17,17,17,0.1);
    color: #eefaf0;
}
.bet-slip.hidden { display: none; }
.bet-slip-header {
    font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #dff9ba; margin-bottom: 8px;
}
.selected-slip-list {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
}
.empty-slip {
    padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255, 107, 0,0.12); color: rgba(255,255,255,0.68); font-size: 12px; text-align: center;
}
.slip-row {
    display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 10px; border: 1px solid rgba(255, 107, 0,0.14); border-radius: 12px; background: rgba(255,255,255,0.02);
}
.slip-game-name {
    font-size: 13px; font-weight: 700; color: #f4f9ef;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.slip-input-wrap {
    display: flex; flex-direction: column; gap: 6px;
}
.slip-input-wrap label {
    font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.74); text-transform: uppercase; letter-spacing: 0.04em;
}
.slip-input-wrap input {
    width: 100%; box-sizing: border-box; border: 1px solid rgba(255, 107, 0,0.2); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #0d0d0d; color: #fff;
}
.remove-slip {
    align-self: flex-end; border: none; background: transparent; color: #ffb3b3; font-size: 12px; font-weight: 700; cursor: pointer;
}
.bet-slip-form {
    display: flex; flex-direction: column; gap: 10px;
}
.bet-slip-form label {
    font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.72);
}
.bet-slip-actions {
    display: flex; gap: 10px; align-items: center; margin-top: 4px;
}
.btn-primary,
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary {
    background: var(--brand-solid); color: #111; border: none; box-shadow: var(--shadow);
    font-weight: 800;
    letter-spacing: 0.02em;
}
.btn-secondary {
    background: #fff; color: var(--purple); border: 1px solid rgba(255, 107, 0, 0.26);
    font-weight: 700;
}
button, .btn-primary, .btn-secondary {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
button:hover, .btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-1px);
}
.bet-slip-page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 12px;
}
.bet-slip-page-actions a {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255, 107, 0, 0.16);
    color: #f4f9ef;
    font-size: 11px;
    font-weight: 700;
}
.page-bet-slip {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.page-slip-row {
    background: #111417;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}
.slip-meta {
    font-size: 10px;
    color: rgba(255,255,255,0.66);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.game-card .preview {
    font-size: 13px; color: var(--text-muted); margin-top: 8px;
}
.game-card .preview strong { color: var(--purple-dark); }
.game-card .result-box {
    margin-top: 12px; padding: 12px 14px; border-radius: 14px;
    background: rgba(255, 107, 0, 0.08); border: 1px solid rgba(255, 107, 0, 0.18);
}
.result-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--orange-dark); margin-bottom: 6px;
}
.result-score {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 15px; font-weight: 800; color: var(--purple-dark);
}
.result-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.result-footer .final-label {
    font-size: 12px;
    color: var(--text-muted);
}
.result-score strong {
    font-size: 20px; letter-spacing: -0.04em;
}
.home-hero {
    margin: 0 0 14px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: #1A0B2E;
    border: 1px solid rgba(255, 107, 0, 0.2);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.14);
    color: #eefaf0;
}
.home-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #f3f8f3;
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 9px;
}
.hero-odds {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 107, 0, 0.18);
    border: 1px solid rgba(255, 107, 0, 0.4);
    padding: 6px 9px;
    border-radius: 999px;
}
.home-hero h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.04em;
}
.home-hero p {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    line-height: 1.5;
}
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 11px;
    color: #d9e8cf;
}
.featured-spotlight {
    margin: 0 0 12px;
    padding: 14px 14px 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

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

.spotlight-pill,
.spotlight-badge,
.spotlight-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.spotlight-pill {
    padding: 5px 8px;
    font-size: 9px;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.18);
    color: #0d1420;
}

.spotlight-badge {
    padding: 5px 8px;
    font-size: 9px;
    background: rgba(255, 107, 0, 0.12);
    color: #0d1420;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.featured-spotlight h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #1A0B2E;
}

.spotlight-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 10px;
    color: rgba(17, 17, 17, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.spotlight-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}

.spotlight-chip {
    padding: 6px 9px;
    font-size: 9px;
    background: rgba(17, 17, 17, 0.04);
    border: 1px solid rgba(17, 17, 17, 0.08);
    color: #1A0B2E;
}

.spotlight-cta {
    border: none;
    border-radius: 10px;
    background: #FF6B00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 12px;
    cursor: pointer;
}

.mini-picks-wrap {
    margin: 0 0 12px;
    padding: 10px 10px 8px;
    background: #1A0B2E;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(17,17,17,0.1);
}
.mini-picks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f4f9ef;
    font-weight: 800;
}
.mini-picks-head a {
    color: #FF6B00;
    font-size: 10px;
}
.mini-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.mini-pick {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255, 107, 0, 0.16);
    border-radius: 10px;
    padding: 8px 6px;
    min-height: 68px;
}
.mini-pick strong {
    font-size: 11px;
    color: #f4f9ef;
    line-height: 1.2;
}
.mini-pick span {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
}
.mini-pick em {
    margin-top: auto;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    color: var(--brand-solid);
}
.result-scroll-wrap {
    margin: 0 0 14px;
    background: #fff;
    border: 1px solid #E9EDF5;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.result-scroll-label {
    padding: 8px 12px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid #EEF1F8;
}
.result-scroll-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    min-width: 100%;
    padding: 10px 12px;
    white-space: nowrap;
    animation: result-scroll 22s linear infinite;
}
.result-scroll-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #F6F9F4;
    border: 1px solid rgba(255, 107, 0, 0.16);
    color: var(--purple-dark);
    font-size: 11px;
}
.result-scroll-item strong {
    font-weight: 800;
}
.result-scroll-item em {
    font-style: normal;
    color: var(--brand-solid);
    font-weight: 800;
}
@keyframes result-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.popular-events-wrap {
    margin: 0 0 14px;
    padding: 10px 10px 8px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.event-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.event-match-card {
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.home-bet-message {
    margin: 0 0 12px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.home-bet-message.success {
    color: #14310d;
    background: #dff9ba;
}

.home-bet-message.error {
    color: #7f1d1d;
    background: #fee2e2;
}

.home-bet-modal[hidden] {
    display: none;
}

.home-bet-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: end center;
    padding: 14px;
    background: rgba(3, 7, 12, 0.72);
}

.home-bet-dialog {
    position: relative;
    width: min(100%, 380px);
    padding: 15px 14px 12px;
    border-radius: 18px 18px 12px 12px;
    background: #ffffff;
    color: #1A0B2E;
    border-top: 3px solid #FF6B00;
    box-shadow: 0 24px 60px rgba(0,0,0,0.34);
}

.home-bet-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(17,17,17,0.06);
    color: #1A0B2E;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.home-bet-dialog h2 {
    margin: 6px 32px 3px 0;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0;
}

.home-bet-match {
    margin: 0 0 11px;
    color: rgba(17,17,17,0.62);
    font-size: 12px;
    line-height: 1.4;
}

.home-bet-detail-row,
.home-bet-profit-row,
.home-bet-estimate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid rgba(17,17,17,0.08);
    font-size: 12px;
}

.home-bet-detail-row {
    min-height: 30px;
}

.home-bet-detail-row span,
.home-bet-profit-row span,
.home-bet-estimate span {
    color: rgba(17,17,17,0.62);
}

.home-bet-dialog form {
    display: grid;
    gap: 5px;
    margin-top: 6px;
    padding-top: 7px;
    border-top: 1px solid rgba(17,17,17,0.08);
}

.home-bet-dialog label {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-bet-dialog select,
.home-bet-dialog input {
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid rgba(17,17,17,0.14);
    border-radius: 10px;
    background: #fbfcfd;
    color: #1A0B2E;
    font: inherit;
}

.home-bet-dialog select:focus,
.home-bet-dialog input:focus {
    outline: 2px solid rgba(255, 107, 0,0.24);
    outline-offset: 1px;
    border-color: #FF6B00;
}

.home-bet-profit-row strong {
    color: #FF6B00;
}

.home-bet-estimate {
    margin-top: 3px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 107, 0,0.18);
    border-radius: 10px;
    background: rgba(255, 107, 0,0.06);
}

.home-bet-estimate strong {
    font-size: 17px;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

.home-bet-insufficient {
    margin: 2px 0 0;
    padding: 9px 10px;
    border-radius: 9px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 700;
}

.home-bet-submit {
    min-height: 38px;
    margin-top: 5px;
    border: 0;
    border-radius: 10px;
    background: #FF6B00;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.home-bet-wallet,
.home-bet-deposit {
    display: block;
    margin: 10px 0 0;
    text-align: center;
    font-size: 11px;
}

.home-bet-wallet {
    color: rgba(17,17,17,0.62);
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

.home-bet-deposit {
    color: #0d77ba;
    font-weight: 800;
    text-decoration: none;
}

.event-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.home-volume-ring {
    --progress: 50;
    position: relative;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-solid);
    border: 1px solid rgba(255, 107, 0,0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 0,0.12), 0 8px 16px rgba(255, 107, 0,0.08);
    overflow: visible;
}

.home-volume-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-solid);
}

.home-volume-ring::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    left: 50%;
    top: 50%;
    margin-left: -5.5px;
    margin-top: -5.5px;
    border-radius: 50%;
    background: #FF6B00;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 0 5px rgba(255, 107, 0,0.12), 0 0 12px rgba(255, 107, 0,0.25);
    transform-origin: center center;
    transform: rotate(calc(var(--progress) * 3.6deg)) translateY(-26px);
}

.home-volume-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
}

.home-volume-inner small {
    font-size: 7px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.72);
    font-weight: 800;
}

.home-volume-inner strong {
    font-size: 12px;
    line-height: 1;
    color: #1A0B2E;
    letter-spacing: -0.03em;
}

.event-topline,
.event-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.event-league {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, 0.72);
    font-weight: 800;
}

.event-live {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b0d12;
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.18);
}

.event-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #1A0B2E;
    text-align: center;
}

.event-matchup em {
    font-style: normal;
    color: rgba(17,17,17,0.56);
    font-size: 11px;
}

.event-meta-row {
    font-size: 11px;
    color: rgba(17, 17, 17, 0.74);
    margin-bottom: 12px;
}

.event-meta-row strong {
    color: #FF6B00;
    font-size: 12px;
}

.event-add-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #FF6B00;
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    padding: 9px 12px;
    cursor: pointer;
}

.game-card {
    margin-bottom: 10px;
    padding: 12px 10px 12px;
    border-radius: 16px;
    background: #111417;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(17,17,17,0.08);
}

.game-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-ring {
    --progress: 50;
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-solid);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 0,0.18), 0 10px 22px rgba(255, 107, 0,0.08);
    overflow: visible;
}

.volume-ring::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #101418;
    border: 1px solid rgba(255,255,255,0.08);
}

.volume-ring::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    left: 50%;
    top: 50%;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background: #FF6B00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0,0.12);
    transform-origin: center center;
    animation: orbitRing 3.2s linear infinite;
}

@keyframes orbitRing {
    from {
        transform: rotate(0deg) translateY(-27px);
    }
    to {
        transform: rotate(360deg) translateY(-27px);
    }
}

.volume-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
}

.volume-inner small {
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    font-weight: 800;
}

.volume-inner strong {
    font-size: 13px;
    line-height: 1;
    color: #f4f9ef;
    letter-spacing: -0.03em;
}

.game-card .matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #f4f9ef;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.35;
}

.game-card .badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d0d0d;
}
.recent-result {
    margin: 0 0 14px; padding: 14px 14px 12px; border-radius: 16px;
}
.recent-result-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    margin-top: 8px; font-size: 11px; color: var(--text-muted);
}
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: #f4f9ef;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.countdown-label {
    display: inline-block;
    color: rgba(255,255,255,0.68);
    font-size: 9px;
    letter-spacing: 0.08em;
}
.countdown strong {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 800;
}
.games-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 2px 10px;
}
.games-section-title h3 {
    margin: 0;
    font-size: 16px;
    color: #f4f9ef;
    letter-spacing: -0.02em;
}
.games-section-title span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-solid);
}

.team-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.team-block span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    font-size: 12px;
    font-weight: 800;
    color: #f4f9ef;
}

.versus-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 9px;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}

.match-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.68);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 8px;
}

.summary-separator {
    color: rgba(255,255,255,0.42);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.meta-grid div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255, 107, 0, 0.1);
    min-height: 58px;
}

.meta-grid small {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
}

.meta-grid strong {
    font-size: 11px;
    color: #f4f9ef;
}

.meta-grid strong.open,
.meta-grid strong.live,
.meta-grid strong.locked {
    color: #dff9ba;
}
.game-card .explainer {
    font-size: 12px; color: var(--text-muted); margin-top: 18px;
}
.badge {
    width: 24px; height: 24px; object-fit: contain; vertical-align: middle;
    border-radius: 50%; background: #f5f7fb; padding: 2px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}
.stat-grid .stat {
    margin: 0;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-grid .stat strong {
    color: var(--purple-dark);
    font-size: 15px;
    letter-spacing: -0.03em;
    text-transform: none;
}

/* ---------- Quick links / presets ---------- */
.quick-links { display: flex; gap: 6px; margin: 8px 0 10px; }
.quick-links a {
    flex: 1; text-align: center; background: #fff; border: 1px solid #E9EDF5;
    border-radius: 10px; padding: 7px 4px; min-height: 58px; box-shadow: var(--shadow); color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-weight: 700; font-size: 9px; letter-spacing: 0.02em;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.quick-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); background: rgba(255, 107, 0, 0.08); border-color: rgba(255, 107, 0, 0.26); }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.presets button {
    flex: 1 1 30%; background: #fff; color: var(--purple);
    border: 2px solid rgba(255, 107, 0, 0.22); box-shadow: none; font-weight: 600;
}
.presets button:hover { border-color: var(--orange); color: var(--orange); background: rgba(255, 107, 0, 0.08); transform: translateY(-2px); box-shadow: none; }

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #E9EDF5;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}
table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    background: #fff;
}
.table-wrap table { margin-top: 0; box-shadow: none; min-width: 480px; }
th, td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #EEF1F6;
    font-size: 11px;
    white-space: nowrap;
}
td.numeric, th.numeric {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}
th {
    background: #101010;
    color: #f4f7f0;
    position: sticky;
    top: 0;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}
tr { transition: background 0.15s ease; }
tbody tr:nth-child(even) { background: #F7F9F4; }
tbody tr:hover { background: rgba(255, 107, 0, 0.06); }
.admin-body .table-wrap {
    border-color: rgba(255, 107, 0, 0.14);
}

/* ---------- Status pills ---------- */
.pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.pill-success, .open.pill, .won.pill, .win.pill, .approved.pill { background: #E9F9F0; color: var(--success); }
.pill-warning, .locked.pill, .pending.pill, .draw.pill { background: #FFF3E0; color: var(--warning); }
.pill-info, .live.pill { background: rgba(255, 107, 0, 0.12); color: var(--orange-dark); }
.pill-danger, .lost.pill, .loss.pill, .rejected.pill, .banned.pill, .suspended.pill { background: #FDECEC; color: var(--danger); }
.pill-neutral, .refunded.pill { background: #FFF3E0; color: var(--orange-dark); }

/* ---------- Status colors (plain text, non-pill contexts) ---------- */
.open, .won, .win, .approved { color: var(--success); font-weight: 600; }
.locked, .pending, .draw { color: var(--warning); font-weight: 600; }
.live { color: var(--orange-dark); font-weight: 600; }
.lost, .loss, .rejected, .banned, .suspended { color: var(--danger); font-weight: 600; }
.refunded { color: var(--orange); font-weight: 600; }

/* ---------- Messages ---------- */
.msg {
    background: rgba(255, 107, 0, 0.1);
    color: var(--purple-dark);
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 4px solid var(--orange);
    margin: 10px 0;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
}

/* ---------- Admin sidebar ---------- */
body.admin-body {
    max-width: none;
    padding: 14px 18px 18px 228px;
    background: #0d110d;
    color: #edf7ea;
}
body.admin-body .page-header {
    background: #1A0B2E;
    border: 1px solid rgba(255, 107, 0, 0.18);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    color: #f5fff0;
}
body.admin-body .page-header h2,
body.admin-body .page-header .sub,
body.admin-body .msg,
body.admin-body h3,
body.admin-body strong,
body.admin-body th,
body.admin-body td,
body.admin-body label,
body.admin-body select,
body.admin-body input,
body.admin-body button {
    color: inherit;
}
body.admin-body .page-header .sub {
    background: rgba(255, 107, 0,0.12);
    border-color: rgba(255, 107, 0,0.2);
    color: #e8f7c5;
}
.admin-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 208px;
    display: flex; flex-direction: column; gap: 5px; align-items: stretch;
    background: #090909;
    padding: 14px 10px; margin: 0; border-radius: 0;
    box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.12), 0 18px 32px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 107, 0, 0.18);
}
.admin-nav .brand {
    color: #fff; font-weight: 800; font-size: 16px; margin: 0 0 8px 0;
    padding: 6px 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.12);
    letter-spacing: -0.02em;
}
.admin-nav a {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.78); padding: 9px 10px; border-radius: 10px;
    font-size: 12px; font-weight: 600; transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}
.admin-nav .hero-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 1.9;
}
.admin-nav a:hover {
    background: rgba(255, 107, 0, 0.14);
    color: #fff;
    transform: translateX(2px);
    border-color: rgba(255, 107, 0, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.08);
}
.admin-nav a.logout { margin-top: auto; color: #F0D8AE; }
body.admin-body .msg {
    background: rgba(255, 107, 0,0.08);
    color: #ebf9d0;
    border-left: 4px solid var(--orange);
    border: 1px solid rgba(255, 107, 0,0.14);
}
body.admin-body .table-wrap {
    background: #1A0B2E;
    border-color: rgba(255, 107, 0,0.16);
}
body.admin-body table {
    background: #1A0B2E;
    color: #edf7ea;
}
body.admin-body th, body.admin-body td {
    border-bottom-color: rgba(255, 107, 0,0.08);
    color: #edf7ea;
}
body.admin-body th {
    background: #0a0a0a;
    color: #dff9ba;
}
body.admin-body tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
body.admin-body tbody tr:hover { background: rgba(255, 107, 0,0.06); }
body.admin-body select,
body.admin-body input,
body.admin-body button {
    background: #0d0d0d;
    color: #f3f9ef;
    border: 1px solid rgba(255, 107, 0,0.2);
    border-radius: 10px;
}
body.admin-body button {
    background: var(--brand-solid);
    color: #111;
    border: none;
    font-weight: 800;
}
body.admin-body form {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255, 107, 0,0.12);
    border-radius: 14px;
    padding: 12px;
}

@media (max-width: 860px) {
    body.admin-body {
        padding: 120px 16px 90px 16px;
    }
    .admin-nav {
        position: static;
        width: auto;
        min-height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 14px;
    }
    .admin-nav .brand { width: 100%; margin-bottom: 4px; }
    .admin-nav a.logout { margin-top: 0; margin-left: auto; }
}

/* ---------- Mobile bottom nav ---------- */
body:not(.auth-page):not(.admin-body) {
    padding-bottom: calc(98px + env(safe-area-inset-bottom)) !important;
}
.page-content {
    position: relative;
    z-index: 1;
}
.support-top-link {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 110;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 107, 0,0.28);
    border-radius: 50%;
    background: rgba(17,20,23,0.96);
    color: #FF6B00;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    text-decoration: none;
}
.support-top-link.active,
.support-top-link:hover { color: #FFB380; border-color: rgba(255, 107, 0,0.72); }
.support-top-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #FF6B00;
    color: #fff;
    font-size: 9px;
    line-height: 1;
}
.mobile-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 20px), 520px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    background: rgba(10, 13, 18, 0.94);
    backdrop-filter: blur(18px);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 6px;
}

.nav-brand,
.nav-card-mini {
    display: none;
}

.nav-group {
    display: flex;
    flex: 1;
    align-items: stretch;
    gap: 5px;
}

.mobile-nav a {
    position: relative;
    color: rgba(255,255,255,0.56);
    font-size: 10px;
    font-weight: 700 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    text-align: center;
    line-height: 1;
    padding: 7px 3px 5px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    letter-spacing: 0.01em;
}
.mobile-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.mobile-nav a.active {
    color: #fff;
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.22);
    box-shadow: inset 0 0 18px rgba(255, 107, 0, 0.06);
}
.mobile-nav a.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 22px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--brand-solid);
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.7);
}
.mobile-nav a span {
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}
.mobile-nav .icon, .mobile-nav .nav-icon {
    font-size: 20px;
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}
.nav-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav a:hover .nav-icon,
.mobile-nav a.active .nav-icon {
    transform: scale(1.06);
}

@media (min-width: 920px) {
    body:not(.admin-body) {
        padding-bottom: 20px;
    }
    .support-top-link {
        left: calc(50vw + 170px);
        right: auto;
    }
    .mobile-nav {
        left: 50%;
        top: auto;
        right: auto;
        bottom: 0 !important;
        transform: translateX(-50%);
        width: min(calc(100% - 20px), 520px);
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 16px;
        border: 1px solid rgba(255, 107, 0, 0.14);
        background: rgba(10, 12, 16, 0.96);
    }

    .nav-brand,
    .nav-card-mini {
        display: none;
    }

    .nav-group {
        display: flex;
        flex: 1;
    }

    .mobile-nav a {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
        min-height: 56px;
        height: 56px;
        font-size: 10px;
        padding: 7px 6px 5px;
        gap: 5px;
    }

    .mobile-nav a.active {
        background: rgba(255, 107, 0, 0.15);
        color: #fff;
        border-color: rgba(255, 107, 0, 0.22);
        box-shadow: inset 0 0 18px rgba(255, 107, 0, 0.06);
    }
}
.quick-link svg,
.page-head svg,
.brand svg {
    vertical-align: middle;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--purple);
}

/* Shared Home and Games match-card finish */
.game-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 18px 14px 14px;
    border-radius: 18px;
    background: #151a21;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 34px rgba(0,0,0,0.24);
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--brand-solid);
}
.game-card-main { gap: 14px; }
.game-card .matchup {
    flex: 1;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.game-card .badge {
    width: 36px;
    height: 36px;
    padding: 4px;
    border: 1px solid rgba(255, 107, 0,0.2);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.game-card .team-block { flex-direction: column; gap: 6px; }
.game-card .team-block span {
    max-width: 92px;
    font-size: 12px;
    text-align: center;
}
.game-card .versus-pill {
    min-width: 30px;
    padding: 5px 6px;
    color: #FFB380;
    border-color: rgba(255, 107, 0,0.22);
    background: rgba(255, 107, 0,0.08);
}
.game-card .match-summary {
    justify-content: flex-start;
    margin: 14px 0 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.game-card .rule-row {
    justify-content: flex-start;
    margin: 0;
    padding: 0 0 12px;
}
.game-card .meta {
    margin-top: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.045);
    border-color: rgba(255,255,255,0.09);
}
.game-card .bet-form { margin-top: 12px; }
.game-card .bet-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    font-size: 11px;
}
@media (max-width: 420px) {
    .game-card { padding-left: 12px; padding-right: 12px; }
    .game-card-main { gap: 10px; }
    .game-card .volume-ring,
    .game-card .home-volume-ring { width: 58px; height: 58px; }
    .game-card .team-block span { max-width: 78px; font-size: 11px; }
}

/* ---------- Badges (team crests) ---------- */
img.badge { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin: 0 3px; transition: transform 0.2s ease; }
img.badge:hover { transform: scale(1.3); }

/* ---------- Typography system ---------- */
.font-display {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.font-mono {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    letter-spacing: 0.02em;
}
.font-serif {
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.6;
}
.font-sans {
    font-family: 'DM Sans', system-ui, sans-serif;
}
.money {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    letter-spacing: 0.02em;
}
.money-sign {
    font-size: 0.85em;
    opacity: 0.7;
    margin-right: 2px;
}
.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}
