/* ===== BETLINE SPORTS — Premium Sports Tech Theme ===== */
:root {
    --bg-primary: #060a13;
    --bg-secondary: #0c1220;
    --bg-card: #111a2e;
    --bg-card-hover: #172038;
    --border: #1e2d4a;
    --border-hover: #2a4070;
    --text-primary: #e8ecf4;
    --text-secondary: #8b9cc0;
    --text-muted: #4a5f8a;
    --accent-green: #0ea5e9;
    --accent-green-dim: rgba(14, 165, 233, 0.15);
    --accent-gold: #f59e0b;
    --accent-gold-dim: rgba(245, 158, 11, 0.15);
    --accent-blue: #3b82f6;
    --accent-blue-dim: rgba(59, 130, 246, 0.15);
    --accent-red: #ef4444;
    --accent-red-dim: rgba(239, 68, 68, 0.15);
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-cyan-dim: rgba(6, 182, 212, 0.15);
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0891b2 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-brand: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    --font-main: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon { font-size: 1.5rem; }

.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tag {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 4px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.status-dot.offline { background: var(--accent-red); }

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

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.page { display: none; }
.page.active { display: block; }

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.date-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.date-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.date-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-green);
}

.date-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* ===== FIXTURES LIST ===== */
.fixtures-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.league-group {
    margin-bottom: 16px;
}

.league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.league-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

.league-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.fixture-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.fixture-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-green);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team.away { justify-content: flex-end; }

.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.team-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.fixture-vs {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.fixture-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    text-align: right;
    min-width: 50px;
}

.fixture-live {
    color: var(--accent-red);
    font-weight: 600;
    animation: pulse 1s infinite;
}

/* ===== ANALYSIS PAGE ===== */
.analysis-header {
    margin-bottom: 24px;
}

.back-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.back-btn:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.match-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.banner-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.banner-team img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.banner-team-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.banner-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.banner-vs-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
}

