/* ═══════════════════════════════════════════════════════════════
   ProMeatCS — Единый CSS-стиль
   Шрифты: Nunito (основной), Rajdhani (заголовки/акценты)
   Подключение: <link rel="preconnect" href="https://fonts.googleapis.com">
                <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&display=swap" rel="stylesheet">
                <link rel="stylesheet" href="promeatcs-theme.css">
═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   CSS ПЕРЕМЕННЫЕ (цвета, тени, радиусы)
══════════════════════════════════════════════ */
:root {
  /* Фоны */
  --bg0: #10131a;
  --bg1: #161b26;
  --bg2: #1c2333;
  --bg3: #222a3d;
  --bg4: #28304a;

  /* Разделители */
  --ln:  rgba(255,255,255,.06);
  --ln2: rgba(255,255,255,.10);

  /* Синий акцент */
  --bl:  #2196f3;
  --bl2: #42a5f5;
  --bl3: #1565c0;
  --bl4: #0d47a1;
  --cy:  #00bcd4;
  --glow: rgba(33,150,243,.18);

  /* Текст */
  --wh:  #eef2fa;
  --mid: #8b9bbf;
  --dim: #4e5f80;

  /* Статусы */
  --gr:  #29c27a;
  --rd:  #f44336;
  --gd:  #ffb300;

  /* Общие */
  --r:      14px;
  --shadow: 0 8px 32px rgba(0,0,0,.5);
}

/* ══════════════════════════════════════════════
   СБРОС И БАЗОВЫЕ СТИЛИ
══════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg0);
  color: var(--wh);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bl3); border-radius: 8px; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════════
   АНИМАЦИИ
══════════════════════════════════════════════ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
@keyframes fdown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(33,150,243,.4); }
  50%       { box-shadow: 0 0 32px rgba(33,150,243,.7); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════
   ХЕДЕР
══════════════════════════════════════════════ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(16,19,26,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ln2);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hdr-i {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-m {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bl3), var(--cy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 0 18px rgba(33,150,243,.4);
  animation: pulse-glow 3s ease infinite;
  flex-shrink: 0;
}
.logo-t {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
}
.logo-t em {
  color: var(--bl2);
  font-style: normal;
  text-shadow: 0 0 20px rgba(33,150,243,.5);
}

/* Главная навигация */
.mnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.mnav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--mid);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .18s, background .18s;
  white-space: nowrap;
  position: relative;
}
.mnav a svg { width: 15px; height: 15px; flex-shrink: 0; }
.mnav a:hover,
.mnav a.on,
.mnav a.active {
  color: var(--bl2);
  background: rgba(33,150,243,.1);
}
.mnav a.on::after,
.mnav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--bl2);
  border-radius: 2px;
}

/* Правая часть хедера */
.hdr-r {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Иконка-кнопка */
.icb {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--ln2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--mid);
  transition: all .18s;
}
.icb:hover { border-color: var(--bl); color: var(--bl2); }
.icb svg { width: 17px; height: 17px; }

/* Бейдж уведомлений */
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rd);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg0);
}

/* Баланс */
.bal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,179,0,.1);
  border: 1px solid rgba(255,179,0,.22);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gd);
}
.bal svg { width: 14px; height: 14px; }

/* Профиль-кнопка */
.pfwrap { position: relative; }
.pfbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 7px;
  background: var(--bg2);
  border: 1px solid var(--ln2);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .18s;
}
.pfbtn:hover { border-color: var(--bl); background: var(--bg3); }
.pfava {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1565c0, #0288d1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  border: 2px solid var(--bl);
  overflow: hidden;
  flex-shrink: 0;
}
.pfava img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.pfnm  { font-size: 13px; font-weight: 700; color: var(--wh); }
.pfsub { font-size: 11px; color: var(--bl2); }
.pfcaret svg { width: 12px; height: 12px; color: var(--dim); }

