/**
 * Sports Betting Dashboard - Onside Sports Inspired Design
 * Main Stylesheet
 */

/* ============================================
   CSS VARIABLES - Design Tokens
   ============================================ */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-elevated: #2d333b;
    --bg-hover: #30363d;

    /* Text Colors */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-link: #58a6ff;

    /* Accent Colors */
    --accent-green: #238636;
    --accent-green-light: #2ea043;
    --accent-red: #da3633;
    --accent-red-light: #f85149;
    --accent-blue: #58a6ff;
    --accent-blue-dark: #1f6feb;
    --accent-yellow: #d29922;
    --accent-orange: #db6d28;
    --accent-purple: #8957e5;

    /* Status Colors */
    --color-win: #238636;
    --color-loss: #da3633;
    --color-push: #d29922;
    --color-pending: #58a6ff;
    --color-live: #da3633;

    /* Borders */
    --border-color: #30363d;
    --border-light: #21262d;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eaeef2;
    --bg-elevated: #ffffff;
    --bg-hover: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #d1d5db;
    --border-light: #e5e7eb;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.main-content {
    padding: var(--space-lg) 0;
    min-height: calc(100vh - 120px);
}

.page-header {
    margin-bottom: var(--space-xl);
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

/* Grid Layout */
.grid {
    display: grid;
    gap: var(--space-md);
}

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

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    background: rgba(22, 27, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    max-width: 100vw;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(208, 215, 222, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 var(--space-md);
    padding-left: calc(200px + var(--space-md));
    max-width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.navbar-title span {
    color: var(--accent-green);
}

/* Sport Tabs */
.sport-tabs {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sport-tabs::-webkit-scrollbar {
    display: none;
}

.sport-tab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    background: transparent;
    border: none;
}

.sport-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.sport-tab.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.sport-tab-icon {
    width: 20px;
    height: 20px;
}

/* Nav Links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 1;
    min-width: 0;
}

.navbar-links::-webkit-scrollbar {
    display: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent-green);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Mobile Menu */
.navbar-mobile-toggle {
    display: none;
    padding: var(--space-sm);
    background: transparent;
    border: none;
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .sport-tabs {
        display: none;
    }

    .navbar-mobile-toggle {
        display: flex;
    }
}

@media (max-width: 900px) {
    .navbar-container {
        padding-left: var(--space-md);
    }

    /* Nav links and actions hidden on smaller screens - replaced by dropdown menu */
    .navbar-links,
    .navbar-actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 28px;
    }
}

/* ============================================
   LIVE SCORE TICKER
   ============================================ */
.live-ticker {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: 40px;
}

.ticker-container {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    white-space: nowrap;
    font-size: var(--text-sm);
}

.ticker-teams {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.ticker-score {
    font-weight: 700;
    font-family: var(--font-mono);
}

.ticker-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: var(--color-live);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    animation: pulse 2s infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

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

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: var(--space-md);
}

.card-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

/* ============================================
   GAME CARD
   ============================================ */
.game-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.game-card:hover {
    border-color: var(--accent-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.game-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.game-time {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.game-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.game-status.live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.game-status.final {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.game-status.scheduled {
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: var(--text-xs);
}

.game-card-body {
    padding: var(--space-md);
}

/* Teams Section */
.game-teams {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.game-team {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.team-info {
    flex: 1;
}

.team-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.team-rank {
    font-size: var(--text-xs);
    color: var(--accent-yellow);
    font-weight: 700;
}

.team-record {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.team-score {
    font-size: var(--text-2xl);
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    min-width: 48px;
    text-align: right;
}

.team-score.winner {
    color: var(--accent-green);
}

/* Live Score Updates */
.team-score.score-changed {
    animation: score-flash 1.5s ease;
}

@keyframes score-flash {
    0% {
        background-color: var(--accent-green);
        color: white;
        transform: scale(1.1);
        border-radius: var(--radius-sm);
    }
    100% {
        background-color: transparent;
        color: var(--text-primary);
        transform: scale(1);
    }
}

/* Game Status Styles */
.game-status.live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.game-status.final {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.game-status.scheduled {
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: var(--text-xs);
}

/* Odds Section */
.game-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.odds-item {
    text-align: center;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.odds-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.odds-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

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

.odds-movement {
    font-size: var(--text-xs);
    margin-left: 4px;
}

.odds-movement.up {
    color: var(--accent-green);
}

.odds-movement.down {
    color: var(--accent-red);
}

/* Best Bet Badge */
.best-bet-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Game Card Footer */
.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.game-venue {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.game-broadcast {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-green);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-green-light);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: var(--accent-red-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Dropdown option styling for dark theme */
select option {
    background: var(--card-bg, #1a1a2e);
    color: var(--text-primary, #e0e0e0);
}

/* ============================================
   STATS & METRICS
   ============================================ */
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

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

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

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-fill.green { background: var(--accent-green); }
.progress-fill.red { background: var(--accent-red); }
.progress-fill.yellow { background: var(--accent-yellow); }
.progress-fill.blue { background: var(--accent-blue); }

/* Confidence Meter */
.confidence-meter {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.confidence-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.confidence-value {
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-mono);
    min-width: 40px;
    text-align: right;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-green {
    background: rgba(35, 134, 54, 0.2);
    color: var(--accent-green);
}

.badge-red {
    background: rgba(218, 54, 51, 0.2);
    color: var(--accent-red);
}

.badge-yellow {
    background: rgba(210, 153, 34, 0.2);
    color: var(--accent-yellow);
}

.badge-blue {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-blue);
}

.badge-purple {
    background: rgba(137, 87, 229, 0.2);
    color: var(--accent-purple);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-hover) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   ALERTS & TOASTS
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.alert-success {
    background: rgba(35, 134, 54, 0.15);
    border: 1px solid var(--accent-green);
    color: var(--accent-green-light);
}

.alert-error {
    background: rgba(218, 54, 51, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red-light);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.15);
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
}

.alert-info {
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

/* Toast Notifications - bottom-left snackbar style (avoids bet slip overlap) */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-sm);
    max-width: 380px;
    pointer-events: none;
}

.toast {
    position: relative;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
}

.toast .toast-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.toast .toast-message {
    flex: 1;
}

.toast .toast-action {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    margin-left: var(--space-sm);
}

.toast .toast-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: toast-progress 4s linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
}

/* ============================================
   BET SLIP
   ============================================ */
.bet-slip {
    position: fixed;
    right: 0;
    top: 64px;
    width: 360px;
    height: calc(100vh - 64px);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-modal);
}

.bet-slip.open {
    transform: translateX(0);
}

.bet-slip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.bet-slip-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.bet-slip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-green);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.bet-slip-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.bet-slip-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

.bet-slip-pick {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.bet-slip-game {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.bet-slip-odds {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-weight: 600;
}

.bet-slip-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.bet-slip-totals {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
}

.bet-slip-payout {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--accent-green);
}

/* Star Selector in Bet Slip */
.bet-slip-star-selector {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    padding: var(--space-sm) 0;
}

.bet-slip-star-selector .star-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bet-slip-star-selector .star-btn:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.bet-slip-star-selector .star-btn.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: black;
}

.bet-slip-dollar-equiv {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--accent-green);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-md);
}

/* Bet Slip Calculations */
.bet-slip-calcs {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: var(--space-md);
}

.bet-slip-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.bet-slip-calc-row .label {
    color: var(--text-secondary);
}

.bet-slip-calc-row .value {
    font-weight: 600;
    font-family: var(--font-mono);
}

.bet-slip-calc-row .value.positive {
    color: var(--accent-green);
}

/* Clickable Odds Styling */
.clickable-odds {
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.clickable-odds:hover {
    background: var(--bg-hover);
    outline: 2px solid var(--accent-green);
    outline-offset: -2px;
}

.clickable-odds.selected {
    background: rgba(35, 134, 54, 0.2);
    outline: 2px solid var(--accent-green);
    outline-offset: -2px;
}

/* ============================================
   ADVANCED BET SLIP STYLES
   ============================================ */

/* Bet Slip Sections */
.bet-slip-section {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.bet-slip-section:last-child {
    border-bottom: none;
}

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

.section-title {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Picks Pool */
.picks-pool {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-height: 180px;
    overflow-y: auto;
}

.pick-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: grab;
    transition: all var(--transition-fast);
}

.pick-item:hover {
    border-color: var(--accent-blue);
    background: var(--bg-hover);
}

.pick-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    cursor: grabbing;
}

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

.pick-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.pick-name {
    font-weight: 600;
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pick-odds {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-weight: 600;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.pick-game {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pick-badges {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.pick-badge {
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.pick-badge.single {
    background: var(--accent-green);
    color: white;
}

.pick-badge.parlay {
    background: var(--accent-purple);
    color: white;
}

.pick-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.pick-remove:hover {
    color: var(--accent-red);
    background: rgba(248, 81, 73, 0.1);
}

/* Preset Buttons */
.presets-section {
    padding: var(--space-sm) var(--space-md) !important;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.preset-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preset-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

/* Bet Groups */
.bet-group {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.bet-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    gap: var(--space-sm);
}

.group-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.group-title {
    font-weight: 600;
    font-size: var(--text-sm);
}

.group-count {
    color: var(--text-secondary);
    font-size: var(--text-xs);
}

.group-odds {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: var(--text-xs);
    font-weight: 600;
}

.group-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.bet-group-body {
    padding: var(--space-sm);
}

/* Star Selector Mini */
.star-selector-mini {
    display: flex;
    gap: 2px;
}

.star-btn-mini {
    width: 28px;
    height: 24px;
    padding: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.star-btn-mini:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.star-btn-mini.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: black;
}

/* Singles Toggle */
.single-pick-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.single-pick-toggle:hover {
    background: var(--bg-hover);
}

.single-pick-toggle input[type="checkbox"] {
    accent-color: var(--accent-green);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.toggle-pick {
    flex: 1;
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-odds {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* Parlay Drop Zone */
.parlay-drop-zone {
    min-height: 50px;
    border: 2px dashed transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.parlay-drop-zone.drop-target {
    border-color: var(--border-color);
    background: rgba(88, 166, 255, 0.05);
}

.parlay-drop-zone.drop-hover {
    border-color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.15);
}

.drop-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-style: italic;
}

.add-leg-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-xs);
    padding: var(--space-xs) 0;
    font-style: italic;
}

/* Parlay Legs */
.parlay-leg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-sm);
    margin-bottom: var(--space-xs);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.parlay-leg:last-child {
    margin-bottom: 0;
}

.leg-pick {
    font-size: var(--text-sm);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leg-odds {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: var(--text-xs);
    font-weight: 600;
    margin: 0 var(--space-sm);
}

.leg-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.leg-remove:hover {
    color: var(--accent-red);
}

/* Bet Summary */
.bet-summary {
    margin-bottom: var(--space-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
}

.summary-row.total {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row .text-green {
    color: var(--accent-green);
}

/* ============================================
   SIMPLIFIED BET SLIP (New Design)
   ============================================ */

/* Empty state */
.slip-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.slip-empty-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    margin: var(--space-md) 0 var(--space-xs);
}

.slip-empty-hint {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Quick actions */
.slip-actions {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.slip-action-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slip-action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.slip-action-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.slip-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slip-clear-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slip-clear-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Picks list */
.slip-picks {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    /* Let bet-slip-body handle scrolling - no max-height here */
}

/* Individual pick card */
.slip-pick {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

/* Only animate when a new pick is added, not on every re-render */
.slip-pick.entering {
    animation: pick-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slip-pick.removing {
    animation: pick-exit 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes pick-enter {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pick-exit {
    to {
        opacity: 0;
        transform: translateX(40px);
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

.slip-pick.active {
    border-color: var(--accent-green);
    background: rgba(35, 134, 54, 0.05);
}

.slip-pick-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
}

.slip-pick-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.slip-pick-name {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.slip-pick-odds {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--accent-green);
}

.slip-pick-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.slip-pick-remove:hover {
    color: var(--accent-red);
    background: rgba(248, 81, 73, 0.1);
}

.slip-pick-game {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-sm);
}

/* Pick options (single/parlay toggles) */
.slip-pick-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

.slip-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    cursor: pointer;
}

.slip-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slip-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-green);
    cursor: pointer;
}

.slip-option-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.slip-option-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: auto;
}

/* Unit Stepper (+/- compact control) */
.slip-stepper {
    display: flex;
    align-items: center;
    margin-left: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.slip-stepper-btn {
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slip-stepper-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.slip-stepper-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.slip-stepper-value {
    min-width: 34px;
    text-align: center;
    font-weight: 700;
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    color: var(--accent-yellow);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 2px 0;
    line-height: 24px;
}

.slip-stepper-unit {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 1px;
}

/* Inline payout display */
.slip-pick-payout {
    font-size: var(--text-xs);
    color: var(--accent-green);
    font-family: var(--font-mono);
    margin-top: 2px;
    opacity: 0.85;
}

/* Legacy unit buttons (kept for backwards compat) */
.slip-units {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.slip-unit-btn {
    width: 32px;
    height: 26px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slip-unit-btn:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.slip-unit-btn.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--bg-primary);
}

/* Parlay section */
.slip-parlay {
    margin: var(--space-sm);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid var(--accent-purple);
    border-radius: var(--radius-lg);
}

.slip-parlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.slip-parlay-title {
    font-weight: 600;
    color: var(--accent-purple);
}

.slip-parlay-odds {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--accent-green);
}

.slip-parlay-units {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Round Robin section */
.slip-round-robin {
    margin: var(--space-sm);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(234, 88, 12, 0.08));
    border: 1px solid var(--accent-orange, #d97706);
    border-radius: var(--radius-lg);
}

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

.rr-title {
    font-weight: 600;
    color: var(--accent-orange, #d97706);
}

.rr-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.rr-clear-btn:hover {
    color: var(--accent-red);
}

.rr-sizes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.rr-size-chip {
    padding: 4px 10px;
    border-radius: var(--radius-full, 20px);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rr-size-chip:hover {
    border-color: var(--accent-orange, #d97706);
    color: var(--accent-orange, #d97706);
}

.rr-size-chip.active {
    background: var(--accent-orange, #d97706);
    border-color: var(--accent-orange, #d97706);
    color: #fff;
}

.rr-chip-count {
    opacity: 0.8;
    font-weight: 400;
}

.rr-size-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.rr-size-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.rr-size-risk {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Summary section */
.slip-summary {
    padding: var(--space-sm) 0;
}

.slip-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
}

.slip-summary-label {
    color: var(--text-secondary);
}

.slip-summary-value {
    font-weight: 500;
}

.slip-summary-total {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

.slip-total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
}

.slip-total-row.win {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--accent-green);
}

.slip-summary-empty {
    text-align: center;
    padding: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Place bet button */
.slip-place-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--accent-green);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slip-place-btn:hover:not(:disabled) {
    background: var(--accent-green-light);
    transform: translateY(-1px);
}

.slip-place-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.slip-place-btn.confirming {
    background: var(--accent-orange, #db6d28);
    animation: pulse-confirm 1.2s ease-in-out infinite;
}

@keyframes pulse-confirm {
    0%, 100% { box-shadow: 0 0 0 0 rgba(219, 109, 40, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(219, 109, 40, 0); }
}

/* ============================================
   Previous Picks Panel (inside bet slip)
   ============================================ */

.prev-picks-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prev-picks-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.prev-picks-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.prev-picks-back:hover {
    background: var(--bg-hover);
}

.prev-picks-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
}

.prev-picks-filters {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.prev-picks-filters select {
    flex: 1;
    padding: 6px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-xs);
    cursor: pointer;
}

.prev-picks-filters select:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.prev-picks-list {
    flex: 1;
    overflow-y: auto;
}

.prev-picks-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.prev-picks-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.prev-pick-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.prev-pick-row:hover {
    background: var(--bg-hover);
}

.prev-pick-row.selected {
    background: rgba(35, 134, 54, 0.08);
    border-left: 3px solid var(--accent-green);
    padding-left: calc(var(--space-md) - 3px);
}

.prev-pick-check {
    flex-shrink: 0;
}

.prev-pick-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.prev-pick-checkbox.checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.prev-pick-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.prev-pick-info {
    flex: 1;
    min-width: 0;
}

.prev-pick-game {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prev-pick-details {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 2px;
}

.prev-pick-display {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.prev-pick-odds {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.prev-pick-legs {
    margin-top: 4px;
}

.prev-pick-leg {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    padding: 1px 0;
}

.prev-pick-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.prev-pick-sport {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prev-pick-result {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prev-pick-result-won { color: var(--accent-green); }
.prev-pick-result-lost { color: var(--accent-red); }
.prev-pick-result-push { color: var(--accent-orange, #d29922); }
.prev-pick-result-pending { color: var(--accent-blue); }

.prev-pick-row.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.prev-pick-row.disabled .prev-pick-game {
    text-decoration: line-through;
    text-decoration-color: var(--text-muted);
}

.prev-pick-lock {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.prev-pick-started {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.prev-picks-footer {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Button States */
.btn-xs {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
}

.text-red {
    color: var(--accent-red) !important;
}

.text-green {
    color: var(--accent-green) !important;
}

/* Make existing odds-item clickable */
.odds-item {
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* Odds Refresh Styles */
.odds-refresh-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.odds-refresh-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.odds-refresh-indicator .live-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

#refresh-odds-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

#refresh-odds-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-green);
}

#refresh-odds-btn.refreshing svg {
    animation: spin 1s linear infinite;
}

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

/* Odds Update Flash */
.game-card.odds-updated {
    animation: odds-flash 0.5s ease-out;
}

@keyframes odds-flash {
    0% { box-shadow: 0 0 0 2px var(--accent-green); }
    100% { box-shadow: none; }
}

.odds-item:hover {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.odds-item.selected {
    background: rgba(35, 134, 54, 0.2);
    border-radius: var(--radius-sm);
    outline: 2px solid var(--accent-green);
    outline-offset: -2px;
}

/* ============================================
   DATE PICKER
   ============================================ */
.date-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.date-nav-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.date-display {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hide-mobile {
        display: none !important;
    }

    .game-card {
        margin-bottom: var(--space-md);
    }

    .bet-slip {
        width: 100%;
    }

    .toast-container {
        left: var(--space-sm);
        right: var(--space-sm);
        bottom: var(--space-sm);
        max-width: none;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-blue { color: var(--accent-blue); }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   PUBLIC BETTING SECTION
   ============================================ */
.public-betting-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    border: 1px solid var(--border-color);
}

.public-betting-section .section-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.public-betting-section .bet-count {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: var(--text-xs);
}

.public-betting-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.pb-header-row,
.pb-data-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: var(--space-sm);
    align-items: center;
}

.pb-header-row {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-xs);
}

.pb-label-col {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

.pb-team-col {
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.pb-value-col {
    text-align: center;
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.pb-value-col.pb-winner {
    background: rgba(35, 134, 54, 0.2);
    color: var(--accent-green);
    font-weight: 600;
}

.pb-ou-label {
    font-weight: 600;
    margin-right: var(--space-xs);
}

.pb-no-data {
    text-align: center;
    padding: var(--space-md);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.pb-no-data p {
    margin: 0;
}

/* ============================================
   FIRST HALF ODDS SECTION
   ============================================ */
.odds-section-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: var(--space-md) 0 var(--space-sm) 0;
    padding-top: var(--space-sm);
}

.odds-section-label.half-label {
    color: var(--accent-yellow);
    border-top: 1px dashed var(--border-color);
    padding-top: var(--space-md);
}

.odds-grid-row.half-row {
    opacity: 0.9;
}

.odds-grid-row.half-row .odds-cell {
    border-color: var(--accent-yellow);
    border-style: dashed;
}

.odds-grid-row.half-row .odds-cell:hover {
    background: rgba(210, 153, 34, 0.15);
    border-color: var(--accent-yellow);
}

/* ============================================
   SHARP MONEY INDICATOR
   ============================================ */
.sharp-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--accent-yellow);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(210, 153, 34, 0.15);
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
}

.sharp-indicator::before {
    content: "💰";
}

/* ============================================
   BETTING STATS ON GAME CARDS
   ============================================ */
.betting-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-color);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.betting-stats .sharp-indicator {
    margin-top: 0;
}

/* Odds unavailable message */
.odds-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

/* ============================================
   APP LAYOUT & SIDEBAR
   ============================================ */
.app-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    overflow-x: clip;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: var(--space-md) 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    flex-shrink: 0;
}

/* Sidebar search bar */
.sidebar-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 var(--space-sm) var(--space-sm);
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.sidebar-search:hover {
    border-color: var(--text-secondary);
    background: var(--bg-hover);
}

.sidebar-search-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.sidebar-search-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-section {
    padding: 0 var(--space-sm);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    margin-bottom: 2px;
}

.sidebar-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.sidebar-item.active {
    color: var(--text-primary);
    background: var(--accent-green);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sidebar Dropdown Styles */
.sidebar-dropdown {
    margin-bottom: 2px;
}

.sidebar-dropdown-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.sidebar-dropdown-header .sidebar-item {
    flex: 1;
    margin-bottom: 0;
}

.sidebar-dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    position: absolute;
    right: 12px;
    transition: transform var(--transition-fast);
}

.sidebar-dropdown.open .sidebar-dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin: 0 var(--space-xs);
}

.sidebar-dropdown.open .sidebar-dropdown-content {
    max-height: 400px;
}

.sidebar-sub-item {
    padding-left: calc(var(--space-md) + 28px) !important;
    font-size: var(--text-xs);
}

.sidebar-sub-item:first-child {
    margin-top: var(--space-xs);
}

.sidebar-sub-item:last-child {
    margin-bottom: var(--space-xs);
}

/* Main Content Area */
.main-content {
    flex: 1;
    min-width: 0;
    padding: var(--space-lg);
    overflow-x: hidden;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Bet Slip Toggle FAB */
.bet-slip-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 500;
}

.bet-slip-toggle:hover {
    background: linear-gradient(135deg, #059669, var(--accent-green));
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.bet-slip-toggle svg {
    width: 28px;
    height: 28px;
}

/* Pulse animation when there are picks */
.bet-slip-toggle:has(+ .bet-slip .slip-pick),
.bet-slip-toggle[data-has-picks="true"] {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(16, 185, 129, 0.7);
    }
}

.bet-slip-toggle-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--accent-red);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    animation: bounce-in 0.3s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.bet-slip-toggle-count:empty,
.bet-slip-toggle-count[data-count="0"] {
    display: none;
}

/* Hide FAB when bet slip is open */
.bet-slip.open ~ .bet-slip-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

/* Close tab on left edge of bet slip */
.bet-slip-close-tab {
    position: absolute;
    left: -36px;
    bottom: 24px;
    width: 36px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 1;
}

.bet-slip.open .bet-slip-close-tab {
    display: flex;
}

.bet-slip-close-tab:hover {
    width: 42px;
    left: -42px;
    background: linear-gradient(135deg, #059669, var(--accent-green));
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sidebar-overlay.open {
    opacity: 1;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -200px;
        top: 64px;
        z-index: 100;
        transition: left var(--transition-base);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.open {
        pointer-events: auto;
    }

    .main-content {
        padding: var(--space-md);
    }

    .bet-slip-toggle {
        bottom: 16px;
        right: 16px;
    }
}

/* ============================================
   MOBILE TOUCH TARGET OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
    /* Ensure minimum 44px touch targets for interactive elements */
    .btn,
    .btn-sm {
        min-height: 44px;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .sidebar-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .odds-item {
        min-height: 44px;
        padding: var(--space-sm) var(--space-md);
    }

    .sport-tab {
        min-height: 40px;
        padding: var(--space-sm) var(--space-md);
    }

    /* Improve tap area for dropdown triggers */
    .sidebar-dropdown-header {
        min-height: 44px;
    }

    /* Improve spacing for mobile readability */
    .game-card {
        margin-bottom: var(--space-md);
    }

    /* Ensure form inputs are comfortable to tap */
    input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* ============================================
   LIVE SCORE DISPLAYS
   ============================================ */

/* My Bets Page - Live Score Container */
.bet-live-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
    min-width: 120px;
}

/* Score Display */
.score-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.score-display .away-score,
.score-display .home-score {
    min-width: 28px;
    text-align: center;
}

.score-separator {
    color: var(--text-muted);
    font-weight: 400;
}

/* Score Change Animation */
.score-changed {
    animation: scoreFlash 0.6s ease-out;
}

@keyframes scoreFlash {
    0% {
        background: var(--accent-green);
        color: var(--text-primary);
        transform: scale(1.1);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Game Status */
.game-status {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-status.live {
    color: var(--accent-green);
    font-weight: 600;
}

.game-status.final {
    color: var(--text-muted);
}

.game-status.halftime {
    color: var(--accent-yellow);
}

/* Line Difference Display */
.line-diff {
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-xs);
    text-align: center;
}

.line-diff.covering {
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.1);
}

.line-diff.not-covering {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.line-diff.push {
    color: var(--accent-yellow);
    background: rgba(234, 179, 8, 0.1);
}

/* PMill Pick Card - Live Score Mini Display */
.pick-live-score {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.pick-live-score .score-display {
    font-size: var(--text-lg);
}

.pick-live-score .game-status-mini {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
}

.pick-live-score .game-status-mini.live {
    color: var(--accent-green);
    font-weight: 600;
}

.pick-live-score .line-diff-mini {
    font-size: var(--text-sm);
    font-weight: 600;
}

.pick-live-score .line-diff-mini.covering {
    color: var(--accent-green);
}

.pick-live-score .line-diff-mini.not-covering {
    color: var(--accent-red);
}

.pick-live-score .line-diff-mini.push {
    color: var(--accent-yellow);
}

/* Bet Card Layout Adjustment for Live Scores */
.bet-item.pending {
    position: relative;
}

.bet-item.pending .bet-live-score {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile adjustments for live scores */
@media (max-width: 768px) {
    .bet-item.pending .bet-live-score {
        position: static;
        transform: none;
        margin-top: var(--space-md);
        width: 100%;
    }

    .pick-live-score {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .score-display {
        font-size: var(--text-lg);
    }
}

/* ============================================
   PULSE-DOT ANIMATION (used by .live-dot everywhere)
   ============================================ */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Global .live-dot */
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green-light);
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ============================================
   LIVE GAME CARD ACCENT
   ============================================ */
.game-card[data-game-status="live"] {
    border-left: 3px solid var(--accent-green);
    box-shadow: 0 0 8px rgba(35, 134, 54, 0.15);
}

/* ============================================
   UNIFIED LIVE TRACKER STYLES
   Used by PMill picks, My Bets, and Odds pages
   ============================================ */

/* Base live tracker row */
.live-tracker-row {
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(35, 134, 54, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-green);
}

.live-tracker-row.active {
    display: flex;
}

/* Dynamic cover states during live games */
.live-tracker-row.covering {
    border-left-color: var(--accent-green);
    background: rgba(35, 134, 54, 0.08);
}

.live-tracker-row.not-covering {
    border-left-color: var(--accent-red);
    background: rgba(218, 54, 51, 0.08);
}

.live-tracker-row.push {
    border-left-color: var(--text-muted);
    background: rgba(107, 114, 128, 0.08);
}

/* Final game states */
.live-tracker-row.final {
    background: rgba(107, 114, 128, 0.08);
    border-left-color: var(--text-muted);
}

.live-tracker-row.final.result-won {
    background: rgba(35, 134, 54, 0.1);
    border-left-color: var(--accent-green);
}

.live-tracker-row.final.result-lost {
    background: rgba(218, 54, 51, 0.1);
    border-left-color: var(--accent-red);
}

.live-tracker-row.final.result-push {
    background: rgba(107, 114, 128, 0.1);
    border-left-color: var(--text-muted);
}

/* Score section layout */
.live-score-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Inline score display */
.live-score-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-weight: 600;
}

.live-score-inline .away-abbrev,
.live-score-inline .home-abbrev {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.live-score-inline .away-score,
.live-score-inline .home-score {
    min-width: 24px;
    text-align: center;
    font-size: 0.9rem;
}

.live-score-inline .score-changed {
    color: var(--accent-yellow);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Pulsing live dot (small, inside tracker) */
.live-indicator-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
    margin-right: 4px;
}

.live-tracker-row.final .live-indicator-dot {
    background: var(--text-muted);
    animation: none;
}

.live-tracker-row.final.result-won .live-indicator-dot {
    background: var(--accent-green);
}

.live-tracker-row.final.result-lost .live-indicator-dot {
    background: var(--accent-red);
}

/* Game clock pill */
.live-tracker-row .game-clock {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

/* Cover calculation display */
.live-cover-calc {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    width: 100%;
}

.live-cover-calc .cover-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.live-cover-calc .cover-status.covering {
    color: var(--accent-green);
}

.live-cover-calc .cover-status.not-covering {
    color: var(--accent-red);
}

.live-cover-calc .cover-status.push {
    color: var(--text-muted);
}

/* Line tracking */
.live-line-inline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.live-line-inline .current-line {
    font-weight: 600;
}

.live-line-inline .current-line.moved-good {
    color: var(--accent-green);
}

.live-line-inline .current-line.moved-bad {
    color: var(--accent-red);
}

/* Parlay leg live tracker */
.leg-live-tracker {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 11px;
}

.live-indicator-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.leg-score {
    font-family: var(--font-mono);
    font-weight: 600;
}

.leg-cover-status {
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
}

.leg-cover-status.covering { color: var(--accent-green); }
.leg-cover-status.not-covering { color: var(--accent-red); }

/* Grading flash animation */
@keyframes grading-flash {
    0% { box-shadow: 0 0 0 0 rgba(35, 134, 54, 0.7); }
    25% { box-shadow: 0 0 20px 10px rgba(35, 134, 54, 0.5); }
    50% { box-shadow: 0 0 30px 15px rgba(35, 134, 54, 0.4); }
    75% { box-shadow: 0 0 20px 10px rgba(35, 134, 54, 0.3); }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.pick-card.grading-flash {
    animation: grading-flash 3s ease-out;
}

@keyframes stat-update-pulse {
    0% { transform: scale(1); color: inherit; }
    25% { transform: scale(1.15); color: var(--accent-yellow); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stat-updated {
    animation: stat-update-pulse 2s ease-out;
}

/* ============================================
   LIVE TRACKER RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .live-tracker-row {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }

    .live-score-inline .away-score,
    .live-score-inline .home-score {
        font-size: 0.8rem;
        min-width: 20px;
    }

    .live-cover-calc {
        font-size: 0.75rem;
        padding: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .live-score-section {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .live-cover-calc {
        flex-direction: column;
        align-items: flex-start;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .team-logo {
        width: 36px;
        height: 36px;
    }

    .team-score {
        font-size: var(--text-xl);
        min-width: 36px;
    }
}
