/* ============================================
   PROPPI — DFS Intelligence Dashboard
   ============================================
   Version: 4.0 — Complete Visual Overhaul
   Design Philosophy:
   - Data is the hero. UI supports, never competes.
   - Dark mode native. Zero eye strain.
   - Speed of comprehension. 2-second scans.
   - Professional grade. Every pixel justified.
   - Dense but clear. Maximum signal per inch.
   ============================================ */

/* ============================================
   DESIGN TOKENS — Premium Dark System
   ============================================ */
:root {
    /* ─── BACKGROUND HIERARCHY ─── */
    --bg-base: #0A0A0C;
    /* Pure near-black, primary canvas */
    --bg-surface: #111114;
    /* Cards, panels, elevated content */
    --bg-surface-elevated: #18181B;
    /* Hover states, dropdowns */
    --bg-surface-highlight: #1F1F23;
    /* Selected rows, active states */
    --bg-surface-overlay: rgba(17, 17, 20, 0.95);
    /* Modals, sticky headers */

    /* ─── BORDERS ─── */
    --border-subtle: #1F1F24;
    --border-default: #27272A;
    --border-strong: #3F3F46;
    --border-focus: #3B82F6;

    /* ─── TEXT HIERARCHY ─── */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --text-disabled: #52525B;

    /* ─── SEMANTIC COLORS ─── */
    --positive: #22C55E;
    --positive-muted: #16A34A;
    --positive-bg: rgba(34, 197, 94, 0.12);

    --negative: #EF4444;
    --negative-muted: #DC2626;
    --negative-bg: rgba(239, 68, 68, 0.12);

    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.12);

    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.12);

    --purple: #8B5CF6;
    --purple-bg: rgba(139, 92, 246, 0.12);

    /* ─── GRADE SYSTEM ─── */
    --grade-aplus: #FFD700;
    --grade-aplus-glow: rgba(255, 215, 0, 0.4);
    --grade-a: #22C55E;
    --grade-bplus: #3B82F6;
    --grade-b: #60A5FA;
    --grade-c: #71717A;

    /* ─── PLATFORM COLORS ─── */
    --platform-prizepicks: #8B5CF6;
    --platform-underdog: #F97316;
    --platform-draftkings: #22C55E;
    --platform-fanduel: #3B82F6;
    --platform-betr: #22D3EE;
    --platform-fliff: #F472B6;
    --platform-sleeper: #34D399;
    --platform-wannaparlay: #FB923C;

    /* ─── DIRECTION COLORS ─── */
    --over: #22C55E;
    --over-bg: rgba(34, 197, 94, 0.15);
    --under: #EF4444;
    --under-bg: rgba(239, 68, 68, 0.15);

    /* ─── TYPOGRAPHY ─── */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* ─── SPACING (4px base) ─── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* ─── BORDER RADIUS ─── */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* ─── TRANSITIONS ─── */
    --transition-fast: 100ms ease-out;
    --transition-normal: 150ms ease-out;
    --transition-slow: 250ms ease-out;

    /* ─── SHADOWS ─── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.25);
    --shadow-glow-gold: 0 0 20px rgba(255, 215, 0, 0.25);
    --shadow-glow-green: 0 0 12px rgba(34, 197, 94, 0.3);

    /* ─── LAYOUT ─── */
    --header-height: 56px;
    --panel-width: 360px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar — Minimal & Dark */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-default) transparent;
}

/* Selection */
::selection {
    background: var(--info);
    color: white;
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-base);
}

/* ============================================
   HEADER — Command Center
   ============================================ */
.header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: var(--header-height);
    padding: 0 var(--space-5);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.logo-text {
    color: var(--text-primary);
}

.logo-pro {
    font-size: 0.5rem;
    font-weight: 800;
    padding: 2px 6px;
    background: linear-gradient(135deg, var(--grade-aplus), #FF8C00);
    color: #000;
    border-radius: var(--radius-xs);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: var(--shadow-glow-gold);
}

/* Sport Tabs */
.sport-tabs {
    display: flex;
    gap: var(--space-1);
    margin-left: var(--space-8);
    padding: 3px;
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.tab-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-surface-elevated);
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.tab-icon {
    font-size: 1rem;
}

.tab-label {
    font-weight: 600;
}

.tab-count {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 6px;
    background: var(--bg-surface-elevated);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.tab-btn.active .tab-count {
    background: var(--info);
    color: white;
}

/* Page Navigation */
.page-nav {
    display: flex;
    gap: var(--space-1);
    margin-left: auto;
}

.page-nav a.tab-btn {
    text-decoration: none;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.live-clock {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--positive);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--positive);
    border-radius: 50%;
    box-shadow: var(--shadow-glow-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.btn-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
    border-color: var(--border-strong);
}

.btn-icon.spinning .refresh-icon {
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   STATS ROW — Key Performance Cards
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
}

.stat-card {
    position: relative;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

/* Premium A+ Card */
.stat-card-premium {
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.06) 0%,
            rgba(255, 215, 0, 0.02) 50%,
            var(--bg-base) 100%);
    border-color: rgba(255, 215, 0, 0.2);
    border-left: 3px solid var(--grade-aplus);
}

.stat-card-premium:hover {
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: var(--shadow-glow-gold);
}

.stat-card-premium .stat-value {
    background: linear-gradient(135deg, var(--grade-aplus), #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    font-feature-settings: 'tnum' 1;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: var(--space-2);
}

/* ============================================
   FILTERS BAR
   ============================================ */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-5);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
    gap: var(--space-4);
}