/* Выпадающее меню профиля */
.drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 248px;
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 24px rgba(33,150,243,.12);
  display: none;
  animation: fdown .18s ease;
  z-index: 800;
}
.drop::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -20px;
  right: -20px;
  height: 16px;
}
.pfwrap:hover .drop { display: block; }
.dh {
  padding: 16px;
  background: linear-gradient(135deg, rgba(13,71,161,.5), rgba(21,101,192,.3));
  border-bottom: 1px solid var(--ln);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dava {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1565c0, #0288d1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  border: 2px solid var(--bl);
  overflow: hidden;
  flex-shrink: 0;
}
.dava img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.dnm  { font-size: 14px; font-weight: 700; color: var(--wh); }
.dbal { font-size: 11px; color: var(--gd); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.dadd { font-size: 10px; color: var(--bl2); margin-left: 6px; }
.dbody { padding: 8px; overflow: hidden; border-radius: 0 0 18px 18px; }
.di {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--mid);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  cursor: pointer;
}
.di svg  { width: 16px; height: 16px; color: var(--bl2); flex-shrink: 0; }
.di:hover { background: var(--bg3); color: var(--wh); }
.di.adm      { color: var(--gd); }
.di.adm svg  { color: var(--gd); }
.di.exit     { color: var(--rd); }
.di.exit svg { color: var(--rd); }
.dsep { height: 1px; background: var(--ln); margin: 5px 0; }
.dbg { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.dbg.r { background: rgba(244,67,54,.18);  color: var(--rd); }
.dbg.g { background: rgba(41,194,122,.18); color: var(--gr); }

/* Кнопка "Войти" (для гостей) */
.btn-login {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--bl3), var(--bl));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .18s, transform .18s;
}
.btn-login:hover { opacity: .88; transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   ВТОРИЧНАЯ НАВИГАЦИЯ (sub nav)
══════════════════════════════════════════════ */
.snav {
  background: var(--bg1);
  border-bottom: 1px solid var(--ln);
}
.snav-i {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 0;
}
.snav-i::-webkit-scrollbar { display: none; }
.sna {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  white-space: nowrap;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  border-bottom: 2px solid transparent;
  transition: all .18s;
}
.sna svg { width: 14px; height: 14px; }
.sna:hover,
.sna.on,
.sna.active {
  color: var(--bl2);
  border-bottom-color: var(--bl);
}

/* ══════════════════════════════════════════════
   ОБЩИЙ КОНТЕЙНЕР СТРАНИЦ
══════════════════════════════════════════════ */
.page {
  max-width: 1520px;
  margin: 0 auto;
  padding: 30px 28px 40px;
}
/* Главная: три колонки */
.page--home {
  display: grid;
  grid-template-columns: 380px 1fr 315px;
  gap: 26px;
  align-items: start;
}
/* Форум / Новости: две колонки */
.page--2col {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 24px;
  align-items: start;
}
/* Новости: три колонки */
.page--news {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 24px;
  align-items: start;
}
/* Профиль: три колонки */
.page--profile {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 22px;
  align-items: start;
}
/* Топик форума: две колонки */
.page--topic {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ══════════════════════════════════════════════
   КАРТОЧКА (универсальный блок)
══════════════════════════════════════════════ */
.card {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.card.ov  { overflow: visible; }
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(33,150,243,.08); }

/* Заголовок карточки */
.ch {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ln);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ch svg { width: 17px; height: 17px; color: var(--bl2); flex-shrink: 0; }
.ct {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  flex: 1;
}
.cmore { font-size: 12px; color: var(--bl); font-weight: 600; }
.cmore:hover { color: var(--bl2); }

/* ══════════════════════════════════════════════
   БЛОК СЕРВЕРА
══════════════════════════════════════════════ */
.srv {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #131e36, #1b2a4a);
  border: 1px solid rgba(33,150,243,.2);
  position: relative;
}
.srv::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bl4), var(--cy), var(--bl4));
}
.srv-map {
  height: 120px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0d1e3d, #080e1c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.srv-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33,150,243,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,150,243,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.srv-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.srv-map-t {
  font-family: 'Rajdhani', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,.07);
  position: relative;
  z-index: 1;
}
.srv-st {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
  font-size: 11px;
  font-weight: 700;
}
.don {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gr);
  box-shadow: 0 0 8px var(--gr);
  animation: blink 2s infinite;
  flex-shrink: 0;
}
.doff {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}
.srv-b   { padding: 20px; }
.srv-nm  { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.srv-mp  { font-size: 12px; color: var(--mid); margin-bottom: 16px; }
.srv-mp span { color: var(--bl2); font-weight: 700; }

/* Прогресс-бар игроков */
.pbr { margin-bottom: 16px; }
.pbr-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: 11.5px;
  color: var(--mid);
  font-weight: 600;
}
.pbr-hd span { color: var(--bl2); font-weight: 700; font-size: 13px; }
.pbr-track {
  height: 6px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}
.pbr-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bl3), var(--bl2));
  border-radius: 4px;
  transition: width .5s ease;
}

