:root {
  --bg: #0a0b16;
  --bg2: #11132a;
  --panel: rgba(18, 20, 42, .82);
  --line: rgba(150, 120, 255, .22);
  --text: #e9eaf5;
  --muted: #9da2c2;
  --accent: #9678ff;
  --accent2: #5ac8ff;
  --gold: #e8c468;
  --gold2: #c07a1e;
  --ok: #50dc78;
  --bad: #f0505a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 80% -10%, #241a55 0%, transparent 60%), var(--bg);
  color: var(--text); font: 15px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
}
main { flex: 1; }
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #fff; }
.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }

/* ---------------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 20, .72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 600 26px/1 Teko, sans-serif; letter-spacing: .06em; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 600; }
.brand.small { font-size: 20px; }
.nav { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.nav > a:not(.btn) { color: var(--muted); font: 500 20px/1 Teko, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.nav > a.active, .nav > a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.inline { display: inline; margin: 0; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { color: #fff; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0,0,0,.3); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; }
.status-pill.on i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-pill.off i { background: var(--bad); }

/* ---------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 10px; border: 1px solid transparent; font: 600 14px/1 Inter, sans-serif; letter-spacing: .02em; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #2e1a05; box-shadow: 0 6px 24px rgba(232, 196, 104, .25); }
.btn-gold:hover { color: #2e1a05; box-shadow: 0 8px 30px rgba(232, 196, 104, .4); }
.btn-ghost { background: rgba(150, 120, 255, .12); border-color: var(--line); color: #fff; }
.btn-ghost:hover, .btn-ghost.active { background: rgba(150, 120, 255, .25); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------------- hero */
.hero { position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: url(/assets/img/hero.jpg) center right / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,20,.92) 0%, rgba(8,8,20,.6) 45%, rgba(8,8,20,0) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-inner { position: relative; padding: 80px 0; }
.eyebrow { margin: 0 0 6px; color: var(--accent2); font: 600 18px/1 Teko, sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 700 clamp(64px, 10vw, 120px)/.85 Teko, sans-serif; letter-spacing: .02em; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.hero h1 span { display: block; margin-top: 10px; font-size: .42em; font-weight: 500; letter-spacing: .4em; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 520px; color: #cfd2ea; font-size: 17px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 36px; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { min-width: 150px; padding: 14px 20px; border-radius: var(--radius); background: rgba(10, 11, 26, .7); border: 1px solid var(--line); }
.stat-num { display: block; font: 600 34px/1 Teko, sans-serif; }
.stat-num.ok { color: var(--ok); }
.stat-num.bad { color: var(--bad); }
.stat-label { color: var(--muted); font-size: 13px; }

/* ---------------- sections */
.section { padding: 56px 0; }
.section-title, .page-title { margin: 0 0 22px; font: 600 44px/1 Teko, sans-serif; letter-spacing: .04em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { overflow: hidden; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-4px); border-color: rgba(150,120,255,.5); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; font: 600 26px/1 Teko, sans-serif; letter-spacing: .04em; }
.card p { margin: 0; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.panel-title { margin: 0 0 14px; font: 600 28px/1 Teko, sans-serif; letter-spacing: .05em; color: var(--accent); }
.panel-title:not(:first-child) { margin-top: 26px; }
.panel-sub { margin: 22px 0 10px; font: 600 22px/1 Teko, sans-serif; color: var(--gold); letter-spacing: .05em; }
.news { white-space: normal; color: #d6d8ee; }
.more { display: inline-block; margin-top: 12px; font-weight: 600; }

.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.toplist .name { font-weight: 600; }
.toplist .meta { color: var(--muted); font-size: 13px; }
.toplist .lvl { color: var(--gold); font: 600 20px/1 Teko, sans-serif; }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.07); font: 600 18px/1 Teko, sans-serif; }
.rank.r1 { background: linear-gradient(180deg, #ffe08a, #c58a20); color: #2e1a05; }
.rank.r2 { background: linear-gradient(180deg, #eef0f8, #9aa0b8); color: #1b1d2b; }
.rank.r3 { background: linear-gradient(180deg, #f0b88a, #a0602c); color: #2a1404; }

/* ---------------- tables & tabs */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
.table tr:hover td { background: rgba(150,120,255,.06); }
.rank-table .stat { color: var(--gold); font-weight: 600; }
.dot-on { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font: 500 19px/1 Teko, sans-serif; letter-spacing: .06em; }
.tab.small { font-size: 16px; padding: 7px 12px; }
.tab.active, .tab:hover { color: #fff; background: rgba(150,120,255,.22); }
.tabs-sep { flex: 0 0 1px; height: 26px; margin: 0 6px; background: var(--line); }

/* ---------------- forms */
.auth { display: grid; place-items: center; padding: 70px 0; }
.auth-card { width: min(440px, 92vw); padding: 30px 32px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth-card h1 { margin: 0; font: 600 42px/1 Teko, sans-serif; letter-spacing: .04em; }
form label { display: block; margin: 14px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
form label small { font-weight: 400; }
form input { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 6, 16, .7); color: var(--text); font: 15px Inter, sans-serif; }
form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150,120,255,.2); }
form .btn-block { margin-top: 20px; padding: 13px; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { margin: 16px 0; padding: 12px 16px; border-radius: 10px; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: rgba(240, 80, 90, .12); border-color: rgba(240, 80, 90, .4); color: #ffc3c7; }
.alert-success { background: rgba(80, 220, 120, .12); border-color: rgba(80, 220, 120, .4); color: #c2f5d2; }
.alert-info { background: rgba(90, 200, 255, .1); border-color: rgba(90, 200, 255, .35); color: #cdeeff; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.steps { padding-left: 20px; }
.steps li { margin: 8px 0; }
.req { display: block; margin-bottom: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(150,120,255,.08); color: #fff; }
.req:hover { background: rgba(150,120,255,.18); }
.req span { display: block; color: var(--muted); font-size: 13px; }

/* ---------------- footer */
.footer { margin-top: 40px; padding: 26px 0; border-top: 1px solid var(--line); background: rgba(5,6,14,.6); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------------- news, badges, profile */
.mt { margin-top: 22px; }
.news-item + .news-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.news-item h3 { margin: 0; font: 600 22px/1.1 Teko, sans-serif; letter-spacing: .04em; color: #fff; }
.news-item time { display: block; margin: 2px 0 8px; color: var(--muted); font-size: 12px; }
.toplist a.name { color: var(--text); }
.toplist a.name:hover { color: var(--accent2); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font: 600 11px/1.5 Inter, sans-serif; letter-spacing: .04em; vertical-align: middle; background: rgba(150,120,255,.2); color: #d8ceff; }
.badge.ok { background: rgba(80,220,120,.15); color: #a8f0bf; }
.badge.bad { background: rgba(240,80,90,.18); color: #ffb3b8; }
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.profile-head .page-title { margin: 0; }
.profile-head p { margin: 4px 0 0; }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; font: 700 46px/1 Teko, sans-serif; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 10px 30px rgba(150,120,255,.35); }
.avatar.school-0 { background: linear-gradient(135deg, #e05a5a, #8f2030); }
.avatar.school-1 { background: linear-gradient(135deg, #5a8fe0, #23407f); }
.avatar.school-2 { background: linear-gradient(135deg, #e0b25a, #8a5a1c); }

/* ---------------- GM panel */
.gm-head { padding-top: 40px; }
.gm-head .page-title { margin-bottom: 14px; }
.search { display: flex; gap: 10px; margin-bottom: 18px; }
.search input { flex: 1; margin: 0; }
form textarea, form select, .search input { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 6, 16, .7); color: var(--text); font: 15px Inter, sans-serif; }
form textarea { display: block; width: 100%; margin-top: 6px; resize: vertical; }
form select { padding: 5px 8px; font-size: 13px; }
form label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
form label.check input { width: auto; margin: 0; }
.actions { white-space: nowrap; }
.actions form { margin-right: 10px; }
.link-btn.danger { color: #ff8a92; }
.table a { color: var(--text); font-weight: 600; }
.table a:hover { color: var(--accent2); }

/* ---------------- guide */
.crumbs { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent2); }
.lead-sm { margin: -4px 0 20px; color: var(--muted); font-size: 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.guide-grid .panel-title a { color: inherit; }
.guide-list { margin: 0; padding-left: 22px; }
.guide-list li { margin: 7px 0; }
.guide-list a { color: var(--text); }
.guide-list a:hover, .guide-list li.active a { color: var(--accent2); }
.guide-list.big li { margin: 12px 0; }
.guide-list.big a { font-weight: 600; }
.guide-list.big span { display: block; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.guide-side { position: sticky; top: 84px; }
.guide-side .panel-title + ul, .guide-side .panel-title + ol { margin-bottom: 18px; }
.guide-toc { list-style: none; margin: 0; padding: 0; }
.guide-toc li { margin: 6px 0; }
.guide-toc a { color: var(--muted); font-size: 14px; }
.guide-toc a:hover { color: var(--accent2); }
.guide-body { line-height: 1.7; color: #d6d8ee; }
.guide-body h2 { margin: 26px 0 8px; font: 600 30px/1.1 Teko, sans-serif; letter-spacing: .03em; color: #fff; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { margin: 18px 0 6px; font: 600 23px/1.1 Teko, sans-serif; letter-spacing: .03em; color: var(--gold); }
.guide-body h2, .guide-body h3 { scroll-margin-top: 84px; }
.guide-body p { margin: 10px 0; }
.guide-body ul, .guide-body ol { margin: 10px 0; padding-left: 22px; }
.guide-body li { margin: 5px 0; }
.guide-body strong { color: #fff; }
.guide-body code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 13px; }
.guide-body .tip { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(240, 190, 90, .08); }
.table-wrap { margin: 14px 0; overflow-x: auto; }
.guide-body .table td, .guide-body .table th { padding: 8px 10px; }
.guide-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* ---------------- VIP */
.vip-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.vip-card { display: flex; flex-direction: column; padding: 0 20px 20px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(40, 28, 80, .55), var(--panel) 160px); }
.vip-card form { margin-top: auto !important; padding-top: 14px; }
.vip-head { display: flex; align-items: center; gap: 22px; margin: 0 -20px 14px; padding: 26px 24px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 20% 50%, rgba(150, 120, 255, .25), transparent 70%); }
.vip-head img { position: relative; z-index: 1; display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(240, 190, 90, .5), 0 0 22px rgba(150, 120, 255, .45); }

/* animated aura: spinning flame ring + rising embers; strength grows with VIP level */
.aura { --c1: #b48cff; --c2: #ffd36a; --sz: 18px; --spd: 6s; position: relative; flex: none; display: inline-block; border-radius: 50%; isolation: isolate; }
.aura::before, .aura::after { content: ""; position: absolute; inset: calc(var(--sz) * -1); z-index: 0; border-radius: 50%; pointer-events: none; }
.aura::before { background: conic-gradient(from 0deg, transparent 0 10%, var(--c1) 18%, transparent 30%, var(--c2) 45%, transparent 58%, var(--c1) 72%, transparent 84%, var(--c2) 94%, transparent); filter: blur(7px); opacity: .85; -webkit-mask: radial-gradient(circle, transparent 48%, #000 56%, transparent 72%); mask: radial-gradient(circle, transparent 48%, #000 56%, transparent 72%); animation: aura-spin var(--spd) linear infinite, aura-pulse 2.2s ease-in-out infinite alternate; }
.aura::after { background: radial-gradient(circle at 30% 80%, var(--c2) 0 2px, transparent 3px), radial-gradient(circle at 70% 75%, var(--c1) 0 2px, transparent 3px), radial-gradient(circle at 50% 90%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 20% 60%, var(--c1) 0 1.5px, transparent 2.5px), radial-gradient(circle at 82% 62%, var(--c2) 0 1.5px, transparent 2.5px); filter: drop-shadow(0 0 4px var(--c2)); animation: aura-embers 2.4s ease-in infinite; }
.aura-1 { --c1: #8a6a4a; --c2: #c99a5b; --sz: 8px; --spd: 10s; }
.aura-2 { --c1: #5aa0ff; --c2: #cfe3ff; --sz: 10px; --spd: 9s; }
.aura-3 { --c1: #9a7bff; --c2: #d8c8ff; --sz: 12px; --spd: 8s; }
.aura-4 { --c1: #b06cff; --c2: #ffd36a; --sz: 14px; --spd: 7s; }
.aura-5 { --c1: #c04dff; --c2: #ffc23a; --sz: 16px; --spd: 6s; }
.aura-6 { --c1: #ff9a2a; --c2: #ffe680; --sz: 18px; --spd: 5s; }
.aura-7 { --c1: #ff6a00; --c2: #ffe14d; --sz: 22px; --spd: 3.5s; }
.aura-7::before { filter: blur(6px) saturate(1.4); opacity: 1; }
@keyframes aura-spin { to { transform: rotate(1turn); } }
@keyframes aura-pulse { from { scale: .94; } to { scale: 1.06; } }
@keyframes aura-embers { 0% { transform: translateY(6px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-26px) scale(.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .aura::before, .aura::after { animation: none; } }

/* ---------------- donation checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 18px; }
.checkout-layout .packages { grid-template-columns: repeat(3, 1fr); margin: 0; }
.checkout-layout .package .pk-img { aspect-ratio: 16 / 10; }
.package:has(input:checked)::after { content: "✓"; position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #2e1a05; font-weight: 800; font-size: 13px; }
.checkout { position: sticky; top: 84px; display: grid; gap: 12px; }
.checkout .panel-title { margin: 0; }
.co-rows { display: grid; grid-template-columns: auto 1fr; gap: 9px 12px; margin: 0; font-size: 14px; }
.co-rows dt { color: var(--muted); }
.co-rows dd { margin: 0; text-align: right; color: #fff; font-weight: 600; }
.co-rows .ok-text { color: var(--ok); }
.co-qty { width: 70px; margin: 0; padding: 4px 8px; text-align: center; }
.co-total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.co-total span { color: var(--muted); }
.co-total strong { color: var(--gold); font: 700 36px/1 Teko, sans-serif; }
.co-label { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay { position: relative; display: grid; gap: 2px; margin: 0; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 6, 16, .5); text-align: center; cursor: pointer; }
.pay input { position: absolute; opacity: 0; }
.pay-name { color: #fff; font-weight: 700; font-size: 14px; }
.pay-sub { color: var(--muted); font-size: 11px; }
.pay:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: rgba(240, 190, 90, .08); }
.pay.disabled { opacity: .35; filter: grayscale(1); cursor: not-allowed; background: rgba(0, 0, 0, .5); }
.co-bank { padding: 10px 12px; border-radius: 10px; background: rgba(5, 6, 16, .5); font-size: 13px; }
.co-agree { align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); }
.checkout .center { margin: 0; text-align: center; }
@media (max-width: 980px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout { position: static; }
}
@media (max-width: 640px) { .checkout-layout .packages { grid-template-columns: repeat(2, 1fr); } }
.vip-card h3 { margin: 0; font: 700 34px/1 Teko, sans-serif; letter-spacing: .04em; color: var(--gold); }
.vip-card .price { margin: 4px 0 0; color: #fff; font-weight: 600; font-size: 13px; }
.vip-card ul { margin: 0; padding-left: 18px; color: #d6d8ee; font-size: 14px; }
.vip-card li { margin: 5px 0; }
.vip-card.current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 40px rgba(240, 190, 90, .15); }
.vip-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; }
.avatar.face { padding: 0; object-fit: cover; border: 2px solid rgba(232, 196, 104, .55); background: #0b0c1a; }
.mini-face { width: 28px; height: 28px; margin-right: 10px; border-radius: 8px; vertical-align: middle; object-fit: cover; }
div.mini-face { display: inline-grid; place-items: center; background: rgba(150,120,255,.25); font: 600 15px/1 Teko, sans-serif; }

/* ---------------- home board: status | news & top lists | events */
.hero.hero-compact { min-height: 440px; }
.hero-compact .hero-inner { padding: 56px 0 70px; }
.home-board { display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; gap: 20px; align-items: start; margin-top: -40px; position: relative; z-index: 1; padding-bottom: 20px; }
.board-side, .board-main { display: grid; gap: 20px; }
.board-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.home-board .panel { padding: 18px 20px; }
.home-board .panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 24px; margin-bottom: 12px; }
.home-board .panel-title .more, .panel-title .tz { float: none; margin: 0; color: var(--muted); font: 500 12px Inter, sans-serif; letter-spacing: .04em; white-space: nowrap; }
.home-board .panel-title a.more { color: var(--accent2); }
.start-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.start-steps li { counter-increment: step; }
.start-steps a { display: grid; align-content: start; gap: 4px; height: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 6, 16, .45); color: var(--text); }
.start-steps a::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 8px; background: linear-gradient(180deg, #ffe08a, #c58a20); color: #2e1a05; font: 600 18px/1 Teko, sans-serif; }
.start-steps a:hover { border-color: var(--accent); }
.start-steps strong { color: #fff; font-size: 14px; }
.start-steps span { color: var(--muted); font-size: 12px; }

.status-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font: 600 22px/1 Teko, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.status-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.status-head.online { color: var(--ok); }
.status-head.online i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-head.offline, .status-head.maintenance { color: var(--bad); }
.status-rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.status-rows dt { color: var(--muted); }
.status-rows dd { margin: 0; text-align: right; color: var(--text); font-weight: 600; }

.quick-links { display: grid; padding: 8px 10px !important; }
.quick-links a { padding: 10px 10px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14px; }
.quick-links a + a { border-top: 1px solid rgba(255,255,255,.05); }
.quick-links a:hover { background: rgba(150,120,255,.12); color: #fff; }

.war-card { display: grid; gap: 4px; background: linear-gradient(160deg, rgba(240,80,90,.16), rgba(18,20,42,.9) 60%) !important; }
.war-label { color: #ffb3b8; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.war-when { color: #fff; font: 600 26px/1.05 Teko, sans-serif; letter-spacing: .03em; }
.war-when.live { color: var(--ok); }
.war-card .countdown { color: var(--gold); font: 600 20px/1 Teko, sans-serif; letter-spacing: .05em; }
.war-top { margin-top: 6px; color: var(--muted); font-size: 12px; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.news-list a:hover { color: var(--accent2); }
.news-list time { color: var(--muted); font-size: 12px; }
.toplist.compact li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; }
.toplist.compact .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist li:last-child { border-bottom: 0; }

.board-events { padding: 18px 0 8px !important; }
.board-events .panel-title { padding: 0 20px; }
.ev-list { list-style: none; margin: 0; padding: 0; max-height: 600px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(150,120,255,.35) transparent; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.ev.live { background: rgba(80, 220, 120, .07); }
.ev-main { display: grid; gap: 2px; min-width: 0; }
.ev-name { overflow: hidden; color: #fff; font-weight: 600; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
a.ev-name:hover { color: var(--accent2); }
.ev-meta { color: var(--muted); font-size: 12px; }
.ev-place { overflow: hidden; color: rgba(160,165,200,.7); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ev-meta .kind-event { color: #b9a6ff; } .ev-meta .kind-war { color: #ff9aa2; } .ev-meta .kind-pk { color: #ffd27a; } .ev-meta .kind-boss { color: #8fd8ff; }
.ev-time { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.ev-time .countdown { color: var(--gold); font: 600 20px/1 Teko, sans-serif; letter-spacing: .05em; }
.ev-live { color: var(--ok); font: 600 16px/1 Teko, sans-serif; letter-spacing: .08em; }
.ev-when { color: var(--muted); font-size: 11px; }

@media (max-width: 1150px) {
  .home-board { grid-template-columns: 250px minmax(0, 1fr); }
  .board-events { grid-column: 1 / -1; }
  .ev-list { max-height: none; }
}
@media (max-width: 900px) {
  .home-board { grid-template-columns: 1fr; margin-top: 0; }
  .board-pair, .start-steps ol { grid-template-columns: 1fr; }
}
.badge.kind-war { background: rgba(240, 80, 90, .18); color: #ffb3b8; }
.badge.kind-pk { background: rgba(240, 190, 90, .18); color: #ffe0a3; }
.badge.kind-boss { background: rgba(90, 200, 255, .15); color: #bfe9ff; }

/* ---------------- dashboards, donation, shop */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.stat-cards .panel { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.stat-cards a.panel:hover { border-color: var(--accent); }
.stat-cards .stat-label { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.stat-cards strong { font: 600 32px/1.1 Teko, sans-serif; color: #fff; }
.stat-num.small-num { font-size: 22px; line-height: 1.2; }
.panel-title .more { float: right; margin: 6px 0 0; font: 500 14px Inter, sans-serif; }
.toplist.simple li { grid-template-columns: 1fr auto; }
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .packages { grid-template-columns: repeat(2, 1fr); } }
.package { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 0 14px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(40, 28, 80, .55), rgba(5, 6, 16, .7)); cursor: pointer; text-align: center; transition: transform .15s, border-color .15s, box-shadow .15s; }
.package:hover { transform: translateY(-3px); border-color: var(--accent); }
.package input { position: absolute; opacity: 0; }
.package:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 28px rgba(240, 190, 90, .25); }
.package .pk-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 8px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.package .pk-tag { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 6px; background: linear-gradient(180deg, #ffe08a, #c58a20); color: #2e1a05; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.package .pk-ep { color: #fff; font: 600 26px/1 Teko, sans-serif; }
.package .pk-bonus { min-height: 15px; color: var(--ok); font-size: 12px; }
.package .pk-price { margin: 4px auto 0; padding: 4px 14px; border-radius: 999px; background: rgba(240, 190, 90, .12); color: var(--gold); font: 700 22px/1 Teko, sans-serif; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shop-item h3 { margin: 0; font: 600 22px/1.1 Teko, sans-serif; color: #fff; }
.shop-item .price { color: var(--gold); font: 700 24px/1 Teko, sans-serif; }

/* ---------------- responsive */
@media (max-width: 900px) {
  .cards, .grid-2, .guide-layout { grid-template-columns: 1fr; }
  .guide-side { position: static; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 4vw 22px; background: rgba(8, 9, 20, .97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .hero { min-height: 540px; }
  .toplist li { grid-template-columns: 34px 1fr auto; }
  .toplist .meta { display: none; }
}
