/* ApexLoL — Thunderpick-inspired dark esports theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg-deep: #0a0e14;
    --bg-panel: #121820;
    --bg-elevated: #18222e;
    --bg-hover: #1e2a38;
    --line: #243040;
    --line-strong: #2f4054;
    --text: #e8eef6;
    --text-dim: #8b9bb0;
    --accent: #00e5a8;
    --accent-dim: #00b884;
    --warn: #ffb020;
    --danger: #ff4d6d;
    --neon: #3d9eff;
    --font-display: "Orbitron", "Rajdhani", sans-serif;
    --font-body: "Rajdhani", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    --radius: 10px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(0, 229, 168, 0.08), transparent 55%),
        radial-gradient(900px 500px at 90% 0%, rgba(61, 158, 255, 0.1), transparent 50%),
        linear-gradient(180deg, #0c121a 0%, var(--bg-deep) 40%, #070b10 100%);
    color: var(--text);
    min-height: 100vh;
    letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }

/* ===== Login ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49%, rgba(0, 229, 168, 0.04) 50%, transparent 51%),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(61, 158, 255, 0.03) 40px, rgba(61, 158, 255, 0.03) 41px);
    pointer-events: none;
}

.login-box {
    background: linear-gradient(160deg, rgba(24, 34, 46, 0.95), rgba(12, 18, 26, 0.98));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    width: 100%;
    max-width: 440px;
    padding: 40px 36px 32px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 1px rgba(0, 229, 168, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.login-box::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--neon), transparent);
}

.brand-logo { text-align: center; margin-bottom: 12px; }
.brand-logo span {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-shadow: 0 0 24px rgba(0, 229, 168, 0.35);
}

.login-box h1 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text);
    letter-spacing: 0.08em;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-family: inherit;
    background: var(--bg-deep);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(0, 229, 168, 0.25);
}

.form-hint { font-size: 0.8rem; color: var(--warn); margin-top: 6px; }
.form-error { font-size: 0.85rem; color: var(--danger); margin-top: 6px; }

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-dim);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    color: #04110c;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.btn-login:hover { filter: brightness(1.08); transform: translateY(-1px); }

.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.alert-error { background: rgba(255, 77, 109, 0.12); color: #ff8fa3; border-color: rgba(255, 77, 109, 0.35); }
.alert-success { background: rgba(0, 229, 168, 0.1); color: var(--accent); border-color: rgba(0, 229, 168, 0.3); }

/* ===== App shell ===== */
.app-header {
    background: linear-gradient(180deg, #101820 0%, #0c1218 100%);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1480px;
    margin: 0 auto;
}

.header-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-shadow: 0 0 18px rgba(0, 229, 168, 0.3);
    text-decoration: none;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.balance-badge {
    background: var(--bg-elevated);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-weight: 700;
    color: var(--text);
}

.balance-badge em {
    color: var(--accent);
    font-style: normal;
    font-family: var(--font-display);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    padding: 6px 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
}
.btn-logout:hover { border-color: var(--accent); color: var(--accent); }

.nav-tabs {
    display: flex;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 4px;
}

.nav-tab {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dim);
    border-bottom: 2px solid transparent;
    letter-spacing: 0.06em;
    display: inline-block;
}
.nav-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.nav-tab:hover { color: var(--text); }

.app-body {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 0;
    max-width: 1480px;
    margin: 0 auto;
    min-height: calc(100vh - 96px);
}

.sidebar-left {
    background: rgba(18, 24, 32, 0.85);
    border-right: 1px solid var(--line);
    padding: 16px 0;
    min-width: 0;
    overflow-x: hidden;
}

