:root {
  --ink: #0b1724;
  --muted: #65717f;
  --paper: #f4f7f3;
  --card: #ffffff;
  --green: #00a86b;
  --green-dark: #007b50;
  --lime: #c9ff49;
  --line: #dfe7df;
  --navy: #06131f;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.site-header { min-height: 72px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: white; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 21px; font-weight: 850; letter-spacing: -.6px; }
.brand > span:last-child span { color: var(--lime); }
.brand-mark { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--navy); font-size: 13px; letter-spacing: -1px; transform: rotate(-4deg); }
nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
nav form { margin: 0; }
.balance { color: var(--lime); font-weight: 800; }
.text-button { border: 0; background: transparent; color: white; cursor: pointer; padding: 0; }
main { min-height: calc(100vh - 132px); }
footer { padding: 24px 5vw; text-align: center; font-size: 12px; color: var(--muted); }
.button { display: inline-flex; justify-content: center; border: 0; border-radius: 10px; padding: 14px 20px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
.button:hover { background: var(--green-dark); }
.button.secondary { background: transparent; color: white; border: 1px solid #ffffff45; }
.button.small { padding: 10px 14px; background: var(--lime); color: var(--navy); }
.eyebrow { color: var(--green); font-size: 12px; letter-spacing: 1.7px; font-weight: 900; }
.hero { min-height: 620px; padding: 85px 8vw; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 8vw; background: radial-gradient(circle at 75% 30%, #0b4939 0, var(--navy) 45%); color: white; }
.hero h1 { margin: 12px 0 20px; font-size: clamp(48px, 6vw, 84px); line-height: .96; letter-spacing: -4px; }
.hero h1 span { color: var(--lime); }
.hero p { color: #b8c5ca; font-size: 19px; max-width: 640px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.hero-card { padding: 28px; border-radius: 22px; background: #ffffff0f; border: 1px solid #ffffff24; backdrop-filter: blur(15px); box-shadow: 0 30px 80px #0007; }
.live-pill { display: inline-block; padding: 7px 10px; border-radius: 99px; background: var(--lime); color: var(--navy); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.mini-match { padding: 22px 0; border-bottom: 1px solid #ffffff1f; }
.mini-match:last-child { border: 0; }
.mini-match div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini-match span, .mini-match small { color: #91a0a8; }
.mini-match small { display: block; margin-top: 10px; }
.feature-strip { margin: -38px auto 55px; width: min(900px, 88%); padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); background: white; border-radius: 16px; box-shadow: 0 16px 50px #13251b18; }
.feature-strip div { display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); }
.feature-strip div:last-child { border: 0; }
.feature-strip strong { font-size: 28px; }
.feature-strip span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.messages { position: fixed; top: 84px; right: 24px; z-index: 10; width: min(420px, calc(100% - 48px)); }
.message { padding: 14px 16px; margin-bottom: 8px; border-radius: 10px; background: var(--navy); color: white; box-shadow: 0 10px 30px #0003; }
.message.success { border-left: 5px solid var(--lime); }
.message.error { border-left: 5px solid #ff5d5d; }
.auth-shell { min-height: calc(100vh - 132px); display: grid; place-items: center; padding: 50px 20px; background: radial-gradient(circle at top, #0c4938, var(--navy) 55%); }
.auth-card { width: min(460px, 100%); padding: 42px; border-radius: 20px; background: white; box-shadow: 0 30px 80px #0008; }
.auth-card h1 { margin: 10px 0 28px; font-size: 36px; letter-spacing: -1.5px; }
.auth-form { display: grid; gap: 18px; }
.auth-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 800; }
.auth-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf8; }
.auth-foot { margin: 24px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.auth-foot a { color: var(--green-dark); font-weight: 800; }
.errorlist, .form-errors { margin: 0; padding: 0; list-style: none; color: #b3261e; font-size: 12px; }
.dashboard-head { padding: 45px 5vw 28px; display: flex; justify-content: space-between; align-items: end; gap: 30px; background: white; border-bottom: 1px solid var(--line); }
.dashboard-head h1 { font-size: 42px; letter-spacing: -2px; margin: 7px 0; }
.dashboard-head p { color: var(--muted); margin: 0; }
.credit-card { min-width: 200px; padding: 20px; border-radius: 16px; background: var(--navy); color: white; display: grid; }
.credit-card span, .credit-card small { color: #aeb9bf; font-size: 12px; }
.credit-card strong { color: var(--lime); font-size: 36px; line-height: 1.1; }
.live-bar { padding: 12px 5vw; display: flex; align-items: center; gap: 20px; overflow-x: auto; white-space: nowrap; background: var(--lime); font-size: 13px; }
.live-bar strong { color: #d60000; text-transform: uppercase; }
.dashboard-grid { padding: 35px 5vw; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
.section-title { min-height: 52px; display: flex; align-items: start; justify-content: space-between; }
.section-title h2 { margin: 3px 0 20px; font-size: 25px; letter-spacing: -1px; }
.section-title > span { color: var(--muted); font-size: 12px; }
.section-title.compact { min-height: auto; }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.match-card, .side-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 30px #17261c0a; }
.match-card { padding: 18px; }
.match-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.match-meta span { color: var(--green-dark); font-weight: 900; }
.teams { min-height: 122px; display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 6px; text-align: center; }
.teams div { display: grid; justify-items: center; gap: 8px; font-size: 13px; }
.teams img { width: 44px; height: 44px; object-fit: contain; }
.teams > span { color: #a3ada6; font-size: 11px; font-weight: 900; }
.venue { min-height: 29px; text-align: center; color: var(--muted); font-size: 11px; }
.bet-form { padding-top: 14px; border-top: 1px solid var(--line); }
.bet-form label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.bet-form select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.pick-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.pick-buttons button { padding: 9px 4px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf7; color: var(--muted); font-size: 9px; cursor: pointer; }
.pick-buttons button:hover { border-color: var(--green); background: #ecfff6; color: var(--green-dark); }
.pick-buttons span { color: var(--ink); font-weight: 900; font-size: 16px; }
.pool { margin-top: 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.pool strong { color: var(--ink); }
.social-bets { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.social-bets summary { display: flex; justify-content: space-between; color: var(--green-dark); font-size: 11px; font-weight: 850; cursor: pointer; list-style: none; }
.social-bets summary::-webkit-details-marker { display: none; }
.social-bets summary span { color: var(--muted); font-weight: 600; }
.social-columns { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.social-columns > div { min-width: 0; padding: 9px; border-radius: 8px; background: #f7faf7; }
.social-columns h3 { min-height: 28px; margin: 0 0 7px; font-size: 10px; line-height: 1.35; }
.social-columns p { margin: 5px 0; display: grid; gap: 2px; font-size: 9px; overflow-wrap: anywhere; }
.social-columns p span, .social-columns small { color: var(--muted); font-size: 8px; }
aside { display: grid; align-content: start; gap: 18px; }
.side-card { padding: 20px; }
.bet-row { padding: 13px 0; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.bet-row div { display: grid; gap: 5px; font-size: 11px; }
.bet-row div span { color: var(--muted); }
.edit-bet-form { margin-top: -4px; padding: 8px; display: grid; grid-template-columns: 1fr 70px; gap: 6px; border-radius: 8px; background: #f7faf7; }
.edit-bet-form select { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 10px; }
.edit-bet-form button, .cancel-bet-form button { width: 100%; padding: 7px; border: 0; border-radius: 7px; font-size: 10px; font-weight: 800; cursor: pointer; }
.edit-bet-form button { grid-column: 1 / -1; background: var(--green); color: white; }
.cancel-bet-form { margin-top: 6px; }
.cancel-bet-form button { background: #fff1f1; color: #a31717; border: 1px solid #ffd4d4; }
.edit-deadline { display: block; margin: 6px 0 12px; color: var(--muted); font-size: 8px; }
.status { align-self: start; padding: 4px 7px; border-radius: 99px; background: #eef2ee; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.status.won { background: #d8ffe9; color: var(--green-dark); }
.status.lost { background: #ffe4e4; color: #a31717; }
.rank-row { padding: 12px 0; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; border-top: 1px solid var(--line); font-size: 12px; }
.rank-row > span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 10px; }
.rank-row em { color: var(--green-dark); font-style: normal; font-weight: 900; }
.result-row { padding: 12px 0; display: grid; gap: 5px; border-top: 1px solid var(--line); font-size: 11px; }
.result-row span { color: var(--green-dark); font-weight: 800; }
.result-row small { color: var(--muted); }
.muted, .empty-state { color: var(--muted); }

@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-header { padding: 0 20px; }
  nav .balance { display: none; }
  .hero { min-height: auto; padding: 60px 24px 90px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 50px; letter-spacing: -3px; }
  .hero-actions { flex-direction: column; }
  .feature-strip { grid-template-columns: 1fr; gap: 18px; }
  .feature-strip div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .feature-strip div:last-child { border: 0; padding-bottom: 0; }
  .dashboard-head { padding: 32px 20px; align-items: stretch; flex-direction: column; }
  .credit-card { width: 100%; }
  .dashboard-grid { padding: 25px 16px; }
  .match-grid, aside { grid-template-columns: 1fr; }
}
