/* Qizil Kartochka — «Glass Sidebar» uslubi */
:root {
  --lime: #c4f03a;
  --lime-2: #b3d94a;
  --lime-ink: #10140a;
  --orange: #ff933c;
  --purple: #a793ff;
  --blue: #6fb6ff;
  --red: #ff5d5d;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, .72);
  --text-3: rgba(255, 255, 255, .5);
  --glass: rgba(150, 146, 140, .26);
  --glass-strong: rgba(150, 146, 140, .34);
  --glass-border: rgba(255, 255, 255, .22);
  --glass-hi: rgba(255, 255, 255, .16);
  --item-active: rgba(255, 255, 255, .16);
  --item-active-border: rgba(255, 255, 255, .42);
  --item-hover: rgba(255, 255, 255, .09);
  --field: rgba(255, 255, 255, .08);
  --field-border: rgba(255, 255, 255, .2);
  --shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  --blur: blur(26px) saturate(150%);
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --rail: 52px;
  --panel: 300px;
  --gap: 14px;
}
html[data-theme="night"] {
  --glass: rgba(22, 21, 19, .5);
  --glass-strong: rgba(22, 21, 19, .62);
  --glass-border: rgba(255, 255, 255, .12);
  --item-active: rgba(255, 255, 255, .1);
  --item-active-border: rgba(255, 255, 255, .26);
  --field: rgba(255, 255, 255, .05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #15120f;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--lime); text-decoration: none; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fon: iliq, xira, fotosuratga o'xshash ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-photo {
  position: absolute; inset: -10%;
  background:
    radial-gradient(38% 30% at 82% 8%, rgba(255, 214, 150, .55), transparent 70%),
    radial-gradient(30% 26% at 92% 16%, rgba(255, 240, 210, .45), transparent 65%),
    radial-gradient(45% 40% at 12% 18%, rgba(88, 104, 58, .55), transparent 70%),
    radial-gradient(60% 45% at 60% 55%, rgba(140, 138, 136, .45), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(92, 58, 34, .9), transparent 70%),
    radial-gradient(40% 30% at 0% 90%, rgba(196, 240, 58, .18), transparent 70%),
    linear-gradient(180deg, #3b342d 0%, #2a241f 45%, #3a2a1e 100%);
  filter: blur(18px);
}
html[data-theme="night"] .bg-photo { filter: blur(18px) brightness(.55); }
.bg-glow {
  position: absolute; width: 60vmax; height: 60vmax; left: -15vmax; top: 10vh;
  background: radial-gradient(circle, rgba(196, 240, 58, .12), transparent 60%);
}
.bg-mark {
  position: absolute; width: 190px; left: 120px; top: 34vh; fill: var(--lime);
  filter: blur(14px); opacity: .85;
}
@media (max-width: 700px) { .bg-mark { left: 36vw; top: 30vh; width: 150px; } }

/* ---------- Shisha ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* ---------- Yuklanish ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--lime); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Yon panel ---------- */
.sidebar {
  position: fixed; z-index: 40; left: 16px; top: 16px; bottom: 16px;
  width: var(--rail); border-radius: 30px;
  display: flex; flex-direction: column;
  transition: width .32s cubic-bezier(.3,.8,.3,1), border-radius .32s;
}
.sidebar.open { width: var(--panel); border-radius: var(--r-xl); }
.sb-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 6px; scrollbar-width: none; }
.sb-scroll::-webkit-scrollbar { display: none; }
.sidebar.open .sb-scroll { padding: 12px 10px; }

.sb-toggle {
  position: absolute; top: 18px; right: -11px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #111; display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.sidebar.open .sb-toggle { right: 14px; top: 24px; }
.sb-toggle svg.i { width: 14px; height: 14px; stroke-width: 2.6; transition: transform .3s; }
.sidebar.open .sb-toggle svg.i { transform: rotate(180deg); }

.sb-head { display: flex; align-items: center; gap: 12px; padding: 2px 0 10px; min-height: 52px; }
.logo {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #e1ff7a, var(--lime) 55%, #9cc22a);
  box-shadow: 0 0 0 3px rgba(196,240,58,.18), 0 6px 18px rgba(196,240,58,.35);
}
.logo span { width: 13px; height: 19px; border-radius: 3px; background: #121212; transform: rotate(12deg); }
.sb-title { white-space: nowrap; overflow: hidden; opacity: 0; transition: opacity .2s; }
.sb-title b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sb-title small { color: var(--text-2); font-size: 12.5px; }
.sidebar.open .sb-title { opacity: 1; transition-delay: .1s; }

.sb-search {
  display: flex; align-items: center; gap: 10px; height: 40px; border-radius: 40px;
  padding: 0 11px; margin: 4px 0 10px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--text-2);
}
.sidebar.open .sb-search { background: var(--field); border-color: var(--field-border); padding: 0 14px; cursor: text; }
.sb-search input::placeholder { color: var(--text-2); }
.sb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; display: none; }
.sidebar.open .sb-search input { display: block; }
.kbd { display: none; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.12); color: var(--text-2); }
.sidebar.open .kbd { display: inline-block; }

