/* ============================================================
   Дизайн-система в стиле top-minecrafter.com (но лучше)
   Тёмная тема, стеклянные карточки, Tailwind-подобные токены
   ============================================================ */

:root {
  color-scheme: dark;
  --bg-page: #161718;
  --bg-surface: #202122;
  --bg-card: #202122;
  --bg-muted: #2a2b2d;
  --bg-muted-strong: #343537;
  --bg-dark: #111212;
  --text-body: #ededed;
  --text-secondary: #a6a6a6;
  --text-muted: #7d7d7d;
  --text-placeholder: #5e5e5e;
  --border-neutral: rgba(255, 255, 255, .08);
  --border-neutral-hover: rgba(255, 255, 255, .14);
  --border-strong: rgba(255, 255, 255, .22);
  --text-link: #55b6f6;
  --text-link-hover: #89caf5;
  --card-glass-bg: rgba(30, 30, 32, .82);
  --card-glass-border: rgba(255, 255, 255, .06);
  --bg-floating: rgba(36, 36, 38, .92);

  --green: #3ddc84;
  --green-strong: #2bab4d;
  --green-subtle: rgba(61, 220, 132, .12);
  --green-border: rgba(61, 220, 132, .3);
  --red: #ff5c6c;
  --gold: #eeb32b;
  --star: #eeb32b;

  --primary: #55b6f6;
  --primary-soft: #7ec3f7;
  --primary-subtle: rgba(85, 182, 246, .12);
  --brand-vk: #0077ff;
  --brand-telegram: #229ed9;
  --brand-discord: #5865f2;
  --brand-youtube: #ff0000;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", "Arial Black", "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --header-height: 60px;
  --container-max: 1300px;
  --radius: var(--r-md);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.dim { color: var(--text-muted) !important; }
.muted { color: var(--text-secondary); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-red { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ---------- Шапка (фиксированная, blur) ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  height: var(--header-height);
  display: flex; align-items: center;
  background: rgba(21, 21, 22, .9);
  backdrop-filter: blur(8px) saturate(120%);
  border-bottom: 1px solid var(--border-neutral);
}
.header-inner { display: flex; align-items: center; gap: 12px; width: 100%; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text-body); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-pic { display: flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.logo-img { display: block; height: 32px; width: auto; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-body); font-weight: 700; text-decoration: none; }
.footer-brand-link:hover { text-decoration: none; }
.logo-pic-footer .logo-img { height: 24px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text-secondary); padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-muted); color: var(--text-body); text-decoration: none; }
.nav a.active { background: var(--bg-muted); color: var(--text-body); }
/* .search replaced by .smart-search */
.monitor-stats { display: flex; gap: 14px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.stat { display: inline-flex; align-items: center; gap: 6px; }
.stat-dim { color: var(--text-muted); }

/* ---------- Меню пользователя в шапке ---------- */
.user-menu { display: flex; align-items: center; gap: 8px; position: relative; }
.user-menu .btn { padding: 7px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; text-decoration: none; transition: filter .15s, background .15s; }
.user-menu .btn:hover { filter: brightness(1.1); }
.user-menu .btn-outline { border: 1px solid var(--border-neutral); color: var(--text-body); }
.user-menu .btn-accent { background: var(--green-strong); color: #fff; border: 0; }
.user-name { font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-body); }
.user-dropdown { display: none; position: absolute; top: 110%; right: 0; min-width: 190px; background: var(--bg-panel); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 50; overflow: hidden; }
.user-dropdown a, .user-dropdown button { display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: 14px; color: var(--text-body); text-decoration: none; background: none; border: 0; cursor: pointer; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-muted); }
.user-menu:hover .user-dropdown { display: block; }
.user-menu:hover .user-name { color: var(--text-link); }

/* ---------- Каркас каталога (сайдбар + контент) ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 24px;
  align-items: start;
}
.catalog-main { min-width: 0; }

.sidebar { position: sticky; top: calc(var(--header-height) + 16px); display: flex; flex-direction: column; gap: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; position: relative;
  border-radius: var(--r-sm); color: var(--text-secondary); font-size: 13px; font-weight: 500;
  transition: background .15s, color .15s;
}
.side-nav a .icon {
  display: inline-flex; flex: 0 0 auto; width: 19px; height: 19px; color: inherit;
  opacity: .8; transition: color .15s, opacity .15s, transform .15s;
}
.side-nav a .icon svg { width: 100%; height: 100%; }
.side-nav a:hover { background: var(--bg-surface); color: var(--text-body); text-decoration: none; }
.side-nav a:hover .icon { color: var(--green); opacity: 1; transform: translateY(-1px); }
.side-nav a.active { background: var(--bg-surface); color: var(--text-body); }
.side-nav a.active .icon { color: var(--green); opacity: 1; }
.side-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px; border-radius: 2px; background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.side-tags { border-top: 1px solid var(--border-neutral); padding-top: 14px; }
.side-tags a { font-size: 13px; }
.side-card {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.side-card-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; }
.side-stat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-body); }
.side-stat strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.side-stat.dim { color: var(--text-muted); }
.side-add { margin-top: 4px; font-size: 13px; font-weight: 600; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--text-body); text-decoration: none; }
.breadcrumbs .current { color: var(--text-muted); }
.breadcrumbs .sep { color: var(--text-placeholder); }

/* ---------- Hero ---------- */
.page-hero { padding: 26px 0 8px; }
#catalog-root h1, .page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 29px);
  font-weight: 700;
  margin: 0 0 12px; line-height: 1.25; letter-spacing: -.01em;
}
.hero-sub { color: var(--text-secondary); margin: 0 0 20px; font-size: 15px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.hs-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--text-secondary);
}
.hs-item strong { color: var(--text-body); font-variant-numeric: tabular-nums; }
.hs-item.dim { color: var(--text-muted); }

/* ---------- Панель фильтров ---------- */
.filter-bar {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-lg);
  padding: 12px; margin-bottom: 18px;
  position: relative; z-index: 10;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filter-row + .filter-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-neutral); }

.sort-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-btn {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-neutral);
  background: var(--bg-muted); color: var(--text-secondary); font-size: 13px; font-weight: 500;
  transition: all .15s;
}
.sort-btn:hover { text-decoration: none; border-color: var(--border-neutral-hover); color: var(--text-body); }
.sort-btn.active { background: var(--green-subtle); border-color: var(--green-border); color: var(--green); }

.filter-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.f-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

.trigger-glass {
  background: var(--card-glass-bg); border: 1px solid var(--card-glass-border); border-radius: var(--r-sm);
  color: var(--text-body); font-size: 14px; padding: 7px 10px; outline: none; cursor: pointer;
  transition: background .15s, border-color .15s; max-width: 220px;
}
.trigger-glass:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.trigger-glass option { background: var(--bg-surface); color: var(--text-body); }

.seg { display: inline-flex; border: 1px solid var(--border-neutral); border-radius: var(--r-sm); overflow: hidden; }
.seg-btn { padding: 6px 12px; font-size: 13px; color: var(--text-secondary); background: var(--bg-muted); transition: all .15s; }
.seg-btn + .seg-btn { border-left: 1px solid var(--border-neutral); }
.seg-btn:hover { color: var(--text-body); text-decoration: none; background: var(--bg-muted-strong); }
.seg-btn.active { background: var(--green-subtle); color: var(--green); }

.online-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.online-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch {
  position: relative; width: 40px; height: 22px; border-radius: 999px;
  background: var(--bg-muted-strong); border: 1px solid var(--border-neutral-hover);
  transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--text-secondary); transition: transform .2s, background .2s;
}
.online-toggle input:checked + .switch { background: var(--green-strong); border-color: var(--green-strong); }
.online-toggle input:checked + .switch::after { transform: translateX(18px); background: #fff; }
.ot-label { font-size: 13px; color: var(--text-secondary); }

.tag-pills { display: none; }

/* ---------- Tag Popover ---------- */
.tag-wrap { position: relative; display: inline-flex; }

.tag-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border-neutral); background: var(--bg-muted);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .18s; user-select: none;
  position: relative; z-index: 2;
}
.tag-toggle-btn:hover { border-color: var(--border-neutral-hover); color: var(--text-body); background: var(--bg-muted-strong); }
.tag-toggle-btn.has-active { border-color: var(--green-border); color: var(--green); background: var(--green-subtle); }
.tag-toggle-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  animation: tp-bounce .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes tp-bounce { 0%{transform:scale(0)} 100%{transform:scale(1)} }

.tag-popover {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: 560px; max-width: calc(100vw - 32px);
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: 14px; z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
  opacity: 0; transform: translateY(-8px) scale(.96);
  transform-origin: top left;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s, transform .28s cubic-bezier(.16,1,.3,1), visibility 0s .22s;
  display: flex; flex-direction: column;
}
.tag-popover.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  visibility: visible;
  transition: opacity .22s, transform .28s cubic-bezier(.16,1,.3,1), visibility 0s 0s;
}

.tp-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--border-neutral); }
.tp-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.tp-tab {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-neutral);
  background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 5px;
}
.tp-tab:hover { color: var(--text-secondary); border-color: var(--border-neutral-hover); }
.tp-tab.active { background: var(--green-subtle); border-color: var(--green-border); color: var(--green); }
.tp-tn { font-size: 10.5px; opacity: .5; font-variant-numeric: tabular-nums; }

.tp-search-wrap { position: relative; }
.tp-sico {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.tp-search {
  width: 100%; padding: 7px 10px 7px 30px; border-radius: var(--r-sm);
  border: 1px solid var(--border-neutral); background: var(--bg-muted);
  color: var(--text-body); font-size: 13px; outline: none;
  transition: border-color .15s, background .15s, box-shadow .2s;
}
.tp-search::placeholder { color: var(--text-muted); }
.tp-search:focus { border-color: var(--green-border); background: var(--card-glass-bg); box-shadow: 0 0 0 3px rgba(61,220,132,.1); }

.tp-scroll {
  max-height: 420px; overflow-y: auto; padding: 12px 16px 14px;
  scrollbar-width: thin; scrollbar-color: var(--border-neutral-hover) transparent;
}
.tp-scroll::-webkit-scrollbar { width: 4px; }
.tp-scroll::-webkit-scrollbar-thumb { background: var(--border-neutral-hover); border-radius: 999px; }

/* --- Groups with staggered animation --- */
.tp-group {
  margin-bottom: 14px;
  animation: tp-group-in .3s calc(var(--gi, 0) * 40ms) both cubic-bezier(.16,1,.3,1);
}
.tp-group:last-child { margin-bottom: 0; }
@keyframes tp-group-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.tp-ghead {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 7px; padding-bottom: 5px;
  border-bottom: 1px solid rgba(61,220,132,.08);
}
.tp-gico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(61,220,132,.1); color: var(--green);
  flex-shrink: 0; transition: all .2s;
}
.tp-gico svg { filter: drop-shadow(0 0 3px rgba(61,220,132,.25)); }
.tp-group:hover .tp-gico {
  background: rgba(61,220,132,.18);
  box-shadow: 0 0 10px rgba(61,220,132,.2);
}
.tp-group:hover .tp-gico svg { filter: drop-shadow(0 0 5px rgba(61,220,132,.4)); }

.tp-gname {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
  transition: color .2s;
}
.tp-group:hover .tp-gname { color: var(--green); }
.tp-gcnt { font-size: 10px; color: var(--text-muted); opacity: .5; margin-left: auto; font-variant-numeric: tabular-nums; }

/* --- Chips with staggered entrance --- */
.tp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-neutral); background: var(--bg-muted);
  color: var(--text-secondary); font-size: 12.5px; font-weight: 500;
  transition: all .15s cubic-bezier(.16,1,.3,1); white-space: nowrap; line-height: 1.2;
  animation: tp-chip-in .25s calc(var(--gi, 0) * 40ms + var(--ti, 0) * 15ms) both cubic-bezier(.16,1,.3,1);
}
@keyframes tp-chip-in { from { opacity: 0; transform: scale(.85) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.tp-chip:hover {
  text-decoration: none; border-color: rgba(61,220,132,.25); color: var(--green);
  background: rgba(61,220,132,.08); transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(61,220,132,.12);
}
.tp-chip.on {
  border-color: var(--green-border); color: var(--green);
  background: var(--green-subtle);
  box-shadow: 0 0 0 2px rgba(61,220,132,.15), 0 2px 10px rgba(61,220,132,.18);
  animation: tp-chip-glow .6s ease-out;
}
@keyframes tp-chip-glow {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,.4); }
  50% { box-shadow: 0 0 0 6px rgba(61,220,132,.1); }
  100% { box-shadow: 0 0 0 2px rgba(61,220,132,.15), 0 2px 10px rgba(61,220,132,.18); }
}
.tp-cnt { font-size: 10px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tp-chip.on .tp-cnt { color: var(--green); opacity: .65; }
.tp-chip.hidden { display: none; }
.tp-empty { font-size: 13px; color: var(--text-muted); padding: 20px 0; text-align: center; }

/* --- Version Popover --- */
.version-wrap { position: relative; display: inline-flex; }
.vp-toggle.has-active { border-color: var(--green-border); color: var(--green); background: var(--green-subtle); }
.vp-popover {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: 400px; max-width: calc(100vw - 32px);
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: 14px; z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
  opacity: 0; transform: translateY(-8px) scale(.96);
  transform-origin: top left;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s, transform .28s cubic-bezier(.16,1,.3,1), visibility 0s .22s;
  display: flex; flex-direction: column;
}
.vp-popover.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; visibility: visible; transition: opacity .22s, transform .28s cubic-bezier(.16,1,.3,1), visibility 0s 0s; }

.vp-tab {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-neutral);
  background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 5px;
}
.vp-tab:hover { color: var(--text-secondary); border-color: var(--border-neutral-hover); }
.vp-tab.active { background: var(--green-subtle); border-color: var(--green-border); color: var(--green); }
.vp-tab svg { flex-shrink: 0; }

.vp-scroll { max-height: 400px; overflow-y: auto; padding: 8px 16px 12px; }
.vp-scroll::-webkit-scrollbar { width: 4px; }
.vp-scroll::-webkit-scrollbar-thumb { background: var(--border-neutral-hover); border-radius: 999px; }

.vp-all-link {
  display: block; padding: 6px 10px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: all .15s; margin-bottom: 4px; border: 1px solid transparent;
}
.vp-all-link:hover { color: var(--green); background: rgba(61,220,132,.06); }
.vp-all-link.on { color: var(--green); background: var(--green-subtle); border-color: var(--green-border); }

.vp-group-parent {
  animation: tp-group-in .3s calc(var(--gi, 0) * 35ms) both cubic-bezier(.16,1,.3,1);
}
.vp-parent {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: var(--r-sm);
  color: var(--text-body); font-size: 13.5px; font-weight: 500;
  transition: all .15s; border: 1px solid transparent;
}
.vp-parent:hover { background: rgba(61,220,132,.06); color: var(--green); border-color: rgba(61,220,132,.15); }
.vp-parent.on { background: var(--green-subtle); color: var(--green); border-color: var(--green-border); box-shadow: 0 0 0 2px rgba(61,220,132,.1); }

.vp-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  background: rgba(61,220,132,.08); color: var(--green);
  transition: transform .2s cubic-bezier(.16,1,.3,1); flex-shrink: 0;
}
.vp-group-parent:hover .vp-arrow { background: rgba(61,220,132,.14); }
.vp-group-parent.open > .vp-parent .vp-arrow { transform: rotate(0deg); }
.vp-mname { flex: 1; }
.vp-mcount { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; opacity: .6; transition: opacity .15s; }
.vp-parent:hover .vp-mcount { opacity: 1; color: var(--green); }

.vp-subs {
  padding-left: 24px; margin: 0;
  display: flex; flex-direction: column; gap: 1px;
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .3s cubic-bezier(.16,1,.3,1), opacity .25s ease, margin .3s;
}
.vp-group-parent.open > .vp-subs { max-height: 600px; opacity: 1; margin: 2px 0 6px; }

.vp-sub {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: var(--r-sm);
  color: var(--text-secondary); font-size: 12.5px;
  transition: all .15s; position: relative;
  animation: tp-chip-in .2s calc(var(--gi, 0) * 30ms + var(--si, 0) * 12ms) both cubic-bezier(.16,1,.3,1);
}
.vp-sub:hover { color: var(--green); background: rgba(61,220,132,.06); }
.vp-sub.on { color: var(--green); background: var(--green-subtle); box-shadow: 0 0 0 1px rgba(61,220,132,.15); }

.vp-sdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border-neutral-hover); flex-shrink: 0;
  transition: background .15s, box-shadow .15s;
}
.vp-sub:hover .vp-sdot { background: var(--green); box-shadow: 0 0 4px rgba(61,220,132,.3); }
.vp-sub.on .vp-sdot { background: var(--green); box-shadow: 0 0 6px rgba(61,220,132,.4); }

.vp-sname { flex: 1; white-space: nowrap; }
.vp-scount { font-size: 10.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; opacity: .5; transition: opacity .15s; }
.vp-sub:hover .vp-scount { opacity: 1; color: var(--green); }
.vp-sub.on .vp-scount { opacity: .7; color: var(--green); }

.vp-sub.hidden { display: none; }
.vp-group-parent.hidden { display: none; }
.vp-content .tp-empty { padding: 16px 0; }

/* Popular versions (with servers) — subtle highlight */
.vp-parent.popular .vp-mcount {
  opacity: 1; color: var(--green); font-weight: 600;
  background: rgba(61,220,132,.12); padding: 1px 6px; border-radius: 999px;
}
.vp-sub.popular { font-weight: 500; }
.vp-sub.popular .vp-scount {
  opacity: 1; color: var(--green);
  background: rgba(61,220,132,.12); padding: 1px 5px; border-radius: 999px;
  font-weight: 600;
}
.vp-sub.popular .vp-sdot {
  background: var(--green); box-shadow: 0 0 5px rgba(61,220,132,.35);
}
.vp-group-parent.has-data > .vp-parent { color: var(--text-body); }
.vp-group-parent.has-data > .vp-parent:hover { color: var(--green); }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.af-label { font-size: 12px; color: var(--text-muted); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  background: rgba(85, 182, 246, .1); border: 1px solid rgba(85, 182, 246, .3); color: var(--text-link);
  transition: all .15s;
}
.chip:hover { text-decoration: none; background: rgba(85, 182, 246, .18); }
.chip-reset { background: var(--bg-muted); border-color: var(--border-neutral); color: var(--text-muted); }
.chip-reset:hover { color: var(--text-body); background: var(--bg-muted-strong); }

