/* ── StarkTennis — Premium Dark Fintech Dashboard ── */
/* Font: DM Sans (body) + JetBrains Mono (numbers/odds) */

:root {
    /* Core palette — deep navy with electric accents */
    --bg-primary: #0a0e1a;
    --bg-secondary: #101828;
    --bg-card: rgba(16, 24, 48, 0.75);
    --bg-accent: rgba(15, 22, 40, 0.85);
    --bg-input: rgba(25, 35, 60, 0.7);
    --bg-elevated: rgba(20, 30, 55, 0.9);

    /* Accent: electric emerald (primary) + coral (danger) + amber (warning) */
    --color-green: #00e5b0;
    --color-red: #ff5a6e;
    --color-yellow: #ffb84d;
    --color-text: #f0f2f5;
    --color-text-dim: #98a2b3;
    --color-text-muted: #667085;
    --color-border: rgba(255, 255, 255, 0.07);
}

/* Light theme overrides — applied when <html data-theme="light"> */
html[data-theme="light"] {
    --bg-primary: #f7f8fa;
    --bg-secondary: #eef0f4;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-accent: rgba(245, 246, 250, 0.95);
    --bg-input: rgba(240, 242, 246, 0.8);
    --bg-elevated: rgba(255, 255, 255, 0.95);

    --color-green: #00a878;
    --color-red: #e03e54;
    --color-yellow: #d4941a;
    --color-text: #1a2236;
    --color-text-dim: #5a6478;
    --color-text-muted: #8a92a3;
    --color-border: rgba(0, 0, 0, 0.09);
}
html[data-theme="light"] body { background: var(--bg-primary); color: var(--color-text); }
html[data-theme="light"] .header { background: rgba(255, 255, 255, 0.92); border-bottom-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .bottom-nav { background: rgba(255, 255, 255, 0.98); border-top-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .match-card,
html[data-theme="light"] .signal-card,
html[data-theme="light"] .today-stats-widget,
html[data-theme="light"] .detail-section {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--color-text) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .confidence-badge { color: #0a0e1a; }
html[data-theme="light"] input, html[data-theme="light"] textarea {
    background: rgba(245, 246, 250, 0.9) !important;
    color: var(--color-text) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}
html[data-theme="light"] .header-title {
    background: linear-gradient(135deg, #1a2236 30%, var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .header-badge { background: linear-gradient(135deg, var(--color-green), #00a878); color: #fff; }
html[data-theme="light"] .skip-link:focus { background: #fff; color: #00a878; }

:root {
    /* Radii — more rounded for premium feel */
    --radius: 14px;
    --radius-sm: 8px;

    /* Shadows — layered depth */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --glass-border: 1px solid rgba(255, 255, 255, 0.07);
    --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);

    /* Glow effects */
    --glow-green: 0 0 20px rgba(0, 229, 176, 0.15), 0 0 60px rgba(0, 229, 176, 0.05);
    --glow-red: 0 0 20px rgba(255, 90, 110, 0.15);

    /* ── Design tokens (R109-R118 designer audit) ── */
    /* Typography scale */
    --font-h1: 28px;
    --font-h2: 20px;
    --font-h3: 16px;
    --font-body: 14px;
    --font-small: 12px;
    --font-tiny: 10px;
    --font-weight-regular: 400;
    --font-weight-semi: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;

    /* Spacing scale (8px base, 4px increments) */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 12px;
    --sp-lg: 16px;
    --sp-xl: 20px;
    --sp-2xl: 24px;
    --sp-3xl: 32px;

    /* Radii */
    --radius-xs: 4px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadow levels (semantic hierarchy) */
    --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);

    /* Semantic role colors */
    --color-success: #00d4aa;
    --color-danger: #ff4757;
    --color-warning: #ffd32a;
    --color-info: #5c9bff;

    /* Transitions */
    --duration-fast: 0.15s;
    --duration-normal: 0.25s;
    --duration-slow: 0.4s;
    --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 15% -5%, rgba(0, 229, 176, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 100%, rgba(92, 107, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(16, 24, 48, 1) 0%, var(--bg-primary) 100%);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* ── Header ── */
html { background: var(--bg-primary); overscroll-behavior-y: none; }
.tg-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #229ED9 0%, #2AABEE 100%);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 12px;
    position: sticky;
    top: 0;
    z-index: 102;
    box-shadow: 0 2px 10px rgba(34, 158, 217, 0.35);
}
.tg-bar b { font-weight: 700; }
.tg-bar:active { opacity: 0.85; }
.tg-icon { flex-shrink: 0; }

.header {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 229, 176, 0.08);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 1;
    min-width: 0;
}

.header-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #fff 30%, var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Telegram header button */
.header-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #229ED9, #2AABEE);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(34, 158, 217, 0.3);
    transition: transform var(--duration-fast) var(--easing), box-shadow var(--duration-fast) var(--easing);
    white-space: nowrap;
    flex-shrink: 0;
}
.header-tg-btn:active {
    transform: scale(0.95);
}
.header-tg-btn svg {
    flex-shrink: 0;
}

.header-badge {
    font-size: 12px;
    background: linear-gradient(135deg, var(--color-green), #00b894);
    color: #0d1117;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.25);
    transition: box-shadow var(--transition);
}

.header-badge.stale {
    background: linear-gradient(135deg, var(--color-yellow), #f0a020);
    box-shadow: 0 2px 8px rgba(255, 211, 42, 0.2);
}

.header-badge.error {
    background: linear-gradient(135deg, var(--color-red), #e04050);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.25);
}

/* Match card — relative for bookmark star positioning */
.match-card { position: relative; }

/* Desktop wide screens — 2-column match grid */
@media (min-width: 900px) {
    #matchesList {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    #matchesList > .date-header {
        grid-column: 1 / -1;
    }
    #matchesList > .match-card {
        margin: 0 !important;
    }
}

/* Toast animation */
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Online counter */
.header-online {
    font-size: 10.5px;
    color: #00d4aa;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
    background: rgba(0, 212, 170, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.header-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4aa;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

/* User badge (split: name | logout) */
.header-user {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    flex-shrink: 0;
}
.header-user-name {
    color: #7c5cff;
    padding: 3px 8px;
    border-radius: 8px 0 0 8px;
    background: rgba(124, 92, 255, 0.12);
    cursor: pointer;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}
.header-user-out {
    color: #f56565;
    padding: 3px 7px;
    border-radius: 0 8px 8px 0;
    background: rgba(245, 101, 101, 0.12);
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Login button */
.header-login {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(124, 92, 255, 0.15);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: #9f85ff;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Export badge: on mobile show only HH:MM part */
.header-badge .export-date { display: inline; }
.header-badge .export-time { display: none; }

/* ── Mobile header adaptation ── */
@media (max-width: 560px) {
    .header { padding: 8px 10px; gap: 6px; }
    .header-title { font-size: 15px; }
    .header-right { gap: 3px; }
    .header-tg-btn { padding: 4px 8px; font-size: 12px; }
    .header-tg-text { display: none; }
    .header-tg-btn { padding: 6px; border-radius: 50%; width: 26px; height: 26px; justify-content: center; }
    .header-online { font-size: 12px; padding: 3px 6px; }
    .header-user-name { max-width: 70px; font-size: 12px; padding: 3px 6px; }
    .header-user-out { font-size: 12px; padding: 3px 6px; }
    .header-login { font-size: 12px; padding: 4px 8px; }
    .header-badge { font-size: 12px; padding: 3px 7px; }
    .header-badge .export-date { display: none; }
    .header-badge .export-time { display: inline; }
}
@media (max-width: 400px) {
    .header-title { font-size: 12px; letter-spacing: -0.4px; }
    .header-online-dot { width: 5px; height: 5px; }
    .header-user-name { max-width: 60px; }
}

/* ── Bottom Nav ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--color-text-dim);
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: color var(--transition), transform var(--transition);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
    border-radius: 6px;
}

.nav-item.active {
    color: var(--color-green);
    text-shadow: 0 0 16px rgba(0, 229, 176, 0.4);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-green), transparent);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 229, 176, 0.5);
}

.nav-item .nav-icon {
    font-size: 20px;
    margin-bottom: 3px;
    transition: transform var(--transition);
}

/* ── Tabs Content ── */
.tab-content {
    display: none;
    padding: 12px;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

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

/* ── Section Header ── */
.section-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dim);
    margin: 18px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.section-header:first-child {
    margin-top: 4px;
}

.match-count {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-dim);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none;
}

/* ── Match Card ── */
.match-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid transparent;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.match-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 176, 0.02), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.match-card:active::before,
.match-card.has-edge::before { opacity: 1; }

.match-card:active {
    transform: scale(0.98);
    border-color: rgba(0, 229, 176, 0.15);
}

.match-card.has-edge {
    border-left-color: var(--color-green);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12), inset 0 0 20px rgba(0, 212, 170, 0.02);
}

.match-card.no-edge {
    border-left-color: var(--color-text-muted);
}

.card-tournament {
    font-size: 12px;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    letter-spacing: 0.2px;
}

.card-tournament .surface-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.surface-clay {
    background: linear-gradient(135deg, #c96840, #b85c38);
    color: #fff;
    box-shadow: 0 1px 4px rgba(184, 92, 56, 0.3);
}
.surface-hard {
    background: linear-gradient(135deg, #3575b5, #2d6a9f);
    color: #fff;
    box-shadow: 0 1px 4px rgba(45, 106, 159, 0.3);
}
.surface-grass {
    background: linear-gradient(135deg, #34b44a, #2a9d3c);
    color: #fff;
    box-shadow: 0 1px 4px rgba(42, 157, 60, 0.3);
}
.surface-carpet {
    background: linear-gradient(135deg, #9966bb, #8855aa);
    color: #fff;
    box-shadow: 0 1px 4px rgba(136, 85, 170, 0.3);
}
.surface-unknown {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-dim);
}

.card-time {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.2px;
}

.card-players {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    gap: 8px;
}

.player-side {
    flex: 1;
    text-align: center;
}

.player-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.player-meta {
    font-size: 12px;
    color: var(--color-text-dim);
    line-height: 1.4;
    letter-spacing: 0.15px;
}

.player-form {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-top: 3px;
}

.form-W, .form-L {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: var(--font-weight-black);
    margin: 0 1px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.form-W {
    background: rgba(0, 212, 170, 0.2);
    color: var(--color-success);
    border: 1px solid rgba(0, 212, 170, 0.3);
}
.form-L {
    background: rgba(255, 71, 87, 0.2);
    color: var(--color-danger);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.vs-divider {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.6;
}

.card-odds {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 10px 0 6px;
}

.odds-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 19px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
    letter-spacing: -0.5px;
    position: relative;
}

.odds-value.fav {
    color: var(--color-green);
    border-color: rgba(0, 229, 176, 0.2);
    background: rgba(0, 229, 176, 0.06);
    box-shadow: var(--glow-green);
    background: rgba(0, 212, 170, 0.06);
    border-color: rgba(0, 212, 170, 0.1);
}

.odds-bar {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--color-green), var(--color-red));
    border-radius: 1px;
    opacity: 0.6;
}

.card-bookmaker {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.card-edge {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.edge-text {
    color: var(--color-green);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.edge-text.negative {
    color: var(--color-text-muted);
}

.model-text {
    color: var(--color-text-dim);
    letter-spacing: 0.2px;
}

.confidence-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.conf-high {
    background: rgba(0, 212, 170, 0.12);
    color: var(--color-green);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.08);
}
.conf-medium {
    background: rgba(255, 211, 42, 0.12);
    color: var(--color-yellow);
}
.conf-low {
    background: rgba(123, 135, 148, 0.12);
    color: var(--color-text-dim);
}
.conf-skip {
    background: rgba(74, 85, 104, 0.12);
    color: var(--color-text-muted);
}

/* ── LIVE badge ── */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4444;
    animation: pulse-live 1.5s infinite;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.5);
}
@keyframes pulse-live {
    0% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(255, 68, 68, 0.5); }
    50% { opacity: 0.4; transform: scale(0.7); box-shadow: 0 0 2px rgba(255, 68, 68, 0.2); }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(255, 68, 68, 0.5); }
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}
.match-card.match-live {
    border-left: 3px solid #ff4444;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12), inset 0 0 20px rgba(255, 68, 68, 0.02);
}

/* ── Auto Analysis Badge (match card) ── */
.auto-analysis-badge {
    font-size: 12px;
    padding: 6px 10px;
    margin-top: 6px;
    border-radius: var(--radius-sm);
    text-align: center;
    letter-spacing: 0.2px;
    transition: background var(--transition);
}
.auto-analysis-badge.bet {
    background: rgba(0, 212, 170, 0.08);
    color: var(--color-green);
    border: 1px solid rgba(0, 212, 170, 0.15);
}
.auto-analysis-badge.risky {
    background: rgba(255, 211, 42, 0.08);
    color: var(--color-yellow);
    border: 1px solid rgba(255, 211, 42, 0.15);
}
.auto-analysis-badge.skip {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Match Detail ── */
.detail-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-green);
    cursor: pointer;
    padding: 10px 0;
    -webkit-tap-highlight-color: transparent;
    transition: opacity var(--transition);
    letter-spacing: 0.2px;
}

.detail-back:active {
    opacity: 0.6;
}

.detail-header {
    text-align: center;
    padding: 16px 0;
}

.detail-header .tournament-name {
    font-size: 12px;
    color: var(--color-text-dim);
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.detail-header .players-big {
    font-size: 20px;
    font-weight: 800;
    margin: 10px 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.detail-header .match-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.2px;
}

.detail-section {
    background: rgba(22, 33, 62, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.detail-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--color-text-dim);
    flex: 1;
    letter-spacing: 0.15px;
}

.stat-val-a, .stat-val-b {
    width: 80px;
    text-align: center;
    font-weight: 600;
}

.stat-val-a.better { color: var(--color-green); }
.stat-val-b.better { color: var(--color-green); }

.stat-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.stat-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-fill.green {
    background: linear-gradient(90deg, var(--color-green), #00b894);
}
.stat-bar-fill.red {
    background: linear-gradient(90deg, var(--color-red), #e04050);
}
.stat-bar-fill.yellow {
    background: linear-gradient(90deg, var(--color-yellow), #f0a020);
}

.detail-links {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.detail-link {
    flex: 1;
    display: block;
    text-align: center;
    padding: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background var(--transition), transform var(--transition);
}

.detail-link:active {
    opacity: 0.7;
    transform: scale(0.97);
}

/* ── Signals ── */
.signal-card {
    background: rgba(22, 33, 62, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    border-left: 3px solid var(--color-yellow);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition);
}

.signal-card:active {
    transform: scale(0.98);
}

.signal-card.win { border-left-color: var(--color-green); }
.signal-card.loss { border-left-color: var(--color-red); }
.signal-card.pending { border-left-color: var(--color-yellow); }

.signal-strategy {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.signal-match {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.1px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signal-bet {
    font-size: 12px;
    color: var(--color-text-dim);
    margin-bottom: 8px;
    letter-spacing: 0.15px;
}

.signal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.signal-odds {
    color: var(--color-text-muted);
}

.signal-result {
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

.signal-result.win {
    background: rgba(0, 212, 170, 0.12);
    color: var(--color-green);
}

.signal-result.loss {
    background: rgba(255, 71, 87, 0.12);
    color: var(--color-red);
}

.signal-result.pending {
    background: rgba(255, 211, 42, 0.12);
    color: var(--color-yellow);
}

/* ── Stats ── */
.stats-hero {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.6) 0%, rgba(15, 22, 40, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.stats-pnl {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.stats-pnl.positive {
    color: var(--color-green);
    text-shadow: 0 0 30px rgba(0, 212, 170, 0.15);
}
.stats-pnl.negative {
    color: var(--color-red);
    text-shadow: 0 0 30px rgba(255, 71, 87, 0.15);
}

.stats-subtitle {
    font-size: 13px;
    color: var(--color-text-dim);
    letter-spacing: 0.3px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.stats-cell {
    background: rgba(22, 33, 62, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    transition: transform var(--transition);
}

.stats-cell-value {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.stats-cell-label {
    font-size: 12px;
    color: var(--color-text-dim);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.strategy-row {
    background: rgba(22, 33, 62, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.strategy-name {
    font-size: 13px;
    font-weight: 700;
    max-width: 45%;
    letter-spacing: 0.1px;
}

.strategy-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-dim);
    letter-spacing: 0.15px;
}

.strategy-pnl {
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

.strategy-pnl.positive { color: var(--color-green); }
.strategy-pnl.negative { color: var(--color-red); }

/* ── Chart ── */
.chart-container {
    background: rgba(22, 33, 62, 0.45);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.chart-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dim);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.chart-svg {
    width: 100%;
    height: 120px;
}

/* ── Loading / Empty ── */
.loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--color-text-dim);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-top-color: var(--color-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px;
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.1);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--color-text-muted);
    font-size: 14px;
    letter-spacing: 0.2px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.7;
    line-height: 1;
}

/* ── Scrollable ── */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Recent Matches (Form Block) ── */

.recent-matches-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-match-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.3;
    flex-wrap: nowrap;
    overflow: hidden;
    transition: background var(--transition);
}

.recent-match-row.rm-win {
    background: rgba(0, 212, 170, 0.05);
}

.recent-match-row.rm-loss {
    background: rgba(255, 71, 87, 0.05);
}

.rm-icon {
    flex-shrink: 0;
    font-size: 13px;
}

.rm-opponent {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
    letter-spacing: 0.1px;
}

.rm-score {
    color: var(--color-text-dim);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rm-meta {
    color: var(--color-text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
    flex-shrink: 1;
    letter-spacing: 0.2px;
}

/* ── Utility ── */
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.text-yellow { color: var(--color-yellow); }
.text-dim { color: var(--color-text-dim); }
.text-muted { color: var(--color-text-muted); }
.fw-700 { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }

/* ── GPT Predictions ── */

.gpt-conf-table {
    background: rgba(22, 33, 62, 0.5);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 0 12px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gpt-conf-header,
.gpt-conf-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 4px;
    padding: 7px 0;
    font-size: 12px;
    align-items: center;
}

.gpt-conf-header {
    color: var(--color-text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.gpt-conf-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background var(--transition);
}

.gpt-conf-row:last-child {
    border-bottom: none;
}

.gpt-conf-name {
    font-weight: 700;
    color: var(--color-text);
}

.gpt-pred-card {
    background: rgba(22, 33, 62, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: var(--glass-border);
    border-radius: 14px;
    margin: 0 12px 8px;
    padding: 12px 16px;
    border-left: 3px solid var(--color-text-dim);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition);
}

.gpt-pred-card:active {
    transform: scale(0.98);
}

.gpt-pred-card.gpt-won {
    border-left-color: var(--color-green);
}

.gpt-pred-card.gpt-lost {
    border-left-color: var(--color-red);
}

.gpt-pred-card.gpt-void {
    border-left-color: var(--color-yellow);
}

.gpt-pred-card.gpt-pending {
    border-left-color: var(--color-text-dim);
}

.gpt-pred-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-dim);
    margin-bottom: 8px;
    letter-spacing: 0.15px;
}

.gpt-pred-status {
    font-size: 16px;
}

.gpt-pred-tournament {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gpt-pred-date {
    font-size: 12px;
    color: var(--color-text-dim);
    opacity: 0.7;
}

.gpt-pred-players {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
    letter-spacing: 0.1px;
}

.gpt-pred-bet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-green);
    flex-wrap: wrap;
}

.gpt-pred-bet b {
    font-weight: 700;
}

.gpt-pred-odds {
    font-weight: 700;
    color: var(--color-yellow);
}

.gpt-pred-conf-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-dim);
    letter-spacing: 0.3px;
}

.gpt-pred-pnl {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 700;
}

.positive { color: var(--color-green); font-weight: 600; }
.negative { color: var(--color-red); font-weight: 600; }

/* ── Smooth scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ── Desktop Adaptation (768px+) ── */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        padding-top: 64px;
    }

    /* Header — full width top bar */
    .header {
        height: 56px;
        padding: 0 32px;
        box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
    }

    .header-title {
        font-size: 18px;
    }

    /* Bottom nav → Top horizontal nav */
    .bottom-nav {
        position: fixed;
        top: 56px;
        bottom: auto;
        left: 0;
        right: 0;
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
        padding: 0;
        gap: 0;
        justify-content: center;
        background: rgba(15, 20, 30, 0.95);
    }

    .nav-item {
        flex-direction: row;
        gap: 6px;
        padding: 12px 24px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        border-bottom: 2px solid transparent;
        transition: all var(--transition);
    }

    .nav-item.active {
        border-bottom-color: var(--color-green);
    }

    .nav-item.active::after {
        display: none;
    }

    .nav-item .nav-icon {
        font-size: 16px;
        margin-bottom: 0;
    }

    .nav-item:hover {
        color: var(--color-green);
        background: rgba(0, 212, 170, 0.05);
    }

    /* Content area */
    .tab-content {
        padding: 24px 40px;
        margin-top: 44px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Match/signal lists — 2 column grid */
    #matchesList,
    #modelsContent {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Prediction sub-lists also get 2-column grid */
    #predMainList,
    #predExtraList {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* GPT sub-lists get 2-column grid */
    #gptPendingList,
    #gptSettledList {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Section headers span full width */
    #matchesList .section-header,
    #signalsList .section-header,
    #modelsContent .section-header,
    #gptContent .section-header,
    #matchesList > div[style*="display:flex"],
    #signalsList > div[style*="display:flex"],
    #predMainList > div[style*="font-size"],
    #predExtraList > div[style*="font-size"],
    #matchesList > div[style*="font-size"],
    #signalsList > div[style*="font-size"] {
        grid-column: 1 / -1;
    }

    .match-card {
        padding: 16px 20px;
        margin-bottom: 0;
    }

    .match-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        background: rgba(22, 33, 62, 0.75);
    }

    /* Stats page — single column centered */
    #statsContent {
        max-width: 800px;
        margin: 0 auto;
    }

    /* Model detail — single column */
    #modelDetailContent {
        max-width: 900px;
        margin: 0 auto;
    }

    #detailContent {
        max-width: 900px;
        margin: 0 auto;
    }

    /* Stats grid — wider cells */
    .stats-grid {
        gap: 10px;
    }

    .stats-cell {
        padding: 14px 12px;
    }

    .stats-cell-value {
        font-size: 20px;
    }

    /* Section headers */
    .section-header {
        font-size: 14px;
        margin: 24px 0 14px;
    }

    .chart-container {
        max-width: 600px;
    }
}

/* ── Filter Bar (R196 global redesign) ── */
.filter-bar {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    padding-right: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    background: linear-gradient(180deg, rgba(22, 27, 45, 0.5), rgba(15, 22, 40, 0.3));
    border-bottom: 1px solid var(--color-border);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-group {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
    align-items: center;
}
.filter-group-label {
    font-size: 9px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 4px;
    font-weight: var(--font-weight-semi);
}
.filter-chip {
    padding: 6px 14px;
    min-height: 36px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-dim);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--duration-fast) var(--easing);
    -webkit-tap-highlight-color: transparent;
}
.filter-chip:active { transform: scale(0.93); }
@media (hover: hover) {
    .filter-chip:hover:not(.active) {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.16);
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }
}
.filter-chip.active {
    background: linear-gradient(135deg, var(--color-success), #00b894);
    border-color: var(--color-success);
    color: #0d1117;
    font-weight: var(--font-weight-bold);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

/* ── Quick Stats Bar ── */
.quick-stats-bar {
    display: flex;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(0, 212, 170, 0.04);
    border-bottom: 1px solid rgba(0, 212, 170, 0.1);
    font-size: 12px;
    color: var(--color-text-dim);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.quick-stats-bar::-webkit-scrollbar { display: none; }
.quick-stats-bar span { white-space: nowrap; }
.quick-stats-bar b { color: var(--color-text); font-weight: var(--font-weight-semi); }

/* ── Tournament Group Headers (R196) ── */
.tournament-group { margin-bottom: var(--sp-lg); }
.tournament-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(92, 155, 255, 0.04));
    border-left: 4px solid var(--color-success);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: var(--sp-md);
    box-shadow: 0 2px 4px rgba(0, 212, 170, 0.06);
}
.tournament-name {
    font-size: 12px;
    font-weight: var(--font-weight-semi);
    color: var(--color-text);
    letter-spacing: 0.2px;
}
.tournament-match-count {
    font-size: 12px;
    color: var(--color-text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: var(--radius-xs);
}
.tournament-matches { display: grid; gap: var(--sp-sm); }

/* ── HOT badge pulse animation ── */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ══════════════════════════════════════════════════════════════════════
   PREMIUM VISUAL EFFECTS (v400 redesign)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Animated gradient background ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 10%, rgba(0, 229, 176, 0.04), transparent),
        radial-gradient(ellipse 500px 500px at 80% 90%, rgba(92, 107, 255, 0.03), transparent);
    animation: bgShift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}
@keyframes bgShift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, -20px) scale(1.05); }
}

/* ── LIVE pulse dot ── */
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 90, 110, 0.6);
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Surface badges with color ── */
.surface-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.surface-hard { background: rgba(92, 155, 255, 0.15); color: #7db4ff; border: 1px solid rgba(92, 155, 255, 0.2); }
.surface-clay { background: rgba(210, 120, 60, 0.15); color: #d2783c; border: 1px solid rgba(210, 120, 60, 0.2); }
.surface-grass { background: rgba(76, 195, 120, 0.15); color: #4cc378; border: 1px solid rgba(76, 195, 120, 0.2); }
.surface-indoor { background: rgba(160, 130, 255, 0.15); color: #a082ff; border: 1px solid rgba(160, 130, 255, 0.2); }

/* ── Odds hover micro-animation ── */
@media (hover: hover) {
    .odds-value:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    .match-card:hover {
        border-color: rgba(0, 229, 176, 0.12);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), var(--glow-green);
    }
}

/* ── Animated gradient border for HOT strategies ── */
@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.match-card.top-pick,
.match-card.has-edge {
    border-image: linear-gradient(var(--angle), var(--color-green), rgba(92,107,255,0.5), var(--color-green)) 1;
    animation: borderRotate 4s linear infinite;
}
@keyframes borderRotate {
    to { --angle: 360deg; }
}

/* ── Won/Lost result animation ── */
@keyframes wonFlash {
    0% { background: rgba(0, 229, 176, 0.2); }
    100% { background: transparent; }
}
@keyframes lostFlash {
    0% { background: rgba(255, 90, 110, 0.2); }
    100% { background: transparent; }
}

/* ── Tab switch animation ── */
.tab-content {
    animation: none;
}
.tab-content.active {
    animation: tabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Stats cell number animation ── */
.stats-cell-value {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
    transition: color 0.3s, transform 0.2s;
}

/* ── Section header with gradient line ── */
.section-header {
    position: relative;
    padding-bottom: 10px;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-green), transparent);
    border-radius: 1px;
}

/* ── Tournament header enhanced ── */
.tournament-header {
    position: relative;
    overflow: hidden;
}
.tournament-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 229, 176, 0.05), transparent 70%);
    pointer-events: none;
}