/* Действия сервера */
.srv-acts { display: flex; gap: 8px; }
.srv-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .18s;
}
.srv-btn.primary {
  background: linear-gradient(135deg, var(--bl3), var(--bl));
  color: #fff;
}
.srv-btn.primary:hover { opacity: .88; transform: translateY(-1px); }
.srv-btn.secondary {
  background: var(--bg3);
  border: 1px solid var(--ln2);
  color: var(--mid);
}
.srv-btn.secondary:hover { border-color: var(--bl2); color: var(--bl2); }
.srv-btn svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════
   КНОПКИ (универсальные)
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .18s;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-blue {
  background: linear-gradient(135deg, var(--bl3), var(--bl));
  color: #fff;
}
.btn-blue:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(33,150,243,.4); }
.btn-green {
  background: rgba(41,194,122,.12);
  border: 1px solid rgba(41,194,122,.25);
  color: var(--gr);
}
.btn-green:hover { background: rgba(41,194,122,.22); border-color: rgba(41,194,122,.45); }
.btn-red {
  background: rgba(244,67,54,.12);
  border: 1px solid rgba(244,67,54,.25);
  color: var(--rd);
}
.btn-red:hover { background: rgba(244,67,54,.22); border-color: rgba(244,67,54,.45); }
.btn-gold {
  background: rgba(255,179,0,.12);
  border: 1px solid rgba(255,179,0,.25);
  color: var(--gd);
}
.btn-gold:hover { background: rgba(255,179,0,.22); border-color: rgba(255,179,0,.45); }
.btn-ghost {
  background: var(--bg3);
  border: 1px solid var(--ln2);
  color: var(--mid);
}
.btn-ghost:hover { border-color: var(--bl2); color: var(--bl2); }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 14px; }

/* ══════════════════════════════════════════════
   ТЕГИ / ПИЛЮЛИ
══════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.pill-blue  { background: rgba(33,150,243,.15);  border: 1px solid rgba(33,150,243,.25);  color: var(--bl2); }
.pill-green { background: rgba(41,194,122,.15);  border: 1px solid rgba(41,194,122,.25);  color: var(--gr); }
.pill-red   { background: rgba(244,67,54,.15);   border: 1px solid rgba(244,67,54,.25);   color: var(--rd); }
.pill-gold  { background: rgba(255,179,0,.15);   border: 1px solid rgba(255,179,0,.25);   color: var(--gd); }
.pill-dim   { background: var(--bg3);            border: 1px solid var(--ln2);            color: var(--mid); }

/* ══════════════════════════════════════════════
   АВАТАР (универсальный)
══════════════════════════════════════════════ */
.ava {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255,255,255,.08);
  overflow: hidden;
  flex-shrink: 0;
  font-size: 11px;
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-sq   { border-radius: 10px; }
.ava-xs   { width: 28px; height: 28px; font-size: 10px; }
.ava-sm   { width: 34px; height: 34px; font-size: 11px; }
.ava-md   { width: 42px; height: 42px; font-size: 13px; }
.ava-lg   { width: 56px; height: 56px; font-size: 18px; }
.ava-xl   { width: 72px; height: 72px; font-size: 24px; }
.ava-dot  { position: relative; }
.ava-dot::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gr);
  border: 2px solid var(--bg1);
}

/* ══════════════════════════════════════════════
   ГЕРОЙ-БАННЕР (форум / новости / топик)
══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0a1020, #0d1e40, #0a1020);
  border-bottom: 1px solid rgba(33,150,243,.15);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33,150,243,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,150,243,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bl2), var(--cy), var(--bl2), transparent);
}
.hero-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 36px 28px 32px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--wh);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.hero-title svg { width: 26px; height: 26px; color: var(--bl2); }
.hero-sub { font-size: 13px; color: var(--mid); max-width: 500px; }
.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hstat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(33,150,243,.07);
  border: 1px solid rgba(33,150,243,.15);
  border-radius: 10px;
}
.hstat svg { width: 14px; height: 14px; color: var(--bl2); }
.hstat-v {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--bl2);
  line-height: 1;
}
.hstat-l { font-size: 11px; color: var(--dim); font-weight: 600; margin-left: 2px; }

/* Хлебные крошки */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--dim);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--bl2); font-weight: 600; }
.breadcrumb a:hover { color: var(--wh); }
.breadcrumb svg { width: 12px; height: 12px; }

/* ══════════════════════════════════════════════
   ФОРУМ — ГРУППА РАЗДЕЛОВ
══════════════════════════════════════════════ */
.forum-group { margin-bottom: 22px; }
.fg-header { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.fg-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bl2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fg-label svg { width: 13px; height: 13px; }
.fg-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(33,150,243,.3), transparent); }

/* Строка раздела форума */
.forum-section {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3px;
  transition: border-color .18s;
}
.forum-section:last-child { margin-bottom: 0; }
.forum-section:hover { border-color: rgba(33,150,243,.22); }