/* ---------- Smart suggest bar ---------- */
.suggest-bar {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 8px; padding: 8px 0 0;
  border-top: 1px solid var(--border-neutral);
}
.suggest-row {
  display: flex; align-items: center; gap: 8px; min-height: 30px;
}
.suggest-row-chips { flex-wrap: wrap; }
.suggest-label {
  flex-shrink: 0; font-size: 12.5px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.suggest-label svg { opacity: .55; flex-shrink: 0; }
.suggest-scroll-wrap {
  flex: 1; min-width: 0; position: relative; display: flex; align-items: center;
}
.suggest-scroll {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; padding: 2px 0; scroll-behavior: smooth;
}
.suggest-scroll::-webkit-scrollbar { display: none; }
.suggest-pill {
  flex-shrink: 0; display: inline-flex; align-items: center;
  height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px;
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  color: var(--text-secondary); white-space: nowrap;
  transition: all .15s ease;
}
.suggest-pill:hover {
  text-decoration: none; border-color: var(--border-neutral-hover);
  color: var(--text-body); background: var(--bg-muted-strong);
}
.suggest-pill-btn {
  cursor: pointer; user-select: none;
}
.suggest-pill-btn:active {
  transform: scale(0.96);
}
.suggest-pill-btn:focus-visible {
  outline: 2px solid var(--text-link); outline-offset: 1px;
}
.suggest-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.suggest-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px;
  background: rgba(85, 182, 246, .1); border: 1px solid rgba(85, 182, 246, .28);
  color: var(--text-link); white-space: nowrap; transition: all .15s ease;
}
.suggest-chip:hover {
  text-decoration: none; background: rgba(85, 182, 246, .18);
  border-color: rgba(85, 182, 246, .4);
}
.suggest-chip svg { opacity: .5; transition: opacity .15s; flex-shrink: 0; }
.suggest-chip:hover svg { opacity: 1; }
.suggest-chip-reset {
  background: var(--bg-muted); border-color: var(--border-neutral);
  color: var(--text-muted); gap: 4px;
}
.suggest-chip-reset:hover {
  color: var(--red); border-color: rgba(255, 92, 108, .3);
  background: rgba(255, 92, 108, .08);
}
.suggest-chip-reset:hover svg { opacity: 1; stroke: var(--red); }
.suggest-arrow {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border-neutral);
  background: var(--bg-surface); color: var(--text-secondary); cursor: pointer;
  transition: all .15s ease; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.suggest-arrow:hover {
  background: var(--bg-muted); border-color: var(--border-neutral-hover);
  color: var(--text-body); box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.suggest-arrow:active { transform: scale(.95); }
.suggest-arrow-left { position: absolute; left: -4px; z-index: 5; }
.suggest-arrow-right { position: absolute; right: -4px; z-index: 5; }

/* ---------- Список серверов / карточка ---------- */
.server-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.server-card:nth-child(n+11) { content-visibility: auto; contain-intrinsic-size: auto 150px; }
.server-card.is-offline { opacity: .72; }
.server-card.is-offline .card-glass { filter: grayscale(.65); }
.server-card.is-offline .ping-dot { background: var(--red); box-shadow: none; }
.server-card.is-offline .ping::before { display: none; }
.server-card.is-offline .card-badge-online .online-num { color: var(--text-muted); }
.server-card.is-offline:hover .card-glass { box-shadow: none; }
.card-glass {
  position: relative;
  background: var(--card-glass-bg);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--r-xl);
  padding: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  contain: layout style;
}
.server-card:hover .card-glass {
  border-color: var(--border-neutral-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* Ранг (кружок в углу, как у конкурента) */
.card-rank {
  position: absolute; left: -6px; top: -6px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--primary); background: var(--bg-surface);
  font-size: 12px; font-weight: 600; color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; line-height: 1; box-sizing: border-box;
  box-shadow: 0 0 0 3px var(--bg-page);
}
.card-rank.top { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(238,179,43,.3); }

/* Иконка сервера: hover вращение + масштаб */
.server-icon {
  flex: none; width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-muted); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.server-icon img {
  width: 64px; height: 64px; object-fit: cover;
  transition: transform .5s ease;
}
a.server-icon:hover img { transform: scale(1.1) rotate(2deg); }
a.server-icon:hover { text-decoration: none; }
.icon-fallback { font-size: 30px; color: var(--text-muted); }
.icon { width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; }
.icon-fallback-lg { font-size: 44px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; border-radius: 4px; padding: 3px 8px;
  background: var(--bg-muted); color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.badge-version { color: var(--text-secondary); }
.badge-versions { background: rgba(61, 220, 132, .12); border: 1px solid var(--green-border); color: var(--green); font-weight: 600; }
.badge-ico { width: 14px; height: 14px; flex: none; opacity: .85; }
.badge-pe {
  background: rgba(238, 179, 43, .12); border: 1px solid rgba(238, 179, 43, .3); color: var(--gold);
  font-weight: 700; letter-spacing: .02em;
}
.badge-online {
  background: var(--green-subtle); color: var(--green);
  border: 1px solid var(--green-border); font-weight: 600;
}
.badge-offline { background: var(--bg-muted); color: var(--text-muted); }

.ping { position: relative; display: inline-flex; width: 8px; height: 8px; flex: none; }
.ping-dot {
  position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.ping::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.online-num { font-weight: 700; }

.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.tags li a {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: var(--bg-muted); border: 1px solid var(--border-neutral); color: var(--text-secondary);
  transition: all .15s;
}
.tags li a:hover { text-decoration: none; color: var(--text-body); border-color: var(--border-neutral-hover); }

/* ---------- Группы тегов на серверной странице ---------- */
.srv-tag-groups { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.srv-tag-group {
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.6;
}
.srv-tg-icon { font-size: 11px; flex: none; }
.srv-tg-label {
  font-weight: 600; color: var(--text-muted); white-space: nowrap; flex: none;
}
.srv-tg-tags { display: inline; }
.srv-tg-tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  color: var(--text-secondary); font-size: 11.5px; margin: 1px 2px;
  transition: all .15s; text-decoration: none;
}
.srv-tg-tag:hover { color: var(--text-body); border-color: var(--border-neutral-hover); text-decoration: none; }

.side-tag-groups { display: flex; flex-direction: column; gap: 8px; }
.side-tg-group {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px;
  font-size: 12px; line-height: 1.55;
}
.side-tg-icon { font-size: 11px; flex: none; }
.side-tg-label {
  font-weight: 600; color: var(--text-muted); white-space: nowrap; flex: none;
  margin-right: 2px;
}
.side-tg-tags { display: inline; }
.side-tg-tag {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  color: var(--text-secondary); font-size: 11px; margin: 1px 1px;
  transition: all .15s; text-decoration: none;
}
.side-tg-tag:hover { color: var(--text-body); border-color: var(--border-neutral-hover); text-decoration: none; }

/* Общие кнопки (используются и на странице сервера) */
.copy-btn, .vote-btn {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  width: 100%; border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px;
  transition: all .2s; padding: 9px 10px; text-align: center;
}
.copy-btn {
  background: var(--bg-muted); border: 1px solid var(--border-neutral); color: var(--text-body);
  flex-direction: column; gap: 1px;
}
.copy-btn:hover { border-color: var(--text-link); background: var(--bg-muted-strong); }
.copy-ip { font-family: var(--font-mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.copy-label { color: var(--text-muted); font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; }
.copy-icon { font-size: 12px; }
.vote-btn {
  background: var(--green-subtle); border: 1px solid var(--green-border); color: var(--green);
  font-weight: 600;
}
.vote-btn:hover { background: rgba(61, 220, 132, .2); }
.vote-btn.voted { background: rgba(61,220,132,.08); border-color: rgba(61,220,132,.25); color: #3ddc84; cursor: pointer; }
.vote-btn.cooldown { background: rgba(255, 92, 108, .1); border-color: rgba(255, 92, 108, .35); color: var(--red); }
.vote-btn.just-voted { animation: votePop .5s ease; }
.fav-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 14px;
  background: var(--bg-muted); border: 1px solid var(--border-neutral); color: var(--text-muted);
  transition: all .2s;
}
.fav-btn:hover { border-color: #f5c518; color: #f5c518; background: rgba(245, 197, 24, .08); }
.fav-btn.is-active { border-color: #f5c518; color: #f5c518; background: rgba(245, 197, 24, .12); }
.fav-btn.is-active .fav-icon { animation: favPop .35s ease; }
@keyframes favPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes votePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.vote-icon { font-size: 14px; }

/* ============================================================
   Карточка сервера (эталон: top-minecrafter.com)
   Мобильный grid: icon+text / badges / motd / tags / connect / actions
   Десктоп (lg): header | motd-col | connect (+ expand внизу)
   ============================================================ */
.card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon text"
    "badges badges"
    "motd motd"
    "tags tags"
    "connect connect"
    "actions actions";
}
.card-header-wrap { display: contents; }
.card-icon-col { display: contents; }
.card-text-col { display: contents; }
.card-icon-anchor { grid-area: icon; justify-self: start; align-self: start; }
.card-icon-anchor .icon-fallback { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; transition: transform .2s; }
.card-icon-anchor:hover .icon-fallback { transform: scale(1.06); }
.card-text-area { grid-area: text; min-width: 0; }
.card-badges-area { grid-area: badges; display: flex; flex-wrap: wrap; gap: 6px; }

.card-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-flag {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; font-size: 16px; line-height: 1;
  width: 20px; height: 16px;
}
.card-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; color: var(--text-body);
  transition: color .15s;
}
.card-name:hover { color: var(--text-link); text-decoration: none; }
.card-boost {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: 4px;
  background: var(--green-subtle); color: var(--green); cursor: help;
  font-variant-numeric: tabular-nums;
}
.card-popular {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: 4px;
  background: var(--green-subtle); color: var(--green);
}
.card-desc {
  margin: 8px 0 0; color: var(--text-secondary); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-line;
}

/* «Добавлен» на карточках раздела «Новые сервера» (показывается вместо краткого описания) */
.card-added {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 8px 0 0; padding: 5px 10px; border-radius: 7px;
  background: rgba(61,220,132,0.08);
  border: 1px solid rgba(61,220,132,0.22);
  color: var(--text-secondary); font-size: 13px; line-height: 1.3;
  max-width: 100%;
}
.card-added-ico { width: 15px; height: 15px; flex: none; color: var(--green); opacity: .9; }
.card-added-label { font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.card-added-when { font-weight: 600; color: var(--text-body); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Бейджи (онлайн, версия, PE, соцсети) */
.card-badge-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; font-weight: 500; padding: 4px 8px; border-radius: 4px;
  background: var(--bg-muted); color: var(--text-secondary);
  font-variant-numeric: tabular-nums; line-height: 1.3;
}
.card-badge-pill b { color: var(--text-body); font-weight: 600; }
.card-badge-online .online-num { color: var(--green); }
.card-badge-pe b { color: var(--gold); }
.card-social-pill { transition: border-color .15s, color .15s; }
.card-social-pill:hover { border-color: var(--border-neutral-hover); color: var(--text-body); text-decoration: none; }
.soc-svg { width: 14px; height: 14px; flex: none; }
.card-social-pill .soc-svg { color: var(--text-muted); }
.card-social-pill:hover .soc-svg { color: var(--text-body); }
.card-social-pill .soc-svg--sm { width: 12px; height: 12px; }
.social-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; font-size: 11px; line-height: 1;
}
.card-social-pill .soc-svg.tg, .social-ico.tg .soc-svg, .sc-ico--telegram .soc-svg { color: var(--brand-telegram); }
.card-social-pill .soc-svg.vk, .social-ico.vk .soc-svg, .sc-ico--vk .soc-svg { color: var(--brand-vk); }
.card-social-pill .soc-svg.yt, .social-ico.yt .soc-svg, .sc-ico--youtube .soc-svg { color: var(--brand-youtube); }
.card-social-pill .soc-svg.dc, .social-ico.dc .soc-svg, .sc-ico--discord .soc-svg { color: var(--brand-discord); }
.card-social-pill .soc-svg.oth, .social-ico.oth .soc-svg, .sc-ico--site .soc-svg { color: var(--text-muted); }

/* MOTD на тёмном фоне с паттерном */
.card-motd-col { display: contents; }
.card-motd-area { grid-area: motd; }
.card-motd {
  display: flex; align-items: center; min-height: 50px; overflow: hidden;
  border-radius: 8px; padding: 4px 12px;
  background-color: #33221a;
  background-image: url('/img/motd-bg.png'); background-repeat: repeat; background-size: 96px 96px;
}
.card-motd p {
  margin: 0; color: #fff; font-size: 14px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Теги-чипы с лайками */
.card-tags-area { grid-area: tags; }
.card-tag-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 4px 6px;
  max-height: 56px; overflow: hidden; align-content: flex-start;
}
.card-tag-list a { display: inline-flex; text-decoration: none; }
.card-tag {
  display: inline-flex; align-items: center; white-space: nowrap; gap: 6px;
  font-size: 13px; height: 25px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--border-neutral); background: var(--bg-surface); color: var(--text-body);
  transition: border-color .15s, color .15s;
}
.card-tag:hover { border-color: var(--border-neutral-hover); text-decoration: none; }
.likes-suffix[data-likes]:not([data-likes="0"])::after {
  content: "👍 " attr(data-likes);
  border-left: 1px solid var(--border-neutral); padding-left: 6px; margin-left: 2px;
  color: var(--text-muted); font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Колонка подключения: копирование IP + статистика */
.card-connect-col { grid-area: connect; display: flex; flex-direction: column; gap: 6px; }
.card-copy-btn {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 6px; width: 100%;
  border: 1px solid var(--border-neutral); border-radius: 8px; padding: 6px 8px;
  background: transparent; color: var(--text-body); cursor: pointer; text-align: left;
  transition: background .2s, border-color .2s;
}
.card-copy-btn:hover { background: var(--bg-muted); border-color: var(--border-neutral-hover); }
.card-launcher-btn {
  display: flex; align-items: center; gap: 6px; width: 100%; text-decoration: none;
  border: 1px solid var(--border-neutral); border-radius: 8px; padding: 6px 8px;
  background: var(--bg-muted); color: var(--text-body); cursor: pointer; text-align: left;
  font-weight: 600; transition: background .2s, border-color .2s;
}
a.card-launcher-btn:hover { background: var(--bg-muted); border-color: var(--border-neutral-hover); }
.card-launcher-btn .card-copy-ico { color: var(--text-muted); }
.card-launcher-btn .card-copy-ip { font-family: inherit; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.card-copy-ico { flex: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.card-copy-ico svg { display: block; width: 14px; height: 14px; }
.card-copy-ip {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-copy-swap {
  flex: none; position: relative; width: 16px; height: 16px;
  margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--border-neutral);
}
.card-copy-swap svg { position: absolute; left: 6px; top: 0; width: 16px; height: 16px; transition: opacity .1s; }
.card-copy-swap .ico-copy { color: var(--text-muted); opacity: 1; }
.card-copy-swap .ico-check { color: var(--green); opacity: 0; }
.card-copy-btn.is-copied .ico-copy { opacity: 0; }
.card-copy-btn.is-copied .ico-check { opacity: 1; }
.card-copystats { margin: 0; font-size: 13px; color: var(--text-secondary); text-align: center; line-height: 1.4; }
.card-copystats .cs-num { color: var(--text-body); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Ряд действий: лайк (мобильный) + «Обзор сервера» */
.card-actions-row { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.card-like-mobile { flex: 1; min-width: 0; }
.card-like-mobile .card-like { width: 100%; }
.card-like {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 5px 7px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--primary-soft); background: var(--primary-subtle); color: var(--primary-soft);
  font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s, transform .2s;
  font-variant-numeric: tabular-nums;
}
.card-like svg { width: 16px; height: 16px; flex: none; }
.card-like:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.card-like:active { transform: scale(.97); }
.card-like .vote-count { font-size: 16px; font-weight: 600; }
.card-like.voted { opacity: .65; cursor: default; }
.card-like.cooldown { border-color: rgba(255, 92, 108, .4); background: rgba(255, 92, 108, .1); color: var(--red); }
.card-like.just-voted { animation: votePop .5s ease; }
.card-expand-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 8px; font-size: 14px; color: var(--text-secondary);
  background: none; border: none; cursor: pointer; transition: color .2s;
}
.card-expand-btn:hover { color: var(--text-link); }
.card-expand-btn:disabled { cursor: not-allowed; opacity: .6; }
.card-expand-btn svg { width: 14px; height: 14px; transition: transform .3s; }
.server-card.is-open .card-expand-btn svg { transform: rotate(180deg); }

/* Компактная звезда «в избранное» в шапке карточки */
.card-fav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer; line-height: 1;
  padding: 0; background: var(--bg-muted); border: 1px solid var(--border-neutral); color: var(--text-muted);
  transition: all .2s; font-size: 14px;
}
.card-fav:hover { border-color: #f5c518; color: #f5c518; background: rgba(245, 197, 24, .08); }
.card-fav.is-active { border-color: #f5c518; color: #f5c518; background: rgba(245, 197, 24, .12); }

/* Раскрытая панель «Обзор сервера» */
.card-expanded {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-neutral);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 16px;
}
.card-expanded[hidden] { display: none; }
.card-exp-label { display: block; font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.card-exp-value { font-size: 14px; color: var(--text-body); font-variant-numeric: tabular-nums; font-weight: 500; }

/* Десктопный макет карточки (аналог lg: у конкурента) */
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: minmax(305px, 395px) minmax(16px, 1fr) minmax(195px, 325px) minmax(16px, 1fr) minmax(160px, 200px);
    grid-template-areas:
      "header . motd-col . connect"
      "header . motd-col . expand";
    gap: 8px 0;
  }
  .card-header-wrap { display: flex; align-items: flex-start; gap: 14px; grid-area: header; }
  .card-icon-col { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
  .card-icon-anchor { justify-self: auto; align-self: auto; }
  .card-text-col { display: block; min-width: 0; flex: 1; }
  .card-badges-area { margin-top: 10px; }
  .card-motd-col { display: flex; flex-direction: column; gap: 10px; grid-area: motd-col; }
  .card-connect-col { align-self: start; }
  .card-actions-row { display: contents; }
  .card-like-mobile { display: none; }
  .card-expand-btn { grid-area: expand; justify-self: center; align-self: end; margin: auto auto 0; }
}

/* ---------- Пагинация ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 6px; }
.pagination a {
  padding: 8px 16px; border: 1px solid var(--border-neutral); border-radius: var(--r-sm);
  background: var(--bg-surface); color: var(--text-body); font-size: 14px; transition: all .15s;
}
.pagination a:hover { text-decoration: none; border-color: var(--text-link); }
.page-current { color: var(--text-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--text-secondary); padding: 40px 0; }

/* ---------- SEO текст ---------- */
.seo-text {
  margin: 0; padding: 18px 0 4px;
  color: var(--text-secondary); font-size: 14px;
}
.seo-text p { max-width: 900px; line-height: 1.75; margin: 0; }
.seo-text p + p { margin-top: 8px; }
.seo-text .seo-clamp {
  position: relative;
  max-height: 3.5em;
  overflow: hidden;
  transition: max-height .35s ease;
}
.seo-text .seo-clamp.open { max-height: 600px; }
.seo-text .seo-clamp::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2.2em;
  background: linear-gradient(to bottom, transparent, var(--bg-page));
  pointer-events: none;
  transition: opacity .3s;
}
.seo-text .seo-clamp.open::after { opacity: 0; }
.seo-text .seo-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; padding: 4px 0;
  font-size: 13px; font-weight: 500; color: var(--accent, #3ddc84);
  cursor: pointer; background: none; border: none;
  transition: color .15s;
}
.seo-text .seo-more:hover { color: #66e8a0; }
.seo-text .seo-more svg { transition: transform .25s; }
.seo-text .seo-clamp.open ~ .seo-more svg { transform: rotate(180deg); }
.seo-text .seo-num {
  display: inline-block;
  font-weight: 700; color: var(--text-body);
  font-variant-numeric: tabular-nums;
}

/* ---------- Также ищут (перелинковка) ---------- */
.related-searches { padding: 4px 16px 30px; }
.related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.related-link {
  display: block; padding: 10px 14px; font-size: 13px; color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-sm);
  transition: border-color .15s, color .15s;
}
.related-link:hover { border-color: var(--border-neutral-hover); color: var(--text-body); text-decoration: none; }

/* ---------- Страница сервера ---------- */
.server-page { padding-top: calc(var(--header-height) + 24px); padding-bottom: 24px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.motd {
  border-radius: var(--r-sm); padding: 10px 12px; background-color: #1b1420; margin: 12px 0;
  background-image: url('/img/motd-bg.png'); background-repeat: repeat; background-size: 96px 96px;
}
.motd p { margin: 0; color: #fff; overflow: hidden; font-size: 14px; }
.copy-btn-lg, .vote-btn-lg, .refresh-btn { width: 100%; padding: 11px; font-size: 14px; border-radius: var(--r-sm); }
.refresh-btn {
  background: var(--bg-muted); border: 1px solid var(--border-neutral); color: var(--text-secondary);
  border-radius: var(--r-sm); cursor: pointer; transition: all .15s;
}
.refresh-btn:hover { border-color: var(--border-neutral-hover); color: var(--text-body); }
/* Общие hero/блоки (аналитика сервера) */
.server-hero {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) 240px; gap: 20px;
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-lg); padding: 20px;
}
.server-hero h1 { margin: 0 0 10px; font-size: 26px; font-family: var(--font-display); }
.chart-box { background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md); padding: 20px; margin: 14px 0; }
.chart-box h2 { margin: 0 0 14px; font-size: 18px; font-family: var(--font-display); }
.server-desc-box { background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md); padding: 20px; margin: 14px 0; }
.server-desc-box h2 { margin-top: 0; font-size: 18px; font-family: var(--font-display); }
.server-desc-box p { color: var(--text-secondary); }
.stat-box { background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md); padding: 14px; text-align: center; }
.stat-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green); }
.stat-value.dim { color: var(--text-muted); }
.stat-caption { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ---------- KPI-сетка сервера (компактная, с SVG) ---------- */
.srv-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
}
.srv-kpi-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border-neutral);
  border-radius: var(--r-md);
  transition: transform .15s, border-color .15s;
  min-width: 0;
}
.srv-kpi-item:hover { transform: translateY(-1px); border-color: var(--border-neutral-hover); }
.srv-kpi-ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(85, 182, 246, .12); color: #55b6f6;
  border: 1px solid rgba(85, 182, 246, .22);
}
.srv-kpi-ico svg { width: 20px; height: 20px; }
.srv-kpi-ico.is-online { background: rgba(61, 220, 132, .12); color: var(--green); border-color: rgba(61, 220, 132, .25); }
.srv-kpi-ico.is-off { background: rgba(255, 92, 108, .12); color: #ff5c6c; border-color: rgba(255, 92, 108, .25); }
.srv-kpi-ico.is-up { background: rgba(238, 179, 43, .12); color: var(--gold); border-color: rgba(238, 179, 43, .25); }
.srv-kpi-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.srv-kpi-val {
  font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--text-body); line-height: 1.15; white-space: nowrap;
}
.srv-kpi-val.dim { color: var(--text-muted); }
.srv-kpi-label {
  font-size: 11px; color: var(--text-muted); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .srv-kpi { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .srv-kpi-val { font-size: 14px; }
}
@media (max-width: 480px) {
  .srv-kpi { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .srv-kpi-label { font-size: 10px; }
}
#online-chart { width: 100%; height: 200px; }
.section-title { margin: 28px 0 14px; font-size: 22px; font-family: var(--font-display); }
.container-nopad { max-width: var(--container-max); margin: 0 auto; padding: 0 16px; }

/* ---------- Страница сервера: переработанный макет ---------- */
.srv-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 14px;
}
.srv-hero-icon { position: relative; flex: none; line-height: 0; }
.srv-hero-icon img {
  width: 84px; height: 84px; border-radius: var(--r-md);
  background: var(--bg-muted); object-fit: cover;
}
.icon-fallback-xl { font-size: 44px; }
.srv-status-ring {
  position: absolute; right: -6px; bottom: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--bg-surface); background: var(--red);
}
.srv-status-ring.online { background: var(--green); box-shadow: 0 0 12px var(--green); }
.srv-status-ring.offline { background: var(--red); box-shadow: none; }
.srv-hero h1 { margin: 0 0 6px; font-size: 23px; font-family: var(--font-display); line-height: 1.25; }
.badge-uptime {
  background: rgba(61, 220, 132, .1); border: 1px solid var(--green-border); color: var(--green);
  font-weight: 600;
}
.srv-hero-actions { display: flex; flex-direction: column; gap: 6px; }
.copy-btn-lg, .vote-btn-lg, .refresh-btn { width: 100%; padding: 10px 12px; font-size: 14px; border-radius: var(--r-sm); }
.copy-btn-lg { min-height: 56px; justify-content: center; }
.srv-hero .motd { font-size: 13.5px; margin-top: 8px; }

.srv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.srv-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.srv-box {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md);
  padding: 20px;
}
.srv-box h2 { margin: 0 0 14px; font-size: 18px; font-family: var(--font-display); }
.srv-box-muted { background: transparent; border-style: dashed; }
.srv-desc-text p { margin: 0; color: var(--text-secondary); line-height: 1.7; }
.srv-desc-text p { margin: 0; color: var(--text-secondary); line-height: 1.7; }

/* ---------- Отзывы игроков ---------- */
.comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.comment-item { border: 1px solid var(--border-neutral); border-radius: var(--r-md); padding: 14px; background: var(--bg-muted); }
.comment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.comment-author { font-weight: 700; font-size: 14px; color: var(--text-body); }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--text-secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-empty { color: var(--text-muted); margin-bottom: 18px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-text, .comment-nick { width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--text-body); background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); resize: vertical; }
.comment-text:focus, .comment-nick:focus { border-color: var(--text-link); outline: none; }
.comment-nick { max-width: 280px; }
.comment-btn { align-self: flex-start; background: var(--green-strong); color: #fff; border: 0; border-radius: var(--r-sm); padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: filter .15s; }
.comment-btn:hover { filter: brightness(1.12); }
.comment-btn:disabled { opacity: .6; cursor: default; }
.comment-note { font-size: 12px; color: var(--text-muted); margin: 0; }
#comment-status { font-size: 13px; color: var(--text-secondary); }

/* Как подключиться */
.howto-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.howto-list li { display: flex; gap: 12px; align-items: flex-start; }
.howto-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-subtle); border: 1px solid var(--green-border); color: var(--green);
  font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
}
.howto-list li div { color: var(--text-secondary); font-size: 14px; }
.howto-ip { font-family: var(--font-mono); color: var(--text-body); background: var(--bg-muted); border-radius: 4px; padding: 1px 6px; }
.howto-note { color: var(--text-secondary); font-size: 13.5px; margin: 14px 0 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border-neutral); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14.5px; color: var(--text-body);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: color .15s;
}
.faq-item summary:hover { color: var(--text-link); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 14px; color: var(--text-secondary); font-size: 14px; }

/* Адреса */
.addr-list { display: flex; flex-direction: column; gap: 10px; }
.addr-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); padding: 12px 14px;
}
.addr-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.addr-platform { font-weight: 700; font-size: 14px; color: var(--text-body); }
.addr-hint { font-size: 12.5px; color: var(--text-muted); }
.copy-btn-sm { width: auto; min-width: 180px; flex-direction: column; padding: 8px 12px; }

/* Сайдбар страницы сервера */
.srv-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-height) + 16px); }

/* Таблица «Голоса» (как у конкурента) */
.srv-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.srv-sec-head h2 { margin: 0; }
.srv-rank-chip {
  font-size: 12.5px; color: var(--gold); background: rgba(238, 179, 43, .1);
  border: 1px solid rgba(238, 179, 43, .3); border-radius: 999px; padding: 4px 12px;
  font-weight: 600; white-space: nowrap;
}
.votes-table-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--border-neutral); }
.votes-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.votes-table thead th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); font-weight: 600; padding: 10px 14px;
  border-bottom: 1px solid var(--border-neutral); white-space: nowrap;
}
.votes-table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border-neutral); vertical-align: middle; }
.votes-table tbody tr:last-child td { border-bottom: 0; }
.votes-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.votes-table tr.vt-current { background: var(--green-subtle); }
.votes-table tr.vt-current:hover { background: rgba(61, 220, 132, .16); }
.vt-rank { width: 64px; }
.vt-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt-medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; font-weight: 700; font-size: 13px;
  border: 1px solid var(--border-neutral); background: var(--bg-muted); color: var(--text-secondary);
}
.vt-medal-1 { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 12px rgba(238, 179, 43, .22); }
.vt-medal-2 { border-color: rgba(200, 205, 215, .4); color: #cfd4dc; }
.vt-medal-3 { border-color: rgba(205, 127, 50, .4); color: #d1834e; }
.vt-plain { color: var(--text-secondary); font-weight: 600; font-size: 13px; }
.vt-server { min-width: 200px; }
.vt-icon {
  display: inline-flex; width: 28px; height: 28px; border-radius: 6px; overflow: hidden;
  background: var(--bg-muted); align-items: center; justify-content: center; vertical-align: middle;
  margin-right: 8px;
}
.vt-icon img { width: 28px; height: 28px; object-fit: cover; }
.vt-icon .icon-fallback { font-size: 14px; }
.vt-name { color: var(--text-body); font-weight: 600; font-size: 14px; }
.vt-name:hover { color: var(--text-link); text-decoration: none; }
.vt-this {
  font-size: 10.5px; color: var(--green); background: rgba(61, 220, 132, .12);
  border: 1px solid var(--green-border); border-radius: 999px; padding: 1px 8px; margin-left: 8px;
  font-weight: 600; white-space: nowrap; vertical-align: middle;
}
.vt-votes { color: var(--green); font-weight: 700; }
.vt-votes .vote-icon { font-size: 12px; }
.srv-table-note { margin: 12px 0 0; color: var(--text-muted); font-size: 13px; }
.srv-table-note a { color: var(--text-link); }
.side-box {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md);
  padding: 16px;
}
.side-box-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted);
  font-weight: 600; margin: 0 0 12px;
}
.info-table { margin: 0; }
.info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 0; font-size: 13.5px;
}
.info-row + .info-row { border-top: 1px solid var(--border-neutral); }
.info-row dt { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-muted); }
.info-row dd { margin: 0; color: var(--text-body); font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-row dd code { font-family: var(--font-mono); font-size: 12.5px; }
.info-ico {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-muted); color: var(--text-secondary);
  border: 1px solid var(--border-neutral);
}
.info-ico svg { width: 13px; height: 13px; }
.info-row--url .info-ico { background: rgba(85, 182, 246, .12); color: #55b6f6; border-color: rgba(85, 182, 246, .22); }
.info-row--avg .info-ico { background: rgba(85, 182, 246, .12); color: #55b6f6; border-color: rgba(85, 182, 246, .22); }
.info-row--ver .info-ico,
.info-row--votes .info-ico { background: rgba(238, 179, 43, .12); color: var(--gold); border-color: rgba(238, 179, 43, .25); }
.info-row--online .info-ico,
.info-row--uptime .info-ico { background: rgba(61, 220, 132, .12); color: var(--green); border-color: rgba(61, 220, 132, .25); }
.info-row--date .info-ico { background: rgba(170, 175, 190, .12); color: var(--text-secondary); border-color: rgba(170, 175, 190, .25); }
.side-box-vote .side-box-text { color: var(--text-secondary); font-size: 13.5px; margin: 0 0 12px; }
.srv-meta-line { margin: 0; color: var(--text-muted); font-size: 13px; }

/* Сайдбар страницы сервера: адрес, продвижение */
.side-box-addr .copy-btn-lg { margin-bottom: 10px; }
.side-box-addr .side-box-text { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; margin: 0 0 10px; }
.side-box-boost {
  margin: 0; padding: 8px 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--gold);
  background: rgba(238, 179, 43, .08); border: 1px solid rgba(238, 179, 43, .25);
}
.side-boost-link {
  display: block; text-align: center; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--green-subtle); border: 1px solid var(--green-border); color: var(--green);
  font-weight: 600; font-size: 14px; transition: background .15s;
}
.side-boost-link:hover { background: rgba(61, 220, 132, .2); color: var(--green); text-decoration: none; }

/* Кнопки в hero-блоке сервера */
.srv-hero-actions-row { display: flex; gap: 8px; }
.srv-hero-actions-row .vote-btn-lg { flex: 1; }
.srv-fav-btn { flex: none; width: 46px; min-height: 46px; font-size: 20px; }

/* Список вайпов на странице сервера */
.srv-sec-link { font-size: 13px; color: var(--text-link); }
.srv-wipes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.srv-wipe-item {
  display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-neutral);
  align-items: flex-start;
}
.srv-wipe-item:first-child { padding-top: 0; }
.srv-wipe-item:last-child { border-bottom: 0; padding-bottom: 0; }
.srv-wipe-date { flex: none; min-width: 110px; font-size: 13px; color: var(--text-body); font-weight: 600; }
.srv-wipe-time { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.srv-wipe-main { min-width: 0; }
.srv-wipe-mode {
  display: inline-block; font-size: 11.5px; color: var(--green); background: var(--green-subtle);
  border: 1px solid var(--green-border); border-radius: 999px; padding: 2px 10px; font-weight: 600; margin-bottom: 4px;
}
.srv-wipe-summary { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Навигация «предыдущий / следующий сервер» */
.srv-prevnext { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; }
.srv-pn {
  flex: 1; max-width: 48%; display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md);
  padding: 12px 16px; transition: border-color .15s, background .15s;
}
.srv-pn:hover { border-color: var(--border-neutral-hover); background: var(--bg-muted); text-decoration: none; }
.srv-pn-prev { align-items: flex-start; }
.srv-pn-next { align-items: flex-end; margin-left: auto; text-align: right; }
.srv-pn-dir { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.srv-pn-name { font-size: 14.5px; color: var(--text-body); font-weight: 600; }

@media (max-width: 1100px) {
  .srv-hero { grid-template-columns: 80px minmax(0, 1fr); }
  .srv-hero-actions { grid-column: 1 / -1; flex-direction: row; }
  .srv-hero-actions .copy-btn-lg, .srv-hero-actions .vote-btn-lg, .srv-hero-actions .refresh-btn { width: auto; flex: 1; }
}
@media (max-width: 860px) {
  .srv-layout { grid-template-columns: 1fr; }
  .srv-side { position: static; }
  .srv-hero { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; }
  .srv-hero-icon img { width: 64px; height: 64px; }
  .icon-fallback-xl { font-size: 38px; }
  .srv-hero h1 { font-size: 21px; }
}
@media (max-width: 640px) {
  .addr-row { flex-direction: column; align-items: stretch; }
  .copy-btn-sm { width: 100%; }
  .srv-hero-actions { flex-direction: column; }
  .srv-hero-actions-row .vote-btn-lg { flex: 1; }
  .srv-wipe-item { flex-direction: column; gap: 6px; }
  .srv-prevnext { flex-direction: column; }
  .srv-pn, .srv-pn-next { max-width: 100%; margin-left: 0; }
  .srv-pn-next { align-items: flex-start; text-align: left; }
}

/* ---------- Формы ---------- */
.add-form { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.add-form label { font-weight: 600; }
.add-form input {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); color: var(--text-body);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; outline: none;
  font-family: var(--font-mono); transition: border-color .15s;
}
.add-form input:focus { border-color: var(--text-link); }
.add-form input::placeholder { color: var(--text-placeholder); }
.add-form select, .add-form textarea {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); color: var(--text-body);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; outline: none;
  font-family: var(--font-mono); transition: border-color .15s; width: 100%;
}
.add-form select:focus, .add-form textarea:focus { border-color: var(--text-link); }
.add-form textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.btn-primary { background: var(--green-strong); color: #fff; border: 0; border-radius: var(--r-sm); padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; transition: filter .15s; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-danger { background: rgba(255, 92, 108, .12); color: var(--red); border: 1px solid rgba(255, 92, 108, .4); border-radius: var(--r-sm); padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: filter .15s; align-self: flex-start; }
.btn-danger:hover { filter: brightness(1.15); }
.filter-link { color: var(--text-link); text-decoration: none; font-size: 14px; }
.filter-link:hover { text-decoration: underline; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin: 14px 0; font-size: 14px; }
.alert-success { background: var(--green-subtle); border: 1px solid var(--green-border); color: var(--green); }
.alert-error { background: rgba(255, 92, 108, .1); border: 1px solid rgba(255, 92, 108, .35); color: var(--red); }

/* ---------- Поиск напарников ---------- */
.partner-card {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md);
  padding: 16px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px;
}
.partner-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.partner-nick { font-size: 17px; color: var(--text-body); }
.partner-date { font-size: 12px; margin-left: auto; }
.partner-desc { color: var(--text-secondary); line-height: 1.6; margin: 0; }
.partner-contact { color: var(--text-body); font-size: 14px; margin: 0; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--border-neutral); margin-top: 12px; padding: 32px 0 20px; color: var(--text-muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text-body); }
.footer-about { max-width: 420px; color: var(--text-secondary); margin: 10px 0; line-height: 1.5; }
.footer-stats { display: flex; gap: 14px; }
.footer-col-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-body); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border-neutral); padding-top: 16px; }
.footer-bottom-links { flex-direction: row; gap: 8px 16px; flex-wrap: wrap; }

/* ---------- SEO Footer Block ---------- */
.seo-footer {
  position: relative;
  padding: 0;
  margin-top: 28px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 200px at 15% 20%, rgba(61, 220, 132, .08), transparent 70%),
    radial-gradient(500px 180px at 85% 80%, rgba(85, 182, 246, .06), transparent 70%),
    var(--bg-surface);
  border: 1px solid var(--border-neutral);
  overflow: hidden;
  transition: border-color .3s;
}
.seo-footer:hover { border-color: var(--border-neutral-hover); }

/* "Ищут вместе" — верхний блок: 3-колоночная сетка тег×версия */
.seo-together {
  padding: 22px 24px 0;
}
.seo-together + .seo-footer-inner { border-top: 1px solid var(--border-neutral); }
.seo-together-title {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--text-body);
}
.seo-together-title svg { color: var(--green); flex-shrink: 0; }
.seo-together-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 20px;
  position: relative;
}
.seo-together-grid.clamped {
  max-height: 162px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
}
.seo-together-grid.clamped.expanded {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}
.seo-together-link {
  display: block; padding: 3px 8px; margin: 0 -8px;
  color: var(--text-secondary); font-size: 13px; line-height: 1.5;
  text-decoration: none; transition: color .15s, background .15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: var(--r-xs);
}
.seo-together-link:hover { color: var(--green); background: rgba(61, 220, 132, .06); }

/* Популярные: 3 колонки */
.seo-footer-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.seo-footer-col {
  padding: 22px 24px 18px;
  border-right: 1px solid var(--border-neutral);
  position: relative;
  opacity: 0; transform: translateY(14px);
  animation: seo-col-enter .5s cubic-bezier(.16,1,.3,1) forwards;
  animation-play-state: paused;
}
.seo-footer-col.seo-visible { animation-play-state: running; }
.seo-footer-col:nth-child(1) { animation-delay: 0s; }
.seo-footer-col:nth-child(2) { animation-delay: .08s; }
.seo-footer-col:nth-child(3) { animation-delay: .16s; }
@keyframes seo-col-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.seo-footer-col:last-child { border-right: none; }

.seo-footer-title {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--text-body);
}
.seo-footer-title svg { color: var(--green); flex-shrink: 0; }

