/* ==========================================================================
   CS2 HUB — основная таблица стилей
   Тёмная тема, glassmorphism, неоновые акценты. Только CSS Grid и Flexbox.
   ========================================================================== */

/* --------------------------------------------------------------- Переменные */
:root {
    --bg:            #0b0e14;
    --bg-soft:       #10141d;
    --surface:       rgba(20, 25, 36, 0.72);
    --surface-solid: #141924;
    --surface-2:     rgba(30, 37, 52, 0.6);
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text:          #e6e8ee;
    --text-dim:      #9aa2b5;
    --text-mute:     #6b7387;

    --accent:        #f5a524;
    --accent-2:      #ff7a18;
    --cyan:          #4cc9f0;
    --green:         #7cf03d;
    --red:           #ff4d6d;
    --violet:        #b388ff;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;

    --shadow:      0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
    --glow:        0 0 24px rgba(245, 165, 36, 0.35);

    --container: 1280px;
    --header-h:  70px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------- Основа */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 'Segoe UI', 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 0.92em; }

::selection { background: var(--accent); color: #14181f; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Фоновые эффекты */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
    position: fixed;
    inset: -20% -10% auto;
    height: 620px;
    z-index: -1;
    background:
        radial-gradient(600px 320px at 18% 10%, rgba(245, 165, 36, 0.16), transparent 70%),
        radial-gradient(560px 300px at 82% 4%, rgba(76, 201, 240, 0.14), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.main { min-height: 60vh; padding-bottom: 60px; }

.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: var(--shadow-soft);
}

.grad {
    background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.icon { flex: none; }
.icon--flip { transform: rotate(180deg); }
.icon--accent { color: var(--accent); }

/* ------------------------------------------------------------------- Шапка */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(11, 14, 20, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #14181f;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    box-shadow: var(--glow);
}

.logo--sm { font-size: 16px; }
.logo--sm .logo__mark { width: 34px; height: 34px; border-radius: 10px; }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__link.is-active {
    color: var(--accent);
    background: rgba(245, 165, 36, 0.1);
    box-shadow: inset 0 0 0 1px rgba(245, 165, 36, 0.2);
}

.nav__icon { opacity: 0.85; }

.header__tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.burger {
    display: none;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    color: var(--text);
}

/* Живой поиск */
.live-search { position: relative; }

.live-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 210px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    transition: border-color 0.2s var(--ease), width 0.25s var(--ease);
}

.live-search__field:focus-within {
    width: 280px;
    border-color: rgba(245, 165, 36, 0.5);
    color: var(--text);
}

.live-search__field input {
    width: 100%;
    border: 0;
    background: none;
    outline: none;
    font-size: 14px;
}

.live-search__results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 440px;
    overflow-y: auto;
    padding: 8px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 70;
}

.live-search__group { padding: 6px 8px 2px; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-mute); }

.live-search__item {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    transition: background 0.15s var(--ease);
}

.live-search__item:hover,
.live-search__item.is-active { background: rgba(255, 255, 255, 0.06); }
.live-search__item b { display: block; font-size: 14px; font-weight: 600; }
.live-search__item span { font-size: 12px; color: var(--text-mute); }

/* Выпадающие меню */
.dropdown { position: relative; }

.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn--danger:hover { color: var(--red); border-color: rgba(255, 77, 109, 0.4); }

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.badge.is-hidden { display: none; }

.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 11px 5px 5px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.2s var(--ease);
}

.user-btn:hover { border-color: var(--border-strong); }
.user-btn__name { font-size: 14px; font-weight: 600; }
.user-btn__chevron { transform: rotate(90deg); opacity: 0.6; }

.dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 232px;
    padding: 7px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    z-index: 70;
}

.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu--wide { width: 360px; }

.dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--text-dim);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.dropdown__item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.dropdown__item--danger:hover { color: var(--red); }
.dropdown__form { margin: 0; border-top: 1px solid var(--border); padding-top: 5px; margin-top: 5px; }