/* ── Filter chip glow when active ── */
.filter-chip.active {
    box-shadow: 0 4px 16px rgba(0, 229, 176, 0.25), 0 0 0 1px rgba(0, 229, 176, 0.3);
}

/* ── Parlay widget glass effect ── */
#parlayWidget > div {
    border: 1px solid rgba(0, 229, 176, 0.15) !important;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5), var(--glow-green) !important;
}

/* ── Loading shimmer effect ── */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
.loading-spinner {
    border-color: rgba(0, 229, 176, 0.1);
    border-top-color: var(--color-green);
    box-shadow: 0 0 20px rgba(0, 229, 176, 0.15);
}

/* ── Scroll progress bar in header ── */
.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: var(--scroll-progress, 0%);
    height: 2px;
    background: linear-gradient(90deg, var(--color-green), rgba(92, 107, 255, 0.8));
    transition: width 0.1s;
    z-index: 1;
}

/* ── Confetti container ── */
#confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}
@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(-20px) rotate(0deg); }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ── Edge text glow ── */
.edge-text:not(.negative) {
    text-shadow: 0 0 8px rgba(0, 229, 176, 0.3);
}

/* ── Kelly calculator result glow ── */
#kellyResult {
    border: 1px solid rgba(0, 229, 176, 0.1);
    transition: all 0.3s;
}
#kellyResult:not(:empty) {
    box-shadow: 0 0 20px rgba(0, 229, 176, 0.05);
}