.seo-footer-list {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.seo-footer-list.clamped {
  max-height: 198px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
}
.seo-footer-list.clamped.expanded {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.seo-footer-link {
  display: block; padding: 3px 8px; margin: 0 -8px;
  color: var(--text-secondary); font-size: 13px; line-height: 1.5;
  text-decoration: none; transition: color .15s, background .15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: var(--r-xs);
}
.seo-footer-link:hover { color: var(--green); background: rgba(61, 220, 132, .06); }

.seo-footer-more {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; margin-top: 4px; padding: 5px 0;
  font-size: 12px; font-weight: 600; color: var(--green);
  background: none; border: none; cursor: pointer;
  transition: opacity .15s;
  position: relative; z-index: 1;
}
.seo-footer-more:hover { opacity: .75; }
.seo-footer-more svg { transition: transform .2s; }
.seo-footer-more.open svg { transform: rotate(180deg); }
.seo-footer-more.hidden { display: none; }

/* ---------- Умная аналитика копирований ---------- */
.analytics-search { width: 100%; margin-left: 0; display: flex; align-items: center; gap: 10px; }
.analytics-search input { flex: 1; max-width: 360px; min-width: 200px; }
.analytics-go { padding: 8px 18px; font-size: 13px; }
.copy-count { font-size: 11px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.hs-item strong.text-green { color: var(--green); }
.hs-item strong.text-red { color: var(--red); }
.hs-item strong.text-gold { color: var(--gold); }

.analytics-block {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md);
  padding: 16px; margin-bottom: 18px;
}
.analytics-block-title {
  font-size: 15px; font-weight: 700; font-family: var(--font-display);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.analytics-block-sub { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }
.analytics-tags { margin-top: 14px; }
.analytics-tags .tag-pill { padding: 8px 16px; border-radius: var(--r-md); font-size: 13.5px; }
.analytics-tags .pill-cat { font-weight: 600; color: var(--text-body); }
.analytics-tags .tag-pill:hover .pill-cat { color: var(--text-body); }

.analytics-table-wrap {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-lg);
  overflow-x: auto;
}
.analytics-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.analytics-table thead th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); font-weight: 600; padding: 12px 14px;
  border-bottom: 1px solid var(--border-neutral); white-space: nowrap;
}
.analytics-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-neutral); vertical-align: middle; }
.analytics-table tbody tr:last-child td { border-bottom: 0; }
.analytics-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.a-col-rank { width: 46px; }
.a-col-copies { width: 200px; }
.a-col-downloads { width: 150px; }
.a-col-src { width: 230px; }
.a-col-action { width: 110px; text-align: right; }

.a-rank {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px;
  padding: 0 6px; border-radius: 6px; border: 1px solid var(--border-neutral); background: var(--bg-muted);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-secondary);
}
.a-rank.top { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 10px rgba(238, 179, 43, .2); }

.a-server { display: flex; align-items: center; gap: 10px; }
.a-icon {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-muted); display: flex; align-items: center; justify-content: center;
}
.a-icon img { width: 48px; height: 48px; object-fit: cover; }
.a-server-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a-name { font-weight: 600; color: var(--text-body); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-name:hover { color: var(--text-link); text-decoration: none; }
.a-host { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-delta { font-weight: 600; }
.a-delta.up { color: var(--green); }
.a-delta.down { color: var(--red); }

.a-copies { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.a-copies-num { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.a-today { font-size: 12px; color: var(--green); font-weight: 600; }

.a-bar { width: 100%; height: 6px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; }
.a-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #37d67a, #3ddc84); }
.a-bar-sm { height: 4px; }
.a-bar-src { background: linear-gradient(90deg, #55b6f6, #89caf5); }

.a-src { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.a-src-name { font-size: 13px; color: var(--text-body); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-src-meta { font-size: 12px; color: var(--text-muted); }
.a-src-meta strong { color: var(--text-body); font-variant-numeric: tabular-nums; }
.a-link { font-size: 13px; font-weight: 600; white-space: nowrap; }

.a-dl { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.a-dl-num { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: #b388ff; }
.a-bar-fill.a-bar-dl { background: linear-gradient(90deg, #9a6dff, #b388ff); }
.a-muted { color: var(--text-muted); }

.analytics-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px 0 4px; }
.af-info { font-size: 13px; color: var(--text-secondary); }
.af-info strong { color: var(--text-body); font-variant-numeric: tabular-nums; }
.btn-more {
  padding: 10px 22px; border: 1px solid var(--border-neutral); border-radius: var(--r-sm);
  background: var(--bg-surface); color: var(--text-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.btn-more:hover { border-color: var(--text-link); text-decoration: none; }
.btn-more:disabled { opacity: .6; cursor: default; }

.src-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.src-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 120px; gap: 12px; align-items: center; }
.src-name { font-size: 14px; color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-bar { height: 8px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; }
.src-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #55b6f6, #89caf5); }
.src-meta { font-size: 12.5px; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }

.a-srv-hero { grid-template-columns: 64px minmax(0, 1fr); }
.a-srv-hero h1 { margin: 0 0 10px; font-size: 24px; }
.a-srv-stats { margin-top: 14px; }
.copy-chart svg { width: 100%; height: 180px; display: block; }
.chart-days { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 860px) {
  .a-col-src, .a-col-action { display: none; }
  .src-row { grid-template-columns: 160px minmax(0, 1fr) 90px; }
}

/* ═══════════════════════════════════════════════════════════════
   НОВАЯ АНАЛИТИКА: live-счётчики, лента, страны
   ═══════════════════════════════════════════════════════════════ */

/* ── Live-счётчики ── */
.an-hero-counters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px;
  margin: 20px 0 24px;
}
.an-counter {
  position: relative;
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-lg);
  padding: 20px 18px 16px; text-align: center;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.an-counter:hover {
  border-color: var(--border-neutral-hover); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.an-counter--green { border-color: var(--green-border); }
.an-counter--green .an-counter-val { color: var(--green); }
.an-counter--blue { border-color: rgba(85,182,246,.25); }
.an-counter--blue .an-counter-val { color: var(--primary); }
.an-counter--gold { border-color: rgba(238,179,43,.25); }
.an-counter--gold .an-counter-val { color: var(--gold); }
.an-counter--purple { border-color: rgba(179,136,255,.3); }
.an-counter--purple .an-counter-val { color: #b388ff; }

.an-counter--flash {
  animation: an-flash .5s ease-out;
}
@keyframes an-flash {
  0% { box-shadow: 0 0 0 2px rgba(61,220,132,.3); }
  50% { box-shadow: 0 0 20px rgba(61,220,132,.15); }
  100% { box-shadow: none; }
}

.an-counter-live {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 2px 10px 2px 7px;
  background: var(--green-subtle); border: 1px solid var(--green-border);
  margin-bottom: 10px;
}
.an-counter-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  position: relative;
}
.an-counter-live-dot::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--green); opacity: 0;
  animation: act-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
.an-counter-live-text {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green);
}
.an-counter-val {
  font-family: var(--font-display); font-size: 30px; font-weight: 800;
  line-height: 1.1; margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.an-counter-label {
  font-size: 13px; color: var(--text-secondary); line-height: 1.3;
}

/* ── Две колонки: лента + страны ── */
.an-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 22px;
}
.an-panel {
  background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-lg);
  overflow: hidden; position: relative;
}
.an-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--border-neutral);
}
.an-panel-title-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.an-panel-icon { width: 20px; height: 20px; flex: none; color: var(--primary); opacity: .75; }
.an-panel-title {
  margin: 0; font-size: 14px; font-weight: 700; font-family: var(--font-display);
}
.an-panel-live {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 2px 10px 2px 7px;
  background: var(--green-subtle); border: 1px solid var(--green-border);
}
.an-panel-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  position: relative;
}
.an-panel-live-dot::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--green); opacity: 0;
  animation: act-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
.an-panel-live-text {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green);
}

/* ── Лента активности на аналитике ── */
.an-activity-feed {
  max-height: 340px; overflow-y: auto; overflow-x: hidden;
  padding: 0 0 6px;
  scrollbar-width: thin; scrollbar-color: var(--bg-muted-strong) transparent;
}
.an-activity-feed::-webkit-scrollbar { width: 4px; }
.an-activity-feed::-webkit-scrollbar-thumb { background: var(--bg-muted-strong); border-radius: 2px; }
.an-activity-empty {
  padding: 24px 16px; color: var(--text-muted); font-size: 13px; text-align: center;
}

/* Ссылка на сервер в ленте */
.act-server-link {
  font-size: 11.5px; color: var(--text-link); font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 180px;
  display: inline-block; vertical-align: middle; margin-left: 4px;
}
.act-server-link:hover { text-decoration: underline; }

/* ── Топ стран ── */
.an-countries-list {
  padding: 12px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.an-country-row {
  display: grid; grid-template-columns: 26px 1fr minmax(60px, 1fr) 40px;
  gap: 8px; align-items: center;
}
.an-country-flag { font-size: 18px; line-height: 1; text-align: center; }
.an-country-name { font-size: 13px; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-country-bar { height: 7px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; }
.an-country-bar-fill {
  display: block; height: 100%; border-radius: 999px;
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}
.an-country-count {
  font-size: 12px; color: var(--text-secondary); text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .an-hero-counters { grid-template-columns: repeat(2, 1fr); }
  .an-duo { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .an-hero-counters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .an-counter-val { font-size: 22px; }
  .an-country-row { grid-template-columns: 22px 1fr 50px 32px; gap: 6px; }
}

/* ---------- Рейтинг по голосам ---------- */
.rating-hero {
  padding: calc(var(--header-height) + 28px) 0 8px;
}
.rating-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 29px);
  font-weight: 700;
  margin: 0 0 8px; line-height: 1.25; letter-spacing: -.01em;
}
.rating-hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Рейтинг внутри общего каркаса (catalog-layout): отступ под шапку уже даёт сетка */
.catalog-main .rating-hero { padding-top: 0; }
.catalog-main .breadcrumbs { padding: 0 0 14px; }

.rating-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}
.rs-item {
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: var(--r-md); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.rs-value { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rs-value.rs-green { color: var(--green); }
.rs-label { color: var(--text-muted); font-size: 12.5px; }

/* Подиум топ-3 */
.rating-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}
.podium-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: var(--r-lg); padding: 18px 14px; color: var(--text-body);
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.podium-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--border-neutral-hover); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.podium-card.p-rank-1 { border-color: var(--gold); box-shadow: 0 0 24px rgba(238,179,43,.14); }
.podium-card.p-rank-2 { border-color: rgba(200,205,215,.35); }
.podium-card.p-rank-3 { border-color: rgba(205,127,50,.35); }
.podium-medal { font-size: 30px; line-height: 1; }
.podium-place {
  position: absolute; top: 0; right: 0;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  border-radius: 0 var(--r-lg) 0 var(--r-sm);
  background: var(--bg-muted); color: var(--text-secondary);
  letter-spacing: .03em;
}
.p-rank-1 .podium-place { background: rgba(238,179,43,.16); color: var(--gold); }
.podium-icon { width: 64px; height: 64px; border-radius: var(--r-sm); }
.podium-icon img { width: 64px; height: 64px; }
.podium-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-host { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-votes { color: var(--green); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.podium-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.podium-online.on { color: var(--green); }

/* Победители по месяцам */
.rating-winners { margin: 18px 0 8px; }
.rating-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rating-sec-head .section-title { margin: 0 0 14px; }
.rating-total { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.winners-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-muted-strong) transparent;
}
.winner-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: var(--r-md); padding: 14px;
  color: var(--text-body); transition: border-color .15s, transform .15s;
}
.winner-card:hover { text-decoration: none; border-color: var(--border-neutral-hover); transform: translateY(-2px); }
.winner-month { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.winner-body { display: flex; align-items: center; gap: 10px; min-width: 0; }
.winner-icon { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); }
.winner-icon img { width: 40px; height: 40px; }
.winner-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-votes { color: var(--green); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }

/* Макет: список + лента */
.rating-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}
.rating-main { min-width: 0; }
.rating-side { position: sticky; top: calc(var(--header-height) + 16px); }

/* Рейтинг в общем каркасе (колонка с сайдбаром уже): стекаем список и ленту в одну
   колонку, чтобы карточке хватало ширины и «Обзор сервера» не вылезал за рамки */
.catalog-main .rating-layout { grid-template-columns: minmax(0, 1fr); }
.catalog-main .rating-side { position: static; }
.catalog-main .live-box { max-width: 720px; }

/* Бейдж голосов за месяц */
.badge-votes { background: rgba(61, 220, 132, .12); border: 1px solid var(--green-border); color: var(--green); font-weight: 600; }

/* Лента последних голосов */
.live-box {
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: var(--r-lg); padding: 16px;
}
.live-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .5); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.live-badge {
  margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: var(--green); background: var(--green-subtle); border: 1px solid var(--green-border);
  border-radius: 4px; padding: 2px 6px;
}
.live-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.live-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px; border-radius: var(--r-sm);
  transition: background .15s;
}
.live-item:hover { background: var(--bg-muted); }
.live-item.is-new { animation: liveIn .4s ease; }
@keyframes liveIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.live-ava {
  flex: none; width: 32px; height: 32px; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-muted); display: flex; align-items: center; justify-content: center;
}
.live-ava img { width: 32px; height: 32px; object-fit: cover; }
.live-ava .icon-fallback { font-size: 15px; }
.live-name {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text-body);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-name:hover { color: var(--text-link); text-decoration: none; }
.live-time { flex: none; font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.live-more {
  width: 100%; margin-top: 10px; padding: 8px; font-size: 13px; font-weight: 600;
  background: var(--bg-muted); border: 1px solid var(--border-neutral); color: var(--text-secondary);
  border-radius: var(--r-sm); cursor: pointer; transition: all .15s;
}
.live-more:hover { color: var(--text-body); border-color: var(--border-neutral-hover); }
.live-more:disabled { opacity: .6; cursor: default; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
  .rating-layout { grid-template-columns: minmax(0, 1fr); }
  .rating-side { position: static; }
}
@media (max-width: 860px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-nav a { height: 36px; padding: 0 10px; }
  .side-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seo-together-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-footer-inner { grid-template-columns: 1fr 1fr; }
  .seo-footer-col:nth-child(2) { border-right: none; }
  .seo-footer-col:nth-child(1),
  .seo-footer-col:nth-child(2) { border-bottom: 1px solid var(--border-neutral); }
  .monitor-stats { display: none; }
  .filter-controls { margin-left: 0; width: 100%; }
  .suggest-row { flex-wrap: wrap; }
  .suggest-row-chips .suggest-label { width: 100%; }
  .suggest-scroll-wrap { min-width: 200px; }
  .user-menu { order: 5; margin-left: auto; }
}
@media (max-width: 640px) {
  .header-inner { gap: 8px; }
  .logo-text { font-size: 15px; }
  .logo-img { height: 28px; }
  .search { order: 5; max-width: 100%; flex-basis: 100%; margin-left: 0; }
  .user-menu { order: 4; margin-left: auto; }
  .server-icon { width: 56px; height: 56px; }
  .server-icon img { width: 56px; height: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .seo-together-grid { grid-template-columns: 1fr; }
  .seo-footer-inner { grid-template-columns: 1fr; }
  .seo-footer-col { border-right: none !important; border-bottom: 1px solid var(--border-neutral); }
  .seo-footer-col:last-child { border-bottom: none; }
  .rating-podium { grid-template-columns: 1fr; }
  .suggest-label { font-size: 11.5px; }
  .suggest-pill { height: 26px; padding: 0 9px; font-size: 12px; }
  .suggest-chip { height: 26px; padding: 0 8px; font-size: 12px; }
  .suggest-arrow { width: 26px; height: 26px; }
}
@media (max-width: 420px) {
  .logo-text { display: none; }
  .logo-img { height: 26px; }
}

/* ============================================================
   Онлайн-счётчик «сейчас на сайте» (шапка + аналитика + статистика)
   ============================================================ */

/* ── Пиллка в шапке ── */
.online-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; margin-left: auto;
  border-radius: 999px;
  background: var(--green-subtle); border: 1px solid var(--green-border);
  color: var(--green); font-size: 13px; font-weight: 700;
  white-space: nowrap; text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.online-pill:hover {
  border-color: var(--green); color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,220,132,.14);
  text-decoration: none;
}
.online-pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  position: relative; flex: none;
}
.online-pill-dot::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--green); opacity: 0;
  animation: act-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
.online-pill-num { font-family: var(--font-display); font-size: 14px; font-weight: 800; }
.online-pill-unit { font-weight: 600; opacity: .85; }

/* Пульс при смене цифры */
.online-bump {
  animation: online-bump .45s ease;
}
@keyframes online-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ── Блок на страницах аналитики и статистики ── */
.an-online {
  display: flex; align-items: stretch; gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--green-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 18px 0 22px;
  box-shadow: inset 3px 0 0 var(--green);
}
.an-online-main {
  flex: 1 1 auto; min-width: 0;
  padding: 22px 24px;
}
.an-online-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 11px 2px 8px; border-radius: 999px;
  background: var(--green-subtle); border: 1px solid var(--green-border);
  margin-bottom: 12px;
}
.an-online-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  position: relative;
}
.an-online-live-dot::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--green); opacity: 0;
  animation: act-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
.an-online-live-text {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--green);
}
.an-online-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 56px;
}
.an-online-num {
  font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1;
  color: var(--green); font-variant-numeric: tabular-nums;
}
.an-online-word { font-size: 20px; font-weight: 700; color: var(--text-body); }
.an-online-caption { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.an-online-divider {
  width: 1px; background: var(--border-neutral); flex: none;
}
.an-online-today {
  flex: 1 1 40%; min-width: 200px; max-width: 360px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 22px 24px;
}
.an-online-today-label { font-size: 13px; color: var(--text-secondary); line-height: 1.3; }
.an-online-today-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.1;
  color: var(--text-body); font-variant-numeric: tabular-nums;
}
.an-online-today-unit { font-size: 13px; color: var(--text-muted); }

@media (max-width: 640px) {
  .an-online { flex-direction: column; }
  .an-online-divider { width: auto; height: 1px; }
  .an-online-today { max-width: none; min-width: 0; }
  .online-pill-unit { display: none; }
  .online-pill { padding: 0 10px; gap: 4px; }
}
@media (max-width: 420px) {
  .online-pill { display: none; }
}

/* ============================================================
   Страница продвижения (бусты / баллы рейтинга)
   ============================================================ */
.boost-page { padding-top: 14px; padding-bottom: 40px; }

.boost-hero {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 28px; margin: 14px 0 20px; overflow: hidden;
  border: 1px solid var(--border-neutral);
  border-radius: var(--r-xl);
  background:
    radial-gradient(1200px 300px at 15% -20%, rgba(61, 220, 132, .16), transparent 60%),
    radial-gradient(900px 260px at 90% 120%, rgba(85, 182, 246, .12), transparent 60%),
    var(--bg-surface);
}
.boost-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: var(--green-subtle); border: 1px solid var(--green-border);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.boost-title {
  margin: 0 0 10px; font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em;
}
.boost-subtitle { margin: 0 0 18px; max-width: 640px; color: var(--text-secondary); font-size: 15px; }
.boost-hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.boost-hs { font-size: 13px; color: var(--text-muted); }
.boost-hs strong { display: block; font-size: 20px; color: var(--text-body); font-variant-numeric: tabular-nums; }
.boost-hero-badge { flex: none; position: relative; width: 180px; height: 140px; }
.bubble {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 22px; font-size: 30px;
  border: 1px solid var(--border-neutral-hover);
  background: var(--bg-floating); box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  animation: bubbleFloat 5s ease-in-out infinite;
}
.bubble.b1 { top: 6px; left: 8px; transform: rotate(-6deg); }
.bubble.b2 { top: 44px; right: 2px; transform: rotate(5deg); animation-delay: 1.2s; }
.bubble.b3 { bottom: 2px; left: 58px; transform: rotate(-2deg); animation-delay: 2.1s; }
@keyframes bubbleFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.boost-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px;
  align-items: start;
}
.boost-form-wrap, .boost-preview, .boost-steps, .boost-formula, .boost-recent {
  border: 1px solid var(--border-neutral); border-radius: var(--r-lg); background: var(--bg-surface);
}
.boost-form-wrap { padding: 24px; }

.boost-field { margin-bottom: 22px; }
.boost-label {
  display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--text-secondary);
}
.boost-input {
  width: 100%; padding: 11px 14px; font-size: 15px; color: var(--text-body);
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s;
}
.boost-input:focus { outline: none; border-color: var(--green-border); box-shadow: 0 0 0 3px var(--green-subtle); }

.boost-search { position: relative; }
.boost-dropdown {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 320px; overflow-y: auto; border-radius: var(--r-md);
  border: 1px solid var(--border-neutral-hover); background: var(--bg-floating);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.boost-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; font-size: 14px; text-align: left; color: var(--text-body);
  background: transparent; border: 0; cursor: pointer;
}
.boost-opt:hover, .boost-opt.is-hl { background: var(--bg-muted); }
.boost-opt .boost-icon { flex: none; width: 28px; height: 28px; }
.boost-opt .boost-icon img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.boost-opt-host { color: var(--text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.boost-opt-empty { padding: 14px; font-size: 13.5px; color: var(--text-muted); }

.boost-picked {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--green-subtle); border: 1px solid var(--green-border);
}
.boost-picked-icon { font-size: 18px; }
.boost-picked-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boost-clear {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: var(--bg-muted-strong); color: var(--text-secondary); cursor: pointer; font-size: 13px;
}
.boost-clear:hover { color: var(--text-body); }

.boost-stepper { display: flex; align-items: stretch; gap: 10px; }
.boost-step-btn {
  flex: none; width: 46px; border-radius: var(--r-sm); border: 1px solid var(--border-neutral);
  background: var(--bg-muted); color: var(--text-body); font-size: 20px; cursor: pointer; transition: all .15s;
}
.boost-step-btn:hover { border-color: var(--border-neutral-hover); background: var(--bg-muted-strong); }
.boost-num { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.boost-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.boost-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--border-neutral); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; transition: all .15s;
}
.boost-chip:hover { border-color: var(--green-border); color: var(--green); }
.boost-chip.active { background: var(--green-subtle); border-color: var(--green-border); color: var(--green); }
.boost-hint { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }

.boost-durations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.boost-dur { position: relative; cursor: pointer; }
.boost-dur input { position: absolute; opacity: 0; pointer-events: none; }
.boost-dur-body {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border-neutral); background: var(--bg-surface); transition: all .15s;
}
.boost-dur input:checked + .boost-dur-body,
.boost-pay input:checked + .boost-pay-body {
  border-color: var(--green-border); background: var(--green-subtle);
  box-shadow: inset 0 0 0 1px var(--green-border);
}
.boost-dur-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.boost-dur-days { font-size: 14px; font-weight: 800; }
.boost-dur-discount {
  font-size: 11px; font-weight: 800; color: var(--green); background: var(--green-subtle);
  border: 1px solid var(--green-border); border-radius: 999px; padding: 1px 7px;
}
.boost-dur-prices { display: flex; align-items: baseline; gap: 8px; }
.boost-dur-price { font-size: 15px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.boost-dur-old { font-size: 11.5px; color: var(--text-muted); text-decoration: line-through; }
.boost-dur-unit { font-size: 11px; color: var(--text-muted); }
.boost-dur-per { font-size: 11px; color: var(--text-muted); }

.boost-pays { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.boost-pay { position: relative; cursor: pointer; }
.boost-pay input { position: absolute; opacity: 0; pointer-events: none; }
.boost-pay-body {
  display: block; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border-neutral); background: var(--bg-surface); transition: all .15s;
}
.boost-pay-name { display: block; font-size: 14px; font-weight: 800; }
.boost-pay-desc { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }

.boost-total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px; border-radius: var(--r-md);
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
}
.boost-total-label { font-size: 12.5px; color: var(--text-muted); }
.boost-total-price { font-size: 26px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.boost-total-note { font-size: 12.5px; color: var(--text-secondary); }
.boost-btn {
  padding: 13px 26px; font-size: 15px; font-weight: 800; color: #06120a; cursor: pointer;
  border: 0; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #3ddc84, #2bb8d6);
  box-shadow: 0 10px 26px rgba(61, 220, 132, .25);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.boost-btn:hover { filter: brightness(1.06); box-shadow: 0 14px 34px rgba(61, 220, 132, .35); }
.boost-btn:active { transform: translateY(1px); }
.boost-btn:disabled { opacity: .55; cursor: not-allowed; }
.boost-fine { margin: 12px 0 0; font-size: 12px; color: var(--text-muted); }

.boost-preview { padding: 20px; position: sticky; top: 76px; }
.boost-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.boost-preview-title { font-size: 15px; font-weight: 800; }
.boost-guarantee {
  font-size: 11px; font-weight: 700; color: var(--green); text-align: right;
  background: var(--green-subtle); border: 1px solid var(--green-border); border-radius: 999px; padding: 3px 9px;
}
.boost-preview-empty { font-size: 13px; color: var(--text-muted); padding: 24px 4px; }
.boost-leaderboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.boost-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: var(--r-sm); font-size: 13px;
  border: 1px solid transparent; transition: all .15s;
}
.boost-row:hover { background: var(--bg-muted); }
.boost-rank {
  flex: none; width: 24px; text-align: center; font-weight: 800; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.boost-rank.top { color: var(--gold); }
.boost-icon { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.boost-icon img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.boost-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boost-meta { flex: none; font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.boost-pts { flex: none; font-size: 11.5px; font-weight: 800; color: var(--gold); }
.boost-more { justify-content: center; color: var(--text-muted); border: 0; }
.boost-row.you {
  background: var(--green-subtle); border-color: var(--green-border);
  box-shadow: 0 0 0 1px var(--green-border), 0 8px 22px rgba(61, 220, 132, .12);
}
.boost-row.you .boost-rank { color: var(--green); }
.boost-row.you .boost-name { color: var(--green); }
.boost-row.you::after {
  content: "ВАШ СЕРВЕР"; margin-left: auto; flex: none;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; color: var(--green);
  border: 1px solid var(--green-border); border-radius: 4px; padding: 2px 5px;
}
.boost-preview-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-neutral);
  display: flex; flex-direction: column; gap: 6px; font-size: 13px;
}
.boost-preview-foot b { color: var(--green); }

.boost-steps { margin-top: 20px; padding: 24px; }
.boost-section-title { margin: 0 0 18px; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.boost-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.boost-step { display: flex; gap: 14px; }
.boost-step-num {
  flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; border-radius: 50%;
  color: var(--green); background: var(--green-subtle); border: 1px solid var(--green-border);
}
.boost-step-title { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.boost-step p { margin: 0; font-size: 13px; color: var(--text-muted); }

.boost-formula { margin-top: 20px; padding: 24px; }
.boost-formula-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.boost-rule-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-link); background: rgba(85, 182, 246, .1); border: 1px solid rgba(85, 182, 246, .25);
  border-radius: 6px; padding: 3px 9px; margin-bottom: 8px;
}
.boost-formula-rule p { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); }
.boost-formula-rule p strong { color: var(--text-body); }
.boost-formula-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.boost-chip-static {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--text-secondary); background: var(--bg-muted); border: 1px solid var(--border-neutral);
}

.boost-recent { margin-top: 20px; padding: 24px; }
.boost-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.boost-recent-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-md); border: 1px solid var(--border-neutral);
  background: var(--bg-surface); color: var(--text-body); transition: all .15s;
}
.boost-recent-item:hover { text-decoration: none; border-color: var(--border-neutral-hover); transform: translateY(-2px); }
.boost-recent-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boost-recent-pts { flex: none; font-size: 12px; font-weight: 800; color: var(--gold); }
.boost-recent-time { flex: none; font-size: 11px; color: var(--text-muted); }

.boost-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13.5px; }
.boost-msg.ok { display: block; background: var(--green-subtle); border: 1px solid var(--green-border); color: var(--green); }
.boost-msg.err { display: block; background: rgba(255, 92, 108, .1); border: 1px solid rgba(255, 92, 108, .3); color: var(--red); }

@media (max-width: 1100px) {
  .boost-layout { grid-template-columns: 1fr; }
  .boost-preview { position: static; }
}
@media (max-width: 860px) {
  .boost-hero-badge { display: none; }
  .boost-steps-grid { grid-template-columns: 1fr; }
  .boost-formula-grid { grid-template-columns: 1fr; }
  .boost-durations { grid-template-columns: 1fr; }
  .boost-pays { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .boost-form-wrap { padding: 16px; }
  .boost-total { flex-direction: column; align-items: stretch; }
  .boost-btn { width: 100%; }
}

/* ============================================================
   Вайпы серверов
   ============================================================ */
.wipe-next-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; margin: 18px 0 26px;
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: var(--r-lg); font-size: 14px; color: var(--text-secondary);
}
.wipe-next-strip strong a { color: var(--text-body); }
.wipe-next-strip .next-strong { color: var(--green); font-weight: 700; }
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .5); }
  70% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.wipe-section { margin-bottom: 34px; }
.wipe-sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wipe-sec-head .section-title { display: inline-flex; align-items: center; gap: 10px; }
.st-ico { flex: none; width: 20px; height: 20px; color: var(--green); }
.wb-ico { flex: none; width: 12px; height: 12px; }
.wipe-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  color: #fff; background: linear-gradient(135deg, #ff5c6c, #ff9d5c);
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(255, 92, 108, .35);
  animation: badgePulse 2.2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{box-shadow:0 4px 14px rgba(255,92,108,.35);} 50%{box-shadow:0 4px 20px rgba(255,92,108,.6);} }