.dropdown__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.dropdown__body { max-height: 340px; overflow-y: auto; padding: 4px 0; }
.dropdown__empty { padding: 18px; text-align: center; color: var(--text-mute); font-size: 13px; }

.dropdown__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--accent);
}

.link-btn {
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.link { color: var(--cyan); }
.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease),
                background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #16191f;
    box-shadow: 0 8px 22px rgba(245, 165, 36, 0.28);
}

.btn--primary:hover { box-shadow: 0 12px 30px rgba(245, 165, 36, 0.42); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.08); }

.btn--danger {
    background: rgba(255, 77, 109, 0.12);
    border-color: rgba(255, 77, 109, 0.35);
    color: #ff8fa3;
}

.btn--danger:hover { background: rgba(255, 77, 109, 0.2); }

.btn--steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border-color: rgba(102, 192, 244, 0.35);
    color: #c7d5e0;
}

.btn--steam:hover { box-shadow: 0 10px 26px rgba(102, 192, 244, 0.22); }

.btn--like {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text-dim);
}

.btn--like.is-active {
    color: var(--red);
    border-color: rgba(255, 77, 109, 0.4);
    background: rgba(255, 77, 109, 0.12);
}

.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn--lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------------- Hero */
.hero { padding: 56px 0 28px; }

.hero__inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(245, 165, 36, 0.3);
    border-radius: 30px;
    background: rgba(245, 165, 36, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero__title {
    margin: 20px 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero__text { max-width: 560px; color: var(--text-dim); font-size: 16px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0;
    max-width: 560px;
}

.hero__stat {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.hero__stat dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-mute); }
.hero__stat dd { margin: 4px 0 0; font-size: 24px; font-weight: 800; color: var(--accent); }

.hero__panel { padding: 22px; }

/* Панели */
.panel { padding: 22px; margin-bottom: 22px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel__title { display: flex; align-items: center; gap: 9px; font-size: 17px; }
.panel__subtitle { display: flex; align-items: center; gap: 8px; margin: 20px 0 12px; font-size: 14px; color: var(--text-dim); }
.panel__note { color: var(--text-dim); font-size: 13px; margin: 0; }
.panel__link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent); }
.panel--hint { display: flex; gap: 16px; align-items: flex-start; color: var(--text-dim); }
.panel--hint .icon { color: var(--accent); margin-top: 4px; }

.pulse {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
}

.pulse--live { color: var(--green); background: rgba(124, 240, 61, 0.1); }

.pulse--live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(124, 240, 61, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70%  { box-shadow: 0 0 0 9px rgba(124, 240, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 240, 61, 0); }
}

/* Индикатор заполненности */
.gauge { margin: 16px 0; }

.gauge__bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.gauge__bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    transition: width 0.6s var(--ease);
}

.gauge__legend {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-mute);
}

.mini-servers { display: grid; gap: 8px; margin-top: 6px; }

.mini-server {
    display: grid;
    grid-template-columns: 8px 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.mini-server__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-server__map { color: var(--text-mute); font-size: 12px; }
.mini-server__players { font-weight: 700; color: var(--accent); }
.mini-server--empty { grid-template-columns: 1fr; color: var(--text-mute); text-align: center; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-mute);
    flex: none;
}

.dot--on { background: var(--green); box-shadow: 0 0 10px rgba(124, 240, 61, 0.7); }

/* --------------------------------------------------------------- Разделы */
.section { padding: 30px 0; }

.section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section__title { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.section__title .icon { color: var(--accent); }
.section__more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent); }

.page-head { padding: 34px 0 6px; }
.page-head--inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-title { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3vw, 34px); }
.page-title .icon { color: var(--accent); }
.page-subtitle { margin: 8px 0 0; color: var(--text-dim); font-size: 14px; }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-mute);
}

.breadcrumbs a:hover { color: var(--accent); }