.filters-left {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px var(--space-3);
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    width: 180px;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--info);
    box-shadow: 0 0 0 2px var(--info-bg);
}

.search-icon {
    font-size: 0.75rem;
    opacity: 0.5;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.filter-group select {
    padding: 6px 28px 6px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all var(--transition-fast);
}

.filter-group select:hover {
    border-color: var(--border-strong);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 2px var(--info-bg);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.toggle-label:hover {
    color: var(--text-secondary);
    background: var(--bg-base);
}

.toggle-label input {
    width: 14px;
    height: 14px;
    accent-color: var(--info);
    cursor: pointer;
}

.filters-right {
    display: flex;
    align-items: center;
}

.filter-summary {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-summary strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: auto;
    padding: var(--space-4);
    background: var(--bg-base);
}

.picks-section {
    height: 100%;
}

.picks-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* ============================================
   TABLE HEADER — Sticky Command Bar
   ============================================ */
.picks-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 10px var(--space-4);
    background: var(--bg-surface-overlay);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    position: sticky;
    top: 0;
    z-index: 20;
    border: 1px solid var(--border-subtle);
}

.date-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--space-4);
    margin-top: var(--space-3);
    margin-bottom: var(--space-1);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border-subtle);
    letter-spacing: 0.03em;
}

.date-divider .date-count {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================
   PICK CARD (Table Row)
   ============================================ */
.pick-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 10px var(--space-4);
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pick-card:nth-child(odd) {
    background: rgba(17, 17, 20, 0.5);
}

.pick-card:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-subtle);
    border-left-color: var(--info);
}

/* Selected State */
.pick-card.selected {
    background: var(--info-bg);
    border-color: var(--info);
    border-left-color: var(--info);
    box-shadow: var(--shadow-glow-blue);
}

/* A+ Row Treatment */
.pick-card.grade-aplus {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.04), transparent 40%);
    border-left-color: var(--grade-aplus);
}

.pick-card.grade-aplus:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), var(--bg-surface-elevated) 40%);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.08);
}

.pick-card.grade-aplus.selected {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), var(--info-bg) 50%);
    border-left-color: var(--grade-aplus);
    box-shadow: var(--shadow-glow-gold);
}

/* Started Games */
.pick-card.started {
    opacity: 0.4;
    filter: grayscale(40%);
}

.pick-card.started:hover {
    opacity: 0.55;
}

/* ============================================
   TABLE COLUMNS
   ============================================ */