.fs-row {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 110px 110px minmax(0,240px);
  align-items: center;
}
.fs-head {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 110px 110px minmax(0,240px);
  align-items: center;
  padding: 0 0 7px;
}
.fs-head-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dim);
}
.fs-head-lbl.center { text-align: center; }
.fs-head-lbl.pad    { padding-left: 18px; }

.fs-ico-col  { padding: 18px 0 18px 18px; display: flex; align-items: center; justify-content: center; }
.fs-main-col { padding: 16px 18px; min-width: 0; overflow: hidden; }
.fs-stat-col { padding: 16px 12px; text-align: center; border-left: 1px solid var(--ln); flex-shrink: 0; }
.fs-last-col { padding: 14px 18px; border-left: 1px solid var(--ln); display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }

/* Иконка раздела */
.fs-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fs-icon svg  { width: 18px; height: 18px; }
.fs-icon.blue  { background: rgba(33,150,243,.1);  color: var(--bl2); }
.fs-icon.green { background: rgba(41,194,122,.1);  color: var(--gr); }
.fs-icon.gold  { background: rgba(255,179,0,.1);   color: var(--gd); }
.fs-icon.red   { background: rgba(244,67,54,.1);   color: var(--rd); }

.fs-name { font-size: 14px; font-weight: 700; color: var(--wh); margin-bottom: 3px; transition: color .15s; }
.forum-section:hover .fs-name { color: var(--bl2); }
.fs-desc { font-size: 12px; color: var(--dim); line-height: 1.5; }