/* Раскладки */
.layout { display: grid; gap: 24px; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.layout--half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout--dashboard { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
.layout__aside { display: grid; gap: 18px; }
.dash-col { display: grid; gap: 22px; align-content: start; }

.grid { display: grid; gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--news { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--players { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------------------------------------------------------------- Карточки */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 165, 36, 0.28);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.card--wide { grid-column: span 2; }
.card--wide .card__media { aspect-ratio: 16 / 8; }
.card--wide .card__title { font-size: 20px; }

.card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-soft);
}

.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

.card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--accent, #f5a524);
    background:
        radial-gradient(120px 80px at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 8px, transparent 8px 16px);
}

.card__flag {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(11, 14, 20, 0.82);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-mute); }
.card__title { font-size: 16px; line-height: 1.35; }
.card__title a { transition: color 0.2s var(--ease); }
.card__title a:hover { color: var(--accent); }
.card__excerpt { margin: 0; color: var(--text-dim); font-size: 13.5px; flex: 1; }

.card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-mute);
}

.card__author { margin-left: auto; color: var(--text-dim); }
.stat { display: inline-flex; align-items: center; gap: 5px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--chip, var(--accent)) 16%, transparent);
    color: var(--chip, var(--accent));
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid color-mix(in srgb, var(--chip, var(--border-strong)) 40%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--chip, #ffffff) 10%, transparent);
    color: var(--chip, var(--text-dim));
    font-size: 11px;
    font-weight: 600;
}

.tag--ok   { --chip: var(--green); }
.tag--warn { --chip: var(--red); }
.tag--accent { --chip: var(--accent); }
.tag.is-active { --chip: var(--accent); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud--article { margin: 18px 0; }

/* Виджеты */
.widget { padding: 18px; }
.widget__title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 15px; }
.widget__title .icon { color: var(--accent); }
.widget__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 13px; color: var(--accent); }
.widget--sticky { position: sticky; top: calc(var(--header-h) + 18px); }

.toplist { display: grid; gap: 10px; counter-reset: top; }
.toplist__item { display: flex; gap: 11px; align-items: flex-start; }

.toplist__num {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 7px;
    background: rgba(245, 165, 36, 0.14);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.toplist__link { font-size: 13.5px; line-height: 1.4; }
.toplist__link:hover { color: var(--accent); }
.toplist__meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; color: var(--text-mute); }

.stat-list { display: grid; gap: 9px; }

.stat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text-dim);
}

.stat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-list b { color: var(--text); }

.cat-list { display: grid; gap: 4px; }

.cat-list__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text-dim);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.cat-list__item span { flex: 1; }
.cat-list__item b { font-size: 12px; color: var(--text-mute); }
.cat-list__item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.cat-list__item.is-active { background: color-mix(in srgb, var(--chip, var(--accent)) 14%, transparent); color: var(--chip, var(--accent)); }
.cat-list__item .icon { color: var(--chip, var(--accent)); }

.players-list { display: grid; gap: 10px; }
.players-list__item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.players-list__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players-list__name:hover { color: var(--accent); }
.rating { font-weight: 800; color: var(--accent); font-size: 13px; }

.topic-feed { display: grid; gap: 12px; }
.topic-feed__item { display: grid; gap: 4px; padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.topic-feed__item:last-child { border-bottom: 0; padding-bottom: 0; }
.topic-feed__cat { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--chip, var(--cyan)); }
.topic-feed__title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.topic-feed__title:hover { color: var(--accent); }
.topic-feed__meta { font-size: 12px; color: var(--text-mute); }

.online-users { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.online-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 4px;
    border: 1px solid color-mix(in srgb, var(--chip, var(--border)) 40%, transparent);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12.5px;
}

.online-user:hover { border-color: var(--chip, var(--accent)); }

.panel__updated { color: var(--text-mute); font-size: 12px; }

.comment-feed { display: grid; gap: 9px; margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.comment-feed b { color: var(--text); }
.comment-feed a:hover { color: var(--accent); }

.rules { display: grid; gap: 9px; font-size: 13px; color: var(--text-dim); }
.rules li { padding-left: 16px; position: relative; }
.rules li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card { padding: 16px 18px; display: grid; gap: 6px; }
.stat-card__label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mute); }
.stat-card__value { font-size: 26px; font-weight: 800; }
.stat-card__value--ok { color: var(--green); }