.sb-section { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; padding: 10px 12px 6px; display: none; }
.sidebar.open .sb-section { display: block; }
.sb-sep { height: 1px; margin: 8px 10px; background: rgba(255,255,255,.18); }
.sidebar.open .sb-sep.rail-only { display: none; }

.nav { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 11px;
  border-radius: 40px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text);
  text-align: left; white-space: nowrap; transition: background .15s, border-color .15s; margin: 2px 0; }
.nav:hover { background: var(--item-hover); }
.nav.active { background: var(--item-active); border-color: var(--item-active-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.nav .label { flex: 1; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; opacity: 0; width: 0; }
.sidebar.open .nav .label { opacity: 1; width: auto; }
.nav .dot { position: absolute; left: 25px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px rgba(30,30,30,.4); }
.sidebar.open .nav .dot { position: static; margin-right: 6px; }
.badge { display: none; min-width: 26px; height: 20px; padding: 0 7px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); align-items: center; justify-content: center; }
.badge.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); min-width: 20px; padding: 0 6px; }
.sidebar.open .badge { display: inline-flex; }
.nav .chev { display: none; color: var(--text-2); transition: transform .25s; }
.sidebar.open .nav .chev { display: block; }
.nav.expanded .chev { transform: rotate(180deg); }

.subnav { display: none; margin: 0 0 4px 22px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); }
.sidebar.open .subnav.show { display: block; }
.subnav button { display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; border: 0; background: none; cursor: pointer;
  color: var(--text); font-size: 13.5px; position: relative; padding: 0 8px; border-radius: 10px; }
