:root {
    --navy-950: #031326;
    --navy-900: #071d3a;
    --navy-850: #0a2548;
    --navy-800: #0c2d55;
    --blue-600: #1677ff;
    --blue-500: #2e8cff;
    --green-600: #00a65a;
    --green-500: #08c66b;
    --green-400: #27da83;
    --surface: #0b203c;
    --surface-soft: #102b4e;
    --card: #ffffff;
    --page: #f3f7fb;
    --ink: #11213a;
    --muted: #66758b;
    --line: #dce6f1;
    --shadow: 0 18px 50px rgba(3, 19, 38, .12);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(3, 19, 38, .96); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; font: 800 22px/1 Manrope, sans-serif; letter-spacing: -.7px; }
.brand > span:last-child > span { color: var(--green-400); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, var(--blue-600), var(--green-500)); box-shadow: 0 8px 24px rgba(8,198,107,.25); }
.main-nav { display: flex; align-items: center; gap: 24px; color: #cfdaea; font-size: 14px; font-weight: 600; }
.main-nav a { position: relative; padding: 28px 0; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: white; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 3px; border-radius: 20px; background: var(--green-500); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: white; border-radius: 4px; }

.ticker { color: white; background: linear-gradient(90deg, var(--green-600), #0cbb6b 55%, var(--blue-600)); }
.ticker-inner { min-height: 46px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.ticker-inner > span:last-child { color: rgba(255,255,255,.85); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: white; box-shadow: 0 0 0 5px rgba(255,255,255,.15); }

.hero { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 85% 15%, rgba(22,119,255,.35), transparent 28%), radial-gradient(circle at 25% 100%, rgba(8,198,107,.22), transparent 35%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); align-items: center; gap: 70px; padding-block: 76px 86px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-500); font-size: 12px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 20px; background: currentColor; }
.hero h1 { max-width: 700px; margin: 16px 0; font: 800 clamp(38px, 5vw, 66px)/1.04 Manrope, sans-serif; letter-spacing: -2.5px; }
.hero h1 span { color: var(--green-400); }
.hero p { max-width: 620px; margin: 0; color: #c5d4e8; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--green-600), var(--green-500)); box-shadow: 0 12px 30px rgba(0,166,90,.28); }
.button-secondary { color: white; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font: 800 20px Manrope, sans-serif; }
.hero-stats span { color: #91a8c4; font-size: 12px; }

.featured-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: linear-gradient(150deg, rgba(255,255,255,.11), rgba(255,255,255,.04)); box-shadow: 0 30px 80px rgba(0,0,0,.28); backdrop-filter: blur(16px); }
.featured-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.featured-head > div { display: grid; gap: 2px; }
.featured-head span:not(.featured-icon) { color: #9db1ca; font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; }
.featured-head strong { font-size: 15px; }
.featured-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #032c1a; background: var(--green-400); }
.featured-meta { display: flex; justify-content: space-between; padding: 14px 22px; color: #abc0d9; background: rgba(0,0,0,.12); font-size: 12px; }
.featured-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 28px 22px 22px; }
.featured-teams > div { display: grid; justify-items: center; gap: 12px; text-align: center; }
.featured-teams img, .team-placeholder { width: 58px; height: 58px; object-fit: contain; }
.team-placeholder { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--blue-500), var(--green-500)); font-weight: 800; }
.featured-teams strong { font-size: 13px; }
.versus { color: #8197b2; font-size: 11px; font-weight: 800; }
.featured-pick { margin: 0 22px 22px; padding: 16px; display: grid; gap: 4px; text-align: center; border: 1px solid rgba(39,218,131,.22); border-radius: 14px; background: rgba(0,166,90,.12); }
.featured-pick > span:first-child { color: #91a8c4; font-size: 11px; text-transform: uppercase; }
.featured-pick strong { color: var(--green-400); font-size: 16px; }
.confidence { font-size: 11px; color: #c5d4e8; }
.featured-empty { min-height: 290px; padding: 40px 30px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.featured-empty p { font-size: 13px; }
.empty-ball { font-size: 42px; }

.predictions-section { padding: 54px 0 72px; }
.dashboard-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 26px; }
.sidebar { display: grid; gap: 20px; position: sticky; top: 96px; }
.sidebar-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 34px rgba(14,45,79,.07); }
.sidebar-title { padding: 17px 18px; display: flex; align-items: center; gap: 10px; color: white; background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); }
.sidebar-title span { color: var(--green-400); }
.sidebar-title h2 { margin: 0; font: 800 14px Manrope, sans-serif; }
.market-menu { padding: 10px; display: grid; gap: 3px; }
.market-menu a { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 10px; color: #52647a; font-size: 13px; font-weight: 600; }
.market-menu a:hover { background: #eef6ff; color: var(--blue-600); }
.market-menu a.active { color: white; background: linear-gradient(120deg, var(--blue-600), var(--green-600)); }
.search-box { margin: 14px 14px 8px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.search-box:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.search-box input { min-width: 0; width: 100%; height: 42px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.league-list { padding: 6px 10px 12px; display: grid; gap: 3px; }
.league-list button { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border: 0; border-radius: 9px; color: #52647a; background: transparent; cursor: pointer; text-align: left; font-size: 12px; }
.league-list button:hover { color: var(--blue-600); background: #eef6ff; }
.league-list button strong { min-width: 24px; padding: 2px 7px; border-radius: 999px; color: var(--green-600); background: #e4f9ee; text-align: center; }
.sidebar-muted { padding: 6px; color: var(--muted); font-size: 12px; }

.predictions-content { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 5px 0 0; font: 800 clamp(24px, 3vw, 34px)/1.15 Manrope, sans-serif; letter-spacing: -1px; }
.confidence-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid #b9cee4; border-radius: 11px; color: #52647a; background: white; font-size: 12px; font-weight: 700; }
.confidence-toggle span { color: var(--green-600); }
.confidence-toggle.active { color: white; border-color: var(--green-600); background: var(--green-600); }
.market-tabs { overflow-x: auto; display: flex; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: white; scrollbar-width: thin; }
.market-tabs a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #cfdae7; border-radius: 10px; color: #53657b; font-size: 12px; font-weight: 700; }
.market-tabs a:hover, .market-tabs a.active { color: white; border-color: var(--blue-600); background: linear-gradient(135deg, var(--blue-600), var(--green-600)); }
.date-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 14px 0 22px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.date-tabs a { padding: 11px 6px; display: grid; gap: 2px; text-align: center; border: 1px solid transparent; border-radius: 10px; color: #53657b; }
.date-tabs strong { font-size: 11px; text-transform: uppercase; }
.date-tabs span { font-size: 11px; }
.date-tabs a:hover { border-color: #bed1e6; }
.date-tabs a.active { color: white; background: linear-gradient(145deg, var(--blue-600), var(--green-600)); box-shadow: 0 9px 24px rgba(22,119,255,.2); }

.league-groups { display: grid; gap: 20px; }
.league-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 38px rgba(14,45,79,.06); }
.league-header { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; color: white; background: linear-gradient(100deg, var(--navy-800), var(--blue-600) 62%, var(--green-600)); }
.league-header div { display: flex; align-items: center; gap: 10px; }
.league-header > span { color: rgba(255,255,255,.75); font-size: 11px; }
.league-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.14); }
.match-list { display: grid; }
.match-card { display: grid; grid-template-columns: 70px minmax(260px, 1.2fr) minmax(210px, .8fr) auto; align-items: center; gap: 18px; padding: 17px 18px; border-bottom: 1px solid #e7eef6; }
.match-card:last-child { border-bottom: 0; }
.match-card:hover { background: #f8fbff; }
.match-time { display: grid; gap: 2px; }
.match-time span { color: var(--navy-900); font-weight: 800; }
.match-time small { color: var(--muted); font-size: 10px; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-teams > div { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; }
.match-teams > div:first-child { justify-content: flex-end; text-align: right; }
.match-teams img { width: 28px; height: 28px; object-fit: contain; }
.match-vs { color: #9aabc0; font-size: 10px; }
.match-prediction { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pick-label { padding: 8px 10px; border-radius: 9px; color: var(--navy-900); background: #edf4fb; font-size: 11px; font-weight: 800; text-align: center; }
.probability { padding: 8px 9px; border-radius: 9px; color: #087b45; background: #e4f9ee; font-size: 11px; font-weight: 800; }
.match-details { position: relative; }
.match-details summary { list-style: none; padding: 8px 11px; border: 1px solid #cbd8e6; border-radius: 9px; color: var(--blue-600); cursor: pointer; font-size: 11px; font-weight: 800; }
.match-details summary::-webkit-details-marker { display: none; }
.match-details[open] .probability-grid { display: grid; }
.probability-grid { position: absolute; z-index: 4; right: 0; top: 43px; width: 260px; display: none; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.probability-grid div { padding: 9px; display: grid; gap: 2px; border-radius: 8px; background: #f3f7fb; }
.probability-grid span { color: var(--muted); font-size: 10px; }
.probability-grid strong { font-size: 12px; }

.empty-state { min-height: 360px; display: grid; place-items: center; align-content: center; padding: 44px 24px; text-align: center; border: 1px dashed #aec4dc; border-radius: var(--radius); background: white; }
.empty-state-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(145deg, #e4f0ff, #e2f8ec); font-size: 34px; transform: rotate(-5deg); }
.empty-state h3 { margin: 20px 0 6px; font: 800 22px Manrope, sans-serif; }
.empty-state p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.empty-state .button-secondary { color: var(--blue-600); border-color: #bed1e6; background: white; }

.how-it-works { padding: 72px 0; color: white; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); }
.centered { justify-content: center; text-align: center; }
.centered .eyebrow { justify-content: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.steps-grid article { position: relative; overflow: hidden; min-height: 220px; padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.steps-grid article > span { position: absolute; right: 18px; top: 8px; color: rgba(39,218,131,.12); font: 800 76px Manrope, sans-serif; }
.steps-grid h3 { position: relative; margin: 45px 0 9px; font: 800 18px Manrope, sans-serif; }
.steps-grid p { position: relative; margin: 0; color: #aebfd4; font-size: 13px; }
.responsible { padding: 28px 0; color: white; background: linear-gradient(90deg, var(--green-600), var(--blue-600)); }
.responsible-inner, .responsible-inner > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.responsible-inner h2 { margin: 0; font: 800 18px Manrope, sans-serif; }
.responsible-inner p { margin: 3px 0 0; color: rgba(255,255,255,.85); font-size: 12px; }
.responsible-icon, .age-badge { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.16); font-weight: 800; }

.site-footer { padding: 56px 0 20px; color: #aebfd4; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer-grid > div { display: grid; align-content: start; gap: 9px; }
.footer-brand { margin-bottom: 6px; }
.footer-grid p { max-width: 330px; margin: 0; font-size: 13px; }
.footer-grid h3 { margin: 0 0 6px; color: white; font: 800 13px Manrope, sans-serif; }
.footer-grid a, .footer-grid > div > span { font-size: 12px; }
.footer-grid a:hover { color: var(--green-400); }
.footer-bottom { margin-top: 44px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; }

@media (max-width: 1024px) {
    .main-nav { gap: 15px; }
    .main-nav a { font-size: 12px; }
    .hero-grid { gap: 34px; }
    .dashboard-grid { grid-template-columns: 230px minmax(0, 1fr); }
    .match-card { grid-template-columns: 56px 1fr; }
    .match-prediction { justify-content: flex-start; grid-column: 2; }
    .match-details { grid-column: 2; justify-self: end; margin-top: -42px; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 76px; left: 16px; right: 16px; display: none; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: var(--navy-900); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
    .main-nav.open { display: grid; }
    .main-nav a { padding: 11px 12px; border-radius: 9px; }
    .main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.06); }
    .main-nav a.active::after { display: none; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 58px; }
    .featured-card { max-width: 560px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .date-tabs { grid-template-columns: repeat(7, minmax(74px, 1fr)); overflow-x: auto; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid article { min-height: 170px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .container { width: min(100% - 22px, 1180px); }
    .ticker-inner { align-items: flex-start; flex-wrap: wrap; padding-block: 10px; gap: 7px; }
    .ticker-inner > span:last-child { width: 100%; padding-left: 21px; }
    .hero h1 { letter-spacing: -1.7px; }
    .hero-stats { gap: 22px; }
    .hero-stats span { font-size: 10px; }
    .sidebar { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .date-tabs { padding: 8px; }
    .match-card { grid-template-columns: 48px 1fr; gap: 10px; padding: 15px 12px; }
    .match-teams { grid-template-columns: 1fr; gap: 5px; }
    .match-teams > div, .match-teams > div:first-child { justify-content: flex-start; text-align: left; }
    .match-vs { padding-left: 37px; }
    .match-prediction { flex-wrap: wrap; }
    .match-details { margin-top: -39px; }
    .probability-grid { right: -2px; width: min(260px, calc(100vw - 45px)); }
    .responsible-inner { align-items: flex-start; }
    .responsible-inner > div { align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