.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar--letter { display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; }

.empty {
    padding: 18px;
    color: var(--text-mute);
    font-size: 14px;
    text-align: center;
}

.empty--lg {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 56px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

.note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-top: 14px;
    border-radius: var(--radius-sm);
    background: rgba(76, 201, 240, 0.08);
    border: 1px solid rgba(76, 201, 240, 0.2);
    font-size: 13px;
    color: var(--text-dim);
}

.note .icon { color: var(--cyan); flex: none; margin-top: 2px; }
.hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-mute); }

/* ------------------------------------------------------------- Инструменты */
.toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.toolbar__search {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 220px;
    padding: 6px 8px 6px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-mute);
}

.toolbar__search--inline { flex: none; width: 260px; }
.toolbar__sorts { display: flex; gap: 7px; flex-wrap: wrap; }

.pill {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.18s var(--ease);
}

.pill:hover { border-color: var(--border-strong); color: var(--text); }

.pill.is-active {
    background: rgba(245, 165, 36, 0.12);
    border-color: rgba(245, 165, 36, 0.4);
    color: var(--accent);
}

.load-more { display: flex; justify-content: center; margin-top: 26px; }

/* Пагинация */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }

.pagination__link {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.18s var(--ease);
}

.pagination__link:hover { border-color: var(--border-strong); color: var(--text); }

.pagination__link.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #16191f;
}

.pagination__gap { color: var(--text-mute); padding: 0 4px; }

/* ------------------------------------------------------------------ Формы */
.form { display: grid; gap: 16px; }
.form--panel { padding: 26px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }

.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-dim); }

.input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.input:hover { border-color: var(--border-strong); }

.input:focus {
    outline: none;
    border-color: rgba(245, 165, 36, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.12);
}

.input--bare { border: 0; background: none; padding: 5px 0; }
.input--bare:focus { box-shadow: none; background: none; }
.input--sm { padding: 8px 11px; font-size: 13px; border-radius: 9px; }
.input--color { padding: 4px; height: 42px; cursor: pointer; }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.55; }
select.input { appearance: none; cursor: pointer; }
option { background: var(--surface-solid); }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-dim); cursor: pointer; }
.checkbox--sm { font-size: 12.5px; }

.checkbox input {
    appearance: none;
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 1px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.checkbox input:checked {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316191f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E") center / 13px no-repeat;
    border-color: var(--accent);
}

.counter { font-size: 12px; color: var(--text-mute); }

.strength { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: 2px; transition: width 0.3s var(--ease), background 0.3s var(--ease); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- Авторизация */
.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 26px; align-items: start; }
.auth--single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth__card { padding: 30px; }
.auth__title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 8px; }
.auth__title .icon { color: var(--accent); }
.auth__subtitle { color: var(--text-dim); font-size: 13.5px; margin-bottom: 22px; }
.auth__foot { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--text-dim); }

.auth__divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-mute); font-size: 12px; }
.auth__divider::before,
.auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth__aside { padding: 30px; }
.auth__aside-title { font-size: 17px; margin-bottom: 18px; }
.feature-list { display: grid; gap: 14px; font-size: 13.5px; color: var(--text-dim); }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; }
.feature-list .icon { color: var(--accent); flex: none; margin-top: 2px; }

/* ------------------------------------------------------------------ Статья */
.article { padding-top: 30px; }
.article__head { margin-bottom: 22px; }
.article__title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }

.article__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-mute);
}

.article__meta span,
.article__meta time { display: inline-flex; align-items: center; gap: 6px; }
.article__author { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.article__author small { display: block; font-size: 11px; font-weight: 500; }

.article__cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 26px; }

.article__actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px; margin-bottom: 26px; }

.prose { padding: 28px; font-size: 15.5px; line-height: 1.75; color: #d7dbe5; }
.prose h2 { margin: 30px 0 14px; font-size: 22px; color: var(--text); }
.prose h3 { margin: 24px 0 12px; font-size: 18px; color: var(--text); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; }
.prose img { border-radius: var(--radius-sm); margin: 18px 0; }
.prose code { padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); color: var(--accent); }

