/* ============================================================================
   Kyber-Arena — тема ZOMBIE (Counter-Strike 1.6 / Zombie Plague).
   ТЁМНАЯ по умолчанию (<html data-theme="dark">), светлая — «день выжившего».
   Акцент — радиоактивный зелёный, тревога — кроваво-красный.
   Вся графика на CSS/SVG: без внешних картинок, шрифтов и CDN.
   Макет тот же: шапка + 3 колонки (левый/контент/правый).
   ========================================================================= */

:root {
    /* Светлая тема — выцветший день в карантинной зоне. */
    --accent: #2f8f1f;
    --accent-strong: #246f18;
    --accent-2: #55b23c;
    --accent-soft: rgba(47, 143, 31, .12);
    --on-accent: #ffffff;

    --bg: #e8eae4;
    --bg-soft: #ffffff;
    --bg-card: #ffffff;
    --bg-elev: #f1f3ec;
    --text: #161a14;
    --text-muted: #5f6a5a;
    --border: #d5dacd;

    --green: #2f8f1f;
    --green-soft: rgba(47, 143, 31, .12);
    --red: #c62828;
    --red-soft: rgba(198, 40, 40, .12);
    --amber: #b06a00;

    --zx-neon: #4caf28;
    --zx-blood: #c62828;
    --zx-toxic: #86b81a;
    --zx-glow: rgba(76, 175, 40, .35);
    --zx-scan: rgba(0, 0, 0, .03);

    --radius: 4px;
    --radius-sm: 3px;
    --shadow: 0 4px 18px rgba(20, 30, 15, .10);
    --shadow-lg: 0 14px 36px rgba(20, 30, 15, .18);
    --container: 1260px;
    --header-h: 68px;
    --zx-mono: "Consolas", "SF Mono", "DejaVu Sans Mono", monospace;
}

html[data-theme="dark"] {
    /* Основная тема: ночь, заражение, неон. */
    --accent: #7fff2a;
    --accent-strong: #5fd415;
    --accent-2: #b6ff6b;
    --accent-soft: rgba(127, 255, 42, .14);
    --on-accent: #07120a;

    --bg: #070a07;
    --bg-soft: #0d120d;
    --bg-card: #0f150f;
    --bg-elev: #161d15;
    --text: #dff3d6;
    --text-muted: #7d8f77;
    --border: #1f2b1d;

    --green: #7fff2a;
    --green-soft: rgba(127, 255, 42, .14);
    --red: #ff3b30;
    --red-soft: rgba(255, 59, 48, .16);
    --amber: #ffb020;

    --zx-neon: #7fff2a;
    --zx-blood: #ff2d2d;
    --zx-toxic: #c6ff4a;
    --zx-glow: rgba(127, 255, 42, .45);
    --zx-scan: rgba(127, 255, 42, .035);

    --shadow: 0 6px 26px rgba(0, 0, 0, .6);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", "Inter", Roboto, Arial, sans-serif;
    background:
        radial-gradient(1000px 520px at 82% -6%, var(--accent-soft), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 { line-height: 1.2; }

img { max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }
.ta-right { text-align: right; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; }

.page-title { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.page-subtitle { font-size: 18px; font-weight: 700; margin: 22px 0 14px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .page-title { margin: 0; }
/* Несколько кнопок в шапке страницы (например «Прочитать всё» + «Удалить всё»). */
.page-head__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* --- Кнопки --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s;
    background: var(--bg-elev); color: var(--text); line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--on-accent); box-shadow: 0 6px 16px var(--accent-soft); }
.btn-primary:hover { color: var(--on-accent); box-shadow: 0 10px 22px var(--accent-soft); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-login { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* --- Формы --- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
input, textarea, select {
    width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
    background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
    font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: var(--bg-elev); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 96px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.inline-form { display: inline-block; }
.form-error, .form-success {
    padding: 11px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px;
    border: 1px solid transparent;
}
.form-error { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.form-success { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.form-error ul { margin: 0; padding-left: 18px; }

/* --- Таблицы --- */
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table th { background: var(--bg-elev); font-weight: 700; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-elev); }

/* --- Бейджи --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; background: var(--bg-elev); color: var(--text-muted); }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--amber { background: rgba(217, 119, 6, .12); color: var(--amber); }

/* --- Вкладки --- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- Шапка -- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff; font-weight: 900; font-size: 21px; box-shadow: 0 5px 14px var(--accent-soft);
}
.logo__text { font-size: 19px; font-weight: 800; letter-spacing: .2px; }

.main-nav { flex: 1; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a { display: block; padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 14px; }
.menu a:hover { background: var(--accent-soft); color: var(--accent); }
.menu .collapsible { position: relative; }
.menu .collapsible > a::after { content: " ▾"; font-size: 11px; opacity: .7; }
.menu .collapsible > ul { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; list-style: none; margin: 6px 0 0; z-index: 30; }
.menu .collapsible.open > ul { display: block; }
@media (min-width: 901px) {
    .menu .collapsible:hover > ul { display: block; }
}

.userbar { display: flex; align-items: center; gap: 12px; }
.userbar__bell { position: relative; font-size: 17px; line-height: 1; padding: 6px; border-radius: var(--radius-sm); }
.userbar__bell:hover { background: var(--bg-elev); }
.userbar__bell-badge {
    position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--red); color: #fff; border-radius: 9px;
    font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
}
.userbar__balance { background: var(--accent-soft); color: var(--accent); padding: 8px 13px; border-radius: var(--radius-sm); font-weight: 800; font-size: 14px; }
.userbar__name { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.userbar__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.userbar__exit { color: var(--text-muted); font-weight: 600; font-size: 14px; }
.userbar__exit:hover { color: var(--red); }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-elev); cursor: pointer; display: grid; place-items: center; font-size: 17px; color: var(--text); transition: all .15s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 40px; align-items: center; justify-content: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* -------------------------------------------------------------- Макет --- */
.layout {
    display: grid; grid-template-columns: 256px minmax(0, 1fr) 300px;
    grid-template-areas: "left content right"; gap: 22px; align-items: start;
    max-width: var(--container); margin: 24px auto; padding: 0 20px;
}
.col-side--left { grid-area: left; }
.col-content { grid-area: content; min-width: 0; }
.col-side--right { grid-area: right; }
.col-side { position: sticky; top: calc(var(--header-h) + 16px); }
.col-side:empty { display: none; }
.layout--bare { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content"; max-width: 860px; }

/* ------------------------------------------------------- Блоки-карточки -- */
.block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow); }
.block__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border); }
.block__head::before { content: ""; flex: 0 0 auto; width: 4px; height: 17px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-strong)); }
.block__body { padding: 18px; }

/* Карточка пользователя (левый сайдбар) */
.user-card { text-align: center; }
.user-card__avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: var(--bg-elev); margin-bottom: 10px; }
.user-card__name { font-weight: 800; font-size: 17px; }
.user-card__group { font-size: 13px; margin-bottom: 14px; }
.user-card__balance { display: block; padding: 10px; border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.user-card__balance span { font-weight: 500; font-size: 12px; margin-left: 4px; }
.user-card__nav { display: flex; flex-direction: column; text-align: left; gap: 1px; }
.user-card__link, .side-nav__link { display: block; padding: 9px 13px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 14px; transition: background .15s, color .15s, padding .15s; }
.user-card__link:hover, .side-nav__link:hover { background: var(--accent-soft); color: var(--accent); }
.user-card__exit { display: block; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 14px; }
.user-card__exit:hover { color: var(--red); }
.guest-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav__link:hover { padding-left: 17px; }

/* Выпадающий пункт навигации (сайдбар) */
.side-nav__group { display: flex; flex-direction: column; }
.side-nav__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; }
.side-nav__caret { font-size: 11px; color: var(--text-muted); transition: transform .2s; }
.side-nav__group.is-open .side-nav__caret { transform: rotate(180deg); }
.side-nav__sub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 4px 10px; padding-left: 8px; border-left: 2px solid var(--border); }
.side-nav__group.is-open .side-nav__sub { display: flex; }
.side-nav__sublink { display: block; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 600; font-size: 13px; transition: background .15s, color .15s, padding .15s; }
.side-nav__sublink:hover { background: var(--accent-soft); color: var(--accent); padding-left: 16px; }

