/* moddev — панель
   чёрный + фиолетовый, без лишнего */

:root {
  --bg: #09080d;
  --bg2: #0e0c14;
  --card: #13111b;
  --card2: #1a1724;
  --line: #231f30;
  --line2: #302a42;
  --text: #eeecf4;
  --muted: #8d88a0;
  --dim: #5d5870;
  /* акцент (имена переменных старые, цвет — фиолетовый) */
  --red: #8b5cf6;
  --red2: #a78bfa;
  --red-d: #4c2a96;
  --glow: rgba(139, 92, 246, .35);
  --ok: #34c26b;
  --bad: #ff4552;
  --warn: #f2a93b;
  --r: 6px;
  --font: 'Onest', system-ui, sans-serif;
  --disp: 'Unbounded', 'Onest', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased }
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit; color: inherit }
::selection { background: var(--red); color: #fff }
::-webkit-scrollbar { width: 9px; height: 9px }
::-webkit-scrollbar-thumb { background: #2a2a2e; border: 2px solid var(--bg) }
code { font-family: var(--mono); font-size: 12px; padding: 1px 6px; background: var(--card2); border: 1px solid var(--line); border-radius: 3px }

/* лёгкая «плёнка» сверху, чтобы чёрный не был плоским */
body:before {
  content: ""; position: fixed; inset: 0 0 auto; height: 2px; z-index: 100;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
}

/* --- шапка --- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 28px; background: rgba(11,11,12,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px) }
.logo { display: flex; align-items: center; gap: 10px; font: 700 15px var(--disp); letter-spacing: -.01em }
.logo i { width: 14px; height: 14px; background: var(--red); transform: rotate(45deg); box-shadow: 4px -4px 0 -1px var(--bg), 4px -4px 0 0 var(--red) }
.logo small { font: 500 11px var(--mono); color: var(--dim); letter-spacing: 0 }
.top nav { display: flex; gap: 22px }
.top nav a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 19px 0; border-bottom: 2px solid transparent }
.top nav a:hover { color: var(--text) }
.top nav a.on { color: var(--text); border-color: var(--red) }
.top .sp { flex: 1 }
.user { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500 }
.user img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2) }
.user a { color: var(--dim); font-size: 13px; margin-left: 6px }
.user a:hover { color: var(--red2) }

/* --- кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card2); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s }
.btn:hover { border-color: #47474e; background: #1f1f23 }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff }
.btn.primary:hover { background: var(--red2); border-color: var(--red2) }
.btn.ok { background: var(--text); color: #000; border-color: var(--text) }
.btn.ok:hover { background: #fff }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted) }
.btn.ghost:hover { color: var(--text); background: var(--card2) }
.btn.danger { color: var(--bad) }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px }
.btn:disabled { opacity: .45; pointer-events: none }

/* --- главная --- */
.land { max-width: 1060px; margin: 0 auto; padding: 72px 28px 40px }
.land .kick { font: 500 12px var(--mono); color: var(--red2); letter-spacing: .04em }
.land h1 { font: 700 clamp(44px, 7.5vw, 92px)/.95 var(--disp); letter-spacing: -.045em; margin: 18px 0 22px }
.land h1 b { color: var(--red) }
.land .lead { max-width: 560px; color: var(--muted); font-size: 17px }
.land .lead em { color: var(--text); font-style: normal }
.land .cta { display: flex; gap: 10px; margin: 32px 0 70px; flex-wrap: wrap }
.land h2 { font: 500 12px var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px }
.flist { list-style: none; counter-reset: f }
.flist li { display: grid; grid-template-columns: 56px 220px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line) }
.flist li:before { counter-increment: f; content: counter(f, decimal-leading-zero); font: 500 12px var(--mono); color: var(--red) }
.flist b { font-weight: 600 }
.flist span { color: var(--muted); font-size: 14px }
@media (max-width: 720px) { .flist li { grid-template-columns: 40px 1fr } .flist span { grid-column: 2 } }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 64px }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr } }
.log { font-size: 14px }
.log div { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted) }
.log b { font: 500 12px var(--mono); color: var(--text); margin-right: 10px }
.foot { max-width: 1060px; margin: 0 auto; padding: 30px 28px 50px; display: flex; justify-content: space-between; color: var(--dim); font-size: 13px }