.prose pre {
    padding: 16px;
    margin: 18px 0;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.prose blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(245, 165, 36, 0.07);
    color: var(--text-dim);
}

.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: rgba(255, 255, 255, 0.04); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); margin: 18px 0; }

.related { display: grid; gap: 13px; font-size: 13.5px; }
.related a:hover { color: var(--accent); }
.related__meta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-mute); }

/* -------------------------------------------------------------- Комментарии */
.comments { margin-top: 34px; }
.comments__list { display: grid; gap: 20px; margin-top: 24px; }

.comment-form { padding: 18px; margin-top: 18px; display: grid; gap: 12px; }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-form__reply-to {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 9px;
    background: rgba(245, 165, 36, 0.1);
    font-size: 13px; color: var(--accent);
}

.comment { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
.comment--reply { margin-left: 0; }
.comment__content { min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.comment__author { font-weight: 700; font-size: 14px; }
.comment__time { font-size: 12px; color: var(--text-mute); }
.comment__text { color: #d3d8e3; font-size: 14.5px; line-height: 1.65; word-break: break-word; }
.comment__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; }
.comment__children { display: grid; gap: 18px; margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--border); }

.action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-mute);
    font-size: 12.5px;
    cursor: pointer;
    transition: color 0.18s var(--ease);
}

.action:hover { color: var(--text); }
.action.is-active { color: var(--red); }
.action--danger:hover { color: var(--red); }

/* ------------------------------------------------------------------- Форум */
.forum-list { display: grid; gap: 14px; }

.forum-cat {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 150px 210px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.forum-cat:hover { border-color: color-mix(in srgb, var(--chip) 40%, transparent); transform: translateY(-2px); }

.forum-cat__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: color-mix(in srgb, var(--chip) 14%, transparent);
    color: var(--chip);
}

.forum-cat__title { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.forum-cat__title a:hover { color: var(--chip); }
.forum-cat__desc { margin: 5px 0 0; font-size: 13px; color: var(--text-mute); }
.forum-cat__stats { display: grid; gap: 4px; font-size: 12px; color: var(--text-mute); }
.forum-cat__stats b { color: var(--text); font-size: 14px; }
.forum-cat__last { display: grid; gap: 3px; font-size: 12.5px; }
.forum-cat__last-title { font-weight: 600; }
.forum-cat__last-title:hover { color: var(--accent); }
.forum-cat__last-meta { color: var(--text-mute); font-size: 11.5px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.table th {
    padding: 13px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-mute);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background 0.15s var(--ease); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table--compact td, .table--compact th { padding: 9px 12px; font-size: 12.5px; }
.table--players td { padding: 9px 14px; }
.ta-c { text-align: center; }
.ta-r { text-align: right; }
.cell-text { max-width: 320px; color: var(--text-dim); }

.topic-row { display: flex; align-items: center; gap: 12px; }
.topic-row__title { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.topic-row__title:hover { color: var(--accent); }
.topic-row__meta { display: block; margin-top: 3px; font-size: 12px; color: var(--text-mute); }

.badge-mini {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

.badge-mini--accent { background: rgba(245, 165, 36, 0.16); color: var(--accent); }

.posts { display: grid; gap: 16px; }

.post { display: grid; grid-template-columns: 168px minmax(0, 1fr); overflow: hidden; }

.post__author {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 22px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border);
    text-align: center;
}

.post__name { font-weight: 700; font-size: 14px; }
.post__stat { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-mute); }
.post__body { padding: 18px 22px 16px; min-width: 0; }
.post__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--text-mute); }
.post__edited { font-style: italic; }
.post__content { font-size: 14.5px; line-height: 1.7; color: #d5dae4; word-break: break-word; }
.post__signature { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-mute); font-style: italic; }
.post__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