.fs-stat-val { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; color: var(--wh); line-height: 1; }
.fs-stat-lbl { font-size: 10px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

/* Последнее сообщение */
.lp-info  { flex: 1; min-width: 0; overflow: hidden; }
.lp-topic {
  font-size: 12px; font-weight: 700; color: var(--wh);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .15s;
}
.lp-topic:hover { color: var(--bl2); }
.lp-meta { font-size: 10.5px; color: var(--dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-meta span { color: var(--bl2); font-weight: 600; }

/* ══════════════════════════════════════════════
   ФОРУМ — СПИСОК ТОПИКОВ
══════════════════════════════════════════════ */
.topic-list { display: flex; flex-direction: column; gap: 0; }
.topic-row {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 14px;
  margin-bottom: 4px;
  transition: border-color .18s, background .18s;
  cursor: pointer;
}
.topic-row:last-child { margin-bottom: 0; }
.topic-row:hover { border-color: rgba(33,150,243,.25); background: var(--bg2); }
.topic-row.pinned { border-color: rgba(255,179,0,.2); }
.topic-row.hot    { border-color: rgba(244,67,54,.15); }
.topic-inner { display: flex; align-items: center; gap: 0; padding: 14px 18px; }
.topic-icon-wrap { width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.topic-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.topic-icon svg { width: 17px; height: 17px; }
.topic-main { flex: 1; min-width: 0; padding: 0 14px; }
.topic-title { font-size: 14px; font-weight: 700; color: var(--wh); margin-bottom: 5px; transition: color .15s; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topic-row:hover .topic-title { color: var(--bl2); }
.topic-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--dim); }
.topic-meta svg { width: 12px; height: 12px; }
.topic-stats { display: flex; align-items: center; gap: 20px; flex-shrink: 0; padding-left: 14px; border-left: 1px solid var(--ln); }
.tstat { text-align: center; }
.tstat-v { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--wh); line-height: 1; }
.tstat-l { font-size: 10px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }

/* ══════════════════════════════════════════════
   ФОРУМ — СТРАНИЦА ТОПИКА (сообщения)
══════════════════════════════════════════════ */
.post {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color .18s;
}
.post:last-child { margin-bottom: 0; }
.post.op  { border-color: rgba(33,150,243,.2); }
.post-hd  {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ln);
  background: var(--bg2);
}
.post-author { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.post-author-name { font-size: 13px; font-weight: 700; color: var(--wh); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); margin-top: 2px; }
.post-meta svg { width: 11px; height: 11px; }
.post-num { font-size: 11px; color: var(--dim); font-weight: 600; margin-left: auto; }
.post-body  { padding: 18px 22px; font-size: 14px; line-height: 1.7; color: var(--wh); }
.post-body p { margin-bottom: 12px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body a { color: var(--bl2); }
.post-body a:hover { text-decoration: underline; }
.post-body blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--bg2);
  border-left: 3px solid var(--bl);
  border-radius: 0 8px 8px 0;
  color: var(--mid);
  font-size: 13px;
}
.post-ft {
  padding: 12px 18px;
  border-top: 1px solid var(--ln);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-react {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--ln2);
  color: var(--mid);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.post-react:hover { border-color: var(--bl2); color: var(--bl2); }
.post-react svg { width: 13px; height: 13px; }
.post-react.liked { background: rgba(33,150,243,.1); border-color: rgba(33,150,243,.3); color: var(--bl2); }

/* Форма ответа */
.reply-box {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 14px;
}
.reply-box .ch { padding: 14px 18px; }
.reply-editor { padding: 16px 18px; }
.reply-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--ln);
  flex-wrap: wrap;
}
.rtb { width: 28px; height: 28px; border-radius: 6px; background: none; border: 1px solid transparent; color: var(--mid); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.rtb:hover { background: var(--bg3); border-color: var(--ln2); color: var(--wh); }
.rtb svg { width: 13px; height: 13px; }
.reply-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg0);
  border: 1px solid var(--ln2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--wh);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color .18s;
  margin-top: 12px;
}
.reply-textarea:focus { outline: none; border-color: var(--bl); }
.reply-textarea::placeholder { color: var(--dim); }
.reply-ft { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ══════════════════════════════════════════════
   НОВОСТИ
══════════════════════════════════════════════ */
.news-grid { display: flex; flex-direction: column; gap: 12px; }

/* Большая карточка новости */
.news-feat {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .18s, transform .2s;
  cursor: pointer;
}
.news-feat:hover { border-color: rgba(33,150,243,.25); transform: translateY(-2px); }
.news-feat-img {
  height: 180px;
  background: linear-gradient(135deg, #0d1e3d, #1a3060);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-feat-img img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.news-feat-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,27,38,.9), transparent 50%); }
.news-feat-cat {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
}
.news-feat-body { padding: 16px 20px; }
.news-feat-title { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--wh); margin-bottom: 8px; line-height: 1.3; }
.news-feat:hover .news-feat-title { color: var(--bl2); }
.news-feat-desc { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-feat-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--dim); flex-wrap: wrap; }
.news-feat-meta svg { width: 12px; height: 12px; }

/* Компактная карточка новости */
.news-item {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  gap: 0;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.news-item:hover { border-color: rgba(33,150,243,.22); background: var(--bg2); }
.news-item-thumb {
  width: 110px;
  flex-shrink: 0;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.news-item-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: opacity .2s; }
.news-item:hover .news-item-thumb img { opacity: .85; }
.news-item-body { padding: 14px 16px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.news-item-title { font-size: 13.5px; font-weight: 700; color: var(--wh); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.news-item:hover .news-item-title { color: var(--bl2); }
.news-item-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--dim); }
.news-item-meta svg { width: 11px; height: 11px; }

/* Категория новостей */
.cat-list { padding: 8px; }
.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  color: var(--mid);
  font-size: 13px;
  font-weight: 600;
}
.cat-item:hover { background: var(--bg2); color: var(--wh); }
.cat-item.active { background: rgba(33,150,243,.1); color: var(--bl2); }
.cat-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.cat-count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: var(--bg3); }
.cat-item.active .cat-count { background: rgba(33,150,243,.2); color: var(--bl2); }

/* Облако тегов */
.tag-cloud { padding: 12px 16px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11.5px; font-weight: 600;
  color: var(--mid);
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--ln2);
  background: var(--bg0);
  cursor: pointer;
  transition: all .15s;
}
.tag:hover { color: var(--bl2); border-color: var(--bl); background: rgba(33,150,243,.08); }

/* ══════════════════════════════════════════════
   ПРОФИЛЬ
══════════════════════════════════════════════ */
.prof-hero {
  background: linear-gradient(145deg, #0d1628, #1a2d54, #0d1628);
  border: 1px solid rgba(33,150,243,.2);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp .35s ease both;
}
.prof-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(33,150,243,.15), transparent 55%);
}
.prof-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bl2), var(--cy), var(--bl2), transparent);
}
.prof-banner {
  height: 90px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0a1530, #1a3060, #0a1530);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prof-banner-txt {
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 6px;
  color: rgba(255,255,255,.04);
  position: relative;
  z-index: 1;
  user-select: none;
}
.prof-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33,150,243,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,150,243,.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.prof-main { padding: 0 22px 22px; position: relative; }
.prof-ava-wrap {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
}
.prof-ava {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1565c0, #0288d1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 26px;
  color: #fff;
  border: 3px solid var(--bg1);
  box-shadow: 0 0 0 2px var(--bl), 0 8px 24px rgba(0,0,0,.5);
  flex-shrink: 0;
  overflow: hidden;
}
.prof-ava img { width: 100%; height: 100%; object-fit: cover; }
.prof-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--wh);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prof-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,179,0,.2), rgba(255,179,0,.1));
  border: 1px solid rgba(255,179,0,.35);
  color: var(--gd);
  letter-spacing: .5px;
}
.prof-role-badge svg { width: 11px; height: 11px; }
.prof-meta-row { font-size: 12px; color: var(--mid); display: flex; align-items: center; gap: 12px; margin-top: 3px; flex-wrap: wrap; }
.prof-online { display: flex; align-items: center; gap: 5px; color: var(--gr); font-weight: 700; }
.prof-online-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gr);
  box-shadow: 0 0 8px var(--gr);
  animation: blink 2s infinite;
  flex-shrink: 0;
}