.pick-col {
    flex-shrink: 0;
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player Column */
.pick-col-player {
    flex: 2;
    min-width: 160px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pick-player {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.pick-matchup {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stat Column */
.pick-col-stat {
    flex: 1;
    min-width: 90px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Line Column */
.pick-col-line {
    width: 120px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.line-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-feature-settings: 'tnum' 1;
}

/* Platform Badges */
.platform-badge {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.platform-pp {
    background: rgba(139, 92, 246, 0.15);
    color: var(--platform-prizepicks);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.platform-ud {
    background: rgba(249, 115, 22, 0.15);
    color: var(--platform-underdog);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.platform-dk {
    background: rgba(34, 197, 94, 0.15);
    color: var(--platform-draftkings);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* CA-Accessible Book Badges (from BettingPros) */
.platform-betr {
    background: rgba(6, 182, 212, 0.15);
    color: #22D3EE;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.platform-fliff {
    background: rgba(236, 72, 153, 0.15);
    color: #F472B6;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.platform-sleeper {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.platform-wannaparlay {
    background: rgba(251, 146, 60, 0.15);
    color: #FB923C;
    border: 1px solid rgba(251, 146, 60, 0.25);
}

/* ============================================
   LINES COMPARISON — Multi-Platform View
   ============================================ */
.lines-comparison {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.lines-group {
    padding: var(--space-3);
}

.lines-group-label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ca-tag {
    font-size: 0.5rem;
    font-weight: 600;
    color: #22D3EE;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.lines-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-default), transparent);
    margin: 0;
}

.line-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 5px var(--space-2);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.line-row:hover {
    background: var(--bg-surface-elevated);
}

.line-row-empty {
    opacity: 0.35;
}

.line-row-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Platform dot colors */
.platform-dot-pp {
    background: var(--platform-prizepicks);
}

.platform-dot-ud {
    background: var(--platform-underdog);
}

.platform-dot-dk {
    background: var(--platform-draftkings);
}

.platform-dot-betr {
    background: #22D3EE;
}

.platform-dot-fliff {
    background: #F472B6;
}

.platform-dot-sleeper {
    background: #34D399;
}

.platform-dot-wannaparlay {
    background: #FB923C;
}

.line-row-platform {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    flex: 1;
}

.line-row-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: 'tnum' 1;
    min-width: 36px;
    text-align: right;
}

.line-row-empty .line-row-value {
    color: var(--text-muted);
    font-weight: 400;
}

.line-row-diff {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    min-width: 32px;
    text-align: center;
    font-feature-settings: 'tnum' 1;
}

/* Line Same */
.line-same .line-row-value {
    color: var(--positive);
}

/* Line Close (within 0.5) */
.line-close .line-row-diff {
    color: var(--warning);
    background: var(--warning-bg);
}

/* Line Different (> 0.5) */
.line-diff .line-row-diff {
    color: var(--negative);
    background: var(--negative-bg);
}

/* Direction Badge */
.pick-col-direction {
    width: 85px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Projection Column */
.pick-col-proj {
    width: 55px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    font-feature-settings: 'tnum' 1;
    letter-spacing: -0.02em;
}

/* When model agrees with the pick direction */
.pick-col-proj.proj-agrees {
    color: var(--positive);
}

/* When model disagrees with the pick direction */
.pick-col-proj.proj-disagrees {
    color: var(--negative);
    opacity: 0.9;
}

/* L5 Momentum Fire Badge */
.l5-fire {
    font-size: 0.75rem;
    animation: fire-pulse 2s ease-in-out infinite;
    cursor: help;
}

@keyframes fire-pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.direction-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 20px;
}

.direction-over {
    color: var(--over);
    background: var(--over-bg);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.direction-under {
    color: var(--under);
    background: var(--under-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Time Column */
.pick-col-time {
    width: 75px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pick-col-time.time-live {
    color: var(--negative);
    font-weight: 700;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pick-col-time.time-soon {
    color: var(--warning);
    font-weight: 600;
}

/* Score Column */
.pick-col-score {
    width: 55px;
    text-align: center;
}

.score-value {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: 'tnum' 1;
}

/* Grade Column */
.pick-col-grade {
    width: 50px;
    text-align: center;
}

.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 3px 8px;
    font-size: 0.625rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* A+ Badge - Premium Gold */
.grade-badge.grade-aplus {
    color: #000;
    background: linear-gradient(135deg, var(--grade-aplus) 0%, #FFA500 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    animation: glow-aplus 2.5s ease-in-out infinite;
}

@keyframes glow-aplus {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
    }

    50% {
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
    }
}

.grade-badge.grade-a {
    color: var(--grade-a);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.grade-badge.grade-bplus {
    color: var(--grade-bplus);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.grade-badge.grade-b {
    color: var(--grade-b);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.grade-badge.grade-c,
.grade-badge.grade-d,
.grade-badge.grade-f {
    color: var(--grade-c);
    background: rgba(113, 113, 122, 0.1);
    border: 1px solid rgba(113, 113, 122, 0.2);
}


/* Edge/Z-Score Column */
.pick-col-edge {
    width: 75px;
    text-align: right;
}

.edge-pill,
.zscore-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    font-feature-settings: 'tnum' 1;
}

.edge-elite,
.zscore-elite {
    color: var(--grade-aplus);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.15);
}

.edge-high,
.zscore-high {
    color: var(--positive);
    background: var(--positive-bg);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.edge-medium,
.zscore-medium {
    color: var(--warning);
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.edge-low,
.zscore-low {
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-subtle);
}

/* Position Column */
.pick-col-pos {
    width: 40px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

/* Projected Minutes Column */
.pick-col-mins {
    width: 40px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    font-feature-settings: 'tnum' 1;
}

/* L10 Average Column */
.pick-col-l10 {
    width: 45px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
    font-feature-settings: 'tnum' 1;
}

/* Tier Badges */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 3px 8px;
    font-size: 0.5625rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tier-elite {
    color: #000;
    background: linear-gradient(135deg, var(--grade-aplus), #FFA500);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.tier-great {
    color: var(--positive);
    background: var(--positive-bg);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.tier-good {
    color: var(--info);
    background: var(--info-bg);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tier-meh {
    color: var(--text-muted);
    background: rgba(113, 113, 122, 0.1);
    border: 1px solid var(--border-subtle);
}

/* ============================================
   RESIZE HANDLE
   ============================================ */
.resize-handle {
    width: 6px;
    flex-shrink: 0;
    background: var(--bg-surface);
    cursor: ew-resize;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    border-left: 1px solid var(--border-default);
    border-right: 1px solid var(--border-default);
}

.resize-handle:hover,
.resize-handle.dragging {
    background: var(--info);
}

.resize-grip {
    width: 2px;
    height: 40px;
    background: repeating-linear-gradient(0deg,
            var(--text-muted),
            var(--text-muted) 2px,
            transparent 2px,
            transparent 5px);
    border-radius: 1px;
    opacity: 0.3;
    transition: opacity var(--transition-fast);
}

.resize-handle:hover .resize-grip {
    opacity: 0.6;
}

/* ============================================
   DETAIL PANEL
   ============================================ */
.detail-panel {
    width: var(--panel-width);
    min-width: 280px;
    max-width: 500px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-default);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Placeholder State */
.panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-10);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: 0.35;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.panel-placeholder p {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Panel Content */
.panel-content {
    padding: var(--space-4);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-default);
}

.panel-player-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.panel-matchup {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.panel-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    min-width: 72px;
}

.panel-score-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    font-feature-settings: 'tnum' 1;
}

/* Panel Pick Info Bar */
.panel-pick-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: var(--bg-base);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-subtle);
}

.panel-stat-type {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.panel-line {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-feature-settings: 'tnum' 1;
}

.panel-line.positive {
    color: var(--over);
    background: var(--over-bg);
}

.panel-line.negative {
    color: var(--under);
    background: var(--under-bg);
}

/* Panel Sections */
.panel-section {
    margin-bottom: var(--space-5);
}

.panel-section-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px dashed var(--border-default);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.panel-stat {
    padding: var(--space-3);
    background: var(--bg-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

.panel-stat:hover {
    border-color: var(--border-default);
}

.panel-stat-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.panel-stat-value {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: 'tnum' 1;
}

.panel-stat-value.positive {
    color: var(--positive);
}

.panel-stat-value.negative {
    color: var(--negative);
}

/* Trend Indicator */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.trend-hot {
    color: var(--negative);
}

.trend-cold {
    color: var(--info);
}

/* Models Agreeing */
.models-agreeing {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-base);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.models-dots {
    display: flex;
    gap: 5px;
}

.model-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-default);
    transition: all var(--transition-fast);
}

.model-dot.active {
    background: var(--positive);
    box-shadow: var(--shadow-glow-green);
}

/* Signal Analysis */
.signal-analysis {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border: 1px solid var(--border-subtle);
}

.signal-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.signal-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.signal-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
}

.signal-bullet {
    color: var(--positive);
    font-weight: 700;
}

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

/* Human-readable signal explanations */
.signal-explanation {
    color: var(--text-primary);
    flex: 1;
}

.signal-wr {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.signal-wr.wr-elite {
    color: var(--grade-aplus);
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.signal-wr.wr-high {
    color: var(--positive);
    background: var(--positive-bg);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.signal-wr.wr-moderate {
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
}

/* SHAP Model Explanation */
.shap-explanation {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border: 1px solid var(--border-subtle);
}

.shap-subtitle {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shap-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 4px 0;
}

.shap-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    width: 120px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.shap-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
    min-width: 2px;
}

.shap-value {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    width: 55px;
    text-align: right;
    flex-shrink: 0;
    font-feature-settings: 'tnum' 1;
}

.shap-verdict {
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   GAME HISTORY CHART (PrizePicks Style)
   ============================================ */
.game-history-chart {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
}

.chart-loading,
.chart-empty,
.chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.chart-error {
    color: var(--negative);
}

/* Chart Container */
.pp-chart {
    display: flex;
    flex-direction: column;
}

/* Chart Body - contains bars and line */
.pp-chart-body {
    position: relative;
    padding: 0 48px;
    /* Symmetric padding for centered look */
}

/* Row of bars */
.pp-bars-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    height: 100px;
    overflow: visible;
    margin-bottom: 52px;
}


/* Each bar column (bar area + labels below) */
.pp-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* Bar area - fixed height, bars grow UP from bottom */
.pp-bar-area {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* The actual bar */
.pp-bar {
    width: 70%;
    max-width: 40px;
    min-width: 20px;
    border-radius: 4px 4px 0 0;
    transition: all 0.15s ease;
}

.pp-bar-col:hover .pp-bar {
    filter: brightness(1.2);
    transform: scaleY(1.02);
}

/* Green bar (hit/over) */
.pp-bar.bar-hit {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
}

/* Red bar (miss/under) */
.pp-bar.bar-miss {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
}

/* Value label below bar */
.pp-bar-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
    line-height: 1;
}

/* Opponent code */
.pp-bar-opp {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1;
    text-transform: uppercase;
}

/* Date label */
.pp-bar-date {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1;
}

.pp-bar-col:hover .pp-bar-label,
.pp-bar-col:hover .pp-bar-opp,
.pp-bar-col:hover .pp-bar-date {
    color: var(--text-primary);
}

/* Projection line - positioned relative to bars-row */
.pp-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 5;
}

/* Line value on the right */
.pp-line-val {
    position: absolute;
    right: -44px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Footer with average */
.pp-chart-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.pp-avg {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--info);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    text-align: center;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-5);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.empty-state p {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 260px;
    line-height: 1.5;
}

.btn-secondary {
    margin-top: var(--space-5);
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-strong);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .detail-panel {
        display: none;
    }

    .resize-handle {
        display: none;
    }

    .main-content {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        padding: var(--space-3);
        gap: var(--space-3);
    }

    .sport-tabs {
        order: 3;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .page-nav {
        margin-left: auto;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .filters-left {
        justify-content: flex-start;
    }

    .search-box {
        width: 100%;
    }

    .pick-col-time,
    .pick-col-wr,
    .pick-col-trend,
    .pick-col-models {
        display: none;
    }
}

/* ============================================
   PARLAYS PAGE OVERRIDES
   These ensure parlays.html uses the same system
   ============================================ */
.parlay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: var(--space-5);
    padding: var(--space-5);
}

.parlay-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.parlay-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.parlay-card.unavailable {
    opacity: 0.45;
}

.parlay-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parlay-header .platform-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 0.9375rem;
    background: none;
    border: none;
    padding: 0;
}

.parlay-header .platform-badge.prizepicks {
    color: var(--platform-prizepicks);
}

.parlay-header .platform-badge.underdog {
    color: var(--platform-underdog);
}

.parlay-header .platform-badge.draftkings {
    color: var(--platform-draftkings);
}

.parlay-header .platform-badge.betr {
    color: var(--platform-betr);
}

.parlay-header .platform-badge.fliff {
    color: var(--platform-fliff);
}

.parlay-header .platform-badge.sleeper {
    color: var(--platform-sleeper);
}

.parlay-header .platform-badge.wannaparlay {
    color: var(--platform-wannaparlay);
}

.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.platform-icon.prizepicks {
    background: var(--purple-bg);
}

.platform-icon.underdog {
    background: rgba(249, 115, 22, 0.15);
}

.platform-icon.draftkings {
    background: var(--positive-bg);
}

.hit-rate-badge {
    background: linear-gradient(135deg, var(--positive), var(--positive-muted));
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.parlay-picks {
    padding: var(--space-4);
}

.parlay-pick {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.parlay-pick:last-child {
    border-bottom: none;
}

.pick-number {
    width: 22px;
    height: 22px;
    background: var(--bg-surface-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pick-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pick-info .pick-player {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.pick-info .pick-stat {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pick-signals {
    display: flex;
    gap: 4px;
    align-items: center;
}

.signal-badge {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
}

.signal-badge.grade-a-plus {
    background: linear-gradient(135deg, var(--grade-aplus), #FFA500);
    color: #000;
}

.signal-badge.grade-a {
    background: var(--positive-bg);
    color: var(--positive);
}

.signal-badge.grade-b {
    background: var(--warning-bg);
    color: var(--warning);
}

.signal-badge.zscore {
    background: var(--info-bg);
    color: var(--info);
}

.signal-badge.l5 {
    background: var(--purple-bg);
    color: var(--purple);
}

.parlay-footer {
    padding: var(--space-4);
    background: var(--bg-base);
    border-top: 1px solid var(--border-default);
}

.strategy-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.strategy-value {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.no-parlay-msg {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.summary-bar {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.summary-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.top-picks-section {
    padding: var(--space-5);
}

.top-picks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.top-picks-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-3);
}

.top-pick-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    align-items: center;
}

.rank-badge {
    width: 26px;
    height: 26px;
    background: var(--positive-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--positive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, var(--grade-aplus), #FFA500);
    color: #000;
    border: none;
    box-shadow: var(--shadow-glow-gold);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
    border: none;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #000;
    border: none;
}

/* Odds Value */
.odds-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-feature-settings: 'tnum' 1;
}

/* Zebra striping legacy support */
.pick-card.zebra-odd {
    background: rgba(17, 17, 20, 0.5);
}

.pick-card.zebra-even {
    background: var(--bg-surface);
}


/* ============================================
   PIPELINE CONTROLS (in header)
   ============================================ */
.date-selector {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.date-selector:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 99, 102, 241), 0.25);
}

.pipeline-mode-select {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    cursor: pointer;
    outline: none;
}

.pipeline-mode-select:focus {
    border-color: var(--border-focus);
}

.btn-pipeline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pipeline:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.btn-pipeline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-pipeline.running {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    animation: pulse-pipeline 1.5s ease-in-out infinite;
}

.btn-pipeline-icon {
    font-size: 0.8rem;
}

.btn-pipeline.running .btn-pipeline-icon {
    animation: spin 1s linear infinite;
}

@keyframes pulse-pipeline {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-cancel-pipeline {
    background: var(--negative-bg);
    color: var(--negative);
    border: 1px solid var(--negative-muted);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s;
}

.btn-cancel-pipeline:hover {
    background: var(--negative);
    color: #fff;
}


/* ============================================
   PIPELINE LOG DRAWER (bottom slide-up)
   ============================================ */
.pipeline-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-default);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 350px;
}

.pipeline-drawer.visible {
    transform: translateY(0);
}

.pipeline-drawer.collapsed .drawer-body {
    display: none;
}

.pipeline-drawer.collapsed {
    max-height: 50px;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    user-select: none;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    min-height: 36px;
}

.drawer-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-icon {
    font-size: 1rem;
}

.drawer-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.drawer-status {
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.drawer-status.status-idle {
    background: var(--bg-surface-highlight);
    color: var(--text-muted);
}

.drawer-status.status-running {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.drawer-status.status-completed {
    background: var(--positive-bg);
    color: var(--positive);
}

.drawer-status.status-failed {
    background: var(--negative-bg);
    color: var(--negative);
}

.drawer-status.status-cancelled {
    background: var(--warning-bg);
    color: var(--warning);
}

.drawer-status.status-cancelling {
    background: var(--warning-bg);
    color: var(--warning);
}

.drawer-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
}

.drawer-progress-track {
    height: 3px;
    background: var(--bg-surface-highlight);
    width: 100%;
    overflow: hidden;
}

.drawer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22C55E, #3B82F6);
    transition: width 0.5s ease;
    border-radius: 0 2px 2px 0;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    max-height: 280px;
}

.drawer-log {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Responsive pipeline controls */
@media (max-width: 768px) {
    .btn-pipeline-label {
        display: none;
    }

    .pipeline-mode-select {
        display: none;
    }
}


/* ============================================
   RESULTS SECTION — Previous Day Grading
   ============================================ */

/* Summary Cards Row */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.results-stat-card {
    padding: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.results-stat-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.results-stat-card .stat-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.results-stat-card .stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: var(--space-2);
}

/* Hit rate card color variants */
.results-stat-card.hit-rate-good {
    border-left: 3px solid var(--positive);
    background: linear-gradient(135deg, var(--positive-bg), var(--bg-surface));
}

.results-stat-card.hit-rate-good .stat-value {
    color: var(--positive);
}

.results-stat-card.hit-rate-ok {
    border-left: 3px solid var(--warning);
    background: linear-gradient(135deg, var(--warning-bg), var(--bg-surface));
}

.results-stat-card.hit-rate-ok .stat-value {
    color: var(--warning);
}

.results-stat-card.hit-rate-bad {
    border-left: 3px solid var(--negative);
    background: linear-gradient(135deg, var(--negative-bg), var(--bg-surface));
}

.results-stat-card.hit-rate-bad .stat-value {
    color: var(--negative);
}

/* Date Group Header */
.results-date-group {
    margin-bottom: var(--space-5);
}

.results-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.results-date-header:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-strong);
}

.results-date-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.results-date-label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.results-date-day {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.results-date-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.results-date-stats {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
}

.results-date-hits {
    color: var(--positive);
}

.results-date-misses {
    color: var(--negative);
}

.results-date-rate {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
}

.results-date-rate.rate-good {
    background: var(--positive-bg);
    color: var(--positive);
}

.results-date-rate.rate-ok {
    background: var(--warning-bg);
    color: var(--warning);
}

.results-date-rate.rate-bad {
    background: var(--negative-bg);
    color: var(--negative);
}

.results-date-chevron {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.results-date-group.collapsed .results-date-chevron {
    transform: rotate(-90deg);
}

.results-date-group.collapsed .results-date-picks {
    display: none;
}

/* Grade breakdown pills */
.results-grade-pills {
    display: flex;
    gap: var(--space-1);
    margin-left: var(--space-3);
}

.results-grade-pill {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}

/* Result Pick Row */
.result-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 8px var(--space-4);
    background: var(--bg-surface);
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.result-row:nth-child(odd) {
    background: rgba(17, 17, 20, 0.5);
}

.result-row:hover {
    background: var(--bg-surface-elevated);
}

/* Hit/Miss indicator */
.result-row.hit {
    border-left-color: var(--positive);
}

.result-row.miss {
    border-left-color: var(--negative);
}

.result-hit-icon {
    width: 24px;
    flex-shrink: 0;
    font-size: 0.875rem;
    text-align: center;
}

.result-col-player {
    flex: 2;
    min-width: 140px;
    max-width: 220px;
}

.result-player-name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.result-matchup {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.result-col-stat {
    flex: 1;
    min-width: 80px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-col-call {
    width: 80px;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
}

.result-direction {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.result-direction.over {
    background: var(--over-bg);
    color: var(--over);
}

.result-direction.under {
    background: var(--under-bg);
    color: var(--under);
}

.result-col-line {
    width: 60px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--text-primary);
    text-align: right;
}

.result-col-actual {
    width: 60px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    text-align: right;
}

.result-col-actual.hit {
    color: var(--positive);
}

.result-col-actual.miss {
    color: var(--negative);
}

.result-col-grade {
    width: 32px;
    text-align: center;
}

.result-grade-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.result-col-score {
    width: 50px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8125rem;
    text-align: right;
    color: var(--text-secondary);
}

.result-col-delta {
    width: 70px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.75rem;
    text-align: right;
}

.result-delta.positive {
    color: var(--positive);
}

.result-delta.negative {
    color: var(--negative);
}

/* Results table header */
.results-table-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 8px var(--space-4);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--bg-surface-overlay);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    border: 1px solid var(--border-subtle);
}

/* Performance Breakdown Panels */
.results-breakdowns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.breakdown-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    overflow: hidden;
}

.breakdown-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breakdown-title-icon {
    font-size: 0.875rem;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
}

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

.breakdown-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 48px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.breakdown-bar-track {
    flex: 1;
    height: 16px;
    background: var(--bg-base);
    border-radius: var(--radius-xs);
    overflow: hidden;
    position: relative;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: var(--radius-xs);
    transition: width 0.6s ease-out;
    min-width: 2px;
}

.breakdown-bar-fill.good {
    background: var(--positive);
}

.breakdown-bar-fill.ok {
    background: var(--warning);
}

.breakdown-bar-fill.bad {
    background: var(--negative);
}

.breakdown-stats {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
}

.breakdown-pct {
    font-weight: 700;
    min-width: 42px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.breakdown-pct.good {
    color: var(--positive);
}

.breakdown-pct.ok {
    color: var(--warning);
}

.breakdown-pct.bad {
    color: var(--negative);
}

.direction-split {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.direction-card {
    flex: 1;
    text-align: center;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
}

.direction-card-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-1);
}

.direction-card-label.over {
    color: var(--over);
}

.direction-card-label.under {
    color: var(--under);
}

.direction-card-value {
    font-family: var(--font-mono);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1;
}

.direction-card-detail {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* Responsive */
@media (max-width: 768px) {
    .results-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grade-pills {
        display: none;
    }

    .results-breakdowns {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PARLAYS TAB
   ============================================ */

/* Bankroll Bar */
.parlay-bankroll-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.bankroll-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--purple);
    white-space: nowrap;
}

.bankroll-fields {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
}

.bankroll-field {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bankroll-field label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.bankroll-input {
    width: 65px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: right;
    transition: border-color var(--transition-fast);
}

.bankroll-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 2px var(--purple-bg);
}

.bankroll-apply {
    padding: 5px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--purple);
    background: var(--purple-bg);
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.bankroll-apply:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* Parlay Summary Bar */
.parlay-summary {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.parlay-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
}

.parlay-summary-label {
    color: var(--text-muted);
    font-weight: 500;
}

.parlay-summary-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

/* Parlay Grid */
.parlay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-4);
}

/* Parlay Card */
.parlay-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.parlay-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.parlay-card.unavailable {
    opacity: 0.45;
}

.parlay-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px var(--space-4);
    border-bottom: 1px solid var(--border-default);
}

.parlay-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.875rem;
}

.parlay-platform-icon {
    font-size: 1.125rem;
}

.parlay-platform.prizepicks {
    color: var(--platform-prizepicks);
}

.parlay-platform.underdog {
    color: var(--platform-underdog);
}

.parlay-platform.draftkings_pick6 {
    color: var(--platform-draftkings);
}

.parlay-platform.betr {
    color: var(--platform-betr);
}

.parlay-platform.fliff {
    color: var(--platform-fliff);
}

.parlay-platform.sleeper {
    color: var(--platform-sleeper);
}

.parlay-platform.wannaparlay {
    color: var(--platform-wannaparlay);
}

.parlay-meta {
    display: flex;
    gap: 6px;
    align-items: center;
}

.parlay-ev-badge {
    background: var(--positive-bg);
    color: var(--positive);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 3px 8px;
    border-radius: var(--radius-md);
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.parlay-ev-badge.negative {
    background: var(--negative-bg);
    color: var(--negative);
    border-color: rgba(239, 68, 68, 0.25);
}

.parlay-hit-badge {
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: var(--radius-md);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Strategy bar */
.parlay-strategy-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-default);
}

.parlay-strategy-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.parlay-type-badge {
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parlay-type-badge.flex {
    background: var(--positive-bg);
    color: var(--positive);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.parlay-type-badge.power {
    background: var(--negative-bg);
    color: var(--negative);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Correlation boost callout */
.parlay-corr-boost {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin: 0 var(--space-4) 8px;
    background: var(--purple-bg);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.6875rem;
    color: #c4a5f7;
}

.parlay-corr-boost .boost-val {
    font-weight: 700;
    color: var(--purple);
    font-family: var(--font-mono);
}

/* Pick rows in parlay card */
.parlay-picks-list {
    padding: 8px 0;
}

.parlay-pick-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px var(--space-4);
    gap: 6px 10px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

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

.parlay-pick-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.parlay-pick-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.parlay-pick-info {
    flex: 1 1 140px;
    min-width: 120px;
}

.parlay-pick-player {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parlay-pick-stat {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.parlay-pick-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.parlay-signal {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.parlay-signal.grade {
    background: var(--positive-bg);
    color: var(--positive);
}

.parlay-signal.grade-a-plus {
    background: rgba(255, 215, 0, 0.12);
    color: var(--grade-aplus);
}

.parlay-signal.grade-s {
    background: rgba(239, 68, 68, 0.12);
    color: #ff4444;
}

.parlay-signal.phit {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.parlay-signal.zscore {
    background: var(--purple-bg);
    color: var(--purple);
}

.parlay-signal.l5 {
    background: var(--positive-bg);
    color: var(--positive);
}

.parlay-corr-tag {
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.5625rem;
    font-weight: 600;
    background: var(--purple-bg);
    color: var(--purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Kelly badge */
.parlay-kelly-bar {
    padding: 8px var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-default);
    background: rgba(139, 92, 246, 0.04);
}

.parlay-kelly-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--purple-bg);
    color: #c4a5f7;
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.parlay-kelly-badge .stake-val {
    color: var(--purple);
    font-size: 0.9375rem;
}

.parlay-kelly-detail {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Footer stats */
.parlay-card-footer {
    padding: 10px var(--space-4);
    border-top: 1px solid var(--border-default);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.parlay-card-stat {
    text-align: center;
}

.parlay-card-stat-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parlay-card-stat-value {
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.parlay-card-stat-value.positive {
    color: var(--positive);
}

.parlay-card-stat-value.negative {
    color: var(--negative);
}

.parlay-card-stat-value.neutral {
    color: var(--text-primary);
}

/* No parlays message */
.no-parlay-msg {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .parlay-grid {
        grid-template-columns: 1fr;
    }

    .bankroll-fields {
        flex-wrap: wrap;
    }
}

/* ============================================
   INTERACTIVE RESULTS — Slicers, Filters, Detail
   ============================================ */

/* Results Filter Bar */
.results-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    gap: 8px;
}

.results-filters-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.results-filters-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--negative);
    background: var(--negative-bg);
    color: var(--negative);
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Slicer Chips */
.slicer-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px var(--space-4);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.slicer-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--info-bg);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.slicer-chip:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--info);
}

.slicer-chip.slicer-clear {
    background: rgba(113, 113, 122, 0.12);
    border-color: var(--border-strong);
    color: var(--text-muted);
}

.slicer-chip.slicer-clear:hover {
    background: rgba(113, 113, 122, 0.2);
    color: var(--text-secondary);
}

/* Clickable Slicer Rows & Cards */
.slicer-clickable {
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin: 0 -6px;
}

.slicer-clickable:hover {
    background: rgba(59, 130, 246, 0.06);
}

.slicer-clickable.slicer-active {
    background: rgba(59, 130, 246, 0.12);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

/* Direction cards as slicers */
.direction-card.slicer-clickable {
    margin: 0;
    padding: var(--space-3);
}

.direction-card.slicer-clickable:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.direction-card.slicer-active {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

/* Clickable Result Rows */
.result-row.clickable-result {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.result-row.clickable-result:hover {
    background: rgba(59, 130, 246, 0.06);
    border-left-width: 3px;
}

.result-row.selected {
    background: rgba(59, 130, 246, 0.1) !important;
    border-left-color: var(--info) !important;
    border-left-width: 3px;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

/* Win Rate Trend Chart */
.results-trend-chart {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
}

.trend-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.trend-svg {
    width: 100%;
    height: auto;
    max-height: 80px;
}

.trend-svg circle {
    transition: r 0.15s ease;
}

.trend-svg circle:hover {
    r: 6;
}

/* Detail Panel — Results Mode */
.detail-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-default);
}

.detail-player-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-matchup {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.detail-hit-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 700;
}

.detail-hit-badge.hit {
    background: var(--positive-bg);
    color: var(--positive);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.detail-hit-badge.miss {
    background: var(--negative-bg);
    color: var(--negative);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.detail-stat-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-default);
}

.detail-stat-type {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.detail-direction {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.detail-direction.over {
    background: var(--over-bg);
    color: var(--over);
}

.detail-direction.under {
    background: var(--under-bg);
    color: var(--under);
}

.detail-result-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    margin: 0;
}

.detail-result-item {
    padding: var(--space-3);
    background: var(--bg-surface);
    text-align: center;
}

.detail-result-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-result-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-result-value.positive {
    color: var(--positive);
}

.detail-result-value.negative {
    color: var(--negative);
}

.detail-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border-top: 1px solid var(--border-default);
}

.detail-metric {
    padding: var(--space-3);
    background: var(--bg-surface);
    text-align: center;
}

.detail-metric-label {
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-metric-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-chart-section {
    padding: var(--space-4);
    border-top: 1px solid var(--border-default);
}

.detail-chart-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.game-history-container {
    min-height: 60px;
}

/* ============================================
   EARLY LINES BANNER
   ============================================ */
.early-lines-banner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.early-lines-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.early-lines-text {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.early-lines-text strong {
    color: #f59e0b;
}

.early-lines-platforms {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.early-lines-build {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.early-lines-build:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
}

.early-lines-build:disabled {
    opacity: 0.6;
    cursor: wait;
}