:root {
  --bg: #0b0c0f; --bg2: #101216; --panel: #15171c; --panel2: #1c1f26; --panel3: #262a33; --line: rgba(255,255,255,.07);
  --text: #f1f3f7; --muted: #9aa1ad; --dim: #646b78;
  --accent: #ef3340; --accent2: #c81e2b; --accent-soft: rgba(239, 51, 64, .13);
  --green: #34d399; --blue: #60a5fa; --live: #ef3340; --gold: #fbbf24; --up: #34d399; --down: #fb7185;
  --radius: 14px; --shadow: 0 24px 64px rgba(0,0,0,.55);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Geist, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
img { display: inline-block; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--panel3); border-radius: 8px; }


.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 14, 22, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; gap: 22px; padding: 0 18px; height: 60px; max-width: 1680px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; color: var(--text); }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #ff7a18); display: grid; place-items: center; font-style: normal; font-size: 16px; color: #fff; }
.logo small { font-weight: 600; font-size: 10px; color: var(--gold); border: 1px solid var(--gold); border-radius: 5px; padding: 0 5px; }
.nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav a { color: var(--muted); padding: 8px 13px; border-radius: 9px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: var(--text); background: var(--panel2); }
.nav .cnt { background: var(--live); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; font-weight: 700; }
.wallet { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; white-space: nowrap; cursor: pointer; }
.wallet b { font-variant-numeric: tabular-nums; } .wallet span { color: var(--muted); font-size: 12px; }
.wallet .demo { font-size: 10px; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pulse.beat { animation: beat 1.1s ease-out; } .pulse.stale { background: var(--gold); }
@keyframes beat { from { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } to { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }


.wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr) 340px; gap: 16px; max-width: 1680px; margin: 0 auto; padding: 16px 18px 40px; }
.side { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; display: grid; gap: 12px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.side .box { padding: 6px; }
.side h4 { margin: 8px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.side button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; background: none; border: 0; border-radius: 8px; text-align: left; color: var(--muted); font-weight: 500; }
.side button:hover { background: var(--panel2); color: var(--text); }
.side button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side button .ic { width: 20px; text-align: center; font-size: 15px; }
.side button .n { margin-left: auto; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.side button .lv { font-size: 10px; background: var(--live); color: #fff; border-radius: 999px; padding: 0 5px; font-weight: 700; }
.side button img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
main { min-width: 0; }


.h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; display: flex; align-items: center; gap: 10px; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.days { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: thin; }
.days button { flex: none; min-width: 70px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: grid; justify-items: center; line-height: 1.25; }
.days button b { font-size: 13px; } .days button span { font-size: 11px; color: var(--muted); } .days button small { font-size: 11px; color: var(--dim); }
.days button.on { background: var(--accent); border-color: var(--accent); color: #fff; } .days button.on span, .days button.on small { color: #fff; }
.days button.zero { opacity: .4; }
.tools { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; padding: 9px 0; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--panel3); color: var(--text); }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; color: var(--muted); background: var(--panel2); border-radius: 5px; padding: 1px 7px; }
.live-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 700; font-size: 12px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.spin { width: 22px; height: 22px; border: 3px solid var(--panel3); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; margin: 0 auto 10px; }
@keyframes rot { to { transform: rotate(360deg); } }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; }
.btn:hover { background: #f0353d; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 600; } .btn.ghost:hover { background: var(--panel3); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }


.league { margin-bottom: 26px; }
.league > header { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; font-weight: 700; font-size: 17px; cursor: pointer; }
.league > header img { width: 20px; height: 20px; object-fit: contain; } .league > header img.fl { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; }
.league > header .arr { color: var(--muted); font-size: 18px; }
.league > header .n { color: var(--dim); font-size: 12px; font-weight: 500; }
.league > header .star { margin-left: auto; background: none; border: 0; font-size: 20px; color: var(--muted); padding: 0 4px; line-height: 1; }
.league > header .star.on { color: var(--gold); }
.league.closed .rows { display: none; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--panel); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: background .15s; }
.row:hover { background: #202025; }
.row.flash { animation: flash 2s ease-out; }
@keyframes flash { from { background: rgba(245, 179, 1, .16); } to { background: var(--panel); } }
.row .lft { padding: 12px 16px; min-width: 0; border-right: 1px solid var(--line); display: grid; gap: 6px; align-content: center; }
.row .stl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; min-height: 18px; }
.row .stl.live { color: var(--green); } .row .stl.live .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.row .stl .pc { margin-left: auto; color: var(--dim); font-size: 11px; font-weight: 600; display: flex; gap: 16px; }
.teams { display: grid; gap: 5px; min-width: 0; }
.teams div { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 15px; }
.teams img { width: 20px; height: 20px; object-fit: contain; }
.teams span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams .w .nm { font-weight: 700; }
.teams .sc, .teams .p1 { font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }
.teams .sc { font-weight: 700; } .teams .p1 { color: var(--muted); }
.teams .w .sc { color: var(--text); }
.teams .x { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 6px; }
.row .rgt { padding: 12px 14px; display: grid; gap: 8px; align-content: center; min-width: 380px; }
.row .rgt .mkt { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.odds { display: flex; gap: 8px; align-items: center; }
.odd { flex: 1; min-width: 96px; height: 42px; border-radius: 8px; background: var(--panel2); border: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; position: relative; }
.odd i { font-style: normal; font-size: 13px; color: var(--muted); } .odd b { font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 700; }
.odd:hover:not(:disabled) { background: var(--panel3); }
.odd.sel { background: var(--accent); } .odd.sel i, .odd.sel b { color: #fff; }
.odd:disabled { cursor: not-allowed; opacity: .45; }
.odd.none { visibility: hidden; }
.odd .mv { position: absolute; top: 3px; right: 5px; font-size: 9px; }
.odd .mv.up { color: var(--up); } .odd .mv.down { color: var(--down); } .odd.sel .mv { color: #fff; }
.plus { background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; min-width: 34px; }
.plus:hover { color: var(--text); }
.row:not(.open) .extra { display: none !important; } .row.open .plus[data-more] { color: var(--accent); }
.noodds { color: var(--dim); font-size: 12.5px; text-align: center; }
.more { display: none; }
.src { display: flex; gap: 4px; } .src span { font-size: 9px; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; text-transform: uppercase; }
.evcard { margin-bottom: 12px; overflow: hidden; }
.evcard header { padding: 11px 14px; background: var(--panel2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.evcard header b { font-size: 14px; }
.evcard .bd { padding: 6px 0; }
.evcard .br { display: grid; grid-template-columns: 44px 24px 1fr auto; gap: 8px; align-items: center; padding: 6px 14px; font-size: 13px; }
.evcard .br img { width: 20px; height: 15px; object-fit: contain; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
th { color: var(--dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
td.n, th.n { text-align: right; }
td img { width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-right: 8px; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel2); }
.tw { overflow-x: auto; }


.slip { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); display: flex; flex-direction: column; overflow: hidden; }
.slip { background: var(--bg2); }
.slip .find { display: flex; align-items: center; gap: 8px; margin: 12px; background: var(--panel2); border-radius: 22px; padding: 0 14px; }
.slip .find input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; padding: 10px 0; }
.slip .hd { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; }
.slip .tog { display: flex; background: var(--panel2); border-radius: 10px; padding: 3px; }
.slip .tog button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
.slip .tog button.on { background: var(--panel3); color: var(--text); } .slip .tog button:disabled { opacity: .35; cursor: not-allowed; }
.slip .trash { margin-left: auto; display: flex; align-items: center; gap: 6px; background: var(--panel2); border: 0; border-radius: 18px; padding: 6px 12px; font-weight: 700; }
.slip .ico { background: var(--panel2); border: 0; border-radius: 50%; width: 32px; height: 32px; }
.slip .bd { overflow-y: auto; flex: 1; padding: 0 12px 10px; display: grid; gap: 10px; align-content: start; }
.sel-card { background: var(--panel); border-radius: 12px; padding: 12px; position: relative; }
.sel-card .m { font-weight: 700; padding-right: 28px; font-size: 14px; }
.sel-card .t { font-size: 12px; color: var(--muted); margin-top: 2px; } .sel-card .t.live { color: var(--green); font-weight: 600; }
.sel-card .pk { margin-top: 10px; background: var(--panel2); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto 26px; align-items: center; gap: 6px; }
.sel-card .pk b { font-size: 15px; } .sel-card .pk small { display: block; color: var(--muted); font-size: 12px; }
.sel-card .pk .od { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sel-card .pk button { background: none; border: 0; color: var(--accent); font-size: 15px; }
.sel-card.changed .pk { box-shadow: inset 0 0 0 1px var(--gold); }
.sel-card .chg { font-size: 11.5px; color: var(--gold); margin-top: 6px; }
.sys { display: flex; gap: 6px; flex-wrap: wrap; } .sys button { background: var(--panel2); border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.sys button.on { background: var(--accent); color: #fff; }
.slip .ft { padding: 12px; display: grid; gap: 10px; border-top: 1px solid var(--line); background: var(--bg2); }
.slip .sk { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.stake { background: var(--panel2); border-radius: 10px; padding: 6px 12px; border: 1px solid transparent; }
.stake:focus-within { border-color: var(--accent); }
.stake small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
.stake div { display: flex; align-items: baseline; gap: 6px; } .stake input { width: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 17px; font-weight: 700; padding: 2px 0; }
.stake span { color: var(--muted); font-weight: 600; }
.slip .tot { text-align: right; } .slip .tot small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .05em; } .slip .tot b { font-size: 18px; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.quick button { background: var(--panel2); border: 0; border-radius: 7px; padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.quick button:hover { color: var(--text); }
.win { background: var(--panel); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.win small { font-size: 12px; font-weight: 800; letter-spacing: .04em; } .win b { font-size: 20px; font-variant-numeric: tabular-nums; }
.slip .go { width: 100%; padding: 14px; font-size: 15px; }
.slip .chk { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.slip .chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.msg { font-size: 12.5px; border-radius: 8px; padding: 8px 10px; } .msg.err { background: rgba(227,38,46,.14); color: #ff9a9e; } .msg.ok { background: rgba(61,220,132,.12); color: var(--green); }
.msg.warn { background: rgba(245,179,1,.12); color: var(--gold); }
.slip .note { font-size: 11px; color: var(--dim); text-align: center; }
.slip-empty { text-align: center; color: var(--muted); padding: 30px 16px; }
.slip-empty .ic { font-size: 34px; margin-bottom: 6px; }
.slip .lk { display: flex; justify-content: center; gap: 14px; font-size: 12.5px; padding-bottom: 4px; } .slip .lk a { color: var(--muted); cursor: pointer; } .slip .lk a:hover { color: var(--text); }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 25; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 800; box-shadow: var(--shadow); display: none; }


.receipt { background: #fff; color: #111; width: 330px; max-width: 100%; margin: 0 auto; padding: 18px 18px 14px; font: 13px/1.45 "Courier New", ui-monospace, monospace; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.receipt h3 { text-align: center; margin: 0; font-size: 18px; letter-spacing: .1em; font-family: Inter, sans-serif; font-weight: 800; }
.receipt .c { text-align: center; } .receipt .dm { text-align: center; font-size: 11px; border: 1px dashed #999; padding: 3px; margin: 8px 0; }
.receipt hr { border: 0; border-top: 1px dashed #888; margin: 10px 0; }
.receipt .s { margin-bottom: 8px; } .receipt .s > b { display: block; } .receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.receipt .big { font-size: 16px; font-weight: 700; }
.receipt svg { display: block; margin: 8px auto 0; max-width: 100%; }
.receipt .code { text-align: center; font-weight: 700; letter-spacing: .18em; font-size: 14px; }
.receipt .res { font-size: 12px; }
.rc-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
#printArea { display: none; }
@media print {
  @page { size: 80mm auto; margin: 3mm; }
  body > *:not(#printArea) { display: none !important; }
  html, body { background: #fff !important; }
  #printArea { display: block !important; }
  #printArea .receipt { box-shadow: none; width: 100%; padding: 0; }
}


.modal-bg { position: fixed; inset: 0; background: rgba(3, 6, 12, .7); z-index: 40; display: grid; place-items: start center; padding: 40px 16px; overflow-y: auto; }
.modal { width: min(940px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.modal .bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.modal .bar .cr { flex: 1; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icb { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; }
.modal .body { padding: 16px; }
.hero { background: radial-gradient(ellipse at top, rgba(34,197,94,.10), transparent 70%), var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.hero .lg { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.hero .lg img { width: 20px; height: 20px; object-fit: contain; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.vs .t { display: grid; justify-items: center; gap: 8px; text-align: center; cursor: pointer; }
.vs .t img { width: 64px; height: 64px; object-fit: contain; }
.vs .t b { font-size: 16px; } .vs .t:hover b { color: var(--accent); }
.vs .sc { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; letter-spacing: -.02em; }
.vs .st { text-align: center; color: var(--muted); font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.facts b { color: var(--text); font-weight: 600; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pills button { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--muted); font-weight: 600; }
.pills button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.sec { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.sec h4 { margin: 0 0 10px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.tl .e { display: grid; grid-template-columns: 1fr 52px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tl .e:first-of-type { border-top: 0; } .tl .e .mn { text-align: center; font-weight: 700; color: var(--muted); }
.tl .e .l { text-align: right; } .tl .e small { display: block; color: var(--dim); font-size: 11.5px; }
.tl .sep { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px; border-top: 1px solid var(--line); }
.stat { margin: 10px 0; } .stat .l { display: flex; justify-content: space-between; font-size: 13px; } .stat .l span { color: var(--muted); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.bars > div { height: 6px; background: var(--panel3); border-radius: 3px; display: flex; overflow: hidden; }
.bars > div:first-child { justify-content: flex-end; } .bars i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.bars > div:last-child i { background: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pitch { position: relative; aspect-ratio: 68/86; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(0deg, #1b5e34 0 10%, #1f6a3b 10% 20%); border: 1px solid #2c7a49; }
.pitch::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 0; height: 14%; border: 2px solid rgba(255,255,255,.35); border-bottom: 0; }
.pl { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; width: 76px; cursor: pointer; }
.pl .ph { width: 36px; height: 36px; border-radius: 50%; background: #e5e7eb; overflow: hidden; border: 2px solid #fff; position: relative; display: grid; place-items: center; color: #111; font-weight: 700; font-size: 12px; }
.pl .ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pl .nm { font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; margin-top: 2px; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt { font-size: 10px; font-weight: 800; border-radius: 4px; padding: 0 4px; color: #04110a; }
.pl .rt { position: absolute; top: -5px; right: 10px; }
.rt.a { background: #60a5fa; } .rt.b { background: #4ade80; } .rt.c { background: #fbbf24; } .rt.d { background: #f87171; }
.plist .p { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.plist .p:hover b { color: var(--accent); }
.plist .p .no { width: 22px; text-align: right; color: var(--dim); font-size: 12px; }
.plist .p img.f { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--panel2); }
img.flag { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.modal img:not([class]) { max-width: 22px; max-height: 22px; object-fit: contain; }
.plist .p .r { margin-left: auto; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.form { display: flex; gap: 4px; } .form span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #04110a; }
.form .W, .form .V { background: #4ade80; } .form .D, .form .E { background: #94a3b8; } .form .L, .form .I { background: #f87171; }
.prof { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; }
.prof img.big { width: 110px; height: 110px; border-radius: 14px; object-fit: cover; background: var(--panel2); }
.prof h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tile { background: var(--panel2); border-radius: 10px; padding: 10px 12px; } .tile b { display: block; font-size: 18px; } .tile span { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 16px; font-size: 13px; } .kv span { display: block; color: var(--dim); font-size: 11.5px; }


.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; } .kpi span { color: var(--muted); font-size: 12px; display: block; } .kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi b.g { color: var(--accent); } .kpi b.r { color: var(--live); }
.ticket { margin-bottom: 10px; overflow: hidden; }
.ticket > header { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 11px 14px; background: var(--panel2); font-size: 13px; }
.ticket > header .st { margin-left: auto; font-weight: 700; border-radius: 6px; padding: 2px 9px; font-size: 12px; }
.st.pending { background: rgba(245,179,1,.14); color: var(--gold); } .st.won { background: var(--accent-soft); color: var(--accent); }
.st.lost { background: rgba(239,68,68,.14); color: #fca5a5; } .st.void { background: var(--panel3); color: var(--muted); }
.res { font-size: 15px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 6px 0 16px; }
.flow div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: relative; }
.flow div b { display: block; margin-bottom: 4px; } .flow div span { font-size: 12.5px; color: var(--muted); }
.flow div:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%); color: var(--accent); font-weight: 800; z-index: 1; }
.srcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; }
.srcc { padding: 16px; display: grid; gap: 8px; align-content: start; }
.srcc header { display: flex; align-items: center; gap: 10px; } .srcc header b { font-size: 16px; }
.srcc header .ok { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.srcc header .bad { margin-left: auto; font-size: 11px; font-weight: 700; color: #fca5a5; background: rgba(239,68,68,.14); padding: 2px 8px; border-radius: 6px; }
.srcc p { margin: 0; font-size: 13px; color: var(--muted); } .srcc .meta { display: flex; flex-wrap: wrap; gap: 6px; }
code { background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; color: #c4f2d2; }
.api td:first-child { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: #c4f2d2; }


body { background: radial-gradient(1100px 520px at 75% -12%, rgba(239,51,64,.09), transparent 62%), radial-gradient(800px 480px at -8% 0%, rgba(96,165,250,.05), transparent 60%), var(--bg); background-attachment: fixed; }
.top { background: rgba(11,12,15,.72); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.logo i { background: linear-gradient(135deg, var(--accent), #ff8a3d); box-shadow: 0 6px 20px rgba(239,51,64,.4); border-radius: 10px; }
.box, .sec, .kpi { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 60%), var(--panel); border: 1px solid var(--line); }
.kpi { position: relative; overflow: hidden; border-radius: 16px; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .8; }
.kpi span { text-transform: uppercase; letter-spacing: .06em; font-size: 11px !important; font-weight: 600; }
.side .box { background: transparent; border: 0; padding: 0; }
.side button { border-radius: 12px; padding: 9px 12px; min-height: 40px; }
.side button:hover { background: rgba(255,255,255,.05); }
.side button.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.row { border: 1px solid var(--line); border-radius: 16px; transition: background .15s, transform .15s, border-color .15s, box-shadow .15s; }
.row:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.12); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.row:has(.stl.live) { background: linear-gradient(90deg, rgba(52,211,153,.08), transparent 42%), var(--panel); box-shadow: inset 3px 0 0 var(--green); }
.odd { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; transition: transform .1s, background .15s, border-color .15s; }
.odd:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.12); }
.odd:active:not(:disabled) { transform: scale(.97); }
.odd.sel { background: linear-gradient(180deg, #ff4b57, var(--accent2)); border-color: transparent; box-shadow: 0 6px 18px rgba(239,51,64,.35); }
.btn { border-radius: 12px; } .btn.ghost { background: rgba(255,255,255,.05); border-color: var(--line); }
.seg, .mode { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.mode a.on { box-shadow: 0 4px 14px rgba(239,51,64,.35); }
th { background: rgba(255,255,255,.02); } tr.click:hover td, tbody tr:hover td { background: rgba(255,255,255,.025); }
.h1 { font-size: 26px; letter-spacing: -.03em; }
.league > header { font-size: 16px; }
.scard, .blk, .presets button, .sitepick button { border-radius: 14px; }
.odd.chg-up { animation: oup 2.5s ease-out; } .odd.chg-down { animation: odown 2.5s ease-out; }
@keyframes oup { from { box-shadow: inset 0 0 0 2px var(--green); } to { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes odown { from { box-shadow: inset 0 0 0 2px var(--down); } to { box-shadow: inset 0 0 0 0 transparent; } }
.btn { box-shadow: 0 6px 18px rgba(227,38,46,.25); } .btn.ghost { box-shadow: none; }
.slip { border: 1px solid #2a2a31; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.days button { transition: transform .1s; } .days button:hover { transform: translateY(-1px); border-color: #3a3a42; }
.ico-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 18px; border-radius: 5px; cursor: pointer; }
.ico-btn svg { width: 15px; height: 15px; } .ico-btn.cam { color: var(--accent); } .ico-btn.trk { color: var(--green); }
.ico-btn:hover { background: var(--panel3); }


.trk-wrap { background: #101114; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.trk-top { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px; font-weight: 700; font-size: 14px; background: linear-gradient(180deg, #1e1f24, #141519); }
.trk-top .clk { font-variant-numeric: tabular-nums; } .trk-top .sep { width: 1px; height: 14px; background: #555; }
.stadium { position: relative; padding: 18px 28px 26px; background: linear-gradient(180deg, #1a1b20 0, #26272d 22%, #1a1b20 23%); perspective: 900px; }
.stadium::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 3px, transparent 3px 9px); opacity: .6; }
.field { position: relative; aspect-ratio: 105/62; transform: rotateX(24deg); transform-origin: 50% 100%; border-radius: 4px; overflow: visible;
  background: repeating-linear-gradient(90deg, #3f8f2f 0 9.09%, #45992f 9.09% 18.18%); box-shadow: 0 30px 40px rgba(0,0,0,.45); }
.field svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ball { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #cfcfcf 60%, #8a8a8a);
  box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 2px 4px rgba(0,0,0,.6); transition: left .9s ease, top .9s ease; z-index: 2; }
.ball::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #222; transform: scale(.45); }
.evlbl { position: absolute; transform: translate(-50%, calc(-100% - 14px)); z-index: 3; min-width: 150px; max-width: 70%; background: rgba(20,22,26,.92); border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.5); transition: left .9s ease, top .9s ease; }
.evlbl .t { padding: 4px 10px; font-size: 12px; color: #ddd; } .evlbl .t b { color: #fff; }
.evlbl .n { padding: 5px 10px; font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evlbl.goal .n { background: var(--accent) !important; color: #fff !important; }
.evlbl.pop { animation: pop .35s ease-out; } @keyframes pop { from { opacity: .2; transform: translate(-50%, calc(-100% - 4px)) scale(.92); } }
.evst { padding: 4px 10px 8px; text-align: center; } .evst small { display: block; font-size: 10.5px; letter-spacing: .08em; color: #bbb; font-weight: 700; margin-bottom: 2px; }
.evrow { display: flex; align-items: center; justify-content: center; gap: 8px; } .evrow b { font-size: 18px; color: #fff; min-width: 16px; }
.zone { position: absolute; top: 0; bottom: 0; width: 34%; pointer-events: none; transition: left .8s ease, background .8s ease; border-radius: 3px; }
.attack { position: absolute; top: 50%; height: 0; z-index: 1; }
.trk-bot { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; padding: 10px 14px; background: #15161a; }
.trk-bot .sc { font-size: 24px; font-weight: 800; text-align: center; } .trk-bot .lbl { text-align: center; font-weight: 600; color: #ddd; }
.trk-bot .bar { display: flex; gap: 4px; margin-top: 6px; } .trk-bot .bar i { height: 4px; border-radius: 2px; display: block; }
.mom { display: flex; align-items: center; height: 70px; gap: 1px; padding: 6px 14px; background: #121317; }
.mom i { flex: 1; display: block; border-radius: 1px; }
.trk-feed { max-height: 240px; overflow-y: auto; }
.trk-feed div { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 7px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.trk-feed div b { color: var(--muted); }


.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.streams { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.streams button { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 11px; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.streams button.on { border-color: var(--accent); color: var(--text); }
.rng { width: 100%; accent-color: var(--accent); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 14px; }
.set-val { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.set-val small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; }


.team-hero { position: relative; display: grid; grid-template-columns: 130px 1fr auto; gap: 22px; align-items: center; padding: 22px 24px; border-radius: 16px; margin-bottom: 12px; overflow: hidden;
  background: radial-gradient(600px 220px at 0% 0%, color-mix(in srgb, var(--tc) 45%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--tc) 22%, #15151a), #121216 70%);
  border: 1px solid color-mix(in srgb, var(--tc) 35%, #2a2a30); }
.team-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: color-mix(in srgb, var(--tc) 18%, transparent); filter: blur(10px); }
.th-logo { width: 130px; height: 130px; border-radius: 26px; display: grid; place-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.35); }
.th-logo img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.th-kicker { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .02em; }
.team-hero h2 { margin: 4px 0 8px; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.th-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #cfcfd6; }
.th-next { position: relative; z-index: 1; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; min-width: 200px; display: grid; gap: 2px; cursor: pointer; }
.th-next small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; } .th-next span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.th-next:hover { border-color: var(--tc); }
.th-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.th-kpis div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .th-kpis b { display: block; font-size: 22px; font-weight: 800; } .th-kpis span { font-size: 12px; color: var(--muted); }
.sq-group h4 { margin: 18px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.sq-group h4 span { background: var(--panel2); border-radius: 999px; padding: 0 8px; color: var(--text); font-size: 11px; }
.sq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pcard { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 12px; text-align: center; cursor: pointer; position: relative; transition: transform .15s, border-color .15s; }
.pcard:hover { transform: translateY(-2px); border-color: var(--tc); }
.pc-top { display: flex; justify-content: space-between; align-items: center; min-height: 18px; }
.pc-no { font-weight: 800; font-size: 13px; color: var(--muted); } .pc-inj { font-size: 13px; }
.pc-ph { width: 72px; height: 72px; margin: 2px auto 8px; border-radius: 50%; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tc) 55%, #333), #1a1a1f); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 60%, transparent); }
.pc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .pc-ph span { font-weight: 800; color: rgba(255,255,255,.8); }
.pc-nm { display: block; font-size: 13.5px; line-height: 1.25; min-height: 34px; }
.pc-meta { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin: 3px 0 6px; } .pc-meta img.flag { width: 14px; height: 14px; }
.pc-st { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; } .pc-st span { font-size: 10.5px; background: var(--panel3); border-radius: 5px; padding: 1px 6px; color: #d4d4da; }
.pc-ga { margin-top: 6px; font-size: 12px; font-weight: 700; }
.fx-list, .tr-list { display: grid; gap: 8px; }
.fx { display: grid; grid-template-columns: 70px 140px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.fx:hover { border-color: #3a3a42; } .fx-d b { display: block; } .fx-d span, .fx-l { font-size: 12px; color: var(--muted); }
.fx-t { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; } .fx-t span:first-child { text-align: right; } .fx-t b { background: var(--panel2); border-radius: 7px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.fx-t .me { font-weight: 800; }
.trc { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.trc .tr-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; } .trc.in .tr-ic { background: rgba(61,220,132,.15); color: var(--green); } .trc.out .tr-ic { background: rgba(227,38,46,.15); color: var(--accent); }
.trc span { display: block; font-size: 12px; color: var(--muted); } .tr-r { text-align: right; }

.api-hero { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; } .api-hero p { color: #cfcfd6; font-size: 15px; }
.api-feat { list-style: none; padding: 0; display: grid; gap: 8px; color: #cfcfd6; } .api-feat li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.auth { padding: 18px; display: grid; gap: 10px; } .auth label, .console label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.auth input, .kf input, .kf select, .console input { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--text); font: inherit; outline: 0; }
.auth input:focus, .kf input:focus, .console input:focus { border-color: var(--accent); }
.kf { display: grid; grid-template-columns: 1fr 1.4fr 170px auto; gap: 8px; } .lbl4 { margin: 0 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.secret { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(61,220,132,.1); border: 1px solid rgba(61,220,132,.4); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.secret code { font-size: 14px; padding: 6px 10px; flex: 1; min-width: 260px; word-break: break-all; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 24px; } .spark i { width: 5px; background: var(--accent); border-radius: 1px; display: block; }
.console { display: grid; gap: 10px; } .get { background: var(--green); color: #04110a; font-weight: 800; border-radius: 8px; padding: 9px 10px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips .tag { cursor: pointer; border: 0; } .chips .tag:hover { color: var(--text); }
.resp { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .resp .rh { display: flex; gap: 14px; align-items: center; padding: 8px 12px; background: var(--panel2); font-size: 12.5px; color: var(--muted); }
.resp pre, pre.code, pre.mini { margin: 0; background: #0c0c0f; color: #d7f7e2; padding: 14px; overflow: auto; font: 12.5px/1.5 ui-monospace, Consolas, monospace; max-height: 520px; border-radius: 0; }
pre.code, pre.mini { border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; white-space: pre-wrap; word-break: break-all; }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 15% 0%, rgba(227,38,46,.18), transparent 60%), var(--bg); }
.gate .in { width: min(1000px, 100%); display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: center; }
.gate .logo { font-size: 22px; margin-bottom: 18px; } .gate h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; }
.gate p { color: #cfcfd6; font-size: 15px; margin: 0 0 16px; }
body.locked .top, body.locked .wrap, body.locked .fab { display: none !important; }
body.admin .wrap { grid-template-columns: minmax(0, 1fr); } body.admin .side, body.admin .slip, body.admin .fab, body.admin #walletChip { display: none !important; }
.top .in { gap: 18px; }
.mode { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-shrink: 0; }
.mode a { padding: 6px 14px; border-radius: 7px; color: var(--muted); font-weight: 700; font-size: 13px; }
.mode a.on { background: var(--accent); color: #fff; } .mode a:not(.on):hover { color: var(--text); }
.logo small { display: none; }
.nav a { padding: 8px 11px; font-size: 14px; gap: 6px; position: relative; }
.nav a.on { background: none; color: var(--text); } .nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.sitepick { display: grid; gap: 6px; } .sitepick button { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); }
.sitepick button.on { border-color: var(--accent); background: var(--accent-soft); } .sitepick .av { width: 30px; height: 30px; border-radius: 8px; background: var(--panel3); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.sitepick button.on .av { background: var(--accent); } .sitepick b { display: block; font-size: 13.5px; } .sitepick small { color: var(--muted); font-size: 11.5px; }
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 16px; }
.scard { padding: 16px; display: grid; gap: 12px; cursor: pointer; transition: border-color .15s; } .scard:hover { border-color: var(--panel3); }
.scard header { display: flex; align-items: center; gap: 12px; } .scard .av { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.scard.int .av { background: var(--panel3); } .scard header b { display: block; font-size: 15px; } .scard header small { color: var(--muted); font-size: 12px; }
.scard .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .scard .nums div { background: var(--panel2); border-radius: 8px; padding: 8px; }
.scard .nums span { display: block; font-size: 11px; color: var(--muted); } .scard .nums b { font-size: 15px; font-variant-numeric: tabular-nums; }
.scard footer { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--dim); }
.scard.off { opacity: .55; } .st.ok { background: rgba(61,220,132,.14); color: var(--green); }
.me { display: flex; align-items: center; gap: 8px; white-space: nowrap; } .me .av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 800; }
.me small { color: var(--muted); display: block; font-size: 11px; } .me b { font-size: 13px; display: block; line-height: 1.1; }
.kpi small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; } .pos { color: var(--green) !important; } .neg { color: var(--down) !important; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; }
.chart .c { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; position: relative; }
.chart .bars { display: flex; gap: 2px; align-items: flex-end; width: 100%; max-width: 40px; height: 100%; }
.chart .bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--accent); min-height: 2px; } .chart .bars i.p { background: var(--panel3); }
.chart small { font-size: 10px; color: var(--dim); white-space: nowrap; }
.chart .c:hover .tip { display: block; } .chart .tip { display: none; position: absolute; bottom: 100%; background: var(--panel3); border-radius: 8px; padding: 6px 9px; font-size: 11.5px; white-space: nowrap; z-index: 2; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel2); }
.bld { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.bld .opts { display: grid; gap: 12px; position: sticky; top: 76px; }
.bld label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bld select, .bld input:not([type=checkbox]):not([type=color]) { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; color: var(--text); font: inherit; outline: 0; width: 100%; }
.bld input[type=color] { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); padding: 2px; }
.bld .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.presets button { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text); font-weight: 700; font-size: 13px; }
.presets button small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; margin-top: 2px; } .presets button.on { border-color: var(--accent); background: var(--accent-soft); }
html, body { overflow-x: clip; }
.blks { display: grid; gap: 8px; }
.blk { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.blk.open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.blk header { display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; }
.blk header > div { min-width: 0; flex: 1; } .blk header b { display: block; font-size: 13.5px; }
.blk header small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk .bi { width: 32px; height: 32px; border-radius: 9px; background: var(--panel3); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.blk.open .bi { background: var(--accent); }
.blk-b { padding: 0 10px 12px; display: grid; gap: 10px; } .bt-p { display: grid; gap: 10px; }
.seg.sm button { padding: 5px 10px; font-size: 12px; } .seg.sm { align-self: start; justify-self: start; }
.bld label.ck, label.ck { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: 13px; cursor: pointer; }
.ck input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.cks { display: grid; gap: 8px; }
.sw { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .sw button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); padding: 0; }
.sw button.on { box-shadow: 0 0 0 2px var(--text); } .sw input[type=color] { width: 30px !important; height: 30px !important; padding: 0 !important; border-radius: 50% !important; }
.pk { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 8px; }
.pk-top { display: flex; gap: 6px; align-items: center; } .pk-top input { flex: 1; min-width: 0; padding: 7px 10px !important; }
.pk-sum { font-size: 11.5px; color: var(--muted); white-space: nowrap; } .pk-top .tag { cursor: pointer; border: 0; }
.pk-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 168px; overflow-y: auto; }
.pk-o { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; max-width: 100%; }
.pk-o small { color: var(--dim); font-weight: 500; } .pk-o:hover { color: var(--text); }
.pk-o.on { background: var(--accent); border-color: var(--accent); color: #fff; } .pk-o.on small { color: rgba(255,255,255,.75); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.grid3 label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stage { position: relative; transform: translateZ(0); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0b0b0d; }
.stage .chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--panel2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.stage .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel3); } .stage .chrome span { margin-left: 10px; background: var(--bg); border-radius: 6px; padding: 3px 10px; flex: 1; }
.stage .site { height: 720px; overflow-y: auto; padding: 20px; } .stage.light .site { background: #f3f3f6; color: #111; }
.stage .site.mob, .stage .site.tab { margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 14px; }
.stage .site.mob { width: 390px; } .stage .site.tab { width: 768px; max-width: 100%; }
.stage .lay { display: grid; gap: 16px; } .stage .lay.split { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.stage .site.mob .lay.split, .stage .site.tab .lay.split { grid-template-columns: 1fr; }
.stage .col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.confirm { border: 1px solid rgba(61,220,132,.4); background: rgba(61,220,132,.08); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
@media (max-width: 1280px) {
  .bld { grid-template-columns: 1fr; } .bld .opts { position: static; }
  .wrap { grid-template-columns: 220px minmax(0, 1fr); }
  .slip { position: fixed; top: 60px; right: 0; bottom: 0; width: 360px; max-width: 100vw; max-height: none; z-index: 30; border-radius: 0; transform: translateX(100%); transition: transform .25s; box-shadow: var(--shadow); }
  .slip.open { transform: none; }
  .fab { display: block; }
}
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; padding: 12px 12px 80px; }
  .side { position: static; max-height: none; }
  .side .box { display: flex; overflow-x: auto; } .side h4 { display: none; } .side button { width: auto; white-space: nowrap; }
  .top .in { gap: 10px; padding: 0 12px; } .logo span, .wallet span { display: none; }
  .row { grid-template-columns: 1fr; } .row .lft { border-right: 0; border-bottom: 1px solid var(--line); } .row .rgt { min-width: 0; } .odd { min-width: 0; }
  .league > header .mk { display: none; }
  .gate .in, .stage .lay.split { grid-template-columns: 1fr; } .gate h1 { font-size: 26px; } .stage .site.mob { width: 100%; }
  .two { grid-template-columns: 1fr; } .api-hero, .kf { grid-template-columns: 1fr; } .team-hero { grid-template-columns: 80px 1fr; } .th-logo { width: 80px; height: 80px; } .th-logo img { width: 60px; height: 60px; } .th-next { grid-column: 1 / -1; } .fx { grid-template-columns: 56px 1fr auto; } .fx-l { display: none; } .flow { grid-template-columns: 1fr; } .flow div::after { display: none; }
  .vs .t img { width: 46px; height: 46px; } .vs .sc { font-size: 28px; }

  .top .in { flex-wrap: wrap; height: auto; padding: 8px 12px 0; row-gap: 6px; }
  .top .nav { order: 9; flex: 0 0 100%; margin: 0 -12px; padding: 0 8px; } .nav a { padding: 10px 11px; } .nav a.on::after { bottom: 2px; }
  .mode { margin-left: auto; } .pulse { display: none; }
  .side, .slip { top: 100px; } .slip { top: 100px; }
  .stage .site.tab { width: 100%; } .stage .site { height: 620px; padding: 12px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi { padding: 12px; } .kpi b { font-size: 19px; }
  .scards { grid-template-columns: 1fr; } .scard .nums { grid-template-columns: repeat(2, 1fr); }
  .h1 { font-size: 19px; } .presets { grid-template-columns: 1fr 1fr; }
}

/* ---------- Surse & date (admin) */
.ab { display: grid; gap: 18px; animation: abIn .35s ease both; }
@keyframes abIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes abGrow { from { width: 0; } }
@keyframes abPing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes abSpin { to { transform: rotate(360deg); } }
@keyframes abBlink { 50% { opacity: .35; } }
.ab-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(600px 240px at 0% 0%, rgba(239,51,64,.16), transparent 60%), radial-gradient(500px 220px at 100% 100%, rgba(96,165,250,.12), transparent 60%), var(--panel); }
.ab-hero p { margin: 6px 0 10px; color: var(--muted); max-width: 720px; line-height: 1.6; }
.ab-orb { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(239,51,64,.35), rgba(239,51,64,.08) 60%, transparent); border: 1px solid rgba(239,51,64,.35); }
.ab-orb i { font-style: normal; font-size: 32px; z-index: 1; }
.ab-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(239,51,64,.5); animation: abPing 2.4s ease-out infinite; }
.ab-orb span:nth-child(2) { animation-delay: .8s; } .ab-orb span:nth-child(3) { animation-delay: 1.6s; }
.ab-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.ab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.18); animation: abBlink 1.6s infinite; flex-shrink: 0; }
.ab-dot.err { background: var(--live); box-shadow: 0 0 0 4px rgba(239,51,64,.2); }
.ab-dot.busy { background: var(--gold); box-shadow: 0 0 0 4px rgba(251,191,36,.2); }
.ab-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ab-kpi { position: relative; overflow: hidden; display: grid; gap: 2px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--panel); animation: abIn .4s ease both; }
.ab-kpi .ic { position: absolute; right: 12px; top: 10px; font-size: 22px; opacity: .55; }
.ab-kpi .lb { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.ab-kpi b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ab-kpi small { color: var(--dim); font-size: 11.5px; }
.ab-h { margin: 6px 0 -4px; font-size: 17px; } .ab-h small { color: var(--dim); font-weight: 500; font-size: 12px; margin-left: 6px; }
.ab-srcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ab-src { display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); animation: abIn .4s ease both; animation-delay: var(--d); transition: transform .15s, border-color .15s; }
.ab-src:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.14); }
.ab-src.bad { border-color: rgba(239,51,64,.45); }
.ab-src header { display: flex; align-items: center; gap: 8px; } .ab-src header b { font-size: 15px; }
.ab-src header a { margin-left: auto; font-size: 12px; color: var(--muted); }
.ab-src p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ab-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.ab-bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--accent), #ff8a3d); animation: abGrow 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.ab-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); } .ab-meta b { color: var(--text); } .ab-meta .warn { color: var(--gold); }
.ab-err { font-size: 11.5px; color: #fca5a5; background: rgba(239,51,64,.1); border-radius: 8px; padding: 6px 9px; }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; } .ab-two .sec { margin: 0; }
.ab-sports, .ab-tl { display: grid; gap: 7px; }
.ab-sp, .ab-tr { display: grid; grid-template-columns: 150px minmax(0, 1fr) 60px 60px; gap: 10px; align-items: center; font-size: 12.5px; animation: abIn .35s ease both; animation-delay: var(--d); }
.ab-sp span, .ab-tr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-sp b, .ab-tr b { text-align: right; font-variant-numeric: tabular-nums; } .ab-sp em, .ab-tr em { font-style: normal; color: var(--green); font-size: 11px; text-align: right; }
.ab-tr em { color: var(--muted); } .ab-tr.bad span, .ab-tr.bad em { color: #fca5a5; } .ab-tr .ab-bar i { background: linear-gradient(90deg, #60a5fa, #a78bfa); }
.ab-funnel { display: grid; gap: 8px; }
.ab-funnel div { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ab-funnel div:nth-child(2) { margin: 0 18px; } .ab-funnel div.fin { margin: 0 36px; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.07); }
.ab-funnel b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 90px; } .ab-funnel span { color: var(--muted); font-size: 12.5px; }
.ab-odds { display: grid; gap: 8px; } .ab-odds div { font-size: 12.5px; color: var(--muted); line-height: 1.5; } .ab-odds b { display: block; color: var(--text); font-size: 13px; }
.ab-limits { display: flex; flex-wrap: wrap; gap: 8px; } .ab-limits span { font-size: 12px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; } .ab-limits b { color: var(--text); }
@media (max-width: 1100px) { .ab-two { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ab-hero { grid-template-columns: 1fr; } .ab-sp, .ab-tr { grid-template-columns: 110px minmax(0, 1fr) 52px; } .ab-sp em, .ab-tr em { display: none; } }

/* la actualizarea automata nu se reiau animatiile de intrare; pulsul si orbita raman */
.ab-quiet, .ab-quiet .ab-kpi, .ab-quiet .ab-src, .ab-quiet .ab-sp, .ab-quiet .ab-tr, .ab-quiet .ab-bar i { animation: none !important; }
#abTop, #abRest { display: grid; gap: 18px; min-width: 0; }
.ab-bar i { transition: width .7s cubic-bezier(.2,.8,.2,1); }
.ab-next { position: relative; display: grid; gap: 2px; min-width: 170px; padding: 12px 16px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); overflow: hidden; }
.ab-next small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.ab-next b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ab-next i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: linear-gradient(90deg, var(--accent), #ff8a3d); transition: width .7s ease; }
.ab-next.busy i { background: var(--gold); animation: abBlink 1.2s infinite; }
/* numerele care se schimba: scurt verde cand cresc, rosu cand scad */
.num-up { animation: numUp 1.1s ease; } .num-down { animation: numDown 1.1s ease; }
@keyframes numUp { 0%, 40% { color: var(--green); } }
@keyframes numDown { 0%, 40% { color: #f87171; } }
.ab-server { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 14px 16px; display: grid; gap: 12px; animation: abIn .4s ease both; }
.ab-server header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; } .ab-server header b { font-size: 14px; } .ab-server header small { color: var(--dim); font-size: 11.5px; }
.ab-sts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ab-st { position: relative; display: grid; gap: 2px; padding: 11px 12px 11px 15px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); overflow: hidden; }
.ab-st::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--dim); }
.ab-st.ok::before { background: var(--green); } .ab-st.warn::before { background: var(--gold); } .ab-st.err::before { background: var(--live); }
.ab-st span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.ab-st b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; } .ab-st.err b { color: #fca5a5; } .ab-st.warn b { color: #fcd34d; }
.ab-st small { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-dot.warn { background: var(--gold); box-shadow: 0 0 0 4px rgba(251,191,36,.2); }
.ab-src.warn { border-color: rgba(251,191,36,.35); }
.ab-err.warn { color: #fcd34d; background: rgba(251,191,36,.1); }
.ab-last { font-size: 11px; color: var(--dim); }
.ab-con { position: relative; border-radius: 16px; border: 1px solid var(--line); background: #07090d; overflow: hidden; animation: abIn .4s ease both; }
.ab-con header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.035); border-bottom: 1px solid var(--line); }
.ab-con header b { font-size: 13.5px; }
.ab-con header small { font-size: 11.5px; color: var(--dim); } .ab-con header small.ok { color: var(--green); } .ab-con header small.bad { color: #fca5a5; }
.ab-con-dots { display: inline-flex; gap: 6px; } .ab-con-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; } .ab-con-dots i:nth-child(2) { background: #f59e0b; } .ab-con-dots i:nth-child(3) { background: #22c55e; }
.ab-con-f { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ab-con-f button { font: inherit; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.ab-con-f button.on { color: var(--text); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.09); }
.ab-con-f button em { font-style: normal; font-weight: 700; margin-left: 2px; } #conN-err { color: #f87171; } #conN-warn { color: #fbbf24; }
.ab-con-f label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); cursor: pointer; }
.ab-con-body { height: 340px; overflow: auto; padding: 8px 0; font: 12px/1.55 ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace; overscroll-behavior: contain; }
.ab-con-body .ln { display: flex; gap: 12px; padding: 0 14px; white-space: pre-wrap; word-break: break-word; color: #cbd5e1; }
.ab-con-body .ln:hover { background: rgba(255,255,255,.04); }
.ab-con-body time { flex-shrink: 0; color: #4b5563; }
.ab-con-body u { text-decoration: none; color: #93c5fd; }
.ab-con-body .l-ok { color: #4ade80; } .ab-con-body .l-ok u { color: #86efac; }
.ab-con-body .l-warn { color: #fbbf24; } .ab-con-body .l-warn u { color: #fcd34d; }
.ab-con-body .l-err { color: #f87171; background: rgba(239,68,68,.07); } .ab-con-body .l-err u { color: #fca5a5; }
.ab-con-body .l-info { color: #94a3b8; }
.ab-con-body .sep { justify-content: center; margin: 6px 0; }
.ab-con-body[data-f="ok"] .ln:not(.l-ok), .ab-con-body[data-f="warn"] .ln:not(.l-warn), .ab-con-body[data-f="err"] .ln:not(.l-err), .ab-con-body.no-live .is-live { display: none; }
.ab-con-jump { position: absolute; right: 18px; bottom: 14px; font: inherit; font-size: 12px; color: #fff; background: var(--accent); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
@media (max-width: 700px) { .ab-con-body { height: 280px; font-size: 11px; } .ab-con-body time { display: none; } .ab-con-f { margin-left: 0; } }

/* ---------- meniul contului (dreapta sus) */
.me { position: relative; }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); transition: background .15s, border-color .15s; }
.me-btn:hover, .me-btn.on { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.me-btn .me-txt { display: grid; text-align: left; } .me-btn .car { color: var(--muted); font-size: 11px; transition: transform .15s; } .me-btn.on .car { transform: rotate(180deg); }
.me .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff8a3d); display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.me .av.lg { width: 42px; height: 42px; font-size: 17px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 260px; padding: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(21,23,28,.97); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0,0,0,.55); animation: meIn .16s ease; transform-origin: top right; }
@keyframes meIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.me-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.me-head b { display: block; font-size: 14px; } .me-head small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.me-head .role { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.me-menu a, .me-menu .out { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: var(--text); font-size: 13.5px; text-align: left; }
.me-menu a span, .me-menu .out span { width: 20px; text-align: center; }
.me-menu a:hover { background: rgba(255,255,255,.06); }
.me-menu .out { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; color: #fca5a5; }
.me-menu .out:hover { background: rgba(239,51,64,.1); }
@media (max-width: 1500px) { .me-btn .me-txt { display: none; } }

/* ---------- administrare: antet cu cautare, KPI, filtre, actiuni */
.ahead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } .ahead > div:first-child { flex: 1; min-width: 240px; }
.asearch { position: relative; display: flex; align-items: center; gap: 8px; width: min(420px, 100%); height: 42px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); transition: border-color .15s; }
.asearch:focus-within { border-color: rgba(255,255,255,.22); color: var(--text); } .asearch.sm { height: 38px; width: min(320px, 100%); }
.asearch input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 13.5px; }
.sbox { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 70vh; overflow: auto; padding: 6px; border-radius: 14px; background: var(--panel2); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); }
.sbox h6 { margin: 8px 10px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.sbox a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.sbox a:hover { background: rgba(255,255,255,.05); } .sbox a svg { grid-row: 1 / 3; color: var(--muted); width: 18px; height: 18px; }
.sbox a b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sbox a small { grid-column: 2; color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbox a .apill, .sbox a .st { grid-column: 3; grid-row: 1 / 3; }
.akpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; } .akpis.sm { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.akpi { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 60%), var(--panel); }
.akpi .ic { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.akpi.good .ic { background: rgba(52,211,153,.12); color: var(--green); } .akpi.bad .ic { background: rgba(251,113,133,.12); color: var(--down); } .akpi.live .ic { background: rgba(239,51,64,.14); color: var(--live); }
.akpi > div { display: grid; gap: 2px; min-width: 0; }
.akpi .lb { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.akpi b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .akpi small { color: var(--dim); font-size: 11.5px; line-height: 1.45; }
.trend { display: inline-flex; gap: 3px; align-items: center; margin-left: 4px; font-weight: 700; font-size: 11px; white-space: nowrap; } .trend em { font-style: normal; font-weight: 500; color: var(--dim); }
.trend.up { color: var(--up); } .trend.down { color: var(--down); }
.agrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 16px; } .agrid .sec { margin: 0; }
.sec h4 .more { float: right; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.atop { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.atop:first-of-type { border-top: 0; } .atop:hover b { color: #fff; }
.atop .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel3); font-weight: 800; }
.atop > div { display: grid; gap: 3px; min-width: 0; } .atop b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .atop small { color: var(--dim); font-size: 11px; }
.atop .abar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; } .atop .abar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), #ff8a3d); }
.atop .n { text-align: right; } .atop .n small { display: block; font-weight: 700; }
.atitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.chipf { display: flex; gap: 4px; flex-wrap: wrap; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); } .atitle .chipf:last-child { margin-left: auto; }
.chipf button { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 6px 11px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.chipf button:hover { color: var(--text); } .chipf button.on { color: var(--text); background: var(--panel3); }
.chipf button i { font-style: normal; font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.07); }
.asel { height: 38px; padding: 0 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; }
.apill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; vertical-align: middle; }
.apill.ok { background: rgba(52,211,153,.13); color: var(--green); } .apill.warn { background: rgba(251,191,36,.14); color: var(--gold); }
.apill.off { background: rgba(255,255,255,.07); color: var(--dim); } .apill.int { background: rgba(96,165,250,.13); color: var(--blue); }
.ibtn { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; transition: .15s; }
.ibtn svg { width: 16px; height: 16px; } .ibtn:hover { color: var(--text); background: rgba(255,255,255,.08); }
.ibtn.warn:hover { color: var(--gold); border-color: rgba(251,191,36,.4); } .ibtn.ok { color: var(--green); } .ibtn.bad:hover { color: var(--down); border-color: rgba(251,113,133,.4); }
td.acts { white-space: nowrap; } td.acts .ibtn + .ibtn, .scard .acts .ibtn + .ibtn { margin-left: 4px; }
.scard footer .acts { margin-left: auto; display: flex; } .scard.is-blocked { border-color: rgba(251,191,36,.35); } .scard.is-blocked .av { background: rgba(251,191,36,.15); color: var(--gold); }
tr.is-blocked td { opacity: .7; } tr.is-blocked td.acts { opacity: 1; }
.btn.danger { color: var(--down); } .btn.danger:hover { border-color: rgba(251,113,133,.45); }
.btn svg { width: 15px; height: 15px; vertical-align: -3px; }
@media (max-width: 1000px) { .agrid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .asearch, .asearch.sm { width: 100%; } .atitle .chipf:last-child { margin-left: 0; } .akpi b { font-size: 19px; } }

/* ---------- limba (RO / EN / ES) */
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin-right: 8px; }
.lang-sw button { font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--dim); background: none; border: 0; border-radius: 7px; padding: 4px 7px; cursor: pointer; }
.lang-sw button:hover { color: var(--text); } .lang-sw button.on { color: var(--text); background: var(--panel3); }
.lang-sw.floating { position: fixed; top: 14px; right: 16px; z-index: 100; margin: 0; }

/* ---------- stocarea pe disc (Surse & date) */
.ab-stor { display: grid; gap: 10px; padding-top: 4px; }
.ab-stor .bar { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.05); }
.ab-stor .bar i { display: block; min-width: 3px; transition: flex .6s ease; }
.ab-stor .leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.ab-stor .leg span { display: inline-flex; align-items: center; gap: 6px; } .ab-stor .leg i { width: 9px; height: 9px; border-radius: 3px; }
.ab-stor .leg b { color: var(--text); font-variant-numeric: tabular-nums; } .ab-stor .leg small { color: var(--dim); }
.ab-stor .note { margin: 0; font-size: 11.5px; color: var(--dim); }

/* ---------- vizualizarea live */
.sd-trk { border-radius: 16px; overflow: hidden; background: #0b0f14; border: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.sd-trk .stad { position: relative; padding: 34px 5% 16px; background: radial-gradient(120% 90% at 50% 0%, #2b3240, #11151c 70%); overflow: hidden; }
.sd-trk .crowd { position: absolute; inset: 0; opacity: .55; background:
  radial-gradient(circle at 10% 20%, rgba(255,255,255,.06) 1px, transparent 2px) 0 0 / 9px 7px,
  radial-gradient(circle at 60% 70%, rgba(255,255,255,.05) 1px, transparent 2px) 0 0 / 11px 8px,
  linear-gradient(180deg, #1a1f29, #0f1218); }
.sd-trk .fld { position: relative; aspect-ratio: 105 / 60; border-radius: 4px; transform: perspective(900px) rotateX(18deg); transform-origin: 50% 100%;
  background: repeating-linear-gradient(90deg, #3d8f2c 0 8.33%, #469c33 8.33% 16.66%); box-shadow: 0 20px 40px rgba(0,0,0,.5), inset 0 0 60px rgba(0,0,0,.25); overflow: hidden; }
.sd-trk .fld::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 40%, rgba(255,255,255,.08), transparent 70%); pointer-events: none; }
.sd-trk .ln { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd-trk .zone { position: absolute; top: 0; bottom: 0; width: 38%; transition: left .8s ease, background .8s; pointer-events: none; }
.sd-trk .trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sd-trk .trail path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: .6; stroke-dasharray: 1.2 1.2; vector-effect: non-scaling-stroke; stroke-width: 1.6; }
.sd-trk .ball { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 35%, #fff, #d9d9d9 60%, #999); box-shadow: 0 0 0 5px rgba(255,255,255,.18), 0 3px 6px rgba(0,0,0,.45);
  transition: left .45s cubic-bezier(.3,.7,.3,1), top .45s cubic-bezier(.3,.7,.3,1); }
.sd-trk .ball::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: sdPing 1.8s ease-out infinite; }
@keyframes sdPing { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.sd-trk .flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255,255,255,.55), transparent 70%); }
.sd-trk .flash.on { animation: sdFlash 1.4s ease; } @keyframes sdFlash { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }
.sd-trk .top { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 8px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 12.5px; font-weight: 700; z-index: 3; white-space: nowrap; }
.sd-trk .top i { width: 1px; height: 12px; background: rgba(255,255,255,.35); } .sd-trk .top .clk { font-family: ui-monospace, Consolas, monospace; }
.sd-trk .evb { position: absolute; bottom: 18px; z-index: 3; display: grid; padding: 8px 18px 8px 14px; min-width: 150px; color: #fff; opacity: 0; transform: translateY(10px);
  background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.55)); transition: opacity .3s, transform .3s; }
.sd-trk .evb.show { opacity: 1; transform: none; } .sd-trk .evb.l { left: 5%; } .sd-trk .evb.r { right: 5%; text-align: right; }
.sd-trk .evb .tm { font-weight: 800; font-size: 15px; } .sd-trk .evb .tx { font-size: 12.5px; color: rgba(255,255,255,.8); }
.sd-trk .evb i { position: absolute; top: 0; bottom: 0; width: 4px; } .sd-trk .evb.l i { right: 0; } .sd-trk .evb.r i { left: 0; }
.sd-trk .evb.goal .tx { color: var(--gold); font-weight: 900; font-size: 15px; letter-spacing: .04em; }
.sd-trk .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(180deg, #1d6b30, #155224); color: #fff; min-height: 58px; }
.sd-trk .bar .sd { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; } .sd-trk .bar .sd.a { justify-content: flex-end; text-align: right; }
.sd-trk .bar .sd span { display: flex; gap: 3px; flex-wrap: wrap; min-width: 0; } .sd-trk .bar .sd.a span { justify-content: flex-end; }
.sd-trk .bar .mid { display: grid; justify-items: center; gap: 3px; min-width: 120px; } .sd-trk .bar .mid.in { animation: sdIn .45s ease; }
@keyframes sdIn { from { opacity: 0; transform: translateY(6px); } }
.sd-trk .bar .mid small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.sd-trk .bar .mid .sc { font: 800 18px ui-monospace, Consolas, monospace; }
.sd-trk .bar .f { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; font-size: 10.5px; font-weight: 800; background: rgba(255,255,255,.18); }
.sd-trk .bar .f.W { background: #27a35a; } .sd-trk .bar .f.L { background: #e0452f; } .sd-trk .bar .f.D { background: #7c8794; }
.sd-trk .bar .pill { padding: 3px 8px; border-radius: 6px; font-size: 11.5px; background: color-mix(in srgb, var(--c) 70%, #000); } .sd-trk .bar .pill.d { background: rgba(0,0,0,.3); }
.sd-trk .bar .sbar { display: flex; width: 120px; height: 5px; border-radius: 5px; overflow: hidden; gap: 2px; } .sd-trk .bar .sbar i { display: block; transition: flex .5s; }
@media (max-width: 640px) { .sd-trk .stad { padding: 30px 2% 12px; } .sd-trk .evb { min-width: 0; padding: 6px 12px; } .sd-trk .evb .tm { font-size: 13px; } .sd-trk .bar { grid-template-columns: 1fr; justify-items: center; } .sd-trk .bar .sd { display: none; } }