.sidebar-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 0 16px 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.sidebar-title-sub {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.category-tabs {
    display: flex;
    gap: 6px;
    padding: 0 10px 12px;
    box-sizing: border-box;
    width: 100%;
}
.category-tab {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    background: var(--bg-deep);
    color: var(--text-dim);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    overflow: hidden;
}
.category-tab:hover { color: var(--text); border-color: rgba(0, 229, 168, 0.35); }
.category-tab.active {
    color: #041016;
    background: var(--accent);
    border-color: var(--accent);
}
.category-count {
    flex: 0 0 auto;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: rgba(0,0,0,0.18);
    max-width: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-tab.active .category-count { background: rgba(0,0,0,0.22); }

.sport-nav-item { margin-bottom: 2px; }
.sport-filter-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    color: var(--text-dim);
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    text-align: left;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.sport-filter-btn:hover { background: var(--bg-hover); color: var(--text); }
.sport-filter-btn.active,
.sport-nav-item.active > .sport-filter-btn {
    background: linear-gradient(90deg, rgba(0, 229, 168, 0.12), transparent);
    color: var(--accent);
    border-left-color: var(--accent);
}
.sport-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sport-name-main { line-height: 1.2; }
.sport-name-en {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.65;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.region-subnav {
    margin: 0 0 6px 18px;
    padding: 4px 0 6px 10px;
    border-left: 1px solid rgba(0, 229, 168, 0.25);
}
.region-filter.sub-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    border-radius: var(--radius-xs);
    line-height: 1.35;
}
.region-filter.sub-item:hover { background: var(--bg-hover); color: var(--text); }
.region-filter.sub-item.active { color: var(--accent); }
.sub-branch {
    width: 8px;
    height: 1px;
    margin-top: 0.65em;
    background: rgba(0, 229, 168, 0.35);
    flex: 0 0 auto;
}
.sub-label {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.region-filter.sub-item > .sport-count {
    flex: 0 0 auto;
    margin-top: 0.1em;
}


.sport-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-dim);
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    transition: background 0.15s, color 0.15s;
}
.sport-item:hover { background: var(--bg-hover); color: var(--text); }
.sport-item.active {
    background: linear-gradient(90deg, rgba(0, 229, 168, 0.12), transparent);
    color: var(--accent);
    border-left-color: var(--accent);
}

.sport-icon { font-size: 0.85rem; opacity: 0.7; width: 1.2em; text-align: center; }

.sport-count {
    margin-left: auto;
    background: var(--bg-deep);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    font-size: 0.75rem;
    padding: 1px 8px;
    font-weight: 700;
}
.sport-item.active .sport-count {
    border-color: rgba(0, 229, 168, 0.4);
    color: var(--accent);
}

.main-content {
    background: transparent;
    padding: 18px 22px 32px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.region-block { margin-bottom: 28px; }

.region-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon);
    padding: 6px 0 10px;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--line);
}

.match-list { display: flex; flex-direction: column; gap: 10px; }

.match-row {
    background: linear-gradient(180deg, rgba(24,34,46,.95), rgba(14,20,28,.98));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    overflow: hidden;
}
.match-row:hover { border-color: var(--line-strong); }
.match-row.is-open {
    border-color: rgba(0, 229, 168, 0.4);
    box-shadow: 0 0 0 1px rgba(0, 229, 168, 0.1), 0 12px 30px rgba(0,0,0,.25);
}

.match-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px 0;
    flex-wrap: wrap;
}
.match-row-head .match-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-dim);
}
.match-row-head .meta-bo { color: var(--accent); font-weight: 800; }
.match-row-head .meta-sep { opacity: .45; }

.match-row-main {
    display: grid;
    grid-template-columns: 36px minmax(160px, 1.1fr) minmax(280px, 1.6fr);
    gap: 10px;
    align-items: center;
    padding: 10px 14px 12px;
}

.match-toggle {
    width: 32px; height: 32px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    background: var(--bg-elevated);
    color: var(--text-dim);
    cursor: pointer;
    display: grid; place-items: center;
}
.chevron {
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s, color .2s;
    margin-top: -3px;
}
.match-row.is-open .match-toggle { color: var(--accent); border-color: rgba(0,229,168,.45); }
.match-row.is-open .chevron { transform: rotate(225deg); margin-top: 3px; color: var(--accent); }

.match-teams-block {
    background: transparent; border: none; color: inherit; font: inherit;
    text-align: left; cursor: pointer; padding: 0;
}
.team-line {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px; font-weight: 700; font-size: 1.02rem;
}
.team-logo {
    width: 28px; height: 28px; object-fit: contain;
    background: rgba(255,255,255,.04); border-radius: 4px; padding: 2px;
}
.team-logo-fallback {
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-elevated); border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    font-size: .65rem; font-weight: 800; color: var(--accent); letter-spacing: .04em;
}
.team-name { line-height: 1.2; }
.match-when-inline {
    display: flex; gap: 8px; margin-top: 2px;
    font-size: 0.75rem; color: var(--accent); font-weight: 700;
}
.match-meta .meta-ico { margin-right: 4px; opacity: .7; }