.wipe-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 14px 18px;
  background: var(--card-glass-bg);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--r-xl);
  padding: 18px; margin-bottom: 14px;
  transition: transform .28s cubic-bezier(.22,.7,.35,1), box-shadow .28s, border-color .28s;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.wipe-card::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--mode,#3ddc84), color-mix(in srgb, var(--mode,#3ddc84) 40%, transparent));
}
.wipe-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mode,#3ddc84) 55%, var(--border-neutral));
  box-shadow: 0 18px 42px rgba(0,0,0,.32), 0 0 0 1px color-mix(in srgb, var(--mode,#3ddc84) 12%, transparent);
}
.wipe-glow {
  position: absolute; inset: -40%; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(60% 50% at 20% 0%, color-mix(in srgb, var(--mode,#3ddc84) 18%, transparent), transparent 70%);
}
.wipe-card:hover .wipe-glow { opacity: 1; }
.wipe-art {
  position: absolute; inset: 0; pointer-events: none; opacity: .55; z-index: 0;
  background-image: var(--mode-art); background-repeat: no-repeat;
  background-position: 100% 100%; background-size: 240px 120px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
}
.wipe-card > :not(.wipe-art):not(.wipe-glow) { position: relative; z-index: 1; }

.card-today { border-color: color-mix(in srgb, var(--red) 45%, var(--border-neutral)); animation: todayBreath 2.6s ease-in-out infinite; }
.card-tomorrow { border-color: color-mix(in srgb, var(--gold) 42%, var(--border-neutral)); }
@keyframes todayBreath {
  0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,.18); }
  50% { box-shadow: 0 6px 26px color-mix(in srgb, var(--red) 28%, transparent); }
}

.wipe-ico-col { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.wipe-ico {
  width: 56px; height: 56px; border-radius: 16px; overflow: hidden; flex: none;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--mode,#3ddc84) 22%, #000), var(--bg-muted));
  border: 1px solid color-mix(in srgb, var(--mode,#3ddc84) 35%, var(--border-neutral));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.wipe-ico::after { content:""; position:absolute; inset:0; border-radius:16px; box-shadow: inset 0 0 18px color-mix(in srgb, var(--mode,#3ddc84) 20%, transparent); }
.wipe-ico img { width: 100%; height: 100%; object-fit: cover; }
.wipe-icon-fallback {
  font-size: 24px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--mode,#3ddc84) 60%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wipe-ico-pop { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.wipe-ico-pop:hover { transform: scale(1.1) rotate(-6deg); }

.wipe-date-badge {
  min-width: 58px; padding: 7px 6px 5px; border-radius: 12px;
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  text-align: center;
}
.wipe-date-badge .wdb-wd { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.wipe-date-badge .wdb-day { font-size: 22px; font-weight: 900; color: var(--text-body); letter-spacing: -.5px; line-height: 1.2; }
.wipe-date-badge .wdb-mon { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.wipe-date-badge.is-today { background: linear-gradient(160deg, color-mix(in srgb, var(--red) 30%, #000), var(--bg-muted)); border-color: color-mix(in srgb, var(--red) 55%, transparent); box-shadow: 0 8px 22px color-mix(in srgb, var(--red) 30%, transparent); }
.wipe-date-badge.is-today .wdb-day { background: linear-gradient(135deg,#ff9d7a,#ff5c6c); -webkit-background-clip:text; background-clip:text; color: transparent; }
.wipe-date-badge.is-tomorrow { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 24%, #000), var(--bg-muted)); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.wipe-date-badge.is-tomorrow .wdb-day { color: var(--gold); }

.wipe-body { min-width: 0; }
.wipe-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wc-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.kic-ico { flex: none; width: 13px; height: 13px; color: var(--mode,#3ddc84); }
.wipe-server-name {
  font-size: 17px; font-weight: 800; color: var(--text-body); letter-spacing: .1px;
  position: relative; background-position: 0 100%; background-repeat: no-repeat;
  background-size: 0% 2px; transition: background-size .3s, color .2s;
}
.wipe-server-name:hover { color: var(--mode,#3ddc84); text-decoration: none; background-image: linear-gradient(var(--mode,#3ddc84), var(--mode,#3ddc84)); background-size: 100% 2px; }
.wipe-mode-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  color: var(--mode,#3ddc84);
  background: color-mix(in srgb, var(--mode,#3ddc84) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--mode,#3ddc84) 40%, transparent);
  padding: 3px 10px; border-radius: 999px;
}
.wipe-mode-chip .wm-ico { width: 12px; height: 12px; }
.wipe-summary { margin: 9px 0 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.6; }
.wipe-changes {
  list-style: none; margin: 12px 0 0; padding: 10px 14px;
  display: grid; gap: 7px; border-radius: 12px;
  background: color-mix(in srgb, var(--mode,#3ddc84) 7%, var(--bg-muted));
  border: 1px solid color-mix(in srgb, var(--mode,#3ddc84) 16%, var(--border-neutral));
}
.wipe-changes li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.wc-check { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--green); }
.wc-text { min-width: 0; }
.wipe-meta { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-top: 11px; font-size: 12.5px; color: var(--text-muted); }
.wm-item { display: inline-flex; align-items: center; gap: 6px; }
.wm-item b { font-weight: 700; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.wm-ico { flex: none; width: 14px; height: 14px; color: var(--mode,#3ddc84); }
.tz-msk { margin-left: 2px; font-size: 11px; color: var(--text-muted); }
.wm-cd b { color: var(--green); }
.wm-cd-label { color: var(--text-muted); }

.wipe-badges { grid-column: 1 / -1; margin-top: 2px; }
.wipe-badge-cd { color: var(--green); }
.wipe-badge-cd .wm-ico { color: var(--green); }

.wipe-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 13px; border-top: 1px solid var(--border-neutral); position: relative;
}
.wipe-src { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.wipe-src-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em;
}
.src-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--text-secondary);
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  padding: 6px 13px; border-radius: 999px; transition: all .22s;
}
.src-badge:hover { color: var(--text-body); border-color: var(--mode,#3ddc84); transform: translateY(-1px); text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.src-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.wipe-full-link {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  font-size: 13px; font-weight: 700; color: var(--mode,#3ddc84);
  padding: 7px 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--mode,#3ddc84) 60%, transparent);
  transition: all .22s; background: color-mix(in srgb, var(--mode,#3ddc84) 8%, transparent);
}
.wipe-full-link:hover { background: var(--mode,#3ddc84); color: #0b0d10; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--mode,#3ddc84) 35%, transparent); }
.fl-arr { flex: none; width: 15px; height: 15px; transition: transform .2s; }
.wipe-full-link:hover .fl-arr { transform: translate(2px, -2px); }
.wipe-note { color: var(--text-muted); font-size: 13px; margin-top: 10px; }
.hs-ico { flex: none; width: 15px; height: 15px; color: var(--green); }

/* Таймер в карточке — зелёная подсветка */
.wm-cd-val { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }

.wipe-today-pill {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 3px 11px; border-radius: 999px;
  animation: pillPulse 2.2s ease-in-out infinite;
}
.wipe-today-pill.is-tomorrow { background: var(--gold); animation: none; }
@keyframes pillPulse { 0%,100%{opacity:1;} 50%{opacity:.62;} }

/* анимация появления карточек вайпов */
@keyframes wipeIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.wipe-anim { animation: wipeIn .55s cubic-bezier(.22,.7,.35,1) both; }
.wipe-anim:nth-child(1) { animation-delay: .02s; }
.wipe-anim:nth-child(2) { animation-delay: .07s; }
.wipe-anim:nth-child(3) { animation-delay: .12s; }
.wipe-anim:nth-child(4) { animation-delay: .17s; }
.wipe-anim:nth-child(5) { animation-delay: .22s; }
.wipe-anim:nth-child(6) { animation-delay: .27s; }
.wipe-anim:nth-child(7) { animation-delay: .32s; }
.wipe-anim:nth-child(8) { animation-delay: .37s; }
.wipe-anim:nth-child(9) { animation-delay: .42s; }
.wipe-anim:nth-child(n+10) { animation-delay: .48s; }

@media (max-width: 560px) {
  .wipe-card { grid-template-columns: 1fr; }
  .wipe-ico-col { flex-direction: row; align-items: center; justify-content: flex-start; }
}


.card-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.srv-socials { margin-top: 18px; }
.srv-socials .section-title { margin-bottom: 12px; }

.sc-ico { display: inline-flex; align-items: center; }
.source-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  color: var(--text-secondary); font-variant-numeric: tabular-nums; line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.source-chip:hover {
  text-decoration: none; transform: translateY(-1px);
}
.source-chip .sc-name { color: var(--text-body); }
.source-chip .sub-count { color: var(--text-muted); font-weight: 500; }

.sc-chip--telegram { background: rgba(34, 158, 217, .08); border-color: rgba(34, 158, 217, .35); }
.sc-chip--telegram:hover { background: rgba(34, 158, 217, .16); border-color: rgba(34, 158, 217, .55); color: var(--brand-telegram); }
.sc-chip--vk { background: rgba(0, 119, 255, .08); border-color: rgba(0, 119, 255, .35); }
.sc-chip--vk:hover { background: rgba(0, 119, 255, .16); border-color: rgba(0, 119, 255, .55); color: var(--brand-vk); }
.sc-chip--discord { background: rgba(88, 101, 242, .08); border-color: rgba(88, 101, 242, .35); }
.sc-chip--discord:hover { background: rgba(88, 101, 242, .16); border-color: rgba(88, 101, 242, .55); color: var(--brand-discord); }
.sc-chip--youtube { background: rgba(255, 0, 0, .07); border-color: rgba(255, 0, 0, .32); }
.sc-chip--youtube:hover { background: rgba(255, 0, 0, .14); border-color: rgba(255, 0, 0, .55); color: var(--brand-youtube); }
.sc-chip--site:hover { background: var(--bg-muted-strong); border-color: var(--border-neutral-hover); color: var(--text-body); }

@media (max-width: 640px) {
  .wipe-card { padding: 16px 14px; }
  .wipe-today-pill { order: 3; }
}

/* ============================================================
   Продвижение — улучшения: компактный вид, поиск,
   анимированный предпросмотр подъёма, боковое меню
   ============================================================ */
.boost-main { min-width: 0; }

/* Компактнее */
.boost-form-wrap { padding: 18px; }
.boost-field { margin-bottom: 16px; }
.boost-label { margin-bottom: 6px; }
.boost-hero { padding: 18px 22px; margin: 0 0 16px; border-radius: var(--r-lg); }
.boost-kicker { margin-bottom: 8px; padding: 4px 9px; font-size: 11px; }
.boost-title { font-size: clamp(20px, 2.6vw, 27px); margin-bottom: 8px; }
.boost-subtitle { margin-bottom: 14px; font-size: 14px; }
.boost-hero-stats { gap: 8px 20px; }
.boost-hs { font-size: 12px; }
.boost-hs strong { font-size: 17px; }
.boost-hero-rocket {
  flex: none; width: 64px; height: 64px; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; background: var(--bg-floating);
  border: 1px solid var(--border-neutral-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
  animation: rocketFloat 4.5s ease-in-out infinite;
}
@keyframes rocketFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.boost-steps, .boost-formula, .boost-recent { margin-top: 16px; padding: 20px; }
.boost-section-title { margin-bottom: 14px; font-size: 17px; }
.boost-steps-grid { gap: 14px; }
.boost-step-num { width: 30px; height: 30px; font-size: 14px; }

/* Сетка формы + предпросмотра внутри колонки с сайдбаром */
.boost-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }

/* Поиск: иконка и крестик */
.boost-search .boost-input { padding-left: 38px; padding-right: 36px; }
.boost-search-ico {
  position: absolute; left: 12px; top: 50%; translate: 0 -50%;
  font-size: 14px; opacity: .6; pointer-events: none;
}
.boost-search-clear {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: var(--bg-muted-strong); color: var(--text-secondary);
  font-size: 11px; cursor: pointer; line-height: 1;
}
.boost-search-clear:hover { color: var(--text-body); }

/* Дропдаун поиска */
.boost-dropdown-head {
  position: sticky; top: 0; z-index: 1;
  padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--text-muted); text-transform: uppercase;
  background: var(--bg-floating); border-bottom: 1px solid var(--border-neutral);
}
.boost-opt { padding: 8px 12px; }
.boost-opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.boost-opt-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boost-opt-host { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.boost-opt-pts { flex: none; font-size: 11.5px; font-weight: 800; color: var(--gold); }

/* Выбранный сервер */
.boost-picked { padding: 8px 10px; }
.boost-picked-meta { font-size: 11.5px; color: var(--green); opacity: .85; }

/* Предпросмотр: компактные строки */
.boost-preview { padding: 16px; }
.boost-preview-title { font-size: 14px; }
.boost-guarantee { font-size: 10px; padding: 2px 8px; }
.boost-row { padding: 5px 8px; font-size: 12.5px; }
.boost-meta { font-size: 11px; }

/* Панель подъёма: текущее и новое место */
.boost-jump {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 10px; margin-bottom: 12px;
  border-radius: var(--r-md);
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
}
.boost-jump-cell { text-align: center; min-width: 64px; }
.boost-jump-label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.boost-jump-rank { font-size: 26px; font-weight: 800; color: var(--text-body); font-variant-numeric: tabular-nums; }
.boost-jump-rank-to { color: var(--green); }
.boost-jump-rank.bj-flash { animation: bjPop .5s ease; }
@keyframes bjPop {
  0% { transform: scale(.7); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.boost-jump-arrow { font-size: 22px; color: var(--text-muted); }

/* Прогресс к первому месту */
.boost-progress { margin-bottom: 12px; }
.boost-progress-track {
  height: 6px; border-radius: 999px; background: var(--bg-muted-strong);
  border: 1px solid var(--border-neutral); overflow: hidden;
}
.boost-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-strong), var(--green));
  box-shadow: 0 0 10px rgba(61, 220, 132, .5);
  transition: width .6s cubic-bezier(.22, .9, .28, 1);
}
.boost-progress-label { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }

/* Анимация всплытия «вашего сервера» */
.boost-row.you {
  position: relative;
  box-shadow: 0 0 0 1px var(--green-border), 0 6px 18px rgba(61, 220, 132, .15);
}
.boost-row.boost-bump { animation: boostBump .6s ease; }
@keyframes boostBump {
  0% { box-shadow: 0 0 0 1px var(--green-border), 0 0 0 0 rgba(61, 220, 132, 0); }
  40% { box-shadow: 0 0 0 1px var(--green-border), 0 0 26px 6px rgba(61, 220, 132, .55); }
  100% { box-shadow: 0 0 0 1px var(--green-border), 0 6px 18px rgba(61, 220, 132, .15); }
}

/* Место в форме */
.boost-place {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 12px; color: var(--text-secondary);
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  border-radius: 999px; padding: 3px 10px;
}
.boost-place-label { color: var(--text-muted); }
.boost-place-nums { font-weight: 800; font-variant-numeric: tabular-nums; }
.boost-place-nums.up { color: var(--green); }
.boost-place-organic { opacity: .85; }

/* Итог и кнопка компактнее */
.boost-total { padding: 12px 14px; }
.boost-total-price { font-size: 23px; }
.boost-btn { padding: 11px 22px; font-size: 14px; }

/* С сайдбаром колонка уже: складываем форму и предпросмотр раньше */
@media (max-width: 1180px) {
  .boost-layout { grid-template-columns: 1fr; }
  .boost-preview { position: static; }
  .boost-jump { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .boost-hero-rocket { display: none; }
  .boost-steps-grid { grid-template-columns: 1fr; }
  .boost-formula-grid { grid-template-columns: 1fr; }
}

/* FAQ (видимый блок частых вопросов) */
.faq-section { margin-top: 30px; }
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 20px; color: var(--accent, #eeb32b); flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { margin: 0; padding: 0 18px 16px; color: var(--text-muted, #9a9a9a); font-size: 14px; line-height: 1.6; }

/* ---------- Сайдбар сервера: похожие сервера, рейтинги, раскрутка ---------- */
.side-similar { padding: 12px 14px; }
.side-similar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.side-similar-head::-webkit-details-marker { display: none; }
.side-similar-head .side-box-title { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.side-similar-count { background: var(--bg-muted); border: 1px solid var(--border-neutral); color: var(--text-secondary); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.side-similar-sub { font-size: 12px; color: var(--text-muted); margin: 8px 0 4px; }
.side-similar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-similar-item { margin: 0 -14px; }
.side-sim-link { display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: var(--r-sm); transition: background .15s; }
.side-sim-link:hover { background: var(--bg-muted); text-decoration: none; }
.side-sim-icon { flex: none; width: 32px; height: 32px; border-radius: 6px; overflow: hidden; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; }
.side-sim-icon img { width: 32px; height: 32px; object-fit: cover; }
.icon-fallback-sm { font-size: 15px; }
.side-sim-letter { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; background: var(--clr, #3ddc84); }
.side-sim-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-sim-name { font-size: 13.5px; font-weight: 600; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sim-online { font-size: 11.5px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 5px; }
.side-sim-online.dim { color: var(--text-muted); }
.side-sim-inter { font-size: 11.5px; color: var(--gold); }
.side-sim-inter b { font-weight: 700; }

/* Место в рейтингах */
.rat-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.rat-tab { flex: 1; padding: 6px 4px; font-size: 11.5px; font-weight: 600; color: var(--text-muted); background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); cursor: pointer; transition: all .15s; font-family: inherit; }
.rat-tab:hover { color: var(--text-body); }
.rat-tab.is-active { color: var(--green); border-color: var(--green-border); background: var(--green-subtle); }
.rat-place { display: flex; align-items: baseline; gap: 8px; }
.rat-num { font-size: 24px; font-weight: 800; color: var(--text-body); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.rat-total { font-size: 13px; color: var(--text-muted); }
.rat-above { font-size: 12.5px; color: var(--text-secondary); margin: 2px 0 8px; }
.rat-above b { color: var(--green); }
.rat-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-neutral); border-radius: var(--r-sm); overflow: hidden; }
.rat-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12.5px; }
.rat-row + .rat-row { border-top: 1px solid var(--border-neutral); }
.rat-row.is-current { background: var(--green-subtle); }
.rat-rn { flex: none; width: 26px; color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.rat-link { flex: 1; min-width: 0; color: var(--text-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rat-link:hover { color: var(--text-link); text-decoration: none; }
.rat-row.is-current .rat-link { color: var(--green); }
.rat-val { flex: none; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Раскрутка сервера */
.side-promo .side-box-text { color: var(--text-secondary); font-size: 13px; margin: 0 0 10px; }
.promo-active-title { font-size: 13.5px; color: var(--text-body); font-weight: 600; margin-bottom: 10px; }
.promo-active-title b { color: var(--green); }
.promo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.promo-stat { background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); padding: 8px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.promo-num { font-size: 16px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.promo-label { font-size: 10.5px; color: var(--text-muted); line-height: 1.25; }
.promo-preview { background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.promo-prev-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-secondary); }
.promo-streak { font-size: 12.5px; color: var(--text-body); margin: 8px 0; }
.promo-streak b { color: var(--gold); }
.promo-discounts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.promo-disc { font-size: 11px; color: var(--text-secondary); background: var(--bg-muted); border: 1px dashed var(--border-neutral-hover); border-radius: 999px; padding: 3px 10px; }
.promo-cta { display: block; text-align: center; padding: 11px 14px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--green-strong), var(--green)); color: #fff; font-weight: 700; font-size: 14px; transition: filter .15s; }
.promo-cta:hover { filter: brightness(1.1); color: #fff; text-decoration: none; }

/* Prev/next с иконкой и онлайном */
.srv-pn-body { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.srv-pn-prev .srv-pn-body { flex-direction: row; }
.srv-pn-next .srv-pn-body { flex-direction: row-reverse; }
.srv-pn-icon { flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; }
.srv-pn-icon img { width: 40px; height: 40px; object-fit: cover; }
.icon-fallback-pn { font-size: 20px; }
.srv-pn-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.srv-pn-online { font-size: 12px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.srv-pn-online.dim { color: var(--text-muted); }
.srv-pn-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Место в рейтингах — таблица в основной колонке ---------- */
.srv-ratings-box .rat-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.srv-ratings-box .rat-tab {
  flex: none; padding: 8px 16px; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .06); border-radius: 999px;
  cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.srv-ratings-box .rat-tab:hover { color: var(--text-body); border-color: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.srv-ratings-box .rat-tab:active { transform: translateY(1px) scale(.97); }
.srv-ratings-box .rat-tab.is-active {
  color: var(--green); border-color: var(--green-border); background: var(--green-subtle);
  box-shadow: 0 0 0 1px var(--green-border), 0 4px 16px rgba(61, 220, 132, .18);
}
.rat-tbl-wrap { overflow-x: auto; border: 1px solid var(--border-neutral); border-radius: var(--r-sm); }
.rat-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.rat-table thead th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); font-weight: 700; padding: 11px 14px;
  border-bottom: 1px solid var(--border-neutral); white-space: nowrap; background: var(--bg-muted);
}
.rat-table thead th.rt-rank { text-align: center; }
.rat-table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border-neutral); vertical-align: middle; }
.rat-table tbody tr { transition: background .18s ease; }
.rat-table tbody tr:last-child td { border-bottom: 0; }
.rat-table tbody tr:hover { background: rgba(255, 255, 255, .04); }
.rat-table tr.rt-current { background: var(--green-subtle); }
.rat-table tr.rt-current:hover { background: rgba(61, 220, 132, .16); }
.rat-table tr.rt-current td:first-child {
  box-shadow: inset 3px 0 0 var(--green);
  animation: rtCurrentGlow 3.2s ease-in-out infinite;
}
@keyframes rtCurrentGlow {
  0%, 100% { box-shadow: inset 3px 0 0 var(--green); }
  50% { box-shadow: inset 3px 0 0 var(--green), 0 0 14px rgba(61, 220, 132, .3); }
}
.rt-rank { width: 68px; text-align: center; }
.rt-medal-svg { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
.rt-medal-ico {
  width: 26px; height: 26px; animation: rtMedalIn .55s cubic-bezier(.3, 1.6, .5, 1) .35s both;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45));
}
@keyframes rtMedalIn {
  0% { transform: scale(0) translateY(14px); opacity: 0; }
  60% { transform: scale(1.12) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.rt-num { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-server { min-width: 200px; max-width: 300px; }
.rt-server .vt-icon { margin-right: 8px; }
.rt-server .vt-fb { width: 18px; height: 18px; color: var(--text-muted); }
.rt-server .vt-name {
  display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: middle;
}
.rt-votes { color: var(--green); font-weight: 700; }
.rt-num-ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.rt-gap td { text-align: center; color: var(--text-muted); font-size: 14px; padding: 6px; letter-spacing: 2px; }
.rt-today { display: block; font-size: 11.5px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }

/* Rating tab animations */
.rat-pane { display: none; }
.rat-pane.is-active { display: block; }
.rat-pane-fade-out { animation: ratFadeOut .22s ease both; }
.rat-pane-fade-in { animation: ratFadeIn .32s cubic-bezier(.3, 1, .5, 1) both; }
@keyframes ratFadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(6px); } }
@keyframes ratFadeIn { from { opacity: 0; transform: translateY(10px) scale(.993); } to { opacity: 1; transform: none; } }

/* Rating table row stagger */
.rat-pane.is-active .rat-table tbody tr {
  opacity: 0;
  animation: ratRowIn .35s ease both;
}
.rat-pane.is-active .rat-table tbody tr:nth-child(1) { animation-delay: 40ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(2) { animation-delay: 70ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(3) { animation-delay: 100ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(4) { animation-delay: 130ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(5) { animation-delay: 160ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(6) { animation-delay: 190ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(7) { animation-delay: 220ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(8) { animation-delay: 250ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(9) { animation-delay: 280ms; }
.rat-pane.is-active .rat-table tbody tr:nth-child(10) { animation-delay: 310ms; }
@keyframes ratRowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* «этот сервер» бейдж */
.rat-pane.is-active tr.rt-current .vt-this { animation: vtThisIn .45s cubic-bezier(.3, 1.4, .5, 1) .55s both; }
@keyframes vtThisIn { from { opacity: 0; transform: translateX(-6px) scale(.9); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .srv-ratings-box .rat-tab { transition: none; }
  .rat-pane-fade-out, .rat-pane-fade-in { animation: none; }
  .rat-pane.is-active .rat-table tbody tr { animation: none; opacity: 1; }
  .rt-medal-ico, .rt-current td:first-child, .rt-current .vt-this { animation: none; }
}

/* ---------- Раскрутка сервера — широкий блок в основной колонке ---------- */
.srv-promo-box { position: relative; overflow: hidden; }
.srv-promo-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 160px at 90% -10%, rgba(61, 220, 132, .12), transparent 70%);
}
.srv-promo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; position: relative; }
.srv-promo-head h2 { margin: 0; }
.srv-promo-badge {
  font-size: 13px; color: var(--green); background: var(--green-subtle);
  border: 1px solid var(--green-border); border-radius: 999px; padding: 6px 14px; font-weight: 600; white-space: nowrap;
}
.srv-promo-badge b { color: var(--green); }
.srv-promo-badge-off { color: var(--text-muted); background: var(--bg-muted); border-color: var(--border-neutral); }
.srv-promo-box .promo-stats { margin-bottom: 12px; }
.srv-promo-box .promo-stat { padding: 12px 10px; }
.srv-promo-box .promo-num { font-size: 20px; }
.srv-promo-box .promo-label { font-size: 11.5px; }
.srv-promo-box .promo-cta { margin-top: 4px; }
@media (max-width: 520px) {
  .srv-promo-box .promo-stats { grid-template-columns: 1fr; }
}

/* ---------- График онлайна: периоды + сводка + тултип ---------- */
.srv-chart-box .srv-sec-head { align-items: center; }
.chart-periods { display: flex; gap: 6px; }
.chart-period {
  padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: 999px;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.chart-period:hover { color: var(--text-body); border-color: var(--border-neutral-hover); }
.chart-period.is-active { color: var(--green); border-color: var(--green-border); background: var(--green-subtle); }
.chart-summary {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px;
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-muted);
}
.chart-sum-item { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.chart-sum-val { font-size: 14px; font-weight: 700; color: var(--text-body); font-variant-numeric: tabular-nums; }
#chart-tip { color: var(--green); }
#online-chart-wrap { position: relative; }
.chart-axis-label { font-size: 10px; fill: var(--text-muted); font-family: var(--font-mono); }

/* Линия рисуется, область проявляется, метки «выпрыгивают» */
.chart-area { opacity: 0; animation: chart-fade-in .9s ease .12s forwards; }
.chart-line {
  fill: none; stroke: #3ddc84; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: chart-draw 1.1s cubic-bezier(.4, 0, .25, 1) forwards;
}
.chart-grid-line { opacity: 0; animation: chart-fade-in .5s ease forwards; }
.chart-grid-line line { stroke: rgba(255,255,255,.06); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-grid-label {
  fill: var(--text-muted); font-size: 9px; font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.chart-lbl { animation: chart-lbl-in .5s cubic-bezier(.22, 1, .36, 1) both; }
.chart-lbl-bg { fill: rgba(18,19,20,.94); stroke: var(--green-border); stroke-width: 1; }
.chart-lbl-text {
  fill: var(--green); font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.chart-lbl-stem { stroke: rgba(61,220,132,.45); stroke-width: 1; }
.chart-peak-dot {
  fill: var(--green); stroke: var(--bg-page); stroke-width: 2;
  animation: chart-dot-in .4s cubic-bezier(.3, 1.4, .5, 1) both;
}
.chart-hover-dot { animation: chart-hover-pulse 1s ease-in-out infinite alternate; }

.chart-tooltip {
  position: absolute; z-index: 20; pointer-events: none;
  background: var(--bg-floating); border: 1px solid var(--green-border);
  color: var(--green); font-size: 12px; font-weight: 700; white-space: nowrap;
  padding: 5px 10px; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 0 4px rgba(61,220,132,.06);
  transform: translateY(-100%);
  animation: chart-tip-in .15s ease;
}
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes chart-lbl-in {
  from { opacity: 0; transform: translateY(9px) scale(.7); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chart-dot-in {
  from { opacity: 0; transform: scale(.3); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes chart-hover-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.4); }
}
@keyframes chart-tip-in {
  from { opacity: 0; transform: translateY(-85%) scale(.9); }
  to { opacity: 1; transform: translateY(-100%) scale(1); }
}
@media (max-width: 640px) {
  .chart-periods { flex-wrap: wrap; }
  .chart-summary { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-area, .chart-line, .chart-grid-line, .chart-lbl,
  .chart-peak-dot, .chart-hover-dot, .chart-tooltip { animation: none !important; }
  .chart-area { opacity: 1; }
  .chart-line { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ---------- Теги сервера (компактный бейдж-стиль) ---------- */
.srv-tags-compact { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.tg-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 3px 0; }
.tg-group-label {
  font-size: 10px; font-weight: 800; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  min-width: 74px; flex-shrink: 0; padding-top: 2px;
}
.tg-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.tg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), var(--bg-muted);
  border: 1px solid var(--border-neutral);
  border-radius: 999px; font-size: 12px; cursor: default;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  animation: tg-chip-in .5s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--d, 0ms);
}
.tg-chip:hover {
  transform: translateY(-2px);
  border-color: var(--border-neutral-hover);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), var(--bg-muted);
  box-shadow: 0 5px 14px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.025);
}
.tg-chip-label {
  color: var(--text-body); font-weight: 600; font-size: 11.5px;
  text-decoration: none; line-height: 1; white-space: nowrap; letter-spacing: .01em;
}
a.tg-chip-label:hover { color: var(--primary); text-decoration: none; }
.tg-chip-score {
  font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums;
  line-height: 1; padding: 2px 6px; border-radius: 999px;
  background: var(--bg-muted-strong);
}
.tg-chip-score.is-pos { color: var(--green); background: var(--green-subtle); box-shadow: inset 0 0 0 1px var(--green-border); }
.tg-chip-score.is-neg { color: var(--red); background: rgba(255,92,108,.1); box-shadow: inset 0 0 0 1px rgba(255,92,108,.28); }
.tg-chip-vote {
  display: inline-flex; align-items: stretch; gap: 2px; margin-left: 2px;
  padding: 2px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.05);
  border-radius: 999px;
}
.tg-vote {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px;
  font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
  font-family: inherit; line-height: 1;
  color: var(--text-muted); background: transparent;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .12s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.tg-vote-ico { width: 12px; height: 12px; flex: none; transition: transform .16s ease; }
.tg-vote:hover { color: var(--text-body); background: rgba(255,255,255,.06); }
.tg-vote:hover .tg-vote-ico { transform: scale(1.15) translateY(-1px); }
.tg-vote.tg-up:hover { color: var(--green); background: var(--green-subtle); }
.tg-vote.tg-down:hover .tg-vote-ico { transform: scale(1.15) translateY(1px); }
.tg-vote.tg-down:hover { color: var(--red); background: rgba(255,92,108,.1); }
.tg-vote:active { transform: scale(.82); }
.tg-vote.tg-up.is-mine {
  color: var(--green); background: var(--green-subtle);
  box-shadow: 0 0 0 1px var(--green-border), 0 2px 14px rgba(61,220,132,.22);
}
.tg-vote.tg-down.is-mine {
  color: var(--red); background: rgba(255,92,108,.1);
  box-shadow: 0 0 0 1px rgba(255,92,108,.32), 0 2px 14px rgba(255,92,108,.2);
}
.tg-vote.is-mine .tg-count { color: inherit; }
.tg-vote.pop { animation: tg-vote-pop .45s cubic-bezier(.3, 1.4, .5, 1); }
.tg-vote.tg-up.pop { box-shadow: 0 0 20px rgba(61,220,132,.4); }
.tg-vote.tg-down.pop { box-shadow: 0 0 20px rgba(255,92,108,.36); }
.tg-vote.cooldown, .tg-vote[disabled] { opacity: .42; cursor: not-allowed; pointer-events: none; }
.tg-count {
  min-width: 9px; text-align: center; display: inline-block;
  font-variant-numeric: tabular-nums;
}
.tg-count.bump { animation: tg-count-bump .4s ease; }
@keyframes tg-chip-in {
  from { opacity: 0; transform: translateY(7px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tg-vote-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  55% { transform: scale(.9); }
  75% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes tg-count-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.55); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tg-chip { animation: none; }
  .tg-vote, .tg-count { transition: none; }
  .tg-vote.pop, .tg-count.bump { animation: none; }
}

/* ---------- Подтверждение владельца сервера ---------- */
.side-box-verified {
  margin: 8px 0 0; padding: 7px 10px; font-size: 12.5px; font-weight: 600; color: var(--green);
  background: var(--green-subtle); border: 1px solid var(--green-border); border-radius: var(--r-sm);
}
.verify-open-btn {
  display: block; width: 100%; margin-top: 10px; padding: 8px 12px;
  font-size: 13px; font-weight: 600; color: var(--text-body); font-family: inherit;
  background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s;
}
.verify-open-btn:hover { border-color: var(--green-border); color: var(--green); }

/* ═══════════════════════════════════════════════════════════════
   Verify Modal — Premium Glass Design
   ═══════════════════════════════════════════════════════════════ */
.vm-modal-verify { padding: 0; max-width: 420px; }

.verify-hero {
  position: relative; height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(61,220,132,.06) 0%, rgba(46,204,113,.03) 50%, transparent 100%);
  overflow: hidden;
}
.verify-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 40% 30%, rgba(61,220,132,.1) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 70%, rgba(46,204,113,.05) 0%, transparent 45%);
}
.verify-hero-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,220,132,.2) 0%, transparent 70%);
  animation: verify-glow-pulse 3s ease-in-out infinite;
}
@keyframes verify-glow-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .6; }
  50% { transform: translate(-50%,-50%) scale(1.3); opacity: 1; }
}

.verify-shield-wrap {
  position: relative; z-index: 2;
  animation: vm-pop .5s cubic-bezier(.34,1.2,.64,1);
}
.verify-shield {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.verify-shield svg { width: 40px; height: 40px; color: #3ddc84; filter: drop-shadow(0 4px 16px rgba(61,220,132,.3)); }
.verify-shield-check {
  stroke-dasharray: 20; stroke-dashoffset: 20;
  animation: verify-check-draw .5s ease .4s forwards;
}
@keyframes verify-check-draw { to { stroke-dashoffset: 0; } }

.verify-content { padding: 4px 20px 20px; text-align: center; }

/* Code block */
.verify-code-block {
  padding: 12px; margin-bottom: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
}
.verify-code-label {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px;
}
.verify-code-row {
  display: flex; align-items: center; gap: 10px;
}
.verify-code {
  flex: 1; padding: 10px 12px;
  font-size: 18px; font-weight: 800; letter-spacing: 2px;
  color: #3ddc84; background: rgba(61,220,132,.06);
  border: 1px dashed rgba(61,220,132,.2); border-radius: 10px;
  font-family: var(--font-mono); text-align: center;
  animation: verify-code-glow 2s ease-in-out infinite;
}
@keyframes verify-code-glow {
  0%,100% { box-shadow: 0 0 0 rgba(61,220,132,0); }
  50% { box-shadow: 0 0 20px rgba(61,220,132,.1); }
}
.verify-copy-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 12px; font-weight: 600; font-family: inherit;
  color: var(--text-body); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  cursor: pointer; transition: all .2s ease; flex-shrink: 0;
}
.verify-copy-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.verify-copy-btn.copied { color: #3ddc84; border-color: rgba(61,220,132,.3); }
.verify-copy-icon { width: 16px; height: 16px; }
.verify-copy-text { white-space: nowrap; }
.verify-code-hint {
  font-size: 11px; color: var(--text-muted); margin-top: 10px; opacity: .7;
}

/* Tabs */
.verify-tabs {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.verify-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; font-size: 12px; font-weight: 600; font-family: inherit;
  color: var(--text-muted); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06); border-radius: 10px;
  cursor: pointer; transition: all .2s ease;
}
.verify-tab svg { width: 14px; height: 14px; flex-shrink: 0; }
.verify-tab:hover { color: var(--text-body); background: rgba(255,255,255,.06); }
.verify-tab.is-active {
  color: #3ddc84; background: rgba(61,220,132,.08);
  border-color: rgba(61,220,132,.2);
}

/* Steps */
.verify-pane { display: none; text-align: left; }
.verify-pane.is-active { display: block; animation: vm-fade-up .3s ease; }
.verify-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.verify-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
  transition: background .2s, border-color .2s;
}
.verify-step:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.verify-step-num {
  width: 24px; height: 24px; border-radius: 7px;
  background: rgba(61,220,132,.1); color: #3ddc84;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.verify-step-body { flex: 1; min-width: 0; }
.verify-step-title { font-size: 12.5px; font-weight: 700; color: var(--text-body); margin-bottom: 2px; }
.verify-step-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.verify-step-desc code {
  color: #3ddc84; font-family: var(--font-mono);
  font-size: 10.5px; padding: 1px 4px;
  background: rgba(61,220,132,.08); border-radius: 4px;
}

/* Check button */
.verify-check-btn {
  width: 100%; padding: 12px 16px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #3ddc84 0%, #2ecc71 100%);
  box-shadow: 0 6px 24px rgba(61,220,132,.3);
  transition: all .25s ease;
  position: relative; overflow: hidden;
}
.verify-check-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 50%);
  opacity: 0; transition: opacity .25s;
}
.verify-check-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(61,220,132,.4); }
.verify-check-btn:hover::before { opacity: 1; }
.verify-check-btn:active { transform: translateY(0) scale(.97); }
.verify-check-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.verify-check-btn svg { width: 18px; height: 18px; }

.verify-status {
  font-size: 13px; color: var(--text-muted); margin-top: 12px;
  animation: vm-fade-up .3s ease;
}
.verify-status.is-ok { color: #3ddc84; font-weight: 600; }
.verify-status.is-err { color: var(--red); }

/* DNS download button */
.verify-dl-btn {
  width: 100%; padding: 12px 16px; margin-top: 12px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--text-body); background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.12); border-radius: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s ease;
}
.verify-dl-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(61,220,132,.3); color: #3ddc84; }
.verify-dl-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Соцсети сервера ---------- */
.srv-socials-note { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Админ-панель
   ============================================================ */
/* Навигация — единый дизайн-язык .sed-nav (стеклянные пилюли-вкладки) */
.admin-nav {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px;
  padding: 6px;
  background: var(--card-glass-bg);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
}
.admin-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); border-radius: var(--r-sm);
  text-decoration: none; transition: all .15s; font-family: var(--font-body);
}
.admin-nav a:hover { color: var(--text-body); background: var(--bg-surface); }
.admin-nav a.active { color: var(--text-body); background: var(--bg-surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.admin-nav a.active::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.admin-section { margin: 22px 0; }
.admin-section h2 { margin: 0 0 14px; font-size: 17px; }
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.admin-stat {
  padding: 14px; border-radius: var(--r-md); background: var(--bg-surface);
  border: 1px solid var(--border-neutral); display: flex; flex-direction: column; gap: 4px;
}
.admin-stat-val { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-stat-cap { font-size: 12px; color: var(--text-muted); }
.admin-count {
  display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 12px; color: var(--text-secondary);
  background: var(--bg-muted); border-radius: 999px; vertical-align: middle;
}
.admin-pending { margin: 12px 0 0; font-size: 14px; }
.admin-pending a { color: var(--green); }
.admin-tbl-wrap {
  overflow-x: auto;
  background: var(--card-glass-bg);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-neutral);
  vertical-align: top;
}
.admin-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  background: var(--bg-floating); white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.03); }
.admin-cell-slim { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sub { color: var(--text-muted); font-size: 12px; }

/* Админка: популярность тегов/версий */
.admin-idx { color: var(--text-muted); font-size: 12px; width: 34px; }
.admin-tag-link { color: var(--green); text-decoration: none; font-weight: 600; }
.admin-tag-link:hover { text-decoration: underline; }
.admin-versions { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-ver-chip { background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: 6px; padding: 1px 7px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.admin-conf { font-size: 12px; white-space: nowrap; }
.admin-conf-high { color: var(--green); }
.admin-conf-medium { color: var(--amber, #e0a63c); }
.admin-conf-low { color: var(--text-muted); }
.admin-summary-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; }
.admin-summary-item {
  flex: 1 1 160px; background: var(--bg-muted); border: 1px solid var(--border-neutral);
  border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.admin-summary-num { font-size: 24px; font-weight: 700; color: var(--green); }
.admin-summary-label { font-size: 12.5px; color: var(--text-muted); }
.admin-hint { color: var(--text-muted); font-size: 12.5px; margin: 6px 0 0; }
.admin-toggle-row { vertical-align: middle; margin-left: 8px; line-height: 1; }
.admin-pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.admin-pager a {
  min-width: 32px; padding: 6px 10px; text-align: center; border-radius: 8px; font-size: 13px;
  color: var(--text-secondary); background: var(--bg-muted); border: 1px solid var(--border-neutral); text-decoration: none;
}
.admin-pager a.active { color: var(--green); border-color: var(--green-border); background: var(--green-subtle); }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-filter input[type="search"] {
  flex: 1; min-width: 220px; padding: 10px 12px; background: var(--bg-surface); color: var(--text-body);
  border: 1px solid var(--border-neutral); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 14px;
  transition: border-color .15s;
}
.admin-filter select {
  padding: 10px 12px; background: var(--bg-surface); color: var(--text-body);
  border: 1px solid var(--border-neutral); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 14px;
}
.admin-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.admin-form input[type="text"], .admin-form input[type="number"], .admin-form input[type="url"], .admin-form input[type="email"], .admin-form input[type="password"], .admin-form textarea, .admin-form select {
  width: 100%; padding: 10px 12px; background: var(--bg-surface); color: var(--text-body);
  border: 1px solid var(--border-neutral); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 14px;
  transition: border-color .15s;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .admin-filter input:focus, .admin-filter select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-subtle);
}
.admin-form .admin-check { flex-direction: row; align-items: center; gap: 10px; }
.admin-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.admin-danger { border: 1px solid rgba(255, 92, 108, .25); border-radius: var(--r-md); padding: 16px; background: rgba(255, 92, 108, .05); }
.admin-danger h2 { margin-top: 0; }
.admin-danger code { color: var(--green); font-family: var(--font-mono); }
.admin-inline-form { display: inline-block; margin-right: 6px; }
.admin-role { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--text-secondary); background: var(--bg-muted); }
.admin-role.is-admin { color: var(--gold); background: rgba(238, 179, 43, .15); border: 1px solid rgba(238, 179, 43, .3); }

/* SEO-движок: карточки */
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 14px 0; }
.admin-card {
  border: 1px solid var(--border-neutral); border-radius: var(--r-md); padding: 12px 14px;
  font-size: 12px; color: var(--text-muted); background: var(--bg-surface);
}
.admin-card-num { font-size: 20px; font-weight: 800; color: var(--text-body); line-height: 1.2; }
.admin-card-num.ok { color: var(--green); }
.admin-card-num.warn { color: var(--gold); }
.admin-card-num.bad { color: var(--red); }
.admin-card-num.good { color: var(--green); }
.admin-num { width: 90px; padding: 6px 8px; background: var(--bg-surface); color: var(--text-body); border: 1px solid var(--border-neutral); border-radius: 6px; }
.btn-danger { background: rgba(255, 92, 108, .15); border: 1px solid rgba(255, 92, 108, .3); color: var(--red); }
.btn-danger:hover { background: rgba(255, 92, 108, .25); }
.admin-check-form { margin: 0; }

/* ============================================================
   Конфетти-хлопушка при копировании IP
   ============================================================ */
.confetti {
  position: fixed; z-index: 300; width: 6px; height: 6px; border-radius: 2px;
  pointer-events: none;
  animation: confettiFly .9s cubic-bezier(.2, .6, .3, 1) forwards;
}
@keyframes confettiFly {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.25) rotate(240deg); opacity: 0; }
}

/* Состояние «скопировано» для всех copy-кнопок */
.copy-btn.is-copied { border-color: var(--green-border); background: var(--green-subtle); }
.copy-btn.is-copied .copy-ip { color: var(--green); }
.copy-btn.is-copied .copy-label { color: var(--green); }
.card-copy-btn.is-copied { border-color: var(--green-border); background: var(--green-subtle); }
.card-copy-btn.is-copied .card-copy-ip { color: var(--green); }

/* ============================================================
   Переработанные сайд-карточки (мониторинг, буст)
   ============================================================ */
.side-card {
  background:
    radial-gradient(220px 120px at 85% -20%, rgba(61, 220, 132, .14), transparent 70%),
    var(--bg-surface);
  border-radius: var(--r-lg);
  padding: 16px;
}
.side-card .side-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-secondary); font-weight: 700; margin-bottom: 10px;
}
.side-card .side-card-title::before { content: "◈"; color: var(--green); }
.side-stat { align-items: baseline; }
.side-stat strong { font-size: 20px; font-weight: 800; color: var(--text-body); }
.side-stat .dot { align-self: center; }
.side-card .side-stat { padding: 4px 0; }
.side-card .side-add {
  margin-top: 8px; text-align: center; padding: 9px 10px; border-radius: var(--r-sm);
  background: var(--green-subtle); border: 1px solid var(--green-border); color: var(--green);
  font-weight: 700; font-size: 13px; transition: background .15s;
}
.side-card .side-add:hover { background: rgba(61, 220, 132, .22); color: var(--green); text-decoration: none; }

.side-boost-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(260px 140px at 0% 110%, rgba(238, 179, 43, .16), transparent 70%),
    radial-gradient(200px 100px at 100% -10%, rgba(85, 182, 246, .12), transparent 70%),
    var(--bg-surface);
}
.side-boost-card .side-card-title::before { content: "⚡"; color: var(--gold); }
.side-boost-card .side-card-title { color: var(--gold); }
.side-boost-text { color: var(--text-secondary); font-size: 13px; line-height: 1.55; margin: 0 0 12px; }
.side-boost-btn {
  display: block; text-align: center; padding: 10px 12px; border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--gold), #f5c518); color: #161718;
  font-weight: 800; font-size: 14px; transition: filter .15s;
}
.side-boost-btn:hover { filter: brightness(1.1); color: #161718; text-decoration: none; }

/* ============================================================
   Кнопки (общие)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700; color: var(--text-body);
  background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: var(--r-sm);
  cursor: pointer; font-family: inherit; text-decoration: none; transition: all .15s; line-height: 1.2;
}
.btn:hover { filter: brightness(1.12); color: var(--text-body); text-decoration: none; border-color: var(--border-neutral-hover); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-accent { background: var(--green); color: var(--bg-dark); border-color: var(--green); }
.btn-accent:hover { background: var(--green); color: var(--bg-dark); filter: brightness(1.1); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============================================================
   CMS: пинг, объявления, админ-расширения
   ============================================================ */
.announcement {
  max-width: 1200px; margin: 14px auto -8px; padding: 10px 18px; border-radius: var(--r-md);
  background: rgba(238, 179, 43, .1); border: 1px solid rgba(238, 179, 43, .3); color: var(--text-body);
  font-size: 13.5px; text-align: center;
}
@media (max-width: 1240px) { .announcement { margin-left: 16px; margin-right: 16px; } }

.lat { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.lat-ok { color: var(--green); }
.lat-mid { color: var(--gold); }
.lat-bad { color: var(--red); }
.lat-na { color: var(--text-muted); font-weight: 400; }

.badge {
  display: inline-block; margin: 2px 4px 2px 0; padding: 2px 9px; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; vertical-align: middle;
}
.badge-green { color: var(--green); background: var(--green-subtle); border: 1px solid var(--green-border); }
.badge-red { color: var(--red); background: rgba(255, 92, 108, .1); border: 1px solid rgba(255, 92, 108, .3); }
.badge-amber { color: var(--gold); background: rgba(238, 179, 43, .1); border: 1px solid rgba(238, 179, 43, .3); }

.tag-chip {
  display: inline-block; margin: 2px 4px 2px 0; padding: 2px 9px; font-size: 11.5px; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: 999px;
}

.alert-danger { background: rgba(255, 92, 108, .08); border: 1px solid rgba(255, 92, 108, .35); color: var(--red); }

.admin-narrow { max-width: 720px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-actions form { display: inline-block; margin: 0; }
.admin-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-quick .btn { margin: 0; }

.admin-form select {
  padding: 9px 12px; background: var(--bg-muted); color: var(--text-body);
  border: 1px solid var(--border-neutral); border-radius: var(--r-sm); font-family: inherit; font-size: 13.5px;
}
.admin-form-row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.admin-form-row label { min-width: 150px; flex: 1; }
.admin-form-row button { white-space: nowrap; }

.server-view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .server-view-grid { grid-template-columns: 1fr; } }
.server-view-card {
  padding: 18px; border-radius: var(--r-md); background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
}
.server-view-card h3 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.svc-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.svc-icon { width: 56px; height: 56px; flex: none; border-radius: 10px; background: var(--bg-muted); }
.svc-name { font-size: 17px; font-weight: 800; }
.svc-host { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.svc-motd {
  padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-dark);
  border: 1px solid var(--border-neutral); font-size: 13px; margin-bottom: 12px;
}
.svc-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 12px; }
.admin-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-kv th, .admin-kv td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--border-neutral); vertical-align: top; }
.admin-kv th { color: var(--text-muted); font-weight: 600; width: 45%; }
.admin-kv code { font-family: var(--font-mono); color: var(--green); }

/* V8 Product Intelligence + Compare */
.server-intelligence{margin:18px 0;padding:22px}
.intelligence-head{display:flex;justify-content:space-between;gap:24px;align-items:center}
.intelligence-head h2{margin:.2rem 0 .35rem}
.intelligence-head p{margin:0;opacity:.72;max-width:680px}
.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;opacity:.58}
.intelligence-score{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
.intelligence-score strong{font-size:42px;line-height:1}
.intelligence-score span{opacity:.55}
.intelligence-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.intelligence-grid>div{padding:13px;border:1px solid rgba(255,255,255,.08);border-radius:12px}
.intelligence-grid b,.intelligence-grid span{display:block}
.intelligence-grid b{font-size:11px;opacity:.55;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}
.fresh-fresh{color:#69d38b}.fresh-stale{color:#e6c86a}.fresh-very-stale,.fresh-dead{color:#ee8b8b}
.intelligence-reasons{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:16px 0 0;padding:0}
.intelligence-reasons li{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.06);font-size:13px}
.compare-page{padding-top:22px;padding-bottom:60px}
.compare-head{margin:30px 0 24px}
.compare-head h1{margin:6px 0 8px}
.compare-head p{opacity:.72}
.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.compare-server{padding:22px}
.compare-server-title{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.compare-server h2{margin:0 0 5px}.compare-server h2 a{color:inherit}
.compare-ip{opacity:.6;font-family:monospace}
.score-badge{padding:7px 10px;border-radius:10px;background:rgba(255,255,255,.08);font-weight:800}
.compare-status{margin-top:16px;font-weight:700}.compare-status.online{color:#69d38b}.compare-status.offline{opacity:.5}
.compare-big-online{font-size:34px;font-weight:800;margin:10px 0}.compare-big-online small{font-size:13px;font-weight:500;opacity:.55}
.compare-tags{display:flex;flex-wrap:wrap;gap:7px}.compare-tags span{padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.06);font-size:12px}
.compare-fresh,.compare-score-label{opacity:.72}
.compare-box{margin-top:18px;padding:22px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)}
.compare-similarity{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px}.compare-similarity span{opacity:.65}
.compare-table-wrap{overflow:auto}.compare-table{width:100%;border-collapse:collapse}.compare-table th,.compare-table td{padding:12px;border-bottom:1px solid rgba(255,255,255,.07);text-align:left}.compare-table th{font-weight:700}.compare-table td{text-align:center}
.compare-note{margin-top:20px;opacity:.72}
@media(max-width:760px){.intelligence-head,.compare-similarity{display:block}.intelligence-score{margin-top:16px}.intelligence-grid,.compare-grid{grid-template-columns:1fr}}

.side-sim-compare-link{display:block;margin:5px 0 0 44px;font-size:12px;opacity:.65}.side-sim-compare-link:hover{opacity:1}

.status-timeline{display:flex;align-items:center;gap:2px;min-height:24px;overflow:hidden;margin:14px 0}
.status-dot{width:5px;height:18px;border-radius:2px;display:block;flex:0 0 5px;background:#777}
.status-dot.is-online{background:#63cf88}.status-dot.is-offline{background:#d76b6b}
.history-note{font-size:12px;opacity:.58;margin:0}

/* V9 — единое описание сервера и редактор подтверждённого владельца */
.srv-description-box .srv-sec-head { align-items: center; }
.srv-owner-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  border: 1px solid var(--green-border); border-radius: 999px;
  color: var(--green); background: var(--green-subtle); font-size: 12px; font-weight: 700;
}
.srv-public-description p { white-space: pre-line; }
.srv-description-note {
  margin: 12px 0 0; padding: 9px 11px; border-radius: 8px;
  background: var(--surface-muted, #f6f7f8); color: var(--text-secondary);
  font-size: 12px; line-height: 1.5;
}
.srv-description-editor { margin-top: 14px; border-top: 1px solid var(--border, #e5e7eb); padding-top: 12px; }
.srv-description-editor summary { cursor: pointer; font-weight: 700; color: var(--text-body); }
.srv-description-editor form { margin-top: 12px; }
.srv-description-editor textarea {
  width: 100%; min-height: 240px; resize: vertical; box-sizing: border-box;
  border: 1px solid var(--border, #dfe3e8); border-radius: 10px; padding: 12px;
  font: inherit; line-height: 1.55; background: var(--surface, #fff); color: var(--text-body);
}
.srv-description-editor textarea:focus { outline: 2px solid var(--green-border); border-color: var(--green); }
.srv-description-editor-meta { display:flex; justify-content:space-between; gap:12px; margin-top:6px; color:var(--text-secondary); font-size:12px; }
.srv-description-editor-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.description-save-status { font-size:13px; color:var(--text-secondary); }
.description-save-status.is-ok { color:var(--green); }
.description-save-status.is-err { color:var(--red); }
.side-box-owner-note { margin: 7px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }

/* V10 — Screenshots slider & video */
.srv-screenshots-box .srv-sec-head { align-items: center; }
.srv-screenshots-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--bg-muted); color: var(--text-secondary); font-size: 12px; font-weight: 600;
}
.srv-slider { position: relative; margin-top: 12px; }
.srv-slider-viewport {
  overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--border-neutral); background: var(--bg-muted);
}
.srv-slider-track {
  display: flex; transition: transform .35s cubic-bezier(.4,0,.2,1); will-change: transform;
}
.srv-slide { flex: 0 0 100%; min-width: 0; }
.srv-slide-link {
  display: block; aspect-ratio: 16/9; position: relative; cursor: zoom-in;
}
.srv-slide-link img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.srv-slide-link:hover img { transform: scale(1.02); }
.srv-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-neutral);
  background: var(--bg-floating); color: var(--text-body); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; backdrop-filter: blur(8px);
}
.srv-slider-btn:hover:not([disabled]) { background: var(--bg-muted-strong); border-color: var(--border-neutral-hover); }
.srv-slider-btn[disabled] { opacity: .25; cursor: default; }
.srv-slider-prev { left: 10px; }
.srv-slider-next { right: 10px; }
.srv-slider-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 10px;
}
.srv-slider-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--bg-muted-strong); cursor: pointer; transition: all .2s;
}
.srv-slider-dot.is-active { background: var(--primary); transform: scale(1.3); }
.srv-slider-dot:hover:not(.is-active) { background: var(--text-muted); }
.srv-slider-counter {
  text-align: center; margin-top: 6px; font-size: 12px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Скриншоты. Лента (уникальный блок) ---------- */
.srv-photos { position: relative; }
.srv-photos-head { margin-bottom: 16px; }
.srv-photos-title { display: inline-flex; align-items: center; gap: 8px; }
.srv-photos-ico { width: 18px; height: 18px; color: var(--green); flex: none; }
.srv-photos-count {
  display: inline-flex; align-items: baseline; gap: 4px; margin-left: auto;
  font-size: 12.5px; font-weight: 700; color: var(--text-secondary);
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.srv-photos-count i { font-style: normal; font-weight: 400; color: var(--text-muted); }
.srv-photos-viewport {
  overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--border-neutral); background: var(--bg-muted);
  touch-action: pan-y; outline: none; cursor: grab;
}
.srv-photos-viewport:active { cursor: grabbing; }
.srv-photos-track {
  display: flex; gap: 16px; padding: 10px;
  transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform;
}
.srv-photos-item {
  flex: 0 0 calc((100% - (var(--pv, 1) - 1) * 16px) / var(--pv, 1));
  min-width: 0;
  animation: photosIn .5s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes photosIn {
  0% { opacity: 0; transform: translateY(14px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.srv-photos-link {
  position: relative; display: block; aspect-ratio: 16/9;
  border-radius: calc(var(--r-md) - 4px); overflow: hidden;
  cursor: zoom-in; background: var(--bg-muted);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.srv-photos-link img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1), filter .3s;
  filter: saturate(.94);
}
.srv-photos-link:hover img { transform: scale(1.07); filter: saturate(1); }
.srv-photos-veil {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(8,10,16,.04), rgba(8,10,16,.55));
  opacity: 0; transition: opacity .3s;
}
.srv-photos-link:hover .srv-photos-veil { opacity: 1; }
.srv-photos-loupe {
  width: 42px; height: 42px; padding: 10px; color: #fff; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transform: scale(.5); transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.srv-photos-link:hover .srv-photos-loupe { transform: scale(1); }
.srv-photos-num {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  min-width: 24px; height: 22px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.9);
  background: rgba(8,10,16,.55); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.srv-photos-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); background: rgba(10,13,20,.6);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: all .2s;
}
.srv-photos-arrow:hover { background: rgba(10,13,20,.88); transform: translateY(-50%) scale(1.08); }
.srv-photos-arrow:disabled { opacity: 0; pointer-events: none; }
.srv-photos-prev { left: 14px; }
.srv-photos-next { right: 14px; }
.srv-photos-counter {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  padding: 4px 10px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.92);
  background: rgba(8,10,16,.55); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .srv-photos-track { transition: none; }
  .srv-photos-item { animation: none; }
}

/* ---------- Lightbox ---------- */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.lb-overlay.is-open { opacity: 1; pointer-events: auto; }
.lb-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer;
}
.lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; backdrop-filter: blur(6px);
}
.lb-close:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); transform: scale(1.08); }
.lb-content {
  position: relative; z-index: 2; max-width: 90vw; max-height: 82vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: var(--r-md);
  box-shadow: 0 8px 40px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; backdrop-filter: blur(6px);
}
.lb-nav:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-footer {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 12px; padding: 8px 18px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.1); border-radius: 999px;
  backdrop-filter: blur(8px); font-size: 13px; color: rgba(255,255,255,.7);
}
.lb-title { font-weight: 600; color: #fff; }
.lb-counter { font-variant-numeric: tabular-nums; }

.srv-video-box .srv-sec-head { align-items: center; }
.srv-video-embed {
  position: relative; margin-top: 12px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border, #e5e7eb); aspect-ratio: 16/9; background: #000;
}
.srv-video-embed iframe,
.srv-video-embed video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ========== Лента активности ========== */
.side-activity { padding: 0; position: relative; overflow: hidden; }
.side-activity::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--green) 0%, var(--primary) 50%, var(--green) 100%);
  opacity: 0; transition: opacity .4s;
}
.side-activity.has-live::before { opacity: .5; }
.side-activity-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; list-style: none; padding: 14px 16px 10px;
}
.side-activity-head::-webkit-details-marker { display: none; }
.side-activity-title-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-activity-icon { width: 22px; height: 22px; flex: none; color: var(--primary); opacity: .75; }
.side-activity-title-group .side-box-title { margin: 0; }
.side-activity-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.side-activity-live {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 10px 3px 8px;
  background: var(--green-subtle); border: 1px solid var(--green-border);
  flex-shrink: 0;
}
.side-activity-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  position: relative;
}
.side-activity-live-dot::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--green); opacity: 0;
  animation: act-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
.side-activity-live-text {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green);
}
@keyframes act-ping {
  0% { transform: scale(1); opacity: .55; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.side-activity-feed {
  max-height: 240px; overflow-y: auto; overflow-x: hidden;
  padding: 0 0 6px;
  scrollbar-width: thin; scrollbar-color: var(--bg-muted-strong) transparent;
}
.side-activity-feed::-webkit-scrollbar { width: 4px; }
.side-activity-feed::-webkit-scrollbar-thumb { background: var(--bg-muted-strong); border-radius: 2px; }

.side-activity-empty {
  padding: 10px 16px 14px; color: var(--text-muted); font-size: 13px; text-align: center;
}

.act-row {
  position: relative;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 16px; font-size: 13px;
  border-top: 1px solid var(--border-neutral);
  opacity: 0; transform: translateY(-8px);
  animation: act-slide-in .3s ease-out forwards;
}
.act-row:first-child { border-top: none; }

@keyframes act-slide-in {
  to { opacity: 1; transform: translateY(0); }
}

.act-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg-muted); display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; overflow: hidden;
  border: 1px solid var(--border-neutral);
  position: relative; z-index: 1;
}
.act-avatar img { width: 100%; height: 100%; object-fit: cover; }

.act-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.act-top { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.act-name { font-weight: 600; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-flag { font-size: 14px; line-height: 1; flex-shrink: 0; }
.act-time { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

.act-bottom { display: flex; align-items: center; gap: 5px; }
.act-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; border-radius: 4px;
  padding: 1px 7px; line-height: 1.4;
}
.act-badge-success { color: var(--green); background: var(--green-subtle); }
.act-badge-primary { color: var(--primary); background: var(--primary-subtle); }
.act-badge-gold { color: var(--gold); background: rgba(238, 179, 43, .12); }
.act-badge-muted { color: var(--text-muted); background: var(--bg-muted); }

/* ── Крутое появление новой записи ── */
.act-row-new {
  opacity: 0;
  animation: act-enter .65s cubic-bezier(.22, 1, .36, 1) forwards;
}

/* Блик-полоса, пробегающая слева направо */
.act-row-new::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(61, 220, 132, .08) 20%,
    rgba(85, 182, 246, .14) 40%,
    rgba(61, 220, 132, .08) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: act-shimmer .8s ease-out;
  pointer-events: none;
  border-radius: var(--r-sm);
}

@keyframes act-enter {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(.92);
    filter: blur(4px);
  }
  40% {
    opacity: .9;
    transform: translateY(2px) scale(1.01);
    filter: blur(0);
  }
  60% {
    transform: translateY(-1px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes act-shimmer {
  0% { background-position: 200% 0; opacity: 1; }
  100% { background-position: -200% 0; opacity: 0; }
}

/* Аватар пружинит при входе */
.act-row-new .act-avatar {
  animation: act-avatar-pop .5s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}
@keyframes act-avatar-pop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(5deg); }
  75% { transform: scale(.92) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Аватар получает неоновую подсветку при входе */
.act-row-new .act-avatar::after {
  content: '';
  position: absolute; inset: -3px; border-radius: 10px;
  background: conic-gradient(from 0deg, var(--green), var(--primary), var(--gold), var(--green));
  opacity: 0;
  animation: act-glow-ring .7s ease-out .15s both;
  z-index: -1;
  filter: blur(4px);
}
@keyframes act-glow-ring {
  0% { opacity: .8; transform: scale(.6); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Имя печатается с轻微 мерцанием */
.act-row-new .act-name {
  animation: act-text-glow .6s ease-out .15s both;
}
@keyframes act-text-glow {
  0% { text-shadow: 0 0 8px rgba(85, 182, 246, .6); }
  100% { text-shadow: none; }
}

/* Бейдж пружинит сзади */
.act-row-new .act-badge {
  animation: act-badge-bounce .45s cubic-bezier(.34, 1.56, .64, 1) .2s both;
}
@keyframes act-badge-bounce {
  0% { transform: scale(0) translateY(4px); opacity: 0; }
  60% { transform: scale(1.15) translateY(-1px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Флаг подпрыгивает */
.act-row-new .act-flag {
  animation: act-flag-pop .35s cubic-bezier(.34, 1.56, .64, 1) .05s both;
}
@keyframes act-flag-pop {
  0% { transform: scale(0) rotate(-45deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Частицы (создаются через JS) */
.act-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
@keyframes act-particle-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(0); }
}

/* ============================================================
   Page-wide entrance animations
   ============================================================ */



/* ── Hero stats pills: pop in ── */
.hs-item {
  opacity: 0;
  transform: translateY(8px) scale(.92);
  animation: hs-pop .4s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.hs-item:nth-child(1) { animation-delay: .1s; }
.hs-item:nth-child(2) { animation-delay: .18s; }
.hs-item:nth-child(3) { animation-delay: .26s; }
.hs-item:nth-child(4) { animation-delay: .34s; }
.hs-item:nth-child(5) { animation-delay: .42s; }

@keyframes hs-pop {
  from { opacity: 0; transform: translateY(8px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Filter bar: slide down (first paint only) ── */
body:not(.nav-done) .filter-bar {
  opacity: 0;
  transform: translateY(-10px);
  animation: filter-slide .4s .15s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes filter-slide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Suggest bar: fade-in (first paint only) ── */
body:not(.nav-done) .suggest-bar {
  opacity: 0;
  animation: suggest-fade .35s .25s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes suggest-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Sidebar cards: stagger fade-in ── */
.side-card, .side-boost-card {
  opacity: 0;
  transform: translateX(-12px);
  animation: side-enter .45s cubic-bezier(.16, 1, .3, 1) forwards;
}
.side-card:nth-child(1) { animation-delay: .2s; }
.side-card:nth-child(2) { animation-delay: .3s; }
.side-boost-card { animation-delay: .4s; }

@keyframes side-enter {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Server page sections: stagger ── */
.srv-box {
  opacity: 0;
  transform: translateY(14px);
  animation: srv-box-enter .5s cubic-bezier(.16, 1, .3, 1) forwards;
}
.srv-box:nth-child(1) { animation-delay: .1s; }
.srv-box:nth-child(2) { animation-delay: .18s; }
.srv-box:nth-child(3) { animation-delay: .26s; }
.srv-box:nth-child(4) { animation-delay: .34s; }
.srv-box:nth-child(5) { animation-delay: .42s; }

@keyframes srv-box-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── KPI-сетка сервера: staggered fade-in ── */
.srv-kpi-item {
  opacity: 0;
  animation: sg-fadeIn .35s ease-out forwards;
}
.srv-kpi-item:nth-child(1) { animation-delay: .05s; }
.srv-kpi-item:nth-child(2) { animation-delay: .1s; }
.srv-kpi-item:nth-child(3) { animation-delay: .15s; }
.srv-kpi-item:nth-child(4) { animation-delay: .2s; }
.srv-kpi-item:nth-child(5) { animation-delay: .25s; }
.srv-kpi-item:nth-child(6) { animation-delay: .3s; }
.srv-kpi-item:nth-child(7) { animation-delay: .35s; }
.srv-kpi-item:nth-child(8) { animation-delay: .4s; }

@keyframes sg-fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stat-pop {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Sort tab underline indicator ── */
.sort-btn.active {
  position: relative;
}
.sort-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 20%; right: 20%;
  height: 2px; border-radius: 2px;
  background: var(--green);
  animation: tab-underline .3s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes tab-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ── Copy button ripple on copy ── */
.card-copy-btn.is-copied {
  animation: copy-ripple .5s ease;
}
@keyframes copy-ripple {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .4); }
  50% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: none; }
}

/* ── Boost CTA shimmer ── */
.side-boost-btn, .boost-btn {
  position: relative;
  overflow: hidden;
}
.side-boost-btn::after, .boost-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-15deg) translateX(-150%);
  animation: shimmer-sweep 3s infinite;
}
@keyframes shimmer-sweep {
  0% { transform: skewX(-15deg) translateX(-150%); }
  30%, 100% { transform: skewX(-15deg) translateX(350%); }
}

/* ── Page title glow pulse ── */
.page-hero h1 {
  animation: title-glow 2s ease-out;
}
@keyframes title-glow {
  0% { text-shadow: 0 0 12px rgba(61, 220, 132, .3); }
  100% { text-shadow: none; }
}

/* ── Pagination pop ── */
.pagination a {
  transition: all .15s, transform .2s;
}
.pagination a:hover {
  transform: translateY(-1px);
}

/* ── Reduce motion for a11y ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ================================================================
   Smart SEO block — live programmatic подборка перед FAQ
   ================================================================ */
.smart-seo-block {
  margin-top: 24px;
  padding: 18px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.smart-seo-block::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.035) 45%, transparent 62%);
  transform: translateX(-120%);
  animation: smartSeoSweep 5.5s ease-in-out infinite;
  z-index: -1;
}
.smart-seo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.smart-seo-heading { min-width: 0; }
.smart-seo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  margin-bottom: 7px;
  border: 1px solid var(--green-border);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-subtle);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.smart-seo-block h2 {
  margin: 0;
  color: var(--text-body);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}
.smart-seo-lead,
.smart-seo-sub {
  max-width: 980px;
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.smart-seo-sub { color: var(--text-muted); margin-top: 3px; }
.smart-seo-live {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--border-neutral);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.smart-seo-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61,220,132,.35);
  animation: smartSeoPulse 2s ease-out infinite;
}
.smart-seo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-neutral);
  border-radius: var(--r-sm);
  background: rgba(0,0,0,.08);
}
.smart-seo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}
.smart-seo-table th {
  padding: 8px 10px;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-neutral);
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.smart-seo-table td {
  padding: 7px 10px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,.045);
  vertical-align: middle;
  line-height: 1.35;
}
.smart-seo-table tr:last-child td { border-bottom: 0; }
.smart-seo-table tbody tr {
  opacity: 0;
  transform: translateY(4px);
  animation: smartSeoRowIn .32s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--smart-seo-delay, 0ms);
}
.smart-seo-table tbody tr:hover { background: rgba(255,255,255,.025); }
.smart-seo-table th:nth-child(1) { width: 35%; }
.smart-seo-table th:nth-child(2) { width: 25%; }
.smart-seo-table th:nth-child(3) { width: 15%; }
.smart-seo-table th:nth-child(4) { width: 25%; }
.smart-seo-server {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.smart-seo-server:hover { color: var(--green); text-decoration: none; }
.smart-seo-server img,
.smart-seo-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.smart-seo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  font-size: 11px;
  font-weight: 800;
}
.smart-seo-server > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.smart-seo-ip {
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  white-space: nowrap;
}
.smart-seo-online {
  color: var(--text-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.smart-seo-version {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.smart-seo-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.4;
}
.smart-seo-foot b { color: var(--green); font-weight: 700; }
@keyframes smartSeoSweep {
  0%, 62% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}
@keyframes smartSeoPulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,.35); }
  70% { box-shadow: 0 0 0 6px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}
@keyframes smartSeoRowIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
  .smart-seo-block { padding: 14px; }
  .smart-seo-head { gap: 8px; }
  .smart-seo-block h2 { font-size: 14px; }
  .smart-seo-lead { font-size: 12px; }
  .smart-seo-table { min-width: 620px; }
  .smart-seo-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .smart-seo-block::before,
  .smart-seo-live i,
  .smart-seo-table tbody tr { animation: none; opacity: 1; transform: none; }
}

/* Homepage factual SEO guide */
.home-seo-section {
  margin-top: 32px;
  padding: 28px 30px;
  overflow: hidden;
}
.home-seo-inner { max-width: 980px; margin: 0 auto; }
.home-seo-kicker {
  margin-bottom: 7px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #89939f);
  font-weight: 700;
}
.home-seo-section h2 {
  margin: 0 0 16px;
  font-family: var(--font-display, inherit);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.home-seo-copy {
  color: var(--text-secondary, #aeb7c2);
  font-size: 13px;
  line-height: 1.78;
}
.home-seo-copy p { margin: 0; }
.home-seo-copy p + p { margin-top: 14px; }
.home-seo-copy strong { color: var(--text, #edf2f7); font-weight: 700; }
.home-seo-copy a {
  color: var(--accent, #66e8a0);
  text-decoration: none;
  border-bottom: 1px solid rgba(102,232,160,.24);
  transition: color .2s, border-color .2s;
}
.home-seo-copy a:hover {
  color: #8cf3ba;
  border-color: rgba(140,243,186,.55);
}
@media (max-width: 700px) {
  .home-seo-section { padding: 22px 18px; margin-top: 24px; }
  .home-seo-copy { font-size: 13px; line-height: 1.72; }
}
@media (prefers-reduced-motion: reduce) {
  .home-seo-copy a { transition: none; }
}

/* Server SEO description: fact-driven, compact and intentionally different from generic FAQ/card UI. */
.srv-seo-description {
  display: grid;
  gap: 18px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-secondary, rgba(255,255,255,.72));
}
.srv-seo-lead {
  margin: 0;
  max-width: 920px;
  font-size: 13px;
  line-height: 1.78;
}
.srv-seo-section {
  position: relative;
  padding: 16px 16px 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.srv-seo-section:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.028);
  transform: translateY(-1px);
}
.srv-seo-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary, #fff);
}
.srv-seo-section p { margin: 0 0 10px; }
.srv-seo-section p:last-child { margin-bottom: 0; }
.srv-seo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: var(--accent, #ff8a00);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}
.srv-seo-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.srv-seo-facts {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.srv-seo-facts li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.srv-seo-bullet {
  width: 5px;
  height: 5px;
  margin-top: 8px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
.srv-seo-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.srv-seo-stats span {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
  overflow: hidden;
  text-overflow: ellipsis;
}
.srv-seo-stats b {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .5;
}
@media (max-width: 700px) {
  .srv-seo-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .srv-seo-section { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .srv-seo-section { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════
   SMART SEARCH — Live autocomplete с анимациями
   ════════════════════════════════════════════════════════════════════ */

.smart-search {
  position: relative;
  margin-left: auto;
  flex: 1;
  max-width: 420px;
  min-width: 180px;
}

.smart-search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.smart-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-placeholder);
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  transition: color .2s;
}

.smart-search:focus-within .smart-search-icon { color: var(--primary); }

.smart-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  color: var(--text-body);
  border-radius: var(--r-md);
  padding: 9px 72px 9px 36px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.smart-search-input::placeholder { color: var(--text-placeholder); }
.smart-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle), 0 4px 20px rgba(0,0,0,.25);
  background: var(--bg-muted);
}

.smart-search-kbd {
  position: absolute;
  right: 42px;
  background: var(--bg-muted-strong);
  border: 1px solid var(--border-neutral);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  pointer-events: none;
  opacity: 1;
  transition: opacity .15s;
  line-height: 1.6;
}
.smart-search:focus-within .smart-search-kbd { opacity: 0; }

.smart-search-btn {
  position: absolute;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.smart-search-btn:hover { background: var(--primary-soft); transform: scale(1.05); }
.smart-search-btn:active { transform: scale(0.95); }

/* ── Dropdown ──────────────────────────────────────────────── */
.smart-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity .18s cubic-bezier(.4,0,.2,1),
              transform .18s cubic-bezier(.4,0,.2,1),
              visibility .18s;
  overscroll-behavior: contain;
}
.smart-search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.smart-search-dropdown::-webkit-scrollbar { width: 6px; }
.smart-search-dropdown::-webkit-scrollbar-track { background: transparent; }
.smart-search-dropdown::-webkit-scrollbar-thumb { background: var(--bg-muted-strong); border-radius: 3px; }

/* ── Loading shimmer ───────────────────────────────────────── */
.ss-loading {
  display: none;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.ss-loading.active { display: block; }
.ss-loading::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-neutral);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ss-spin .6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes ss-spin { to { transform: rotate(360deg); } }

/* ── Section headers ───────────────────────────────────────── */
.ss-section {
  padding: 6px 0;
}
.ss-section + .ss-section { border-top: 1px solid var(--border-neutral); }
.ss-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Result items ──────────────────────────────────────────── */
.ss-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-body);
  transition: background .1s;
  animation: ss-fadeIn .2s ease-out both;
}
.ss-item:hover,
.ss-item.active {
  background: var(--bg-muted);
  text-decoration: none;
}
.ss-item.active { outline: none; }

.ss-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  position: relative;
}

/* Server icon */
.ss-item-icon.ss-server {
  background: var(--bg-muted-strong);
  border: 1px solid var(--border-neutral);
  overflow: hidden;
}
.ss-item-icon.ss-server img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ss-item-icon.ss-server .ss-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}
.ss-item-icon.ss-server .ss-status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.ss-item-icon.ss-server .ss-status-dot.offline { background: var(--red); }

/* Tag icon */
.ss-item-icon.ss-tag {
  background: var(--primary-subtle);
  border: 1px solid rgba(85, 182, 246, .2);
  color: var(--primary);
  font-size: 13px;
}

/* Version icon */
.ss-item-icon.ss-version {
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Search all icon */
.ss-item-icon.ss-search {
  background: var(--bg-muted-strong);
  border: 1px solid var(--border-neutral);
  color: var(--text-secondary);
}

.ss-item-text {
  flex: 1;
  min-width: 0;
}
.ss-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-item-badge {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-muted-strong);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Highlight matched text */
.ss-highlight {
  color: var(--primary);
  font-weight: 600;
}

/* ── Empty state ───────────────────────────────────────────── */
.ss-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  animation: ss-fadeIn .2s ease-out;
}
.ss-empty-icon {
  font-size: 24px;
  margin-bottom: 6px;
  opacity: 0.5;
}

/* ── Keyboard hint ─────────────────────────────────────────── */
.ss-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--border-neutral);
  font-size: 11px;
  color: var(--text-muted);
}
.ss-footer kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--bg-muted-strong);
  border: 1px solid var(--border-neutral);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

@keyframes ss-fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════
   VOTE MODALS — Login + Vote confirmation
   ════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   Vote Modal — Premium Glass Design
   ═══════════════════════════════════════════════════════════════ */

.vm-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.vm-overlay.open { opacity: 1; visibility: visible; }

.vm-modal {
  position: relative; width: 100%; max-width: 420px;
  background: linear-gradient(170deg, rgba(30,34,42,.97) 0%, rgba(22,25,30,.98) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 0;
  box-shadow:
    0 32px 100px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 1px 0 rgba(255,255,255,.06) inset;
  transform: scale(.88) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.2,.64,1), opacity .3s ease;
  overflow: hidden;
}
.vm-overlay.open .vm-modal { transform: scale(1) translateY(0); }
.vm-overlay.closing .vm-modal { transform: scale(.92) translateY(10px); opacity: 0; }

.vm-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.45); cursor: pointer; font-size: 14px;
  transition: all .2s ease;
}
.vm-close:hover {
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.15);
  transform: rotate(90deg);
}

/* ── Login modal ───────────────────────────────────────────── */
.vm-modal-login { padding: 36px 28px 28px; }

.vm-login-head { text-align: center; margin-bottom: 24px; }

.vm-avatar-ring {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, var(--primary), #a78bfa, var(--primary));
  background-size: 200% 200%;
  animation: vm-ring-spin 3s ease infinite;
  position: relative;
}
.vm-avatar-ring::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  opacity: .15; filter: blur(10px);
}
.vm-avatar-icon {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; position: relative; z-index: 1;
}

@keyframes vm-ring-spin {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Vote modal hero ───────────────────────────────────────── */
.vm-modal-vote { padding: 0; }

.vm-vote-hero {
  position: relative; height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(61,220,132,.08) 0%, rgba(46,204,113,.04) 50%, transparent 100%);
  overflow: hidden;
}
.vm-vote-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(61,220,132,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(46,204,113,.06) 0%, transparent 50%);
}

.vm-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.vm-particle {
  position: absolute; border-radius: 50%;
  background: rgba(61,220,132,.3);
  animation: vm-float linear infinite;
}
@keyframes vm-float {
  0% { transform: translateY(100%) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-200%) scale(1); opacity: 0; }
}

.vm-thumb-wrap { position: relative; z-index: 2; }
.vm-thumb-ring {
  width: 88px; height: 88px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.vm-thumb-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: vm-thumb-pulse 2s ease-in-out infinite;
}
.vm-thumb-progress {
  stroke-dashoffset: 0 !important;
  transition: stroke-dashoffset 1s ease;
}
@keyframes vm-thumb-pulse {
  0%,100% { filter: drop-shadow(0 0 8px rgba(61,220,132,.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(61,220,132,.4)); }
}
.vm-thumb-emoji {
  font-size: 40px; position: relative; z-index: 1;
  animation: vm-thumb-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(61,220,132,.3));
}
@keyframes vm-thumb-bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.vm-vote-content { padding: 4px 28px 28px; text-align: center; }

/* ── Titles ────────────────────────────────────────────────── */
.vm-title {
  text-align: center; font-size: 17px; font-weight: 700;
  margin: 0 0 4px; color: var(--text-body);
}
.vm-title-lg { font-size: 20px; margin-bottom: 6px; }
.vm-subtitle {
  text-align: center; font-size: 13px; color: var(--text-muted);
  margin: 0 0 20px; line-height: 1.5;
}
.vm-subtitle-lg { font-size: 13.5px; margin-bottom: 20px; }

/* ── Server card inside vote modal ─────────────────────────── */
.vm-server-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  margin-bottom: 16px;
  transition: background .2s, border-color .2s;
}
.vm-server-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
.vm-server-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px; color: var(--text-muted);
}
.vm-server-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.vm-server-card-body { flex: 1; min-width: 0; text-align: left; }
.vm-server-card-name {
  font-size: 14.5px; font-weight: 700; color: var(--text-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.vm-server-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vm-server-card-ip {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-mono); opacity: .7;
}
.vm-server-card-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
}
.vm-server-card-status .dot { width: 7px; height: 7px; border-radius: 50%; }

.vm-server-card-votes {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.12);
  min-width: 60px;
}
.vm-card-votes-num {
  font-size: 20px; font-weight: 800; color: #3ddc84;
  line-height: 1.1;
}
.vm-card-votes-label {
  font-size: 10px; color: rgba(61,220,132,.6); font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px;
}

/* ── Info row ──────────────────────────────────────────────── */
.vm-info-row {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 20px;
}
.vm-info-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  font-size: 11.5px; color: var(--text-muted);
}
.vm-info-icon { font-size: 13px; }

/* ── Login form ────────────────────────────────────────────── */
.vm-form { display: flex; flex-direction: column; gap: 14px; }
.vm-field { display: flex; flex-direction: column; gap: 5px; }
.vm-field label {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: .2px;
}
.vm-field input {
  width: 100%; padding: 11px 14px; font-size: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; color: var(--text-body);
  outline: none; transition: all .2s ease;
}
.vm-field input::placeholder { color: rgba(255,255,255,.25); }
.vm-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(85,182,246,.12);
  background: rgba(255,255,255,.07);
}

.vm-submit {
  width: 100%; padding: 12px 16px; margin-top: 6px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  color: #fff; background: var(--green-strong);
  border: 0; border-radius: 12px; cursor: pointer;
  transition: all .2s ease;
  position: relative; overflow: hidden;
}
.vm-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  opacity: 0; transition: opacity .2s;
}
.vm-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.vm-submit:hover::before { opacity: 1; }
.vm-submit:active { transform: scale(.98) translateY(0); }
.vm-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.vm-submit-glow {
  box-shadow: 0 4px 20px rgba(61,220,132,.25);
}
.vm-submit-glow:hover {
  box-shadow: 0 6px 28px rgba(61,220,132,.35);
}

.vm-error {
  font-size: 12px; color: var(--red); text-align: center;
  min-height: 16px; margin-top: -6px;
  animation: vm-shake .4s ease;
}
@keyframes vm-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.vm-link {
  text-align: center; font-size: 12.5px; color: var(--text-muted);
  margin-top: 16px;
}
.vm-link a {
  color: var(--primary); text-decoration: none; font-weight: 600;
  transition: color .15s;
}
.vm-link a:hover { color: #a0d4ff; }

/* ── Vote button ───────────────────────────────────────────── */
.vm-vote-btn-main {
  width: 100%; padding: 15px 20px;
  font-size: 15px; font-weight: 800; font-family: inherit;
  color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3ddc84 0%, #2ecc71 50%, #27ae60 100%);
  background-size: 200% 200%;
  animation: vm-btn-shimmer 3s ease infinite;
  box-shadow: 0 6px 24px rgba(61,220,132,.3);
  transition: all .25s ease;
}
.vm-vote-btn-main::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 50%);
  opacity: 0; transition: opacity .25s;
}
.vm-vote-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(61,220,132,.4);
}
.vm-vote-btn-main:hover::before { opacity: 1; }
.vm-vote-btn-main:active { transform: translateY(0) scale(.97); }
.vm-vote-btn-main:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.vm-btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

@keyframes vm-btn-shimmer {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Success state ─────────────────────────────────────────── */
.vm-success {
  text-align: center; padding: 48px 28px 36px;
  position: relative;
}
.vm-success-burst {
  position: absolute; top: 32px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,220,132,.2) 0%, transparent 70%);
  animation: vm-burst .6s ease-out forwards;
}
@keyframes vm-burst {
  0% { transform: translateX(-50%) scale(0); opacity: 1; }
  100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}