/* Строка инфо-таблицы профиля */
.info-row { display: flex; align-items: flex-start; padding: 11px 20px; border-bottom: 1px solid var(--ln); gap: 12px; }
.info-row:last-child { border-bottom: none; }
.info-lbl { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); font-weight: 600; width: 140px; flex-shrink: 0; padding-top: 1px; }
.info-lbl svg { width: 12px; height: 12px; flex-shrink: 0; }
.info-val { font-size: 13px; color: var(--wh); font-weight: 600; flex: 1; word-break: break-word; }
.info-link { display: inline-flex; align-items: center; gap: 5px; color: var(--bl2); font-size: 13px; font-weight: 600; transition: color .15s; }
.info-link:hover { color: var(--wh); }
.info-link svg { width: 11px; height: 11px; }

/* Стат-сетка профиля */
.prof-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ln); }
.pstat { background: var(--bg1); padding: 16px; text-align: center; }
.pstat-v { font-family: 'Rajdhani', sans-serif; font-size: 24px; font-weight: 700; color: var(--wh); line-height: 1; }
.pstat-l { font-size: 11px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 5px; }
.pstat-v.blue  { color: var(--bl2); }
.pstat-v.green { color: var(--gr); }
.pstat-v.gold  { color: var(--gd); }
.pstat-v.red   { color: var(--rd); }

/* Записи форума в профиле */
.fpost { padding: 13px 20px; border-bottom: 1px solid var(--ln); cursor: pointer; transition: background .15s, padding-left .15s; }
.fpost:last-child { border-bottom: none; }
.fpost:hover { background: var(--bg2); padding-left: 24px; }
.fpost-title { font-size: 13px; font-weight: 700; color: var(--wh); margin-bottom: 4px; transition: color .15s; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fpost:hover .fpost-title { color: var(--bl2); }
.fpost-meta { font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.fpost-meta svg { width: 11px; height: 11px; }

/* ══════════════════════════════════════════════
   САЙДБАР (правый / левый)
══════════════════════════════════════════════ */
.sidebar, .lsidebar { display: flex; flex-direction: column; gap: 18px; }
.scard {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 16px;
  overflow: hidden;
}
.sch { padding: 14px 18px; border-bottom: 1px solid var(--ln); display: flex; align-items: center; gap: 9px; }
.sch svg { width: 15px; height: 15px; color: var(--bl2); flex-shrink: 0; }
.sct { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .4px; flex: 1; }

/* Онлайн-пользователи */
.su-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px,1fr)); gap: 8px; padding: 12px 16px 14px; }
.su-ava {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; color: #fff;
  border: 2px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .18s, border-color .18s;
  position: relative;
  overflow: hidden;
}
.su-ava:hover { transform: scale(1.15); border-color: var(--bl); }
.su-ava img { width: 100%; height: 100%; object-fit: cover; }
.su-dot { position: absolute; bottom: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gr); border: 2px solid var(--bg1); }