.match-odds-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    min-width: 0;
}
.odds-col {
    min-width: 0;
    background: rgba(0,0,0,.18);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    padding: 6px;
}
.odds-col-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.odds-col-cells { display: flex; flex-direction: column; gap: 4px; }
.odds-col-empty { opacity: .7; }

.region-title {
    display: flex; align-items: center; gap: 8px;
}
.region-ico { color: var(--accent); }
.region-count-pill {
    margin-left: auto; font-family: var(--font-body);
    font-size: .75rem; color: var(--text-dim);
    border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 1px 8px;
}

.section-title { display: flex; align-items: center; gap: 10px; }
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0,229,168,.6);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,229,168,.55); }
    70% { box-shadow: 0 0 0 10px rgba(0,229,168,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,168,0); }
}

.empty-icon { font-size: 2rem; color: var(--accent); margin-bottom: 10px; opacity: .7; }
.market-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--neon); margin-right: 8px; vertical-align: middle;
}

.slip-toolbar {
    display: flex; justify-content: flex-end; padding: 8px 12px 0;
}
.slip-clear {
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius-xs);
    color: var(--text-dim); padding: 4px 10px; height: auto; width: auto;
    cursor: pointer; font-size: .78rem; font-family: inherit; font-weight: 700;
}
.slip-clear:hover { color: var(--danger); border-color: var(--danger); }

.combo-badge {
    display: none;
    min-width: 18px; padding: 0 5px; margin-left: 4px;
    background: var(--accent); color: #04110c; font-size: .7rem; font-weight: 800;
    border-radius: var(--radius-pill); line-height: 1.4; vertical-align: middle;
}
.combo-badge.is-on { display: inline-block; }
.combo-badge[hidden] { display: none !important; }

.slip-mode-tag {
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--neon); margin-bottom: 10px; font-weight: 700;
}
.slip-card-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.slip-game-ico {
    width: 18px; height: 18px; display: grid; place-items: center;
    background: #1a2740; color: var(--neon); font-size: .65rem; font-weight: 800;
}
.slip-match-name { flex: 1; font-size: .78rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-remove {
    background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.slip-remove:hover { color: var(--danger); }
.slip-card-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.slip-pick { font-weight: 700; color: var(--text); }
.slip-market { font-size: .75rem; color: var(--text-dim); margin-top: 2px; }
.slip-summary {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px;
}
.slip-summary > div {
    background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 10px;
}
.slip-summary span { display: block; font-size: .72rem; color: var(--text-dim); margin-bottom: 4px; }
.slip-summary strong { font-family: var(--font-display); color: var(--accent); font-size: 1.05rem; }
.slip-summary-full { grid-column: 1 / -1; }
.payout-green { color: var(--accent) !important; }

.stake-unit-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 12px; flex-wrap: wrap;
}
.stake-unit-label { font-size: .9rem; font-weight: 700; color: var(--text); }
.stake-stepper { display: flex; align-items: center; gap: 6px; }
.step-btn {
    width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
    background: var(--bg-elevated); color: var(--text); font-size: 1.2rem; font-weight: 700;
    cursor: pointer; line-height: 1;
}
.step-btn:hover { border-color: var(--accent); color: var(--accent); }
.units-input {
    width: 64px; text-align: center; padding: 8px 6px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
    background: var(--bg-deep); color: var(--text); font: inherit; font-weight: 700; font-size: 1.05rem;
}
.stake-hint { font-size: .72rem; color: var(--text-dim); margin: -4px 0 12px; }

.user-chip { color: var(--text-dim); }
.bal-ico { color: var(--accent); margin-right: 4px; }

@media (max-width: 1100px) {
    .match-row-main { grid-template-columns: 32px 1fr; }
    .match-odds-board { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .match-odds-board { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .app-body { grid-template-columns: 1fr; }
    .sidebar-left { display: none; }
    .sidebar-right { border-left: none; border-top: 1px solid var(--line); }
}

.match-when {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.match-date { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }
.match-time {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
}

.match-teams {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.match-teams .vs {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 6px;
}
.match-meta {
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.match-meta .meta-bo {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.04em;
}
.match-meta .meta-sep {
    opacity: 0.45;
    font-weight: 400;
}
.match-meta .meta-tour {
    color: #7ec8ff;
    font-weight: 600;
}
.match-meta .meta-when { opacity: 0.9; }
.match-meta .meta-markets { opacity: 0.75; }


.match-chevron {
    color: var(--text-dim);
    font-size: 0.7rem;
    transition: transform 0.2s, color 0.2s;
}
.match-row.is-open .match-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.match-quick-odds {
    display: flex;
    gap: 8px;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.odds-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 7px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.odds-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 168, 0.08);
}
.odds-btn.selected {
    border-color: var(--accent);
    background: rgba(0, 229, 168, 0.14);
    box-shadow: 0 0 12px rgba(0, 229, 168, 0.15);
}
.odds-btn-empty {
    cursor: default;
    opacity: 0.55;
}
.odds-btn-empty:hover {
    border-color: var(--line-strong);
    background: var(--bg-elevated);
}

.odds-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 2px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.odds-value {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent);
}

.markets-panel { display: flex; flex-direction: column; gap: 14px; }
.market-block {}
.market-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.market-odds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.markets-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}
.markets-empty, .markets-closed {
    padding: 16px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}
.match-markets {
    border-top: 1px solid var(--line);
    background: rgba(8, 12, 18, 0.55);
    padding: 12px 16px 16px;
}

.markets-panel { display: flex; flex-direction: column; gap: 14px; }
.market-block {}
.market-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.market-odds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.markets-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}
.markets-empty, .markets-closed {
    padding: 16px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.sidebar-right {
    background: rgba(18, 24, 32, 0.9);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.slip-tabs { display: flex; border-bottom: 1px solid var(--line); }
.slip-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-dim);
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}
.slip-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.slip-body { padding: 16px; flex: 1; }
.slip-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 40px 10px;
}

.slip-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}
.slip-card-title {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--neon);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.slip-card-detail { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }
.slip-card-detail strong { color: var(--text); }
.slip-card-odds {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 8px;
}