/* Переключатель областей в админке «Меню сайта» */
.adm-subtabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* Правый сайдбар */
.online-total { text-align: center; }
.online-total__num { display: block; font-size: 36px; font-weight: 900; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.top-list__item { display: flex; align-items: center; gap: 10px; }
.top-list__rank { width: 20px; text-align: center; font-weight: 800; color: var(--text-muted); }
.top-list__item:nth-child(1) .top-list__rank { color: #eab308; }
.top-list__item:nth-child(2) .top-list__rank { color: #94a3b8; }
.top-list__item:nth-child(3) .top-list__rank { color: #d97706; }
.top-list__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.top-list__name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.top-list__name:hover { color: var(--accent); }
.top-list__value { font-weight: 800; font-size: 13px; color: var(--accent); }

/* Мониторинг серверов */
.server-item { border-bottom: 1px solid var(--border); padding: 0 0 14px; margin-bottom: 14px; }
.server-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.server-item__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.server-item__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); }
.server-item--online .server-item__dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.server-item--offline { opacity: .7; }
.server-item__name { font-weight: 700; font-size: 14px; }
.server-item__status { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.server-item__body { font-size: 13px; margin-bottom: 10px; }
.server-item__row { display: flex; justify-content: space-between; padding: 2px 0; }
.server-item__ip { font-family: ui-monospace, Consolas, monospace; color: var(--text-muted); }

/* Счётчик игроков — кнопка «кто сейчас на сервере». Выглядит как обычная
   строка, но подсвечивается пунктиром, чтобы было видно: сюда можно нажать. */
.server-players {
    background: none; border: none; padding: 0 2px; margin: -1px -2px;
    font: inherit; color: inherit; cursor: pointer;
    border-bottom: 1px dashed var(--border);
    border-radius: 4px;
    transition: color .15s, background .15s, border-color .15s;
}
.server-players:hover, .server-players:focus-visible {
    color: var(--accent); border-color: var(--accent);
    background: rgba(127, 255, 42, .08);
}
.server-players b { pointer-events: none; }
.server-item--img .server-players { border-bottom-color: rgba(255, 255, 255, .28); }

/* Окно «кто сейчас на сервере» */
.players-modal__sub { font-size: 13px; margin: -8px 0 14px; }
.players-modal__body { max-height: 58vh; overflow-y: auto; }
.players-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.players-table th {
    text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--text-muted);
    padding: 0 10px 8px 0; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.players-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.players-table tr:last-child td { border-bottom: none; }
.players-table__num { text-align: right; width: 1%; white-space: nowrap; }
.players-table__user { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); }
.players-table__ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--bg-elev); flex-shrink: 0; }
/* Незарегистрированный игрок — вместо аватара нейтральный кружок. */
.players-table__ava--none {
    display: block; width: 30px; height: 30px; border-radius: 50%;
    border: 1px dashed var(--border); background: var(--bg-elev); flex-shrink: 0;
}
.players-table__nick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.players-table__user:hover .players-table__nick { color: var(--accent); }
.players-table__user--guest .players-table__nick { color: var(--text-muted); }

/* Карточка сервера с картинкой карты на заднем плане (--map-bg ставит движок) */
.server-item--img {
    background-image: linear-gradient(rgba(13, 16, 28, .82), rgba(13, 16, 28, .88)), var(--map-bg);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 14px;
    color: #e8ebf7;
}
.server-item--img:last-child { margin-bottom: 0; }
.server-item--img .server-item__name { color: #fff; }
.server-item--img .server-item__status { color: #c8cfe8; }
.server-item--img .server-item__row span { color: #aab3d0; }
.server-item--img .server-item__row b { color: #fff; }
.server-item--img .server-item__ip { color: #9aa3c0; }

/* Админы серверов (список обладателей привилегий) */
.admins__user { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.admins__user:hover .nick { text-decoration: underline; }
.admins__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.admins__services { background: none; border: none; padding: 0; cursor: pointer; color: var(--accent); font: inherit; font-weight: 600; text-align: left; }
.admins__services:hover { text-decoration: underline; }
.admins__left { font-weight: 700; }
.admins__left.left--forever { color: var(--green); }
.admins__left.left--ok { color: var(--text); }
.admins__left.left--soon { color: var(--amber); }

/* Плашка-тост «новые уведомления» (внизу справа) */
.ka-toast {
    position: fixed; right: 20px; bottom: 20px; z-index: 150;
    display: flex; align-items: center; gap: 12px;
    max-width: 340px; padding: 14px 16px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(22, 163, 74, .35);
    opacity: 0; transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}
.ka-toast--show { opacity: 1; transform: translateY(0); }
.ka-toast:hover { filter: brightness(1.05); color: #fff; }
.ka-toast__icon { font-size: 22px; flex-shrink: 0; }
.ka-toast__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ka-toast__title { font-weight: 800; font-size: 14px; }
.ka-toast__hint { font-size: 12px; opacity: .85; }
.ka-toast__close {
    background: none; border: none; color: rgba(255, 255, 255, .8);
    font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; flex-shrink: 0;
}
.ka-toast__close:hover { color: #fff; }
@media (max-width: 560px) {
    .ka-toast { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 13, 24, .6); backdrop-filter: blur(2px); }
.modal__window { position: relative; z-index: 1; width: min(720px, 100%); max-height: 85vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px 24px; }
.modal__title { font-size: 17px; font-weight: 800; margin-bottom: 14px; padding-right: 30px; }
.modal__close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 24px; line-height: 1; color: var(--text-muted); cursor: pointer; }
.modal__close:hover { color: var(--text); }
body.modal-open { overflow: hidden; }

/* Ники со стилем группы (цвет + гиф-эффект на заднем плане) */
.nick { display: inline-block; max-width: 100%; }
.nick--fx {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

/* Список «кто сейчас на сайте» (виджет «На сайте»: аватар + ник + группа) */
.online-users { display: flex; flex-direction: column; gap: 10px; }
.online-users__empty { margin: 0; font-size: 13px; }
.online-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.online-user__ava { flex: 0 0 auto; }
.online-user__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); display: block; }
.online-user__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.online-user__name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-user__group { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* «Сегодня нас посетили» — блок на главной (плашки посетителей) */
.visitors-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 7px; margin-left: 6px;
    border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 12px; font-weight: 800;
}
.visitors-list { display: flex; flex-wrap: wrap; gap: 8px; }
.visitors-list .muted { margin: 0; }
.visitor-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 5px; max-width: 100%;
    border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev);
    font-size: 13px; font-weight: 700;
    transition: border-color .15s;
}
.visitor-chip:hover { border-color: var(--accent); }
.visitor-chip__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: block; }
.visitor-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Мы в соцсетях */
.socials { display: flex; flex-direction: column; gap: 8px; }
.socials__link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elev); font-size: 13px; font-weight: 600; color: var(--text); transition: border-color .15s, color .15s; }
.socials__link:hover { border-color: var(--accent); color: var(--accent); }
.socials__link svg { flex: none; color: var(--accent); }

/* -------------------------------------------------------------- Герой --- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bg-card), var(--bg-elev)); border: 1px solid var(--border); border-radius: var(--radius); padding: 42px 36px; margin-bottom: 22px; box-shadow: var(--shadow); }
.hero__title { margin: 0 0 12px; font-size: 32px; font-weight: 900; }
.hero__subtitle { margin: 0 0 22px; color: var(--text-muted); max-width: 560px; font-size: 16px; }
.hero__cta { position: relative; z-index: 2; }
.hero__glow { position: absolute; right: -70px; top: -70px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); pointer-events: none; }

/* -------------------------------------------------------------- Новости - */
.news-list { display: flex; flex-direction: column; }
.news-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-item__title { display: block; font-weight: 700; font-size: 15px; }
.news-item__meta { font-size: 12px; margin-top: 3px; }
/* Превью новости: первая картинка из текста (News::previewImage) */
.news-item--with-thumb { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; }
.news-item__thumb { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-elev); }
.news-item__thumb img { display: block; width: 100%; height: 66px; object-fit: cover; }
.news-item__body { min-width: 0; }
.news-list-full { display: flex; flex-direction: column; gap: 16px; }
/* margin-bottom обязателен: следом идёт блок комментариев, у которого нет
   верхнего отступа, и без этого две карточки склеивались в одну. */
