:root {
    /* Professional Sports Analytics Palette */
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #0ad63b; /* Pitch Green */
    --accent-color: #f59e0b; /* Trophy Gold */
    --bg-dark: #050d1a; /* Deeper midnight */
    --bg-stadium: #0a1628;
    --pitch-texture: rgba(10, 214, 59, 0.03);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background: radial-gradient(circle at top right, #0a1628, #000000);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle Turf Pattern Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--pitch-texture) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 40px 40px, 100px 100px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Premium Navigation */
header {
    background: rgba(5, 13, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 3rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* Hero Section with Sports Vibe */
.hero {
    text-align: center;
    padding: 6rem 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 1000;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -2px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Dashboard Grid */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0.5rem 0;
    font-family: 'Orbitron', sans-serif; /* Recommended for scoreboard look */
}

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

/* Match Section Redesign */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.match-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.match-card:hover::before {
    opacity: 1;
}

.match-card.selected {
    border-color: var(--secondary-color);
    background: rgba(10, 214, 59, 0.05);
}

.league-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.teams {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    margin: 2rem 0;
    text-align: center;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 800;
}

.vs-circle {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--primary-color);
}

/* Accuracy Chart Section */
.chart-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 3rem;
    margin: 4rem 0;
}

/* Better Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-predict {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-predict:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--primary-glow);
}

/* Animations */
@keyframes scoreboard-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.live-indicator {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: scoreboard-pulse 1s infinite;
}

/* Auth Modals */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: var(--bg-stadium);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.full-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
}

.full-width {
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-text:hover {
    color: white;
}

/* Custom Input for AI form */
.custom-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .container { padding: 1rem; }
    header { padding: 1rem; }
}