.banner-league {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ===== AGENTS GRID ===== */
.agents-section {
    margin-bottom: 32px;
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.section-badge {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    background: var(--accent-green-dim);
    color: var(--accent-green);
    padding: 2px 8px;
    border-radius: 4px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 12px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: all 0.3s;
}

.agent-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-emoji { font-size: 1.3rem; }

.agent-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.agent-prediction {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.pred-1 { background: var(--accent-blue-dim); color: var(--accent-blue); }
.pred-X { background: var(--accent-gold-dim); color: var(--accent-gold); }
.pred-2 { background: var(--accent-purple); background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.agent-probs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.prob-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.prob-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.prob-fill.home { background: var(--accent-blue); }
.prob-fill.draw { background: var(--accent-gold); }
.prob-fill.away { background: var(--accent-purple); }

.agent-prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 10px;
}

.agent-reasoning {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid var(--border);
}

.agent-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.conf-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.conf-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 2px;
    transition: width 1s ease;
}

/* ===== CONSENSUS PANEL ===== */
.consensus-panel {
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.08);
}

.consensus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.consensus-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consensus-agreement {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 4px 12px;
    border-radius: 4px;
}

.agreement-high { background: var(--accent-green-dim); color: var(--accent-green); }
.agreement-medium { background: var(--accent-gold-dim); color: var(--accent-gold); }
.agreement-low { background: var(--accent-red-dim); color: var(--accent-red); }

.consensus-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.consensus-prob {
    text-align: center;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.consensus-prob.highlight {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.prob-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 6px;
}

.prob-value {
    font-size: 1.8rem;
    font-weight: 800;
}

.prob-value.home { color: var(--accent-blue); }
.prob-value.draw { color: var(--accent-gold); }
.prob-value.away { color: #8b5cf6; }

/* ===== TIPS SECTION ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.tip-card.tier-ALTA::before { background: var(--gradient-primary); }
.tip-card.tier-MÉDIA::before { background: var(--gradient-gold); }
.tip-card.tier-BAIXA::before { background: var(--accent-red); }

.tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tip-type {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-tier {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tip-pick {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tip-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tip-conf-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.tip-conf-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

.tip-reasoning {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tip-stars {
    color: var(--accent-gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* ===== LOADING ===== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    color: var(--text-secondary);
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.agents-thinking {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.agent-thinking-badge {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    animation: thinkPulse 1.5s ease infinite;
}

@keyframes thinkPulse {
    0%, 100% { border-color: var(--border); }
    50% { border-color: var(--accent-green); box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
}

.agent-thinking-badge:nth-child(2) { animation-delay: 0.2s; }
.agent-thinking-badge:nth-child(3) { animation-delay: 0.4s; }
.agent-thinking-badge:nth-child(4) { animation-delay: 0.6s; }
.agent-thinking-badge:nth-child(5) { animation-delay: 0.8s; }
.agent-thinking-badge:nth-child(6) { animation-delay: 1.0s; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content { padding: 16px; }
    .agents-grid { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }
    .consensus-main { grid-template-columns: 1fr; }
    .fixture-card { grid-template-columns: 1fr auto 1fr; }
    .fixture-time { display: none; }
    .match-banner { flex-direction: column; gap: 16px; }
    .category-grid { grid-template-columns: 1fr; }
}

/* ===== GRAPH VISUALIZATION ===== */
.graph-container {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #0d1117;
    position: relative;
}

.graph-container canvas {
    display: block;
    width: 100%;
}

/* ===== SIMULATION PANEL ===== */
.simulation-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.sim-main-votes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.sim-vote {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    height: 36px;
    background: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
}

.sim-vote-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 6px;
    opacity: 0.25;
    transition: width 1.5s ease;
}

.sim-vote-label {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding-left: 12px;
    color: var(--text-primary);
    min-width: 80px;
}

.sim-vote-pct {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--text-primary);
    margin-left: auto;
    padding-right: 12px;
}

.sim-extra {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ===== CATEGORY BREAKDOWN ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cat-count {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.cat-votes {
    display: flex;
    gap: 8px;
}

.cat-vote {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    padding: 4px;
    background: var(--bg-primary);
    border-radius: 4px;
    border: 1px solid transparent;
}

.cat-vote.cat-winner {
    border-color: var(--accent-green);
    color: var(--accent-green);
    font-weight: 700;
    background: var(--accent-green-dim);
}

/* ===== AGENT OPINIONS STREAM ===== */
.agent-opinions {
    margin-top: 8px;
}

.opinions-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.opinions-stream {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

.opinions-stream::-webkit-scrollbar {
    width: 4px;
}

.opinions-stream::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.opinions-stream::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.opinion-bubble {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    animation: fadeSlide 0.5s ease;
}

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

.opinion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.72rem;
}

.opinion-text {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== DATA SOURCES DASHBOARD ===== */
.data-sources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.data-source-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: all 0.2s;
}

.data-source-card:hover {
    border-color: var(--border-hover);
}

.data-source-card.data-src-warn {
    border-color: var(--accent-red);
    background: var(--accent-red-dim);
}

.data-src-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.data-src-impact {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--accent-gold);
    padding: 1px 6px;
    background: var(--accent-gold-dim);
    border-radius: 3px;
}

.data-src-tag {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding: 1px 6px;
    background: var(--bg-primary);
    border-radius: 3px;
}

.data-src-val {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.data-src-detail {
    font-size: 0.65rem;
    color: var(--text-muted);
}

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

/* ===== SEARCH & FILTER BAR ===== */
.filters-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

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

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.filter-tab.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    font-weight: 600;
}

.filter-tab[data-filter="live"].active {
    background: #dc2626;
    border-color: #dc2626;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Live fixture card highlight */
.fixture-card.is-live {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.fixture-card.is-live:hover {
    border-color: #ef4444;
    background: rgba(220, 38, 38, 0.1);
}

.vs-live {
    color: #ef4444 !important;
    font-weight: 800 !important;
    animation: pulse-score 1.5s infinite;
}

@keyframes pulse-score {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.fixture-finished {
    color: var(--text-muted) !important;
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .filters-bar { gap: 8px; }
    .filter-tabs { gap: 4px; }
    .filter-tab { padding: 6px 12px; font-size: 0.72rem; }
}

/* ===== TRACK LIVE BUTTON ===== */
.track-live-btn {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    animation: pulse-live-btn 2s infinite;
    transition: transform 0.2s;
}
.track-live-btn:hover { transform: scale(1.05); }
@keyframes pulse-live-btn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

/* ===== LIVE DASHBOARD ===== */
.live-header {
    text-align: center;
    margin-bottom: 24px;
}
.live-score-board {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.live-minute {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    animation: pulse-score 1.5s infinite;
}
.live-score {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 2px;
}
.live-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
}
.live-insight {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--accent-green);
    font-weight: 500;
}

/* Section title bars */
.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 12px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-blue);
}
.section-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
}
.section-badge {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Live stats grid */
.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.live-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}
.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.stat-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}
.stat-home { color: var(--accent-blue); }
.stat-away { color: #8b5cf6; }
.stat-separator { color: var(--text-muted); font-size: 0.7rem; }

/* Evolution chart */
.evolution-container {
    background: #111827;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 16px;
}

/* Delta cards */
.delta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.delta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}
.delta-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}
.delta-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.delta-change {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 4px;
    font-family: var(--font-mono);
}
.delta-up .delta-change { color: #22c55e; }
.delta-down .delta-change { color: #ef4444; }
.delta-neutral .delta-change { color: var(--text-muted); }
.delta-up { border-color: rgba(34,197,94,0.3); }
.delta-down { border-color: rgba(239,68,68,0.3); }

/* Pressure heatmap */
.pressure-heatmap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}
.pressure-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 80px;
    position: relative;
}
.pressure-label {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}
.pressure-bar-h, .pressure-bar-a {
    width: 80%;
    border-radius: 2px;
    transition: height 0.5s ease;
    min-height: 4px;
}

/* Corner tracker */
.corner-tracker {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}
.corner-progress { margin-bottom: 10px; }
.corner-bar-bg {
    height: 20px;
    background: #1e293b;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.corner-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 10px;
    transition: width 0.5s ease;
}
.corner-expected {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #f59e0b;
}
.corner-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.corner-estimate {
    text-align: center;
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 600;
}

/* Game signature */
.game-signature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}
.sig-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sig-pill {
    padding: 5px 12px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-blue);
}

/* Events list */
.events-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}
.event-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
}
.event-row:last-child { border-bottom: none; }
.event-minute {
    font-family: var(--font-mono);
    font-weight: 700;
    min-width: 30px;
    color: var(--accent-blue);
}
.event-icon { font-size: 0.9rem; }
.event-detail { flex: 1; color: var(--text-primary); }
.event-type { color: var(--text-muted); font-size: 0.7rem; }

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}
.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.cat-count {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 400;
}
.cat-votes {
    display: flex;
    gap: 6px;
}
.cat-vote {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    padding: 3px;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
}
.cat-winner {
    background: rgba(59,130,246,0.15);
    color: var(--accent-blue);
    font-weight: 600;
}