.news-single { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow); }
.news-single__title { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.news-single__meta { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.news-single__text { line-height: 1.7; }
.news-single__back { display: inline-block; margin-bottom: 16px; }

/* Карточки ленты новостей */
.news-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.news-card--with-thumb { display: grid; grid-template-columns: 240px 1fr; }
.news-card__thumb { display: block; overflow: hidden; background: var(--bg-elev); }
.news-card__thumb img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; display: block; }
.news-card__body { padding: 20px 22px; }
.news-card__title { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.news-card__title a { color: var(--text); }
.news-card__title a:hover { color: var(--accent); }
.news-card__meta { font-size: 13px; margin-bottom: 10px; }
.news-card__preview { color: var(--text-muted); margin: 0 0 12px; line-height: 1.6; }
.news-card__more { font-weight: 700; font-size: 14px; }

/* Картинки внутри пользовательского/новостного контента */
.news-single__text img, .forum-post__text img, .ticket-msg__text img, .static-page__content img {
    max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0;
}
.news-single__text, .forum-post__text, .ticket-msg__text { overflow-wrap: anywhere; }

/* --------------------------------------------------------------- Чат ---- */
.chat.block .block__head { text-transform: none; }
.chat__status { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.chat__messages { height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px; margin-bottom: 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.chat__empty { margin: auto; }

/* Разделитель дня в ленте чата: линия во всю ширину с подписью посередине
   («Сегодня», «Вчера», дата). flex-shrink: 0 — иначе в колоночном flex-списке
   линию сплющивает, когда сообщений много. */
.chat-day { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin: 4px 2px; }
.chat-day::before, .chat-day::after {
    content: ""; flex: 1 1 auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.chat-day__label {
    flex: 0 0 auto;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted);
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
}
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; }
.chat-msg__body { min-width: 0; flex: 1; }
.chat-msg__head { display: flex; align-items: center; gap: 8px; }
.chat-msg__name { font-weight: 700; color: var(--accent); font-size: 14px; }
.chat-msg__time { font-size: 12px; color: var(--text-muted); }
.chat-msg__del { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.chat-msg__del:hover { color: var(--red); }
.chat-msg__text { word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14px; }
.chat__form { display: flex; gap: 10px; position: relative; }

/* Кнопки действий сообщения (ответить/редактировать/удалить) — по наведению */
.chat-msg__tools { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .15s; }
.chat-msg:hover .chat-msg__tools, .chat-msg__tools:focus-within { opacity: 1; }
@media (hover: none) { .chat-msg__tools { opacity: 1; } }
.chat-msg__act { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.chat-msg__act:hover { color: var(--accent); background: var(--accent-soft); }

/* Пометка «(изменено)» */
.chat-msg__edited { font-size: 11px; color: var(--text-muted); font-style: italic; }

/* Цитата исходного сообщения в ответе */
.chat-msg__reply { display: flex; gap: 6px; align-items: baseline; min-width: 0; margin: 2px 0 4px; padding: 3px 8px; font-size: 12px; color: var(--text-muted); background: var(--bg-card); border-left: 3px solid var(--accent); border-radius: 6px; cursor: pointer; }
.chat-msg__reply:hover { background: var(--accent-soft); }
.chat-msg__reply-name { font-weight: 700; color: var(--accent); flex-shrink: 0; }
.chat-msg__reply-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Подсветка сообщения при переходе по цитате */
@keyframes chat-flash { 0%, 60% { background: var(--accent-soft); } 100% { background: transparent; } }
.chat-msg--flash { animation: chat-flash 1.6s ease-out; border-radius: 8px; }

/* Плашка «Ответ …» / «Редактирование …» над полем ввода */
.chat__note { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 8px; padding: 6px 10px; font-size: 13px; background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.chat__note[hidden] { display: none; }
.chat__note-label { font-weight: 700; color: var(--accent); flex-shrink: 0; }
.chat__note-preview { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__note-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.chat__note-close:hover { color: var(--red); }
.chat__input { flex: 1; }
.chat__login { padding: 8px 0; }

/* Ссылка на профиль автора (аватар и ник кликабельны) */
.chat-msg__profile { display: inline-flex; min-width: 0; }
.chat-msg__profile:hover .chat-msg__name { text-decoration: underline; }
.chat-msg__profile:hover .chat-msg__avatar { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* Эмодзи-панель */
.chat__emoji-btn { flex: none; width: 42px; padding: 0; font-size: 20px; line-height: 1; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s; }
.chat__emoji-btn:hover { border-color: var(--accent); }
.chat__emoji { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; width: min(360px, 100%); max-height: 200px; overflow-y: auto; padding: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.chat__emoji[hidden] { display: none; }
.chat-msg > .chat-msg__profile { flex-shrink: 0; }
.chat__emoji-item { padding: 4px 0; font-size: 20px; line-height: 1.2; background: none; border: none; border-radius: 6px; cursor: pointer; }
.chat__emoji-item:hover { background: var(--accent-soft); }

/* ------------------------------------------------------------- Профиль -- */
.profile__header { position: relative; display: flex; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--bg-card) 55%); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow); overflow: hidden; }

/* Шапка-обложка профиля: широкий баннер над карточкой, контент налезает поверх */
.profile__cover { position: absolute; top: 0; left: 0; right: 0; height: 210px; background-size: cover; background-position: center; z-index: 0; }
.profile__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 40%, var(--bg-card) 100%); }
.profile__header--cover { align-items: flex-end; padding-top: 168px; background: var(--bg-card); }
.profile__header--cover .v-avatar, .profile__header--cover .profile__info { position: relative; z-index: 1; }
.profile__header--cover .profile__avatar { box-shadow: 0 6px 18px rgba(0,0,0,.4); }

.profile__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: var(--bg-elev); box-shadow: 0 6px 18px rgba(99, 102, 241, .25); }
.profile__name { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.profile__group, .profile__reg { font-size: 14px; }
.profile__balance { margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* «Был(-а) в сети…» / «Сейчас в сети» */
.profile__seen { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 14px; }
.profile__seen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: none; }
.profile__seen--online { color: #16a34a; font-weight: 600; }
.profile__seen--online .profile__seen-dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }

/* Настройки → Конфиденциальность */
.privacy-flag { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.privacy-flag:last-of-type { border-bottom: none; margin-bottom: 10px; }
/* Глобальное правило даёт input width:100% — чекбоксу возвращаем свой размер */
.privacy-flag input[type="checkbox"] { width: 18px; height: 18px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.privacy-flag span { min-width: 0; }
.privacy-flag span b { display: block; font-size: 14px; }
.privacy-flag span .muted { display: block; font-size: 13px; margin-top: 2px; }

/* Закрытый профиль (конфиденциальность) */
.profile-closed { max-width: 520px; margin: 30px auto; }
.profile-closed__body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 26px; }
.profile-closed__lock { font-size: 17px; font-weight: 800; }
.profile-closed__hint { margin: 0 0 6px; max-width: 400px; }
.profile-closed__form { margin: 0; }
.profile-actions__note { margin: 0; font-size: 13px; }

/* Профиль: две колонки */
.profile-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-col { display: flex; flex-direction: column; gap: 0; }
/* Последний блок колонки не добавляет свой отступ: расстояние до полос под
   колонками задаёт только margin-top обёртки, иначе зазор двойной. */
.profile-col > *:last-child { margin-bottom: 0; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; }
.profile-actions form { margin: 0; }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table td { padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.profile-table td:first-child { color: var(--text-muted); width: 42%; }
.profile-table tr:last-child td { border-bottom: none; }
.profile-friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 14px; }
.profile-friend { text-align: center; font-size: 12px; color: var(--text); }
.profile-friend img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); display: block; margin: 0 auto 5px; }
.profile-friend span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-friend:hover img { border-color: var(--accent); }
.profile-friend:hover span { color: var(--accent); }

/* Стена — своя полоса на всю ширину под колонками профиля.
   Обёртка нужна, чтобы задать отступ: сам {wall_block} — уже .block. */
.profile-wall-wrap { margin-top: 20px; }
.profile-wall-wrap > .block { margin-bottom: 0; }

/* Привилегии в профиле — сетка вертикальных карточек */
.profile-privs { margin-top: 20px; }
.priv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.priv-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 16px 14px; text-align: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-top: 3px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer; font: inherit; color: inherit; width: 100%;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.priv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.priv-card--green { border-top-color: var(--green); }
.priv-card--red   { border-top-color: var(--red); }
.priv-card--gray  { border-top-color: var(--text-muted); opacity: .82; }
.priv-card__icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-radius: 14px; box-shadow: 0 6px 16px rgba(99, 102, 241, .3);
}
.priv-card--gray .priv-card__icon { background: linear-gradient(135deg, #8a93a6, #6b7280); box-shadow: none; }
.priv-card--red .priv-card__icon  { background: linear-gradient(135deg, #f26d6d, var(--red)); }
.priv-card__name { font-weight: 800; font-size: 18px; line-height: 1.1; }
.priv-card__server {
    font-size: 11px; font-weight: 700; color: var(--accent);
    background: var(--accent-soft); padding: 3px 10px; border-radius: 20px;
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.priv-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.priv-card__until { font-size: 12px; color: var(--text-muted); }
.priv-card__perm { color: var(--accent); font-weight: 700; }
.priv-empty { padding: 22px; text-align: center; }

/* Счётчик в заголовке блока */
.block__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 7px; margin-left: 6px;
    font-size: 12px; font-weight: 800; color: #fff;
    background: var(--accent); border-radius: 20px; vertical-align: middle;
}

/* Модалка привилегии */
.priv-modal__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.priv-modal__icon {
    width: 56px; height: 56px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-radius: 14px;
}
.priv-modal__name { font-size: 22px; font-weight: 800; }
.priv-modal__status { margin-top: 4px; }
.priv-modal__table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.priv-modal__table td { padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.priv-modal__table td:first-child { color: var(--text-muted); width: 40%; }
.priv-modal__table tr:last-child td { border-bottom: none; }
.priv-modal__actions { display: flex; flex-direction: column; gap: 16px; }
.priv-modal__label { font-weight: 700; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.priv-modal__opts { display: flex; flex-direction: column; gap: 8px; }
.priv-form { margin: 0; }

@media (max-width: 560px) {
    .priv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------- Магазин ------ */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }

/* Каскад покупки: форма слева, информация об услуге справа */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.buy__form select, .buy__form input[type="text"] { width: 100%; }
.buy__auth {
    display: block; text-align: center; padding: 14px 16px; margin-top: 4px;
    background: var(--red-soft); border: 1px solid var(--red); border-radius: var(--radius-sm);
    color: var(--red); font-weight: 700; transition: filter .15s;
}
.buy__auth:hover { filter: brightness(1.1); color: var(--red); }
.buy__info-title { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.buy__info-body {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 18px 20px; min-height: 220px; font-size: 14px; line-height: 1.65;
    word-wrap: break-word; overflow-wrap: anywhere;
}
.buy__info-body img { max-width: 100%; height: auto; border-radius: 8px; }
.buy__info-body p { margin: 0 0 10px; }
.buy__info-body p:last-child { margin-bottom: 0; }
.buy__info-body ul, .buy__info-body ol { margin: 0 0 10px; padding-left: 22px; }
@media (max-width: 900px) {
    .buy { grid-template-columns: 1fr; }
}
.price-list-page .data-table td:last-child, .price-list-page .data-table th:last-child { text-align: right; }

/* Банлист (баны и муты) */
.banlist-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin-bottom: 14px; }
/* Высоту не фиксируем. При padding 11px, рамке 1px и кегле 14px в коробке
   34px на текст оставалось 10px, и надпись обрезалась по вертикали.
   Компактность задаём паддингом — тогда высота считается от содержимого. */
.banlist-filter select, .banlist-filter input[type="search"] {
    height: auto; padding-top: 7px; padding-bottom: 7px;
}
.banlist-filter input[type="search"] { width: 220px; max-width: 100%; }
.banlist-total { font-size: 13px; white-space: nowrap; }
.banlist-page .data-table td { vertical-align: top; }
.banlist-page .ban-expired td { opacity: .62; }
/* Семь колонок в телефон не помещаются. Таблица уезжает вбок внутри своей
   обёртки, а не обрезается через overflow: hidden у .data-table. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.table-scroll > .data-table { margin-bottom: 0; }
@media (max-width: 600px) {
    .banlist-tools { flex-direction: column; align-items: stretch; }
    .banlist-filter input[type="search"] { width: 100%; }
    .banlist-page .data-table { min-width: 660px; }
}

/* Шапка магазина */
.store-hero { display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff;
    border-radius: var(--radius); padding: 28px 30px; margin-bottom: 24px; box-shadow: var(--shadow-lg); }
.store-hero__title { margin: 0 0 6px; font-size: 26px; font-weight: 900; }
.store-hero__text { margin: 0; opacity: .92; max-width: 620px; }
.store-hero .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.store-hero .btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* Карточка привилегии */
.priv-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
    display: flex; flex-direction: column; }
.priv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.priv-card__top { position: relative; padding: 20px 22px 18px; text-align: center;
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    border-bottom: 1px solid var(--border); }
.priv-card__server { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; color: var(--accent); background: var(--bg-card); border: 1px solid var(--border);
    padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; }
.priv-card__name { font-size: 22px; font-weight: 900; margin: 0; letter-spacing: .3px; }
.priv-card__period { font-size: 13px; color: var(--text-muted); }
.priv-card__content { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.priv-card__desc { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; flex: 1; line-height: 1.55; }
.priv-card__price { font-size: 30px; font-weight: 900; color: var(--text); text-align: center; margin-bottom: 16px; }
.priv-card__price span { font-size: 16px; color: var(--text-muted); }
.priv-card__buy { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------- Кошелёк ----- */
.purse__balance { font-size: 40px; font-weight: 900; color: var(--accent); text-align: center; margin: 10px 0 6px; }
.purse__form { max-width: 420px; margin: 0 auto; }

/* ------------------------------------------------------------- Форум ---- */
.forum-sections { display: flex; flex-direction: column; gap: 12px; }
.forum-section { display: flex; align-items: center; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.forum-section:hover { border-color: var(--accent); }
.forum-section__link { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex: 1; min-width: 0; color: inherit; }
.forum-section__link:hover { text-decoration: none; }
.forum-section__title { font-weight: 800; font-size: 17px; color: var(--text); }
.forum-section__descr { font-size: 13px; margin-top: 3px; }
.forum-section__stats { font-size: 13px; text-align: right; white-space: nowrap; }
.forum-section__controls { display: flex; gap: 6px; flex: none; }
.forum-section-form { margin-bottom: 18px; }

/* Вкладки (жалобы: жалоба / заявка на разбан) */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s; }
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Кнопки управления новостью (страница новости, флаг q) */
.news-single__manage { display: flex; gap: 6px; }

/* Форма ответа (форум, поддержка): редактор во всю ширину, кнопка снизу */
.reply-title { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.reply-form textarea { width: 100%; }
.reply-form__actions { display: flex; gap: 10px; margin-top: 12px; }
.forum-post__del { display: inline-block; margin-left: 10px; vertical-align: middle; }
.forum-post__del .btn { padding: 1px 8px; line-height: 1.4; }
.forum-posts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.forum-post { display: grid; grid-template-columns: 180px 1fr; gap: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.forum-post__author { background: var(--bg-elev); padding: 18px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border); }
.forum-post__author { align-items: center; text-align: center; }
.forum-post__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); background: var(--bg-card); margin-bottom: 4px; }
.forum-post__author a:hover .forum-post__avatar { border-color: var(--accent); }
.forum-post__body { padding: 18px; }
.forum-post__text { line-height: 1.7; margin-bottom: 10px; }
.forum-post__meta { font-size: 12px; }
.forum-mod { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.forum-reply, .forum-new { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* --------------------------------------------------------- Сообщения ---- */
.pm-dialogs { display: flex; flex-direction: column; gap: 8px; }
.pm-dialog { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.pm-dialog:hover { border-color: var(--accent); }
.pm-dialog--unread { border-left: 3px solid var(--accent); }
.pm-dialog__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.pm-dialog__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-dialog__name { font-weight: 700; color: var(--text); }
.pm-dialog__preview { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-dialog__date { font-size: 12px; flex-shrink: 0; }

/* Шапка диалога: с кем открыта переписка */
.pm-dialog-head { gap: 12px; }
.pm-back { font-size: 18px; color: var(--text-muted); padding: 0 6px; }
.pm-back:hover { color: var(--accent); }
.pm-peer { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.pm-peer__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.pm-peer__title { font-size: 15px; font-weight: 700; }
.pm-peer:hover .nick { text-decoration: underline; }

/* Лента сообщений: пузыри с аватаром, ником и временем */
.pm-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.pm-msg { display: flex; gap: 10px; max-width: 78%; align-items: flex-end; }
.pm-msg--own { margin-left: auto; flex-direction: row-reverse; }
.pm-msg__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.pm-msg__bubble { padding: 10px 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0; }
.pm-msg--own .pm-msg__bubble { background: var(--accent-soft); border-color: transparent; border-bottom-right-radius: 4px; }
.pm-msg:not(.pm-msg--own) .pm-msg__bubble { border-bottom-left-radius: 4px; }
.pm-msg__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pm-msg__name { font-size: 13px; font-weight: 700; }
.pm-msg__time { font-size: 11px; white-space: nowrap; }
.pm-msg__text { font-size: 14px; word-wrap: break-word; overflow-wrap: anywhere; }
.pm-form { display: flex; gap: 10px; }

/* ------------------------------------------------------- Уведомления ---- */
.notify-list { display: flex; flex-direction: column; gap: 10px; }
.notify-item { display: flex; gap: 12px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.notify-item--unread { border-left: 3px solid var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--bg-card) 40%); }
.notify-item__text { flex: 1; min-width: 0; }
.notify-item__text a { color: var(--text); }
.notify-item__text a:hover { color: var(--accent); }
.notify-item__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.notify-item__meta { font-size: 12px; white-space: nowrap; }
.notify-item__del { background: none; border: none; font-size: 18px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 0 4px; }
.notify-item__del:hover { color: var(--red); }
.notify-item__time { font-size: 12px; color: var(--text-muted); }

/* ------------------------------------------------------------- Друзья --- */
.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.friend-card {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px;
}
.friend-card--pending { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.friend-card__user { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); }
.friend-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); flex-shrink: 0; }
.friend-card__user:hover .friend-card__avatar { border-color: var(--accent); }
.friend-card__name { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.friend-card__user:hover .nick { text-decoration: underline; }
.friend-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------- Поддержка --- */
.ticket-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.ticket-msg { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.ticket-msg--staff { border-left: 3px solid var(--accent); background: var(--accent-soft); }
.ticket-msg__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.support-new { max-width: 640px; }

/* -------------------------------------------------------- Статистика ---- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat-card__num { font-size: 28px; font-weight: 900; color: var(--accent); }
.stat-card__label { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-elev); font-weight: 800; font-size: 13px; }

/* -------------------------------------------------------------- События - */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 26px; }
/* Карточка — целиком ссылка, поэтому padding живёт на ней самой:
   промежуточной обёртки __body в разметке нет. */
.event-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; color: var(--text);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.event-card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.event-card__title { font-size: 17px; font-weight: 800; }
.event-card__when { font-size: 13px; }
.event-card__preview { font-size: 14px; line-height: 1.55; }
.event-card__foot { margin-top: auto; padding-top: 10px; }
.event-card__people { display: inline-block; padding: 3px 10px; border-radius: 100px;
    background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }

/* Пустые состояния: занимают всю ширину сетки, а не одну ячейку. */
.events-empty { grid-column: 1 / -1; padding: 34px 26px; text-align: center;
    background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); }
.events-empty--sm { padding: 22px 20px; }
.events-empty__title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.events-empty__text { max-width: 46ch; margin: 0 auto 16px; line-height: 1.6; }
.events-empty--sm .events-empty__text { margin-bottom: 0; }

/* Страница события: запись и список участников */
.event-single__image { display: block; width: 100%; max-height: 320px; object-fit: cover;
    border-radius: var(--radius-sm); margin-bottom: 18px; }
.event-single__descr { line-height: 1.7; margin-top: 16px; }
.event-signup { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.event-signup__ok { color: var(--green); font-weight: 700; font-size: 14px; }
.event-signup__note { margin: 0; font-size: 14px; }
.event-people { display: flex; flex-wrap: wrap; gap: 8px; }
.event-person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: 100px; color: var(--text); }
.event-person:hover { border-color: var(--accent); color: var(--text); }
.event-person__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.event-person__name { font-size: 13px; font-weight: 700; }

/* -------------------------------------------------- Статические страницы */
.static-page { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.static-page__content { line-height: 1.7; }
.static-page__content h2 { margin-top: 24px; }

/* ------------------------------------------------------------ Авторизация */
.auth-page { display: flex; justify-content: center; padding: 20px 0; }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.auth-card__title { font-size: 22px; font-weight: 800; margin: 0 0 20px; text-align: center; }
.auth-card__alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* «Сейчас играет на …» в шапке профиля */
.profile__playing { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: var(--green, #22c55e); font-size: 13px; font-weight: 700; }
.profile__playing-join { font-weight: 600; text-decoration: underline; }

/* Комментарии (новости) и стена профиля — общий вид */
.comments { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.comment { display: flex; gap: 12px; min-width: 0; }
.comment__ava img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); display: block; }
.comment__body { flex: 1; min-width: 0; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.comment__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.comment__name { font-weight: 700; font-size: 14px; }
.comment__date { font-size: 12px; }
.comment__del { margin-left: auto; }
.comment__del-btn { background: none; border: none; color: var(--text-muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.comment__del-btn:hover { color: var(--red); background: var(--bg-card); }
.comment__text { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-form textarea { resize: vertical; min-height: 70px; }
.comment-form .btn { align-self: flex-end; }

/* Виджет reCAPTCHA в формах входа/регистрации */
.form-row--captcha { display: flex; justify-content: center; margin: 4px 0 12px; }
.form-row--captcha .g-recaptcha { max-width: 100%; }
.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }

/* ------------------------------------------------------------ Ошибки ---- */
.error-page { text-align: center; padding: 60px 20px; }
.error-page__code { font-size: 90px; font-weight: 900; color: var(--accent); line-height: 1; }
.error-page__title { font-size: 24px; font-weight: 800; margin: 10px 0; }
.error-page__hint { color: var(--text-muted); }

/* ---------------------------------------------------------- Установщик -- */
.install-req { max-width: 520px; margin-bottom: 24px; }
.install-form, .install-done { max-width: 640px; }
.settings-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.avatar-edit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar-edit__preview { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: var(--bg-elev); flex-shrink: 0; }
.avatar-edit__form { display: flex; flex-direction: column; gap: 10px; }
.avatar-edit__form input[type="file"] { color: var(--text-muted); }

/* Загрузка шапки (обложки) профиля */
.cover-edit { display: flex; flex-direction: column; gap: 14px; }
.cover-edit__preview { width: 100%; aspect-ratio: 1200 / 340; border-radius: var(--radius-sm); background-size: cover; background-position: center; border: 1px solid var(--border); background-color: var(--bg-elev); }
.cover-edit__preview--empty { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; background-image: repeating-linear-gradient(45deg, var(--bg-soft) 0, var(--bg-soft) 12px, var(--bg-elev) 12px, var(--bg-elev) 24px); }
.cover-edit__form { display: flex; flex-direction: column; gap: 10px; }
.cover-edit__form input[type="file"] { color: var(--text-muted); }
.cover-edit__remove { margin: 0; }

/* -------------------------------------------------------------- Техработы */
.offsite { min-height: 70vh; display: grid; place-items: center; }
.offsite__box { text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow-lg); }

/* -------------------------------------------------------------- Подвал -- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-soft); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 20px; flex-wrap: wrap; }
.site-footer__copy { color: var(--text-muted); font-size: 14px; }
.site-footer__nav { display: flex; gap: 18px; }
.site-footer__nav a { color: var(--text-muted); font-size: 14px; }
.site-footer__nav a:hover { color: var(--accent); }

/* --------------------------------------------------------- CKEditor ----- */
.cke_chrome { border-radius: var(--radius-sm) !important; border-color: var(--border) !important; }
html[data-theme="dark"] .cke_top, html[data-theme="dark"] .cke_bottom { background: var(--bg-elev) !important; border-color: var(--border) !important; }
html[data-theme="dark"] .cke_toolgroup, html[data-theme="dark"] .cke_combo_button { background: var(--bg-card) !important; }

/* ============================================================ Адаптив === */
@media (max-width: 1200px) {
    .layout { grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "left content" "right right"; }
    .col-side--right { position: static; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
    .col-side--right .block { margin-bottom: 0; }
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; grid-template-areas: "content" "left" "right"; margin-top: 14px; }
    .col-side { position: static; }
    .col-side--right { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .site-header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding: 10px 0; }
    .nav-toggle { display: flex; order: 5; margin-left: auto; }
    .main-nav { display: none; order: 6; flex-basis: 100%; }
    body.nav-open .main-nav { display: block; padding-bottom: 8px; }
    body.nav-open .menu { flex-direction: column; }
    body.nav-open .menu .collapsible > ul { position: static; box-shadow: none; }
    .form-grid { grid-template-columns: 1fr; }
    .forum-post { grid-template-columns: 1fr; }
    .forum-post__author { flex-direction: row; align-items: center; gap: 10px; border-right: none; border-bottom: 1px solid var(--border); }
    /* В строку — крупный аватар не нужен. */
    .forum-post__avatar { width: 44px; height: 44px; margin-bottom: 0; }
    .profile__header { flex-direction: column; text-align: center; }
    /* Вариант с обложкой тоже становится колонкой, но у него свой
       align-items: flex-end — без сброса аватар и текст прижимало к правому
       краю. Аватар ставим по центру, ровно на нижнюю кромку баннера. */
    .profile__cover { height: 180px; }
    .profile__header--cover { align-items: center; padding-top: 120px; }
    .profile__balance { justify-content: center; }
    .profile-cols { grid-template-columns: 1fr; }
    .news-card--with-thumb { grid-template-columns: 1fr; }
    .news-card__thumb img { min-height: 180px; max-height: 220px; }
    /* Планшеты: компактнее hero/заголовки, одноколоночная покупка, скролл таблиц */
    .hero { padding: 30px 22px; }
    .hero__title { font-size: 26px; }
    .page-title { font-size: 22px; }
    .buy { grid-template-columns: 1fr; }
    .modal { padding: 14px; }
    .modal__window { padding: 18px; max-height: 90vh; }
    .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
    .container { padding: 0 14px; }
    /* Шапка: компактная, без ника (остаётся кликабельный аватар) и баланса */
    .site-header__inner { gap: 10px; }
    .logo__text { font-size: 16px; }
    .userbar { gap: 6px; }
    .userbar__balance, .userbar__exit { display: none; }
    .userbar__name .nick { display: none; }
    .userbar__name { gap: 0; }
    .userbar__bell { padding: 5px; }
    .nav-toggle { width: 40px; height: 38px; }
    .block__body { padding: 14px; }
    .block__head { padding: 12px 14px; }
    .hero { padding: 24px 16px; }
    .hero__title { font-size: 22px; }
    .hero__text { font-size: 14px; }
    .page-title { font-size: 20px; }
    .pm-msg { max-width: 88%; }
    .chat__form { flex-wrap: wrap; }
    .chat__input { flex-basis: 100%; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .col-side--right { grid-template-columns: 1fr; }
    /* Модалка почти на весь экран, крупнее области нажатия */
    .modal { padding: 0; align-items: flex-end; }
    .modal__window { width: 100%; max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; padding: 18px 16px; }
    .modal__close { top: 10px; right: 12px; }
    /* Формы и кнопки — во всю ширину, удобнее пальцем */
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .store-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
    .profile__avatar { width: 96px; height: 96px; }
    /* Аватар уменьшился до 96px — пересчитываем заход на обложку. */
    .profile__cover { height: 150px; }
    .profile__header--cover { padding-top: 102px; }
    .profile__name { font-size: 20px; }
    /* Подвал: копирайт и ссылки колонкой по центру, ссылки переносятся */
    .site-footer { margin-top: 28px; }
    .site-footer__inner { flex-direction: column; text-align: center; gap: 14px; padding: 22px 16px; }
    .site-footer__nav { flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
    .site-footer__copy { font-size: 13px; }
}
@media (max-width: 380px) {
    .container { padding: 0 10px; }
    .priv-grid, .cases-grid, .gshop__grid { grid-template-columns: 1fr; }
    .logo__text { display: none; }
    .site-footer__nav { gap: 8px 12px; }
    .site-footer__nav a { font-size: 13px; }
}

/* ============================================================================
   ZOMBIE OVERLAY — фирменный слой темы (неон, заражение, CS 1.6).
   Вся графика на CSS/SVG: ни одной внешней картинки, шрифта или CDN.
   ========================================================================= */

/* ------------------------------------------------------- Фоновый слой ---- */
.zx-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* Радиоактивная дымка: медленно «дышащие» пятна заражения. */
.zx-bg__fog {
    position: absolute; inset: -20%;
    background:
        radial-gradient(46% 38% at 18% 12%, var(--zx-glow), transparent 62%),
        radial-gradient(40% 34% at 86% 8%, rgba(255, 45, 45, .18), transparent 60%),
        radial-gradient(60% 50% at 50% 108%, rgba(127, 255, 42, .12), transparent 65%);
    filter: blur(10px);
    animation: zx-breathe 14s ease-in-out infinite alternate;
}
@keyframes zx-breathe {
    from { transform: scale(1) translateY(0); opacity: .85; }
    to   { transform: scale(1.12) translateY(-2%); opacity: 1; }
}

/* Техническая сетка — как разметка карты в редакторе. */
.zx-bg__grid {
    position: absolute; inset: 0; opacity: .5;
    background-image:
        linear-gradient(var(--zx-scan) 1px, transparent 1px),
        linear-gradient(90deg, var(--zx-scan) 1px, transparent 1px);
    background-size: 46px 46px, 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 78%);
}

/* Сканлайны ЭЛТ-монитора. */
.zx-bg__scan {
    position: absolute; inset: 0; opacity: .35;
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
}
html[data-theme="light"] .zx-bg__scan { opacity: .12; }

/* Виньетка поверх фона. */
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
html[data-theme="light"] body::after {
    background: radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(0, 0, 0, .12) 100%);
}
body { background: var(--bg); }

/* ------------------------------------------- Лента «биологической опасности» */
.zx-hazard {
    height: 3px;
    background: repeating-linear-gradient(135deg, var(--zx-toxic) 0 14px, #0b0f0b 14px 28px);
    opacity: .85;
}
.zx-hazard--footer { opacity: .5; }

/* ------------------------------------------------------------- Шапка ----- */
.site-header {
    background: linear-gradient(180deg, rgba(10, 16, 10, .96), rgba(10, 16, 10, .86));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--zx-glow), 0 10px 30px rgba(0, 0, 0, .5);
}
html[data-theme="light"] .site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 247, 242, .9));
    box-shadow: 0 1px 0 rgba(47, 143, 31, .25), var(--shadow);
}

/* Логотип — неоновый знак заражения. */
.logo { gap: 10px; }
.logo__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 4px;
    background: linear-gradient(160deg, var(--accent), var(--accent-strong));
    color: var(--on-accent);
    box-shadow: 0 0 0 1px var(--accent-soft), 0 0 18px var(--zx-glow);
    animation: zx-pulse 3.2s ease-in-out infinite;
}
@keyframes zx-pulse {
    0%, 100% { box-shadow: 0 0 0 1px var(--accent-soft), 0 0 14px var(--zx-glow); }
    50%      { box-shadow: 0 0 0 1px var(--accent-soft), 0 0 26px var(--zx-glow); }
}
.logo__text {
    font-family: var(--zx-mono);
    text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800;
    text-shadow: 0 0 14px var(--zx-glow);
}

/* Меню — «терминальные» пункты. */
.menu a {
    font-family: var(--zx-mono);
    text-transform: uppercase; letter-spacing: .6px; font-size: 13px;
}
.menu > li > a::before { content: "> "; color: var(--accent); opacity: 0; transition: opacity .15s; }
.menu > li > a:hover::before { opacity: 1; }
.menu > li > a:hover { color: var(--accent); text-shadow: 0 0 10px var(--zx-glow); }

.theme-toggle:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--zx-glow); }

/* -------------------------------------------------------- Блоки/карточки -- */
.block {
    position: relative;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(127, 255, 42, .028), transparent 42%), var(--bg-card);
}
html[data-theme="light"] .block { background: var(--bg-card); }

/* Угловые скобки — рамка прицела. */
.block::before, .block::after {
    content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none;
    border-color: var(--accent); opacity: .55;
}
.block::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.block::after  { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.block__head {
    font-family: var(--zx-mono);
    text-transform: uppercase; letter-spacing: 1px; font-size: 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
}
.block__head::before {
    content: "\275A"; color: var(--accent); margin-right: 8px;
    text-shadow: 0 0 10px var(--zx-glow);
}

/* -------------------------------------------------------------- Кнопки --- */
.btn {
    font-family: var(--zx-mono);
    text-transform: uppercase; letter-spacing: .8px; font-weight: 700;
    border-radius: var(--radius-sm);
    transition: transform .12s, box-shadow .18s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(160deg, var(--accent), var(--accent-strong));
    color: var(--on-accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 16px var(--zx-glow);
}
.btn-primary:hover { box-shadow: 0 0 26px var(--zx-glow), 0 6px 18px rgba(0, 0, 0, .45); }

.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px var(--zx-glow); }

.btn-danger {
    background: linear-gradient(160deg, var(--zx-blood), #8e1b1b);
    border: 1px solid var(--zx-blood); color: #fff;
    box-shadow: 0 0 14px rgba(255, 45, 45, .35);
}
.btn-danger:hover { box-shadow: 0 0 24px rgba(255, 45, 45, .5); }

/* --------------------------------------------------------------- Герой --- */
.hero {
    position: relative; overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(70% 120% at 12% 0%, rgba(127, 255, 42, .16), transparent 60%),
        radial-gradient(60% 100% at 92% 10%, rgba(255, 45, 45, .14), transparent 62%),
        linear-gradient(180deg, #0c120c, #070a07);
}
html[data-theme="light"] .hero {
    background:
        radial-gradient(70% 120% at 12% 0%, rgba(47, 143, 31, .14), transparent 60%),
        linear-gradient(180deg, #ffffff, #eef1e9);
}
/* Диагональные «следы когтей». */
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
    background: repeating-linear-gradient(115deg,
        transparent 0 38px, var(--accent) 38px 40px, transparent 40px 78px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero__title {
    font-family: var(--zx-mono);
    text-transform: uppercase; letter-spacing: 2px; line-height: 1.05;
    text-shadow: 0 0 18px var(--zx-glow), 0 0 44px rgba(127, 255, 42, .25);
}
html[data-theme="dark"] .hero__title { color: #eaffdc; }
.hero__subtitle { font-family: var(--zx-mono); letter-spacing: .3px; }
.hero__cta { font-size: 15px; padding: 13px 26px; }
.hero__glow { background: radial-gradient(circle, var(--zx-glow), transparent 65%); }

/* ------------------------------------------------------------ Сайдбары --- */
.side-block__head, .side-nav__link {
    font-family: var(--zx-mono); text-transform: uppercase; letter-spacing: .6px; font-size: 13px;
}
.side-nav__link:hover { color: var(--accent); text-shadow: 0 0 10px var(--zx-glow); }

.server-item:hover { border-color: var(--accent); box-shadow: 0 0 18px -4px var(--zx-glow); }

/* --------------------------------------------------------------- Формы --- */
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="search"], input[type="url"], input[type="date"], select, textarea {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft), 0 0 16px -4px var(--zx-glow);
}

/* -------------------------------------------------------------- Таблицы -- */
.data-table thead th {
    font-family: var(--zx-mono); text-transform: uppercase;
    letter-spacing: .8px; font-size: 12px;
    background: linear-gradient(180deg, var(--accent-soft), transparent);
    border-bottom: 1px solid var(--border);
}
.data-table tbody tr:hover { background: var(--accent-soft); }

/* --------------------------------------------------------------- Бейджи -- */
.badge { font-family: var(--zx-mono); text-transform: uppercase; letter-spacing: .5px; border-radius: 2px; }
.badge--green { box-shadow: 0 0 12px -2px var(--zx-glow); }

/* ---------------------------------------------------------------- Чат ---- */
.chat__status { font-family: var(--zx-mono); font-size: 12px; }

/* ------------------------------------------------------------- Новости --- */
.news-item:hover, .news-card:hover { border-color: var(--accent); box-shadow: 0 0 22px -6px var(--zx-glow); }

/* --------------------------------------------------------------- Футер --- */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
    border-top: 1px solid var(--border);
}
html[data-theme="light"] .site-footer { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .04)); }
.site-footer__nav a { font-family: var(--zx-mono); font-size: 13px; }
.site-footer__nav a:hover { color: var(--accent); text-shadow: 0 0 10px var(--zx-glow); }
.zx-foot-mark { color: var(--zx-toxic); margin-right: 6px; text-shadow: 0 0 12px var(--zx-glow); }

/* ------------------------------------------------------- Полоса прокрутки */
html[data-theme="dark"] * { scrollbar-color: var(--accent-strong) var(--bg-soft); scrollbar-width: thin; }
html[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg-soft); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-strong), #2f6b12);
    border-radius: 2px; border: 2px solid var(--bg-soft);
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: var(--accent); color: var(--on-accent); }

/* Бережём тех, кому анимация мешает. */
@media (prefers-reduced-motion: reduce) {
    .zx-bg__fog, .logo__mark { animation: none; }
    .btn:hover { transform: none; }
}

/* ------------------------------------------------- Герой: зомби-версия --- */
.zx-hero { padding: 46px 40px; }
.zx-hero .hero__body { position: relative; z-index: 2; max-width: 680px; }

/* Плашка «зона заражения» */
.zx-hero__tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--zx-mono); font-size: 12px; font-weight: 700;
    letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    background: var(--accent-soft);
    padding: 5px 12px; border-radius: 2px; margin-bottom: 16px;
}
.zx-hero__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--zx-blood);
    box-shadow: 0 0 10px var(--zx-blood);
    animation: zx-blink 1.6s ease-in-out infinite;
}
@keyframes zx-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Заголовок с лёгким «глитчем» по наведению */
.zx-hero .hero__title { position: relative; }
.zx-hero .hero__title::before,
.zx-hero .hero__title::after {
    content: attr(data-text); position: absolute; inset: 0;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.zx-hero .hero__title::before { color: var(--zx-blood); transform: translate(-2px, 1px); }
.zx-hero .hero__title::after  { color: var(--accent-2); transform: translate(2px, -1px); }
.zx-hero:hover .hero__title::before,
.zx-hero:hover .hero__title::after { opacity: .5; animation: zx-glitch .9s steps(2) infinite; }
@keyframes zx-glitch {
    0%   { clip-path: inset(0 0 82% 0); }
    25%  { clip-path: inset(46% 0 34% 0); }
    50%  { clip-path: inset(74% 0 8% 0); }
    75%  { clip-path: inset(18% 0 62% 0); }
    100% { clip-path: inset(0 0 82% 0); }
}

.zx-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Знак биологической опасности — крутится за текстом */
.zx-hero__biohazard {
    position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
    color: var(--accent); opacity: .16; pointer-events: none; z-index: 1;
    animation: zx-spin 40s linear infinite;
    filter: drop-shadow(0 0 24px var(--zx-glow));
}
@keyframes zx-spin { to { transform: translateY(-50%) rotate(360deg); } }

@media (max-width: 900px) {
    .zx-hero { padding: 34px 22px; }
    .zx-hero__biohazard { opacity: .08; right: -30px; }
}
@media (max-width: 560px) {
    .zx-hero__actions .btn { width: 100%; }
    .zx-hero__biohazard { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .zx-hero__biohazard, .zx-hero__dot { animation: none; }
    .zx-hero:hover .hero__title::before, .zx-hero:hover .hero__title::after { animation: none; opacity: 0; }
}


/* ============================================================================
   ZOMBIE LAYOUT — раскладка темы.
   Колонки те же три (иначе правая колонка вытягивается на весь экран), но
   ПЛОТНЕЕ: узкие сайдбары, компактные блоки, цельный «щит» вверху главной.
   ========================================================================= */

/* ------------------------------------------------------- Верхний бар ----- */
.zx-topbar {
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, .35);
    font-family: var(--zx-mono); font-size: 12px;
}
html[data-theme="light"] .zx-topbar { background: rgba(0, 0, 0, .04); }
.zx-topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; height: 30px;
}
.zx-topbar__status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); }
.zx-topbar__pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
    animation: zx-blink 2s ease-in-out infinite;
}
.zx-topbar__links { display: flex; gap: 16px; }
.zx-topbar__links a { color: var(--text-muted); text-decoration: none; }
.zx-topbar__links a:hover { color: var(--accent); text-shadow: 0 0 10px var(--zx-glow); }
@media (max-width: 700px) { .zx-topbar__links { display: none; } }

