:root {
  --bg: #0b0e16;
  --side: #0e121d;
  --card: #121624;
  --raised: #151a2b;
  --line: #222943;
  --line-soft: #1a2036;
  --line-strong: #2a3252;
  --text: #e6e9f2;
  --text-2: #c9d0e2;
  --muted: #a3abc2;
  --faint: #8a93ad;
  --blue: #4d82ff;
  --blue-btn: #2f62e8;
  --link: #7aa2ff;
  --amber: #f5b740;
  --green: #34d399;
  --red: #f87171;
  --select: #1b2445;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.45 Barlow, system-ui, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #a9c2ff; }
h1, h2, h3 { margin: 0; font-family: 'Barlow Condensed', sans-serif; color:var(--ink); }
.num { font-family: 'Barlow Condensed', sans-serif; }
.mono { font-family: 'Barlow Condensed', sans-serif; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------------------------------------------------------------- schelet */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.side { flex: 1 1 240px; background: var(--side); border-right: 1px solid #1c2236; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 24px; }

.nav { padding: 20px 14px 28px; display: flex; flex-direction: column; gap: 22px; color: #aab2c8; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; color:var(--ink); }
.brand:hover { color:var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--blue-btn); display: inline-flex; align-items: center; justify-content: center; flex: none; color:var(--ink); }
.brand-name { display: flex; flex-direction: column; gap: 2px; }
.brand-name b { font: 700 16px/1 'Barlow Condensed', sans-serif; letter-spacing: .04em; }
.brand-name span { font-size: 11px; color: var(--faint); letter-spacing: .06em; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font: 600 11px/1 Barlow, sans-serif; letter-spacing: .1em; color: var(--faint); padding: 0 12px 8px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #aab2c8; }
.nav-link:hover { color:var(--ink); background: #141a2c; }
.nav-link.on { background: var(--select); color:var(--ink); }
.nav-count { margin-left: auto; font: 600 11px/1 Barlow, sans-serif; color: var(--green); background: #0f2d24; padding: 4px 7px; border-radius: 6px; }
.nav-cta { margin-top: 6px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); color: #d9deeb; font-size: 13px; font-weight: 500; }
.nav-cta small { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 32px; border-bottom: 1px solid #1c2236; background: var(--side); }
.top h1 { font-size: 18px; font-weight: 600; }
.search { margin-left: auto; flex: 0 1 360px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); color: var(--faint); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: 400 14px Barlow, sans-serif; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.chip-vip { border: 1px solid #5a4313; background: #241b0b; color: var(--amber); }
.chip-vip:hover { color: #ffd27a; }
.me { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 6px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); color:var(--ink); font-size: 14px; font-weight: 600; }
.me:hover { color:var(--ink); border-color: var(--line-strong); }

/* ---------------------------------------------------------------- componente */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.pad { padding: 22px; }
.stack { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.grow-3 { flex: 3 1 520px; min-width: 0; } .grow-2 { flex: 2 1 340px; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lbl { font: 600 11px/1.2 Barlow, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.h2 { font-size: 16px; font-weight: 600; line-height: 1.2; }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.page-head h2 { font-size: 30px; font-weight: 700; line-height: 1.15; }
.page-head p { margin: 0; max-width: 680px; color: var(--muted); line-height: 1.55; }
.dots { background-color: var(--card); background-image: radial-gradient(#243050 1px, transparent 1.2px); background-size: 18px 18px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 7px; border-radius: 6px; font: 600 11px/1 Barlow, sans-serif; white-space: nowrap; }
.b-red { background: #2d1414; color: #fca5a5; } .b-gray { background: #1c2236; color: #aab2c8; }
.b-green { background: #0f2d24; color: var(--green); } .b-amber { background: #2b210b; color: var(--amber); }
.b-blue { background: #16213f; color: #8fb0ff; }

.av { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font: 700 12px 'Barlow Condensed', sans-serif; color: var(--bg); flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; font: 600 14px Barlow, sans-serif; cursor: pointer; color:var(--ink); background: var(--blue-btn); }
.btn:hover { background: #2756d6; color:var(--ink); }
.btn-ghost { background: var(--raised); border: 1px solid var(--line-strong); color: #d9deeb; }
.btn-ghost:hover { background: #1a2034; color:var(--ink); }
.btn-amber { background: var(--amber); color: #1b1405; font-weight: 700; }
.btn-amber:hover { background: #ffc85a; color: #1b1405; }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-danger { color: #fca5a5; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 9px; font: 600 13px Barlow, sans-serif; color: #aab2c8; }
.tab:hover { color:var(--ink); }
.tab.on { background: var(--blue-btn); color:var(--ink); }
.tab.on-soft { background: var(--select); color:var(--ink); }
.tab .count { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: #1c2236; color: #aab2c8; }
.tab.on .count { background: rgba(255, 255, 255, .18); color:var(--ink); }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 11px/1 Barlow, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); color: #d9deeb; white-space: nowrap; }
.tbl tr:hover td { background: #161b2c; }
.tbl .hi { color:var(--ink); font-weight: 700; }
.player-cell { display: flex; align-items: center; gap: 10px; }
.player-cell a { color:var(--ink); font-weight: 600; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; background: var(--raised); color: #aab2c8; font-weight: 600; }
.pager .on { background: var(--select); color:var(--ink); }

.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--side); border: 1px solid var(--line-strong); color:var(--ink); font: 400 14px Barlow, sans-serif; outline: none; }
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.flash { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; font-size: 14px; }
.flash.ok { background: #0f2d24; color: #a7f3d0; border: 1px solid #1d5c47; }
.flash.error { background: #2d1414; color: #fecaca; border: 1px solid #5c2525; }
.note { padding: 12px 16px; border-radius: 12px; background: #16213f; border: 1px solid #253a73; color: #c7d5ff; font-size: 13px; line-height: 1.5; }

.bar { height: 8px; border-radius: 99px; background: #1b2033; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--blue); }

.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.stat .v { font: 700 24px 'Barlow Condensed', sans-serif; color:var(--ink); }
.stat small { font-size: 12px; color: var(--faint); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }

/* ---------------------------------------------------------------- dashboard */
.hero { flex: 3 1 520px; min-width: 0; position: relative; overflow: hidden; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.hero > * { position: relative; }
.hero .deco { position: absolute; right: -40px; top: -30px; opacity: .16; color: var(--blue); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 99px; font: 600 12px/1 Barlow, sans-serif; }
.pill-live { background: #0f2d24; color: var(--green); letter-spacing: .06em; }
.pill-off { background: #2d1414; color: #fca5a5; letter-spacing: .06em; }
.pill-demo { background: #2b210b; color: var(--amber); }
.pill-night { background: #1b2240; color: #b9c6ef; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.big { display: flex; align-items: flex-end; gap: 14px; }
.big .n { font: 700 104px/.85 'Barlow Condensed', sans-serif; color:var(--ink); letter-spacing: -.03em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts .v { font-size: 15px; color:var(--ink); font-weight: 600; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hero { container-type: inline-size; }
@container (max-width: 720px) { .chips { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.chips div { background: rgba(14, 18, 29, .82); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.chips b { font: 700 22px 'Barlow Condensed', sans-serif; color:var(--ink); }
.chips span { font-size: 12px; color: var(--muted); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 9px 20px; border-top: 1px solid var(--line-soft); }
.list-row:hover { background: #161b2c; }
.feed-row { display: flex; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.feed-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.week-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--raised); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 9px; background: var(--raised); color: var(--faint); }
.days .done { background: #0f2d24; color: var(--green); }
.days .next { background: #2b210b; color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.days small { font-size: 10px; letter-spacing: .06em; }
.days b { font: 700 12px 'Barlow Condensed', sans-serif; }
.chat-row { display: flex; gap: 10px; padding: 9px 20px; }
.chat-form { display: flex; gap: 8px; padding: 12px 20px 18px; }
.chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--side); border: 1px solid var(--line-strong); color:var(--ink); font: 400 14px Barlow, sans-serif; }

/* ---------------------------------------------------------------- clasament / profil / magazin */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.podium .card { padding: 20px; display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden; }
.podium .place { position: absolute; right: 14px; top: -10px; font: 700 96px 'Barlow Condensed', sans-serif; opacity: .14; }
.grade-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.grade-card { padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; color: inherit; }
.grade-card:hover { border-color: var(--line-strong); color: inherit; }
.grade-card.on { border-width: 2px; padding: 17px; }
.grade-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-2); }
.grade-card li { display: flex; gap: 8px; align-items: flex-start; }
.grade-card li svg { flex: none; margin-top: 2px; }
.cmp th { text-align: center; } .cmp td { text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; padding-left: 20px; }
.cmp .sel { background: #182039; color:var(--ink); font-weight: 700; }
.cmp .none { color: #6b7392; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); color: var(--text-2); font: 600 13px Barlow, sans-serif; cursor: pointer; }
.choice:has(input:checked) { background: var(--select); border-color: var(--blue); color:var(--ink); }
.choice input { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; }
.choice small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.summary { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: var(--side); border: 1px solid var(--line); }
.summary .between { font-size: 13px; color: var(--muted); }
.console { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: #0a0d14; border: 1px solid var(--line); font-size: 12px; line-height: 1.5; max-height: 420px; overflow: auto; }
.console pre { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; color: var(--text-2); font: inherit; }
.qbtn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 11px; background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); font: 600 13px Barlow, sans-serif; cursor: pointer; text-align: left; }
.qbtn:hover { border-color: #3a4570; }
.qbtn small { display: block; font: 500 11px 'Barlow Condensed', sans-serif; color: var(--faint); margin-top: 2px; }

@media (max-width: 720px) {
  .top, .content { padding-left: 16px; padding-right: 16px; }
  .search { order: 3; flex-basis: 100%; margin-left: 0; }
  .big .n { font-size: 76px; }
  .side { border-right: 0; border-bottom: 1px solid #1c2236; }
  .nav { gap: 14px; }
  .choice-grid { grid-template-columns: 1fr; }
}