/* ── Bottom nav glass ── */
.bottom-nav {
    background: rgba(10, 14, 26, 0.88);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-top: 1px solid rgba(0, 229, 176, 0.06);
}

/* ── Collapsible picks in strategy cards ── */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary span:first-child { transform: rotate(90deg); display: inline-block; }

/* ── Skip-link for keyboard navigation (R174 a11y) ── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-success);
    color: #0d1117;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-small);
    transition: top var(--duration-fast) var(--easing);
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-text);
    outline-offset: -2px;
}

/* ── Hero stats widget (R109 designer) ── */
.today-stats-widget {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-sm);
    text-align: center;
    margin: var(--sp-sm) var(--sp-md) var(--sp-lg);
    padding: var(--sp-lg) var(--sp-md);
    background: var(--bg-elevated);
    border: 1px solid rgba(0, 229, 176, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-green), 0 4px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.today-stats-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 176, 0.4), transparent);
}
.today-stats-widget .stat-col {
    position: relative;
}
.today-stats-widget .stat-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--sp-md) * -0.5);
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, rgba(0, 212, 170, 0.25), rgba(255, 255, 255, 0.04), rgba(0, 212, 170, 0.25));
}
.today-stats-widget .stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--color-text);
}
.today-stats-widget .stat-value.positive { color: var(--color-success); }
.today-stats-widget .stat-value.negative { color: var(--color-danger); }
.today-stats-widget .stat-value.neutral  { color: var(--color-warning); }
.today-stats-widget .stat-label {
    font-size: var(--font-tiny);
    color: var(--color-text-dim);
    margin-top: var(--sp-xs);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: var(--font-weight-semi);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Top picks highlight (R109 — visual hierarchy) */
.match-card.top-pick {
    border: 2px solid var(--color-success);
    box-shadow: var(--shadow-md), 0 0 24px rgba(0, 212, 170, 0.08), inset 0 0 20px rgba(0, 212, 170, 0.02);
    position: relative;
}
.match-card.top-pick::before {
    content: '⭐ TOP';
    position: absolute;
    top: -1px;
    right: 12px;
    background: linear-gradient(135deg, var(--color-success), #00b894);
    color: #0d1117;
    padding: 3px 10px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: var(--font-weight-black);
    font-size: var(--font-tiny);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.25);
}

/* Empty state polish (R109 — friendly + floating icon) */
.empty-state .empty-icon {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ── Touch-friendly targets (R246 mobile UX) ── */
/* Ensure all interactive elements are min 44x44px touch target (WCAG 2.5.5) */
.filter-chip {
    min-height: 32px;
    min-width: 40px;
}
.nav-item {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
}
/* Safe area inset for iPhone notch / home indicator */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}
/* Smooth scroll for filter bar on touch */
.filter-bar {
    scroll-snap-type: x mandatory;
}
.filter-group {
    scroll-snap-align: start;
}
/* Match card touch feedback */
.match-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* ── Mobile 375px — tournament name truncation ── */
@media (max-width: 375px) {
    .tournament-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 85%; }
}

