/* FameMonitoring — каталог игровых серверов */
:root {
  --bg: #0b0e14;
  --panel: #12161f;
  --panel-2: #171c28;
  --border: #232a3a;
  --border-soft: #1b2231;
  --text: #e8ebf2;
  --muted: #8b93a7;
  --muted-2: #646c80;
  --input-bg: #0d111a;
  --green: #2fd06f;
  --green-dim: rgba(47, 208, 111, .14);
  --red: #f1464d;
  --red-dim: rgba(241, 70, 77, .14);
  --amber: #f5a623;
  --amber-dim: rgba(245, 166, 35, .15);
  --accent: #34d9b2;
  --accent-2: #2bb3e0;
  --accent-grad: linear-gradient(135deg, #34d9b2, #2bb3e0);
  --primary-text: #05261e;
  --nav-bg: rgba(11, 14, 20, .85);
  --scrollbar-thumb: #262e40;
  --code-bg: #171c28;
  --btn-hover-border: #34405c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

[data-theme="light"] {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-2: #f0f3f8;
  --border: #dbe2eb;
  --border-soft: #e7edf4;
  --text: #0f172a;
  --muted: #627288;
  --muted-2: #8f9ea9;
  --input-bg: #ffffff;
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, .14);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, .12);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, .14);
  --accent: #059669;
  --accent-2: #0284c7;
  --accent-grad: linear-gradient(135deg, #059669, #0284c7);
  --primary-text: #ffffff;
  --nav-bg: rgba(255, 255, 255, .88);
  --scrollbar-thumb: #cbd5e1;
  --code-bg: #edf2f7;
  --btn-hover-border: #94a3b8;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
[data-theme="light"] html, html[data-theme="light"] { color-scheme: light; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(52, 217, 178, .3); }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.wrap { max-width: 1150px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ---------- шапка ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.topnav .inner { display: flex; align-items: center; gap: 16px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.brand .logo-dot {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(52, 217, 178, .35);
  color: var(--primary-text);
}
.brand .logo-dot svg { width: 18px; height: 18px; }
.topnav .spacer { flex: 1; }
.topnav a.navlink { color: var(--muted); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.topnav a.navlink:hover { color: var(--text); }
.topnav a.navlink svg { width: 16px; height: 16px; }
.topnav a.navlink .cnt { background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; font-size: 11.5px; padding: 1px 8px; color: var(--muted); }

/* переключатель темы */
.theme-toggle {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--panel);
}
.theme-toggle svg { width: 17px; height: 17px; }

/* глобальный поиск */
.gsearch { position: relative; }
.gsearch input {
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 13px; font-size: 13.5px; outline: none; width: 210px;
  transition: border-color .15s;
}
.gsearch input:focus { border-color: var(--accent); width: 260px; }
.gsearch-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 330px; z-index: 90;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
.gsearch-drop.open { display: block; }
.gsearch-item { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
.gsearch-item:last-child { border-bottom: none; }
.gsearch-item:hover { background: var(--panel-2); }
.gsearch-item .n { flex: 1; color: var(--text); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsearch-item .mono { font-size: 11.5px; }
@media (max-width: 860px) { .gsearch { display: none; } }

/* ---------- кнопки/поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .16s; white-space: nowrap;
}
.btn:hover { border-color: var(--btn-hover-border); background: var(--panel); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent-grad); border: none; color: var(--primary-text); box-shadow: 0 4px 16px rgba(52, 217, 178, .3); }
.btn-primary:hover { filter: brightness(1.08); background: var(--accent-grad); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff !important; }
.btn-danger:hover { filter: brightness(1.08); background: var(--red); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--panel-2); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 13px; font-size: 14px; font-family: inherit;
  outline: none; width: 100%; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52, 217, 178, .15);
}
.field .hint { font-size: 12px; color: var(--muted-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error {
  display: none; background: var(--red-dim); border: 1px solid rgba(241, 70, 77, .4);
  color: var(--red); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.form-error.show { display: block; }
.test-result { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; display: none; }
.test-result.up { display: block; background: var(--green-dim); border: 1px solid rgba(47, 208, 111, .35); color: var(--green); }
.test-result.down { display: block; background: var(--red-dim); border: 1px solid rgba(241, 70, 77, .35); color: var(--red); }

/* ---------- главная ---------- */
.hero { text-align: center; padding: 56px 0 30px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 15.5px; }

.game-select-bar { display: flex; justify-content: center; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap; }
.game-select {
  min-width: 260px; background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14.5px; outline: none; cursor: pointer;
}

.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 40px; }
.counter { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.counter .k-top { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.counter .live { color: var(--green); font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.counter .v { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.counter .v.green { color: var(--green); }
.counter .k { color: var(--muted-2); font-size: 12px; margin-top: 3px; }

/* карточки игр */
.game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 16px; margin-bottom: 50px;
}
.gcard {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4.4;
  background: var(--panel-2);
  border: 1px solid var(--border);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.gcard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); border-color: var(--accent); }
.gcard-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard-body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(10,13,19,0) 32%, rgba(10,13,19,.88) 78%);
  padding: 12px;
}
.gcard-name { color: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.25; text-shadow: 0 2px 6px rgba(0,0,0,.7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.gcard-stats { display: flex; gap: 12px; margin: 7px 0 9px; }
.gcard-stats .gs { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gcard-stats .gs svg { width: 13px; height: 13px; opacity: .8; }
.gcard-btn {
  display: block; text-align: center; color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  background: rgba(12, 16, 24, .82); border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 8px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, border-color .15s;
}
.gcard:hover .gcard-btn { background: rgba(52, 217, 178, .9); border-color: transparent; color: #05261e; }
.gcard-cta { display: grid; place-items: center; }
.gcard-cta-inner { text-align: center; padding: 16px; color: var(--muted); }
.gcard-cta-inner .big { font-size: 34px; margin-bottom: 8px; }
.gcard-cta-inner h3 { color: var(--text); font-size: 15px; margin-bottom: 6px; }
.gcard-cta-inner p { font-size: 12.5px; margin-bottom: 14px; }

.section-title { font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 16px; }

.games-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.games-table thead th {
  text-align: left; padding: 12px 16px; color: var(--muted-2); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 1px solid var(--border); font-weight: 600;
}
.games-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); }
.games-table tbody tr:last-child td { border-bottom: none; }
.games-table tbody tr { transition: background .12s; }
.games-table tbody tr:hover { background: var(--panel-2); }
.games-table .gname { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.gcover {
  width: 78px; height: 52px; border-radius: 9px; display: block; flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
  object-fit: cover;
}
.gcover.big { width: 110px; height: 73px; border-radius: 12px; }
.num { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.num b { color: var(--green); font-weight: 650; }
.mini-btn {
  padding: 6px 14px; font-size: 13px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 600;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 50px; }
.adv { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.adv .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(52, 217, 178, .12); color: var(--accent); margin-bottom: 13px; }
.adv .ic svg { width: 20px; height: 20px; }
.adv h3 { font-size: 15.5px; margin-bottom: 6px; }
.adv p { color: var(--muted); font-size: 13.5px; }

.faq { margin: 0 0 60px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 9px; }
.faq details[open] { border-color: #2c3document; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 18px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- каталог серверов ---------- */
.page-head { padding: 34px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 200px; }
.toolbar input, .toolbar select {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 13px; font-size: 14px; outline: none; width: 100%;
}
.toolbar select { width: auto; cursor: pointer; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  padding: 5px 13px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); color: var(--muted); font-size: 12.5px; cursor: pointer; font-weight: 600;
}
.chip:hover { color: var(--text); border-color: var(--btn-hover-border); }
.chip.active { background: rgba(52, 217, 178, .13); border-color: rgba(52, 217, 178, .5); color: var(--accent); }

.srv-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.srv-table thead th {
  text-align: left; padding: 11px 14px; color: var(--muted-2); font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 1px solid var(--border); font-weight: 600; white-space: nowrap;
}
.srv-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.srv-table tbody tr:hover { background: var(--panel-2); }
.srv-table tbody tr:last-child td { border-bottom: none; }
.rank { color: var(--muted-2); font-size: 13px; width: 34px; font-variant-numeric: tabular-nums; }
.srv-name { font-weight: 650; font-size: 14.5px; color: var(--text); display: inline-block; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.srv-name:hover { color: var(--accent); }
.srv-tags { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.srv-tags .t { font-size: 10.5px; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border-soft); color: var(--muted); }
.mapcell { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.players { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.players .max { color: var(--muted-2); font-weight: 500; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.dot.up { background: var(--green); box-shadow: 0 0 7px rgba(47, 208, 111, .6); }
.dot.down { background: var(--red); }
.ip-cell { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 4px 8px; border-radius: 7px; border: 1px dashed transparent; }
.ip-cell:hover { border-color: var(--border); background: var(--panel-2); }
.ip-cell svg { width: 13px; height: 13px; opacity: .5; }
.vote-cell { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; }
.vote-cell svg { width: 13px; height: 13px; }

.avatar-big {
  width: 68px; height: 68px; border-radius: 20px; flex-shrink: 0;
  background: var(--accent-grad); color: #05261e;
  display: grid; place-items: center; font-weight: 800; font-size: 26px; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(52, 217, 178, .3);
}

.pagination { display: flex; gap: 8px; justify-content: center; margin: 22px 0 40px; }.pagination button {
  min-width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--panel); color: var(--muted); cursor: pointer; font-weight: 600;
}
.pagination button.cur { background: var(--accent-grad); color: #05261e; border: none; }
.pagination button:disabled { opacity: .4; cursor: default; }

/* ---------- страница сервера ---------- */
.server-head { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 30px; }
.server-head .top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.server-head h1 { font-size: 24px; letter-spacing: -.02em; flex: 1; min-width: 240px; }
.server-head .meta-line { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 14px; align-items: center; }
.server-head .actions { display: flex; gap: 9px; flex-wrap: wrap; }
.big-players { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-align: right; }
.big-players .of { color: var(--muted-2); font-size: 22px; font-weight: 600; }
.big-players .lbl { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 5px; }

.chart-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.chart-box h3 { font-size: 15px; margin-bottom: 3px; }
.chart-box .csub { color: var(--muted-2); font-size: 12.5px; margin-bottom: 14px; }
.chart-box svg { width: 100%; height: 200px; display: block; }
.desc-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 40px; color: var(--muted); font-size: 14.5px; white-space: pre-wrap; }

/* ---------- авторизация и формы ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 34px 32px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; margin-bottom: 10px; }
.auth-card h1 { font-size: 21px; text-align: center; margin-bottom: 24px; }
.auth-card .btn-primary { width: 100%; padding: 12px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.panel-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; max-width: 720px; }
.panel-card h1 { font-size: 22px; margin-bottom: 6px; }
.panel-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- статичные страницы ---------- */
.static-page { padding: 36px 0 60px; max-width: 820px; }
.static-page h1 { font-size: 26px; margin-bottom: 18px; }
.static-page h2 { font-size: 18px; margin: 26px 0 10px; }
.static-page p, .static-page li { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.static-page code { background: var(--panel-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.static-page pre { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; margin: 12px 0 20px; }
.static-page pre code { background: none; border: none; padding: 0; color: var(--text); }

/* ---------- модалка ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(5, 7, 11, .8); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 8vh 16px 16px; overflow-y: auto;
}
.modal {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 520px; box-shadow: var(--shadow); animation: rise .18s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.modal-head h2 { font-size: 17px; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 18px 24px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 24px; }

/* ---------- управление сервером ---------- */
.manage-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.manage-card .mc-name { font-weight: 700; font-size: 16px; margin-bottom: 7px; max-width: 520px; }
.manage-card .mc-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.online-pill {
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 16px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
  font-size: 14px; font-weight: 600; transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.active { border-color: var(--accent); color: var(--accent); background: var(--green-dim); }
.manage-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 50px; }
.mf-row { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.mf-row .field { margin-bottom: 0; }
.mf-hint { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 15px; }
.mf-hint b { font-size: 13.5px; display: block; margin-bottom: 4px; }
.mf-hint p { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0; }
.mf-hint { margin-top: 0; }
input.disabled, textarea.disabled { opacity: .6; cursor: not-allowed; }
.key-block { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.key-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* опасная зона (удаление сервера) */
.danger-zone {
  margin-top: 36px;
  border: 1px solid rgba(241, 70, 77, .35);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--red-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.danger-zone .dz-title { font-weight: 700; color: var(--red); font-size: 15.5px; margin-bottom: 4px; }
.danger-zone .dz-desc { color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 580px; }

/* ---------- пусто / ошибка ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .big { font-size: 42px; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; font-size: 18px; }

/* ---------- футер ---------- */
footer { border-top: 1px solid var(--border-soft); margin-top: 40px; padding: 26px 0 34px; }
footer .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .fbrand { color: var(--muted); font-size: 13.5px; max-width: 320px; }
footer .fcol { display: flex; flex-direction: column; gap: 7px; }
footer .fcol b { font-size: 13px; color: var(--text); }
footer .fcol a { color: var(--muted); font-size: 13.5px; }
footer .fcol a:hover { color: var(--accent); }
footer .copy { color: var(--muted-2); font-size: 12.5px; margin-top: 20px; }

/* ---------- тост ---------- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 22px; border-radius: 12px; font-size: 14px; z-index: 200;
  opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: rgba(241, 70, 77, .5); color: var(--red); }

@media (max-width: 760px) {
  .counters { grid-template-columns: 1fr; }
  .big-players { text-align: left; }
  .srv-table .hide-sm { display: none; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- социальный вход (аккуратные иконки внизу) ---------- */
.social-divider {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 16px;
  color: var(--muted-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em;
}
.social-divider::before, .social-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.social-icons-row {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 14px;
}
.social-icon-btn {
  width: 50px; height: 50px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border);
  cursor: pointer; transition: all .18s ease; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.social-icon-btn svg { width: 22px; height: 22px; display: block; }
.btn-steam-icon { background: #171a21; border-color: #2a475e; color: #c7d5e0; }
.btn-steam-icon:hover {
  background: #2a475e; color: #66c0f4; border-color: #66c0f4;
  transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 192, 244, .28);
}
.btn-google-icon { background: var(--panel-2); border-color: var(--border); }
.btn-google-icon:hover {
  border-color: #4285f4; background: rgba(66, 133, 244, .1);
  transform: translateY(-2px); box-shadow: 0 5px 15px rgba(66, 133, 244, .25);
}
.btn-vk-icon { background: #0077ff; border-color: #0077ff; color: #fff; }
.btn-vk-icon:hover {
  background: #0066dc;
  transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 119, 255, .35);
}

/* ---------- баннер объявления ---------- */
.site-banner { border-bottom: 1px solid var(--border); }
.site-announcement-bar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  transition: all .2s ease;
}
.site-announcement-bar.banner-info, .banner-info { background: rgba(59, 130, 246, .12); color: #93c5fd; border-color: rgba(59, 130, 246, .28); }
.site-announcement-bar.banner-warning, .banner-warning { background: rgba(245, 158, 11, .14); color: #fde047; border-color: rgba(245, 158, 11, .32); }
.site-announcement-bar.banner-success, .banner-success { background: rgba(16, 185, 129, .12); color: #6ee7b7; border-color: rgba(16, 185, 129, .28); }

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.announcement-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);
  line-height: 1.4;
}
.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pill-info { background: rgba(59, 130, 246, .22); color: #60a5fa; border: 1px solid rgba(59, 130, 246, .4); }
.pill-warning { background: rgba(245, 158, 11, .22); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .4); }
.pill-success { background: rgba(16, 185, 129, .22); color: #34d399; border: 1px solid rgba(16, 185, 129, .4); }
.announcement-close-btn {
  background: none;
  border: none;
  font-size: 19px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 6px;
  transition: all .15s;
}
.announcement-close-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--text);
}

/* ---------- отзывы и рейтинг ---------- */
.reviews-section { margin-top: 34px; margin-bottom: 40px; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.rating-big-box {
  display: flex; align-items: center; gap: 16px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px;
}
.rating-num { font-size: 38px; font-weight: 800; color: #fbbf24; line-height: 1; font-variant-numeric: tabular-nums; }
.rating-stars { display: inline-flex; gap: 3px; color: #fbbf24; font-size: 17px; }
.star-pick { display: inline-flex; gap: 6px; cursor: pointer; font-size: 26px; color: var(--muted-2); user-select: none; }
.star-pick .star { transition: color .15s; }
.star-pick .star.active { color: #fbbf24; }
.review-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 12px;
}
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-author { font-weight: 650; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.review-date { color: var(--muted-2); font-size: 12px; }
.review-text { color: var(--text); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.review-delete { background: none; border: none; color: var(--red); font-size: 12px; cursor: pointer; padding: 2px 6px; }
.review-form {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 24px;
}

/* ---------- виджет и бейдж ---------- */
.widget-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin: 24px 0;
}
.widget-preview { display: flex; align-items: center; gap: 16px; margin: 14px 0; flex-wrap: wrap; }
.widget-code {
  position: relative; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; font-family: var(--mono);
  font-size: 12px; word-break: break-all; margin-bottom: 10px; color: var(--text);
}
.widget-copy-btn {
  position: absolute; right: 8px; top: 8px; padding: 4px 10px; font-size: 11.5px;
}

/* ---------- админ-панель ---------- */
.admin-badge {
  display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-admin { background: rgba(52, 217, 178, .15); color: var(--accent); border: 1px solid rgba(52, 217, 178, .3); }
.badge-user { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
.badge-banned { background: rgba(241, 70, 77, .15); color: var(--red); border: 1px solid rgba(241, 70, 77, .3); }
.badge-pinned { background: rgba(245, 158, 11, .15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .3); }
.badge-blocked { background: rgba(241, 70, 77, .15); color: var(--red); border: 1px solid rgba(241, 70, 77, .3); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.admin-stat .val { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.admin-stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

