/* ===================== Faer Role Play ===================== */
:root {
  --bg: #0b0712;
  --bg-2: #120a1d;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .16);
  --text: #f4eff9;
  --muted: #a89bb8;
  --c1: #ff3d7f;
  --c2: #ff7a3d;
  --c3: #ffc24b;
  --violet: #9b5cff;
  --ok: #3ddc97;
  --err: #ff5470;
  --grad: linear-gradient(115deg, var(--c1), var(--c2) 55%, var(--c3));
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; background: var(--surface-2); padding: .12em .45em; border-radius: 6px; font-size: .92em; color: var(--c3); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 500; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text { color: var(--text); }
.accent { color: var(--c2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 12px; } .gap-sm { gap: 8px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.wrap-gap { flex-wrap: wrap; }
.ml-auto { margin-left: auto; }
.mt { margin-top: 18px; }
.pt0 { padding-top: 0 !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; min-width: 0; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; }

/* ---------- фон ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 18s ease-in-out infinite alternate; }
.o1 { width: 620px; height: 620px; background: #ff3d7f; top: -260px; left: -160px; opacity: .28; }
.o2 { width: 520px; height: 520px; background: #ff7a3d; top: 10%; right: -200px; opacity: .22; animation-delay: -6s; }
.o3 { width: 700px; height: 700px; background: #6b2cff; bottom: -380px; left: 30%; opacity: .25; animation-delay: -12s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.08); } }
.grid-fx {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

/* ---------- кнопки ---------- */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 700 15px var(--font); color: var(--text); background: var(--b); cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); box-shadow: 0 10px 30px -10px rgba(255, 90, 80, .7), inset 0 1px 0 rgba(255,255,255,.25); color: #fff; }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(255, 90, 80, .9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.26); }
.btn-light { background: #fff; color: #1a0f24; }
.btn-danger { background: rgba(255, 84, 112, .14); border-color: rgba(255, 84, 112, .4); color: #ff8fa3; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-xs { height: 28px; width: 28px; padding: 0; border-radius: 8px; }
.btn-xs .ico { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; background: var(--surface-2); border-color: var(--border); }
.btn-icon:hover { border-color: var(--c2); color: var(--c3); }
.link { color: var(--c3); font-weight: 700; }
.link:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--err); }

/* ---------- шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.4); background: rgba(11, 7, 18, .72); border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 19px var(--display); letter-spacing: .02em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 15px; transition: .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--c2); }
.nav-mobile-only { display: none; }
.account { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-pill.up .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 1.8s infinite; }
.live-pill.down .dot { background: var(--err); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.balance-chip, .user-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 14px; transition: .2s; }
.balance-chip .ico { color: var(--c3); width: 18px; }
.user-chip { padding-left: 5px; }
.balance-chip:hover, .user-chip:hover { border-color: var(--border-2); background: var(--surface-2); }
.burger { display: none; margin-left: 4px; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

/* ---------- аватары / роли ---------- */
.avatar { --h: 20; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; font: 800 14px var(--display); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 85% 58%), hsl(calc(var(--h) + 40) 80% 45%)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; }
.avatar.xl { width: 88px; height: 88px; border-radius: 24px; font-size: 28px; }
.role { display: inline-block; padding: 3px 9px; border-radius: 7px; font: 800 11px var(--font); text-transform: uppercase; letter-spacing: .05em; vertical-align: middle; }
.role-admin { background: var(--grad); color: #fff; }

/* ---------- flash / toast ---------- */
.flash { margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; font-weight: 700; border: 1px solid; }
.flash-ok { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .35); color: #8ff0c4; }
.flash-error { background: rgba(255, 84, 112, .1); border-color: rgba(255, 84, 112, .35); color: #ff9db0; }
.auth-card .flash { margin: 0 0 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; padding: 12px 20px; border-radius: 12px; background: #fff; color: #1a0f24; font-weight: 800; transition: .3s; pointer-events: none; z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- glass ---------- */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.panel { padding: 28px; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 60px; }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--c2); margin-bottom: 14px; }
.eyebrow .ico { width: 16px; height: 16px; }
.hero .eyebrow { padding: 8px 14px; border-radius: 99px; background: rgba(255, 122, 61, .1); border: 1px solid rgba(255, 122, 61, .3); text-transform: none; letter-spacing: 0; font-size: 14px; }
.hero-title { font-size: clamp(42px, 7vw, 84px); font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-bottom: 22px; }
.hero-title .grad { filter: drop-shadow(0 6px 30px rgba(255, 90, 80, .35)); }
.hero-sub { font-size: 18px; color: #cfc4dc; max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; }
.hero-meta .ico { width: 16px; }

.server-card { padding: 28px; position: relative; overflow: hidden; }
.server-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255,122,61,.6), transparent 40%, transparent 60%, rgba(155,92,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.sc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sc-label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sc-host { font-weight: 700; color: #d9cfe6; margin-bottom: 6px; }
.status-badge { padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; }
.status-badge.up { background: rgba(61,220,151,.14); color: var(--ok); }
.status-badge.down { background: rgba(255,84,112,.14); color: var(--err); }
.sc-online { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.sc-num { font: 900 76px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-max { font: 700 26px var(--display); color: var(--muted); }
.sc-sub { color: var(--muted); font-weight: 600; margin: 4px 0 16px; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 18px rgba(255,122,61,.7); }
.spark { width: 100%; height: 70px; margin: 18px 0 8px; }
.sc-addr { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.sc-addr > div { flex: 1; min-width: 0; }
.sc-addr code { display: block; background: none; padding: 0; font-size: 17px; font-weight: 700; margin-top: 2px; }
.sc-upd { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; }

/* ---------- stats ---------- */
.stats-strip { border-block: 1px solid var(--border); background: rgba(255,255,255,.02); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-in > div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--border); }
.stats-in > div:last-child { border-right: 0; }
.stats-in b { display: block; font: 900 32px var(--display); }
.stats-in span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- секции ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head.left { text-align: left; margin-bottom: 22px; }
.page-head { padding: 56px 0 36px; }
.page-head p { max-width: 720px; }
.crumbs { color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.crumbs a:hover { color: var(--text); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(255, 122, 61, .4); }
.feature-ico { width: 48px; height: 48px; padding: 12px; border-radius: 14px; margin-bottom: 18px; color: #fff; background: var(--grad); box-shadow: 0 10px 26px -8px rgba(255, 90, 80, .7); }
.feature p { color: var(--muted); margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2); font: 800 18px var(--display); color: var(--c3); }
.steps b { font-size: 16px; }
.steps span { color: var(--muted); }
.steps.big { gap: 26px; margin: 0; }
.ip-inline { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list a { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.news-list li:last-child a { border-bottom: 0; }
.news-list a:hover .news-title { color: var(--c3); }
.news-title { font-weight: 700; transition: .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list .muted { flex: none; font-size: 13px; }
.players { display: flex; flex-wrap: wrap; gap: 8px; }
.player { display: inline-flex; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.player b { color: var(--c3); }

.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 48px; border-radius: 26px; background: var(--grad); position: relative; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(255, 70, 90, .7); }
.cta-banner::after { content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.14); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; max-width: 560px; font-weight: 600; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- download ---------- */
.download-panel { text-align: center; }
.big-ico { width: 72px; height: 72px; padding: 18px; margin: 0 auto 18px; border-radius: 22px; background: var(--grad); color: #fff; box-shadow: 0 16px 40px -12px rgba(255, 90, 80, .8); }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; text-align: left; }
.reqs div { padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--border); }
.reqs span { display: block; font-size: 12px; font-weight: 700; }
.reqs b { font-size: 14px; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 64px 16px 90px; }
.auth-card { width: min(460px, 100%); padding: 40px 36px; }
.auth-card.center { text-align: center; }
.auth-card h1 { font-size: 28px; }
.auth-logo { margin-bottom: 18px; }
.auth-switch { text-align: center; margin: 20px 0 0; }
.code-404 { font: 900 110px/1 var(--display); margin-bottom: 10px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; }
.form label > span { font-weight: 700; font-size: 14px; }
.form small { font-weight: 600; margin-left: 6px; }
input, textarea, select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, .3); color: var(--text); font: 500 15px var(--font); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input:focus, textarea:focus { outline: none; border-color: var(--c2); box-shadow: 0 0 0 4px rgba(255, 122, 61, .18); }
.form label.check { display: flex; align-items: flex-start; gap: 10px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c2); flex: none; }
.check span { font-weight: 600 !important; color: var(--muted); }

/* ---------- профиль ---------- */
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile-head h1 { margin-bottom: 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-head p { margin: 0; }
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.span2 { grid-column: span 1; }
.profile-grid > .balance-panel { grid-row: span 2; display: flex; flex-direction: column; gap: 12px; }
.big-num { font: 900 40px var(--display); margin: 2px 0 10px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 12px 10px 0; }
.table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--border); white-space: nowrap; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.tag-ok { background: rgba(61,220,151,.14); color: var(--ok); }
.tag-wait { background: rgba(255,194,75,.14); color: var(--c3); }

/* ---------- донат ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; border: 0; background: none; color: var(--muted); font: 700 15px var(--font); cursor: pointer; transition: .2s; }
.tab .ico { width: 18px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(255, 90, 80, .8); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.product { --c: #fff; position: relative; padding: 24px; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.product::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); opacity: .9; }
.product::after { content: ''; position: absolute; top: -90px; right: -90px; width: 200px; height: 200px; border-radius: 50%; background: var(--c); opacity: .08; filter: blur(30px); }
.product:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 26px 60px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.product.hot { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.product[hidden] { display: none; }
.hot-badge { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 8px; background: var(--grad); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.product-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-top h3 { margin: 0; font-size: 16px; }
.product-top .muted { font-size: 13px; font-weight: 600; }
.product-ico { width: 46px; height: 46px; padding: 11px; border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.perks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14px; color: #d6cce2; flex: 1; }
.perks li { display: flex; gap: 9px; align-items: flex-start; }
.perks .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--c); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.price { font: 800 22px var(--display); }
.topup { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.demo-note { padding: 12px 14px; border-radius: 12px; background: rgba(255,194,75,.1); border: 1px dashed rgba(255,194,75,.4); color: var(--c3); font-size: 14px; font-weight: 600; }
.topup-form { display: grid; gap: 16px; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amount input { position: absolute; opacity: 0; pointer-events: none; }
.amount span { display: grid; place-items: center; height: 48px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border-2); font-weight: 800; font-size: 14px; cursor: pointer; transition: .2s; }
.amount input:checked + span { border-color: var(--c2); background: rgba(255,122,61,.14); color: var(--c3); }
.amount-custom { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }

/* ---------- форум ---------- */
.forum-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.forum-side { display: grid; gap: 22px; }
.cat-list, .topic-list { overflow: hidden; }
.cat-row, .topic-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 80px 80px 200px; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); transition: background .2s; }
.topic-row { grid-template-columns: 40px minmax(0, 1fr) 80px 80px 120px; }
.cat-row:last-child, .topic-row:last-child { border-bottom: 0; }
.cat-row:hover, .topic-row:hover { background: rgba(255,255,255,.035); }
.topic-row.pinned { background: rgba(255, 122, 61, .05); }
.cat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgba(255,122,61,.1); border: 1px solid rgba(255,122,61,.25); color: var(--c2); }
.cat-ico .ico { width: 24px; height: 24px; }
.cat-main, .topic-main { display: grid; gap: 3px; min-width: 0; }
.cat-main b, .topic-main b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-main:hover b, .topic-row:hover .topic-main b { color: var(--c3); }
.cat-main .muted { font-size: 14px; }
.cat-count { text-align: center; display: grid; line-height: 1.3; }
.cat-count b { font: 700 17px var(--display); }
.cat-count .muted { font-size: 12px; }
.cat-last { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.cat-last a:hover { color: var(--c3); }
.cat-last .muted { font-size: 12px; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.activity li { display: flex; gap: 12px; align-items: center; min-width: 0; }
.activity div { display: grid; min-width: 0; }
.activity a { font-weight: 700; font-size: 14px; }
.activity a:hover { color: var(--c3); }
.forum-stats > div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.empty { padding: 44px; text-align: center; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 10px; }

.topic-title { display: flex; align-items: center; gap: 12px; }
.topic-title .ico { width: 30px; height: 30px; }
.mod-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.posts { display: grid; gap: 16px; margin-bottom: 22px; }
.post { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; }
.post-author { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px 16px; background: rgba(0,0,0,.18); border-right: 1px solid var(--border); }
.post-author b { word-break: break-all; }
.post-body { padding: 20px 26px; min-width: 0; }
.post-meta { display: flex; justify-content: space-between; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.post-meta a:hover { color: var(--text); }
.post-text { overflow-wrap: anywhere; color: #e4dbee; }
.post-text a { color: var(--c3); text-decoration: underline; }
form.inline { display: inline; }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 44px 0; background: rgba(0,0,0,.2); }
.footer-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer p { margin: 12px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: .2s; }
.socials a:hover { color: #fff; border-color: var(--c2); background: rgba(255,122,61,.12); }

/* ---------- анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, .reveal { animation: none !important; transition: none !important; opacity: 1; transform: none; } }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .forum-layout { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: 52px minmax(0, 1fr) 70px 70px; }
  .cat-row .cat-last { display: none; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-in, .two-col, .topup, .profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .profile-grid > .balance-panel { grid-row: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stats-in > div:nth-child(2) { border-right: 0; }
  .stats-in > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .burger { display: block; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; padding: 14px 16px 20px; background: rgba(11,7,18,.97); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 14px; font-size: 17px; }
  .nav-mobile-only { display: block; }
  .hide-sm, .balance-chip span, .user-chip > span:not(.avatar) { display: none; }
  .balance-chip { padding: 0 10px; }
  .user-chip { padding: 0 5px; }
}
@media (max-width: 600px) {
  .features, .products { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .auth-card { padding: 30px 22px; }
  .topbar-in { gap: 12px; }
  .brand span { display: none; }
  .live-pill { padding: 0 11px; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .topic-row { grid-template-columns: 40px minmax(0, 1fr) 56px; padding: 14px 16px; gap: 12px; }
  .topic-row .cat-count:nth-of-type(2), .topic-row .cat-last { display: none; }
  .cat-row { grid-template-columns: 44px minmax(0, 1fr) 56px; padding: 14px 16px; gap: 12px; }
  .cat-row .cat-count:nth-of-type(2) { display: none; }
  .cat-ico { width: 44px; height: 44px; border-radius: 12px; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; justify-content: flex-start; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--border); text-align: left; }
  .post-author .avatar.lg { width: 40px; height: 40px; font-size: 14px; border-radius: 12px; }
  .post-body { padding: 16px 18px; }
  .reqs { grid-template-columns: 1fr; }
  .sc-num { font-size: 60px; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
}
