/* ==========================================================================
   FociTipp – mobil-first dizájn (iPhone + Android), asztali nézetben oldalsávval
   ========================================================================== */
:root {
  --bg: #07090d;
  --bg-2: #0c1016;
  --surface: #11161e;
  --surface-2: #171e28;
  --surface-3: #1f2834;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eef2f7;
  --text-2: #b7c1cf;
  --muted: #7d8899;
  --green: #19e68c;
  --green-2: #0fbf72;
  --green-ink: #03200f;
  --violet: #8b6cff;
  --violet-2: #6d4dff;
  --gold: #ffc53d;
  --red: #ff4d6a;
  --blue: #4da3ff;
  --orange: #ff9f43;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --header-h: 56px;
  --tabbar-h: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.4; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
img { display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--text-2); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.num, .mono { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); } .neg { color: var(--red); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 18px; height: 18px; }

/* ---------- boot / login ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot-logo { width: 56px; height: 56px; border-radius: 16px; background: url(/icons/icon-192.png) center/cover; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.9); opacity: .6; } }
.login { min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + var(--sat)) 20px calc(24px + var(--sab));
  background: radial-gradient(900px 500px at 15% -10%, rgba(25,230,140,.18), transparent 60%), radial-gradient(700px 500px at 110% 110%, rgba(139,108,255,.18), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.login-brand { text-align: center; margin-bottom: 8px; }
.login-brand img { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 14px; box-shadow: 0 10px 40px rgba(25,230,140,.25); }
.login-brand h1 { margin: 0; font-size: 30px; letter-spacing: -.6px; }
.brand-accent { color: var(--green); }

/* ---------- form elemek ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn:hover { border-color: rgba(255,255,255,.22); }
.btn.primary { background: linear-gradient(180deg, #2bf29b, var(--green-2)); color: var(--green-ink); border: 0; box-shadow: 0 6px 22px rgba(25,230,140,.28); }
.btn.violet { background: linear-gradient(180deg, #9d83ff, var(--violet-2)); color: #fff; border: 0; box-shadow: 0 6px 22px rgba(139,108,255,.3); }
.btn.danger { color: var(--red); border-color: rgba(255,77,106,.35); background: rgba(255,77,106,.08); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: var(--text-2); }
.icon-btn:active { background: var(--surface-2); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2);
  outline: none; font-size: 16px; /* iOS: 16px alatt ránagyít */ transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,230,140,.15); }