/* ── Small mobile (≤360px, iPhone SE, Galaxy A01) ── */
@media (max-width: 360px) {
    .tab-content { padding: 8px; }
    .match-card, .signal-card { padding: 10px 12px; }
    .empty-state { padding: 24px 12px; min-height: 140px; }
    .player-name { font-size: 13px; }
    .signal-match { font-size: 12px; }
    /* Hero stats 2x2 grid on tiny screens */
    .today-stats-widget { grid-template-columns: 1fr 1fr; gap: var(--sp-sm); padding: var(--sp-md); }
    .today-stats-widget .stat-value { font-size: 18px; }
    .today-stats-widget .stat-col:nth-child(2)::after { display: none; }
    /* Odds vertical on 320px */
    .card-odds { flex-direction: column; gap: 6px; }
    .odds-value { font-size: 16px; padding: 5px 12px; }
    .odds-bar { display: none; }
}

/* ── Wide Desktop (1200px+) ── */
@media (min-width: 1200px) {
    .tab-content {
        padding: 28px 60px;
        max-width: 1400px;
    }

    .nav-item {
        padding: 12px 32px;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* UX Pack 1 (2026-04-14) — glossary, tab subtitle, recommended badge  */
/* ═══════════════════════════════════════════════════════════════════ */

/* Info button inside hero stats */
.today-stats-widget { position: relative; }
.info-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--color-text-dim);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}
.info-btn:hover, .info-btn:active {
    background: rgba(0,212,170,0.2);
    transform: scale(1.08);
}