/* Waiting state */
.live-waiting {
    text-align: center;
    padding: 60px 20px;
}
.waiting-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.live-waiting h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .live-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .delta-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .live-score { font-size: 1.8rem; }
    .pred-vs-reality { grid-template-columns: 1fr 1fr; }
    .live-cloud-container { height: 400px; }
}

/* ==================== v5 NEURAL CLOUD ==================== */
.live-cloud-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.1), inset 0 0 30px rgba(0,0,0,0.3);
    margin-bottom: 24px;
}

.live-cloud-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Agent Counter */
.live-agent-counter {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 20px;
    display: inline-block;
}
.live-last-update {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    opacity: 0.7;
}
.live-last-update #last-update-time {
    color: var(--accent-green);
    font-weight: 600;
}
.update-interval {
    opacity: 0.5;
    margin-left: 6px;
}
.agent-count-num {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #a855f7, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.agent-split {
    display: block;
    font-size: 0.7rem;
    margin-top: 2px;
    opacity: 0.7;
}

/* Prediction vs Reality */
.pred-vs-reality {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.pv-card {
    background: rgba(30, 35, 60, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.pv-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.pv-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}
.pv-insight {
    font-size: 0.7rem;
    color: #a855f7;
    margin-top: 4px;
}

/* Accuracy Gauge */
.accuracy-gauge {
    background: rgba(30, 35, 60, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.gauge-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.gauge-bar {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
}
.gauge-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease, background 0.5s ease;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}
.gauge-value {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    min-width: 50px;
    text-align: right;
}

/* ==================== TRADER STATS ==================== */
.trader-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Stat Comparison Bars */
.stat-bars-container {
    background: rgba(20, 25, 45, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.stat-bar-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px 1fr 40px;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.stat-bar-row:last-child { border-bottom: none; }
.sbr-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
}
.sbr-home { color: #3b82f6; text-align: right; }
.sbr-away { color: #8b5cf6; text-align: left; }
.sbr-label {
    text-align: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.sbr-bar {
    height: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.sbr-fill-home {
    height: 100%;
    background: linear-gradient(90deg, transparent, #3b82f6);
    border-radius: 4px;
    float: right;
    transition: width 0.6s ease;
}
.sbr-fill-away {
    display: none;
}
.sbr-fill-away-r {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, transparent);
    border-radius: 4px;
    float: left;
    transition: width 0.6s ease;
}

/* FT Status */
.live-header.status-finished {
    border-color: rgba(34, 197, 94, 0.3);
}
.live-header.status-finished .live-minute {
    color: #22c55e;
}
.live-header.status-finished .live-status {
    color: #22c55e;
}

/* Finished fixture cards */
.fixture-card.is-finished {
    border-left: 3px solid rgba(34, 197, 94, 0.4);
}
.fixture-time.fixture-finished {
    color: #22c55e;
    font-weight: 600;
}
.track-live-btn.finished-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}
.track-live-btn.finished-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

/* === v6: Soccer Field === */
.field-container {
    background: rgba(26, 71, 42, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}
.field-container canvas {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* Lineup summary */
.lineup-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(15,20,40,0.6);
    border-radius: 10px;
    border: 1px solid rgba(59,130,246,0.1);
}
.lineup-team {
    flex: 1;
    text-align: center;
}
.lt-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 4px;
}
.lt-formation {
    font-size: 0.7rem;
    color: #3b82f6;
    background: rgba(59,130,246,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.lt-rating {
    font-size: 0.75rem;
    color: #8892a8;
}
.lt-value {
    color: #22c55e;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.lt-star {
    font-size: 0.7rem;
    color: #f59e0b;
    margin-top: 2px;
}
.lineup-vs {
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
}

/* === v6: Referee Card === */
.referee-card {
    background: rgba(15,20,40,0.7);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.ref-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ref-icon {
    font-size: 1.8rem;
}
.ref-info { flex: 1; }
.ref-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e2e8f0;
}
.ref-meta {
    font-size: 0.7rem;
    color: #8892a8;
}
.ref-score {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    padding: 6px 12px;
    border-radius: 8px;
}
.ref-score.risk-high { color: #ef4444; background: rgba(239,68,68,0.1); }
.ref-score.risk-med { color: #f59e0b; background: rgba(245,158,11,0.1); }
.ref-score.risk-low { color: #22c55e; background: rgba(34,197,94,0.1); }

.ref-insight {
    font-size: 0.75rem;
    color: #94a3b8;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 8px;
}

.ref-agents {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.ref-agent-dot {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    cursor: default;
}
.ref-agent-dot .rad { font-size: 0.7rem; }
.ref-agent-dot .rav {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
}

.ref-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ref-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .trader-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-bar-row { grid-template-columns: 30px 1fr 70px 1fr 30px; gap: 4px; }
    .sbr-label { font-size: 0.55rem; }
    .lineup-summary { flex-direction: column; gap: 6px; }
    .ref-agents { gap: 4px; }
    .ref-tags { gap: 4px; }
    .betting-markets-grid { grid-template-columns: 1fr; }
    .market-card { padding: 10px; }
}

/* ===== v7: COMPACT NEURAL CLOUD ===== */
.live-cloud-container {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #060a14;
    margin-bottom: 16px;
}
.live-cloud-container canvas {
    display: block;
    width: 100%;
    height: 320px;
}

/* ===== v14: BETTING MARKETS (COMPACT REDESIGN) ===== */
.betting-markets-grid,
.bm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.market-category,
.bm-category {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.market-cat-title,
.bm-cat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.market-card,
.bm-card {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.25s ease;
}
.bm-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bm-row-top,
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.bm-name,
.market-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
}

.bm-status,
.market-status {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.bm-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bm-progress-bar,
.market-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.bm-progress-fill,
.market-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease, background 0.4s ease;
    box-shadow: 0 0 6px rgba(34,197,94,0.3);
}

.bm-count {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 600;
    white-space: nowrap;
    min-width: fit-content;
}

.bm-row-bottom,
.market-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bm-prob {
    font-size: 0.65rem;
    color: #94a3b8;
}
.bm-prob strong {
    font-size: 0.7rem;
}

.bm-edge,
.market-edge {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(34,197,94,0.1);
}

/* Legacy compat */
.market-probs { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.72rem; color: #94a3b8; }
.market-probs strong { color: var(--text-primary); }
.market-sentiment { font-size: 0.65rem; font-weight: 600; }
.market-on_track { border-color: rgba(34,197,94,0.25); }
.market-at_risk { border-color: rgba(245,158,11,0.25); }
.market-busted { border-color: rgba(239,68,68,0.2); opacity: 0.6; }
.market-hit { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.06); }


/* ===== v9: POST-MATCH REPORT CARD ===== */
.report-card {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(26, 31, 46, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(12px);
}
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.08));
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.report-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #10b981;
    font-weight: 700;
}
.report-badge {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
}
.report-body {
    padding: 20px;
}
.report-score-section {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}
.score-ring-container {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}
.score-ring {
    width: 110px;
    height: 110px;
}
.score-ring-progress {
    animation: ringFill 1.2s ease-out forwards;
}
@keyframes ringFill {
    from { stroke-dasharray: 0 283; }
}
.score-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
}
.score-ring-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.score-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.score-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.score-detail-row span:first-child {
    color: var(--text-muted);
}
.text-green { color: #22c55e !important; font-weight: 600; }
.text-red { color: #ef4444 !important; font-weight: 600; }

.report-markets-section {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}
.report-markets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.market-pct {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
}
.report-markets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.report-market-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid transparent;
}
.report-market-pill.market-hit {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}
.report-market-pill.market-busted {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}
.report-market-pill.market-track {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}

.report-dominance {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ===== v9: HALF-TIME ANALYSIS ===== */
.ht-analysis-card {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(26, 31, 46, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    margin: 14px 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}
.ht-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}
.ht-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #f59e0b;
    font-weight: 700;
}
.ht-score {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}
.ht-body { padding: 14px 18px; }
.ht-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.ht-pill {
    font-size: 0.72rem;
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
}
.ht-prediction {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* v9: Status styling */
.status-ht .live-minute {
    color: #f59e0b !important;
    animation: htPulse 2s ease-in-out infinite;
}
@keyframes htPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.status-finished .live-header {
    border-color: rgba(16, 185, 129, 0.3);
}
.status-finished .live-score {
    color: #10b981;
}

/* ===== v10: ODDS COMPARISON ===== */
.odds-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.odds-row {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px 14px;
}
.odds-market-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.odds-bm {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
}
.odds-outcomes {
    display: flex;
    gap: 10px;
}
.odds-outcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}
.odds-outcome.value-bet {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}
.odds-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.odds-decimal {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}
.odds-implied {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.odds-edge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
}

/* ===== v10: ALERT TOAST ===== */
.alert-toast {
    position: fixed;
    top: 60px;
    right: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 340px;
    animation: slideIn 0.4s ease-out;
}
.alert-toast.hidden { display: none; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.alert-item {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    border: 1px solid transparent;
}
.alert-momentum {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}
.alert-bust {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.alert-value {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}
.alert-goal {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

/* ===== v10: PLAYER SOCIAL FEED ===== */
.player-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-height: 350px;
    overflow-y: auto;
}
.feed-message {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
    border-left: 3px solid var(--border);
}
.feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}
.feed-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.feed-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
}
.feed-role {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.feed-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

/* ===== v10: ACCURACY BADGE ===== */
.accuracy-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 20px;
    color: #22c55e;
    font-weight: 600;
}

/* ===== v10: PRINT / PDF EXPORT ===== */
.print-btn {
    margin-left: 8px;
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}
.print-btn:hover {
    background: rgba(139, 92, 246, 0.25);
}
@media print {
    .navbar, .back-btn, .print-btn, .alert-toast { display: none !important; }
    body { background: #fff; color: #111; }
    .live-header { background: #f1f5f9; border: 1px solid #e2e8f0; }
    .section-title-bar { background: #f8fafc; border: 1px solid #e2e8f0; }
    canvas { max-width: 100%; }
}

/* ===== v11: HISTORICAL DASHBOARD ===== */
.history-dashboard {
    padding: 0 16px;
}
.hist-header {
    text-align: center;
    padding: 24px 0 16px;
}
.hist-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #22c55e, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}
.hist-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Accuracy Cards */
.hist-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.hist-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(12px);
}
.hist-card-ring {
    width: 80px;
    height: 80px;
    position: relative;
    flex-shrink: 0;
}
.hist-card-ring svg { width: 100%; height: 100%; }
.hist-ring-progress {
    transition: stroke-dasharray 1s ease-out;
}
.hist-ring-value {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}
.hist-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hist-card-icon { font-size: 1.3rem; }
.hist-card-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.hist-card-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* League Bars */
.hist-section { margin-bottom: 20px; }
.hist-league-grid {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hist-league-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hist-league-name {
    min-width: 180px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hist-league-count {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 400;
}
.hist-league-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hist-bar-group {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 12px;
}
.hist-bar {
    height: 100%;
    border-radius: 4px;
    min-width: 2px;
    transition: width 0.8s ease-out;
}
.hist-bar-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    min-width: 32px;
}
.hist-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 10px 0 0;
}
.hist-legend-item {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.hist-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Game Table */
.hist-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}
.hist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.hist-table th {
    background: rgba(0,0,0,0.3);
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    position: sticky;
    top: 0;
}
.hist-table td {
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary);
}
.hist-table tr:nth-child(even) td {
    background: rgba(0,0,0,0.1);
}
.hist-table tr:hover td {
    background: rgba(59, 130, 246, 0.08);
}
.hist-game-name {
    font-weight: 600;
    color: var(--text-primary) !important;
    white-space: nowrap;
}
.hist-game-league {
    color: var(--text-muted) !important;
    font-size: 0.65rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hist-pred {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}
.hist-actual {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== v12: SMART BETTING CARD ===== */
.sbc-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.sbc-market {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}
.sbc-market-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sbc-market-icon { font-size: 1.1rem; }
.sbc-market-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sbc-outcomes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.sbc-outcome {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 8px 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}
.sbc-outcome.sbc-value {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.12);
}
.sbc-out-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.sbc-out-odds {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.sbc-out-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 3px;
}
.sbc-out-implied, .sbc-out-agent {
    font-size: 0.55rem;
    color: var(--text-muted);
}
.sbc-out-agent {
    color: var(--text-secondary);
    font-weight: 600;
}
.sbc-out-edge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .sbc-container {
        grid-template-columns: 1fr;
    }
}

/* ===== LEAGUE STANDINGS TABLE ===== */
.standings-table-wrap {
    overflow-x: auto;
    margin: 12px 0 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    white-space: nowrap;
}
.standings-table thead {
    background: rgba(59, 130, 246, 0.08);
}
.standings-table th {
    padding: 8px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.standings-table th:nth-child(3) {
    text-align: left;
}
.standings-table td {
    padding: 7px 10px;
    text-align: center;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(42, 49, 68, 0.5);
}
.standings-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}
.standings-table .standings-highlight {
    background: rgba(16, 185, 129, 0.08) !important;
    border-left: 3px solid var(--accent-green);
}
.standings-table .standings-highlight td {
    color: var(--text-primary);
    font-weight: 600;
}
.standings-rank {
    font-weight: 700;
    color: var(--text-primary) !important;
    width: 30px;
}
.standings-logo {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}
.standings-name {
    text-align: left !important;
    padding-left: 6px !important;
}
.standings-home {
    color: var(--accent-blue) !important;
    font-weight: 800 !important;
}
.standings-away {
    color: var(--accent-purple) !important;
    font-weight: 800 !important;
}
.standings-pts {
    font-weight: 800 !important;
    color: var(--accent-gold) !important;
    font-size: 0.85rem;
}
.gd-pos { color: var(--accent-green) !important; }
.gd-neg { color: var(--accent-red) !important; }

.standings-form {
    display: flex;
    gap: 2px;
    justify-content: center;
}
.form-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    text-align: center;
    line-height: 18px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
}
.form-w { background: var(--accent-green); }
.form-d { background: var(--accent-gold); }
.form-l { background: var(--accent-red); }

/* ===== GAME SENTIMENT PANEL ===== */
.sentiment-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 12px 0 24px;
}
.sentiment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.sentiment-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
}
.sc-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.sc-sentiment {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 4px 0;
}
.sentiment-hot { background: rgba(239,68,68,0.15); color: #ef4444; }
.sentiment-warm { background: rgba(245,158,11,0.15); color: #f59e0b; }
.sentiment-neutral { background: rgba(59,130,246,0.15); color: #3b82f6; }
.sentiment-cool { background: rgba(16,185,129,0.15); color: #10b981; }
.sc-rate {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.antic-section {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.antic-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.antic-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.antic-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    min-width: 120px;
}
.antic-track {
    flex: 1;
    height: 8px;
    background: rgba(42, 49, 68, 0.6);
    border-radius: 4px;
    overflow: hidden;
}
.antic-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.antic-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 36px;
    text-align: right;
}

/* ===========================================================
   COMPREHENSIVE MOBILE RESPONSIVE — TABLET (768px) + PHONE (480px)
   =========================================================== */

/* ===== TABLET — max-width: 768px ===== */
@media (max-width: 768px) {
    /* --- Global --- */
    .main-content {
        padding: 12px;
        max-width: 100%;
    }

    /* --- Navbar --- */
    .navbar {
        padding: 10px 14px;
    }
    .brand-tag { display: none; }
    .brand-name { font-size: 0.95rem; letter-spacing: 2px; }
    .brand-icon { font-size: 1.2rem; }
    .nav-status { font-size: 0.68rem; gap: 6px; }

    /* --- Page Header --- */
    .page-header { margin-bottom: 16px; }
    .page-title { font-size: 1.4rem; }
    .page-subtitle { font-size: 0.8rem; margin-bottom: 12px; }
    .date-selector { gap: 8px; }
    .date-btn { padding: 6px 12px; font-size: 0.8rem; }
    .date-input { padding: 6px 10px; font-size: 0.78rem; }

    /* --- Fixture Cards --- */
    .fixture-card {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        padding: 10px 12px;
    }
    .fixture-time { display: none; }
    .team-name { font-size: 0.75rem; }
    .team-logo { width: 24px; height: 24px; }

    /* --- Analysis Match Banner --- */
    .match-banner {
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }
    .banner-team img { width: 40px; height: 40px; }
    .banner-team-name { font-size: 0.95rem; }
    .banner-vs-text { font-size: 1.2rem; }

    /* --- Agents Grid --- */
    .agents-grid { grid-template-columns: 1fr; gap: 8px; }
    .agent-card { padding: 12px; }
    .agent-emoji { font-size: 1.1rem; }
    .agent-name { font-size: 0.78rem; }

    /* --- Consensus --- */
    .consensus-panel { padding: 16px; margin-bottom: 16px; }
    .consensus-main { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .prob-value { font-size: 1.4rem; }

    /* --- Tips --- */
    .tips-grid { grid-template-columns: 1fr; }

    /* --- Data Sources --- */
    .data-sources-grid { grid-template-columns: 1fr 1fr; gap: 6px; }

    /* --- Category Grid --- */
    .category-grid { grid-template-columns: 1fr 1fr; gap: 6px; }

    /* --- Opinions Stream --- */
    .opinions-stream { grid-template-columns: 1fr; max-height: 250px; }

    /* --- Search & Filters --- */
    .filters-bar { gap: 8px; }
    .filter-tabs { gap: 4px; overflow-x: auto; flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { padding: 6px 12px; font-size: 0.72rem; white-space: nowrap; flex-shrink: 0; }

    /* --- Live Dashboard --- */
    .live-score-board { padding: 14px; gap: 12px; }
    .live-score { font-size: 1.8rem; }
    .live-minute { font-size: 1.2rem; }

    .live-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .live-stat-card { padding: 10px; }
    .stat-values { font-size: 0.85rem; }

    .delta-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .delta-card { padding: 10px; }
    .delta-value { font-size: 1rem; }

    .pred-vs-reality { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pv-value { font-size: 1rem; }

    .pressure-heatmap { grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 4px; }
    .pressure-block { padding: 6px; min-height: 60px; }

    /* --- Neural Cloud --- */
    .live-cloud-container { height: 350px; }

    /* --- Trader Grid --- */
    .trader-grid { grid-template-columns: repeat(2, 1fr); }

    /* --- Stat Comparison Bars --- */
    .stat-bar-row {
        grid-template-columns: 30px 1fr 70px 1fr 30px;
        gap: 4px;
        padding: 4px 0;
    }
    .sbr-value { font-size: 0.68rem; }
    .sbr-label { font-size: 0.6rem; }

    /* --- Standings Table --- */
    .standings-table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .standings-table { min-width: 500px; font-size: 0.7rem; }

    /* --- Sentiment --- */
    .sentiment-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .sentiment-panel { padding: 12px; margin: 8px 0 16px; }

    /* --- Accuracy Gauge --- */
    .accuracy-gauge { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
    .gauge-value { font-size: 1rem; }

    /* --- Section Titles --- */
    .section-title-bar { margin: 16px 0 8px; padding: 6px 10px; }
    .section-title { font-size: 0.68rem; }

    /* --- Graph Container --- */
    .graph-container { border-radius: 8px; }

    /* --- Simulation --- */
    .simulation-panel { padding: 14px; }
    .sim-extra { gap: 12px; font-size: 0.72rem; flex-wrap: wrap; justify-content: center; }

    /* --- Loading / Empty --- */
    .loading-state { padding: 30px 0; }
    .empty-state { padding: 30px 0; }
}

/* ===== PHONE — max-width: 480px ===== */
@media (max-width: 480px) {
    /* --- Global --- */
    .main-content { padding: 8px; }
    body { font-size: 13px; }

    /* --- Navbar --- */
    .navbar { padding: 8px 10px; }
    .brand-name { font-size: 0.85rem; letter-spacing: 1.5px; }
    .nav-brand { gap: 6px; }
    .nav-status .status-text { font-size: 0.6rem; }

    /* --- Page Header --- */
    .page-title { font-size: 1.15rem; }
    .page-subtitle { font-size: 0.72rem; }
    .date-selector { gap: 6px; }
    .date-btn { padding: 5px 10px; font-size: 0.75rem; }
    .date-input { padding: 5px 8px; font-size: 0.75rem; }

    /* --- Fixture Cards --- */
    .fixture-card {
        grid-template-columns: 1fr auto 1fr;
        gap: 6px;
        padding: 8px 10px;
    }
    .team-name { font-size: 0.7rem; }
    .team-logo { width: 20px; height: 20px; }
    .team { gap: 6px; }
    .fixture-vs { font-size: 0.65rem; padding: 3px 8px; }
    .track-live-btn { font-size: 0.68rem; padding: 5px 12px; }

    /* --- Match Banner --- */
    .match-banner { padding: 14px; gap: 12px; }
    .banner-team img { width: 36px; height: 36px; }
    .banner-team-name { font-size: 0.85rem; }
    .banner-vs-text { font-size: 1rem; }

    /* --- Consensus --- */
    .consensus-panel { padding: 12px; }
    .consensus-main { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .consensus-prob { padding: 10px; }
    .prob-value { font-size: 1.2rem; }
    .prob-label { font-size: 0.62rem; }

    /* --- Data Sources --- */
    .data-sources-grid { grid-template-columns: 1fr; gap: 6px; }

    /* --- Category Grid --- */
    .category-grid { grid-template-columns: 1fr; gap: 6px; }

    /* --- Live Dashboard --- */
    .live-score-board {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    .live-score { font-size: 2rem; letter-spacing: 4px; }
    .live-minute { font-size: 1rem; }
    .live-insight { font-size: 0.72rem; }

    .live-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .live-stat-card { padding: 8px; }
    .stat-label { font-size: 0.62rem; }
    .stat-values { font-size: 0.8rem; gap: 4px; }

    .delta-grid { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
    .delta-card { padding: 8px; }
    .delta-label { font-size: 0.62rem; }
    .delta-value { font-size: 0.9rem; }

    .pred-vs-reality { grid-template-columns: 1fr 1fr; gap: 6px; }
    .pv-card { padding: 10px; }
    .pv-label { font-size: 0.6rem; }
    .pv-value { font-size: 0.9rem; }

    /* --- Neural Cloud --- */
    .live-cloud-container { height: 280px; }

    /* --- Stat Bars --- */
    .stat-bar-row {
        grid-template-columns: 1fr;
        gap: 2px;
        text-align: center;
    }
    .sbr-value { text-align: center !important; }
    .stat-bars-container { padding: 10px; }

    .stat-bar-row {
        grid-template-columns: 25px 1fr 55px 1fr 25px;
        gap: 3px;
    }
    .sbr-value { font-size: 0.62rem; }
    .sbr-label { font-size: 0.55rem; }
    .sbr-bar { height: 6px; }

    /* --- Trader --- */
    .trader-grid { grid-template-columns: 1fr 1fr; }

    /* --- Sentiment --- */
    .sentiment-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .sentiment-card { padding: 8px; }
    .sc-label { font-size: 0.62rem; }
    .sc-sentiment { font-size: 0.75rem; padding: 2px 6px; }
    .sc-rate { font-size: 0.6rem; }
    .antic-label { min-width: 80px; font-size: 0.65rem; }
    .antic-pct { font-size: 0.68rem; }

    /* --- Events --- */
    .event-row { padding: 6px 8px; font-size: 0.72rem; gap: 6px; }
    .event-minute { min-width: 24px; font-size: 0.68rem; }

    /* --- Pressure --- */
    .pressure-heatmap { grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); }
    .pressure-block { min-height: 50px; padding: 4px; }

    /* --- Corner Tracker --- */
    .corner-tracker { padding: 10px; }
    .corner-labels { font-size: 0.62rem; }

    /* --- Accuracy --- */
    .accuracy-gauge { flex-direction: column; gap: 8px; text-align: center; padding: 10px; }
    .gauge-label { white-space: normal; font-size: 0.72rem; }
    .gauge-bar { width: 100%; }

    /* --- Tips --- */
    .tip-card { padding: 12px; }
    .tip-pick { font-size: 0.95rem; }
    .tip-reasoning { font-size: 0.65rem; }

    /* --- Agent Cards --- */
    .agent-reasoning { font-size: 0.68rem; padding: 6px; }
    .agent-prediction { font-size: 0.8rem; padding: 3px 10px; }

    /* --- Standings --- */
    .standings-table { min-width: 450px; }

    /* --- Section Titles --- */
    .section-title-bar { margin: 12px 0 6px; padding: 5px 8px; }
    .section-title { font-size: 0.65rem; letter-spacing: 0.5px; }
    .section-badge { font-size: 0.6rem; }

    /* --- Simulation --- */
    .sim-extra { gap: 8px; font-size: 0.68rem; }
    .sim-vote { height: 30px; }
    .sim-vote-label { font-size: 0.68rem; min-width: 60px; }
    .sim-vote-pct { font-size: 0.85rem; }

    /* --- Scrollbar on touch — hide --- */
    ::-webkit-scrollbar { width: 3px; }
}

/* ===== v12: PAGE TRANSITIONS ===== */
.page.page-enter {
    animation: pageSlideIn 0.35s ease-out;
}
@keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== v12: FIXTURE CARD ENTRANCE ===== */
.fixture-enter {
    animation: fixtureSlideIn 0.3s ease-out both;
}
@keyframes fixtureSlideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== v12: SKELETON LOADERS ===== */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
}
.skeleton-card {
    height: 56px;
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.06) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== v12: SCROLL TO TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-green);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ===== v12: FIXTURE SUMMARY BAR ===== */
.fixture-summary {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 6px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    text-align: center;
}
.fixture-summary .summary-live {
    color: var(--accent-red);
    font-weight: 700;
}

/* ===== v12: LEAGUE COUNT BADGE ===== */
.league-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* ===== v12: ANIMATED COUNTER ===== */
.anim-counter {
    display: inline-block;
    transition: transform 0.3s ease;
}
.anim-counter.counting {
    transform: scale(1.08);
}

/* ===== v12: STAT BAR ENTRANCE ===== */
.prob-fill, .conf-fill, .tip-conf-fill, .sim-vote-bar, .hist-bar, .antic-fill, .market-bar-fill {
    animation: barGrow 0.8s ease-out both;
}
@keyframes barGrow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* ===== v12: CONSENSUS PANEL GLOW ===== */
.consensus-prob.highlight {
    position: relative;
    overflow: hidden;
}
.consensus-prob.highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, rgba(16,185,129,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== v12: GOAL NOTIFICATION TOAST ===== */
.goal-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 300;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(234, 88, 12, 0.95));
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: none;
}
.goal-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.goal-toast-icon {
    font-size: 1.5rem;
    animation: goalBounce 0.6s ease-in-out infinite alternate;
}
@keyframes goalBounce {
    from { transform: scale(1); }
    to { transform: scale(1.25); }
}

/* ===== TOUCH IMPROVEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Bigger touch targets */
    .fixture-card { min-height: 60px; }
    .filter-tab { min-height: 36px; }
    .back-btn { min-height: 40px; padding: 10px 16px; }
    .date-btn { min-height: 36px; }
    .track-live-btn { min-height: 40px; }

    /* Disable hover transforms on touch */
    .fixture-card:hover { transform: none; }
    .agent-card:hover { box-shadow: none; }
    .fixture-card:active {
        background: var(--bg-card-hover);
        border-color: var(--accent-green);
    }
}

/* ===== v13: NEURAL LOADING ANIMATION ===== */
.neural-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
}

.neural-load-wrapper {
    position: relative;
    width: 320px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

#neural-load-canvas {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.neural-load-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(99, 131, 255, 0.3);
    animation: neuralPulse 2s ease-out infinite;
}

.neural-pulse-ring.delay-1 { animation-delay: 0.6s; }
.neural-pulse-ring.delay-2 { animation-delay: 1.2s; }

@keyframes neuralPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.neural-brain-icon {
    font-size: 2.5rem;
    animation: neuralFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(99, 131, 255, 0.5));
}

@keyframes neuralFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.neural-load-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0 4px;
}

.neural-load-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.neural-load-card {
    width: 100%;
    max-width: 420px;
    perspective: 1000px;
}

.neural-card-glass {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 131, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transform: rotateX(2deg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(99, 131, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.neural-data-flow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    overflow: hidden;
}

.data-flow-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 131, 255, 0.6), rgba(34, 197, 94, 0.6), transparent);
    animation: dataFlow 2.5s ease-in-out infinite;
}

.data-flow-line.delay-1 { animation-delay: 0.8s; }
.data-flow-line.delay-2 { animation-delay: 1.6s; }

@keyframes dataFlow {
    0% { left: -60%; }
    100% { left: 100%; }
}

.neural-agents-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.agent-thinking-badge {
    padding: 4px 10px;
    background: rgba(99, 131, 255, 0.1);
    border: 1px solid rgba(99, 131, 255, 0.15);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    animation: badgePulse 2s ease-in-out infinite;
}

.agent-thinking-badge.pulse-1 { animation-delay: 0s; }
.agent-thinking-badge.pulse-2 { animation-delay: 0.3s; }
.agent-thinking-badge.pulse-3 { animation-delay: 0.6s; }
.agent-thinking-badge.pulse-4 { animation-delay: 0.9s; }
.agent-thinking-badge.pulse-5 { animation-delay: 1.2s; }

@keyframes badgePulse {
    0%, 100% { opacity: 0.5; border-color: rgba(99, 131, 255, 0.15); transform: scale(1); }
    50% { opacity: 1; border-color: rgba(99, 131, 255, 0.5); transform: scale(1.05); background: rgba(99, 131, 255, 0.2); }
}

.neural-status-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.2s ease;
    min-height: 1.2em;
}

/* ===== v14: PREMIUM GRID LOADING ===== */
.grid-loading-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    animation: glFadeIn 0.5s ease;
}
@keyframes glFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.gl-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.gl-brain-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gl-brain {
    font-size: 1.7rem;
    z-index: 2;
    animation: glFloat 2s ease-in-out infinite;
}
@keyframes glFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.gl-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0.6;
}
.gl-ring-1 {
    border-top-color: #22c55e;
    border-right-color: #22c55e;
    animation: glSpin 1.5s linear infinite;
}
.gl-ring-2 {
    inset: -6px;
    border-bottom-color: #3b82f6;
    border-left-color: #3b82f6;
    animation: glSpin 2s linear infinite reverse;
}
.gl-ring-3 {
    inset: -12px;
    border-top-color: #a855f7;
    animation: glSpin 2.5s linear infinite;
    opacity: 0.3;
}
@keyframes glSpin { to { transform: rotate(360deg); } }

.gl-text-wrap { text-align: left; }
.gl-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.gl-status {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: #22c55e;
    margin-top: 2px;
    transition: opacity 0.3s ease;
}

.gl-bar-track {
    width: min(400px, 80%);
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.gl-bar-fill {
    height: 100%;
    width: 5%;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #a855f7);
    border-radius: 3px;
    transition: width 0.8s ease;
    position: relative;
}
.gl-bar-glow {
    position: absolute;
    top: 0; left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: glGlow 1.5s ease-in-out infinite;
}
@keyframes glGlow { to { left: 100%; } }

.gl-agents-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.gl-agent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0.3;
    animation: glDot 1.6s ease-in-out infinite;
    animation-delay: calc(var(--d) * 0.15s);
}
@keyframes glDot {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px #22c55e; }
}

.gl-skeleton-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    width: 100%;
}
.gl-skel {
    height: 100px;
    border-radius: 10px;
    background: linear-gradient(110deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 70%);
    background-size: 200% 100%;
    animation: glShimmer 1.5s linear infinite, glFadeCard 0.5s ease both;
    animation-delay: calc(var(--i) * 0.1s), calc(var(--i) * 0.15s);
    border: 1px solid rgba(255,255,255,0.04);
}
@keyframes glShimmer { to { background-position: -200% 0; } }
@keyframes glFadeCard { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