/* BBCode */
.bb-u { text-decoration: underline; }
.bb-center { text-align: center; }
.bb-img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.bb-list { list-style: disc; padding-left: 22px; margin: 10px 0; }
.bb-video { position: relative; aspect-ratio: 16/9; margin: 12px 0; }
.bb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }

.bb-code {
    padding: 14px;
    margin: 12px 0;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    overflow-x: auto;
    font-size: 13px;
}

.bb-quote {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--cyan);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(76, 201, 240, 0.07);
}

.bb-quote cite { display: block; margin-bottom: 6px; font-size: 12px; font-style: normal; color: var(--cyan); font-weight: 600; }

.bb-spoiler { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.bb-spoiler summary { cursor: pointer; color: var(--accent); font-size: 13px; }

.bb-editor { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.bb-editor__toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); }

.bb-btn {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.bb-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.bb-btn--right { margin-left: auto; }
.bb-btn__label--b { font-weight: 800; }
.bb-btn__label--i { font-style: italic; }
.bb-btn__label--u { text-decoration: underline; }
.bb-btn__label--s { text-decoration: line-through; }

.bb-editor__area { border: 0; border-radius: 0; background: none; }
.bb-editor__area:focus { box-shadow: none; }

.reply { padding: 22px; margin-top: 24px; }
.preview { padding: 18px; margin-top: 16px; }
.preview__title { font-size: 14px; margin-bottom: 12px; color: var(--text-dim); }

.search-results { display: grid; gap: 12px; margin: 16px 0 26px; }
.search-result { padding: 16px 18px; }
.search-result__title { font-size: 15px; font-weight: 600; }
.search-result__title:hover { color: var(--accent); }
.search-result__text { margin: 7px 0 0; font-size: 13.5px; color: var(--text-dim); }
.search-result__meta { display: block; margin-top: 7px; font-size: 12px; color: var(--text-mute); }

/* ---------------------------------------------------------------- Серверы */
.servers { display: grid; gap: 16px; }
.server { padding: 20px; transition: border-color 0.25s var(--ease); }
.server.is-offline { opacity: 0.66; }
.server:hover { border-color: rgba(245, 165, 36, 0.25); }
.server__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.server__title { display: flex; align-items: center; gap: 10px; }
.server__title h2 { font-size: 17px; }
.server__badges { display: flex; gap: 7px; flex-wrap: wrap; }

.server__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.server__cell { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); }
.server__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); }
.server__cell b { font-size: 15px; }

.server__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.server__address {
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--cyan);
    font-size: 13px;
}

.server__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.server__players { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }

/* -------------------------------------------------------- Личный кабинет */
.dash-nav { display: grid; gap: 4px; padding: 12px; position: sticky; top: calc(var(--header-h) + 18px); }
.dash-nav nav { display: grid; gap: 4px; }

.dash-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.18s var(--ease);
}

.dash-nav__link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.dash-nav__link.is-active { background: rgba(245, 165, 36, 0.12); color: var(--accent); }
.dash-nav__link--out { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 14px; border-radius: 0 0 10px 10px; }

.dash-main { display: grid; gap: 22px; align-content: start; min-width: 0; }

.profile-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px; }
.profile-card__name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 24px; }
.profile-card__about { margin: 10px 0 0; color: var(--text-dim); font-size: 14px; }
.profile-card__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13px; color: var(--text-mute); }
.profile-card__meta li { display: inline-flex; align-items: center; gap: 7px; }
.profile-card__meta b { color: var(--text); }
.profile-card__actions { display: grid; gap: 10px; }

.premier { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; }
.premier__rank { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: var(--radius); background: linear-gradient(150deg, rgba(245, 165, 36, 0.14), rgba(255, 122, 24, 0.05)); border: 1px solid rgba(245, 165, 36, 0.22); }
.premier__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); }
.premier__value { font-size: 38px; font-weight: 800; line-height: 1; color: var(--accent); }
.premier__delta { display: grid; font-size: 13px; font-weight: 700; }
.premier__delta small { font-weight: 500; color: var(--text-mute); font-size: 11.5px; }
.premier__delta.is-up { color: var(--green); }
.premier__delta.is-down { color: var(--red); }
.premier__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.premier__chart { min-width: 0; }