/* Tab subtitle — one-liner explaining each tab */
.tab-subtitle {
    margin: 0 12px 8px;
    padding: 8px 12px;
    background: rgba(0,212,170,0.06);
    border-left: 2px solid rgba(0,212,170,0.4);
    border-radius: 6px;
    font-size: 11.5px;
    color: var(--color-text-dim);
    line-height: 1.45;
    display: none;
}
.tab-subtitle.visible { display: block; }
.tab-subtitle b { color: #e0e0e0; font-weight: 600; }

/* Glossary modal */
.glossary-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: glossary-fade-in 0.25s ease;
}
@keyframes glossary-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.glossary-content {
    background: #12182a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px 14px 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: glossary-slide-up 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes glossary-slide-up {
    from { transform: translateY(30px); opacity: 0.7; }
    to   { transform: translateY(0);    opacity: 1; }
}
.glossary-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.glossary-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #e0e0e0;
}
.glossary-close {
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
}
.glossary-close:hover { background: rgba(255,255,255,0.06); color: #e0e0e0; }
.glossary-body {
    padding: 12px 18px 20px;
    overflow-y: auto;
    flex: 1;
}
.gloss-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 12px;
    line-height: 1.5;
}
.gloss-row:last-child { border-bottom: none; }
.gloss-row > b {
    color: #00d4aa;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
}
.gloss-row > span {
    color: var(--color-text-dim);
}
.gloss-row i {
    color: #888;
    font-size: 12px;
    font-style: italic;
}