.subnav button::before { content: ""; position: absolute; left: -12px; top: 50%; width: 10px; height: 1px; background: rgba(255,255,255,.22); }
.subnav button:hover { background: var(--item-hover); }
.subnav button:disabled { color: var(--text-3); cursor: default; }
.subnav i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.sb-switch { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 11px; border-radius: 40px; cursor: pointer; white-space: nowrap; }
.sb-switch .label { flex: 1; font-weight: 500; opacity: 0; width: 0; overflow: hidden; }
.sidebar.open .sb-switch .label { opacity: 1; width: auto; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 22px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); flex: none; transition: background .2s; display: none; }
.sidebar.open .switch, .switch.always { display: block; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.switch.on { background: var(--lime); border-color: var(--lime); }
.switch.on::after { transform: translateX(16px); background: #1a1a1a; }

.sb-foot { border-top: 1px solid rgba(255,255,255,.16); padding: 12px 6px 12px; margin: 0 4px; }
.sidebar.open .sb-foot { padding: 14px 6px 14px; margin: 0 10px; }
.user-card { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; cursor: pointer; padding: 0; text-align: left; white-space: nowrap; }
.avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; color: var(--lime); background: #1e1f1a; border: 2px solid rgba(196,240,58,.6); overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #2fd36b; border: 2px solid #2b2a27; }
.avatar.plain::after { display: none; }
.user-card .meta { flex: 1; overflow: hidden; opacity: 0; width: 0; }
.sidebar.open .user-card .meta { opacity: 1; width: auto; }
.user-card .meta b { display: block; font-size: 14.5px; }
.user-card .meta small { color: var(--text-2); font-size: 12.5px; }
.user-card .ud { display: none; color: var(--text-2); }
.sidebar.open .user-card .ud { display: block; }
.user-menu { margin-top: 10px; display: grid; gap: 4px; }
.user-menu button { height: 38px; border-radius: 12px; border: 1px solid var(--field-border); background: var(--field); cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 0 12px; }

/* Ikonka rejimidagi tooltip */
.tip { position: fixed; z-index: 60; pointer-events: none; padding: 5px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 500;
  background: rgba(230, 228, 224, .78); color: #222; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 4px 16px rgba(0,0,0,.2); opacity: 0; transition: opacity .12s; display: flex; gap: 6px; align-items: center; }
.tip.show { opacity: 1; }
.tip em { font-style: normal; font-size: 10.5px; padding: 1px 5px; border-radius: 6px; background: rgba(0,0,0,.12); }

/* Xabarlar paneli (videodagi Messages) */
.msg-head { display: flex; align-items: center; gap: 10px; padding: 6px 2px 14px; }
.round-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); display: grid; place-items: center; cursor: pointer; flex: none; }
.round-btn svg.i { width: 15px; height: 15px; }
.msg-head b { display: block; font-size: 17px; }
.msg-head small { color: var(--text-2); font-size: 12.5px; }
.msg { display: flex; gap: 11px; padding: 10px 8px; border-radius: 16px; border: 1px solid transparent; align-items: flex-start; }
.msg:hover { background: var(--item-hover); }
.msg.unread { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.msg .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; color: #fff; }
.msg .txt { flex: 1; min-width: 0; }
.msg .txt b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .txt span { color: var(--text-2); font-size: 12.5px; display: block; }
.msg .tm { text-align: right; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.msg .tm i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin: 7px 0 0 auto; }
.sync-note { text-align: center; color: var(--text-3); font-size: 11.5px; margin: 12px 0 4px; }

/* ---------- Asosiy maydon ---------- */
.main { min-height: 100vh; padding: 22px 22px 40px calc(var(--rail) + 40px); max-width: 1180px; }
@media (min-width: 1100px) { body.sb-pinned .main { padding-left: calc(var(--panel) + 44px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.card { border-radius: var(--r-lg); padding: 18px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.card + .card { margin-top: var(--gap); }
.card h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: var(--gap); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.mt { margin-top: 12px; }
.hide { display: none !important; }

.stat { border-radius: var(--r-lg); padding: 16px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.stat small { color: var(--text-2); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat span { color: var(--text-3); font-size: 12px; }
.stat.lime { background: linear-gradient(140deg, rgba(196,240,58,.95), rgba(160,205,40,.92)); color: var(--lime-ink); border-color: rgba(220,255,120,.7); }
.stat.lime small, .stat.lime span { color: rgba(16,20,10,.7); }

/* Tugmalar va maydonlar */
.btn { height: 42px; padding: 0 18px; border-radius: 42px; border: 1px solid var(--field-border); background: var(--field); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform .1s, filter .15s, background .15s; }
.btn:hover { background: rgba(255,255,255,.14); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 6px 22px rgba(196,240,58,.28); }
.btn.primary:hover { filter: brightness(1.06); background: var(--lime); }
.btn.danger { background: rgba(255,93,93,.18); border-color: rgba(255,93,93,.5); color: #ffb3b3; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--field-border); background: var(--field); outline: none; color: #fff; }
textarea.input { height: 90px; padding: 10px 14px; resize: vertical; }
select.input option { color: #111; }
.input:focus { border-color: rgba(196,240,58,.7); box-shadow: 0 0 0 3px rgba(196,240,58,.15); }
label.f { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--lime); margin-top: 1px; flex: none; }

.seg { display: inline-flex; padding: 4px; border-radius: 40px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); gap: 2px; }
.seg button { height: 34px; padding: 0 16px; border-radius: 34px; border: 1px solid transparent; background: none; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.seg button.on { background: var(--item-active); border-color: var(--item-active-border); color: #fff; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 24px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); white-space: nowrap; }
.chip.ok { background: rgba(196,240,58,.16); border-color: rgba(196,240,58,.5); color: #e5ff9e; }
.chip.no { background: rgba(255,93,93,.14); border-color: rgba(255,93,93,.4); color: #ffbcbc; }
.chip.warn { background: rgba(255,147,60,.16); border-color: rgba(255,147,60,.5); color: #ffd1a8; }
.chip.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

/* Bosh sahifa */
.hero { display: flex; align-items: center; gap: 16px; }
.hero .avatar { width: 56px; height: 56px; font-size: 22px; }
.hero h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.project { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); cursor: pointer; }
.project.main-p { background: linear-gradient(135deg, rgba(196,240,58,.32), rgba(150,146,140,.22) 60%); border-color: rgba(196,240,58,.55); }
.project h3 { margin: 0; font-size: 18px; }
.project .pi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.project.main-p .pi { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.project.soon { cursor: default; opacity: .7; }

/* O'yin kartochkasi */
.league-h { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); font-weight: 700; margin: 6px 4px 8px; }
.league-h img { width: 18px; height: 18px; object-fit: contain; }
.match { border-radius: var(--r-lg); padding: 14px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.match.done { border-color: rgba(196,240,58,.45); }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 600; font-size: 13.5px; min-width: 0; }
.team span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tlogo { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; overflow: hidden; color: #222; font-weight: 800; font-size: 14px; }
.tlogo img { width: 30px; height: 30px; object-fit: contain; }
.mid { text-align: center; min-width: 92px; }
.mid .time { font-size: 20px; font-weight: 800; }
.mid .score { font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.mid small { display: block; color: var(--text-2); font-size: 11.5px; margin-top: 2px; }
.pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 12px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--field-border); background: var(--field); cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.stepper button:active { transform: scale(.92); }
.stepper output { width: 38px; height: 42px; display: grid; place-items: center; font-size: 22px; font-weight: 800; border-radius: 12px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.14); }
.pick .btn { min-width: 92px; }
.mfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.crowd { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.1); margin-top: 10px; }
.crowd i { display: block; height: 100%; }
.crowd-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); margin-top: 5px; }

/* Reyting */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 16px; }
.lb-row:nth-child(odd) { background: rgba(255,255,255,.04); }
.lb-row .pl { width: 30px; text-align: center; font-weight: 800; color: var(--text-2); }
.lb-row .avatar { width: 36px; height: 36px; font-size: 14px; }
.lb-row .nm { flex: 1; min-width: 0; }
.lb-row .nm b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .nm small { color: var(--text-3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .xp { text-align: right; font-weight: 800; flex: none; white-space: nowrap; }
.lb-row .xp small { display: block; color: var(--text-3); font-weight: 500; font-size: 11.5px; }
.lb-me { position: sticky; bottom: 12px; margin-top: 12px; border-radius: 18px; background: rgba(196,240,58,.2) !important; border: 1px solid rgba(196,240,58,.55); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* Ro'yxat qatorlari */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row b { font-size: 14px; }
.progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lime); border-radius: 6px; }
.tier { border-radius: var(--r-lg); padding: 16px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); display: grid; gap: 10px; box-shadow: var(--shadow); }
.tier.ready { border-color: rgba(196,240,58,.6); }
.tier .sum { font-size: 22px; font-weight: 800; }
.copy-box { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 40px; background: var(--field); border: 1px solid var(--field-border); }
.copy-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.empty { text-align: center; padding: 30px 10px; color: var(--text-2); }
.empty svg.i { width: 34px; height: 34px; opacity: .6; margin-bottom: 8px; }
.prose { color: var(--text-2); }
.prose h3 { color: #fff; margin: 18px 0 8px; }
.prose li { margin: 4px 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; color: var(--text-2); font-weight: 600; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.14); }
table.t td { padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.tscroll { overflow-x: auto; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.bars i { display: block; width: 100%; max-width: 26px; border-radius: 8px 8px 3px 3px; background: var(--lime); min-height: 3px; }
.bars i.b2 { background: var(--purple); }
.bars span { font-size: 10px; color: var(--text-3); }

/* Kirish va obuna */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(420px, 100%); border-radius: var(--r-xl); padding: 28px; text-align: center; }
.auth-card .logo { width: 64px; height: 64px; margin: 0 auto 14px; }
.auth-card .logo span { width: 20px; height: 29px; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }
.ch-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--field); border: 1px solid var(--field-border); color: #fff; margin-top: 8px; font-weight: 600; }

/* Modal va toast */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10,8,6,.45); display: grid; place-items: center; padding: 16px; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; border-radius: var(--r-xl); padding: 20px; background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%); border: 1px solid var(--glass-border); box-shadow: var(--shadow); animation: pop .22s cubic-bezier(.3,.8,.3,1.2); }
.modal.wide { width: min(860px, 100%); }
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.modal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-h h3 { margin: 0; font-size: 18px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 40px;
  background: rgba(30,30,28,.86); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-weight: 600; font-size: 14px; transition: all .25s; max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255,93,93,.6); }
.toast.ok { border-color: rgba(196,240,58,.6); }
canvas.mask { width: 100%; border-radius: 12px; cursor: crosshair; touch-action: none; background: #000; }

/* ---------- Mobil ---------- */
@media (max-width: 700px) {
  :root { --gap: 12px; }
  .sidebar { left: 10px; top: 10px; bottom: 10px; }
  .sidebar.open { width: min(var(--panel), calc(100vw - 20px)); }
  .main { padding: 14px 12px 30px calc(var(--rail) + 22px); }
  .page-head h1 { font-size: 23px; }
  .stat b { font-size: 22px; }
  .card, .match { padding: 14px; }
  .mid { min-width: 70px; }
  .pick { grid-template-columns: 1fr 1fr; }
  .pick .btn { grid-column: 1 / -1; order: 3; width: 100%; }
  .stepper button { width: 32px; height: 32px; }
  .lb-row { gap: 9px; padding: 9px 6px; }
  .lb-row .xp small { font-size: 10.5px; }
}
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.25); display: none; }
@media (max-width: 1099px) { .sidebar.open ~ .scrim { display: block; } }