/* --- серверы --- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 48px 28px }
.h1 { font: 700 30px var(--disp); letter-spacing: -.03em }
.sub { color: var(--muted); margin: 6px 0 30px; max-width: 620px }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.srv { background: var(--bg); padding: 18px; display: flex; align-items: center; gap: 14px }
.srv:hover { background: var(--bg2) }
.srv .gi { width: 46px; height: 46px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; flex: none; border: 1px solid var(--line2) }
.srv .gi img { width: 100%; height: 100% }
.srv .n { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.srv .n small { display: block; font: 400 12px var(--mono); color: var(--dim) }
.srv .bgi { display: none }

/* --- дашборд --- */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 60px) }
.side { border-right: 1px solid var(--line); padding: 18px 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; display: flex; flex-direction: column }
.gsel { display: flex; gap: 11px; align-items: center; padding: 4px 18px 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px }
.gsel .gi { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none }
.gsel .gi img { width: 100% }
.gsel b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.gsel small { color: var(--dim); font: 400 11px var(--mono) }
.gsel a { margin-left: auto; color: var(--dim); font-size: 12px }
.gsel a:hover { color: var(--red2) }
.side h6 { font: 500 11px var(--mono); color: var(--dim); text-transform: lowercase; margin: 16px 18px 6px }
.side h6:before { content: "// "; color: var(--red-d) }
.side a.it { display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: var(--muted); font-size: 14px; border-left: 2px solid transparent }
.side a.it:hover { color: var(--text); background: var(--bg2) }
.side a.it.on { color: var(--text); border-left-color: var(--red); background: linear-gradient(90deg, rgba(139,92,246,.09), transparent 70%) }
.side a.it .e { font: 500 11px var(--mono); color: var(--dim); width: 18px }
.side a.it.on .e { color: var(--red2) }
.side a.it .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #2c2c31 }
.side a.it .dot.on { background: var(--ok) }
.new { display: none;  font: 600 9px var(--mono); color: var(--red2); border: 1px solid var(--red-d); padding: 0 4px; border-radius: 3px; letter-spacing: .04em }
.side a.it .new { margin-left: auto }
.side a.it .new + .dot { margin-left: 8px }
.side-foot { margin-top: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; font: 400 11px var(--mono); color: var(--dim) }
.side-foot a { color: var(--muted) }
.side-foot a:hover { color: var(--red2) }

.main { padding: 34px 44px 120px; min-width: 0; max-width: 1400px }
.mh { display: flex; align-items: flex-end; gap: 20px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap }
.mh .ic { display: none }
.mh .t { flex: 1; min-width: 240px }
.crumbs { font: 500 12px var(--mono); color: var(--dim); margin-bottom: 8px }
.crumbs b { color: var(--red2); font-weight: 500 }
.mh h2 { font: 700 30px/1.1 var(--disp); letter-spacing: -.035em }
.mh p { color: var(--muted); font-size: 14px; margin-top: 6px }
.chips { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font: 400 12px var(--mono); color: var(--dim) }
.stchip:before { content: "○ " }
.stchip.on { color: var(--ok) }
.stchip.on:before { content: "● " }
.form, .mh, .main > .seg { max-width: 920px }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr } .side { position: static; height: auto } .main { padding: 26px 18px 120px } .top nav { display: none } }

