:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); }
a { color: var(--primary); text-decoration: none; }

/* Top Bar */
.top-bar { background: var(--bg-secondary); padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.sport-selector { display: flex; gap: 0.5rem; }
.sport-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; background: transparent; border: 1px solid var(--border-color); border-radius: 20px; color: var(--text-secondary); font-size: 0.85rem; transition: all 0.2s; text-decoration: none; }
.sport-btn:hover, .sport-btn.active { background: var(--sport-color, var(--primary)); border-color: var(--sport-color, var(--primary)); color: white; }
.top-links { display: flex; gap: 1rem; }
.top-links a { color: var(--text-secondary); font-size: 0.85rem; }

/* Header */
.main-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary) !important; }
.brand-icon { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary), var(--info)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: white; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.1rem; }
.brand-slogan { font-size: 0.7rem; color: var(--text-muted); }
.navbar-nav .nav-link { color: var(--text-secondary) !important; font-weight: 500; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--text-primary) !important; }
.dropdown-menu { background: var(--card-bg); border: 1px solid var(--border-color); }
.dropdown-item { color: var(--text-secondary); }
.dropdown-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.mega-menu { min-width: 500px; padding: 1rem; }
.dropdown-header { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; }
.search-form .form-control { background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 20px 0 0 20px; }
.btn-search { background: var(--primary); border: 1px solid var(--primary); color: white; border-radius: 0 20px 20px 0; }

/* Hero */
.hero-section { background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)); border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--border-color); }
.hero-title { font-size: 2rem; font-weight: 800; }
.hero-title i { color: var(--primary); }
.hero-subtitle { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 1.5rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stat .stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stat .stat-label { font-size: 0.85rem; color: var(--text-muted); }
.quick-links { display: flex; flex-direction: column; gap: 0.75rem; }
.quick-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--bg-tertiary); border-radius: var(--radius-md); color: var(--text-primary); font-weight: 500; transition: all 0.2s; }
.quick-link:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.quick-link.live { background: var(--danger); color: white; }

/* Cards */
.card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.card-header { background: transparent; border-bottom: 1px solid var(--border-color); padding: 1rem 1.25rem; }
.card-header h5 { margin: 0; font-weight: 600; }

/* Match List */
.league-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: var(--bg-tertiary); font-weight: 600; font-size: 0.85rem; }
.match-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); transition: background 0.2s; }
.match-item:hover { background: var(--bg-tertiary); }
.match-time { width: 50px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); text-align: center; }
.match-teams { flex: 1; display: flex; align-items: center; gap: 0.5rem; }
.match-teams .team { flex: 1; display: flex; align-items: center; gap: 0.5rem; }
.match-teams .team.home { justify-content: flex-end; }
.team-logo { width: 24px; height: 24px; object-fit: contain; }
.team-name { font-weight: 500; font-size: 0.9rem; }
.match-score { width: 70px; text-align: center; }
.match-score .score { font-weight: 700; font-size: 1.1rem; }
.match-score .vs { color: var(--text-muted); font-size: 0.8rem; }
.match-prediction { width: 150px; text-align: center; }
.prediction-odds { display: flex; gap: 0.25rem; justify-content: center; }
.prediction-odds .odd { padding: 0.2rem 0.5rem; background: var(--bg-tertiary); border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.prediction-odds .odd.active { background: var(--success); color: white; }

/* Sports Grid */
.sports-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.sport-card { display: flex; flex-direction: column; align-items: center; padding: 1.25rem; background: var(--bg-tertiary); border-radius: var(--radius-md); color: var(--text-primary); transition: all 0.2s; text-decoration: none; }
.sport-card:hover { transform: translateY(-3px); }
.sport-card i { font-size: 1.5rem; margin-bottom: 0.5rem; }
.sport-card.sport-basket:hover { background: #f59e0b; }
.sport-card.sport-tenis:hover { background: #84cc16; }
.sport-card.sport-voley:hover { background: #06b6d4; }
.sport-card.sport-motor:hover { background: #ef4444; }

/* Performance */
.perf-circle { width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--success) calc(var(--percent) * 1%), var(--bg-tertiary) 0); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; position: relative; }
.perf-circle::before { content: ''; position: absolute; width: 90px; height: 90px; background: var(--card-bg); border-radius: 50%; }
.perf-circle .perf-value, .perf-circle .perf-label { position: relative; z-index: 1; }
.perf-circle .perf-value { font-size: 1.5rem; font-weight: 700; }
.perf-circle .perf-label { font-size: 0.7rem; color: var(--text-muted); }

/* Footer */
.main-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border-radius: 50%; color: var(--text-secondary); }
.social-links a:hover { background: var(--primary); color: white; }

/* Animations */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.blink { animation: blink 1s infinite; }

/* Utils */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.list-group-item { background: transparent; border-color: var(--border-color); color: var(--text-primary); }
.list-group-item-action:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.list-group-item.active { background: var(--primary); border-color: var(--primary); }
.form-control { background: var(--bg-tertiary); border-color: var(--border-color); color: var(--text-primary); }
.table { color: var(--text-primary); }
.table > :not(caption) > * > * { background: transparent; border-color: var(--border-color); }
.pagination .page-link { background: var(--card-bg); border-color: var(--border-color); color: var(--text-primary); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.news-thumb { width: 60px; height: 45px; object-fit: cover; border-radius: var(--radius-sm); }

/* Live */
.live-section .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.live-matches-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.live-match-card { min-width: 220px; background: var(--card-bg); border: 1px solid var(--danger); border-radius: var(--radius-md); padding: 1rem; position: relative; }
.live-team { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.live-team .team-score { font-weight: 700; font-size: 1.25rem; }
.live-time { text-align: center; margin-top: 0.5rem; font-size: 0.8rem; color: var(--danger); font-weight: 600; }

/* High Conf */
.high-conf-card { background: var(--bg-tertiary); border-radius: var(--radius-md); padding: 1rem; }
.conf-header { display: flex; justify-content: space-between; margin-bottom: 0.75rem; }
.conf-league { font-size: 0.8rem; color: var(--text-muted); }
.conf-score { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; color: white; }
.pred-value { color: var(--success); font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 1.5rem; }
    .hero-title { font-size: 1.5rem; }
    .match-prediction { display: none; }
    .mega-menu { min-width: auto; }
}