input[type=checkbox] { width: auto; min-height: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 28px; border-radius: 20px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.err { color: var(--red); font-size: 13.5px; min-height: 18px; }

/* ---------- app keret ---------- */
.app { min-height: 100dvh; }
.col-main { min-width: 0; }
@media (max-width: 420px) { .xs-hide { display: none; } }
.topbar { position: sticky; top: 0; z-index: 30; height: calc(var(--header-h) + var(--sat)); padding: var(--sat) calc(14px + var(--sar)) 0 calc(14px + var(--sal));
  display: flex; align-items: center; gap: 10px; background: rgba(7,9,13,.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.4px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.balance { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 34px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; }
.coin { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, #c78a00); box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); flex: none; }
.main { padding: 16px calc(14px + var(--sar)) calc(var(--tabbar-h) + var(--sab) + 28px) calc(14px + var(--sal)); max-width: 900px; margin: 0 auto; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin: 4px 0 14px; display: flex; align-items: center; gap: 10px; }
.page-sub { color: var(--muted); margin: -8px 0 16px; font-size: 14px; }
h2.sec { font-size: 17px; font-weight: 750; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; letter-spacing: -.2px; }
.sidebar, .side-slip { display: none; }

/* alsó navigáció (telefon) */
.tabbar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + var(--sab)); padding: 6px calc(6px + var(--sar)) var(--sab) calc(6px + var(--sal));
  display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(10,13,18,.9); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); border: 0; background: none; cursor: pointer; position: relative; border-radius: 12px; }
.tab.on { color: var(--green); }
.tab.on.ai { color: var(--violet); }
.tab .badge-n { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: var(--green-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.tab .live-dot { position: absolute; top: 6px; left: 50%; margin-left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- kártyák, chipek, badge ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 12px; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-h { font-size: 12px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 22px; font-weight: 800; margin-top: 4px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 14px 4px; margin: 0 -14px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.chip img { width: 18px; height: 18px; object-fit: contain; }
.chip .n { color: var(--muted); font-weight: 500; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.on .n { color: #4b5563; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.green { background: rgba(25,230,140,.14); color: var(--green); }
.badge.red { background: rgba(255,77,106,.14); color: var(--red); }
.badge.gold { background: rgba(255,197,61,.16); color: var(--gold); }
.badge.violet { background: rgba(139,108,255,.18); color: #b4a2ff; }
.badge.blue { background: rgba(77,163,255,.15); color: var(--blue); }
.badge.orange { background: rgba(255,159,67,.15); color: var(--orange); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 800; font-size: 12.5px; }
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.3s infinite; }
.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 42px; background: var(--surface); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar > * { flex: 1; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; height: 36px; border: 0; background: none; border-radius: 9px; font-weight: 650; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; padding: 0 10px; }
.seg button.on { background: var(--surface-3); color: var(--text); }

/* ---------- címer ---------- */
.crest { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest.fb { font-size: 11px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.crest.lg { width: 64px; height: 64px; }
.crest.lg.fb { font-size: 22px; }
.crest.md { width: 40px; height: 40px; }

/* ---------- meccskártya ---------- */
.day-h { position: sticky; top: calc(var(--header-h) + var(--sat)); z-index: 5; margin: 18px -14px 8px; padding: 8px 14px; font-size: 13px; font-weight: 800; color: var(--text-2);
  background: linear-gradient(var(--bg) 70%, transparent); text-transform: capitalize; }
.day-h:first-child { margin-top: 0; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; position: relative; }
.mcard.live { border-color: rgba(255,77,106,.3); background: linear-gradient(180deg, rgba(255,77,106,.06), var(--surface) 40%); }
.mhead { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.mhead .lg { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.mhead .lg img { width: 14px; height: 14px; object-fit: contain; }
.mhead .time { margin-left: auto; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mteams { display: grid; gap: 8px; }
.mteam { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 650; font-size: 15px; }
.mteam .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mteam .sc { margin-left: auto; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mteam.lose { color: var(--text-2); }
.modds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.modds.extra { display: none; }
.mfoot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.mfoot .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-weight: 650; color: var(--text-2); padding: 4px 0 4px 8px; }
.odd { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 6px 4px 7px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; user-select: none; transition: transform .08s, background .15s, border-color .15s; overflow: hidden; }
.odd:active { transform: scale(.96); }
.odd .lb { font-size: 11px; color: var(--muted); font-weight: 700; }
.odd .ov { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.odd .pb { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--violet); opacity: .8; border-radius: 0 3px 0 0; }
.odd .pp { font-size: 10.5px; color: #a995ff; font-weight: 700; }
.odd.sel { background: linear-gradient(180deg, #2bf29b, var(--green-2)); border-color: transparent; color: var(--green-ink); }
.odd.sel .lb, .odd.sel .pp { color: rgba(3,32,15,.7); }
.odd.sel .pb { background: var(--green-ink); opacity: .35; }
.odd.value { border-color: rgba(255,197,61,.55); }
.odd.value::after { content: 'VALUE'; position: absolute; top: 3px; right: 4px; font-size: 7.5px; font-weight: 900; letter-spacing: .4px; color: var(--gold); }
.odd.sel.value::after { color: var(--green-ink); }
.odd.model .ov { color: var(--text-2); }
.odd.off { opacity: .35; pointer-events: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.legend i { display: inline-block; width: 18px; height: 3px; background: var(--violet); border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* ---------- meccs részletek ---------- */
.hero { border-radius: var(--r-lg); padding: 18px 14px 16px; background: radial-gradient(500px 220px at 50% -40%, rgba(25,230,140,.18), transparent 70%), var(--surface); border: 1px solid var(--line); }
.hero-lg { display: flex; justify-content: center; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 14px; text-align: center; }
.hero-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; text-align: center; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.hero-team .tn { font-weight: 750; font-size: 15px; line-height: 1.2; }
.hero-score { font-size: 38px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; padding-top: 6px; white-space: nowrap; }
.hero-time { font-size: 26px; font-weight: 850; padding-top: 10px; }
.hero-st { font-size: 12.5px; color: var(--muted); font-weight: 650; margin-top: 2px; }
.ptabs { position: sticky; top: calc(var(--header-h) + var(--sat)); z-index: 6; margin: 14px -14px 14px; padding: 8px 14px; background: rgba(7,9,13,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.probbar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; font-size: 12.5px; font-weight: 800; gap: 2px; }
.probbar div { display: grid; place-items: center; min-width: 34px; color: #061109; }
.mk { margin-bottom: 18px; }
.mk-t { font-size: 13px; font-weight: 750; color: var(--text-2); margin-bottom: 8px; }
.mk-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv b { font-variant-numeric: tabular-nums; }
.form { display: inline-flex; gap: 4px; }
.fp { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 850; }
.fp.W { background: rgba(25,230,140,.18); color: var(--green); }
.fp.D { background: rgba(183,193,207,.15); color: var(--text-2); }
.fp.L { background: rgba(255,77,106,.16); color: var(--red); }
.h2h { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.h2h:last-child { border-bottom: 0; }
.h2h .s { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--surface-2); padding: 3px 9px; border-radius: 8px; }
.inj { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13.5px; }
.inj::before { content: '+'; width: 18px; height: 18px; border-radius: 5px; background: var(--red); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 13px; flex: none; }

/* ---------- hírek ---------- */
.news { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news:last-child { border-bottom: 0; }
.news .t { font-weight: 650; font-size: 14.5px; line-height: 1.35; }
.news .m { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.news.alert .t { color: #ffd0d8; }

/* ---------- AI ---------- */
.ai-hero { border-radius: var(--r-lg); padding: 18px; border: 1px solid rgba(139,108,255,.3);
  background: radial-gradient(600px 300px at 100% 0%, rgba(139,108,255,.25), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(25,230,140,.12), transparent 60%), var(--surface); }
.ai-hero h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.3px; }
.target { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; }
.target input { text-align: center; font-size: 34px; font-weight: 900; height: 66px; letter-spacing: -.5px; background: rgba(0,0,0,.35); border-color: rgba(139,108,255,.4); }
.target input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,108,255,.2); }
.step { width: 56px; height: 66px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); font-size: 26px; font-weight: 700; cursor: pointer; flex: none; }
.step:active { transform: scale(.95); }
details.adv { margin-top: 10px; }
details.adv summary { cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--text-2); list-style: none; padding: 6px 0; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::after { content: ' ▾'; color: var(--muted); }
.sugg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-top: 12px; }
.sugg.best { border-color: rgba(139,108,255,.45); box-shadow: 0 0 0 1px rgba(139,108,255,.15), 0 10px 30px rgba(139,108,255,.12); }
.sugg-top { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.sugg-top .k { font-size: 11px; color: var(--muted); font-weight: 650; }
.sugg-top .v { font-size: 18px; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.leg-row { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 12px; }
.leg-row .why { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.leg-row .o { font-weight: 850; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; }
.note { border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; background: rgba(255,197,61,.07); border: 1px solid rgba(255,197,61,.22); color: #f3dfae; }
.note.info { background: rgba(77,163,255,.07); border-color: rgba(77,163,255,.22); color: #c5defb; }
.vrow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vrow:last-child { border-bottom: 0; }

/* ---------- szelvény (bottom sheet + asztali oszlop) ---------- */
.slip-fab { position: fixed; z-index: 34; right: calc(14px + var(--sar)); bottom: calc(var(--tabbar-h) + var(--sab) + 14px); display: none; }
.slip-body .leg { position: relative; background: var(--surface-2); border-radius: 14px; padding: 12px 40px 12px 12px; margin-bottom: 8px; }
.slip-body .leg .x { position: absolute; top: 8px; right: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; border-radius: 8px; }
.slip-body .leg .t { font-weight: 700; font-size: 14px; }
.slip-body .leg .s { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; gap: 10px; }
.slip-body .leg .s b { font-size: 16px; font-variant-numeric: tabular-nums; }
.slip-sum { display: grid; gap: 10px; margin-top: 12px; }
.slip-sum .r { display: flex; justify-content: space-between; font-size: 14px; }
.slip-sum .r b { font-variant-numeric: tabular-nums; }
.stake-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stake-row button { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 700; cursor: pointer; font-size: 13.5px; }
.payout { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: rgba(25,230,140,.08); border: 1px solid rgba(25,230,140,.2); }
.payout b { font-size: 22px; color: var(--green); font-variant-numeric: tabular-nums; }
.slip-empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.slip-empty .big { font-size: 40px; margin-bottom: 6px; }

/* bottom sheet / modal */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); animation: fade .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(92dvh - var(--sat)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 8px calc(16px + var(--sar)) calc(20px + var(--sab)) calc(16px + var(--sal)); animation: up .28s cubic-bezier(.2,.9,.3,1); box-shadow: var(--shadow); }
.sheet-handle { width: 42px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 4px auto 12px; cursor: pointer; }
.sheet-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-2); cursor: pointer; font-size: 14px; }
.sheet h2 { margin: 2px 0 14px; font-size: 20px; letter-spacing: -.3px; padding-right: 40px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 6px; border: 0; background: none; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; cursor: pointer; text-align: left; }
.menu-list a:last-child, .menu-list button:last-child { border-bottom: 0; }
.menu-list svg { color: var(--muted); }

/* toast */
#toast { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); top: calc(var(--sat) + 12px); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: drop .25s; display: flex; gap: 10px; align-items: center; }
.toast::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-weight: 900; font-size: 12px; flex: none; }
.toast.err::before { content: '!'; background: var(--red); color: #fff; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }

/* skeleton */
.sk { border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .big { font-size: 42px; margin-bottom: 8px; }

/* táblázat */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 650; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .pos-n { width: 28px; color: var(--muted); font-weight: 700; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl .team-cell { display: flex; align-items: center; gap: 10px; font-weight: 650; min-width: 0; }
.zone-cl { box-shadow: inset 3px 0 0 var(--green); }
.zone-rel { box-shadow: inset 3px 0 0 var(--red); }

/* lista elemek (admin, szelvények) */
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.bet { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; position: relative; overflow: hidden; }
.bet::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.bet.won::before { background: var(--green); } .bet.lost::before { background: var(--red); } .bet.void::before { background: var(--muted); }
.bet-legs { margin-top: 10px; }
.bet-leg { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; align-items: start; }
.bet-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bet-foot .k { font-size: 11px; color: var(--muted); font-weight: 650; }
.bet-foot .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.ucard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.ucard .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 850; color: #fff; flex: none; }
.log { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.log:last-child { border-bottom: 0; }
.log .m { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.log .msg { word-break: break-word; }
.lv-error { color: var(--red); } .lv-warn { color: var(--orange); } .lv-security { color: #c5a3ff; } .lv-info { color: var(--blue); }
.atabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 16px; padding: 0 14px 2px; scrollbar-width: none; }
.atabs::-webkit-scrollbar { display: none; }
.job { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; }
.job:last-child { border-bottom: 0; }
.rank { width: 32px; text-align: center; font-weight: 850; font-size: 16px; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* ==========================================================================
   Tablet / asztali
   ========================================================================== */
@media (min-width: 600px) {
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .modds.extra { display: grid; }
  .mbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: center; }
  .mbody .modds { margin-top: 0; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); border-radius: 24px; border-bottom: 1px solid var(--line-2); animation: pop .22s; max-height: 88dvh; }
  .sheet-handle { display: none; }
  @keyframes pop { from { transform: translate(-50%, -46%); opacity: 0; } }
}
@media (min-width: 1000px) {
  :root { --header-h: 0px; }
  .topbar, .tabbar { display: none; }
  .app { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 22px 14px; border-right: 1px solid var(--line); background: var(--bg-2); gap: 4px; }
  .sidebar .brand { padding: 0 10px 18px; font-size: 20px; }
  .sidebar .brand img { width: 34px; height: 34px; }
  .side-link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text-2); font-weight: 600; position: relative; }
  .side-link:hover { background: var(--surface); color: var(--text); }
  .side-link.on { background: var(--surface-2); color: var(--text); }
  .side-link.on svg { color: var(--green); }
  .side-link.ai.on svg { color: var(--violet); }
  .side-link .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: auto; animation: pulse 1.3s infinite; }
  .side-sep { height: 1px; background: var(--line); margin: 10px 4px; }
  .side-user { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
  .main { padding: 28px 28px 60px; max-width: 920px; }
  .day-h { top: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .ptabs { top: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .atabs { margin-left: 0; margin-right: 0; padding-left: 0; }
  .slip-fab { bottom: 24px; right: 24px; }
  .slip-fab.show { display: inline-flex; }
  .page-title { font-size: 30px; }
}
@media (min-width: 1360px) {
  .app.with-slip { grid-template-columns: 240px minmax(0, 1fr) 360px; }
  .app.with-slip .side-slip { display: block; position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 24px 18px; border-left: 1px solid var(--line); background: var(--bg-2); }
  .app.with-slip ~ .slip-fab { display: none !important; }
  .main { margin: 0; }
}
@media (hover: hover) {
  .odd:hover { border-color: rgba(255,255,255,.25); }
  .odd.sel:hover { border-color: transparent; }
  .chip:hover { border-color: rgba(255,255,255,.25); }
  a.mcard-link:hover .mteam .nm { color: var(--green); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* AI találatai */
.hits-link { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.hits-link > svg:first-child { color: var(--violet); width: 26px; height: 26px; }
.hit-stats .stat { text-align: left; cursor: pointer; font: inherit; color: inherit; border: 1px solid var(--line); }
.hit-stats .stat.on { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset; }
.mcard.hit.won { border-left: 3px solid var(--green); }
.mcard.hit.lost { border-left: 3px solid var(--red); }
.tips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tip { font-size: 12px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-2); }
.tip.won { border-color: rgba(25, 230, 140, .45); color: var(--green); }
.tip.lost { border-color: rgba(255, 90, 90, .4); color: #ff8b8b; }
.tip.main { font-weight: 700; }
.tip.won.main { background: rgba(25, 230, 140, .14); }
.tip.lost.main { background: rgba(255, 90, 90, .12); }
.card.tune { margin-top: 10px; }

/* élő odds, odds esés, heti verseny, statisztika, bot */
.odd.live .pb { background: var(--red); }
.odd.live .pp { color: #ff9b9b; }
.live-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #ff9b9b; margin-top: 8px; }
.wallet-seg button { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; padding-top: 6px; padding-bottom: 6px; }
.wallet-seg .muted { font-size: 11px; font-weight: 600; }
.weekly-hero { margin-bottom: 14px; }
.avatar.bot { background: linear-gradient(135deg, #5b3fd6, #8b6cff); font-size: 18px; }
.li.bot-row { background: rgba(139, 108, 255, .06); border-radius: 12px; }
.fav-btn.on { color: var(--gold); border-color: rgba(255, 200, 80, .45); }
.spark { width: 100%; height: 120px; display: block; }
.spark-zero { stroke: var(--line); stroke-dasharray: 4 4; }
.spark-line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.spark-line.up { stroke: var(--green); }
.spark-line.down { stroke: var(--red); }
details.adv-card summary { cursor: pointer; list-style: none; }
details.adv-card summary::-webkit-details-marker { display: none; }
details.adv-card summary::after { content: ' ▾'; color: var(--muted); }

/* szöglet / lap piac csoportok */
.mk-group { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--muted, #8a96a6); margin: 18px 0 8px; text-transform: uppercase; }

/* cash out, megosztás */
.bet-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.bet-actions .grow { flex: 1 1 auto; min-width: 0; }
.gold-btn { background: linear-gradient(135deg, #f5c542, #e09b1a); color: #1a1205; border: 0; font-weight: 800; }
.badge-n.inbox-n { margin-left: auto; }
.side-link .badge-n.inbox-n { position: static; }
.tab .badge-n.inbox-n { position: absolute; top: 4px; right: calc(50% - 22px); margin: 0; }
.avatar.sm { width: 24px; height: 24px; font-size: 12px; }
/* párbaj */
.duel-match { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 4px; text-align: center; }
.duel-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.duel-vs .pot { text-align: center; padding: 0 8px; }
.duel-vs b { display: block; font-size: 14px; }
/* kitüntetések */
.badge-strip { background: none; border: 0; padding: 2px 0 0; font-size: 15px; letter-spacing: 2px; cursor: pointer; text-align: left; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bdg { border-radius: 14px; padding: 12px 10px; text-align: center; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); opacity: .42; filter: grayscale(1); }
.bdg.on { opacity: 1; filter: none; border-color: rgba(245,197,66,.45); background: linear-gradient(160deg, rgba(245,197,66,.12), rgba(255,255,255,.02)); }
.bdg .bi { font-size: 30px; line-height: 1.2; }
.bdg .bn { font-weight: 800; font-size: 13px; margin-top: 4px; }
.bdg .bd { font-size: 11px; color: var(--muted, #8a96a6); margin-top: 2px; }
.bdg .be { font-size: 10px; color: #f5c542; margin-top: 4px; }
/* kezdőcsapatok */
.lu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lu-h { font-weight: 800; font-size: 13px; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lu-p { display: grid; grid-template-columns: 24px 1fr auto; gap: 6px; align-items: center; font-size: 13px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.lu-p .j { color: var(--muted, #8a96a6); font-variant-numeric: tabular-nums; text-align: right; }
.lu-p.sub { opacity: .75; }
.lu-p.key { opacity: 1; color: #f5c542; font-weight: 700; }
@media (max-width: 380px) { .lu-grid { grid-template-columns: 1fr; } }