/* ------------------------------------------------------------- Колонки --- */
.layout.zx-layout {
    grid-template-columns: 228px minmax(0, 1fr) 288px;
    gap: 16px;
    margin-top: 18px;
}
/* Сайдбары плотнее: меньше отступы, компактнее текст. */
.zx-side .block { margin-bottom: 12px; }
.zx-side .block__head { padding: 9px 12px; font-size: 12px; }
.zx-side .block__body { padding: 10px 12px; }
.zx-side .block:last-child { margin-bottom: 0; }

/* Мониторинг серверов — самая длинная часть: ужимаем карточки. */
.zx-side .server-item { padding: 9px 10px; margin-bottom: 8px; font-size: 13px; }
.zx-side .server-item:last-child { margin-bottom: 0; }
.zx-side .server-item .btn { padding: 5px 10px; font-size: 11px; }
.zx-side .side-nav__link { padding: 5px 0; }

@media (max-width: 1200px) {
    .layout.zx-layout { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "left content" "right right"; }
}
@media (max-width: 900px) {
    .layout.zx-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content" "left" "right"; }
}

/* ============================================================== «Щит» ==== */
/* Герой и плитки — одна секция: даже с пустыми текстами верх выглядит цельно. */
.zx-shield {
    position: relative; overflow: hidden;
    border: 1px solid var(--border); border-radius: var(--radius);
    background:
        radial-gradient(80% 130% at 8% 0%, rgba(127, 255, 42, .14), transparent 58%),
        radial-gradient(60% 110% at 95% 6%, rgba(255, 45, 45, .12), transparent 60%),
        linear-gradient(180deg, #0c120c, #080c08);
    padding: 26px 26px 22px;
    /* Тот же шаг, что у .block — иначе «щит» прилипает к блокам под ним. */
    margin-bottom: 20px;
}
html[data-theme="light"] .zx-shield {
    background:
        radial-gradient(80% 130% at 8% 0%, rgba(47, 143, 31, .14), transparent 58%),
        linear-gradient(180deg, #ffffff, #eef1e9);
}
/* Диагональные «следы когтей». */
.zx-shield::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1;
    background: repeating-linear-gradient(115deg, transparent 0 34px, var(--accent) 34px 36px, transparent 36px 70px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
    mask-image: linear-gradient(90deg, transparent, #000 65%);
}
.zx-shield__glow {
    position: absolute; width: 420px; height: 420px; right: -80px; top: -160px;
    background: radial-gradient(circle, var(--zx-glow), transparent 62%);
    filter: blur(6px); pointer-events: none;
}
.zx-shield__biohazard {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    color: var(--accent); opacity: .13; pointer-events: none;
    animation: zx-spin 44s linear infinite;
    filter: drop-shadow(0 0 22px var(--zx-glow));
}
@keyframes zx-spin { to { transform: translateY(-50%) rotate(360deg); } }

.zx-shield__head { position: relative; z-index: 2; max-width: 640px; }
.zx-shield__title {
    margin: 0 0 8px;
    font-family: var(--zx-mono); font-size: 34px; font-weight: 900; line-height: 1.08;
    text-transform: uppercase; letter-spacing: 2px;
    text-shadow: 0 0 18px var(--zx-glow), 0 0 44px rgba(127, 255, 42, .22);
}
html[data-theme="dark"] .zx-shield__title { color: #eaffdc; }
/* Пустой заголовок (не заданы тексты в настройках) — не оставляем дыру. */
.zx-shield__title:empty::before {
    content: "ДОБРО ПОЖАЛОВАТЬ В ЗОНУ";
    opacity: .9;
}
.zx-shield__sub { margin: 0; color: var(--text-muted); font-family: var(--zx-mono); font-size: 14px; }
.zx-shield__sub:empty::before { content: "Зомби-серверы Counter-Strike 1.6: привилегии, фракции и территории."; }
.zx-shield__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Глитч заголовка по наведению. */
.zx-shield__title { position: relative; }
.zx-shield__title::after {
    content: attr(data-text); position: absolute; inset: 0;
    color: var(--zx-blood); opacity: 0; transform: translate(2px, -1px);
    pointer-events: none; transition: opacity .2s;
}
.zx-shield:hover .zx-shield__title::after { opacity: .45; animation: zx-glitch .9s steps(2) infinite; }
@keyframes zx-glitch {
    0%   { clip-path: inset(0 0 82% 0); }
    35%  { clip-path: inset(52% 0 28% 0); }
    70%  { clip-path: inset(76% 0 6% 0); }
    100% { clip-path: inset(0 0 82% 0); }
}

/* ------------------------------------------------------ Плитки разделов -- */
.zx-tiles {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px; margin-top: 22px;
    /* Свой отступ снизу — на случай, когда плитки стоят сами по себе (без
       «щита»): иначе они прилипают к блоку под ними. */
    margin-bottom: 20px;
}
/* Внутри «щита» отступ уже даёт его padding-bottom — второй не нужен. */
.zx-shield .zx-tiles { margin-bottom: 0; }
.zx-tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 1px;
    padding: 11px 13px; text-decoration: none;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .35);
    color: var(--text);
    transition: border-color .15s, box-shadow .18s, transform .12s, background .18s;
}
html[data-theme="light"] .zx-tile { background: rgba(255, 255, 255, .7); }
.zx-tile:hover {
    border-color: var(--accent); transform: translateY(-2px);
    background: var(--accent-soft);
    box-shadow: 0 0 22px -6px var(--zx-glow);
}
.zx-tile__ico { font-size: 17px; color: var(--accent); text-shadow: 0 0 12px var(--zx-glow); line-height: 1.2; }
.zx-tile__t { font-family: var(--zx-mono); text-transform: uppercase; font-weight: 800; letter-spacing: .5px; font-size: 13px; }
.zx-tile__s { color: var(--text-muted); font-size: 11px; }

@media (max-width: 1100px) { .zx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .zx-shield { padding: 20px 16px 18px; }
    .zx-shield__title { font-size: 25px; letter-spacing: 1px; }
    .zx-shield__biohazard { display: none; }
    .zx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zx-shield__actions .btn { flex: 1 1 100%; }
}

/* ------------------------------------------- Рабочая зона: чат + новости -
   Чат идёт первым во всю ширину, новости — полосой под ним. Отступ между
   ними даёт базовый .block { margin-bottom }, дополнительный не нужен. */
.zx-chat .chat__messages { max-height: 320px; min-height: 220px; overflow-y: auto; }

/* Новости — карточками; на всю ширину их помещается несколько в ряд. */
.zx-news .news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.zx-news .news-list > * { margin: 0; }
/* Здесь новости — карточки по 240px, рядом с текстом миниатюра была бы
   зажата. Кладём превью сверху во всю ширину карточки. */
.zx-news .news-item--with-thumb { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.zx-news .news-item__thumb img { height: 104px; }
/* Если новостей нет — блок не должен выглядеть сломанным. */
.zx-news .news-list:empty::before {
    content: "Новостей пока нет.";
    color: var(--text-muted); font-size: 13px;
}

/* ---------------------------------------------------- Полосы под зоной --- */
.zx-stats .block__body { overflow-x: auto; }
.zx-visitors .visitors-list { display: flex; flex-wrap: wrap; gap: 8px; }
.zx-visitors .visitors-list:empty::before {
    content: "Сегодня ещё никто не заходил.";
    color: var(--text-muted); font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .zx-shield__biohazard, .zx-topbar__pulse { animation: none; }
    .zx-shield:hover .zx-shield__title::after { animation: none; opacity: 0; }
}

/* ============================= Шрифт заголовков ==============================
   Educational Gothic. Покрытие проверено по таблице cmap шрифта:
   латиница A-Z/a-z, кириллица А-Я/а-я — все 32+32, Ёё и знак ₽ на месте,
   всего 692 кодовые точки. Для русского интерфейса годится.

   Начертание в файле ОДНО (Regular). Поэтому диапазон объявлен как 100-900:
   браузер считает любой запрошенный вес точным попаданием и не рисует
   синтетический жирный — у геометрических гротесков он выглядит грязно.
   Как следствие, font-weight: 700/800/900 на этих элементах визуально ничего
   не меняет: иерархию держим кеглем, цветом и трекингом.

   Формат .ttf (83 КБ). В woff2 файл весил бы примерно вдвое меньше.
   ========================================================================= */
@font-face {
    font-family: "Educational Gothic";
    /* Пробел в имени файла закодирован: так путь не зависит от сервера. */
    src: url("../fonts/ofont.ru_Educational%20Gothic.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-display: "Educational Gothic", "Segoe UI", Roboto, Arial, sans-serif;
}
/* Дисплейный слой поверх зомби-темы.
   Правила намеренно в конце файла: выше тема ставит на эти же селекторы
   свой --zx-mono, и без более позднего объявления шрифт бы не применился.

   Моноширинный сохранён там, где он работает функционально, а не оформительски:
   .menu a, .btn, шапки таблиц, IP серверов, счётчики и статусы. Цифрам нужна
   табличная ширина, мелким «терминальным» подписям — характер темы. */
h1, h2, h3, h4,
.page-title, .page-subtitle,
.block__head,
.side-block__head,
.logo__text,
.hero__title,
.zx-shield__title,
.news-card__title, .news-single__title,
.event-card__title, .events-empty__title,
.profile__name,
.store-hero__title {
    font-family: var(--font-display);
}

/* ===================== Шрифт по всему интерфейсу ============================
   Educational Gothic ставится на body, поэтому его наследует вся вёрстка:
   меню, кнопки, ники, статистика, подписи, формы, таблицы.

   Два исключения сделаны намеренно.

   1) ДЛИННЫЕ ТЕКСТЫ остаются на системном шрифте (--font-text): тело новости,
      сообщения форума и тикетов, статические страницы, описания событий и
      сообщения чата. Это пользовательская проза, её читают абзацами, а
      акцидентный гротеск в 14-15px на кириллице утомляет глаз. Если хотите
      шрифт и там — удалите блок с --font-text ниже.

   2) МОНОШИРИННЫЕ СЛОТЫ не тронуты вовсе: .mono и .server-item__ip объявляют
      шрифт явно, а явное правило сильнее наследования от body. Там он нужен
      функционально — цифрам и адресам важна одинаковая ширина знака.
   ========================================================================= */
:root {
    --font-text: "Segoe UI", "Inter", Roboto, Arial, sans-serif;
}

body { font-family: var(--font-display); }

.news-single__text,
.forum-post__text,
.ticket-msg__text,
.static-page__content,
.event-single__descr,
.news-card__preview,
.event-card__preview,
.chat-msg__text,
.chat-msg__reply-text {
    font-family: var(--font-text);
}
/* Зомби-тема ставила Consolas на эти элементы явно — наследование от body их
   не перебивает, нужно объявить заново. Это оформительский моноширинный,
   а не функциональный: адреса серверов и .mono остаются как были. */
.menu a,
.btn,
.side-nav__link,
.side-block__head,
.hero__subtitle,
.badge,
.chat__status,
.site-footer__nav a,
.data-table thead th,
.zx-topbar,
.zx-hero__tag,
.zx-shield__sub,
.zx-tile__t {
    font-family: var(--font-display);
}
/* ======================== Список пользователей (/members) ================== */
.members-tools { margin-bottom: 18px; }
.members-total { font-size: 14px; white-space: nowrap; }
.members-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Высоту не фиксируем: при паддинге 11px жёсткая высота обрезала бы текст,
   как это было на банлисте. */
.members-filter input[type="search"] { width: 240px; max-width: 100%; }
.members-filter select { width: auto; min-width: 170px; }

.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }

.member-card { display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 4px; padding: 20px 14px 16px; color: var(--text);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.member-card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
/* Обёртка аватара — та же, что в карточке аккаунта: на ней висит галочка
   верификации из модуля verification. */
.member-card__ava { position: relative; display: inline-block; margin-bottom: 8px; }
.member-card__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border); background: var(--bg-elev); }
.member-card:hover .member-card__avatar { border-color: var(--accent); }
/* Ник рисует Users::nickHtml: цвет группы и гиф-эффект приходят инлайн-стилем,
   поэтому здесь только раскладка. Длинные ники обрезаем многоточием. */
.member-card__nick { display: block; max-width: 100%; font-weight: 700; font-size: 15px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card__group { font-size: 12.5px; }
.member-card__seen { font-size: 12px; }
.member-card__reg { font-size: 12px; }
.member-card__balance { margin-top: 8px; padding: 3px 11px; border-radius: 100px;
    background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }

.members-empty { grid-column: 1 / -1; padding: 34px 26px; text-align: center;
    background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); }
.members-empty__title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.members-empty p { max-width: 44ch; margin: 0 auto 16px; line-height: 1.6; }

@media (max-width: 600px) {
    .members-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .member-card { padding: 16px 10px 14px; }
    .member-card__avatar { width: 60px; height: 60px; }
    .members-filter input[type="search"], .members-filter select { width: 100%; }
    .members-filter .btn { width: 100%; }
}
/* Плейсхолдеры, которые модуль может оставить пустыми: без содержимого
   плашки не должны занимать место и рисовать фон. */
.event-card__preview:empty,
.member-card__balance:empty,
.events-empty__title:empty { display: none; }