.vm-success-circle {
  width: 72px; height: 72px; margin: 0 auto 16px;
  animation: vm-pop .5s cubic-bezier(.34,1.2,.64,1) .1s both;
}
.vm-check-svg { width: 100%; height: 100%; }
.vm-check-path {
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: vm-check-draw .5s ease .4s forwards;
}
@keyframes vm-check-draw {
  to { stroke-dashoffset: 0; }
}

.vm-success-title {
  font-size: 18px; font-weight: 800; color: #3ddc84;
  margin-bottom: 6px;
  animation: vm-fade-up .4s ease .3s both;
}
.vm-success-count {
  font-size: 28px; font-weight: 900; color: var(--text-body);
  margin: 4px 0 8px;
  animation: vm-fade-up .4s ease .4s both;
}
.vm-success-sub {
  font-size: 13px; color: var(--text-muted);
  animation: vm-fade-up .4s ease .5s both;
}

@keyframes vm-pop {
  from { opacity: 0; transform: scale(.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes vm-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Timer row ─────────────────────────────────────────────── */
.vm-timer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
}
.vm-timer-row-already {
  margin-top: 20px; margin-bottom: 0;
}
.vm-timer-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(61,220,132,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vm-timer-icon svg { width: 18px; height: 18px; color: #3ddc84; }
.vm-timer-body { flex: 1; text-align: left; }
.vm-timer-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px;
}
.vm-timer-value {
  font-size: 22px; font-weight: 800; color: #3ddc84;
  font-family: var(--font-mono); letter-spacing: 1px;
}
.vm-already { padding: 40px 28px 36px; }
.vm-already-circle { background: rgba(255,255,255,.08); border-radius: 50%; }
.vm-already-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 0; }

@media (max-width: 480px) {
  /* Vote modal */
  .vm-modal-login { padding: 28px 20px 20px; }
  .vm-vote-content { padding: 4px 20px 20px; }
  .vm-vote-hero { height: 120px; }
  .vm-server-card-icon { width: 38px; height: 38px; }
  .vm-server-card { flex-wrap: wrap; gap: 10px; }
  .vm-server-card-votes { flex: 1 1 100%; justify-content: center; padding: 10px; }
  .vm-info-row { flex-direction: column; align-items: center; }
  .vm-timer-row { flex-direction: column; text-align: center; gap: 8px; }
  .vm-success { padding: 32px 20px 28px; }

  /* Login modal */
  .vm-avatar-ring { width: 56px; height: 56px; }
  .vm-avatar-icon { font-size: 22px; }
  .vm-login-head { margin-bottom: 20px; }
  .vm-form { gap: 12px; }

  /* Verify modal */
  .vm-modal-verify { max-width: 100%; }
  .verify-hero { height: 110px; }
  .verify-content { padding: 4px 20px 20px; }
  .verify-code { font-size: 18px; letter-spacing: 2px; padding: 10px 12px; }
  .verify-code-row { flex-direction: column; gap: 8px; }
  .verify-copy-btn { width: 100%; justify-content: center; }
  .verify-tabs { flex-direction: column; gap: 6px; }
  .verify-tab { padding: 10px 12px; }
  .verify-step { padding: 12px; gap: 10px; }
  .verify-step-num { width: 24px; height: 24px; font-size: 11px; }
  .verify-step-title { font-size: 12.5px; }
  .verify-step-desc { font-size: 11.5px; }
  .verify-step-desc code { font-size: 10.5px; padding: 1px 4px; }
  .verify-check-btn { padding: 12px 16px; font-size: 14px; }
  .vm-modal { max-width: calc(100vw - 32px); }
}

@media (max-width: 360px) {
  .vm-modal { border-radius: 14px; }
  .vm-vote-hero { height: 100px; }
  .vm-thumb-ring { width: 70px; height: 70px; }
  .vm-thumb-emoji { font-size: 32px; }
  .vm-title-lg { font-size: 17px; }
  .verify-hero { height: 90px; }
  .verify-shield svg { width: 40px; height: 40px; }
  .verify-code { font-size: 16px; letter-spacing: 1px; }
}

/* ── Responsive (mobile search) ─────────────────────────────── */
@media (max-width: 700px) {
  .smart-search { max-width: 100%; min-width: 0; }
  .smart-search-input { font-size: 16px; }
  .smart-search-dropdown { max-height: 60vh; }
  .smart-search-kbd { display: none; }

  /* All modals: center-safe padding on tablet */
  .vm-overlay { padding: 12px; }
}

/* ── Voters section ── */
.srv-voters-box { position: relative; }
.srv-voters-summary {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-muted); margin-left: auto; white-space: nowrap;
  background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: 999px; padding: 5px 12px;
}
.srv-voters-summary b { color: var(--green); font-weight: 700; }

.srv-voters-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.srv-voter-tab {
  flex: none; padding: 8px 16px; font-size: 12.5px; font-weight: 600; font-family: inherit;
  color: var(--text-muted); background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.srv-voter-tab:hover { color: var(--text-body); border-color: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.srv-voter-tab:active { transform: translateY(1px) scale(.97); }
.srv-voter-tab.is-active {
  color: var(--green); border-color: var(--green-border); background: var(--green-subtle);
  box-shadow: 0 0 0 1px var(--green-border), 0 4px 16px rgba(61, 220, 132, .18);
}

.srv-voters-body { min-height: 80px; padding-top: 4px; }
.srv-voters-empty { text-align: center; padding: 32px 16px; color: var(--text-muted); font-size: 14px; }

.srv-voters-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 32px 16px; color: var(--text-muted); font-size: 13px;
}
.srv-voters-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .6s linear infinite;
}

.srv-voters-list { display: flex; flex-direction: column; }
.srv-voter-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.srv-voter-row:last-child { border-bottom: none; }
.srv-voter-row:hover { background: rgba(255,255,255,.03); }

.srv-voter-rank {
  width: 28px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-muted);
  flex-shrink: 0;
}
.srv-voter-rank.rank-1 { color: #ffd700; }
.srv-voter-rank.rank-2 { color: #c0c0c0; }
.srv-voter-rank.rank-3 { color: #cd7f32; }

.srv-voter-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text-body);
  background: var(--bg-muted); border: 1px solid var(--border-neutral);
  flex-shrink: 0; overflow: hidden;
}
.srv-voter-avatar img { width: 100%; height: 100%; object-fit: cover; }

.srv-voter-name {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.srv-voter-name a { color: inherit; text-decoration: none; }
.srv-voter-name a:hover { color: var(--accent); }

.srv-voter-count {
  font-size: 13px; font-weight: 700; color: var(--accent);
  white-space: nowrap; flex-shrink: 0;
}
.srv-voter-count span { font-weight: 400; color: var(--text-muted); margin-left: 2px; }

.srv-voter-time {
  font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.srv-voter-streak {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.15);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}
.srv-voter-medal { font-size: 14px; flex-shrink: 0; }
.srv-voters-today { font-size: 12px; color: var(--text-muted); }

/* Tab switch animations */
.srv-voters-fade-out { opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
.srv-voters-fade-in { animation: votersFadeIn .3s ease both; }
@keyframes votersFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered row entrance */
.srv-voter-anim {
  opacity: 0;
  animation: voterRowIn .35s ease both;
}
@keyframes voterRowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* SVG medal sizing */
.srv-voter-medal-svg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0;
}
.srv-voter-medal-ico { width: 22px; height: 22px; }

.srv-voters-fresh { animation: votersFresh .5s ease; }
@keyframes votersFresh {
  0% { opacity: .55; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .srv-voter-tab { transition: none; }
  .srv-voter-anim, .srv-voters-fade-in, .srv-voters-fresh { animation: none; opacity: 1; }
}

/* ============================================================
   Вайпы v2 — редизайн карточек
   ============================================================ */
.wipe-next-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; margin: 18px 0 26px;
  background: linear-gradient(180deg, var(--bg-surface), color-mix(in srgb, var(--bg-surface) 94%, #000));
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border-neutral));
  border-radius: var(--r-lg); font-size: 14px; color: var(--text-secondary);
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.wipe-next-strip .next-label {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.next-srv { font-size: 15px; }
.next-srv a { color: var(--text-body); text-decoration: none; background-image: linear-gradient(var(--green), var(--green)); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: color .2s, background-size .3s; }
.next-srv a:hover { color: var(--green); background-size: 100% 2px; }
.next-day { color: var(--text-secondary); }
.next-time { color: var(--text-secondary); }
.next-time { font-variant-numeric: tabular-nums; }
.next-cd {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--green);
  background: var(--green-subtle); border: 1px solid var(--green-border);
  padding: 7px 14px; border-radius: 999px; font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(61,220,132,.18);
  animation: pillPulse 2.2s ease-in-out infinite;
}
.next-cd.done, .wm-cd-val.done { color: var(--red); animation: none; }

/* ============ Видео серверов ============ */
.video-title { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 4px 0 16px; line-height: 1.2; }
.video-server-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  margin-bottom: 16px;
  border-radius: var(--r-lg, 16px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%),
    linear-gradient(135deg, rgba(61,220,132,.06), rgba(61,220,132,.015) 45%, transparent 70%),
    var(--bg-surface);
  border: 1px solid rgba(61,220,132,.16);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -18px rgba(0,0,0,.6);
  overflow: hidden;
  padding: 0;
}
.video-server-strip::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(61,220,132,.14), transparent 32%);
  opacity: .5;
}
.vsrc-srv {
  position: relative;
  display: flex; align-items: center; gap: 15px;
  padding: 16px 18px;
  color: var(--text-body);
  z-index: 1;
}
.vsrc-srv:hover { text-decoration: none; }
.vsrc-srv:hover .vsrc-name { color: var(--green); }
.vsrc-ico-wrap { position: relative; flex: none; width: 52px; height: 52px; }
.vsrc-ico { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--bg-muted); flex: none; border: 1px solid var(--border-neutral-hover); }
.vsrc-ico-ping { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg-surface); box-shadow: 0 0 0 0 rgba(61,220,132,.45); animation: vbadge-pulse 2s ease-out infinite; }
.vsrc-ico-fb { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; font-weight: 800; font-size: 24px; color: var(--text-body); background: linear-gradient(135deg, var(--bg-muted-strong), var(--bg-muted)); }
.vsrc-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vsrc-topline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vsrc-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .2px; transition: color .15s ease; }
.vsrc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.vsrc-live { background: var(--bg-muted); border: 1px solid var(--border-neutral); color: var(--text-muted); }
.vsrc-live.is-on { background: var(--green-subtle); border: 1px solid var(--green-border); color: var(--green); }
.vsrc-odot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-placeholder); flex: none; }
.vsrc-live.is-on .vsrc-odot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.vsrc-host { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.vsrc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.vsrc-tag { font-size: 11px; color: var(--green); background: rgba(61,220,132,.07); border: 1px solid rgba(61,220,132,.14); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.vsrc-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; padding: 16px 18px 16px 0; }
.vsrc-copy { margin: 0; flex: none; width: 190px; padding: 10px 14px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; justify-content: center; background: var(--green-strong); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: filter .15s ease, transform .1s ease, box-shadow .15s ease; box-shadow: 0 6px 18px -8px rgba(61,220,132,.5); }
.vsrc-copy:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(61,220,132,.65); }
.vsrc-copy .copy-ip { font-weight: 800; font-size: 14px; letter-spacing: .4px; color: #fff; font-variant-numeric: tabular-nums; }
.vsrc-copy .copy-label { color: rgba(255,255,255,.85); font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; }
.vsrc-copy.is-copied { background: var(--green-strong); border-color: rgba(255,255,255,.3); }
.vsrc-copy.is-copied .copy-ip, .vsrc-copy.is-copied .copy-label { color: #fff; }
.vsrc-open { align-self: center; font-size: 13px; font-weight: 700; color: var(--text-secondary); text-decoration: none; letter-spacing: .2px; }
.vsrc-open:hover { color: var(--green); text-decoration: none; }
.vsrc-foot { position: relative; z-index: 1; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 11px 18px; border-top: 1px solid var(--border-neutral); background: rgba(0,0,0,.14); }
.vsrc-stat { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-secondary); padding: 0 14px; border-right: 1px solid var(--border-neutral); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vsrc-stat:first-child { padding-left: 0; }
.vsrc-stat:last-child { border-right: 0; }
.vsrc-stat b { color: var(--text-body); font-weight: 700; }
.vsrc-sico { width: 15px; text-align: center; color: var(--text-muted); }
.vsrc-copies-today { color: var(--text-muted); font-size: 12px; }
.video-embed-wrap { margin-bottom: 14px; }
.video-embed-16x9 { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border-neutral); }
.video-embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-open-yt { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--brand-youtube); font-weight: 600; }
.video-stats-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 14px; }
.vs-item { font-size: 13px; color: var(--text-secondary); }
.vs-item b { color: var(--text-body); }
.vs-likes { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-surface); border: 1px solid var(--border-neutral); color: var(--text-body); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.vs-likes[aria-pressed="true"] { border-color: var(--green-border); background: var(--green-subtle); }
.vs-likes.is-dislike[aria-pressed="true"] { border-color: rgba(255,92,108,.35); background: rgba(255,92,108,.12); }
.vs-likes b { font-weight: 700; }
.video-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.video-tag { font-size: 12px; color: var(--text-link); background: var(--primary-subtle); border: 1px solid var(--border-neutral); border-radius: 999px; padding: 4px 10px; }
.video-tag:hover { text-decoration: none; border-color: var(--border-strong); }
.video-sec-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.video-desc-box, .video-comments-box, .video-recs-box { margin-bottom: 18px !important; }
.video-desc { white-space: pre-wrap; color: var(--text-secondary); line-height: 1.6; }
.video-seo-box { display: grid; gap: 10px; }
.video-seo-text { color: var(--text-secondary); line-height: 1.65; }
.video-seo-text > p { margin: 0 0 8px; }
.video-seo-text > p:last-child { margin-bottom: 0; }
.video-seo-text q { font-style: italic; color: var(--text-body); }
.video-seo-text code { background: var(--bg-muted-strong); border: 1px solid var(--border-neutral); border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.video-dirs { display: grid; gap: 8px; margin-top: 2px; }
.video-dirs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vdc { font-size: 13px; color: var(--green); background: var(--green-subtle); border: 1px solid var(--green-border); border-radius: 999px; padding: 5px 12px; transition: background .15s, transform .15s; }
.vdc:hover { text-decoration: none; background: var(--green-soft); transform: translateY(-1px); }
.vsrv-hero { display: grid; gap: 14px; margin-top: 6px; }
.vsrv-identity { display: flex; align-items: center; gap: 14px; }
.vsrv-ico { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--green-subtle), var(--bg-muted-strong)); border: 1px solid var(--green-border); }
.vsrv-ico img { width: 100%; height: 100%; object-fit: cover; }
.vsrv-ico-text { font-size: 26px; font-weight: 800; color: var(--green); }
.vsrv-id-body { display: grid; gap: 6px; min-width: 0; }
.vsrv-title { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.vsrv-host { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono, monospace); }
.vsrv-ip { background: var(--bg-muted-strong); border: 1px solid var(--border-neutral); border-radius: 8px; padding: 3px 10px; font-size: 15px; }
.vsrv-votes { font-size: 13px; color: var(--text-muted); }
.vsrv-sub { margin-top: 4px; }
.vsrv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vsrv-btn { font-size: 14px; font-weight: 600; border-radius: 10px; padding: 9px 16px; transition: transform .15s, background .15s; }
.vsrv-btn-card { color: #fff; background: var(--green-strong); }
.vsrv-btn-card:hover { text-decoration: none; transform: translateY(-1px); }
.vsrv-btn-modes { color: var(--green); background: var(--green-subtle); border: 1px solid var(--green-border); }
.vsrv-btn-modes:hover { text-decoration: none; background: var(--green-soft); }
@media (max-width: 640px) {
  .vsrv-identity { align-items: flex-start; }
  .vsrv-ico { width: 50px; height: 50px; flex-basis: 50px; }
}
.video-seo-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vsl-cap { font-size: 12px; color: var(--text-muted); }
.vsl { font-size: 13px; color: var(--green); background: var(--green-subtle); border: 1px solid var(--green-border); border-radius: 999px; padding: 4px 12px; transition: background .15s, transform .15s; }
.vsl:hover { text-decoration: none; background: var(--green-soft); transform: translateY(-1px); }
.video-faq { display: grid; gap: 8px; }
.video-faq-item { background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); padding: 0 14px; }
.video-faq-item summary { cursor: pointer; font-weight: 600; color: var(--text-body); padding: 12px 0; }
.video-faq-item[open] summary { border-bottom: 1px solid var(--border-neutral); margin-bottom: 8px; }
.video-faq-item p { color: var(--text-secondary); line-height: 1.6; margin: 0 0 12px; }
.video-seo-box, .video-faq-box { margin-bottom: 18px !important; }
.video-comments-count { color: var(--text-muted); font-size: 14px; }
.video-comment-form { display: grid; gap: 8px; margin-bottom: 16px; }
.video-comment-nick, .video-comment-input { background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); color: var(--text-body); padding: 10px 12px; font: inherit; width: 100%; }
.video-comment-nick:focus, .video-comment-input:focus { outline: none; border-color: var(--border-strong); }
.video-comment-submit { justify-self: start; background: var(--green-strong); color: #05130a; font-weight: 700; border: 0; border-radius: var(--r-sm); padding: 10px 18px; cursor: pointer; }
.video-comment-status { font-size: 13px; color: var(--green); min-height: 0; }
.video-comment-status.is-err { color: var(--red); }
.video-comments-list { display: grid; gap: 14px; }
.video-comments-empty { color: var(--text-muted); padding: 10px 0; }
.vcom { display: flex; gap: 10px; padding: 12px; background: var(--bg-muted); border-radius: var(--r-sm); border: 1px solid var(--border-neutral); }
.vcom-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-muted-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.vcom-body { min-width: 0; flex: 1; }
.vcom-author { color: var(--text-body); }
.vcom-text { color: var(--text-secondary); margin: 2px 0 8px; white-space: pre-wrap; word-break: break-word; }
.vcom-reacts { display: flex; flex-wrap: wrap; gap: 6px; }
.vcom-react { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: 999px; padding: 3px 10px; cursor: pointer; font-size: 13px; color: var(--text-secondary); }
.vcom-react:hover { border-color: var(--border-strong); }
.vr-count { font-weight: 700; }
.video-recs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vrec-card { display: block; overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md); transition: border-color .15s, transform .15s; }
.vrec-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); }
.vrec-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-dark); overflow: hidden; }
.vrec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vrec-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.vrec-info { padding: 10px 12px 12px; }
.vrec-title { font-weight: 600; font-size: 14px; color: var(--text-body); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vrec-srv { color: var(--text-link); font-size: 12px; margin-top: 4px; }
.vrec-views { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.video-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #000c; color: #fff; padding: 10px 16px; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 999; }
.video-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Каталог видео */
.video-search { display: flex; gap: 8px; margin: 8px 0 14px; }
.video-search-input { flex: 1; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); color: var(--text-body); padding: 10px 14px; font: inherit; }
.video-search-input:focus { outline: none; border-color: var(--border-strong); }
.video-search-btn { background: var(--primary); color: #04111b; font-weight: 700; border: 0; border-radius: var(--r-sm); padding: 10px 20px; cursor: pointer; }
.video-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.video-tag-chip { font-size: 12px; color: var(--text-secondary); background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: 999px; padding: 4px 10px; }
.video-tag-chip:hover { text-decoration: none; border-color: var(--border-strong); }
.video-tag-chip.is-active { color: var(--text-body); border-color: var(--green-border); background: var(--green-subtle); }
.vtc-n { color: var(--text-muted); }
.video-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.vfb-label { color: var(--text-muted); }
.vfb-chip { background: var(--bg-muted); border: 1px solid var(--border-neutral); border-radius: 999px; padding: 4px 10px; color: var(--text-body); }
.vfb-clear { color: var(--red); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.video-card { display: block; overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md); transition: border-color .15s, transform .15s; }
.video-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); }
.video-card-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-dark); overflow: hidden; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vc-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.vc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,0,0,.85); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transition: opacity .15s; }
.video-card:hover .vc-play { opacity: 1; }
.video-card-body { padding: 10px 12px 12px; }
.video-card-title { font-weight: 600; font-size: 14px; color: var(--text-body); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.video-card-srv { color: var(--text-link); font-size: 12px; margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.video-card-srv a { color: inherit; }
.video-card-srv a:hover { text-decoration: none; color: var(--text-link-hover); }
.vcsrv-ico { width: 22px; height: 22px; border-radius: 6px; overflow: hidden; flex: none; background: var(--bg-muted-strong); border: 1px solid var(--border-neutral); display: inline-flex; align-items: center; justify-content: center; }
.vcsrv-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcsrv-ico-text { font-size: 11px; font-weight: 800; color: var(--green); }
.vcsrv-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-online { color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; font-size: 12px; margin-left: auto; flex: none; }
.vco-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-placeholder); flex: none; }
.vc-online.is-on { color: var(--green); }
.vc-online.is-on .vco-dot { background: var(--green); box-shadow: 0 0 0 0 rgba(61,220,132,.45); animation: vbadge-pulse 2s ease-out infinite; }
.vc-online b { font-weight: 700; font-variant-numeric: tabular-nums; }
.vc-srv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.video-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.hs-link { font-size: 13px; }