@media (min-width: 640px) {
    .glossary-modal { align-items: center; }
    .glossary-content { border-radius: 14px; max-height: 80vh; }
}

/* Recommended badge (HC v5) */
.rec-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffd700, #f7b500);
    color: #111;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(255,215,0,0.25);
}

/* UX Pack 2 — model group headers (Models tab grouping) */
.model-group-header {
    margin: 14px 12px 4px;
    padding: 6px 10px;
    background: linear-gradient(90deg, rgba(0,212,170,0.08), rgba(0,212,170,0.02));
    border-left: 3px solid var(--color-green);
    border-radius: 6px 0 0 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #e0e0e0;
}
.model-group-title { letter-spacing: 0.3px; }
.model-group-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-dim);
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}
.model-group-desc {
    margin: 0 12px 6px;
    padding: 0 2px;
    font-size: 10.5px;
    color: var(--color-text-dim);
    font-style: italic;
}

/* ── Model cards UX Pack 4 (2026-04-16) — sub-groups, algo chips, NEW/BEST badges ── */

/* Sub-group divider inside a group (e.g. XGBoost classic / CatBoost / LineMove inside HC) */
.model-subgroup-header {
    margin: 10px 14px 2px;
    padding: 3px 0 3px 8px;
    border-left: 2px solid rgba(0, 212, 170, 0.4);
    color: var(--color-text-dim);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.model-subgroup-header .sg-count {
    font-size: 9.5px;
    font-weight: 600;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-dim);
    letter-spacing: 0.2px;
    text-transform: none;
}