.premier__rank--faceit {
    background: linear-gradient(150deg, rgba(255, 122, 24, 0.16), rgba(255, 77, 109, 0.05));
    border-color: rgba(255, 122, 24, 0.28);
}

.premier__rank--faceit .premier__value { color: var(--accent-2); }

.kpi { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.kpi__label { display: block; font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi__value { font-size: 19px; font-weight: 800; }
.kpi__value--ok { color: var(--green); }
.kpi__value--bad { color: var(--red); }

.activity { display: grid; gap: 14px; }
.activity__item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.activity__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); color: var(--accent); }
.activity__target { font-size: 13.5px; font-weight: 600; }
.activity__target:hover { color: var(--accent); }
.activity__text { margin: 3px 0 0; font-size: 12.5px; color: var(--text-mute); }
.activity__time { font-size: 11.5px; color: var(--text-mute); white-space: nowrap; }

.notif-list { display: grid; gap: 8px; }
.notif a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 10px; transition: background 0.15s var(--ease); }
.notif a:hover { background: rgba(255, 255, 255, 0.05); }
.notif b { display: block; font-size: 13.5px; }
.notif span { font-size: 12.5px; color: var(--text-mute); }
.notif time { font-size: 11.5px; color: var(--text-mute); white-space: nowrap; }
.notif.is-unread a { background: rgba(245, 165, 36, 0.08); }
.notif__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); color: var(--accent); }
.notif__body { display: grid; gap: 2px; min-width: 0; }

.avatar-edit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar-edit__controls { flex: 1; min-width: 200px; }

.weapons { display: grid; gap: 11px; }
.weapon { display: grid; grid-template-columns: 130px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 13px; }
.weapon__bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.weapon__bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--red)); }
.weapon__value { text-align: right; font-weight: 700; }
.weapon__value small { display: block; font-weight: 500; font-size: 11px; color: var(--text-mute); }

.bar { display: inline-block; position: relative; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.bar::before { content: ''; position: absolute; inset: 0; width: var(--v); border-radius: 6px; background: rgba(124, 240, 61, 0.18); }
.bar { z-index: 0; }

.match--win td  { box-shadow: inset 3px 0 0 rgba(124, 240, 61, 0.6); }
.match--loss td { box-shadow: inset 3px 0 0 rgba(255, 77, 109, 0.6); }
.score--win  { color: var(--green); font-weight: 700; }
.score--loss { color: var(--red); font-weight: 700; }
.score--tie  { color: var(--text-dim); font-weight: 700; }
.delta.is-up { color: var(--green); font-weight: 700; }
.delta.is-down { color: var(--red); font-weight: 700; }

.source-list { display: grid; gap: 12px; }
.source-list__item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; color: var(--text-dim); }
.source-list__item b { color: var(--text); }
.source-list__item .icon { margin-top: 2px; }
.source-list__item.is-ok .icon { color: var(--green); }
.source-list__item.is-manual .icon { color: var(--accent); }
.source-list__item.is-off .icon { color: var(--text-mute); }
.source-list__item code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); color: var(--accent); }

.player-card { padding: 16px; display: grid; gap: 14px; position: relative; }
.player-card__link { display: flex; align-items: center; gap: 12px; }
.player-card__name { font-size: 15px; }
.player-card__role { display: block; font-size: 12px; color: var(--text-mute); }
.player-card__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 12px; }
.player-card__stats li { display: flex; justify-content: space-between; color: var(--text-mute); }
.player-card__stats b { color: var(--text); }
.player-card__badge { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--cyan); }