.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 16px }
.card > .hd { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px }
.card > .hd h3 { font-size: 15px; font-weight: 600 }
.card > .hd p { color: var(--muted); font-size: 13px; margin-top: 2px }
.card > .hd .sp { flex: 1 }
.card > .bd { padding: 20px; display: grid; gap: 18px }
.card > .bd.two { grid-template-columns: 1fr 1fr }
@media (max-width: 700px) { .card > .bd.two { grid-template-columns: 1fr } }
.f label.l { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px }
.f .hint { color: var(--dim); font-size: 12px; margin-top: 6px }
.f.full { grid-column: 1 / -1 }
.inp { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line2); outline: none }
textarea.inp { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical }
.inp:focus { border-color: var(--red) }
.color { display: flex; gap: 8px }
.color input[type=color] { width: 40px; height: 40px; padding: 3px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg); cursor: pointer; flex: none }
.color .inp { font-family: var(--mono); font-size: 13px }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px }
.swatches i { width: 20px; height: 20px; border-radius: 3px; cursor: pointer; outline: 1px solid var(--line2) }
.swatches i:hover { outline: 2px solid #fff }

.tg { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none }
.tg input { display: none }
.tg .sw { width: 38px; height: 22px; border-radius: 11px; background: #29292e; position: relative; transition: .15s; flex: none }
.tg .sw:after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8b8b92; transition: .15s }
.tg input:checked + .sw { background: var(--red) }
.tg input:checked + .sw:after { left: 19px; background: #fff }
.tg b { font-size: 14px; font-weight: 600 }
.tg small { display: block; color: var(--dim); font-size: 12px }
.enable { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border: 1px solid var(--line); border-left: 3px solid #333; border-radius: var(--r); background: var(--card); margin-bottom: 16px }
.enable.on { border-left-color: var(--ok) }
.enable b { font-size: 14px }
.enable .sp { flex: 1 }

/* выпадашки */
.pk { position: relative }
.pk .box { min-height: 40px; padding: 4px 32px 4px 5px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line2); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; cursor: pointer; position: relative }
.pk .box:after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: translateY(-70%) rotate(45deg) }
.pk.open .box { border-color: var(--red) }
.pk .ph { color: var(--dim); padding: 0 7px; font-size: 14px }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 8px; border-radius: 4px; background: var(--card2); border: 1px solid var(--line2); font-size: 13px }
.chip .c { width: 8px; height: 8px; border-radius: 50% }
.chip x { cursor: pointer; color: var(--dim); padding: 0 4px }
.chip x:hover { color: var(--bad) }
.single { padding: 0 7px; font-size: 14px; display: flex; gap: 7px; align-items: center }
.single .hash, .dd .op .hash { color: var(--dim); font-family: var(--mono); width: 14px; text-align: center }
.dd { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: var(--card2); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 18px 40px -10px #000; display: none; overflow: hidden }
.pk.open .dd { display: block }
.dd input { width: 100%; height: 38px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none }
.dd .ls { max-height: 250px; overflow: auto; padding: 4px }
.dd .op { padding: 7px 9px; border-radius: 4px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 14px }
.dd .op:hover { background: #24242a }
.dd .op.sel { color: var(--red2) }
.dd .op.sel:after { content: "✓"; margin-left: auto }
.dd .grp { font: 500 11px var(--mono); color: var(--dim); padding: 10px 9px 4px; text-transform: lowercase }
.dd .none { color: var(--dim); font-size: 13px; padding: 10px }
.dd .op.warn { opacity: .5 }

/* списки (вопросы, товары) */
.rowed { display: grid; gap: 8px }
.ritem { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line) }
.ritem .num { font: 500 12px var(--mono); color: var(--red2); padding-top: 11px }
.ritem .g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.ritem .g .full { grid-column: 1 / -1 }
.ritem .acts { display: flex; flex-direction: column; gap: 4px }
.ibtn { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; color: var(--muted) }
.ibtn:hover { color: var(--text) }
.ibtn.del:hover { color: var(--bad); border-color: #6b1a22 }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden }
.seg button { border: 0; background: transparent; padding: 7px 13px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line2) }
.seg button:last-child { border-right: 0 }
.seg button:hover { color: var(--text) }
.seg button.on { background: var(--text); color: #000 }

/* логи */
.lgrp { border: 1px solid var(--line); border-radius: var(--r) }
.lgrp > .gh { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--muted); text-transform: lowercase; border-radius: var(--r) var(--r) 0 0 }
.lgrp > .gh .sp { flex: 1 }
.lrow { display: grid; grid-template-columns: 1fr 280px; gap: 14px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line) }
.lrow:last-child { border-bottom: 0 }
.lrow .nm { font-size: 14px; display: flex; gap: 9px; align-items: center }
.lrow .nm i { width: 6px; height: 6px; border-radius: 50%; background: #2c2c31 }
.lrow .nm i.on { background: var(--red) }
@media (max-width: 700px) { .lrow { grid-template-columns: 1fr } }

/* обзор */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px }
.stat { padding: 16px 18px; background: var(--card) }
.stat small { color: var(--dim); font: 400 12px var(--mono) }
.stat b { display: block; font: 700 28px var(--disp); letter-spacing: -.03em; margin-top: 4px }
.mods { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden }
.mod { display: grid; grid-template-columns: 44px 180px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--card) }
.mod:last-child { border-bottom: 0 }
.mod:hover { background: var(--card2) }
.mod .e { font: 500 12px var(--mono); color: var(--red2) }
.mod b { font-weight: 600 }
.mod small { color: var(--muted); font-size: 13px }
.badge { font: 400 12px var(--mono) }
.badge.on { color: var(--ok) }
.badge.off { color: var(--dim) }
@media (max-width: 760px) { .mod { grid-template-columns: 36px 1fr auto } .mod small { display: none } }

