@font-face { font-family: "Satoshi"; src: url("/static/assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/static/assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/static/assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/static/assets/fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --muted: #aeaaaa;
  --body: #7b7b7b;
  --body-strong: #4c4c4c;
  --field: #f0f0f0;
  --line: #ececec;
  --line-2: #e2e2e2;
  --hl: rgba(137, 190, 255, 0.45);
  --home: #3b82f6;
  --draw: #b8bcc6;
  --away: #f43f5e;
  --green: #12b07f;
  --green-bg: #e7f8f1;
  --gold: #e8a73a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 24, 40, .06), 0 2px 8px rgba(20,24,40,.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafb; color: var(--black);
  -webkit-font-smoothing: antialiased; letter-spacing: -.011em;
}

/* ---------- top nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; color: var(--black); }
.brand b { font-weight: 700; }
.brand .logo { color: var(--home); font-size: 18px; }
.tabs { display: inline-flex; gap: 4px; background: #f4f4f5; border: 1px solid var(--line); padding: 4px; border-radius: 13px; }
.tab { background: transparent; border: none; color: var(--body); font-family: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.tab:hover { color: var(--black); }
.tab.active { background: var(--black); color: #fff; }
.acc { font-size: 13px; color: var(--body); font-weight: 600; white-space: nowrap; }

/* wallet pill (shared w/ landing look) */
.wallet-pill { display: inline-flex; align-items: center; gap: 9px; background: var(--field); border: none; border-radius: 20px; padding: 9px 16px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s; color: var(--black); }
.wallet-pill:hover { background: #e6e6e6; }
.wallet-pill.connected { background: var(--green-bg); color: #0c7a58; }
.wallet-pill .dots { display: inline-flex; }
.wallet-pill .dots i { width: 15px; height: 15px; border-radius: 50%; margin-left: -6px; border: 2px solid #fff; }
.wallet-pill .dots i:first-child { margin-left: 0; background: #f59e0b; }
.wallet-pill .dots i:nth-child(2) { background: #3b82f6; }
.wallet-pill .dots i:nth-child(3) { background: #22c55e; }

main { max-width: 1080px; margin: 0 auto; padding: 36px 24px 80px; }

.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.03em; }
.page-head p { color: var(--body); font-size: 16px; margin-top: 8px; max-width: 640px; line-height: 1.5; }
.page-head b { color: var(--body-strong); }
.view.hidden { display: none; }
.muted-line { color: var(--body); font-size: 13px; margin: -6px 0 16px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* ---------- stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat .v.green { color: var(--green); } .stat .v.gold { color: var(--gold); }
.stat .l { font-size: 12.5px; color: var(--body); margin-top: 3px; }

/* ---------- pick cards ---------- */
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pick { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .15s, transform .15s, box-shadow .15s; cursor: pointer; box-shadow: var(--shadow); }
.pick:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pick.value { border-color: rgba(18,176,127,.45); box-shadow: 0 0 0 1px rgba(18,176,127,.12), var(--shadow); }
.pick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pick-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.pick-comp { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #f4f4f5; border: 1px solid var(--line); color: var(--body); }
.match-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 16px; }
.tm { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tm.r { justify-content: flex-end; }
.tm img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.tm .nm { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row .vs2 { font-size: 12px; color: var(--muted); font-weight: 700; }
.bar1x2 { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-bottom: 5px; background: var(--field); }
.bar1x2 .h { background: var(--home); } .bar1x2 .d { background: var(--draw); } .bar1x2 .a { background: var(--away); }
.bar1x2-lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--body); font-variant-numeric: tabular-nums; margin-bottom: 16px; }

.rec { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 12px 14px; background: #fafafb; border: 1px solid var(--line); }
.rec.value { background: var(--green-bg); border-color: rgba(18,176,127,.3); }
.rec-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 5px 9px; border-radius: 8px; flex-shrink: 0; color: #fff; }
.rec.value .rec-badge { background: var(--green); }
.rec.confidence .rec-badge { background: var(--black); }
.rec-body { flex: 1; min-width: 0; }
.rec-pick { font-weight: 700; font-size: 14.5px; }
.rec-sub { font-size: 12px; color: var(--body); margin-top: 2px; }
.rec-odds { text-align: right; flex-shrink: 0; }
.rec-odds .o { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-odds .ol { font-size: 10.5px; color: var(--muted); }
.rec-edge { color: var(--green); font-weight: 700; }

.pick-detail { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pick.open .pick-detail { display: block; }
.odds-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.odds-table th { text-align: right; color: var(--muted); font-weight: 600; font-size: 11px; padding: 5px 6px; text-transform: uppercase; letter-spacing: .03em; }
.odds-table th:first-child { text-align: left; }
.odds-table td { padding: 6px; border-top: 1px solid var(--line); text-align: right; }
.odds-table td:first-child { text-align: left; font-weight: 600; }
.odds-table .pos { color: var(--green); font-weight: 700; }
.odds-table .neg { color: var(--muted); }
.odds-table tr.valuerow td:first-child::after { content: " ●"; color: var(--green); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.detail-grid h4 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px; }
.sc-row { display: flex; justify-content: space-between; font-size: 12.5px; font-variant-numeric: tabular-nums; padding: 2.5px 0; }
.kelly-note { font-size: 11.5px; color: var(--body); margin-top: 12px; }
.kelly-note b { color: var(--green); }

/* ---------- simulation board ---------- */
.sim-board { list-style: none; display: flex; flex-direction: column; gap: 7px; counter-reset: rank; }
.sim-board li { display: grid; grid-template-columns: 26px 1fr 170px 54px; align-items: center; gap: 12px; padding: 6px 0; }
.sim-board li::before { counter-increment: rank; content: counter(rank); color: var(--muted); font-weight: 700; font-size: 13px; }
.sim-board .team { font-weight: 600; font-size: 15px; }
.sim-board .track { height: 9px; background: var(--field); border-radius: 99px; overflow: hidden; }
.sim-board .fill { height: 100%; background: linear-gradient(90deg, var(--home), #60a5fa); border-radius: 99px; }
.sim-board .pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.sim-board .gold .fill { background: linear-gradient(90deg, var(--gold), #f6c560); }

/* ---------- fixtures ---------- */
.fixtures-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fixtures-head h3 { margin-bottom: 0; }
.combo { background: var(--field); border: 1px solid transparent; color: var(--ink); border-radius: 11px; padding: 13px 15px; font-size: 15px; font-weight: 600; font-family: inherit; outline: none; transition: border-color .15s, background .15s; }
.combo:focus { border-color: var(--home); background: #fff; }
.combo.small { padding: 9px 12px; font-size: 14px; max-width: 200px; }
.fixtures { display: flex; flex-direction: column; }
.day-sep { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 8px; }
.fx { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.fx:hover { border-color: var(--line-2); background: #fafafb; }
.fx-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.fx-team { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.fx-team.away { justify-content: flex-end; }
.fx-team img { width: 21px; height: 21px; object-fit: contain; }
.fx-mid { text-align: center; color: var(--muted); font-size: 12px; min-width: 56px; }
.fx-mid .time { font-weight: 700; color: var(--black); font-size: 13px; }
.fx-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; margin-top: 9px; background: var(--field); }
.fx-bar .h { background: var(--home); } .fx-bar .d { background: var(--draw); } .fx-bar .a { background: var(--away); }
.fx-pcts { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 5px; font-variant-numeric: tabular-nums; }
.fx-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: none; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.fx.open .fx-detail { display: flex; }
.fx-detail .blk { flex: 1; min-width: 120px; }
.fx-detail .blk h4 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }

/* ---------- predictor ---------- */
.picker { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: end; }
.team-select { display: flex; flex-direction: column; gap: 8px; }
.team-select label { font-size: 13px; color: var(--body); font-weight: 500; padding-left: 4px; }
.vs { color: var(--muted); font-weight: 700; padding-bottom: 12px; }
.elo-chip { font-size: 12px; color: var(--muted); padding-left: 4px; min-height: 14px; }
.controls { display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 24px; }
.toggle { display: flex; align-items: center; gap: 10px; color: var(--body); font-size: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--black); cursor: pointer; }
.cta { background: var(--black); color: #fff; border: none; border-radius: 13px; padding: 14px 30px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; transition: opacity .15s, transform .1s; }
.cta:hover { opacity: .88; } .cta:active { transform: scale(.98); } .cta:disabled { opacity: .5; }

.prob-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.xg-row { display: flex; justify-content: space-between; color: var(--body); font-size: 14px; margin-bottom: 18px; }
.xg-row strong { color: var(--black); font-variant-numeric: tabular-nums; }
.bar-1x2 { display: flex; height: 44px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.seg { display: flex; align-items: center; justify-content: center; transition: width .5s cubic-bezier(.4,0,.2,1); overflow: hidden; }
.seg span { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.seg-home { background: var(--home); } .seg-draw { background: var(--draw); } .seg-away { background: var(--away); }
.legend { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; color: var(--body); flex-wrap: wrap; gap: 8px; }
.legend b { color: var(--black); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot.home { background: var(--home); } .dot.draw { background: var(--draw); } .dot.away { background: var(--away); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scores { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.scores li { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.scores .sc { font-weight: 700; font-size: 15px; width: 44px; }
.scores .track { flex: 1; height: 8px; background: var(--field); border-radius: 99px; overflow: hidden; }
.scores .fill { height: 100%; background: var(--green); border-radius: 99px; }
.scores .pct { color: var(--body); font-size: 13px; width: 48px; text-align: right; }
.markets { display: flex; flex-direction: column; gap: 14px; }
.market .mhead { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.market .mhead b { font-variant-numeric: tabular-nums; }
.market .mbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.market .mbar div { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; transition: width .5s; }
.market .a { background: var(--home); color: #fff; } .market .b { background: #f4f4f5; color: var(--body); }

footer { text-align: center; margin-top: 36px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
footer b { color: var(--body); }

/* ---------- best bets board ---------- */
.bb-card { padding: 0; overflow: hidden; }
.bb-head { display: flex; align-items: baseline; gap: 12px; padding: 20px 22px 14px; flex-wrap: wrap; }
.bb-head h3 { margin: 0; font-size: 17px; }
.bb-sub { color: var(--body); font-size: 13px; }
.bb-list { display: flex; flex-direction: column; }
.bb-row { display: grid; grid-template-columns: 64px 1fr 1.3fr auto 52px; align-items: center; gap: 14px; padding: 13px 22px; border-top: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.bb-row:hover { background: var(--bg-soft); }
.bb-badge { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 4px 7px; border-radius: 7px; text-align: center; color: #fff; background: var(--black); }
.bb-badge.value { background: var(--green); }
.bb-match { font-weight: 700; font-size: 14px; }
.bb-match i { color: var(--muted); font-style: normal; font-weight: 600; margin: 0 3px; }
.bb-bet { color: var(--body-strong); font-size: 14px; font-weight: 600; }
.bb-extra { color: var(--body); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.bb-od { font-weight: 800; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.bb-acc { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--black); color: #fff; flex-wrap: wrap; }
.bb-acc-l { color: #9a9aa6; font-size: 12px; }
.bb-acc-teams { font-weight: 600; font-size: 14px; margin-top: 4px; }
.bb-acc-od { text-align: right; }
.bb-acc-od .o { font-size: 28px; font-weight: 900; letter-spacing: -.02em; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--body-strong); font-family: inherit; font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: 11px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--line-2); }
.chip.active { background: var(--black); color: #fff; border-color: var(--black); }
.chip span { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.chip.active span { opacity: .8; }

/* ---------- market coupon ---------- */
.pick-toggle { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--body); padding: 8px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); transition: background .12s; }
.pick:hover .pick-toggle { background: #f2f3f5; }
.coupon-h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin: 18px 0 12px; }
.coupon { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.mkt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mkt-h { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.mkt-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 4px 0; font-size: 12.5px; }
.mkt-l { color: var(--body-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-p { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.mkt-o { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; padding: 12px 16px; }
  .acc { display: none; }
  .picks { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .page-head h1 { font-size: 25px; }
  .picker { grid-template-columns: 1fr; } .vs { display: none; }
  .grid, .detail-grid, .coupon { grid-template-columns: 1fr; }
  .sim-board li { grid-template-columns: 22px 1fr 80px 46px; }
  .bb-row { grid-template-columns: 52px 1fr 44px; row-gap: 2px; }
  .bb-bet { grid-column: 2; } .bb-extra { display: none; }
}