/* --------------------------------------------------------------- Графики */
.chart { margin: 0; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.chart__axis { fill: var(--text-mute); font-size: 10px; }
.chart__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { opacity: 0.85; transition: r 0.15s var(--ease); }
.chart__dot:hover { r: 5; }

/* ---------------------------------------------------------------- Ошибки */
.error-page { display: grid; justify-items: center; gap: 14px; padding: 70px 30px; text-align: center; }
.error-page__code { font-size: 84px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page__title { font-size: 24px; }
.error-page__text { color: var(--text-dim); max-width: 520px; }
.error-page__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* -------------------------------------------------------- Модальные окна */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 7, 11, 0.7); backdrop-filter: blur(4px); }

.modal__window {
    position: relative;
    width: min(100%, 460px);
    padding: 26px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    animation: modal-in 0.22s var(--ease);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.06); color: var(--text-dim); cursor: pointer; }
.modal__close:hover { color: var(--text); }
.modal__title { font-size: 18px; margin-bottom: 10px; }
.modal__text { color: var(--text-dim); font-size: 14px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ------------------------------------------------------------------ Тосты */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; width: min(100% - 40px, 360px); }

.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    font-size: 13.5px;
    animation: toast-in 0.25s var(--ease);
}

.toast--success { border-left: 3px solid var(--green); }
.toast--error   { border-left: 3px solid var(--red); }
.toast--warning { border-left: 3px solid var(--accent); }
.toast--info    { border-left: 3px solid var(--cyan); }
.toast.is-hiding { animation: toast-out 0.25s var(--ease) forwards; }
.toast__close { margin-left: auto; border: 0; background: none; color: var(--text-mute); cursor: pointer; }

@keyframes toast-in  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ----------------------------------------------------------------- Подвал */
.footer { margin-top: 40px; border-top: 1px solid var(--border); background: rgba(9, 12, 17, 0.6); }
.footer__inner { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding: 44px 0 32px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__text { margin: 14px 0 0; font-size: 13px; color: var(--text-mute); max-width: 320px; }
.footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); margin-bottom: 4px; }
.footer__link { font-size: 13.5px; color: var(--text-dim); transition: color 0.18s var(--ease); }
.footer__link:hover { color: var(--accent); }
.footer__socials { display: flex; gap: 8px; margin-top: 16px; }

.footer__social {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dim);
    transition: all 0.18s var(--ease);
}

.footer__social:hover { color: var(--accent); border-color: rgba(245, 165, 36, 0.4); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 0 26px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-mute);
}

.footer__bottom p { margin: 0; }

/* ------------------------------------------------------------- Адаптивность */
@media (max-width: 1180px) {
    .nav__link span { display: none; }
    .nav__link { padding: 10px; }
    .layout--sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
    .forum-cat { grid-template-columns: 48px minmax(0, 1fr) 130px; }
    .forum-cat__last { display: none; }
}

@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; }
    .layout--sidebar,
    .layout--half,
    .layout--dashboard { grid-template-columns: minmax(0, 1fr); }
    .dash-nav { position: static; display: flex; overflow-x: auto; }
    .dash-nav nav { display: flex; }
    .dash-nav__link--out { display: none; }
    .card--wide { grid-column: span 1; }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth__aside { order: -1; }
    .premier { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: repeat(2, 1fr); }
    .profile-card { grid-template-columns: auto minmax(0, 1fr); }
    .profile-card__actions { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; }
}

@media (max-width: 760px) {
    .burger { display: grid; margin-left: auto; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        background: var(--surface-solid);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: transform 0.25s var(--ease);
        z-index: 50;
    }
    .nav.is-open { transform: none; }
    .nav__link span { display: inline; }
    .nav__link { padding: 12px 14px; }
    .header__tools { margin-left: 0; }
    .live-search { display: none; }
    .post { grid-template-columns: 1fr; }
    .post__author { flex-direction: row; grid-auto-flow: column; justify-content: flex-start; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); padding: 14px; }
    .forum-cat { grid-template-columns: 44px minmax(0, 1fr); }
    .forum-cat__stats { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 18px; }
    .weapon { grid-template-columns: 100px minmax(0, 1fr) 72px; }
    .comment__children { padding-left: 12px; }
    .footer__inner { grid-template-columns: 1fr; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
    .profile-card { grid-template-columns: 1fr; justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