/* Последние темы (sidebar) */
.rt-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ln);
  cursor: pointer;
  transition: background .15s;
}
.rt-item:last-child { border-bottom: none; }
.rt-item:hover { background: var(--bg2); }
.rt-info { flex: 1; min-width: 0; }
.rt-title { font-size: 12px; font-weight: 700; color: var(--wh); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt-meta  { font-size: 10.5px; color: var(--dim); margin-top: 3px; }

/* Пара статистик */
.stat-pair { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--ln); }
.stat-pair:last-child { border-bottom: none; }
.stat-pair-lbl { font-size: 12px; color: var(--mid); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.stat-pair-lbl svg { width: 13px; height: 13px; color: var(--bl2); }
.stat-pair-val { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; color: var(--wh); }

/* ══════════════════════════════════════════════
   БЛОК ТОП-ИГРОКОВ / РЕЙТИНГ
══════════════════════════════════════════════ */
.top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ln);
  transition: background .15s;
  cursor: pointer;
}
.top-row:last-child { border-bottom: none; }
.top-row:hover { background: var(--bg2); }
.top-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  color: var(--dim);
}
.top-num.gold  { color: var(--gd); }
.top-num.silver { color: #b0bec5; }
.top-num.bronze { color: #a1887f; }
.top-info { flex: 1; min-width: 0; }
.top-name { font-size: 13px; font-weight: 700; color: var(--wh); }
.top-sub  { font-size: 11px; color: var(--dim); margin-top: 1px; }
.top-val  { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; color: var(--bl2); }

/* ══════════════════════════════════════════════
   ПАНЕЛЬ АДМИНИСТРАТОРА (в профиле)
══════════════════════════════════════════════ */
.admin-panel { border-radius: 16px; overflow: hidden; background: var(--bg2); border: 1px solid rgba(255,179,0,.2); }
.admin-panel-hdr {
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(255,179,0,.08), rgba(255,179,0,.03));
  border-bottom: 1px solid rgba(255,179,0,.15);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-panel-hdr svg { width: 15px; height: 15px; color: var(--gd); }
.admin-panel-title { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .4px; color: var(--gd); flex: 1; }
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,179,0,.08); }
.admin-stat { background: var(--bg1); padding: 12px 16px; text-align: center; }
.admin-stat-val { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; line-height: 1; }
.admin-stat-lbl { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
.admin-stat-lbl svg { width: 10px; height: 10px; }
.admin-actions { padding: 10px; }
.aact-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  transition: all .15s;
  margin-bottom: 5px;
  text-align: left;
}
.aact-btn:last-child { margin-bottom: 0; }
.aact-btn.green { background: rgba(41,194,122,.1);  border: 1px solid rgba(41,194,122,.2);  color: var(--gr); }
.aact-btn.green:hover { background: rgba(41,194,122,.2); border-color: rgba(41,194,122,.4); }
.aact-btn.red   { background: rgba(244,67,54,.1);   border: 1px solid rgba(244,67,54,.2);   color: var(--rd); }
.aact-btn.red:hover   { background: rgba(244,67,54,.2);  border-color: rgba(244,67,54,.4); }
.aact-btn.blue  { background: rgba(33,150,243,.1);  border: 1px solid rgba(33,150,243,.2);  color: var(--bl2); }
.aact-btn.blue:hover  { background: rgba(33,150,243,.2); border-color: rgba(33,150,243,.35); }
.aact-btn.mid   { background: rgba(139,155,191,.08); border: 1px solid var(--ln2); color: var(--mid); }
.aact-btn.mid:hover   { background: var(--bg3); color: var(--wh); }
.aact-btn svg   { width: 14px; height: 14px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   ПАГИНАЦИЯ
══════════════════════════════════════════════ */
.pag {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  margin-top: 24px;
}
.pag-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--ln2);
  color: var(--mid);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.pag-btn:hover { border-color: var(--bl2); color: var(--bl2); }
.pag-btn.on, .pag-btn.active { background: var(--bl3); border-color: var(--bl); color: #fff; }
.pag-btn.disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.pag-dots { padding: 0 4px; color: var(--dim); font-size: 13px; }

/* ══════════════════════════════════════════════
   SEO-БЛОК (раскрывающийся)
══════════════════════════════════════════════ */
.seo-block { max-width: 1520px; margin: 0 auto 40px; padding: 0 28px; }
.seo-card { background: var(--bg1); border: 1px solid var(--ln2); border-radius: 18px; overflow: hidden; }
.seo-hdr { padding: 20px 24px; border-bottom: 1px solid var(--ln); display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; transition: background .15s; }
.seo-hdr:hover { background: var(--bg2); }
.seo-hdr svg.ico { width: 18px; height: 18px; color: var(--bl2); flex-shrink: 0; }
.seo-hdr-title { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700; flex: 1; }
.seo-arrow { width: 16px; height: 16px; color: var(--dim); transition: transform .25s; flex-shrink: 0; }
.seo-hdr.open .seo-arrow { transform: rotate(180deg); }
.seo-body { display: none; padding: 24px; }
.seo-body.open { display: block; }
.seo-body p { font-size: 13px; color: var(--mid); line-height: 1.8; margin-bottom: 12px; }
.seo-body p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   УВЕДОМЛЕНИЯ / ТОСТЫ
══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg0);
  border: 1px solid var(--bl);
  color: var(--wh);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 11px;
  z-index: 9999;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  white-space: nowrap;
  transition: opacity .4s;
}
.toast.success { border-color: var(--gr); }
.toast.error   { border-color: var(--rd); }
.toast.warn    { border-color: var(--gd); }