/* NEW badge — compact, vibrant, pill */
.new-badge {
    display: inline-block;
    padding: 1px 7px;
    margin-left: 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d4aa, #00a37f);
    color: #0a1520;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0, 212, 170, 0.3);
    text-transform: uppercase;
}

/* BEST-IN-GROUP badge — purple/violet contrast with golden RECOMMENDED */
.best-badge {
    display: inline-block;
    padding: 1px 7px;
    margin-left: 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #b46bff, #7c5cff);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(124, 92, 255, 0.35);
    text-transform: uppercase;
}

/* Algorithm chips row (XGBoost / CatBoost / Quantile / LineMove / Ensemble) */
.model-algo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
    align-items: center;
}
.model-algo-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.45;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: #c8c8c8;
    white-space: nowrap;
}
.model-algo-chip.catboost {
    background: rgba(255, 140, 50, 0.12);
    color: #ffb377;
    border-color: rgba(255, 140, 50, 0.3);
}
.model-algo-chip.xgboost {
    background: rgba(80, 150, 255, 0.12);
    color: #8ab4ff;
    border-color: rgba(80, 150, 255, 0.3);
}
.model-algo-chip.quantile {
    background: rgba(180, 107, 255, 0.12);
    color: #c79cff;
    border-color: rgba(180, 107, 255, 0.3);
}
.model-algo-chip.linemove {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd966;
    border-color: rgba(255, 215, 0, 0.3);
}
.model-algo-chip.ensemble {
    background: rgba(0, 212, 170, 0.12);
    color: #6ee7c6;
    border-color: rgba(0, 212, 170, 0.3);
}
.model-algo-chip.regression {
    background: rgba(120, 180, 255, 0.10);
    color: #9ec7ff;
    border-color: rgba(120, 180, 255, 0.25);
}
.model-algo-chip.pure {
    background: rgba(200, 200, 200, 0.08);
    color: #b8b8b8;
    border-color: rgba(200, 200, 200, 0.18);
}

