    html {
        overflow-x: hidden;
        width: 100%;
    }

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

    :root {
        --bg: #0a0a0c;
        --bg2: #111116;
        --bg3: #18181f;
        --bg4: #1e1e28;
        --border: rgba(255, 255, 255, 0.07);
        --border2: rgba(255, 255, 255, 0.12);
        --text: #f0eff5;
        --fg: #f0eff5;
        --muted: #7a7990;
        --muted2: #4a4960;
        --accent: #4f6ef7;
        --green: #2dcc7e;
        --yellow: #f5c842;
        --red: #f05252;
        --mono: 'IBM Plex Mono', monospace;
        --sans: 'Barlow', system-ui, sans-serif;
        --header-h: 60px;
    }

    html.light {
        --bg: #f0f0f5;
        --bg2: #ffffff;
        --bg3: #e8e8f0;
        --bg4: #dcdce8;
        --border: rgba(0,0,0,0.08);
        --border2: rgba(0,0,0,0.15);
        --text: #1a1a2e;
        --fg: #1a1a2e;
        --muted: #60607a;
        --muted2: #9898b0;
        --green: #1aad66;
        --red: #d43535;
        --yellow: #c49000;
    }

    body {
        background: var(--bg);
        color: var(--text);
        font-family: var(--sans);
        font-size: 14px;
        min-height: 100vh;
        padding: 0 0 80px;
        overflow-x: clip;
        width: 100%;
        max-width: 100vw
    }

    .header {
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: var(--header-h);
        overflow-x: auto;
        gap: 12px
    }
    .header::-webkit-scrollbar { display: none }
    .header { scrollbar-width: none }

    .subheader-sticky {
        position: sticky;
        top: 0;
        z-index: 200;
        background: var(--bg2)
    }
    .subheader-sticky.sticky-off {
        position: relative
    }

    .moe-badge {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        background: rgba(79, 110, 247, .15);
        color: var(--accent);
        border: 1px solid rgba(79, 110, 247, .3);
        padding: 2px 7px;
        border-radius: 20px;
        margin-left: 8px;
        white-space: nowrap
    }

    @media (max-width: 768px) {
        .desktop-only {
            display:none !important
        }

        #mobile-collapse-btn {
            display: block !important
        }
    }

    .logo-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
        animation: pulse 2s ease-in-out infinite
    }

    @keyframes pulse {
        0%, 100% {
            opacity:1
        }

        50% {
            opacity: .4
        }
    }

    .api-remaining {
        font-family: var(--mono);
        font-size: 11px;
        color: var(--muted);
        padding: 4px 10px;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 4px
    }

    .refresh-btn {
        background: var(--accent);
        border: none;
        color: #fff;
        font-family: var(--sans);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .05em;
        padding: 7px 16px;
        border-radius: 5px;
        cursor: pointer;
        text-transform: uppercase
    }

    .refresh-btn:hover {
        opacity:.85
    }

    @keyframes btn-spin { to { transform: rotate(360deg) } }
    .refresh-btn-spinning::before { content:''; display:inline-block; width:10px; height:10px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:btn-spin .7s linear infinite; margin-right:6px; vertical-align:middle }
    .refresh-btn:disabled {
        opacity: .4;
        cursor: not-allowed
    }

    .sport-tabs {
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        padding: 0 24px;
        display: flex;
        overflow-x: auto
    }

    #feature-tabs {
        background: var(--bg2);
        overflow-x: auto;
        flex-shrink: 0
    }

    .sport-tab {
        font-family: var(--sans);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--muted);
        padding: 14px 18px;
        cursor: pointer;
        border: none;
        border-bottom: 2px solid transparent;
        background: none;
        white-space: nowrap
    }

    .sport-tab:hover {
        color:var(--text)
    }

    .sport-tab.active {
        color: var(--text);
        border-bottom-color: var(--accent)
    }

    .sport-tab.locked {
        color: var(--muted2);
        cursor: default;
        opacity: .5
    }

    .sport-tab.locked:hover {
        color: var(--muted2)
    }

    #fc-league-nav {
        display: none;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 0 24px;
        overflow-x: auto;
        flex-shrink: 0
    }

    .fc-league-tab {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
        padding: 9px 14px;
        cursor: pointer;
        border: none;
        border-bottom: 2px solid transparent;
        background: none;
        white-space: nowrap
    }

    .fc-league-tab:hover { color: var(--text) }

    .fc-league-tab.active {
        color: var(--accent);
        border-bottom-color: var(--accent)
    }

    .controls {
        padding: 16px 24px;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--border);
        background: var(--bg2)
    }

    .ctrl-lbl {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
        white-space: nowrap
    }

    .ctrl-sel, .ctrl-inp {
        background: var(--bg3);
        border: 1px solid var(--border2);
        color: var(--text);
        font-family: var(--sans);
        font-size: 13px;
        padding: 6px 10px;
        border-radius: 5px;
        outline: none
    }

    .ctrl-inp {
        width: 80px;
        font-family: var(--mono)
    }

    .search-wrap {
        position: relative
    }

    .search-inp {
        background: var(--bg3);
        border: 1px solid var(--border2);
        color: var(--text);
        font-family: var(--sans);
        font-size: 13px;
        padding: 6px 12px 6px 30px;
        border-radius: 5px;
        outline: none;
        width: 220px
    }

    .search-ico {
        position: absolute;
        left: 9px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: 13px;
        pointer-events: none
    }

    .stats-pill {
        margin-left: auto;
        display: flex;
        gap: 16px
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: flex-end
    }

    .stat-val {
        font-family: var(--mono);
        font-size: 16px;
        font-weight: 600;
        line-height: 1
    }

    .stat-lbl {
        font-size: 10px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--muted);
        margin-top: 2px
    }

    .status-bar {
        padding: 8px 24px;
        font-family: var(--mono);
        font-size: 11px;
        color: var(--muted);
        display: flex;
        align-items: center;
        gap: 8px
    }

    .sdot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--muted2);
        flex-shrink: 0
    }

    .sdot.live {
        background: var(--green);
        animation: pulse 1.5s ease-in-out infinite
    }

    .sdot.loading {
        background: var(--yellow);
        animation: pulse .8s ease-in-out infinite
    }

    .sdot.error {
        background: var(--red)
    }

    .table-wrap {
        padding: 0 24px;
        overflow-x: auto
    }

    table {
        width: 100%;
        border-collapse: collapse;
        min-width: 1100px
    }

    thead tr {
        border-bottom: 1px solid var(--border2)
    }

    th {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--muted);
        padding: 10px 12px;
        text-align: left;
        white-space: nowrap;
        background: var(--bg)
    }

    th.r {
        text-align:right
    }

    th.c {
        text-align: center
    }

    tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background .1s
    }

    tbody tr:hover {
        background: var(--bg2)
    }

    tbody tr.has-edge {
        background: transparent
    }

    tbody tr.collapsed-row {
        display: none
    }

    td {
        padding: 10px 12px;
        vertical-align: middle;
        font-size: 13px
    }

    td.r {
        text-align:right
    }

    td.c {
        text-align: center
    }

    .mkt-badge {
        display: inline-block;
        font-family: var(--mono);
        font-size: 10px;
        font-weight: 600;
        padding: 2px 7px;
        border-radius: 3px;
        background: var(--bg4);
        border: 1px solid var(--border2);
        color: var(--muted)
    }

    .odds-pos {
        color: #6ee7b7;
        font-family: var(--mono);
        font-weight: 600
    }

    .odds-neg {
        color: var(--text);
        font-family: var(--mono);
        font-weight: 600
    }

    .cell-inp {
        width: 58px;
        background: var(--bg3);
        border: 1px solid var(--border2);
        color: var(--text);
        font-family: var(--mono);
        font-size: 12px;
        padding: 5px 6px;
        border-radius: 4px;
        outline: none;
        text-align: right
    }

    .cell-inp:focus {
        border-color: var(--accent)
    }

    .cell-inp.filled {
        border-color: rgba(79, 110, 247, .5);
        background: rgba(79, 110, 247, .05)
    }

    .cell-inp.line-changed {
        border-color: rgba(245, 200, 66, .5);
        background: rgba(245, 200, 66, .04)
    }

    .pred-unit {
        font-size: 11px;
        color: var(--muted);
        font-family: var(--mono)
    }

    .edge-wrap {
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: flex-end
    }

    .edge-bar-bg {
        width: 50px;
        height: 4px;
        background: var(--bg4);
        border-radius: 2px;
        overflow: hidden;
        flex-shrink: 0
    }

    .edge-bar-fill {
        height: 100%;
        border-radius: 2px
    }

    .edge-val {
        font-family: var(--mono);
        font-size: 13px;
        font-weight: 600;
        min-width: 52px;
        text-align: right
    }

    .e-none {
        color:var(--muted2)
    }

    .e-strong {
        color:var(--green)
    }

    .e-med {
        color:#7ddfab
    }

    .e-weak {
        color:var(--yellow)
    }

    .e-neg {
        color: var(--red)
    }

    .u-pass {
        color: var(--muted2);
        font-family: var(--mono);
        font-size: 12px
    }

    .u-val {
        font-family: var(--mono);
        font-weight: 600;
        color: var(--green)
    }

    .bet-val {
        font-family: var(--mono);
        font-size: 13px;
        font-weight: 600
    }

    .state-row td {
        padding: 60px 0;
        text-align: center;
        color: var(--muted)
    }/* GAME HEADER */

    .ghrow {
        background: var(--bg3) !important;
        cursor: pointer;
        border-top: 2px solid var(--bg) !important
    }

    .ghrow:hover {
        background: var(--bg4) !important
    }

    .ghrow td {
        padding: 7px 12px
    }

    .gh-inner {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--muted)
    }

    .gh-stripe {
        width: 3px;
        height: 14px;
        border-radius: 2px;
        flex-shrink: 0
    }

    .gh-badge {
        font-family: var(--mono);
        font-size: 10px;
        padding: 2px 7px;
        border-radius: 3px;
        background: var(--bg4);
        border: 1px solid var(--border2);
        color: var(--muted)
    }

    .gh-badge.urgent {
        color: var(--red);
        border-color: rgba(240, 82, 82, .3);
        background: rgba(240, 82, 82, .08)
    }

    .gh-badge.soon {
        color: var(--yellow);
        border-color: rgba(245, 200, 66, .3);
        background: rgba(245, 200, 66, .08)
    }

    .gh-arrow {
        margin-left: auto;
        font-size: 12px;
        color: var(--muted2);
        transition: transform .2s
    }

    .gh-arrow.up {
        transform: rotate(-180deg)
    }/* GATE */

    .gate {
        position: fixed;
        inset: 0;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999
    }

    .gate-box {
        background: var(--bg2);
        border: 1px solid var(--border2);
        border-radius: 12px;
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        min-width: 340px;
        max-width: 90vw
    }

    .gate-logo {
        font-family: var(--mono);
        font-weight: 600;
        font-size: 18px;
        letter-spacing: .08em;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px
    }

    .gate-tabs {
        display: flex;
        gap: 0;
        border: 1px solid var(--border2);
        border-radius: 6px;
        overflow: hidden;
        width: 100%
    }

    .gate-tab {
        flex: 1;
        padding: 8px;
        font-family: var(--sans);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        border: none;
        background: none;
        color: var(--muted);
        cursor: pointer;
        transition: all .15s
    }

    .gate-tab.active {
        background: var(--accent);
        color: #fff
    }

    .gate-fields {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%
    }

    .gate-inp {
        background: var(--bg3);
        border: 1px solid var(--border2);
        color: var(--text);
        font-family: var(--mono);
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 6px;
        outline: none;
        width: 100%
    }

    .gate-inp:focus {
        border-color: var(--accent)
    }

    .gate-btn {
        background: var(--accent);
        border: none;
        color: #fff;
        font-family: var(--sans);
        font-size: 13px;
        font-weight: 600;
        padding: 11px 32px;
        border-radius: 6px;
        cursor: pointer;
        width: 100%;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-top: 4px
    }

    .gate-btn:hover {
        opacity: .85
    }

    .gate-btn:disabled {
        opacity: .4;
        cursor: not-allowed
    }

    .gate-err {
        color: var(--red);
        font-family: var(--mono);
        font-size: 12px;
        display: none;
        text-align: center
    }

    .gate-ok {
        color: var(--green);
        font-family: var(--mono);
        font-size: 12px;
        display: none;
        text-align: center
    }

    .live-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-family: var(--mono);
        font-size: 10px;
        font-weight: 600;
        padding: 2px 7px;
        border-radius: 3px;
        background: rgba(240, 82, 82, .15);
        border: 1px solid rgba(240, 82, 82, .3);
        color: var(--red)
    }

    .live-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--red);
        animation: pulse .8s ease-in-out infinite
    }

    .score-info {
        font-family: var(--mono);
        font-size: 10px;
        color: var(--muted);
        margin-left: 2px
    }/* ── LANDING PAGE ── */
    .landing {
        display: none;
        min-height: 100vh;
        background: var(--bg)
    }

    .landing.visible {
        display: block
    }

    /* ── Landing — Sharp Sports Terminal ─────────────────── */
    @import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,300;0,400;0,700;0,800;0,900;1,800&family=Fira+Code:wght@400;500&family=DM+Sans:wght@400;500&display=swap');

    #landing {
        --lp-bg: #080b0f;
        --lp-bg2: #0d1117;
        --lp-bg3: #141a24;
        --lp-orange: #4f6ef7;
        --lp-orange-dim: rgba(79,110,247,.08);
        --lp-orange-border: rgba(79,110,247,.25);
        --lp-green: #10b981;
        --lp-red: #ef4444;
        --lp-text: #e8ecf0;
        --lp-muted: rgba(232,236,240,.42);
        --lp-border: rgba(255,255,255,.07);
        --lp-border2: rgba(79,110,247,.2);
        --lp-ex: 'Exo 2', sans-serif;
        --lp-fm: 'Fira Code', monospace;
        --lp-dm: 'DM Sans', sans-serif;
        background: var(--lp-bg);
        color: var(--lp-text);
        background-image:
            radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79,110,247,.06) 0%, transparent 60%),
            linear-gradient(180deg, rgba(79,110,247,.02) 0%, transparent 40%)
    }

    @keyframes lp-ticker { from{transform:translateX(0)}to{transform:translateX(-50%)} }
    @keyframes lp-fade-up { from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)} }
    @keyframes lp-pulse-dot { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.4)}50%{box-shadow:0 0 0 5px rgba(16,185,129,0)} }

    /* scan line overlay */
    #landing::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 9999;
        background: repeating-linear-gradient(
            0deg, transparent 0px, transparent 3px, rgba(0,0,0,.025) 3px, rgba(0,0,0,.025) 4px
        )
    }

    /* Nav */
    .lp-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        height: 58px;
        border-bottom: 1px solid var(--lp-border);
        position: sticky;
        top: 0;
        background: rgba(8,11,15,.96);
        backdrop-filter: blur(20px);
        z-index: 100
    }
    .lp-logo {
        font-family: var(--lp-ex);
        font-weight: 900;
        font-size: 18px;
        letter-spacing: .08em;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--lp-text);
        text-transform: uppercase
    }
    .lp-logo-live {
        display: flex;
        align-items: center;
        gap: 5px;
        font-family: var(--lp-fm);
        font-size: 9px;
        color: var(--lp-green);
        letter-spacing: .08em;
        background: rgba(16,185,129,.1);
        border: 1px solid rgba(16,185,129,.25);
        padding: 3px 8px;
        border-radius: 2px
    }
    .lp-logo-dot {
        width: 6px; height: 6px;
        border-radius: 50%;
        background: var(--lp-green);
        animation: lp-pulse-dot 2s ease-in-out infinite;
        flex-shrink: 0
    }
    .lp-nav-btns { display: flex; gap: 8px; align-items: center }
    .lp-btn-ghost {
        background: none;
        border: 1px solid var(--lp-border);
        color: rgba(232,236,240,.45);
        font-family: var(--lp-ex);
        font-size: 11px;
        font-weight: 600;
        padding: 8px 20px;
        cursor: pointer;
        letter-spacing: .06em;
        text-transform: uppercase;
        transition: color .15s, border-color .15s;
        border-radius: 2px
    }
    .lp-btn-ghost:hover { color: var(--lp-text); border-color: rgba(255,255,255,.2) }
    .lp-btn-primary {
        background: var(--lp-orange);
        border: none;
        color: #080b0f;
        font-family: var(--lp-ex);
        font-size: 11px;
        font-weight: 800;
        padding: 8px 22px;
        cursor: pointer;
        letter-spacing: .06em;
        text-transform: uppercase;
        transition: opacity .15s;
        border-radius: 2px
    }
    .lp-btn-primary:hover { opacity: .88 }

    /* Hero */
    .lp-hero {
        padding: 72px 40px 0;
        position: relative;
        overflow: hidden;
        min-height: 90vh;
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 48px;
        align-items: center;
        border-bottom: 1px solid var(--lp-border);
        animation: lp-fade-up .6s ease both
    }
    .lp-hero-left { display: flex; flex-direction: column; padding-bottom: 72px }
    .lp-hero-right-col { padding-bottom: 72px; display: flex; flex-direction: column; gap: 8px }
    .lp-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--lp-orange);
        font-family: var(--lp-fm);
        font-size: 10px;
        letter-spacing: .2em;
        text-transform: uppercase;
        margin-bottom: 28px
    }
    .lp-eyebrow-line { width: 24px; height: 1px; background: var(--lp-orange); opacity: .6; flex-shrink: 0 }
    .lp-h1 {
        font-family: var(--lp-ex);
        font-size: clamp(52px, 7vw, 96px);
        font-weight: 900;
        line-height: .88;
        letter-spacing: -.01em;
        margin-bottom: 0;
        color: var(--lp-text);
        text-transform: uppercase
    }
    .lp-h1 em {
        font-style: italic;
        color: var(--lp-orange);
        -webkit-text-fill-color: var(--lp-orange)
    }
    .lp-sub {
        font-size: 16px;
        color: var(--lp-muted);
        line-height: 1.7;
        max-width: 420px;
        font-family: var(--lp-dm);
        margin: 24px 0 36px
    }
    .lp-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px }
    .lp-cta {
        background: var(--lp-orange);
        border: none;
        color: #080b0f;
        font-family: var(--lp-ex);
        font-size: 12px;
        font-weight: 800;
        padding: 14px 36px;
        cursor: pointer;
        letter-spacing: .06em;
        text-transform: uppercase;
        transition: opacity .15s;
        border-radius: 2px
    }
    .lp-cta:hover { opacity: .88 }
    .lp-cta-ghost {
        background: none;
        border: 1px solid var(--lp-border);
        color: rgba(232,236,240,.4);
        font-family: var(--lp-ex);
        font-size: 12px;
        font-weight: 600;
        padding: 14px 24px;
        cursor: pointer;
        letter-spacing: .04em;
        text-transform: uppercase;
        transition: color .15s, border-color .15s;
        border-radius: 2px
    }
    .lp-cta-ghost:hover { color: var(--lp-text); border-color: rgba(255,255,255,.2) }
    .lp-hero-note {
        font-size: 10px;
        color: rgba(232,236,240,.22);
        font-family: var(--lp-fm);
        letter-spacing: .06em
    }

    /* Hero right — live EV panel */
    .lp-panel {
        background: var(--lp-bg2);
        border: 1px solid var(--lp-border);
        border-radius: 4px;
        overflow: hidden
    }
    .lp-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-bottom: 1px solid var(--lp-border);
        background: var(--lp-bg3)
    }
    .lp-panel-title {
        font-family: var(--lp-fm);
        font-size: 9px;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--lp-muted)
    }
    .lp-panel-badge {
        font-family: var(--lp-fm);
        font-size: 9px;
        color: var(--lp-green);
        background: rgba(16,185,129,.1);
        border: 1px solid rgba(16,185,129,.2);
        padding: 2px 8px;
        border-radius: 2px;
        letter-spacing: .06em
    }
    .lp-ev-row {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 12px;
        align-items: center;
        padding: 10px 14px;
        border-bottom: 1px solid var(--lp-border);
        transition: background .1s
    }
    .lp-ev-row:last-child { border-bottom: none }
    .lp-ev-row:hover { background: rgba(255,255,255,.02) }
    .lp-ev-game {
        font-family: var(--lp-ex);
        font-size: 11px;
        font-weight: 700;
        color: var(--lp-text);
        letter-spacing: .02em
    }
    .lp-ev-market {
        font-family: var(--lp-fm);
        font-size: 9px;
        color: var(--lp-muted);
        letter-spacing: .04em;
        margin-top: 2px
    }
    .lp-ev-odds {
        font-family: var(--lp-fm);
        font-size: 11px;
        color: var(--lp-muted);
        text-align: right
    }
    .lp-ev-badge {
        font-family: var(--lp-fm);
        font-size: 10px;
        font-weight: 500;
        padding: 3px 8px;
        border-radius: 2px;
        text-align: right;
        min-width: 52px
    }
    .lp-ev-badge.pos { background: rgba(16,185,129,.12); color: var(--lp-green); border: 1px solid rgba(16,185,129,.25) }

    /* Stats ticker */
    .lp-stats {
        overflow: hidden;
        border-bottom: 1px solid var(--lp-border);
        background: #0a0e14;
        white-space: nowrap;
        cursor: default
    }
    .lp-stats-track {
        display: inline-flex;
        animation: lp-ticker 28s linear infinite
    }
    .lp-stats:hover .lp-stats-track { animation-play-state: paused }
    .lp-stat {
        display: inline-flex;
        align-items: center;
        gap: 16px;
        padding: 14px 40px;
        border-right: 1px solid var(--lp-border)
    }
    .lp-stat-val {
        font-family: var(--lp-ex);
        font-size: 20px;
        color: var(--lp-orange);
        font-weight: 800;
        letter-spacing: .04em;
        line-height: 1
    }
    .lp-stat-lbl {
        font-size: 9px;
        color: var(--lp-muted);
        letter-spacing: .18em;
        text-transform: uppercase;
        font-family: var(--lp-fm)
    }

    /* Sections */
    .lp-section {
        padding: 88px 40px;
        max-width: 1160px;
        margin: 0 auto
    }
    .lp-section-eyebrow {
        font-size: 9px;
        letter-spacing: .28em;
        text-transform: uppercase;
        color: var(--lp-orange);
        font-family: var(--lp-fm);
        margin-bottom: 18px;
        display: flex;
        align-items: center;
        gap: 14px
    }
    .lp-section-eyebrow::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--lp-border)
    }
    .lp-section-h2 {
        font-family: var(--lp-ex);
        font-size: clamp(32px, 4.5vw, 58px);
        font-weight: 900;
        letter-spacing: -.01em;
        margin-bottom: 8px;
        color: var(--lp-text);
        line-height: .9;
        text-transform: uppercase
    }
    .lp-section-sub {
        font-size: 15px;
        color: var(--lp-muted);
        max-width: 360px;
        margin: 0 0 52px;
        line-height: 1.75;
        font-family: var(--lp-dm)
    }

    /* Features — data table rows */
    .lp-features { display: block }
    .lp-feature {
        display: grid;
        grid-template-columns: 56px 200px 1fr auto;
        align-items: center;
        gap: 0 32px;
        padding: 22px 0;
        border-top: 1px solid var(--lp-border);
        transition: background .15s;
        cursor: default
    }
    .lp-feature:last-child { border-bottom: 1px solid var(--lp-border) }
    .lp-feature:hover { background: rgba(79,110,247,.025) }
    .lp-feature:hover .lp-feature-num { color: rgba(79,110,247,.35) }
    .lp-feature-num {
        font-family: var(--lp-fm);
        font-size: 11px;
        font-weight: 500;
        color: rgba(255,255,255,.1);
        letter-spacing: .06em;
        transition: color .15s
    }
    .lp-feature-icon { display: none }
    .lp-feature-title {
        font-family: var(--lp-ex);
        font-size: 14px;
        font-weight: 800;
        color: var(--lp-text);
        letter-spacing: .06em;
        text-transform: uppercase
    }
    .lp-feature-desc {
        font-size: 13px;
        color: var(--lp-muted);
        line-height: 1.72;
        font-family: var(--lp-dm)
    }
    .lp-feature-badge {
        font-family: var(--lp-fm);
        font-size: 8px;
        font-weight: 500;
        letter-spacing: .14em;
        padding: 3px 9px;
        background: rgba(79,110,247,.1);
        color: var(--lp-orange);
        border: 1px solid var(--lp-orange-border);
        text-transform: uppercase;
        white-space: nowrap;
        border-radius: 2px
    }
    .lp-feature-badge-wrap { display: flex; justify-content: flex-end }

    /* Pricing */
    .lp-pricing {
        display: grid;
        grid-template-columns: 1fr 1.06fr;
        gap: 20px;
        max-width: 820px
    }
    .lp-plan {
        padding: 40px 36px;
        border: 1px solid var(--lp-border);
        background: var(--lp-bg2);
        border-radius: 4px;
        position: relative
    }
    .lp-plan.featured {
        border-color: var(--lp-orange-border);
        background: linear-gradient(135deg, rgba(79,110,247,.04) 0%, var(--lp-bg2) 60%)
    }
    .lp-plan-badge {
        display: inline-block;
        background: var(--lp-orange);
        color: #080b0f;
        font-family: var(--lp-ex);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: .14em;
        padding: 4px 12px;
        text-transform: uppercase;
        margin-bottom: 24px;
        border-radius: 2px
    }
    .lp-plan-name {
        font-family: var(--lp-fm);
        font-size: 9px;
        letter-spacing: .24em;
        text-transform: uppercase;
        color: var(--lp-muted);
        margin-bottom: 10px
    }
    .lp-plan.featured .lp-plan-name { color: rgba(79,110,247,.7) }
    .lp-plan-price {
        font-family: var(--lp-ex);
        font-size: 72px;
        font-weight: 900;
        letter-spacing: -.02em;
        line-height: .85;
        margin-bottom: 8px;
        color: var(--lp-text)
    }
    .lp-plan.featured .lp-plan-price { color: var(--lp-orange) }
    .lp-plan-per {
        font-size: 10px;
        color: var(--lp-muted);
        margin-bottom: 32px;
        font-family: var(--lp-fm);
        letter-spacing: .04em
    }
    .lp-plan-features {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 32px
    }
    .lp-plan-features li {
        font-size: 13px;
        color: rgba(232,236,240,.5);
        display: flex;
        align-items: flex-start;
        gap: 10px;
        line-height: 1.4;
        font-family: var(--lp-dm)
    }
    .lp-plan-features li span.check { color: var(--lp-green); font-size: 10px; flex-shrink: 0; margin-top: 3px; font-family: var(--lp-fm) }
    .lp-plan-features li span.x { color: rgba(232,236,240,.14); font-size: 10px; flex-shrink: 0; margin-top: 3px; font-family: var(--lp-fm) }
    .lp-plan-btn {
        width: 100%;
        padding: 14px;
        font-family: var(--lp-ex);
        font-size: 11px;
        font-weight: 800;
        cursor: pointer;
        letter-spacing: .1em;
        text-transform: uppercase;
        border: none;
        transition: opacity .15s;
        border-radius: 2px
    }
    .lp-plan-btn:hover { opacity: .88 }
    .lp-plan-btn.free-btn { background: rgba(232,236,240,.05); color: rgba(232,236,240,.3); border: 1px solid var(--lp-border) }
    .lp-plan-btn.pro-btn { background: var(--lp-orange); color: #fff }

    /* Footer */
    .lp-footer {
        padding: 24px 40px;
        border-top: 1px solid var(--lp-border);
        font-size: 10px;
        color: rgba(232,236,240,.18);
        font-family: var(--lp-fm);
        letter-spacing: .05em;
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap
    }

    @media (max-width: 900px) {
        .lp-hero { grid-template-columns: 1fr; min-height: auto; padding: 60px 20px 0 }
        .lp-hero-right-col { display: none }
        .lp-hero-left { padding-bottom: 60px }
        .lp-nav { padding: 0 20px }
        .lp-section { padding: 60px 20px }
        .lp-footer { padding: 20px }
        .lp-pricing { grid-template-columns: 1fr }
        .lp-stat { padding: 12px 28px }
        .lp-feature { grid-template-columns: 44px 1fr }
        .lp-feature-desc { grid-column: 2; margin-top: 4px }
        .lp-feature-badge-wrap { grid-column: 2; justify-content: flex-start; margin-top: 6px }
    }
    @media (max-width: 1100px) and (min-width: 901px) {
        .lp-hero { grid-template-columns: 1fr 360px }
        .lp-section { padding: 72px 32px }
        .lp-nav { padding: 0 28px }
        .lp-hero { padding: 72px 28px 0 }
        .lp-feature { grid-template-columns: 52px 160px 1fr auto }
    }

    .admin-panel {
        display: none;
        padding: 24px
    }

    .admin-panel.visible {
        display: block
    }

    .admin-stats {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 24px
    }

    .admin-stat {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 16px 20px;
        flex: 1;
        min-width: 120px
    }

    .admin-stat-val {
        font-family: var(--mono);
        font-size: 24px;
        font-weight: 600;
        line-height: 1
    }

    .admin-stat-lbl {
        font-size: 11px;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--muted);
        margin-top: 4px
    }

    .admin-stat[data-tip] { position: relative; cursor: default }
    .admin-stat[data-tip]::after {
        content: attr(data-tip);
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: var(--bg3);
        color: var(--fg);
        font-size: 11px;
        font-family: var(--sans);
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
        padding: 7px 11px;
        border-radius: 6px;
        border: 1px solid var(--border2);
        white-space: normal;
        max-width: 200px;
        text-align: center;
        pointer-events: none;
        opacity: 0;
        transition: opacity .15s;
        z-index: 200;
        line-height: 1.4
    }
    .admin-stat[data-tip]:hover::after { opacity: 1 }

    .admin-search {
        background: var(--bg3);
        border: 1px solid var(--border2);
        color: var(--text);
        font-family: var(--sans);
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 5px;
        outline: none;
        width: 280px;
        margin-bottom: 16px
    }

    .admin-search:focus {
        border-color: var(--accent)
    }

    .admin-table-wrap {
        overflow-x: auto
    }

    .admin-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 700px
    }

    .admin-table th {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--muted);
        padding: 10px 12px;
        text-align: left;
        border-bottom: 1px solid var(--border2);
        white-space: nowrap
    }

    .admin-table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--border);
        font-size: 13px;
        vertical-align: middle
    }

    .admin-table tr:hover td {
        background: var(--bg2)
    }

    .plan-sel {
        background: var(--bg3);
        border: 1px solid var(--border2);
        color: var(--text);
        font-family: var(--mono);
        font-size: 12px;
        padding: 4px 6px;
        border-radius: 4px;
        outline: none;
        cursor: pointer
    }

    .plan-sel:focus {
        border-color: var(--accent)
    }

    .admin-btn {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: .05em
    }

    .admin-btn.logout-btn {
        background: var(--bg4);
        color: var(--muted);
        border: 1px solid var(--border2)
    }

    .admin-btn.logout-btn:hover {
        color: var(--yellow);
        border-color: rgba(245, 200, 66, .3)
    }

    .admin-btn.ban-btn {
        background: rgba(240, 82, 82, .1);
        color: var(--red);
        border: 1px solid rgba(240, 82, 82, .2)
    }

    .admin-btn.ban-btn:hover {
        background: rgba(240, 82, 82, .2)
    }

    .admin-btn.del-btn {
        background: rgba(240, 82, 82, .1);
        color: var(--red);
        border: 1px solid rgba(240, 82, 82, .2)
    }

    .admin-btn.del-btn:hover {
        background: rgba(240, 82, 82, .25)
    }

    .admin-btn.unban-btn {
        background: rgba(45, 204, 126, .1);
        color: var(--green);
        border: 1px solid rgba(45, 204, 126, .2)
    }

    .badge-admin {
        font-family: var(--mono);
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 3px;
        background: rgba(79, 110, 247, .15);
        color: var(--accent);
        border: 1px solid rgba(79, 110, 247, .3)
    }

    .badge-banned {
        font-family: var(--mono);
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 3px;
        background: rgba(240, 82, 82, .15);
        color: var(--red);
        border: 1px solid rgba(240, 82, 82, .3)
    }

    .badge-free {
        font-family: var(--mono);
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 3px;
        background: var(--bg4);
        color: var(--muted);
        border: 1px solid var(--border2)
    }

    .badge-pro {
        font-family: var(--mono);
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 3px;
        background: rgba(45, 204, 126, .15);
        color: var(--green);
        border: 1px solid rgba(45, 204, 126, .3)
    }

    .port-connect-card {
        background: var(--bg2);
        border: 1px solid var(--border2);
        border-radius: 10px;
        padding: 32px;
        max-width: 540px
    }

    .port-connect-card h2 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 8px
    }

    .port-connect-card p {
        font-size: 13px;
        color: var(--muted);
        margin: 0 0 24px;
        line-height: 1.6
    }

    .port-steps {
        counter-reset: step;
        list-style: none;
        padding: 0;
        margin: 0 0 24px;
        display: flex;
        flex-direction: column;
        gap: 14px
    }

    .port-steps li {
        counter-increment: step;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 13px;
        line-height: 1.5
    }

    .port-steps li::before {
        content: counter(step);
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(79,110,247,.2);
        color: var(--accent);
        font-size: 11px;
        font-weight: 700;
        font-family: var(--mono);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 1px
    }

    .port-bookmarklet {
        display: inline-block;
        background: var(--accent);
        color: #fff;
        font-family: var(--sans);
        font-size: 13px;
        font-weight: 700;
        padding: 9px 18px;
        border-radius: 6px;
        text-decoration: none;
        cursor: grab;
        border: none;
        user-select: none
    }

    .port-bookmarklet:hover {
        background: #6280f8
    }

    .port-method-tabs {
        display: flex;
        gap: 0;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border2)
    }

    .port-method-tab {
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--muted);
        font-family: var(--sans);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        padding: 8px 14px;
        cursor: pointer;
        margin-bottom: -1px;
        transition: color .15s, border-color .15s
    }

    .port-method-tab.active {
        color: var(--accent);
        border-bottom-color: var(--accent)
    }

    .port-method-tab:hover:not(.active) {
        color: var(--fg)
    }

    .port-username-input {
        width: 100%;
        background: var(--bg3);
        border: 1px solid var(--border2);
        color: var(--fg);
        font-family: var(--sans);
        font-size: 14px;
        padding: 10px 14px;
        border-radius: 7px;
        outline: none;
        box-sizing: border-box;
        transition: border-color .15s
    }

    .port-username-input:focus {
        border-color: var(--accent)
    }

    .port-lookup-btn {
        width: 100%;
        background: var(--accent);
        color: #fff;
        border: none;
        font-family: var(--sans);
        font-size: 13px;
        font-weight: 700;
        padding: 10px;
        border-radius: 7px;
        cursor: pointer;
        margin-top: 10px;
        transition: background .15s
    }

    .port-lookup-btn:hover { background: #6280f8 }
    .port-lookup-btn:disabled { opacity: .5; cursor: default }

    .port-lookup-result {
        margin-top: 12px;
        font-size: 12px;
        color: var(--muted);
        line-height: 1.6
    }

    .port-lookup-result.error { color: var(--red) }
    .port-lookup-result.success { color: var(--green) }

    .port-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 600px;
        font-size: 13px
    }

    .port-table th {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--muted);
        padding: 10px 12px;
        text-align: left;
        border-bottom: 1px solid var(--border2);
        white-space: nowrap
    }

    .port-table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--border);
        vertical-align: middle
    }

    .port-table tr:hover td { background: var(--bg2) }

    .port-win  { color: var(--green) }
    .port-loss { color: var(--red) }
    .port-tf-btn { background:var(--bg3);border:1px solid var(--border2);color:var(--muted);font-family:var(--sans);font-size:11px;font-weight:600;padding:3px 10px;border-radius:4px;cursor:pointer;transition:all .15s }
    .port-tf-btn.port-tf-active { background:var(--accent);border-color:var(--accent);color:#fff }
    .port-filter-sel { background:var(--bg3);border:1px solid var(--border2);color:var(--fg);font-family:var(--sans);font-size:11px;padding:3px 7px;border-radius:5px;cursor:pointer;outline:none }
    .port-push { color: var(--muted) }

    .port-match-badge {
        font-size: 9px;
        font-weight: 700;
        background: rgba(79,110,247,.15);
        color: var(--accent);
        border: 1px solid rgba(79,110,247,.3);
        border-radius: 3px;
        padding: 1px 5px;
        margin-left: 5px;
        vertical-align: middle;
        white-space: nowrap
    }

    .port-cal {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 3px
    }

    .port-cal-hdr {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--muted2);
        text-align: center;
        padding: 4px 0
    }

    .port-cal-day {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 5px;
        padding: 6px 4px;
        min-height: 52px;
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        cursor: default
    }

    .port-cal-day.empty {
        background: transparent;
        border-color: transparent
    }

    .port-cal-day.has-data { cursor: pointer }
    .port-cal-day.has-data:hover { border-color: var(--border2) }

    .port-cal-day.today { border-color: var(--accent) }

    .port-cal-dn {
        font-size: 11px;
        color: var(--muted);
        font-family: var(--mono);
        line-height: 1
    }

    .port-cal-pnl {
        font-size: 12px;
        font-weight: 700;
        font-family: var(--mono);
        line-height: 1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .port-cal-unit {
        font-size: 9px;
        font-family: var(--mono);
        font-weight: 600;
        line-height: 1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .port-cal-bets {
        font-size: 9px;
        color: var(--muted2);
        line-height: 1
    }
    .port-cal-day.has-data .port-cal-bets { color: rgba(255,255,255,0.55) }
    .port-cal-day.has-data .port-cal-dn   { color: rgba(255,255,255,0.6) }

    @media (max-width: 768px) {
        .port-cal-day { min-height: 42px; padding: 4px 2px }
        .port-cal-pnl { font-size: 11px }
    }

    @media (max-width: 768px) {
        .port-table { min-width: 0 }
        .port-table thead { display: none }
        /* 3-column compact card grid */
        .port-table tbody { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px }
        .port-table tr {
            display: flex;
            flex-direction: column;
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: 7px;
            padding: 8px 8px 6px;
            gap: 2px
        }
        /* empty-state row spans full width */
        .port-table tr:has(td[colspan]) { grid-column: 1 / -1; align-items: center }
        .port-table tr:hover td { background: transparent }
        .port-table td {
            display: block;
            padding: 0;
            border-bottom: none;
            text-align: left;
            font-size: 11px;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap
        }
        .port-table td::before { display: none }
        .port-table td[colspan] { white-space: normal; text-align: center; color: var(--muted); font-size: 12px; padding: 8px 0 }

        /* Win / loss card gradients */
        .port-table tr.port-card-win  { background: linear-gradient(145deg, rgba(45,204,126,.18) 0%, var(--bg2) 100%); border-color: rgba(45,204,126,.3) }
        .port-table tr.port-card-loss { background: linear-gradient(145deg, rgba(240,82,82,.18)  0%, var(--bg2) 100%); border-color: rgba(240,82,82,.3) }

        /* ── Settled history ── */
        #port-history-tbody td:nth-child(3) { display: none } /* hide Market */
        #port-history-tbody td:nth-child(2) { font-weight: 700; font-size: 11px; color: var(--fg) }
        #port-history-tbody td:nth-child(1) { font-size: 9px; color: var(--muted2) }
        /* Avg + Cost + Paid inline with labels */
        #port-history-tbody td:nth-child(5),
        #port-history-tbody td:nth-child(6),
        #port-history-tbody td:nth-child(7) { display: inline-block; width: auto; margin-right: 5px }
        #port-history-tbody td:nth-child(5)::before,
        #port-history-tbody td:nth-child(6)::before,
        #port-history-tbody td:nth-child(7)::before {
            display: inline;
            content: attr(data-label) ' ';
            font-size: 9px; font-weight: 600; letter-spacing: .05em;
            text-transform: uppercase; color: var(--muted2); margin-right: 2px
        }

        /* ── Open positions ── */
        #port-open-tbody td:nth-child(1) { font-weight: 700; font-size: 11px; color: var(--fg) }
        /* Avg + Now inline */
        #port-open-tbody td:nth-child(5),
        #port-open-tbody td:nth-child(6) { display: inline-block; width: auto; margin-right: 5px }
        #port-open-tbody td:nth-child(5)::before,
        #port-open-tbody td:nth-child(6)::before {
            display: inline;
            content: attr(data-label) ' ';
            font-size: 9px; font-weight: 600; letter-spacing: .05em;
            text-transform: uppercase; color: var(--muted2); margin-right: 2px
        }
        /* Cost + Pays inline */
        #port-open-tbody td:nth-child(7),
        #port-open-tbody td:nth-child(8) { display: inline-block; width: auto; margin-right: 5px }
        #port-open-tbody td:nth-child(7)::before,
        #port-open-tbody td:nth-child(8)::before,
        #port-open-tbody td:nth-child(9)::before {
            display: inline;
            content: attr(data-label) ' ';
            font-size: 9px; font-weight: 600; letter-spacing: .05em;
            text-transform: uppercase; color: var(--muted2); margin-right: 2px
        }
    }

    @media (max-width: 768px) {
        .admin-panel {
            padding:14px
        }

        .port-connect-card {
            padding: 16px;
            max-width: 100%;
            box-sizing: border-box
        }

        .port-steps li {
            gap: 8px;
            font-size: 12px
        }

        .admin-stats {
            gap:10px
        }

        .admin-stat {
            padding: 12px 14px
        }
    }/* ── MOBILE CARD LAYOUT ── */
    @media (max-width: 768px) {
        .header {
            padding: 0 14px;
            height: 52px
        }

        .logo {
            font-size: 13px
        }

        .api-remaining {
            display: none
        }

        .refresh-btn {
            padding: 6px 12px;
            font-size: 11px
        }

        .sport-tabs {
            padding: 0 10px
        }

        .sport-tab {
            padding: 11px 12px;
            font-size: 11px
        }

        .controls {
            padding: 10px 14px;
            gap: 8px
        }

        .search-inp {
            width: 100%
        }

        .stats-pill {
            margin-left: 0
        }

        .status-bar {
            padding: 6px 14px
        }/* Hide desktop table */

        .table-wrap {
            display: none
        }/* Show mobile cards */

        .mobile-cards {
            display: block;
            padding: 0 14px
        }

        .game-card {
            background: var(--bg2);
            border-radius: 10px;
            margin-bottom: 12px;
            overflow: hidden;
            border: 1px solid var(--border2)
        }

        .game-card-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: var(--bg3);
            cursor: pointer;
            border-bottom: 1px solid var(--border)
        }

        .game-card-header:active {
            background: var(--bg4)
        }

        .gc-stripe {
            width: 3px;
            height: 16px;
            border-radius: 2px;
            flex-shrink: 0
        }

        .gc-league {
            font-size: 9px;
            font-weight: 700;
            letter-spacing: .08em;
            padding: 2px 6px;
            border-radius: 3px;
            color: #fff
        }

        .gc-title {
            display: flex;
            align-items: center;
            gap: 4px;
            flex: 1;
            overflow: hidden;
            min-width: 0;
            color: var(--text)
        }

        .gc-time {
            font-family: var(--mono);
            font-size: 10px;
            padding: 2px 7px;
            border-radius: 3px;
            background: var(--bg4);
            border: 1px solid var(--border2)
        }

        .gc-time.urgent {
            color: var(--red);
            border-color: rgba(240, 82, 82, .3);
            background: rgba(240, 82, 82, .08)
        }

        .gc-time.soon {
            color: var(--yellow);
            border-color: rgba(245, 200, 66, .3);
            background: rgba(245, 200, 66, .08)
        }

        .gc-arrow {
            font-size: 11px;
            color: var(--muted2);
            transition: transform .2s
        }

        .gc-arrow.up {
            transform: rotate(-180deg)
        }

        .game-card-body {
            display: block
        }

        .game-card-body.collapsed {
            display: none
        }/* Market section inside card */

        .mc-section {
            border-bottom: 1px solid var(--border);
            padding: 10px 14px
        }

        .mc-section:last-child {
            border-bottom: none
        }

        .mc-label {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 8px
        }

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

        .mc-row:last-child {
            margin-bottom: 0
        }

        .mc-side {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            flex: 1
        }

        .mc-odds {
            font-family: var(--mono);
            font-size: 13px;
            font-weight: 600;
            min-width: 52px;
            text-align: right
        }

        .mc-fair {
            font-family: var(--mono);
            font-size: 12px;
            color: var(--muted);
            min-width: 48px;
            text-align: right
        }/* Input row */

        .mc-inputs {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid var(--border)
        }

        .mc-inp-group {
            display: flex;
            align-items: center;
            gap: 4px;
            flex: 1
        }

        .mc-inp-lbl {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: .06em;
            text-transform: uppercase;
            color: var(--muted);
            white-space: nowrap
        }

        .mc-inp {
            width: 60px;
            background: var(--bg3);
            border: 1px solid var(--border2);
            color: var(--text);
            font-family: var(--mono);
            font-size: 13px;
            padding: 6px 8px;
            border-radius: 5px;
            outline: none;
            text-align: right
        }

        .mc-inp:focus {
            border-color: var(--accent)
        }

        .mc-inp.filled {
            border-color: rgba(79, 110, 247, .5);
            background: rgba(79, 110, 247, .05)
        }

        .mc-inp.line-changed {
            border-color: rgba(245, 200, 66, .5);
            background: rgba(245, 200, 66, .04)
        }

        .mc-locked {
            position: relative;
            overflow: hidden;
            border-radius: 6px
        }

        .mc-locked-blur {
            filter: blur(4px);
            pointer-events: none;
            user-select: none;
            opacity: .55
        }

        .mc-locked-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: rgba(10, 10, 12, .5);
            cursor: pointer;
            border-radius: 6px
        }

        .mc-locked-badge {
            font-family: var(--mono);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: .1em;
            padding: 3px 10px;
            border-radius: 20px;
            background: var(--accent);
            color: #fff
        }

        .mc-locked-msg {
            font-size: 11px;
            color: var(--muted);
            font-family: var(--sans)
        }

        .mc-units {
            font-family: var(--mono);
            font-size: 12px;
            font-weight: 600;
            color: var(--green);
            margin-left: 8px
        }

        .mc-units.pass {
            color: var(--muted2)
        }

        .mc-bet {
            font-family: var(--mono);
            font-size: 12px;
            font-weight: 600;
            color: var(--text);
            margin-left: 4px
        }
    }

    @media (min-width: 769px) {
        .mobile-cards {
            display: none
        }
    }

    /* Best EV mobile card grid */
    .ev-mobile-grid {
        display: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        padding: 0 8px 16px;
        box-sizing: border-box;
        width: 100%;
    }
    .ev-mobile-card {
        background: var(--bg2);
        border: 1px solid var(--border2);
        border-radius: 9px;
        padding: 8px 7px 6px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
    }
    .ev-mobile-card.ev-card-win { border-color: rgba(45,204,126,.4); background: linear-gradient(145deg,rgba(45,204,126,.13) 0%,var(--bg2) 100%); }
    .ev-mobile-card.ev-card-taken { opacity: 0.4; }
    .ev-mobile-card .evm-sport { font-size: 8px; font-weight: 800; letter-spacing: .07em; color: var(--muted2); text-transform: uppercase; }
    .ev-mobile-card .evm-ev { font-size: 12px; font-weight: 800; font-family: var(--mono); }
    .ev-mobile-card .evm-team { font-size: 9.5px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
    .ev-mobile-card .evm-home { color: var(--muted); }
    .ev-mobile-card .evm-mkt { font-size: 8px; font-weight: 700; background: var(--bg3); border: 1px solid var(--border2); border-radius: 3px; padding: 1px 4px; color: var(--muted); display: inline-block; white-space: nowrap; }
    .ev-mobile-card .evm-side { font-size: 9px; font-weight: 700; color: var(--fg); }
    .ev-mobile-card .evm-odds { font-size: 9px; font-family: var(--mono); color: var(--muted); }
    .ev-mobile-card .evm-real-input { width: 100%; box-sizing: border-box; background: var(--bg3); border: 1px solid var(--border2); color: var(--fg); font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 5px; border-radius: 4px; text-align: right; }
    .ev-mobile-card .evm-units { font-size: 9px; font-family: var(--mono); font-weight: 700; }
    .ev-mobile-card .evm-bet { font-size: 9px; font-family: var(--mono); font-weight: 600; color: var(--muted); }
    .ev-mobile-card .evm-redirect-btn { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 4px 0; font-size: 9px; font-weight: 700; font-family: var(--sans); text-align: center; background: var(--bg3); border: 1px solid var(--accent); color: var(--accent); border-radius: 5px; cursor: pointer; text-decoration: none; letter-spacing: .02em; }
    .ev-mobile-card .evm-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
    .ev-mobile-card .evm-cb { width: 15px; height: 15px; cursor: pointer; accent-color: var(--green); }


    @media (max-width: 768px) {
        .ev-desktop-table { display: none !important; }
        .ev-mobile-grid { display: grid !important; }
    }

    /* ── Accessibility ────────────────────────────────────────────────────────── */

    /* Keyboard focus rings — visible to keyboard users, hidden for mouse/touch */
    button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    /* Minimum tap target size for mobile (44px per WCAG 2.5.5) */
    @media (max-width: 768px) {
        button, [role="button"], a.btn, .tab-btn, .sport-tab, .gate-btn,
        .admin-btn, .lp-cta, .refresh-btn, .plan-sel {
            min-height: 44px;
        }
        /* Suppress iOS tap highlight on interactive elements */
        button, a, select, input { -webkit-tap-highlight-color: transparent; }
    }

    /* Disable animations for users who prefer reduced motion */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            transition: none !important;
            animation: none !important;
        }
    }