.stake-label {
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}
.stake-input {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-deep);
    color: var(--text);
    font-size: 1.05rem;
    font-family: inherit;
    margin-bottom: 10px;
}
.stake-input:focus { outline: none; border-color: var(--accent); }

.btn-bet {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    color: #04110c;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
}
.btn-bet:hover { filter: brightness(1.06); }
.btn-bet:disabled { background: #333; color: #777; cursor: not-allowed; }

.slip-confirm-banner {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 229, 168, .35);
    background: rgba(0, 229, 168, .1);
    color: var(--accent);
    font-weight: 700;
    font-size: .88rem;
    text-align: center;
}
.slip-confirm-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.btn-bet-secondary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #1a6fd0, #3d9eff);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
}
.btn-bet-secondary:hover { filter: brightness(1.06); }
.btn-bet-secondary:disabled { background: #333; color: #777; cursor: not-allowed; filter: none; }
.slip-card-confirm { opacity: .98; }

.my-bets-list { list-style: none; }
.my-bets-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--text-dim);
}
.my-bets-list li div:first-child { color: var(--text); }

.bet-status {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
    border-radius: var(--radius-pill);
}
.bet-status.pending { background: rgba(255, 176, 32, 0.15); color: var(--warn); }
.bet-status.won { background: rgba(0, 229, 168, 0.15); color: var(--accent); }
.bet-status.lost { background: rgba(255, 77, 109, 0.15); color: var(--danger); }
.bet-status.void { background: rgba(139, 155, 176, 0.15); color: var(--text-dim); }

.empty-matches {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-dim);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(18, 24, 32, 0.5);
}