/* Видеогалерея на странице сервера */
.srv-videogallery-box .srv-slider-track { align-items: stretch; }
.srv-slide-video { flex: 0 0 300px; max-width: 300px; }
.srv-video-card { display: block; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md); overflow: hidden; height: 100%; }
.srv-video-card:hover { text-decoration: none; border-color: var(--border-strong); }
.srv-video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-dark); }
.srv-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.srv-video-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.srv-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,0,0,.85); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.srv-video-t { padding: 8px 10px 2px; font-weight: 600; font-size: 13px; color: var(--text-body); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srv-video-views { padding: 0 10px 10px; color: var(--text-muted); font-size: 12px; }
.srv-video-copies { font-size: 12px; color: var(--text-secondary); }

/* ── Мега-витрина видео: hero + горячие + панель фильтров ─────────── */
.video-hero { background: linear-gradient(180deg, var(--bg-elevated, var(--bg-surface)), var(--bg-base, var(--bg-muted))); border-bottom: 1px solid var(--border-neutral); margin-bottom: 20px; padding: 22px 0 26px; }
.video-hero-inner { display: grid; gap: 10px; }
.video-hero .breadcrumbs { margin-bottom: 2px; }
.video-hero-title { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.15; margin: 0; }
.video-hero-sub { color: var(--text-secondary); max-width: 720px; margin: 0; font-size: 15px; line-height: 1.5; }
.video-hero-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text-secondary); }
.vhs-item b { color: var(--text-body); font-size: 16px; }
.vhs-item.dim { color: var(--text-muted); font-size: 13px; }
.video-hero-search { margin: 8px 0 0; max-width: 640px; }
.video-hot-section { margin-bottom: 22px; }
.video-hot-section .section-title { margin-bottom: 12px; }
.video-hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.video-hot-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md); transition: border-color .15s, transform .15s; }
.video-hot-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); }
.video-hot-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-dark); overflow: hidden; }
.video-hot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vhc-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.video-hot-body { padding: 12px 14px 14px; }
.video-hot-rank { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; background: rgba(255,0,0,.9); border-radius: 8px; }
.video-hot-title { font-weight: 600; font-size: 14px; color: var(--text-body); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-hot-srv { color: var(--text-link); font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.video-hot-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.video-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.video-sorts { display: inline-flex; gap: 4px; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-sm); padding: 3px; }
.video-sort { font-size: 13px; color: var(--text-secondary); padding: 6px 14px; border-radius: 6px; }
.video-sort:hover { text-decoration: none; color: var(--text-body); }
.video-sort.is-active { background: var(--primary); color: #04111b; font-weight: 700; }

@media (max-width: 640px) {
  .video-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .video-hero-feat { justify-self: stretch; max-width: none; }
  .video-title { font-size: 20px; }
  .video-server-strip { grid-template-columns: 1fr; }
  .vsrc-srv { padding: 14px; }
  .vsrc-actions { padding: 0 14px 14px; }
  .vsrc-copy { margin: 0; width: 100%; }
  .vsrc-foot { padding: 10px 14px; }
  .vsrc-stat { padding: 0 10px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-recs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .srv-slide-video { flex: 0 0 240px; max-width: 240px; }
  .video-stats-row { gap: 8px; }
  .video-hero { padding: 16px 0 20px; }
  .video-hero-stats { gap: 6px 12px; font-size: 13px; }
  .video-hot-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-toolbar { align-items: flex-start; }
}

@media (max-width: 900px) {
  .video-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .video-hero-feat { justify-self: stretch; max-width: none; }
}

@media (min-width: 900px) {
  .video-hot-grid { grid-template-columns: repeat(3, 1fr); }
}


/* === ����-������� ����� v2: �������� � �������-������ === */

@keyframes vfade-up {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vthumb-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes vglow-float {
  0%, 100% { opacity: .5; transform: translate(-10%, -6%) scale(1); }
  50% { opacity: .85; transform: translate(6%, 8%) scale(1.1); }
}
@keyframes vbadge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .45); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* Hero */
.video-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 18% -40%, rgba(85, 182, 246, .16), transparent 60%),
    radial-gradient(900px 380px at 85% -30%, rgba(61, 220, 132, .13), transparent 55%),
    linear-gradient(180deg, var(--bg-elevated, var(--bg-surface)), var(--bg-base, var(--bg-muted)));
  border-bottom: 1px solid var(--border-neutral);
  margin-bottom: 22px;
  padding: 24px 0 28px;
}
.video-hero-glow {
  position: absolute;
  top: -60px; left: 8%; width: 480px; height: 300px;
  background: radial-gradient(closest-side, rgba(85,182,246,.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: vglow-float 9s ease-in-out infinite;
}
.video-hero-inner { position: relative; display: grid; gap: 12px; }
.video-hero-glow2 { left: auto; right: -6%; top: -40px; width: 560px; background: radial-gradient(closest-side, rgba(61,220,132,.20), transparent 70%); animation-delay: 2.5s; }
.video-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.video-hero-main { min-width: 0; }
.video-hero-feat { min-width: 0; justify-self: end; width: 100%; max-width: 480px; }
.video-hero-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; }
.video-hero-title { margin-bottom: 0; background: linear-gradient(100deg, var(--text-body) 30%, var(--primary-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.video-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--green);
  background: var(--green-subtle); border: 1px solid var(--green-border);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.vhb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: vbadge-pulse 2s ease-out infinite; }
.video-hero-stats { font-size: 14px; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.vhs-item { display: inline-flex; align-items: baseline; gap: 6px; }
.vhs-item b { color: var(--text-body); font-size: 18px; font-variant-numeric: tabular-nums; }
.vhs-item .vhs-lbl { font-style: normal; color: var(--text-secondary); font-size: 13px; }
.vhs-item.sep { color: var(--text-muted); }
.vhs-item.dim { color: var(--text-muted); font-size: 13px; }

/* Чипы популярных тегов в hero */
.video-hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; }
.vhc-cap { font-size: 12px; color: var(--text-muted); }
.vhc-chip { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-subtle); border: 1px solid var(--green-border); border-radius: 999px; padding: 3px 11px; transition: background .15s, transform .15s, box-shadow .15s; }
.vhc-chip:hover { text-decoration: none; background: var(--green-soft); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(61,220,132,.22); }

/* Featured-ролик справа в hero */
.vfeat { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--card-glass-border, var(--border-neutral)); background: var(--card-glass-bg, var(--bg-surface)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 14px 40px rgba(0,0,0,.38); transition: border-color .2s, transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s; animation: vfade-up .5s .05s both cubic-bezier(.16,1,.3,1); }
.vfeat:hover { text-decoration: none; border-color: var(--green-border); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(61,220,132,.2); }
.vfeat-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-muted) linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); background-size: 400px 100%; animation: vthumb-shimmer 1.6s linear infinite; overflow: hidden; }
.vfeat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.vfeat:hover .vfeat-thumb img { transform: scale(1.06); }
.vfeat-rank { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; color: #04110a; background: linear-gradient(135deg, #ffd54d, #ff9800); border-radius: 999px; padding: 4px 12px; box-shadow: 0 4px 12px rgba(255,152,0,.35); }
.vfeat-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,0,0,.9); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 4px; box-shadow: 0 8px 26px rgba(255,0,0,.4); opacity: 0; transition: opacity .2s, transform .22s cubic-bezier(.34,1.56,.64,1); }
.vfeat:hover .vfeat-play { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
.vfeat-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); transform: translateX(-120%); }
.vfeat:hover .vfeat-shine { animation: vshine .9s ease; }
@keyframes vshine { to { transform: translateX(120%); } }
.vfeat-body { padding: 14px 16px 16px; }
.vfeat-title { font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--text-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vfeat-srv { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.vfeat .video-card-meta { margin-top: 10px; align-items: center; }
.vfeat-go { color: var(--green); font-weight: 700; font-size: 13px; margin-left: auto; }
.video-hero-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; margin-top: 6px; }
.vs-ico { width: 20px; height: 20px; color: var(--text-muted); flex: none; pointer-events: none; position: absolute; left: 14px; z-index: 1; transition: color .2s; }
.video-search-input { padding-left: 44px; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--r-md); color: var(--text-body); padding: 12px 14px; font: inherit; transition: border-color .2s, box-shadow .2s; }
.video-search-input:focus { outline: none; border-color: var(--green-border); box-shadow: 0 0 0 3px rgba(61,220,132,.12); }
.video-search-input:focus ~ .vs-ico, .video-search-input:not(:placeholder-shown) ~ .vs-ico { color: var(--green); }
.video-search-btn { background: linear-gradient(135deg, var(--green-strong), #1d8a3e); color: #04110a; font-weight: 700; border: 0; border-radius: var(--r-md); padding: 12px 22px; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s; box-shadow: 0 4px 14px rgba(43,171,77,.25); }
.video-search-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(43,171,77,.35); }

/* ��������� ������ */
.video-sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.video-sec-title { margin-bottom: 0 !important; }
.vsec-emoji { font-style: normal; display: inline-block; animation: vglow-float 3s ease-in-out infinite; }
.video-sec-note { color: var(--text-muted); font-size: 13px; }

/* ������� ����� */
.video-hot-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card-glass-bg, var(--bg-surface));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--card-glass-border, var(--border-neutral));
  border-radius: var(--r-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: border-color .2s, transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
  animation: vfade-up .45s calc(var(--gi, 0) * 60ms) both cubic-bezier(.16,1,.3,1);
}
.video-hot-card:hover { text-decoration: none; transform: translateY(-5px); border-color: var(--green-border); box-shadow: 0 14px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(61,220,132,.18); }
.video-hot-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-muted) linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); background-size: 400px 100%; animation: vthumb-shimmer 1.6s linear infinite; overflow: hidden; }
.video-hot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.video-hot-card:hover .video-hot-thumb img, .video-card:hover .video-card-thumb img { transform: scale(1.07); }
.video-hot-body { padding: 14px 16px 16px; }
.video-hot-rank {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #ff5c6c, #e5394d);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(229,57,77,.35);
}
.video-hot-title { font-weight: 600; font-size: 15px; line-height: 1.4; }