/* таблицы */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px }
.tbl th { text-align: left; color: var(--dim); font: 400 12px var(--mono); padding: 9px 14px; border-bottom: 1px solid var(--line) }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line) }
.tbl tr:last-child td { border-bottom: 0 }
.tbl tr.click { cursor: pointer }
.tbl tr.click:hover td { background: var(--bg2) }
.st { font: 500 12px var(--mono); white-space: nowrap }
.st.pending { color: var(--warn) } .st.interview { color: #7aa7ff } .st.accepted { color: var(--ok) } .st.declined { color: var(--bad) }
.empty { padding: 28px; text-align: center; color: var(--dim); font-size: 14px }

/* плитки разделов статистики */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr } }
.tile { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg) }
.tile.on { border-color: var(--red-d) }
.tile-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px }
.tile-h b { display: block; font-size: 14px; font-weight: 600 }
.tile-h small { color: var(--muted); font-size: 12px }
.tile-ic { font: 500 12px var(--mono); color: var(--red2); width: 22px }
.tile-b { padding: 14px 16px; border-top: 1px solid var(--line) }
.fams { display: flex; flex-wrap: wrap; gap: 6px }
.fam { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 11px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg); cursor: pointer; text-align: left }
.fam:hover { border-color: #47474e }
.fam b { font-size: 13px; font-weight: 600 }
.fam small { font: 400 11px var(--mono); color: var(--dim) }
.fam.on { border-color: var(--red); background: rgba(139,92,246,.07) }

/* разное */
.savebar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--r); background: #000; border: 1px solid var(--line2); border-top: 2px solid var(--red); box-shadow: 0 16px 40px -10px #000; transition: transform .25s; font-size: 14px; white-space: nowrap }
.savebar:not(.show) { visibility: hidden }
.savebar.show { transform: translate(-50%, 0) }
.toasts { position: fixed; right: 20px; top: 76px; z-index: 70; display: grid; gap: 6px }
.toast { padding: 10px 14px; border-radius: var(--r); background: #000; border: 1px solid var(--line2); border-left: 3px solid var(--ok); font-size: 14px; box-shadow: 0 10px 30px -10px #000; animation: tin .2s; max-width: 360px }
.toast.err { border-left-color: var(--red) }
@keyframes tin { from { opacity: 0; transform: translateY(-6px) } }
.loader { display: grid; place-items: center; height: 50vh }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--red); animation: sp .8s linear infinite }
@keyframes sp { to { transform: rotate(360deg) } }
.warnbox, .infobox { padding: 11px 14px; border-radius: var(--r); font-size: 13px; border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--card); color: #e6c38b }
.infobox { border-left-color: var(--red); color: var(--muted) }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 80; display: grid; place-items: center; padding: 20px }
.modal { width: min(620px, 100%); max-height: 85vh; overflow: auto; background: var(--card); border: 1px solid var(--line2); border-top: 2px solid var(--red); border-radius: var(--r); padding: 24px }
.modal h3 { margin-bottom: 12px; font: 700 18px var(--disp) }
.qa { margin-bottom: 14px }
.qa b { display: block; font-size: 13px; color: var(--muted); font-weight: 500 }
.qa div { white-space: pre-wrap; padding: 6px 12px; border-left: 2px solid var(--red-d); margin-top: 4px }
.errbar { max-width: 1060px; margin: 20px auto 0; padding: 0 28px }

