:root {
  --bg: #0a0f1c;
  --bg-2: #0f1626;
  --panel: #141c2f;
  --panel-2: #1a2440;
  --line: #24304d;
  --text: #e8edf7;
  --muted: #8d9ab8;
  --dim: #5f6b88;
  --accent: #c8f04a;
  --accent-ink: #0a0f1c;
  --teal: #3ee6c1;
  --live: #ff4d6d;
  --win: #3ee6a0;
  --loss: #ff6b7d;
  --void: #9aa6c4;
  --warn: #ffc65c;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sidebar-w: 224px;
  --slip-w: 340px;
  --top-h: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: var(--text); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hide { display: none !important; }

/* ---------- Banner + Topbar ---------- */
.demo-banner { background: linear-gradient(90deg, #2a2108, #1b2610); color: var(--warn); font-size: 12px; font-weight: 600; text-align: center; padding: 6px 12px; letter-spacing: .02em; }
.demo-banner .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: 1px; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(10, 15, 28, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-accent { color: var(--accent); }
.brand-ai { margin-left: 5px; font-size: 11px; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 2px 5px; vertical-align: 2px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.balance-chip { display: flex; flex-direction: column; align-items: flex-end; padding: 5px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); line-height: 1.15; }
.balance-chip small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.balance-chip b { font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--accent-ink); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--slip-w); min-height: calc(100vh - var(--top-h) - 28px); }
.main { padding: 20px 24px 120px; min-width: 0; outline: none; }
.sidebar { border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; }
.slip-col { border-left: 1px solid var(--line); position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; background: var(--bg-2); }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 14px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.side-link:hover { background: var(--panel); color: var(--text); }
.side-link.active { background: var(--panel-2); color: var(--text); }
.side-link.active svg { color: var(--accent); }
.side-link .count { margin-left: auto; font-size: 12px; color: var(--dim); }
.side-link .soon { margin-left: auto; font-size: 10px; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.side-link.disabled { opacity: .55; cursor: default; }
.side-link.disabled:hover { background: none; color: var(--muted); }
.side-link .flag { width: 20px; text-align: center; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Bottom nav (mobil) ---------- */
.bottom-nav { display: none; }
.slip-mobile { display: none; }

/* ---------- Bausteine ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head h1 { font-size: 24px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.section-head a { color: var(--muted); font-size: 13px; font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 16px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip .n { opacity: .7; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.badge.live { background: rgba(255, 77, 109, .15); color: var(--live); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.badge.demo { background: rgba(255, 198, 92, .12); color: var(--warn); }
.badge.won { background: rgba(62, 230, 160, .14); color: var(--win); }
.badge.lost { background: rgba(255, 107, 125, .14); color: var(--loss); }
.badge.void, .badge.partial { background: rgba(154, 166, 196, .14); color: var(--void); }
.badge.open { background: rgba(122, 162, 255, .14); color: #9db8ff; }
.badge.ft { background: var(--panel-2); color: var(--muted); }
@keyframes pulse { 50% { opacity: .3; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.btn:hover { border-color: #33426a; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--loss); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.on { color: var(--warn); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: rgba(255, 198, 92, .08); border: 1px solid rgba(255, 198, 92, .25); color: #f3dca8; }
.notice.info { background: rgba(122, 162, 255, .08); border-color: rgba(122, 162, 255, .25); color: #c6d4ff; }
.notice .ico { flex: none; margin-top: 1px; }

/* ---------- Spiele ---------- */
.comp-block { margin-bottom: 16px; overflow: hidden; }
.comp-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.comp-head .flag { font-size: 16px; }
.comp-head small { color: var(--dim); font-weight: 600; }
.mrow { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: rgba(255, 255, 255, .02); }
.m-time { font-size: 12px; color: var(--muted); line-height: 1.3; font-weight: 600; }
.m-time .live-min { color: var(--live); font-weight: 800; font-size: 13px; }
.m-teams { min-width: 0; display: grid; gap: 5px; }
.m-team { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.m-team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team .sc { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; padding-left: 8px; }
.m-team .red { width: 9px; height: 12px; background: var(--live); border-radius: 2px; flex: none; }
.crest { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 8.5px; font-weight: 800; color: #fff; flex: none; letter-spacing: -.02em; }
.crest.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 15px; }
.m-side { display: flex; align-items: center; gap: 6px; }
.m-meta { display: flex; gap: 2px; align-items: center; }
.odds3 { display: grid; grid-template-columns: repeat(3, 58px); gap: 6px; }
.odd { height: 42px; border-radius: 10px; background: var(--panel-2); border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s; }
.odd small { font-size: 10px; color: var(--muted); font-weight: 700; line-height: 1; margin-bottom: 3px; }
.odd:hover { border-color: #3a4a74; }
.odd.sel { background: var(--accent); color: var(--accent-ink); }
.odd.sel small { color: rgba(10, 15, 28, .6); }
.odd:disabled, .odd.locked { opacity: .35; cursor: not-allowed; }
.more-link { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 6px; border-radius: 6px; white-space: nowrap; }
.more-link:hover { color: var(--text); background: var(--panel-2); }

/* Live-Karten */
.live-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.live-strip::-webkit-scrollbar { display: none; }
.lcard { padding: 14px; cursor: pointer; display: grid; gap: 10px; }
.lcard:hover { border-color: #33426a; }
.lcard-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Match-Seite ---------- */
.match-hero { padding: 20px; text-align: center; position: relative; overflow: hidden; }
.match-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 160px at 50% -40px, rgba(200, 240, 74, .08), transparent); pointer-events: none; }
.mh-comp { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; justify-content: center; gap: 8px; align-items: center; flex-wrap: wrap; }
.mh-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; margin-top: 16px; }
.mh-team { display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.mh-score { margin-top: 8px; font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mh-score.pre { font-size: 22px; color: var(--muted); }
.mh-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mh-events { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: 12px; }
.ev-pill { background: var(--panel-2); border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 18px 0 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.market { margin-bottom: 10px; padding: 12px 14px; }
.market-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.sels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sels.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sels.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.selbtn { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid transparent; font-size: 13px; font-weight: 600; min-width: 0; text-align: left; }
.selbtn .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cbd4e8; }
.selbtn .o { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.selbtn:hover { border-color: #3a4a74; }
.selbtn.sel { background: var(--accent); color: var(--accent-ink); }
.selbtn.sel .lbl { color: var(--accent-ink); }
.selbtn:disabled { opacity: .35; cursor: not-allowed; }
.stat-row { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.stat-row .lbl { text-align: center; color: var(--muted); font-size: 13px; }
.stat-row .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-row .v:last-child { text-align: right; }
.bar2 { display: flex; height: 5px; border-radius: 3px; overflow: hidden; background: var(--panel-2); margin-top: 6px; gap: 2px; }
.bar2 span:first-child { background: var(--accent); }
.bar2 span:last-child { background: var(--teal); }
.timeline { display: grid; gap: 2px; }
.tl { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; font-size: 13px; padding: 6px 0; }
.tl .mn { text-align: center; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.tl .l { text-align: right; padding-right: 8px; }
.tl .r { padding-left: 8px; }
.tl.marker { color: var(--dim); font-size: 12px; text-align: center; grid-template-columns: 1fr; border-top: 1px dashed var(--line); margin-top: 4px; }
.card-y { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: var(--warn); vertical-align: -1px; }
.card-r { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: var(--live); vertical-align: -1px; }

/* ---------- Wettschein ---------- */
.slip { display: flex; flex-direction: column; min-height: 100%; min-width: 0; overflow-x: hidden; }
.slip-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg-2); z-index: 2; }
.slip-head h2 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.slip-count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; padding: 0 6px; }
.slip-body { padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { padding: 7px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--panel-2); color: var(--text); }
.leg { padding: 11px 12px; display: grid; gap: 4px; position: relative; }
.leg-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.leg-pick { font-weight: 700; font-size: 14px; }
.leg-odds { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.leg-odds .up { color: var(--win); font-size: 11px; }
.leg-odds .down { color: var(--loss); font-size: 11px; }
.leg-mkt { font-size: 12px; color: var(--muted); }
.leg-match { font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.leg.closed { opacity: .6; }
.leg .x { position: absolute; right: 6px; bottom: 6px; }
.stake-box { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.stake-input { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.stake-input:focus-within { border-color: var(--accent); }
.stake-input input { flex: 1; width: 100%; background: none; border: 0; outline: none; padding: 11px 0; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 0; }
.stake-input span { color: var(--muted); font-weight: 700; font-size: 13px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick button { padding: 7px 0; border-radius: 8px; background: var(--panel-2); font-weight: 700; font-size: 13px; }
.quick button:hover { background: #22305a; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; }
.sum-row b { font-variant-numeric: tabular-nums; }
.sum-row.big b { font-size: 18px; color: var(--accent); }
.sim-note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
.slip-empty { padding: 40px 18px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.slip-empty .big-ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; background: var(--panel); display: grid; place-items: center; color: var(--dim); }

/* ---------- Wetten ---------- */
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.select { width: 100%; padding: 9px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 600; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.bet { margin-bottom: 10px; overflow: hidden; display: block; }
.bet:hover { border-color: #33426a; }
.bet-head { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.bet-head .t { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.bet-legs { padding: 4px 14px; }
.bet-leg { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed var(--line); align-items: center; }
.bet-leg:last-child { border-bottom: 0; }
.bet-leg .who { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bet-leg .pk { font-weight: 700; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.st-dot.WON { background: var(--win); }
.st-dot.LOST { background: var(--loss); }
.st-dot.VOID { background: var(--void); }
.st-dot.OPEN { background: transparent; border: 2px solid #7aa2ff; }
.bet-foot { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 14px; background: rgba(255, 255, 255, .02); border-top: 1px solid var(--line); font-size: 12px; gap: 8px; }
.bet-foot small { display: block; color: var(--dim); margin-bottom: 2px; }
.bet-foot b { font-size: 14px; font-variant-numeric: tabular-nums; }
.pos { color: var(--win); }
.neg { color: var(--loss); }

/* ---------- Performance ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px; }
.kpi small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.kpi b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .sub { font-size: 12px; color: var(--dim); margin-top: 3px; }
.perf-card { padding: 18px; display: grid; gap: 14px; background: linear-gradient(135deg, #18233f, #121a2e); }
.perf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.perf-top small { color: var(--muted); font-size: 12px; font-weight: 600; }
.perf-bal { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 2px; }
.perf-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.perf-mini div small { display: block; color: var(--dim); font-size: 11px; margin-bottom: 2px; }
.perf-mini div b { font-variant-numeric: tabular-nums; font-size: 15px; }
.chart { width: 100%; height: 160px; display: block; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Formulare ---------- */
.auth-wrap { max-width: 420px; margin: 10px auto; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { width: 100%; padding: 11px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); outline: none; font-size: 15px; }
.input:focus { border-color: var(--accent); }
.form-err { color: var(--loss); font-size: 13px; min-height: 18px; }
.pill-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.team-pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow-y: auto; padding: 2px; }
.team-pick .chip { font-size: 12px; padding: 6px 10px; }

/* ---------- KI Platzhalter ---------- */
.pipeline { display: grid; gap: 8px; }
.pipe-step { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 14px; }
.pipe-step .n { width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--muted); flex: none; }
.pipe-step .ph { margin-left: auto; font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }

/* ---------- Modal & Toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(3, 6, 14, .7); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(420px, 100%); padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.modal h3 { font-size: 18px; }
.modal p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 70; display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); }
.toast { background: #1f2b4a; border: 1px solid #33426a; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: up .2s; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.toast a { color: var(--accent); white-space: nowrap; }
.toast.err { border-color: rgba(255, 107, 125, .5); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --slip-w: 0px; }
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .slip-col { display: none; }
  .slip-mobile { display: block; }
  .main { padding-bottom: 140px; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .main { padding: 14px 14px 150px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(10, 15, 28, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bn { display: grid; justify-items: center; gap: 3px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--dim); position: relative; }
  .bn.active { color: var(--accent); }
  .bn .bdg { position: absolute; top: 0; left: calc(50% + 6px); background: var(--live); color: #fff; border-radius: 999px; font-size: 10px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; font-weight: 800; }
  .balance-chip small { display: none; }
  .page-head h1 { font-size: 21px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perf-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .bet-foot { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .slip-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; box-shadow: var(--shadow); width: auto; }
  .slip-bar .c { background: var(--accent-ink); color: var(--accent); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; margin-right: 8px; }
  .sheet-bg { position: fixed; inset: 0; background: rgba(3, 6, 14, .6); z-index: 50; animation: fade .15s; }
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; max-height: 88vh; overflow-y: auto; background: var(--bg-2); border-radius: 18px 18px 0 0; border-top: 1px solid var(--line); animation: up .2s; padding-bottom: env(safe-area-inset-bottom); }
  .sheet .slip-head { border-radius: 18px 18px 0 0; }
}
@media (max-width: 820px) {
  .slip-bar { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(140px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .odds3 { grid-template-columns: repeat(3, 48px); gap: 4px; }
  .odd { height: 40px; font-size: 13px; }
  .mrow { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 10px 10px; }
  .m-meta { display: none; }
  .m-team { font-size: 13px; }
  .mh-score { font-size: 32px; }
  .sels.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .selbtn { padding: 9px 9px; font-size: 12px; }
  .demo-banner { font-size: 11px; }
}