/* ������� ������ �������� */
.video-hot-card.is-lead .video-hot-thumb { aspect-ratio: 16 / 8; }
.video-hot-card.is-lead .video-hot-body { display: flex; flex-direction: column; justify-content: center; }
.video-hot-card.is-lead .vc-play { width: 58px; height: 58px; font-size: 22px; }

/* ����� �������� �������� */
.vc-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 0, 0, .85); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; padding-left: 3px;
  opacity: 0; transition: opacity .2s, transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  box-shadow: 0 4px 16px rgba(255,0,0,.3);
}
.video-card:hover .vc-play, .video-hot-card:hover .vc-play {
  opacity: 1; transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 22px rgba(255,0,0,.45);
}
.vc-shine { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.vc-shine::after {
  content: ''; position: absolute; top: -40%; left: -60%; width: 45%; height: 180%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(0) rotate(12deg);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.video-card:hover .vc-shine::after, .video-hot-card:hover .vc-shine::after { transform: translateX(420%) rotate(12deg); }
.vc-dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.08);
}
.vmeta-ico { font-style: normal; font-weight: 400; }
.vmeta-date { margin-left: auto; }

/* ����� */
.video-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.video-card {
  background: var(--card-glass-bg, var(--bg-surface));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--card-glass-border, var(--border-neutral));
  border-radius: var(--r-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: border-color .2s, transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
  animation: vfade-up .45s calc(var(--gi, 0) * 45ms) both cubic-bezier(.16,1,.3,1);
}
.video-card:hover { text-decoration: none; transform: translateY(-5px); border-color: var(--green-border); box-shadow: 0 14px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(61,220,132,.18); }
.video-card-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-muted) linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); background-size: 400px 100%; animation: vthumb-shimmer 1.6s linear infinite; overflow: hidden; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.video-card-body { padding: 12px 14px 14px; }
.video-card-title { font-size: 14.5px; min-height: 40px; transition: color .2s; }
.video-card:hover .video-card-title { color: var(--primary-soft); }
.video-card-srv { margin-top: 7px; }