/* ══════════════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА
══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.modal {
  width: 500px;
  max-width: 95vw;
  max-height: 90vh;
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
}
.modal-hdr {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ln);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.modal-hdr svg { width: 18px; height: 18px; color: var(--bl2); }
.modal-title { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; flex: 1; }
.modal-close {
  background: none; border: none; color: var(--mid);
  cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px;
  border-radius: 6px; transition: all .15s;
}
.modal-close:hover { background: rgba(255,255,255,.07); color: var(--wh); }
.modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.modal-ft { padding: 16px 22px; border-top: 1px solid var(--ln); display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   ФОРМЫ
══════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--mid); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .4px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg0);
  border: 1px solid var(--ln2);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--wh);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  transition: border-color .18s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--bl);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--dim); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { min-height: 100px; resize: vertical; line-height: 1.6; }

/* ══════════════════════════════════════════════
   ТАБЛИЦЫ
══════════════════════════════════════════════ */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  background: var(--bg2);
  border-bottom: 1px solid var(--ln);
}
.tbl td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--ln); transition: background .12s; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: var(--bg2); }

/* ══════════════════════════════════════════════
   ОНЛАЙН-СТАТУС / ИНДИКАТОР
══════════════════════════════════════════════ */
.status-online  { color: var(--gr); display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.status-offline { color: var(--dim); display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.status-online::before  { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gr); box-shadow: 0 0 8px var(--gr); animation: blink 2s infinite; }
.status-offline::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }

/* ══════════════════════════════════════════════
   ПОИСК
══════════════════════════════════════════════ */
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--dim);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--ln2);
  border-radius: 10px;
  padding: 9px 14px 9px 38px;
  color: var(--wh);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  transition: border-color .18s, background .18s;
}
.search-input:focus { outline: none; border-color: var(--bl); background: var(--bg1); }
.search-input::placeholder { color: var(--dim); }

/* ══════════════════════════════════════════════
   EMPTY-STATE
══════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--dim);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 14px; opacity: .4; }
.empty-state-title { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--mid); margin-bottom: 6px; }
.empty-state-sub   { font-size: 13px; }

/* ══════════════════════════════════════════════
   СПИННЕР ЗАГРУЗКИ
══════════════════════════════════════════════ */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--ln2);
  border-top-color: var(--bl2);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ══════════════════════════════════════════════
   УТИЛИТЫ
══════════════════════════════════════════════ */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-blue   { color: var(--bl2) !important; }
.text-green  { color: var(--gr) !important; }
.text-red    { color: var(--rd) !important; }
.text-gold   { color: var(--gd) !important; }
.text-mid    { color: var(--mid) !important; }
.text-dim    { color: var(--dim) !important; }
.text-white  { color: var(--wh) !important; }
.font-title  { font-family: 'Rajdhani', sans-serif !important; }
.font-bold   { font-weight: 700 !important; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.animate-fade { animation: fadeInUp .35s ease both; }

/* ══════════════════════════════════════════════
   АДАПТИВ
══════════════════════════════════════════════ */
@media (max-width: 1300px) {
  .page--home    { grid-template-columns: 340px 1fr 280px; }
  .page--profile { grid-template-columns: 260px 1fr 260px; }
}

@media (max-width: 1100px) {
  .page--home    { grid-template-columns: 1fr 280px; }
  .page--home > :nth-child(1) { grid-column: 1 / -1; }
  .page--news    { grid-template-columns: 1fr 260px; }
  .page--news > .lsidebar { display: none; }
  .page--profile { grid-template-columns: 1fr 280px; }
  .page--profile > :nth-child(1) { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hdr-i { padding: 0 16px; }
  .mnav { display: none; }
  .page, .page--home, .page--2col, .page--news, .page--profile, .page--topic {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .fs-row, .fs-head { grid-template-columns: 44px 1fr; }
  .fs-stat-col, .fs-last-col, .fs-head-lbl:nth-child(3),
  .fs-head-lbl:nth-child(4), .fs-head-lbl:nth-child(5) { display: none; }
  .sidebar, .lsidebar { display: none; }
  .hero-inner { padding: 24px 16px; }
  .hero-title { font-size: 22px; }
}

@media (max-width: 520px) {
  .bal { display: none; }
  .pfnm, .pfsub { display: none; }
  .pfbtn { padding: 5px; }
}