/* My bets */
.my-bets-full-link {
    display: block;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-weight: 700;
    font-size: .85rem;
}
.my-bets-full-link:hover { background: rgba(0,229,168,.08); }
.my-bets-filter { margin-bottom: 12px; }
.my-bets-chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.my-bets-chips .chip {
    border: 1px solid var(--line); background: var(--bg-elevated); color: var(--text-dim);
    border-radius: var(--radius-pill); padding: 4px 10px; cursor: pointer; font: inherit; font-weight: 700;
}
.my-bets-chips .chip.active { color: var(--accent); border-color: rgba(0,229,168,.45); background: rgba(0,229,168,.1); }
.my-bets-dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.my-bets-dates label { color: var(--text-dim); font-size: .75rem; display: flex; flex-direction: column; gap: 4px; }
.my-bets-dates input[type="date"] {
    background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-xs);
    color: var(--text); padding: 6px 8px; font: inherit;
}
.btn-filter {
    border: none; border-radius: var(--radius-xs); background: var(--accent); color: #04110c;
    font: inherit; font-weight: 700; padding: 7px 12px; cursor: pointer;
}
.my-bets-hint { font-size: .72rem; color: var(--text-dim); margin-top: 8px; }
.my-bets-summary {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px;
}
.my-bets-summary > div {
    background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-xs);
    padding: 8px; color: var(--text-dim); font-size: .75rem;
}
.my-bets-summary strong { display: block; color: var(--text); font-size: .95rem; margin-top: 2px; }
.my-bets-summary .win strong { color: var(--accent); }
.my-bets-summary .lose strong { color: var(--danger); }
.my-bet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.my-bet-meta { font-size: .75rem; margin: 4px 0; }
.my-bet-leg { font-size: .8rem; color: var(--text-dim); }
.my-bet-pnl { margin-top: 6px; font-weight: 700; }
.my-bet-pnl.pnl-win { color: var(--accent); }
.my-bet-pnl.pnl-lose { color: var(--danger); }
.my-bet-pnl.pnl-pending { color: var(--warn); }
.my-bet-pnl.pnl-void { color: var(--text-dim); }

.slip-game-ico { border-radius: var(--radius-xs); }

/* Betting rules modal */
body.rules-open { overflow: hidden; }
.rules-trigger {
    background: transparent; border: none; cursor: pointer; font: inherit;
}
.rules-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center; padding: 24px;
}
.rules-modal[hidden] { display: none !important; }
.rules-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(4, 8, 14, .72);
    backdrop-filter: blur(6px);
}
.rules-dialog {
    position: relative; z-index: 1;
    width: min(820px, 100%);
    max-height: min(86vh, 900px);
    display: flex; flex-direction: column;
    background:
        radial-gradient(600px 240px at 10% 0%, rgba(0,229,168,.12), transparent 60%),
        linear-gradient(180deg, #151d28, #0e141c);
    border: 1px solid rgba(0,229,168,.28);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    overflow: hidden;
}
.rules-dialog-head {
    display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
    padding: 20px 22px 12px; border-bottom: 1px solid var(--line);
}
.rules-kicker {
    font-size: .72rem; letter-spacing: .16em; color: var(--accent); font-weight: 700; margin-bottom: 4px;
}
.rules-dialog-head h2 {
    font-family: var(--font-display), Orbitron, sans-serif;
    font-size: 1.15rem; letter-spacing: .06em; margin: 0;
}
.rules-close {
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid var(--line); background: #0b1017; color: var(--text);
    font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.rules-close:hover { border-color: var(--accent); color: var(--accent); }
.rules-tabs {
    display: flex; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.rules-tab {
    border: 1px solid var(--line); background: transparent; color: var(--text-dim);
    border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer;
}
.rules-tab.active {
    color: #04110c; background: linear-gradient(90deg,#00b884,#00e5a8); border-color: transparent;
}
.rules-body {
    padding: 18px 22px; overflow: auto; flex: 1;
}
.rules-panel h3 { color: var(--info, #3d9eff); margin: 0 0 12px; font-size: 1rem; }
.rules-list { margin: 0; padding-left: 1.2rem; line-height: 1.65; color: var(--text); }
.rules-list li { margin-bottom: 10px; }
.rules-alert {
    border: 1px solid rgba(255,176,32,.35);
    background: rgba(255,176,32,.08);
    border-radius: 12px; padding: 16px;
}
.rules-alert h3 { color: var(--warn); margin: 0 0 10px; }
.rules-pre {
    white-space: pre-wrap; font: inherit; margin: 0; color: var(--text); line-height: 1.65;
}
.rules-dialog-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 22px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .85rem;
}
.btn-rules-ok {
    border: none; border-radius: 10px; padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 800;
    background: linear-gradient(90deg,#00b884,#00e5a8); color: #04110c;
}

@media (max-width: 900px) {
    /* kept for compatibility */
}