/* ������� */
.video-toolbar { margin: 20px 0 14px; }
.video-sorts { padding: 4px; border-radius: 999px; background: var(--bg-muted); border: 1px solid var(--border-neutral); }
.video-sort { position: relative; font-size: 13px; font-weight: 500; color: var(--text-secondary); padding: 7px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background .2s, transform .15s; }
.video-sort:hover { text-decoration: none; color: var(--text-body); background: var(--bg-muted-strong); }
.video-sort.is-active { background: linear-gradient(135deg, var(--green-strong), #1d8a3e); color: #04110a; font-weight: 700; box-shadow: 0 4px 12px rgba(43,171,77,.3); }
.vsort-ico { font-style: normal; }
.video-count { font-size: 13px; color: var(--text-muted); }
.video-count b { color: var(--text-body); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ���� */
.video-tag-chip {
  font-size: 13px; color: var(--text-secondary); background: var(--bg-surface);
  border: 1px solid var(--border-neutral); border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .18s, transform .15s, background .18s, box-shadow .18s, color .18s;
}
.video-tag-chip:hover { text-decoration: none; border-color: var(--green-border); color: var(--text-body); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.video-tag-chip.is-active { color: var(--green); border-color: var(--green-border); background: var(--green-subtle); box-shadow: 0 0 0 2px rgba(61,220,132,.12); }
.vtc-n { font-size: 11px; font-weight: 700; background: var(--bg-muted-strong); color: var(--text-muted); border-radius: 999px; padding: 1px 7px; }
.video-tag-chip.is-active .vtc-n { background: rgba(61,220,132,.18); color: var(--green); }

/* �����-����� � ������� + ������-��� */
.vfb-chip { border-radius: 999px; padding: 5px 12px; transition: background .15s, border-color .15s, transform .15s; }
.vfb-chip:hover { transform: translateY(-1px); }
.vfb-clear { border-radius: 999px; padding: 5px 12px; border: 1px dashed var(--red); }
.vfb-clear:hover { text-decoration: none; background: rgba(255,92,108,.08); }

/* ─── Фильтр по «реальным» режимам серверов (чипы-режимы) ─── */
.video-mode-filter {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 16px; padding: 12px 14px;
  background: linear-gradient(180deg, var(--bg-surface), rgba(255,255,255,.02));
  border: 1px solid var(--border-neutral); border-radius: 14px;
}
.vmf-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.vmf-title { font-size: 13px; font-weight: 700; color: var(--text-body); letter-spacing: .02em; text-transform: uppercase; }
.vmf-hint { font-size: 11px; color: var(--text-muted); }
.vmf-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.vmf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-muted-strong); border: 1px solid var(--border-neutral);
  border-radius: 10px; padding: 5px 10px;
  transition: border-color .16s, transform .15s, background .16s, color .16s, box-shadow .16s;
}
.vmf-chip:hover { text-decoration: none; color: var(--text-body); border-color: var(--green-border); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.vmf-chip.is-active {
  color: #04110a; background: linear-gradient(135deg, var(--green-strong), #1d8a3e);
  border-color: transparent; box-shadow: 0 4px 12px rgba(43,171,77,.28);
}
.vmf-chip-n {
  font-size: 10.5px; font-weight: 700; line-height: 1;
  min-width: 17px; text-align: center; padding: 2px 5px; border-radius: 7px;
  background: var(--bg-muted-strong); color: var(--text-muted);
}
.vmf-chip.is-active .vmf-chip-n { background: rgba(4,17,10,.18); color: #04110a; }

@media (prefers-reduced-motion: reduce) {
  .video-hero-glow, .vsec-emoji { animation: none; }
  .video-card, .video-hot-card { animation: none; }
  .video-card:hover .video-card-thumb img, .video-hot-card:hover .video-hot-thumb img { transform: none; }
  .video-card:hover .vc-shine::after, .video-hot-card:hover .vc-shine::after { transform: none; }
}

@media (max-width: 640px) {
  .video-hero { padding: 18px 0 22px; }
  .video-hero-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .video-hot-card.is-lead .video-hot-thumb { aspect-ratio: 16 / 9; }
  .video-card .vc-play, .video-hot-card .vc-play { opacity: .92; }
  .vmeta-date { margin-left: 0; }
}

@media (min-width: 900px) {
  .video-hot-card.is-lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .video-hot-card.is-lead .video-hot-thumb { flex: 1.4; aspect-ratio: 16 / 8; }
  .video-hot-card.is-lead .video-hot-body { flex: 1; }
  .video-hot-card.is-lead .video-hot-title { font-size: 19px; }
  .video-hot-card.is-lead .video-hot-srv { font-size: 13px; }
}

/* ============================================================
   Личный кабинет
   ============================================================ */
.account-layout { padding-top: calc(var(--header-height) + 18px); }
.account-layout .catalog-main { min-width: 0; }

.account-side { gap: 14px; }
.account-nav { gap: 3px; }

.account-profile-card { gap: 6px; align-items: flex-start; }
.account-avatar {
  width: 44px; height: 44px; border-radius: var(--r-md); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #101214;
  background: linear-gradient(135deg, var(--green), #1fae63);
  box-shadow: 0 4px 14px rgba(61, 220, 132, .28);
  margin-bottom: 4px;
}
.account-avatar-img { object-fit: cover; width: 44px; height: 44px; border-radius: var(--r-md); }
.account-avatar-name { font-weight: 700; color: var(--text-body); padding-right: 2px; word-break: break-word; }

/* Аватар пользователя (шапка) */
.header-avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  vertical-align: middle; margin-right: 6px; display: inline-block;
}
.header-avatar-initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green), #1fae63);
  color: #101214; font-weight: 800; font-size: 13px; line-height: 1;
}
.header-avatar-name { font-weight: 600; color: var(--text-body); }

/* Аватар в личном кабинете: предпросмотр + загрузка */
.avatar-edit-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.avatar-preview-img {
  width: 96px; height: 96px; border-radius: var(--r-lg); object-fit: cover;
  box-shadow: 0 6px 22px rgba(0,0,0,.35); flex: none;
}
.avatar-edit-initial {
  width: 96px; height: 96px; border-radius: var(--r-lg); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 800; color: #101214;
  background: linear-gradient(135deg, var(--green), #1fae63);
  box-shadow: 0 6px 22px rgba(61, 220, 132, .28);
}
.avatar-edit-info { min-width: 220px; flex: 1; }
.avatar-edit-info .account-hint { margin: 0 0 12px; }
.avatar-msg { color: var(--text-muted); font-size: 13px; line-height: 1.4; }

/* Аватар в админке (пользователи) */
.admin-avatar-cell { white-space: nowrap; }
.admin-avatar-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: var(--r-sm); vertical-align: middle; }
.admin-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.account-joined { color: var(--text-muted); font-size: 12.5px; line-height: 1.4; }
.account-logout-form { display: block; }
.account-logout-btn { width: 100%; color: var(--red); border-color: rgba(255, 92, 108, .35); background: rgba(255, 92, 108, .08); }
.account-logout-btn:hover { color: var(--red); border-color: rgba(255, 92, 108, .6); background: rgba(255, 92, 108, .14); }
.account-logout-btn .icon { width: 15px; height: 15px; }

/* Шапка страницы */
.account-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.account-hero h1 { margin: 0 0 8px; }
.account-hero-sub { color: var(--text-secondary); font-size: 14.5px; margin: 0; }
.account-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* Сетка статистики */
.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.account-stat {
  position: relative; overflow: hidden;
  background: var(--card-glass-bg); border: 1px solid var(--card-glass-border);
  border-radius: var(--r-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.account-stat::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: .5;
}
.account-stat:hover { border-color: var(--border-neutral-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.account-stat-ico {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-subtle); color: var(--primary);
}
.account-stat-ico .icon { width: 20px; height: 20px; }
.account-stat-value { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--text-body); }
.account-stat-label { color: var(--text-muted); font-size: 12.5px; }
.account-stat .badge { align-self: flex-start; }

/* Быстрые действия */
.account-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.account-action {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  border-radius: var(--r-md); padding: 14px;
  color: var(--text-body); text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}
.account-action:hover { text-decoration: none; color: var(--text-body); border-color: var(--border-neutral-hover); background: var(--bg-muted); transform: translateY(-1px); }
.account-action-ico {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-muted); color: var(--green);
}
.account-action-ico .icon { width: 20px; height: 20px; }
.account-action-txt { min-width: 0; }
.account-action-title { font-weight: 700; font-size: 14px; }
.account-action-desc { color: var(--text-muted); font-size: 12.5px; }
.account-action-arr { margin-left: auto; color: var(--text-muted); flex: none; }
.account-action-arr .icon { width: 16px; height: 16px; }

/* Секционные заголовки аккаунта */
.account-section { margin: 0 0 26px; }
.account-section-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.account-section-head h2 { margin: 0; font-size: 19px; }
.account-section-head .icon { color: var(--green); width: 19px; height: 19px; }
.account-note { color: var(--text-muted); font-size: 13px; margin: 0 0 16px; line-height: 1.55; }

.account-empty {
  text-align: center; padding: 44px 20px; border-radius: var(--r-lg);
  background: var(--card-glass-bg); border: 1px dashed var(--border-neutral-hover);
  color: var(--text-secondary);
}
.account-empty-ico { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--text-placeholder); display: flex; }
.account-empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--text-body); }
.account-empty p { margin: 0 0 16px; font-size: 13.5px; }
.account-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Таблица операций (заготовка под будущее) */
.account-table { width: 100%; border-collapse: collapse; background: var(--card-glass-bg); border: 1px solid var(--card-glass-border); border-radius: var(--r-lg); overflow: hidden; }
.account-table th, .account-table td { text-align: left; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--border-neutral); }
.account-table th { color: var(--text-muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,.015); }
.account-table tr:last-child td { border-bottom: none; }
.account-table td { color: var(--text-secondary); }
.account-table td:first-child { color: var(--text-body); font-weight: 600; }

/* Карточки серверов в личном кабинете */
.account-srv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.account-srv {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  background: var(--card-glass-bg); border: 1px solid var(--card-glass-border);
  border-radius: var(--r-lg); padding: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.account-srv:hover { border-color: var(--border-neutral-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.account-srv-ico { flex: none; width: 54px; height: 54px; }
.account-srv-ico img { width: 54px; height: 54px; border-radius: var(--r-sm); object-fit: cover; }
.account-srv-ico-fallback {
  width: 54px; height: 54px; border-radius: var(--r-sm); background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--green);
}
.account-srv-body { flex: 1 1 300px; min-width: 0; }
.account-srv-name { font-size: 16px; font-weight: 700; color: var(--text-body); }
.account-srv-name:hover { color: var(--green); text-decoration: none; }
.account-srv-meta { color: var(--text-muted); font-size: 12.5px; margin-top: 3px; }
.account-srv-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Формы настроек */
.account-form { display: flex; flex-direction: column; gap: 14px; }
.account-form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13.5px; color: var(--text-body); }
.account-form-row label .muted { font-weight: 400; }
.account-form-row input {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--bg-surface); border: 1px solid var(--border-neutral);
  color: var(--text-body); font-size: 14px; font-family: inherit;
  transition: border-color .15s;
}
.account-form-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-subtle); }
.account-form-row input::placeholder { color: var(--text-placeholder); }
.account-form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.account-hint { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; margin: 2px 0 0; }

.account-card-body { padding: 18px; }

/* Адаптив */
@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; flex-direction: column; align-items: stretch; }
  .account-nav { flex-direction: column; }
  .account-nav a { height: 40px; }
  .account-profile-card { display: none; }
  .account-logout-form { margin-top: 2px; }
  .account-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ═══════════════════════════════════════════════════════════════════════
   .sed-* — единый дизайн-язык панели (server-edit & админка).
   Вынесен из inline server-edit.ejs в общий style.css, чтобы переиспользовать
   во всех admin-шаблонах.
   ═══════════════════════════════════════════════════════════════════════ */
/* ── Общий layout ── */
.sed-layout{display:flex;flex-direction:column;gap:20px;margin-top:16px}
.sed-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:8px}
.sed-head-left{display:flex;align-items:center;gap:14px}
.sed-server-thumb{width:52px;height:52px;border-radius:12px;overflow:hidden;background:var(--bg-surface);border:1px solid var(--border-neutral)}
.sed-server-thumb img{width:52px;height:52px;display:block}
.sed-server-thumb-fallback{width:52px;height:52px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;color:var(--green)}
.sed-server-name{font-family:var(--font-display);font-size:17px;font-weight:700}
.sed-server-meta{font-size:13px;color:var(--text-secondary);display:flex;align-items:center;gap:6px}
.sed-status{width:8px;height:8px;border-radius:50%;display:inline-block}
.sed-status.is-on{background:var(--green);box-shadow:0 0 8px var(--green)}
.sed-status.is-off{background:var(--red)}
.sed-head-actions{display:flex;align-items:center;gap:10px}
.sed-save-note{font-size:13px;color:var(--green)}
.sed-view-btn{background:transparent;border:1px solid var(--border-neutral);color:var(--text-secondary)}
.sed-view-btn:hover{color:var(--text-body);border-color:var(--border-strong)}

/* ── Навигация ── */
.sed-side{flex:0 0 auto}
.sed-nav{display:flex;gap:6px;flex-wrap:wrap}
.sed-nav-item{display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;border-radius:var(--r-sm);border:0;background:transparent;color:var(--text-secondary);font-size:15px;font-weight:500;cursor:pointer;font-family:var(--font-body);transition:all .15s}
.sed-nav-item:hover{background:var(--bg-surface);color:var(--text-body)}
.sed-nav-item.is-active{background:var(--bg-surface);color:var(--text-body)}
.sed-nav-item.is-active .sed-nav-ico{color:var(--primary)}
.sed-nav-ico{display:inline-flex;width:18px;height:18px;color:var(--text-muted);flex:none}
.sed-nav-ico svg{width:18px;height:18px}
.sed-nav-div{width:100%;padding:18px 6px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}

/* ── Контент / панели ── */
.sed-content{flex:1;min-width:0}
.sed-pane{animation:sedPaneIn .28s cubic-bezier(.22,.9,.32,1)}
@keyframes sedPaneIn{
  from{opacity:0;transform:translateY(10px) scale(.995);filter:blur(2px)}
  to{opacity:1;transform:none;filter:none}
}
.sed-card,.sed-bottom-bar{background:var(--card-glass-bg);border:1px solid var(--card-glass-border);border-radius:var(--r-lg);padding:24px}
.sed-h2{margin:0 0 4px;font-family:var(--font-display);font-size:20px;font-weight:700;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}
.sed-h2-ico{width:20px;height:20px;flex:none;color:var(--accent);display:inline-flex;align-items:center;justify-content:center}
.sed-h2-ico svg{width:20px;height:20px}
.sed-h2-sub{display:block;font-size:14px;color:var(--text-secondary);margin-bottom:14px}
.sed-field{margin-top:14px}
.sed-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--text-secondary)}
.sed-input{width:100%;background:var(--bg-surface);color:var(--text-body);border:1px solid var(--border-neutral);border-radius:var(--r-sm);padding:10px 12px;font-size:15px;font-family:var(--font-body);transition:border-color .15s}
.sed-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-subtle)}
.sed-input::placeholder{color:var(--text-muted)}
.sed-readonly{padding:10px 12px;border-radius:var(--r-sm);background:var(--bg-floating);border:1px solid var(--border-neutral);color:var(--text-secondary);font-size:14px}
.sed-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sed-cardgrid{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:900px){ .sed-cardgrid{grid-template-columns:1fr 1fr} }
.sed-grid2col{display:flex;flex-direction:column}
.sed-req{color:var(--red)}
.sed-hint{font-size:12.5px;color:var(--text-muted);margin-top:6px}
.sed-addr{display:flex;align-items:center;gap:8px;font-family:var(--font-mono)}
.sed-addr-ico{font-size:15px;opacity:.8}
.sed-radio-row .sed-radio input{position:absolute;opacity:0;pointer-events:none}
.sed-pill-row{display:inline-flex;gap:6px;background:var(--bg-floating);border:1px solid var(--border-neutral);border-radius:var(--r-md);padding:5px}
.sed-pill{border:0;border-radius:var(--r-sm);padding:7px 14px;background:transparent;color:var(--text-muted);transition:all .15s}
.sed-pill:has(input:checked){background:var(--bg-surface);color:var(--text-body);box-shadow:0 1px 3px rgba(0,0,0,.3)}
.sed-manual-mode{border-top:1px solid var(--border-neutral);margin-top:6px}
.sed-icon-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:6px}
.sed-icon-preview{width:64px;height:64px;border-radius:12px;overflow:hidden;border:1px solid var(--border-neutral);background:var(--bg-surface);flex:none}
.sed-icon-preview img{width:64px;height:64px;display:block;object-fit:cover}
.sed-icon-fallback{width:64px;height:64px;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;color:var(--green)}
.sed-icon-actions{display:flex;gap:10px;align-items:center}
.sed-icon-upload{background:var(--green-subtle);border:1px solid var(--green-border);color:var(--green);font-weight:600}
.sed-icon-upload:disabled{opacity:.55;cursor:not-allowed}
.sed-icon-del{background:transparent;border:1px solid var(--border-neutral);color:var(--red)}
.sed-icon-del:hover{border-color:var(--red)}
.sed-icon-del.is-hidden{display:none}
.sed-radio-row{display:flex;gap:8px;flex-wrap:wrap}
.sed-radio{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid var(--border-neutral);border-radius:var(--r-sm);cursor:pointer;transition:all .15s;font-size:14px}
.sed-radio:hover{border-color:var(--border-strong)}
.sed-radio input{accent-color:var(--green)}

/* ── маг.-баннер и кнопки ── */
.sed-magic-banner{background:var(--green-subtle);border:1px solid var(--green-border);border-radius:var(--r-md);padding:18px;margin:8px 0 18px}
.sed-magic-banner p{margin:0 0 12px;color:var(--text-secondary);font-size:15px}
.sed-magic-actions{display:flex;gap:10px;flex-wrap:wrap}
.sed-btn-magic{border:1px solid var(--green);color:var(--green);background:transparent}
.sed-btn-magic:disabled{opacity:.5;cursor:not-allowed}
.sed-btn-magic-ico{display:inline-block;width:15px;height:15px;margin-right:7px;background:radial-gradient(circle at 30% 30%,#fff 0 4px,transparent 5px);position:relative}
.sed-btn-magic-ico::after{content:'';position:absolute;inset:0;border-radius:50%;background:
 linear-gradient(135deg,transparent 45%,var(--green) 46% 55%,transparent 56%);
 transform:rotate(-30deg)}
.sed-btn-ghost{background:transparent;border:1px solid transparent;color:var(--text-secondary)}
.sed-btn-ghost:hover{background:var(--bg-surface);color:var(--text-body)}

/* ── Рич-редактор ── */
.sed-rich{border:1px solid var(--border-neutral);border-radius:var(--r-md);overflow:hidden;background:var(--bg-surface);max-width:770px}
.sed-rich-toolbar{display:flex;gap:2px;padding:8px 10px;border-bottom:1px solid var(--border-neutral);background:var(--bg-floating)}
.sed-tb{width:32px;height:30px;border:0;background:transparent;color:var(--text-secondary);border-radius:6px;cursor:pointer;font-size:15px}
.sed-tb:hover{background:var(--bg-surface);color:var(--text-body)}
.sed-tb-sep{width:1px;height:18px;background:var(--border-neutral);margin:0 4px}
.sed-rich-hint{flex:1;font-size:12px;color:var(--text-muted);text-align:right;padding-right:8px;align-self:center}
.sed-rich-area{width:100%;min-height:220px;padding:14px 16px;border:0;border-bottom:1px solid var(--border-neutral);background:transparent;color:var(--text-body);font-size:15px;font-family:var(--font-body);line-height:1.7;resize:vertical}
.sed-rich-area:focus{outline:none}
.sed-rich-preview-head{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:10px 16px 0;background:var(--bg-surface)}
.sed-rich-preview{padding:8px 16px 14px;font-size:15px;line-height:1.7;color:var(--text-body);min-height:60px;max-height:360px;overflow:auto;background:var(--bg-surface)}
.sed-rich-preview p{margin:0 0 12px}
.sed-rich-preview ul{margin:0 0 12px;padding-left:22px}
.sed-rich-preview li+li{margin-top:4px}
.sed-rich-preview a{color:var(--accent)}
.sed-rich-preview strong{color:var(--text-body);font-weight:700}
.sed-pv-empty{color:var(--text-muted);font-style:italic;margin:0}
.sed-rich-note{font-size:12px;color:var(--text-muted);padding:6px 16px 10px}

/* ── Переключатель ── */
.sed-switch{position:relative;flex:none;width:44px;height:24px;border-radius:999px;background:var(--bg-floating);border:1px solid var(--border-neutral);cursor:pointer;transition:background .2s;padding:0}
.sed-switch span{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.sed-switch.is-on{background:var(--green-strong);border-color:var(--green-strong)}
.sed-switch.is-on span{transform:translateX(20px)}
.sed-switch:disabled{opacity:.45;cursor:not-allowed}
.sed-toggle-row{display:flex;gap:14px;align-items:flex-start;padding:12px 4px;border-top:1px solid var(--border-neutral);cursor:pointer}
.sed-toggle-row:first-of-type{border-top:0}
.sed-toggle-title{font-size:15px;font-weight:600;color:var(--text-body)}
.sed-toggle-sub{font-size:13px;line-height:1.5;color:var(--text-secondary);margin-top:2px}

/* ── Слоган ── */
.sed-slogan-preview{display:flex;align-items:center;gap:12px;max-width:520px;border:1px solid var(--border-neutral);background:var(--bg-surface);border-radius:var(--r-md);padding:12px;margin-top:16px}
.sed-sp-thumb{width:44px;height:44px;border-radius:9px;overflow:hidden;flex:none;background:#101318}
.sed-sp-thumb img{width:44px;height:44px;display:block}
.sed-sp-thumb .sed-server-thumb-fallback{width:44px;height:44px;font-size:18px}
.sed-sp-text{flex:1;min-width:0}
.sed-sp-name{font-weight:700;font-size:15px;margin-bottom:3px}
.sed-sp-slogan{font-size:13.5px;color:var(--text-secondary);line-height:1.4;overflow-wrap:anywhere}
.sed-sp-edit{color:var(--text-muted)}

/* ── Теги ── */
.sed-alert{border-radius:var(--r-md);padding:13px 16px;font-size:13.5px;line-height:1.5;margin:10px 0}
.sed-alert--err{background:rgba(255,92,108,.12);border:1px solid rgba(255,92,108,.3);color:var(--red)}
.sed-alert--magic{background:var(--green-subtle);border:1px solid var(--green-border);color:var(--green)}
.sed-tags-table{border:1px solid var(--border-neutral);border-radius:var(--r-md);overflow:hidden;margin:12px 0}
.sed-tags-head,.sed-tags-row{display:grid;grid-template-columns:1fr 96px 132px 48px;align-items:center;gap:10px;padding:10px 14px}
.sed-tags-head{background:var(--bg-floating);font-size:12px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}
.sed-tags-row{border-top:1px solid var(--border-neutral);font-size:14.5px}
.sed-tag-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.col-pos{font-variant-numeric:tabular-nums}
.col-copy{font-variant-numeric:tabular-nums}
.sed-tag-stat{color:var(--text-body)}
.sed-tag-faq{margin-top:18px;border:1px solid var(--border-neutral);border-radius:var(--r-md);padding:14px 16px;background:var(--bg-surface);font-size:14px;color:var(--text-secondary);line-height:1.6}
.sed-tag-faq-title{font-weight:700;color:var(--text-body);margin-bottom:6px}
.sed-tag-toggle{display:inline-flex;align-items:center;cursor:pointer}
.sed-tag-toggle input{position:absolute;opacity:0;pointer-events:none}
.sed-tag-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.sed-tag-magic{background:var(--green-subtle);border:1px solid var(--green-border);color:var(--green);font-weight:600}
.sed-tag-magic:disabled{opacity:.55;cursor:not-allowed}
.sed-tag-magic .sed-sparkle{display:inline-block;margin-right:8px}
.sed-tag-picker{position:relative;margin-top:12px}
.sed-tag-drop{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:20;max-height:240px;overflow:auto;background:var(--bg-floating);border:1px solid var(--border-neutral);border-radius:var(--r-md);box-shadow:0 10px 30px rgba(0,0,0,.4)}
.sed-tag-drop-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;font-size:14px;cursor:pointer;border-top:1px solid var(--border-neutral)}
.sed-tag-drop-row:first-child{border-top:0}
.sed-tag-drop-row:hover{background:var(--bg-hover)}
.sed-tag-drop-count{font-size:12px;color:var(--text-muted);min-width:28px;text-align:right}
.sed-tag-drop-empty{padding:12px 14px;color:var(--text-secondary);font-size:14px}

/* ── Медиа ── */
.sed-media-previews{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.sed-video-pill{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--bg-surface);border:1px solid var(--border-neutral);border-radius:var(--r-md);font-size:14px}
.sed-shot-area{resize:vertical;line-height:1.5}
.sed-empty{padding:30px 8px;color:var(--text-secondary);font-size:14px;text-align:center;border:1px dashed var(--border-neutral);border-radius:var(--r-md);margin-top:6px}
.sed-shots-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:14px}
.sed-shot{position:relative;aspect-ratio:16/10;border:1px solid var(--border-neutral);border-radius:var(--r-md);overflow:hidden;background:var(--bg-surface);cursor:grab;transition:transform .15s,border-color .15s,box-shadow .15s,opacity .15s}
.sed-shot:hover{border-color:var(--border-strong);transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.35)}
.sed-shot.is-drag{opacity:.5;border-style:dashed}
.sed-shot.is-over{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-subtle)}
.sed-shot img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.sed-shot-del{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:999px;border:0;background:rgba(0,0,0,.65);color:#fff;font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s;z-index:2}
.sed-shot-del:hover{background:var(--red)}
.sed-shot-cover-badge{position:absolute;left:6px;bottom:6px;z-index:2;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.03em;background:rgba(0,0,0,.6);color:#fff;pointer-events:none;backdrop-filter:blur(4px)}
.sed-shot.is-cover{border-color:var(--primary)}
.sed-shot-grip{display:none}
.sed-muted-layer{padding:22px 8px;color:var(--text-secondary);font-size:14px;text-align:center;border:1px dashed var(--border-neutral);border-radius:var(--r-md);margin-top:14px}
.sed-shot-controls{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.sed-shot-upload{background:var(--green-subtle);border:1px solid var(--green-border);color:var(--green);font-weight:600}
.sed-shot-upload:disabled{opacity:.55;cursor:not-allowed}

/* ── Нижняя панель / toast ── */
.sed-bottom-bar{margin-top:18px;display:flex;gap:10px;align-items:center}
.sed-save-btn{background:var(--green-strong);color:#fff;border:0;border-radius:var(--r-sm);padding:10px 20px;font-size:15px;font-weight:600;cursor:pointer;font-family:var(--font-body)}
.sed-save-btn:hover{filter:brightness(1.12)}
.sed-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--green-strong);color:#fff;padding:12px 20px;border-radius:var(--r-md);z-index:200;box-shadow:0 8px 24px rgba(0,0,0,.4);font-size:14px;font-weight:600}
.sed-toast.is-err{background:var(--red)}

@media (min-width:1024px){
  .sed-layout{flex-direction:row}
  .sed-side{width:256px;flex:none}
  .sed-nav{position:sticky;top:calc(var(--header-height) + 24px);flex-direction:column;align-items:stretch}
  .sed-nav-div{width:auto}
  .sed-nav-item{width:100%}
}
@media (max-width:560px){ .sed-grid2{grid-template-columns:1fr} }