/* WFCV ROI inline pill — tiny stat snippet inside card */
.wfcv-roi-inline {
    display: inline-block;
    padding: 2px 7px;
    margin-left: 6px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: rgba(40, 167, 69, 0.15);
    color: #5dd87a;
    border: 1px solid rgba(40, 167, 69, 0.28);
    white-space: nowrap;
    vertical-align: middle;
}
.wfcv-roi-inline.negative {
    background: rgba(220, 53, 69, 0.15);
    color: #ff7c8a;
    border-color: rgba(220, 53, 69, 0.28);
}
.wfcv-roi-inline::before {
    content: "WFCV ";
    opacity: 0.7;
    font-weight: 600;
    font-size: 9px;
}

/* Card title row — let badges wrap on small screens instead of overflowing */
.model-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.model-title-main {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    flex: 1 1 auto;
    min-width: 0;
}

/* Mobile-first tuning */
@media (max-width: 480px) {
    .model-title-main { font-size: 14px; }
    .new-badge, .best-badge, .rec-badge {
        font-size: 8.5px;
        padding: 1px 6px;
        margin-left: 4px;
    }
    .rec-badge { letter-spacing: 0.3px; }
    .model-algo-chip {
        font-size: 9.5px;
        padding: 1.5px 7px;
    }
    .wfcv-roi-inline {
        font-size: 9.5px;
        padding: 1.5px 6px;
        margin-left: 4px;
    }
    .model-subgroup-header {
        margin: 8px 10px 2px;
        font-size: 12px;
    }
}

/* UX Pack 3 — collapsible filter bar */
.filter-bar-wrap {
    margin: 0 12px 8px;
}
.filter-toggle {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-card, rgba(22,33,62,0.6));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: var(--color-text-dim);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.filter-toggle:hover, .filter-toggle:active {
    border-color: rgba(0,212,170,0.35);
    background: rgba(0,212,170,0.06);
}
.filter-toggle.has-active {
    border-color: rgba(0,212,170,0.45);
    background: rgba(0,212,170,0.08);
    color: #e0e0e0;
}
.filter-toggle.has-active b { color: #00d4aa; font-weight: 700; }
.filter-toggle-icon { font-size: 13px; }
.filter-toggle-label { flex: 1; text-align: left; }
.filter-toggle-chev { font-size: 12px; opacity: 0.7; }

.filter-bar {
    margin-top: 6px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: max-height 0.22s ease, opacity 0.22s ease, margin 0.22s ease, padding 0.22s ease;
    overflow: hidden;
    max-height: 400px;
    opacity: 1;
}
.filter-bar.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-width: 0;
    pointer-events: none;
}
.filter-reset {
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(220,53,69,0.12);
    border: 1px solid rgba(220,53,69,0.3);
    color: #e77;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.filter-reset:hover { background: rgba(220,53,69,0.2); }

/* UX Pack 3 — skeleton cards for progressive Stats load */
.skeleton-card {
    padding: 14px 16px;
    background: var(--bg-card, rgba(22,33,62,0.5));
    border-radius: var(--radius, 10px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.skel-line {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skel-line.w40 { width: 40%; }
.skel-line.w50 { width: 50%; }
.skel-line.w60 { width: 60%; }
.skel-line.w70 { width: 70%; }
.skel-line.w80 { width: 80%; }
.skel-line.w90 { width: 90%; }
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Sport mode conditional visibility ──────────────────────────────────── */
/* Hide tennis-specific filter-chip groups (ATP/WTA/surface) on basket.
   Keep filter-bar visible but trimmed via per-chip selectors. */
body.sport-basket .filter-bar [data-filter="level"],
body.sport-basket .filter-bar [data-filter="surface"] { display: none !important; }
body.sport-basket .surface-badge { display: none !important; }
body.sport-basket #pendingMyBar { display: none !important; }
/* Hero stats + quickStats remain visible; adapter fills them from basket APIs */