/* --- Pro --- */
.pro { display: inline-block; font: 700 9.5px/1 var(--mono); letter-spacing: .06em; padding: 3px 5px 2px; margin-left: 6px; border-radius: 3px; background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; vertical-align: middle }
.side-pro { margin: 8px 12px 4px; padding: 7px 10px; border: 1px dashed var(--line2); border-radius: var(--r); font: 500 11.5px var(--mono); color: var(--dim) }
.side-pro.on { border-style: solid; border-color: var(--red-d); color: var(--red2); background: rgba(139,92,246,.08) }
.lock { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 16px; border: 1px solid #5b3410; border-radius: var(--r); background: linear-gradient(90deg, rgba(242,169,59,.09), rgba(139,92,246,.05)) }
.lock > div { flex: 1 }
.lock p { color: var(--muted); font-size: 13px; margin-top: 4px }
.cnt { font: 600 12px var(--mono); color: var(--muted); padding: 4px 9px; border: 1px solid var(--line2); border-radius: 20px }
img.av { width: 28px; height: 28px; border-radius: 50% }
/* кнопки личной панели */
.bitem { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2) }
.bitem.open { border-color: var(--line2) }
.bhead { display: flex; align-items: center; gap: 10px; padding: 10px 12px }
.bhead .sp { flex: 1 }
.bhead .num { width: 22px; color: var(--dim); font: 600 12px var(--mono) }
.bprev { padding: 5px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; background: #4e5058; color: #fff }
.bprev.primary { background: #5865f2 } .bprev.success { background: #248046 } .bprev.danger { background: #da373c }
.bbody { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 4px 14px 16px; border-top: 1px solid var(--line) }
.bbody .f.full { grid-column: 1 / -1 }
.bbody > .f:first-child { margin-top: 10px } .bbody > .f:nth-child(2) { margin-top: 10px }
pre.keys { font: 13px/1.7 var(--mono); margin: 8px 0; user-select: all; white-space: pre-wrap }
@media (max-width: 760px) { .bbody { grid-template-columns: 1fr } .lock { flex-direction: column; align-items: flex-start } }
/* стримеры: карточка-ссылка */
a.streamer { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card2); transition: border-color .12s }
a.streamer:hover { border-color: #9146ff }
a.streamer b { display: block; font-size: 14px }
a.streamer small { color: var(--muted); font: 12px var(--mono) }
a.streamer .go { margin-left: auto; color: var(--dim) }
a.streamer:hover .go { color: #b48cff }
a.streamer img.av, a.streamer .av { width: 36px; height: 36px; border-radius: 50%; flex: none }
.av.ph { display: grid; place-items: center; background: #3a2766; color: #d8c6ff; font-weight: 700 }
/* админка: серверы */
.gcell { display: flex; align-items: center; gap: 10px }
.gcell .gi { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line2); font-size: 11px; font-weight: 700; overflow: hidden; flex: none }
.gcell .gi img { width: 100%; height: 100% }
td.gacts { text-align: right; white-space: nowrap }
td.gacts .btn { margin-left: 4px }
.wrap.wide { max-width: 1320px } .tbl .stchip { white-space: nowrap }

/* ===== контакт для покупки Pro ===== */
.contact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--red-d); border-radius: 10px; background: linear-gradient(120deg, rgba(139,92,246,.14), rgba(217,70,239,.06)) }
.contact .dc { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #5865f2; color: #fff; font: 700 17px var(--mono); flex: none }
.contact > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25 }
.contact small { color: var(--muted); font-size: 12px }
.contact b { font: 600 17px var(--mono); color: #fff; letter-spacing: .02em }
.contact.sm { padding: 10px 12px; margin-top: 8px }
.contact.sm .dc { width: 32px; height: 32px; font-size: 14px }
.contact.sm b { font-size: 15px }
.land .buy { margin-top: 18px; color: var(--muted); font-size: 14px }

/* ===== страница серверов ===== */
.ghead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px }
.ghead .sub { margin-bottom: 0 }
.gsearch { width: 260px }
.gsec { margin-top: 34px }
.gsec h3 { display: flex; align-items: center; gap: 10px; font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px }
.gsec h3 span { font-size: 11px; color: var(--red2); background: rgba(139,92,246,.12); border: 1px solid var(--red-d); padding: 1px 8px; border-radius: 20px }
.gnote { color: var(--dim); font-size: 13px; margin: -6px 0 14px }
.gg { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px }
.gc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; min-height: 168px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; isolation: isolate; transition: transform .18s, border-color .18s, box-shadow .18s }
.gc .gbg { position: absolute; inset: 0 0 auto; height: 86px; z-index: -1; background: linear-gradient(135deg, #2a1a52, #12101a) center / cover; filter: blur(22px) saturate(1.3); opacity: .55; transform: scale(1.3) }
.gc .gbg:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--card)) }
.gc:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 14px 34px -14px var(--glow) }
.gtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px }
.gav { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--card2); border: 2px solid var(--line2); font-weight: 700; font-size: 17px; flex: none; box-shadow: 0 6px 18px -6px #000 }
.gav img { width: 100%; height: 100%; object-fit: cover }
.gst { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); padding: 4px 9px; border-radius: 20px; background: rgba(0,0,0,.45); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; backdrop-filter: blur(4px) }
.gst i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim) }
.gst.on { color: #b9f5cf; border-color: #1f5135 } .gst.on i { background: var(--ok); box-shadow: 0 0 8px var(--ok) }
.gst.off { color: #ffd59a; border-color: #5b4210 } .gst.off i { background: var(--warn) }
.gname { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gfoot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600 }
.gfoot .go { color: var(--red2); display: flex; justify-content: space-between }
.gfoot .go em { font-style: normal; transition: transform .18s }
.gc:hover .gfoot .go em { transform: translateX(4px) }
.gfoot .add { color: var(--muted) }
.gc.ghost { background: transparent; border-style: dashed }
.gc.ghost .gbg { opacity: .25 }
.gc.ghost .gav { filter: grayscale(.7); opacity: .8 }
.gc.ghost:hover .gav { filter: none; opacity: 1 }
.gc.ghost:hover .gfoot .add { color: var(--red2) }
@media (max-width: 640px) { .ghead { flex-direction: column; align-items: stretch } .gsearch { width: 100% } }
.flist li b .pro, .flist .pro { color: #fff; font: 700 9.5px/1 var(--mono); letter-spacing: .06em; padding: 3px 5px 2px }

/* ===== YouTube ===== */
a.streamer.yt:hover { border-color: #ff0033 }
a.streamer.yt .av.ph { background: #5a1020; color: #ffd0d8 }

/* ===== Rust+ ===== */
.tbl.flags td.ck { width: 90px; text-align: center }
.tbl.flags th:not(:first-child) { text-align: center }
.cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px }
.cmds div { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--muted) }
.cmds code { color: var(--red2); font: 500 13px var(--mono); white-space: nowrap }
.rstat { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(120deg, rgba(205,65,43,.10), rgba(139,92,246,.06)) }
.rstat > div:first-child { flex: 1; min-width: 220px }
.rstat h3 { font: 700 20px var(--disp); margin-top: 8px; letter-spacing: -.01em }
.rnums { display: flex; gap: 22px; flex-wrap: wrap }
.rnums div { display: flex; flex-direction: column }
.rnums b { font: 600 18px var(--mono) }
.rnums small { color: var(--muted); font-size: 12px }
.stchip.warn { color: #ffd59a; border-color: #5b4210 }
ol.steps { margin: 0 0 4px 18px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px }
ol.steps a { color: var(--red2) }
pre.code { margin: 6px 0 2px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; font: 13px var(--mono); color: var(--text); user-select: all; white-space: pre-wrap }
details.manual summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 6px }
.tbl.dev input.inp { min-width: 180px }
.teamlist { display: flex; flex-direction: column; gap: 6px }
.tm { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card2); font: inherit; color: inherit; text-align: left; cursor: default; width: 100% }
button.tm { cursor: pointer } button.tm:hover { border-color: var(--red) }
.tm i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none }
.tm.on i { background: var(--ok); box-shadow: 0 0 8px var(--ok) } .tm.dead i { background: var(--bad) }
.tm b { flex: 1; font-weight: 600; font-size: 14px }
.tm span { font: 500 12px var(--mono); color: var(--muted) }
.rlog { display: flex; flex-direction: column; max-height: 360px; overflow: auto }
.rlog div { display: grid; grid-template-columns: 120px 80px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px }
.rlog time { color: var(--dim); font: 12px var(--mono) }
.rlog .k { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase }
.rlog .k.death, .rlog .k.alarm { color: var(--bad) } .rlog .k.online { color: var(--ok) } .rlog .k.chat { color: var(--red2) }
/* карта */
.rmap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start }
.rmap { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line2); border-radius: 12px; background: #1d3a45; cursor: grab; touch-action: none }
.rmap:active { cursor: grabbing }
.rmap-stage { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform }
.rmap-img, .rmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none }
.rmap-svg .grid line { stroke: rgba(0,0,0,.35); stroke-width: 1 }
.rmap-svg .grid text { fill: rgba(0,0,0,.55); font-family: var(--mono); font-weight: 600 }
.rmap-svg .mon { fill: #fff; font-family: var(--sans, sans-serif); font-weight: 700; paint-order: stroke; stroke: rgba(0,0,0,.75); stroke-width: 3px }
.rmap-svg .pl circle { fill: #34c26b; stroke: #fff; stroke-width: 3 }
.rmap-svg .pl.dead circle { fill: #ff4552 }
.rmap-svg .pl text { fill: #fff; font-weight: 700; paint-order: stroke; stroke: #000; stroke-width: 3px }
.rmap-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px }
.rmap-zoom .ibtn { background: rgba(9,8,13,.85); width: 34px; height: 34px; font-size: 18px }
.rmap-opts { display: flex; gap: 18px; margin-top: 10px }
.rmap-side { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--card) }
.rs-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px }
.rs-head b { font: 600 15px var(--disp) }
.rs-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px }
.rs-nums div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card2) }
.rs-nums small { display: block; color: var(--muted); font-size: 11px }
.rs-nums b { font: 600 15px var(--mono) }
.rmap-side h4 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px }
@media (max-width: 900px) { .rmap-grid { grid-template-columns: 1fr } .rlog div { grid-template-columns: 1fr } }
.rmap-side > .hint { font-size: 12px; color: var(--muted); line-height: 1.5 }

/* ===== экран «только с Pro» ===== */
.lockico { margin-left: auto; font-size: 11px; opacity: .8 }
.gate { max-width: 620px; margin: 30px auto 0; text-align: center; padding: 40px 34px; border: 1px solid var(--red-d); border-radius: 16px; background: radial-gradient(circle at 50% 0%, rgba(139,92,246,.18), transparent 65%), var(--card) }
.gate-ico { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 28px; border-radius: 18px; background: rgba(139,92,246,.14); border: 1px solid var(--red-d) }
.gate h3 { font: 700 22px var(--disp); letter-spacing: -.01em; margin-bottom: 10px }
.gate > p { color: var(--muted); line-height: 1.55 }
.gate-list { display: flex; flex-direction: column; gap: 8px; margin: 22px auto; max-width: 460px; text-align: left }
.gate-list div { display: flex; gap: 10px; color: var(--text); font-size: 14px }
.gate-list b { color: var(--red2) }
.gate .gate-buy { margin: 6px 0 10px; font-size: 14px }
.gate .contact { text-align: left }
.gate-acts { margin-top: 18px }
.imgprev img { max-width: 100%; max-height: 220px; border-radius: 8px; border: 1px solid var(--line2); display: block }
