﻿:root {
  /* в”Ђв”Ђ Р“Р°РјРјР° HELIS: РїРµСЂРёРІРёРЅРєР»-СЃРёРЅРёР№ Р°РєС†РµРЅС‚ (РѕСЃРЅРѕРІРЅРѕР№ С†РІРµС‚ Р±РѕС‚Р°) в”Ђв”Ђ */
  --bg: #080b16;
  --bg-2: #0d1120;
  --panel: #121732;
  --panel-2: #171d3d;
  --border: #262f56;
  --text: #eaeefb;
  --muted: #8b93b8;

  --accent: #5b6ef5;      /* РїРµСЂРёРІРёРЅРєР»-СЃРёРЅРёР№ Р±Р°РЅРЅРµСЂР° вЂ” РѕСЃРЅРѕРІРЅРѕР№ Р°РєС†РµРЅС‚ */
  --accent-2: #8090ff;    /* СЃРІРµС‚Р»РµРµ вЂ” РЅР°РІРµРґРµРЅРёРµ/РїРѕРґСЃРІРµС‚РєР° */
  --accent-3: #6f7dff;    /* СЃРёРЅРµ-С„РёРѕР»РµС‚РѕРІС‹Р№ вЂ” РІС‚РѕСЂРёС‡РЅС‹Р№ Р°РєС†РµРЅС‚ */
  --accent-ink: #060a18;  /* С‚С‘РјРЅС‹Р№ С‚РµРєСЃС‚ РЅР° СЏСЂРєРёС… Р·Р°Р»РёРІРєР°С… */
  --accent-glow: rgba(91,110,245,.45);

  /* Р“РѕС‚РѕРІС‹Рµ РіСЂР°РґРёРµРЅС‚С‹ вЂ” РїРµСЂРµРёСЃРїРѕР»СЊР·СѓСЋС‚СЃСЏ РІ РєРЅРѕРїРєР°С…/РїР°РЅРµР»СЏС… */
  --grad-accent: linear-gradient(135deg, #8090ff 0%, #5163ea 55%, #4a5aeb 120%);
  --grad-accent-soft: linear-gradient(135deg, rgba(91,110,245,.18), rgba(91,110,245,.10));

  --green: #3fb950;
  --red: #f85149;
  --yellow: #e0a83a;
  --gold: #f1c40f;
  --radius: 14px;
  --shadow: 0 18px 46px rgba(0,0,0,.42);
  --glass: rgba(18,23,50,.72);

  /* Типографика: дисплей (заголовки/бренд), текст, моно (цифры/ID/коды) */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 620px at 100% -10%, rgba(91,110,245,.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(91,110,245,.10), transparent 55%),
    linear-gradient(120deg, #070a13 0%, #0a0f22 55%, #0e1430 100%);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* РўРѕС‡РµС‡РЅР°СЏ СЃРµС‚РєР° Р±Р°РЅРЅРµСЂР° вЂ” С‚РѕРЅРєРёР№ С„РѕРЅРѕРІС‹Р№ РїР°С‚С‚РµСЂРЅ РЅР° РІСЃСЋ СЃС‚СЂР°РЅРёС†Сѓ. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(140,155,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  opacity: .5;
}

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

/* в”Ђв”Ђ Topbar в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.topbar {
  display: flex; align-items: center; gap: 26px;
  padding: 12px 28px;
  background:
    radial-gradient(780px 90px at 22% 0%, rgba(128,144,255,.18), transparent 70%),
    linear-gradient(180deg, rgba(13,17,32,.92), rgba(7,10,22,.76));
  backdrop-filter: blur(10px) saturate(1.12);
  border-bottom: 1px solid rgba(128,144,255,.18);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent);
  opacity: .65;
  pointer-events: none;
}
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
/* Р›РѕРіРѕС‚РёРї HELIS (Р°РІР°С‚Р°СЂ H) вЂ” С‚РѕС‚ Р¶Рµ Р±СЂРµРЅРґ, С‡С‚Рѕ РЅР° Р±Р°РЅРЅРµСЂРµ. */
.brand-logo {
  width: 42px; height: 42px; border-radius: 15px; flex: none;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(241,196,15,.38),
    0 12px 30px rgba(0,0,0,.34),
    0 0 28px rgba(241,196,15,.10);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 0 20px rgba(128,144,255,.22);
}
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .28em; color: var(--gold); font-weight: 600; margin-top: 4px; }
.topnav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(128,144,255,.14);
  border-radius: 999px;
  background: rgba(5,8,19,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 26px rgba(0,0,0,.18);
}
.topnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px 7px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(234,238,251,.66);
  font-weight: 850;
  letter-spacing: .01em;
  overflow: hidden;
  transition: color .2s ease, transform .2s cubic-bezier(.2,.7,.3,1),
              border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
/* Р‘РµРіСѓС‰РёР№ Р±Р»РёРє РїРѕ РЅР°РІРµРґРµРЅРёСЋ */
.topnav a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.18) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.topnav a:hover,
.topnav a.active {
  color: #fff;
  border-color: rgba(128,144,255,.4);
  background:
    radial-gradient(100px 36px at 50% 0%, rgba(91,110,245,.28), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
  transform: translateY(-2px);
}
.topnav a:hover::after { transform: translateX(130%); }
/* РђРєС‚РёРІРЅР°СЏ РІРєР»Р°РґРєР° вЂ” С„РёСЂРјРµРЅРЅС‹Р№ СЃРёРЅРёР№ СЃ РјСЏРіРєРёРј СЃРІРµС‡РµРЅРёРµРј Рё РёРЅРґРёРєР°С‚РѕСЂРѕРј СЃРЅРёР·Сѓ */
.topnav a.active {
  border-color: rgba(128,144,255,.6);
  background:
    radial-gradient(110px 40px at 50% 0%, rgba(91,110,245,.4), transparent 72%),
    linear-gradient(180deg, rgba(91,110,245,.16), rgba(91,110,245,.05));
  box-shadow: 0 12px 28px rgba(0,0,0,.24), 0 0 22px rgba(91,110,245,.35);
}
.topnav a.active::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent);
  animation: navBar .3s ease both;
}
@keyframes navGlow {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,.24), 0 0 18px rgba(91,110,245,.28); }
  50%      { box-shadow: 0 12px 28px rgba(0,0,0,.24), 0 0 30px rgba(91,110,245,.55); }
}
@keyframes navBar { from { width: 0; opacity: 0; } to { width: 22px; opacity: 1; } }
.topnav a.locked { color: rgba(157,128,255,.9); }
.nav-ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(128,144,255,.12);
  border: 1px solid rgba(128,144,255,.16);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .2s, border-color .2s;
}
.topnav a.active .nav-ico,
.topnav a:hover .nav-ico {
  background: linear-gradient(180deg, rgba(128,144,255,.4), rgba(91,110,245,.18));
  border-color: rgba(128,144,255,.5);
  transform: scale(1.12) rotate(-6deg);
}
.user-area { position: relative; z-index: 1; margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bot-status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  border: 1px solid transparent; cursor: default; user-select: none;
}
.bot-status-pill.is-online {
  color: #6ee89a;
  background: rgba(63,208,106,.12);
  border-color: rgba(63,208,106,.38);
}
.bot-status-pill.is-offline {
  color: #ff8a8a;
  background: rgba(255,60,60,.12);
  border-color: rgba(255,70,70,.4);
}
.bot-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.bot-status-pill.is-online .bot-status-dot {
  background: #3fd06a;
  box-shadow: 0 0 8px rgba(63,208,106,.9);
  animation: botStatusPulse 1.8s ease-in-out infinite;
}
.bot-status-pill.is-offline .bot-status-dot {
  background: #ff4a4a;
  box-shadow: 0 0 8px rgba(255,60,60,.9);
}
@keyframes botStatusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (max-width: 900px) {
  .bot-status-label { display: none; }
  .bot-status-pill { padding: 8px; }
}
.news-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(128,144,255,.24);
  background: rgba(14,18,39,.78);
  color: #fff;
  text-decoration: none;
  transition: .16s;
}
.news-button:hover,
.news-button.active {
  border-color: rgba(241,196,15,.72);
  background: rgba(241,196,15,.16);
}
.news-button.has-unread::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff4d5e;
  border: 2px solid #11162a;
  box-shadow: 0 0 0 2px rgba(255,77,94,.22), 0 0 14px rgba(255,77,94,.55);
}
.family-overview-stats {
  grid-template-columns: repeat(auto-fit, minmax(260px, 315px));
  justify-content: center;
}
.family-overview-stats .card {
  width: 100%;
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid rgba(128,144,255,.18); border-radius: 999px;
  background: rgba(8,11,22,.48);
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px; border-radius: 999px;
  color: var(--muted); font-size: 12px; font-weight: 850;
}
.lang-switch a.active { background: rgba(91,110,245,.22); color: #fff; }
.lang-switch a:hover { color: #fff; background: rgba(255,255,255,.06); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(18,23,50,.72); border: 1px solid rgba(128,144,255,.20); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.avatar { width: 26px; height: 26px; border-radius: 50%; }

/* в”Ђв”Ђ Layout в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 34px 26px; flex: 1; }
.footer { display: flex; justify-content: space-between; max-width: 1180px; margin: 0 auto; width: 100%; padding: 20px 24px; color: var(--muted); border-top: 1px solid var(--border); font-size: 14px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 28px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 28px 0 14px; }
.subtitle { color: var(--muted); margin: 0 0 24px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* в”Ђв”Ђ Buttons в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(128,144,255,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  color: var(--text);
  font-weight: 750; font-size: 14px; letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 16px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .16s cubic-bezier(.2,.7,.3,1),
              box-shadow .2s ease, border-color .2s ease, filter .2s ease, background .2s ease;
}
/* Р‘РµРіСѓС‰РёР№ Р±Р»РёРє РїРѕ РЅР°РІРµРґРµРЅРёСЋ */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.22) 48%, transparent 76%);
  transform: translateX(-120%);
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(128,144,255,.55);
  box-shadow: 0 12px 26px rgba(0,0,0,.30), 0 0 0 1px rgba(128,144,255,.18), inset 0 1px 0 rgba(255,255,255,.08);
  filter: brightness(1.05);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: 0 4px 12px rgba(0,0,0,.26), inset 0 2px 6px rgba(0,0,0,.25); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 20px rgba(0,0,0,.24); }

/* РћСЃРЅРѕРІРЅР°СЏ вЂ” С„РёСЂРјРµРЅРЅС‹Р№ С„РёРѕР»РµС‚РѕРІС‹Р№ РіСЂР°РґРёРµРЅС‚ СЃРѕ СЃРІРµС‡РµРЅРёРµРј */
.btn-primary {
  background: var(--grad-accent);
  border-color: rgba(128,144,255,.85);
  color: #fff;
  box-shadow: 0 8px 22px rgba(91,110,245,.34), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover {
  border-color: rgba(180,160,255,.95);
  box-shadow: 0 14px 34px rgba(91,110,245,.46), 0 0 0 1px rgba(180,160,255,.30), inset 0 1px 0 rgba(255,255,255,.28);
}

.btn-accent { background: linear-gradient(135deg, var(--gold), #c28a12); border-color: rgba(241,196,15,.72); color: #201604; box-shadow: 0 8px 22px rgba(241,196,15,.24), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-ok  { background: linear-gradient(135deg,#4ee07a,#25b04a); border-color: rgba(63,208,106,.72); color:#04140a; box-shadow: 0 8px 22px rgba(63,208,106,.26), inset 0 1px 0 rgba(255,255,255,.24); }
.btn-danger { background: transparent; border-color: rgba(248,85,114,.55); color: var(--red); box-shadow: none; }
.btn-danger:hover { background: rgba(248,85,114,.12); border-color: var(--red); }
.btn-ghost { background: rgba(255,255,255,.02); border-color: rgba(128,144,255,.20); box-shadow: 0 4px 12px rgba(0,0,0,.16); }
.btn-ghost:hover { background: rgba(91,110,245,.10); border-color: rgba(128,144,255,.50); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before { transition: none; }
  .btn:hover { transform: none; }
  .btn:hover::before { transform: translateX(-120%); }
}

/* в”Ђв”Ђ Cards / grid в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: linear-gradient(180deg, rgba(18,23,50,.88), rgba(13,17,32,.82)); border: 1px solid rgba(128,144,255,.18); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(3px); }
.card-link { transition: .18s; }
.card-link:hover { border-color: rgba(128,144,255,.72); transform: translateY(-3px); box-shadow: 0 22px 56px rgba(0,0,0,.5), 0 0 0 1px rgba(128,144,255,.16) inset; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 32px; font-weight: 700; }
.stat .label { color: var(--muted); font-size: 14px; }
.stat .num.accent { color: var(--accent); }
.stat .num.green { color: var(--green); }
.stat .num.red { color: var(--red); }

.tile { display: flex; flex-direction: column; gap: 8px; }
.tile .tile-ico { font-size: 30px; }
.tile .tile-title { font-weight: 700; font-size: 17px; }
.tile .tile-sub { color: var(--muted); font-size: 14px; }

/* в”Ђв”Ђ РљР°СЂС‚РѕС‡РєРё СЃРµСЂРІРµСЂРѕРІ РЅР° РіР»Р°РІРЅРѕР№ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.guild-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.guild-card {
  flex: 0 1 340px;
  min-width: 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 245px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow);
}
.guild-cover {
  position: relative;
  display: block;
  height: 116px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.guild-cover-empty {
  background:
    radial-gradient(240px 120px at 80% 15%, rgba(91,110,245,.38), transparent 62%),
    linear-gradient(135deg, #151b38, #090d1b 65%);
}
.guild-cover-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .55;
}
.guild-body {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  padding: 0 18px 12px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.guild-avatar {
  width: 62px;
  height: 62px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 4px solid var(--panel);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.36);
}
.guild-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guild-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-bottom: 4px; }
.guild-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 17px;
}
.guild-id { color: var(--muted); font-size: 12px; }
.guild-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 18px;
  margin-top: auto;
}
.guild-pills .pill.ok:first-child {
  border: 1px solid rgba(241,196,15,.26);
  background: linear-gradient(180deg, rgba(241,196,15,.12), rgba(63,185,80,.08));
  color: #f2d27a;
}
@media (max-width: 560px) { .guild-card { flex-basis: 100%; min-width: 0; max-width: 100%; } }

/* в”Ђв”Ђ Tables в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.table-wrap { overflow-x: auto; border: 1px solid rgba(128,144,255,.18); border-radius: var(--radius); background: rgba(8,11,22,.36); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(128,144,255,.14); white-space: nowrap; }
th { color: #aab5ff; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; background: rgba(13,17,32,.9); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(128,144,255,.045); }
td.wrap, th.wrap { white-space: normal; }

/* в”Ђв”Ђ Badges / pills в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: lowercase; }
.badge-owner { background: rgba(91,110,245,.18); color: var(--accent-2); }
.badge-admin { background: rgba(128,144,255,.16); color: #aab5ff; }
.badge-support { background: rgba(139,152,169,.18); color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: rgba(63,185,80,.15); color: var(--green); }
.pill.warn { background: rgba(210,153,34,.16); color: var(--yellow); }
.pill.bad { background: rgba(248,81,73,.15); color: var(--red); }
.pill.mut { background: rgba(139,152,169,.15); color: var(--muted); }
.lux-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(241,196,15,.24);
  background: linear-gradient(180deg, rgba(241,196,15,.10), rgba(255,255,255,.025));
  color: #f3d682;
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.lux-pill.bad {
  border-color: rgba(248,81,73,.34);
  color: #ff8b85;
  background: rgba(248,81,73,.10);
}

/* в”Ђв”Ђ Forms в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
label.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
input[type=text], input[type=number], input[type=search], input[type=password],
input[type=email], input[type=url], input[type=tel],
input[type=datetime-local], input[type=date], input[type=time], input[type=month],
select, textarea {
  background: linear-gradient(180deg, rgba(12,16,34,.92), rgba(7,10,22,.92));
  border: 1px solid rgba(128,144,255,.22); color: var(--text);
  min-height: 38px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:hover, select:hover, textarea:hover { border-color: rgba(128,144,255,.38); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,110,245,.18), inset 0 1px 0 rgba(255,255,255,.05); }

/* в”Ђв”Ђ Р”Р°С‚Р°/РІСЂРµРјСЏ: С‚С‘РјРЅС‹Р№ РЅР°С‚РёРІРЅС‹Р№ РїРёРєРµСЂ + Р°РєС†РµРЅС‚РЅР°СЏ РёРєРѕРЅРєР° РєР°Р»РµРЅРґР°СЂСЏ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
input[type=datetime-local], input[type=date], input[type=time], input[type=month] {
  color-scheme: dark;                 /* РІС‹РїР°РґР°СЋС‰РёР№ РєР°Р»РµРЅРґР°СЂСЊ/СЃРїРёРЅРЅРµСЂС‹ вЂ” РІ С‚С‘РјРЅРѕР№ С‚РµРјРµ */
  cursor: text;
  position: relative;
}
/* РРєРѕРЅРєР°-РѕС‚РєСЂС‹РІР°С€РєР° РєР°Р»РµРЅРґР°СЂСЏ (WebKit): РєСЂР°СЃРёРј РїРѕРґ Р°РєС†РµРЅС‚, СѓРІРµР»РёС‡РёРІР°РµРј Р·РѕРЅСѓ РєР»РёРєР° */
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=date]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator,
input[type=month]::-webkit-calendar-picker-indicator {
  filter: invert(48%) sepia(89%) saturate(1600%) hue-rotate(214deg) brightness(101%);
  opacity: .85; cursor: pointer; padding: 3px; border-radius: 6px; transition: .15s;
}
input[type=datetime-local]::-webkit-calendar-picker-indicator:hover,
input[type=date]::-webkit-calendar-picker-indicator:hover,
input[type=time]::-webkit-calendar-picker-indicator:hover,
input[type=month]::-webkit-calendar-picker-indicator:hover {
  opacity: 1; background: rgba(91,110,245,.18);
}
/* РџР»РµР№СЃС…РѕР»РґРµСЂ-С‡Р°СЃС‚Рё В«РґРґ.РјРј.РіРіРіРі --:--В» РґРѕ Р·Р°РїРѕР»РЅРµРЅРёСЏ вЂ” РїСЂРёРіР»СѓС€Р°РµРј */
input[type=datetime-local]::-webkit-datetime-edit,
input[type=date]::-webkit-datetime-edit,
input[type=time]::-webkit-datetime-edit { color: var(--text); }
input[type=datetime-local]:invalid::-webkit-datetime-edit,
input[type=date]:invalid::-webkit-datetime-edit,
input[type=time]:invalid::-webkit-datetime-edit { color: rgba(139,147,184,.75); }
input[type=datetime-local]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
input[type=datetime-local]:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,110,245,.16); }

/* в”Ђв”Ђ РљСЂР°СЃРёРІС‹Рµ С‡РµРєР±РѕРєСЃС‹ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ
   РљР°СЃС‚РѕРјРёР·РёСЂСѓРµРј СЃС‚Р°РЅРґР°СЂС‚РЅС‹Р№ input[type=checkbox] С‡РµСЂРµР· appearance:none.
   Р Р°Р±РѕС‚Р°РµС‚ РІРѕ РІСЃРµС… РЅРѕРІС‹С… Р±СЂР°СѓР·РµСЂР°С…, СЃС‚Р°СЂС‹Рµ РїРѕР»СѓС‡Р°С‚ РѕР±С‹С‡РЅСѓСЋ В«РіР°Р»РѕС‡РєСѓВ».
   РљР»Р°СЃСЃ .no-style РЅР° С‡РµРєР±РѕРєСЃРµ РѕС‚РєР»СЋС‡Р°РµС‚ СЌС‚Сѓ СЃС‚РёР»РёР·Р°С†РёСЋ (РґР»СЏ СЃР»СѓС‡Р°РµРІ,
   РєРѕРіРґР° С‡РµРєР±РѕРєСЃ вЂ” С‡Р°СЃС‚СЊ С‡СѓР¶РѕРіРѕ РєРѕРјРїРѕРЅРµРЅС‚Р° РІСЂРѕРґРµ rich-select).            */
input[type="checkbox"]:not(.no-style) {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--border);
  background: var(--panel-2);
  border-radius: 5px;
  cursor: pointer;
  position: relative; vertical-align: middle;
  transition: border-color .15s, background .15s, box-shadow .15s;
  flex-shrink: 0;
}
input[type="checkbox"]:not(.no-style):hover {
  border-color: var(--accent);
}
input[type="checkbox"]:not(.no-style):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
input[type="checkbox"]:not(.no-style):checked {
  background: var(--accent);
  border-color: var(--accent);
}
/* Р“Р°Р»РѕС‡РєР° вЂ” СЂРёСЃСѓРµС‚СЃСЏ РґРІСѓРјСЏ Р»РёРЅРёСЏРјРё С‡РµСЂРµР· ::after (Р±РµР· РІРЅРµС€РЅРёС… SVG) */
input[type="checkbox"]:not(.no-style):checked::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
  animation: chk-in .15s ease-out;
}
@keyframes chk-in {
  from { opacity: 0; transform: translate(-50%, -55%) rotate(45deg) scale(.6); }
  to   { opacity: 1; transform: translate(-50%, -55%) rotate(45deg) scale(1); }
}
input[type="checkbox"]:not(.no-style):disabled {
  opacity: .5; cursor: not-allowed;
}

/* Р Р°РґРёРѕ-РєРЅРѕРїРєРё вЂ” РІ С‚РѕРј Р¶Рµ СЃС‚РёР»Рµ, РєСЂСѓРіР»С‹Рµ */
input[type="radio"]:not(.no-style) {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--border);
  background: var(--panel-2);
  border-radius: 50%;
  cursor: pointer;
  position: relative; vertical-align: middle;
  transition: .15s;
  flex-shrink: 0;
}
input[type="radio"]:not(.no-style):hover { border-color: var(--accent); }
input[type="radio"]:not(.no-style):checked {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 42%, var(--panel-2) 45%);
}
.inline-form { display: inline; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checks label { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; }

/* в”Ђв”Ђ Flash в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.flashes { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); }
.flash-success { background: rgba(63,185,80,.10); border-color: rgba(63,185,80,.4); }
.flash-error { background: rgba(248,81,73,.10); border-color: rgba(248,81,73,.4); }

/* в”Ђв”Ђ Hero-Р±Р°РЅРЅРµСЂ (РєР°СЂС‚РёРЅРєР°) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.hero-img {
  display: block; width: 100%; height: auto;
  border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow);
  margin-bottom: 26px;
}

/* в”Ђв”Ђ Premium operation panels в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.server-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
  gap: 18px;
  margin: -6px 0 22px;
}
.server-profile-panel,
.sync-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(128,144,255,.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,23,50,.72), rgba(8,11,22,.62));
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  padding: 18px;
}
.server-profile-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.server-profile-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241,196,15,.5), transparent);
}
.profile-kicker {
  display: block;
  color: #f3d682;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.server-profile-panel h2 { margin: 0 0 4px; font-size: 24px; }
.server-profile-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sync-panel {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sync-panel p { margin: 2px 0 2px; color: var(--text); }
.sync-dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(248,81,73,.48);
}
.sync-panel.is-ok .sync-dot {
  background: var(--green);
  box-shadow: 0 0 18px rgba(63,185,80,.48);
}
.attention-grid { margin: 0 0 22px; }
.calm-card {
  background: linear-gradient(180deg, rgba(16,21,44,.74), rgba(9,12,25,.70));
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
}
.section-title.tight { margin-bottom: 12px; }
.section-title.tight h2 { margin: 0; font-size: 18px; }
.section-title.tight .subtitle { margin: 4px 0 0; font-size: 13px; }
.attention-list,
.audit-list { display: grid; gap: 9px; }
.attention-item,
.audit-item {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(128,144,255,.14);
  border-radius: 10px;
  background: rgba(8,11,22,.34);
}
.attention-item {
  grid-template-columns: 10px minmax(0, 1fr);
  transition: border-color .16s, background .16s, transform .16s;
}
.attention-item:hover {
  transform: translateY(-1px);
  border-color: rgba(128,144,255,.34);
  background: rgba(91,110,245,.08);
}
.attention-mark {
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: var(--green);
}
.attention-item.warn .attention-mark { background: var(--yellow); }
.attention-item.bad .attention-mark { background: var(--red); }
.attention-item strong,
.audit-item strong { display: block; color: var(--text); font-size: 13px; }
.attention-item small,
.audit-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.audit-item {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}
.audit-line {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(128,144,255,.45);
}
.audit-item time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.empty-premium {
  border: 1px dashed rgba(128,144,255,.24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  color: rgba(234,238,251,.64);
}
.executive-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 18px;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(128,144,255,.16);
  border-radius: 999px;
  background: rgba(5,8,19,.34);
}
.executive-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(234,238,251,.72);
  font-size: 12px;
  font-weight: 850;
  border: 1px solid transparent;
}
.executive-tabs a:hover {
  color: #fff;
  border-color: rgba(128,144,255,.34);
  background: rgba(91,110,245,.12);
}
.settings-server-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: -8px 0 12px;
  padding: 0 2px;
}
.settings-server-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.settings-server-title strong {
  color: var(--text);
  font-size: 18px;
}
.guild-cover-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.10) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: skeletonSweep 2.8s ease-in-out infinite;
}
@keyframes skeletonSweep {
  0%, 35% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}
@media (max-width: 900px) {
  .server-command-grid { grid-template-columns: 1fr; }
  .server-profile-panel { align-items: flex-start; flex-direction: column; }
  .server-profile-meta { justify-content: flex-start; }
}

/* в”Ђв”Ђ Hero-Р±Р°РЅРЅРµСЂ (РІРѕСЃСЃРѕР·РґР°РЅРёРµ Р±Р°РЅРЅРµСЂР° HELIS) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.hero {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(128,144,255,.2); box-shadow: var(--shadow);
  background: linear-gradient(105deg, #090c17 0%, #0d1226 45%, #1b2455 100%);
  padding: 54px 48px; margin-bottom: 28px;
}
/* РўРѕС‡РµС‡РЅР°СЏ СЃРµС‚РєР° РІРЅСѓС‚СЂРё Р±Р°РЅРЅРµСЂР° */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(150,165,255,.28) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(105deg, transparent 45%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 45%, #000 100%);
}
/* Р”РёР°РіРѕРЅР°Р»СЊРЅС‹Рµ РїРѕР»РѕСЃС‹ СЃРїСЂР°РІР° */
.hero::after {
  content: ""; position: absolute; top: -30%; right: -6%; width: 42%; height: 160%;
  background: repeating-linear-gradient(
    -68deg,
    #4657e0 0 26px, #3442b8 26px 40px, transparent 40px 96px
  );
  transform: rotate(0deg); opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block; font-size: 14px; letter-spacing: .34em; font-weight: 800;
  color: var(--accent-2); text-transform: uppercase;
}
.hero-eyebrow::after {
  content: ""; display: block; width: 54px; height: 3px; margin-top: 8px;
  background: var(--accent); border-radius: 3px;
}
.hero-title {
  font-size: clamp(48px, 9vw, 104px); font-weight: 900; color: #fff; margin: 18px 0 4px;
  letter-spacing: .02em; line-height: .95; text-shadow: 0 10px 40px rgba(70,87,224,.45);
}
.hero-subtitle { font-size: clamp(15px, 2.4vw, 22px); color: #aab2d6; margin: 0; }

/* РљРѕРјРїР°РєС‚РЅС‹Р№ hero РґР»СЏ РІРЅСѓС‚СЂРµРЅРЅРёС… СЃС‚СЂР°РЅРёС† */
.hero.hero-sm { padding: 30px 40px; margin-bottom: 26px; }
.hero-sm .hero-title { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 4px; }
.hero-sm .hero-eyebrow { font-size: 12px; }
.hero-sm .hero-subtitle { font-size: clamp(14px, 2vw, 17px); }
.feature-hero {
  background-size: cover;
  background-position: center;
  min-height: 230px;
  border-color: color-mix(in srgb, var(--feature-accent, var(--accent)) 42%, transparent);
}
.feature-hero::before { opacity: .25; }
.feature-hero::after {
  display: none;
}
.feature-hero .hero-eyebrow { color: var(--feature-accent, var(--accent-2)); }
.feature-hero .hero-eyebrow::after { background: var(--feature-accent, var(--accent)); }
.feature-hero .hero-title { text-shadow: 0 10px 40px color-mix(in srgb, var(--feature-accent, var(--accent)) 30%, transparent); }
.feature-hero .hero-subtitle {
  max-width: 720px;
  color: rgba(255,255,255,.78);
}
.feature-points .hero-eyebrow,
.feature-points .hero-title { text-shadow: 0 10px 40px rgba(241,196,15,.28); }
.feature-points .hero-eyebrow { color: var(--gold); }
.feature-points .hero-eyebrow::after { background: var(--gold); }

/* в”Ђв”Ђ РџСЂРѕРІРµСЂРєР° РїРѕРёРЅС‚РѕРІ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.points-review-list { display: grid; gap: 14px; }
.points-review-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(241,196,15,.22);
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(241,196,15,.13), transparent 64%),
    linear-gradient(180deg, rgba(18,23,50,.92), rgba(10,13,26,.86));
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.points-proof {
  min-height: 128px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255,255,255,.12);
}
.points-proof span {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
}
.points-proof-empty {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(90px 70px at 70% 25%, rgba(241,196,15,.18), transparent),
    rgba(8,11,22,.8);
}
.points-proof-empty span { width: auto; background: none; color: var(--muted); }
.points-review-body { min-width: 0; }
.points-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.points-review-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.points-review-desc { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
.points-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.points-reject-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.points-reject-form input { flex: 1; min-width: 160px; }
@media (max-width: 720px) {
  .points-review-card { grid-template-columns: 1fr; }
  .points-reject-form { min-width: 100%; }
}

/* в”Ђв”Ђ Login в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.login-hero { max-width: 520px; margin: 60px auto; text-align: center; }
.login-hero .big { font-size: 56px; margin-bottom: 10px; }
.login-card { padding: 40px; text-align: center; }
.discord-btn { background: #5865f2; border-color: #5865f2; padding: 14px 26px; font-size: 16px; }
.discord-btn:hover { background: #4854e8; border-color: #4854e8; }
.discord-btn-lg { padding: 18px 40px; font-size: 19px; border-radius: 14px; box-shadow: 0 12px 34px rgba(88,101,242,.4); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.right { text-align: right; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty {
  text-align: center;
  padding: 38px;
  color: var(--muted);
  border: 1px dashed rgba(128,144,255,.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.012));
}

/* в”Ђв”Ђ Modal (dialog) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
dialog { border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: var(--radius); padding: 0; max-width: 560px; width: 92%; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.6); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 17px; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding: 6px;
  border: 1px solid rgba(128,144,255,.16); border-radius: 14px;
  background: rgba(8,11,22,.42);
}
.tabs a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px; border: 1px solid transparent;
  color: var(--muted); font-size: 13px; font-weight: 750;
}
.tabs a:hover { color: var(--text); background: rgba(255,255,255,.04); border-color: rgba(128,144,255,.16); }
.tabs a.active {
  background: rgba(91,110,245,.18); color: #fff; border-color: rgba(128,144,255,.38);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
/* Заблокированный раздел: приглушён, пунктирная рамка — виден, но явно «не
   куплен». Ведёт на апселл-страницу (см. web/blueprints/family.py::unlock). */
.tabs a.locked {
  color: var(--muted); opacity: .6;
  border: 1px dashed rgba(128,144,255,.28);
}
.tabs a.locked:hover { opacity: 1; color: var(--text); border-style: dashed; }

/* Навигация семьи слева: на широких экранах лента вкладок становится липким
   сайдбаром, а .container раскладывается в две колонки (меню + контент).
   Ниже 1100px всё возвращается к прежней горизонтальной ленте. */
@media (min-width: 1100px) {
  body:has(.tabs[data-tour-nav]) .container {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }
  body:has(.tabs[data-tour-nav]) .container > * { grid-column: 2; min-width: 0; }
  body:has(.tabs[data-tour-nav]) .tabs[data-tour-nav] {
    grid-column: 1;
    /* span с запасом: меню тянется вдоль всей колонки контента */
    grid-row: 1 / span 200;
    align-self: start;
    position: sticky;
    top: 88px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 3px;
    margin-bottom: 0;
    padding: 10px;
    border-radius: 16px;
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(128,144,255,.28) transparent;
  }
  body:has(.tabs[data-tour-nav]) .tabs[data-tour-nav] a {
    justify-content: flex-start;
    padding: 9px 12px;
    font-size: 13.5px;
    line-height: 1.25;
  }
  /* В колонке активный пункт читается полоской слева, а не «плавающей» тенью */
  body:has(.tabs[data-tour-nav]) .tabs[data-tour-nav] a.active {
    box-shadow: inset 2px 0 0 0 var(--accent-2);
  }
  body:has(.tabs[data-tour-nav]) .tabs[data-tour-nav]::-webkit-scrollbar { width: 8px; }
  body:has(.tabs[data-tour-nav]) .tabs[data-tour-nav]::-webkit-scrollbar-thumb {
    background: rgba(128,144,255,.28); border-radius: 8px;
  }
}
.radio-modes { display: flex; flex-direction: column; gap: 8px; }
.radio-modes label { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; cursor: pointer; }

/* в”Ђв”Ђ Rich-select (Discord-style РјРµРЅСЋ РІС‹Р±РѕСЂР°) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.rich-select { position: relative; width: 100%; }
.rich-select.open { z-index: 10040; }
.rs-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
.rich-select.open .rs-trigger { border-color: var(--accent); }
.rs-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-summary.is-placeholder { color: var(--muted); }
.rs-caret { color: var(--muted); transition: transform .15s; }
.rich-select.open .rs-caret { transform: rotate(180deg); }

.rs-panel {
  position: absolute; z-index: 10050; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; max-height: 320px; overflow: hidden;
  display: flex; flex-direction: column;
}
.rich-select.open .rs-panel {
  box-shadow: 0 24px 70px rgba(0,0,0,.58), 0 0 0 1px rgba(128,144,255,.24) inset;
}
/* РЎРєСЂС‹С‚Р°СЏ РїР°РЅРµР»СЊ: Р°С‚СЂРёР±СѓС‚ hidden РґРѕР»Р¶РµРЅ РїРµСЂРµР±РёРІР°С‚СЊ display:flex РІС‹С€Рµ. */
.rs-panel[hidden] { display: none; }
.rs-search {
  width: 100%; margin-bottom: 6px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: 13px;
}
.rs-list { overflow-y: auto; }
.rs-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; transition: background .12s;
}
.rs-item:hover { background: rgba(255,255,255,.05); }
.rs-item.selected { background: rgba(88,101,242,.14); }
.rs-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rs-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rs-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-check { color: var(--accent-2); font-weight: 800; opacity: 0; flex: none; }
.rs-item.selected .rs-check { opacity: 1; }
.rs-empty { padding: 14px; color: var(--muted); text-align: center; font-size: 13px; }
dialog .rs-panel {
  z-index: 10080;
}

/* в”Ђв”Ђ РЎРѕРІСЂРµРјРµРЅРЅС‹Рµ РЅР°СЃС‚СЂРѕР№РєРё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.settings-layout,
.channel-settings {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  align-items: start;
}
.settings-stack,
.channel-stack { display: flex; flex-direction: column; gap: 14px; }
.settings-card,
.channel-card {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,23,50,.88), rgba(13,17,32,.82));
  border: 1px solid rgba(128,144,255,.18);
  box-shadow: var(--shadow);
}
.settings-card-head,
.channel-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.settings-icon,
.channel-icon {
  width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(91,110,245,.14); border: 1px solid rgba(128,144,255,.28);
  font-size: 18px;
}
.settings-card h2,
.channel-card h2 { margin: 0; font-size: 17px; }
.settings-card p,
.channel-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.settings-row,
.channel-row {
  display: grid; grid-template-columns: minmax(190px, .78fr) minmax(0, 1.22fr);
  gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(128,144,255,.12);
}
.settings-row:first-of-type,
.channel-row:first-of-type { border-top: 0; padding-top: 0; }
.settings-title,
.channel-title { color: var(--text); font-size: 14px; font-weight: 800; }
.settings-desc,
.channel-desc { color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 3px; }
.settings-help,
.channel-help {
  position: sticky; top: 86px; padding: 18px; border-radius: 14px;
  border: 1px solid rgba(128,144,255,.18); background: rgba(9,12,24,.74);
}
.settings-help h2,
.channel-help h2 { margin: 0 0 10px; font-size: 16px; }
.settings-help ul,
.channel-help ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-help-actions {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(128,144,255,.14);
  display: flex; justify-content: flex-end;
}
.settings-help-actions .btn { width: 100%; justify-content: center; }
.settings-actions { display: flex; justify-content: flex-start; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.settings-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-checks label,
.settings-toggle {
  display: flex; gap: 9px; align-items: center; min-height: 42px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(128,144,255,.14);
  background: rgba(8,11,22,.38); color: var(--text); font-size: 14px;
}
.settings-toggle strong { font-size: 15px; }
.settings-table { overflow-x: auto; }
.settings-table table { min-width: 760px; }
.settings-table td.wrap { max-width: 360px; white-space: normal; }
.settings-table input[type=text],
.settings-table input[type=number] { width: 100%; }
.settings-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-event-list { max-height: 520px; overflow-y: auto; padding: 0 14px; }
.settings-event-row {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(128,144,255,.14);
}
.settings-event-row:last-child { border-bottom: 0; }
.settings-event-time { min-width: 135px; font-size: 12px; }
.settings-event-text { flex: 1; white-space: pre-wrap; word-break: break-word; font-size: 13px; }
.ap-btn-list { display: flex; flex-direction: column; gap: 10px; }
.ap-btn-row {
  display: grid; gap: 8px; align-items: center;
  grid-template-columns: 60px minmax(160px, 1fr) 150px 140px auto;
}
.ap-btn-emoji { text-align: center; font-size: 18px; }
.ap-btn-label { font-weight: 650; }
.ap-btn-key { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 980px) {
  .settings-layout, .channel-settings { grid-template-columns: 1fr; }
  .settings-help, .channel-help { position: static; }
}
@media (max-width: 720px){
  .ap-btn-row { grid-template-columns: 60px 1fr auto; }
  .ap-btn-row .ap-btn-style, .ap-btn-row .ap-btn-key { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .settings-row, .channel-row { grid-template-columns: 1fr; gap: 8px; }
  .settings-checks { grid-template-columns: 1fr; }
}

/* в”Ђв”Ђ РџР»Р°РІР°СЋС‰РёР№ РІРёРґР¶РµС‚ РїРѕРґРґРµСЂР¶РєРё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
#support-widget { position: fixed; right: 22px; bottom: 22px; z-index: 100; font-family: inherit; }
#sw-toggle {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--grad-accent); color: #fff; border: 1px solid rgba(157,157,255,.5); cursor: pointer;
  padding: 12px 20px; border-radius: 999px; font-weight: 750; font-size: 14px; letter-spacing: .01em;
  box-shadow: 0 12px 30px rgba(91,110,245,.45), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease;
}
#sw-toggle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.3) 48%, transparent 76%);
  transform: translateX(-120%); transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
#sw-toggle:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(91,110,245,.6), inset 0 1px 0 rgba(255,255,255,.34); }
#sw-toggle:hover::before { transform: translateX(120%); }
#sw-toggle:active { transform: translateY(0) scale(.97); }
#sw-toggle .sw-ico { display: inline-flex; align-items: center; justify-content: center; }
#sw-toggle .sw-ico svg { width: 18px; height: 18px; }

.sw-title { display: inline-flex; align-items: center; gap: 10px; }
.sw-head-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(160deg, rgba(91,110,245,.4), rgba(91,110,245,.12));
  border: 1px solid rgba(128,144,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.sw-head-ico svg { width: 16px; height: 16px; color: #cdd3ff; }

#sw-panel {
  position: absolute; right: 0; bottom: 64px; width: 376px; max-width: 92vw;
  background:
    radial-gradient(340px 130px at 8% 0%, rgba(91,110,245,.14), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(91,110,245,.26); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(128,144,255,.06), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden; animation: swin .2s cubic-bezier(.2,.7,.3,1);
}
@keyframes swin { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
#sw-panel[hidden] { display: none; }

.sw-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-weight: 800; font-size: 14.5px;
  background:
    radial-gradient(260px 80px at 20% 0%, rgba(91,110,245,.28), transparent 75%),
    linear-gradient(180deg, rgba(91,110,245,.10), transparent);
  border-bottom: 1px solid rgba(128,144,255,.16);
}
.sw-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(128,144,255,.55), transparent);
}
.sw-head button {
  background: rgba(255,255,255,.04); border: 1px solid transparent; color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1; width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; transition: .15s;
}
.sw-head button:hover { background: rgba(248,85,114,.14); border-color: rgba(248,85,114,.4); color: #ff9a92; }

.sw-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sw-hint { margin: 0 0 2px; font-size: 12px; line-height: 1.45; }
#sw-form { display: flex; flex-direction: column; gap: 13px; }

/* РњРµС‚РєРё РїРѕР»РµР№ вЂ” РєРѕРјРїР°РєС‚РЅС‹Рµ, РєР°РїСЃРѕРј, РєР°Рє РІ РєР°Р±РёРЅРµС‚Рµ */
.sw-body .field > span:first-child {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2);
}
/* РџРѕР»СЏ РІРёРґР¶РµС‚Р° вЂ” inset-С„РѕРЅ + С„РѕРєСѓСЃ-СЃРІРµС‡РµРЅРёРµ */
.sw-body input[type=text], .sw-body select, .sw-body textarea {
  background: rgba(6,9,20,.6); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 13px; transition: border-color .18s, box-shadow .18s, background .18s;
}
.sw-body input[type=text]:focus, .sw-body select:focus, .sw-body textarea:focus {
  border-color: var(--accent); background: rgba(6,9,20,.82); box-shadow: 0 0 0 3px var(--accent-glow);
}
.sw-guild-wrap { position: relative; }
.sw-guild-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(6,9,20,.6); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 13px; color: var(--text);
  font: inherit; font-weight: 750; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.sw-guild-trigger:hover,
.sw-guild-trigger.open {
  border-color: var(--accent); background: rgba(6,9,20,.82); box-shadow: 0 0 0 3px var(--accent-glow);
}
.sw-guild-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10120;
  display: grid; gap: 6px; max-height: 240px; overflow: auto; padding: 8px;
  border-radius: 12px; border: 1px solid rgba(128,144,255,.28);
  background: linear-gradient(180deg, rgba(18,23,50,.98), rgba(8,11,22,.98));
  box-shadow: 0 18px 44px rgba(0,0,0,.48);
}
.sw-guild-menu[hidden] { display: none; }
.sw-guild-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--text); padding: 9px 10px;
  font: inherit; text-align: left; cursor: pointer;
}
.sw-guild-item:hover,
.sw-guild-item.active { border-color: rgba(128,144,255,.38); background: rgba(91,110,245,.16); }
.sw-guild-item span { font-weight: 800; }
.sw-guild-item small { color: var(--muted); font-size: 11px; }
#sw-form textarea { resize: vertical; min-height: 84px; }

.sw-status { font-size: 13px; min-height: 18px; }
.sw-status.err { color: var(--red); }
.sw-status.ok  { color: var(--green); }
#sw-submit { margin-top: 2px; }

/* РљР°С‚РµРіРѕСЂРёРё РѕР±СЂР°С‰РµРЅРёСЏ РІ РІРёРґР¶РµС‚Рµ */
.sw-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sw-cat {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  color: var(--text); cursor: pointer; font-family: inherit; font-size: 12.5px;
  text-align: left; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sw-cat:hover { transform: translateY(-2px); border-color: rgba(128,144,255,.55); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.sw-cat.active {
  background: var(--grad-accent); border-color: rgba(157,157,255,.7); color: #fff;
  box-shadow: 0 10px 24px rgba(91,110,245,.4), inset 0 1px 0 rgba(255,255,255,.24);
}
.sw-cat-emo {
  font-size: 15px; line-height: 1; flex: none;
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(91,110,245,.14); border: 1px solid rgba(128,144,255,.24);
}
.sw-cat.active .sw-cat-emo { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.sw-cat-lbl { font-weight: 700; line-height: 1.15; }

/* в”Ђв”Ђ Р§Р°С‚ РїРѕРґРґРµСЂР¶РєРё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.chat-log {
  height: 460px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(600px 220px at 50% -12%, rgba(91,110,245,.07), transparent 70%),
    rgba(6,9,20,.34);
}
.chat-log::-webkit-scrollbar { width: 8px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(128,144,255,.28); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.chat-log::-webkit-scrollbar-thumb:hover { background: rgba(128,144,255,.5); background-clip: padding-box; }
.bubble { max-width: 74%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bubble.mine {
  align-self: flex-end; color: #fff; border-bottom-right-radius: 5px;
  background: var(--grad-accent); border: 1px solid rgba(157,157,255,.5);
  box-shadow: 0 8px 20px rgba(91,110,245,.3), inset 0 1px 0 rgba(255,255,255,.22);
}
.bubble.staff {
  align-self: flex-start; border-bottom-left-radius: 5px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); box-shadow: 0 6px 16px rgba(0,0,0,.26);
}
.bubble-who { display: block; font-size: 11px; font-weight: 800; color: var(--accent-2); margin-bottom: 3px; letter-spacing: .02em; }
.bubble.mine .bubble-who { color: rgba(255,255,255,.85); }
.chat-input {
  display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}
.chat-input input[type=text], .chat-input > input {
  flex: 1; background: rgba(6,9,20,.6); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; transition: border-color .18s, box-shadow .18s, background .18s;
}
.chat-input input:focus { border-color: var(--accent); background: rgba(6,9,20,.82); box-shadow: 0 0 0 3px var(--accent-glow); }
.quick-replies {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  order: -1;
}
.quick-replies button {
  border: 1px solid rgba(128,144,255,.24);
  background: rgba(91,110,245,.10);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}
.quick-replies button:hover {
  border-color: rgba(128,144,255,.58);
  background: rgba(91,110,245,.18);
  transform: translateY(-1px);
}
.ticket-origin {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.ticket-origin .pill {
  border: 1px solid rgba(128,144,255,.18);
  background: rgba(18,23,50,.68);
}

/* РљРЅРѕРїРєРё РґРµР№СЃС‚РІРёР№ РІ С‡Р°С‚Рµ РѕР±СЂР°С‰РµРЅРёСЏ вЂ” РѕРґРёРЅР°РєРѕРІРѕР№ С„РѕСЂРјС‹ Рё РІРµР»РёС‡РёРЅС‹.
   Р’СЃРµ СЃ РїР»РѕС‚РЅРѕР№ Р·Р°Р»РёРІРєРѕР№ С†РІРµС‚Р° РїРѕ СЃРјС‹СЃР»Сѓ. */
.btn-action {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 40px; padding: 10px 18px; border-radius: 11px;
  font-size: 13px; font-weight: 750; display: inline-flex; align-items: center;
  gap: 8px; border: 1px solid rgba(255,255,255,.08); color: #fff;
  cursor: pointer; transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, filter .2s ease;
  background: #4b5567;
  box-shadow: 0 5px 14px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-action::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.24) 48%, transparent 76%);
  transform: translateX(-120%); transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.btn-action:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 12px 26px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-action:hover:not(:disabled)::before { transform: translateX(120%); }
.btn-action:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn-action:disabled { opacity: .65; cursor: default; }
/* Р’Р·СЏС‚СЊ РІ СЂР°Р±РѕС‚Сѓ вЂ” СЃРёРЅРёР№ */
.btn-action.btn-take    { background: linear-gradient(180deg,#4a5aeb,#3745c7); }
/* Р–РґС‘С‚ РѕС‚РІРµС‚Р° вЂ” Р¶С‘Р»С‚С‹Р№ */
.btn-action.btn-remind  { background: linear-gradient(180deg,#e0a83a,#c58d1e); color:#221600; }
/* РџСЂРѕР±Р»РµРјР° СЂРµС€РµРЅР° вЂ” Р·РµР»С‘РЅС‹Р№ */
.btn-action.btn-resolve { background: linear-gradient(180deg,#3fb950,#2e9e42); }
/* Р—Р°РєСЂС‹С‚СЊ Р±РµР· РѕС†РµРЅРєРё вЂ” РєСЂР°СЃРЅС‹Р№ */
.btn-action.btn-close   { background: linear-gradient(180deg,#e05252,#c0433f); }
/* РЈР¶Рµ Сѓ РјРµРЅСЏ РІ СЂР°Р±РѕС‚Рµ вЂ” Р·Р°Р»РёС‚С‹Р№ СЃРµСЂС‹Р№ */
.btn-action.btn-mine    { background: linear-gradient(180deg,#2e3654,#232945); }

/* РЎРѕРІРјРµСЃС‚РёРјРѕСЃС‚СЊ СЃРѕ СЃС‚Р°СЂС‹РјРё РєР»Р°СЃСЃР°РјРё (РµСЃР»Рё РіРґРµ-С‚Рѕ РѕСЃС‚Р°Р»РёСЃСЊ) */
.btn-action.btn-primary { background: linear-gradient(180deg,#4a5aeb,#3745c7); }
.btn-action.btn-accent  { background: linear-gradient(180deg,#e0a83a,#c58d1e); color:#221600; }
.btn-action.btn-danger  { background: linear-gradient(180deg,#e05252,#c0433f); color:#fff; }
.btn-action.btn-muted   { background: linear-gradient(180deg,#2e3654,#232945); color: var(--muted); }

/* в”Ђв”Ђ РЎРёСЃС‚РµРјРЅС‹Рµ СЃРѕРѕР±С‰РµРЅРёСЏ РїРѕ С†РµРЅС‚СЂСѓ С‡Р°С‚Р° в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.chat-notice {
  align-self: center;
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 92%;
  padding: 12px 18px; margin: 10px 0;
  border-radius: 14px; color: var(--text);
  background: linear-gradient(180deg, rgba(91,110,245,.14), rgba(91,110,245,.06));
  border: 1px solid rgba(91,110,245,.35);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.chat-notice .cn-icon { font-size: 22px; line-height: 1; margin-top: 1px; }
.chat-notice .cn-title { font-weight: 800; font-size: 14px; }
.chat-notice .cn-text  { color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-word; }
.chat-notice .cn-text strong { color: var(--text); }

/* Р Р°СЃРєСЂР°СЃРєР° РїРѕ С‚РёРїСѓ */
.chat-notice.sys-new     { background: linear-gradient(180deg, rgba(140,155,255,.14), rgba(140,155,255,.06)); border-color: rgba(140,155,255,.35); }
.chat-notice.sys-bump    { background: linear-gradient(180deg, rgba(224,168,58,.14), rgba(224,168,58,.05)); border-color: rgba(224,168,58,.45); }
.chat-notice.sys-take    { background: linear-gradient(180deg, rgba(74,90,235,.16), rgba(74,90,235,.06)); border-color: rgba(74,90,235,.45); }
.chat-notice.sys-resolve { background: linear-gradient(180deg, rgba(63,185,80,.18), rgba(63,185,80,.06)); border-color: rgba(63,185,80,.50); }
.chat-notice.sys-close   { background: linear-gradient(180deg, rgba(139,152,169,.16), rgba(139,152,169,.06)); border-color: rgba(139,152,169,.4); }
.chat-notice.sys-rate    { background: linear-gradient(180deg, rgba(180,120,220,.16), rgba(180,120,220,.05)); border-color: rgba(180,120,220,.45); }
.chat-notice.sys-ai      { background: linear-gradient(180deg, rgba(91,110,245,.16), rgba(91,110,245,.06)); border-color: rgba(91,110,245,.4); }
.chat-notice.sys-code    { background: linear-gradient(180deg, rgba(224,168,58,.16), rgba(224,168,58,.05)); border-color: rgba(224,168,58,.45); }
.chat-notice.sys-promo   { background: linear-gradient(180deg, rgba(63,185,80,.16), rgba(63,185,80,.05)); border-color: rgba(63,185,80,.45); }

/* РљСЂСѓРїРЅС‹Р№ В«resolveВ»-Р±Р°РЅРЅРµСЂ вЂ” СЃР°РјР°СЏ Р·Р°РјРµС‚РЅР°СЏ РїР»Р°С€РєР° */
.chat-notice.sys-resolve .cn-title { font-size: 16px; color: #82e089; }

.reviewer-banner {
  --rb-accent: var(--accent);
  border-color: color-mix(in srgb, var(--rb-accent) 45%, transparent);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--rb-accent) 18%, transparent),
    color-mix(in srgb, var(--rb-accent) 6%, transparent));
}
.reviewer-banner .rb-row {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
}
.reviewer-banner .rb-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; flex: none;
  border: 2px solid var(--rb-accent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--rb-accent) 45%, transparent);
}
.reviewer-banner .rb-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--panel-2); color: var(--rb-accent);
}
.reviewer-banner .rb-info { flex: 1; min-width: 0; }
.reviewer-banner .rb-title { font-size: 15px; margin-bottom: 4px; }
.reviewer-banner .rb-stats {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.reviewer-banner .rb-stats strong { color: var(--text); }
.reviewer-banner .rb-sep { opacity: .5; }
.reviewer-banner .rb-bio {
  margin-top: 6px; font-size: 12.5px; line-height: 1.4;
  font-style: italic;
}
.reviewer-banner .rb-actions { margin-top: 10px; }
.reviewer-banner .rb-actions .btn {
  background: color-mix(in srgb, var(--rb-accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--rb-accent) 50%, transparent);
  color: #fff;
}
.reviewer-banner .rb-actions .btn:hover { background: color-mix(in srgb, var(--rb-accent) 32%, transparent); }

/* в”Ђв”Ђ Р’СЃРїР»С‹РІР°СЋС‰РёРµ СѓРІРµРґРѕРјР»РµРЅРёСЏ (toast) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
#toast-box {
  position: fixed; left: 22px; bottom: 22px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; pointer-events: none;
}
.toast {
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: auto; cursor: pointer;
  padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  color: var(--text); font-size: 13.5px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  animation: toastIn .28s ease-out;
  word-break: break-word;
  text-decoration: none;
}
.toast strong { color: #fff; font-size: 14px; }
.toast span { color: rgba(234,238,251,.88); line-height: 1.38; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.toast-out { animation: toastOut .35s ease-in forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(-20px); }
}
.toast-accent {
  border-color: rgba(91,110,245,.55);
  background: linear-gradient(180deg, rgba(91,110,245,.18), rgba(91,110,245,.06));
}
.toast-info {
  border-color: rgba(128,144,255,.35);
  background: linear-gradient(180deg, rgba(128,144,255,.12), rgba(128,144,255,.04));
}
.toast-success {
  border-color: rgba(63,185,80,.45);
  background: linear-gradient(180deg, rgba(63,185,80,.14), rgba(63,185,80,.05));
}
.toast-error {
  border-color: rgba(248,81,73,.45);
  background: linear-gradient(180deg, rgba(248,81,73,.14), rgba(248,81,73,.05));
}

/* ── Личное сообщение от создателя — крупный модал по центру экрана ─────── */
.admin-alert-overlay {
  position: fixed; inset: 0; z-index: 20000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6,7,10,.78);
  backdrop-filter: blur(6px);
  animation: adminAlertFadeIn .22s ease-out;
}
.admin-alert-overlay.is-closing { animation: adminAlertFadeOut .2s ease-in forwards; }
@keyframes adminAlertFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes adminAlertFadeOut { to { opacity: 0; } }
.admin-alert-card {
  position: relative;
  width: 100%; max-width: 520px;
  padding: 34px 32px 28px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(255,70,70,.55);
  background:
    radial-gradient(560px 240px at 50% -10%, rgba(255,50,50,.24), transparent 65%),
    linear-gradient(180deg, #1a0a0c, #0a0708);
  box-shadow:
    0 0 0 1px rgba(255,50,50,.14) inset,
    0 30px 90px rgba(255,30,30,.28),
    0 0 60px rgba(255,40,40,.20);
  animation: adminAlertPop .3s cubic-bezier(.2,.9,.25,1.2);
}
@keyframes adminAlertPop {
  from { opacity: 0; transform: scale(.92) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.admin-alert-ico {
  font-size: 46px; line-height: 1; margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(255,60,60,.65));
}
.admin-alert-sub {
  font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: #ff8a8a; margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(255,60,60,.5);
}
.admin-alert-title {
  font-size: 24px; font-weight: 900; letter-spacing: -.01em;
  color: #fff; margin: 0 0 12px;
}
.admin-alert-text {
  font-size: 16px; line-height: 1.55; color: #f5dcdc;
  white-space: pre-wrap; word-break: break-word;
  margin-bottom: 26px;
}
.admin-alert-close {
  padding: 13px 30px; border-radius: 11px; border: 1px solid rgba(255,80,80,.6);
  background: linear-gradient(180deg, #ff3f4a, #b8202b); color: #fff;
  font-weight: 900; letter-spacing: .1em; font-size: 13px; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255,50,50,.38), inset 0 -3px 0 rgba(0,0,0,.25);
  transition: filter .15s, transform .15s;
}
.admin-alert-close:hover { filter: brightness(1.1); transform: translateY(-1px); }
@media (max-width: 560px) {
  .admin-alert-card { padding: 28px 22px 24px; border-radius: 18px; }
  .admin-alert-title { font-size: 20px; }
  .admin-alert-text { font-size: 15px; }
}

/* -- Tour po navigatsii (guide button on family pages) -- */
.tour-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(4,5,10,.72);
  animation: adminAlertFadeIn .18s ease-out;
}
.tour-highlight {
  position: relative; z-index: 9001;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--accent), 0 0 24px var(--accent-glow);
  background: var(--panel-2);
}
.tour-tooltip {
  position: absolute; z-index: 9002;
  width: 300px; max-width: calc(100vw - 24px);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  color: var(--text);
  transition: top .22s ease, left .22s ease;
}
.tour-step {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 6px;
}
.tour-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tour-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.tour-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tour-actions .btn { padding: 6px 14px; font-size: 13px; }

/* в”Ђв”Ђ Р’Р»РѕР¶РµРЅРёСЏ РІ С‡Р°С‚Рµ РѕР±СЂР°С‰РµРЅРёСЏ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.chat-attach {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(6,9,20,.5);
  cursor: pointer; font-size: 18px; user-select: none;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.chat-attach:hover { border-color: var(--accent); background: rgba(91,110,245,.12); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.26); }
.chat-attach-preview {
  flex-basis: 100%; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.chat-attach-clear {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  font-size: 14px; margin-left: auto;
}
.chat-attach-clear:hover { color: var(--red); }

.bubble .bubble-att {
  display: block; margin-top: 6px; border-radius: 10px; overflow: hidden;
  max-width: 320px;
}
.bubble .bubble-att img {
  display: block; max-width: 100%; max-height: 260px; object-fit: cover;
  border-radius: 10px;
}
.bubble .bubble-att-file {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,.06); font-size: 13px; text-decoration: none;
  color: var(--text);
}
.bubble .bubble-att-file:hover { background: rgba(255,255,255,.12); }

/* Р—РІС‘Р·РґС‹ РѕС†РµРЅРєРё */
.stars { display: inline-flex; gap: 4px; }
.stars .star {
  background: transparent; border: none; cursor: pointer; padding: 4px;
  font-size: 32px; line-height: 1; color: var(--border); transition: color .12s, transform .12s, text-shadow .12s;
}
.stars .star:hover, .stars .star.active { color: var(--yellow); transform: scale(1.12); text-shadow: 0 0 16px rgba(224,168,58,.55); }

/* РџРµСЂРµРєР»СЋС‡Р°С‚РµР»СЊ СЃРёСЃС‚РµРјС‹ РЅР°РєР°Р·Р°РЅРёР№ */
.switch { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.switch-opt { padding: 9px 20px; border-radius: 9px; border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; transition: .15s; }
.switch-opt:hover:not(.active) { color: var(--text); background: var(--panel-2); }
.switch-opt.active { background: var(--accent); color: #fff; cursor: default; }

/* в”Ђв”Ђ РЎС‚СЂР°РЅРёС†Р° РѕС€РёР±РѕРє в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
body.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(241,196,15,.08), transparent 34%),
    radial-gradient(900px 420px at 80% 20%, rgba(91,110,245,.18), transparent 60%),
    #050608;
  padding: 24px;
}
.error-page::before { display: none; }
.error-stage {
  width: 100%;
  max-width: 720px;
}
.error-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,23,50,.94), rgba(8,11,22,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
  padding: clamp(28px, 5vw, 52px);
}
.error-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  pointer-events: none;
}
.error-mark {
  color: var(--gold);
  font-size: clamp(64px, 14vw, 128px);
  font-weight: 950;
  line-height: .85;
}
.error-kicker {
  margin-top: 18px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.error-panel h1 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.05;
}
.error-panel p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.55;
}
.error-actions {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  transition: .16s ease;
  padding: 0 18px;
}
.error-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.error-btn-home {
  color: #111;
  background: linear-gradient(180deg, #ffd52a, #e5aa09);
  border: 1px solid rgba(255,218,58,.9);
  box-shadow: 0 12px 32px rgba(241,196,15,.28);
}
.error-btn-support {
  color: var(--gold);
  background: rgba(10,12,15,.28);
  border: 1px solid rgba(241,196,15,.74);
}
@media (max-width: 820px) {
  .error-actions { flex-direction: column; align-items: stretch; }
  .error-btn { width: 100%; }
}

/* в”Ђв”Ђ Profile pages: full-width hero layout в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.profile-page {
  --profile-accent: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.profile-hero {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid rgba(128,144,255,.22);
  border-radius: 28px;
  background:
    radial-gradient(900px 360px at 18% 0%, color-mix(in srgb, var(--profile-accent) 24%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(18,23,50,.92), rgba(8,11,22,.96));
  box-shadow: 0 30px 90px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.profile-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(91,110,245,.18), rgba(241,196,15,.08)),
    url("../img/banner.webp");
  background-size: cover;
  background-position: center;
  opacity: .95;
}
.profile-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,11,22,.24), rgba(8,11,22,.08) 45%, rgba(8,11,22,.78)),
    linear-gradient(180deg, rgba(8,11,22,.02), rgba(8,11,22,.95) 96%);
}
.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .14;
  pointer-events: none;
}
.profile-hero-body {
  position: relative;
  z-index: 2;
  min-height: 380px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 190px 34px 34px;
}
.profile-avatar-xl {
  width: 152px;
  height: 152px;
  border-radius: 30px;
  object-fit: cover;
  background: var(--panel);
  border: 4px solid rgba(8,11,22,.92);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--profile-accent) 78%, white 0%),
    0 24px 56px rgba(0,0,0,.56);
}
.profile-title-block { min-width: 0; padding-bottom: 4px; }
.profile-kicker {
  color: color-mix(in srgb, var(--profile-accent) 82%, #ffffff 18%);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}
.profile-name {
  margin: 0;
  font-size: clamp(20px, 8vw, 74px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 16px 38px rgba(0,0,0,.42);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-meta,
.profile-badges,
.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-meta {
  margin-top: 12px;
  color: rgba(234,238,251,.72);
  font-size: 13px;
}
.profile-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(8,11,22,.34);
}
.profile-badges { margin-top: 12px; }
.profile-actions {
  justify-content: flex-end;
  align-self: end;
  min-width: 230px;
}
.profile-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.profile-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-mini-card {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid rgba(128,144,255,.20);
  border-radius: 20px;
  background:
    radial-gradient(360px 180px at 0% 0%, color-mix(in srgb, var(--profile-accent) 18%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(18,23,50,.88), rgba(13,17,32,.78));
  box-shadow: var(--shadow);
}
.profile-mini-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}
.profile-mini-card strong {
  display: block;
  font-size: 22px;
  color: #fff;
}
.profile-mini-card p { margin-bottom: 0; line-height: 1.45; }
.profile-main { min-width: 0; }
.profile-about {
  border-left: 4px solid var(--profile-accent);
  background:
    radial-gradient(540px 220px at 100% 0%, color-mix(in srgb, var(--profile-accent) 16%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(18,23,50,.9), rgba(13,17,32,.84));
}
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-title h2 { margin: 0 0 4px; }
.section-title .subtitle { margin-bottom: 0; }
.prof-bio,
.pp-bio {
  padding: 18px 20px;
  border: 1px solid rgba(128,144,255,.16);
  border-radius: 16px;
  background: rgba(8,11,22,.34);
  line-height: 1.65;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}
.prof-bio img,
.pp-bio img {
  max-width: 100%;
  border-radius: 14px;
  margin: 8px 0;
}
.prof-bio code,
.pp-bio code {
  background: var(--panel-2);
  padding: 2px 7px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 90%;
}
.profile-stat-grid .stat {
  min-height: 132px;
  justify-content: center;
  border-color: rgba(128,144,255,.22);
}
.pp-reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pp-review {
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18,23,50,.88), rgba(13,17,32,.82));
  border: 1px solid rgba(128,144,255,.18);
  border-left: 4px solid var(--profile-accent, var(--accent));
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.pp-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.pp-review-src { font-size: 11px; }
.pp-review-stars {
  letter-spacing: 2px;
  font-size: 14px;
}
.pp-review-text {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

/* в”Ђв”Ђ Small global polish в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.topbar {
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(128,144,255,.42), transparent);
  pointer-events: none;
}
.card {
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%);
  opacity: .35;
  pointer-events: none;
}
.card > * {
  position: relative;
  z-index: 1;
}
::selection {
  color: #fff;
  background: rgba(128,144,255,.45);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070a13; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 999px;
  border: 2px solid #070a13;
}

@media (max-width: 980px) {
  .profile-hero-body {
    grid-template-columns: 1fr;
    padding: 170px 22px 24px;
  }
  .profile-avatar-xl {
    width: 132px;
    height: 132px;
  }
  .profile-actions {
    justify-content: flex-start;
    min-width: 0;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-mini-card {
    position: relative;
    top: auto;
  }
}
@media (max-width: 680px) {
  .container { padding: 22px 14px; }
  .profile-hero { border-radius: 20px; min-height: 360px; }
  .profile-avatar-xl {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }
  .profile-actions .btn {
    width: 100%;
  }
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .topnav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .user-area {
    margin-left: 0;
  }
}

/* в”Ђв”Ђ РџРѕРґСЃРєР°Р·РєРё Р»Р°С‚РёРЅРёС†Р°/Caps Lock (СЃРј. js/latinonly.js) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.latin-note, .caps-note {
  display: none; align-items: center; gap: 6px; width: fit-content;
  margin-top: 6px; padding: 5px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 650; line-height: 1;
}
.latin-note.show, .caps-note.show { display: inline-flex; animation: latinPop .16s ease; }
.latin-note { color: #ff9a92; background: rgba(248,81,73,.13); border: 1px solid rgba(248,81,73,.38); }
.caps-note  { color: #ffcf7a; background: rgba(224,168,58,.14); border: 1px solid rgba(224,168,58,.4); }
@keyframes latinPop { from { transform: translateY(-3px); opacity: 0; } to { transform: none; opacity: 1; } }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   РђРЅРёРјР°С†РёРё РїРѕСЏРІР»РµРЅРёСЏ РїРѕ СЃР°Р№С‚Сѓ
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* РЁР°РїРєР° В«РІС‹РµР·Р¶Р°РµС‚В» СЃРІРµСЂС…Сѓ, РєРѕРЅС‚РµРЅС‚ вЂ” СЃРЅРёР·Сѓ */
.topbar { animation: dropIn .45s cubic-bezier(.2,.7,.3,1) both; }
.container { animation: pageIn .5s cubic-bezier(.2,.7,.3,1) both; }

/* РљР°СЂС‚РѕС‡РєРё/РїР»РёС‚РєРё/СЃРµРєС†РёРё РїРѕСЏРІР»СЏСЋС‚СЃСЏ СЃРѕ СЃС‚Р°РіРіРµСЂРѕРј */
.container > .card,
.grid > *,
.guild-grid > *,
.gw-grid > *,
.ab-grid > *,
.tm-list > *,
.cg-grid > * {
  animation: riseIn .5s cubic-bezier(.2,.7,.3,1) both;
}

.grid > *,
.guild-grid > *,
.gw-grid > *,
.ab-grid > *,
.tm-list > *,
.cg-grid > *,
.container > .card {
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}
.grid > *:nth-child(1),.guild-grid > *:nth-child(1),.gw-grid > *:nth-child(1),.ab-grid > *:nth-child(1),.cg-grid > *:nth-child(1) { animation-delay: .02s; }
.grid > *:nth-child(2),.guild-grid > *:nth-child(2),.gw-grid > *:nth-child(2),.ab-grid > *:nth-child(2),.cg-grid > *:nth-child(2) { animation-delay: .07s; }
.grid > *:nth-child(3),.guild-grid > *:nth-child(3),.gw-grid > *:nth-child(3),.ab-grid > *:nth-child(3),.cg-grid > *:nth-child(3) { animation-delay: .12s; }
.grid > *:nth-child(4),.guild-grid > *:nth-child(4),.gw-grid > *:nth-child(4),.ab-grid > *:nth-child(4),.cg-grid > *:nth-child(4) { animation-delay: .17s; }
.grid > *:nth-child(5),.guild-grid > *:nth-child(5),.gw-grid > *:nth-child(5),.ab-grid > *:nth-child(5),.cg-grid > *:nth-child(5) { animation-delay: .22s; }
.grid > *:nth-child(n+6),.guild-grid > *:nth-child(n+6),.gw-grid > *:nth-child(n+6),.ab-grid > *:nth-child(n+6),.cg-grid > *:nth-child(n+6) { animation-delay: .27s; }

/* РЈРІР°Р¶Р°РµРј СЃРёСЃС‚РµРјРЅСѓСЋ РЅР°СЃС‚СЂРѕР№РєСѓ В«СѓРјРµРЅСЊС€РёС‚СЊ РґРІРёР¶РµРЅРёРµВ» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Blue visual refresh layer. */
:root {
  --bg: #070b16;
  --bg-2: #0d1426;
  --panel: #121a2f;
  --panel-2: #17213a;
  --border: rgba(142,162,255,.18);
  --text: #eef4ff;
  --muted: #9faccc;
  --accent: #5865f2;
  --accent-2: #8ea2ff;
  --accent-3: #3b82f6;
  --accent-ink: #050816;
  --accent-glow: rgba(88,101,242,.28);
  --grad-accent: linear-gradient(135deg, #8ea2ff 0%, #5865f2 56%, #3652d9 100%);
  --grad-accent-soft: linear-gradient(135deg, rgba(88,101,242,.18), rgba(59,130,246,.10));
}

html { color-scheme: dark; }

body {
  background:
    radial-gradient(900px 460px at 12% -8%, rgba(88,101,242,.18), transparent 62%),
    radial-gradient(760px 480px at 92% 0%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(780px 520px at 82% 100%, rgba(31,91,214,.16), transparent 64%),
    linear-gradient(135deg, #060913 0%, #0b1224 48%, #101a31 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 78%);
  opacity: .42;
}

.topbar {
  gap: 22px;
  background: linear-gradient(180deg, rgba(15,20,34,.88), rgba(9,13,26,.74));
  border-bottom-color: rgba(142,162,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.topbar::before {
  background: linear-gradient(90deg, rgba(88,101,242,.18), transparent 35%, rgba(59,130,246,.12), transparent 75%);
  opacity: 1;
}

.brand-logo,
.login-brand img {
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(142,162,255,.45),
    0 14px 34px rgba(0,0,0,.30),
    0 0 24px rgba(88,101,242,.16) !important;
}

.brand-name {
  letter-spacing: .04em;
  text-shadow: 0 0 20px rgba(142,162,255,.18);
}

.brand-sub,
.login-brand span,
.login-kicker,
.sw-body .field > span:first-child,
.bubble-who {
  color: #8ea2ff !important;
  letter-spacing: .30em;
  text-shadow: 0 0 18px rgba(88,101,242,.22);
}

/* Ссылки в карточке «Что такое HELIS» — обычная фраза, а не капс-подпись:
   разрядка .30em рвала слова на буквы. Оставляем цвет и свечение. */
.login-about a {
  color: #8ea2ff;
  letter-spacing: .01em;
  text-shadow: 0 0 18px rgba(88,101,242,.22);
}

.topnav {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.topnav a {
  color: rgba(238,244,255,.72);
  font-weight: 780;
}

.topnav a:hover,
.topnav a.active,
.card-link:hover,
.btn:hover {
  border-color: rgba(142,162,255,.44);
}

.topnav a.active {
  background:
    radial-gradient(90px 34px at 50% 0%, rgba(88,101,242,.28), transparent 78%),
    linear-gradient(180deg, rgba(88,101,242,.18), rgba(255,255,255,.04));
}

.topnav a.active::before {
  background: linear-gradient(90deg, #8ea2ff, #3b82f6);
  box-shadow: 0 0 12px rgba(88,101,242,.46);
}

.nav-ico,
.news-button,
.lang-switch,
.user-chip {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
}

h1,
h2,
.tile .tile-title,
.guild-title {
  color: #f8fbff;
}

.subtitle,
.muted,
.tile .tile-sub,
.stat .label,
.guild-id {
  color: var(--muted);
}

.hero-img,
.card,
.guild-card,
.table-wrap,
.profile-mini-card,
.pp-review,
.prof-bio,
.pp-bio {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022)),
    linear-gradient(180deg, rgba(18,26,47,.92), rgba(13,20,38,.88));
  border-color: rgba(142,162,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.045);
}

.card::before {
  background: linear-gradient(135deg, rgba(88,101,242,.10), transparent 38%, rgba(59,130,246,.06));
  opacity: .8;
}

.guild-cover-empty {
  background:
    radial-gradient(260px 130px at 80% 18%, rgba(88,101,242,.28), transparent 62%),
    radial-gradient(220px 120px at 16% 10%, rgba(59,130,246,.18), transparent 66%),
    linear-gradient(135deg, #16213d, #0a1021 68%);
}

.guild-avatar {
  background: var(--grad-accent);
  color: #fff;
}

.btn-primary {
  border-color: rgba(142,162,255,.72);
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(88,101,242,.30), inset 0 1px 0 rgba(255,255,255,.28);
}

input:hover,
select:hover,
textarea:hover,
.sw-guild-trigger:hover,
.sw-guild-trigger.open {
  border-color: rgba(142,162,255,.42);
}

input:focus,
select:focus,
textarea:focus,
input[type=datetime-local]:focus-within {
  border-color: rgba(142,162,255,.76);
  box-shadow: 0 0 0 3px rgba(88,101,242,.18), inset 0 1px 0 rgba(255,255,255,.05);
}

th { color: #b7c4ff; }
tr:hover td { background: rgba(88,101,242,.055); }

body:has(.login-stage) {
  overflow-x: clip;
}

body:has(.login-stage) .container {
  max-width: none;
  padding: 0;
}

.login-stage {
  width: 100% !important;
  margin: 0 !important;
}

.login-stage,
.login-bg,
.login-vignette,
.login-main,
.login-footer {
  max-width: 100vw;
}

.login-vignette {
  background:
    radial-gradient(circle at 42% 44%, rgba(88,101,242,.22), transparent 25%),
    radial-gradient(circle at 16% 68%, rgba(59,130,246,.14), transparent 34%),
    linear-gradient(90deg, rgba(2,5,14,.32), rgba(2,5,14,.54) 48%, rgba(2,5,14,.22)) !important;
}

.login-center h1 {
  display: inline-block;
  padding: 0 .14em .08em 0;
  background: linear-gradient(180deg, #fff 12%, #edf2ff 50%, #8ea2ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.38)) !important;
}

.login-discord {
  border-color: rgba(88,101,242,.72) !important;
  background: linear-gradient(135deg, #7289da 0%, #5865f2 54%, #4752c4 100%) !important;
  color: #fff !important;
  box-shadow: 0 24px 58px rgba(88,101,242,.34), inset 0 1px 0 rgba(255,255,255,.24) !important;
}

.login-about {
  border-color: rgba(255,255,255,.11) !important;
  background:
    radial-gradient(340px 190px at 30% 0%, rgba(88,101,242,.17), transparent 68%),
    linear-gradient(180deg, rgba(18,26,47,.86), rgba(8,13,27,.88)) !important;
}

.login-about-head span,
.login-about li span {
  border-color: rgba(142,162,255,.30) !important;
  background: linear-gradient(180deg, rgba(88,101,242,.18), rgba(59,130,246,.12)) !important;
}

.sw-guild-trigger.single,
.sw-guild-trigger:disabled,
.sw-guild-trigger.single:hover,
.sw-guild-trigger:disabled:hover {
  cursor: default;
  opacity: 1;
  color: var(--text);
  border-color: rgba(142,162,255,.26);
  background:
    linear-gradient(180deg, rgba(88,101,242,.10), rgba(255,255,255,.018)),
    rgba(6,9,20,.62);
  box-shadow: none;
}

.sw-guild-trigger.single span:last-child,
.sw-guild-trigger:disabled span:last-child {
  opacity: .35;
}

.stat-online {
  border-color: rgba(88,101,242,.34);
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(88,101,242,.20), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022)),
    linear-gradient(180deg, rgba(18,26,47,.94), rgba(13,20,38,.90));
}

::-webkit-scrollbar-track { background: #090d18; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8ea2ff, #5865f2);
  border-color: #090d18;
}

/* ══════════════════════════════════════════════════════════════════════
   Компактная шапка — уменьшенная высота (менее громоздкая).
   Блок в конце файла, чтобы гарантированно перебить размеры выше по каскаду.
   ══════════════════════════════════════════════════════════════════════ */
.topbar { padding: 6px 22px; gap: 16px; }
.brand { gap: 9px; }
.brand-logo { width: 30px; height: 30px; border-radius: 10px; }
.brand-name { font-size: 16px; }
.brand-sub { font-size: 7.5px; letter-spacing: .22em; margin-top: 1px; }
.topnav { padding: 3px; gap: 4px; }
.topnav a { min-height: 27px; padding: 4px 10px 4px 6px; font-weight: 800; }
.topnav a:hover, .topnav a.active { transform: translateY(-1px); }
.nav-ico { width: 18px; height: 18px; font-size: 11px; }
.user-area { gap: 8px; }
.bot-status-pill { padding: 4px 9px; font-size: 11px; }
.news-button { width: 30px; height: 30px; border-radius: 8px; }
.lang-switch { padding: 2px; }
.lang-switch a { min-width: 28px; height: 22px; font-size: 11px; }
.user-chip { padding: 4px 9px; }
.user-chip .avatar { width: 22px; height: 22px; }

.user-area .btn { padding: 6px 13px; }

/* ══════════════════════════════════════════════════════════════════════
   Шапка не раздвигает страницу.
   На ноутбучных 1280-1440 длинное меню (с «Админ-панелью» и «Поддержкой»)
   не влезало и растягивало документ: горизонтальный скролл появлялся на
   ВСЕХ страницах, а пункты вроде «О нас» ломались на две строки.
   Теперь меню умеет сжиматься и прокручивается внутри себя.
   ══════════════════════════════════════════════════════════════════════ */
.topbar { min-width: 0; }
.topnav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.topnav::-webkit-scrollbar { height: 0; display: none; }
.topnav a { flex: none; white-space: nowrap; }
.user-area { flex: none; }
/* На 1440-1680 меню почти влезает: подтягиваем внутренние отступы, чтобы
   обошлось без внутренней прокрутки. */
@media (max-width: 1680px) {
  .topnav { gap: 3px; }
  .topnav a { padding: 4px 9px 4px 5px; gap: 6px; }
  .nav-ico { width: 16px; height: 16px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   ИКОНКИ
   Монолинейный duotone-набор вместо эмодзи: мягкая заливка + чёткий контур,
   всё одним цветом через currentColor. Спрайт инлайнится в base.html,
   вставка — {{ icon('home') }} / {{ icon_tile('bank') }} (web/icons.py).
   Размер задан в em, поэтому иконка сама подстраивается под кегль текста.
   ══════════════════════════════════════════════════════════════════════════ */
.ico {
  width: 1em; height: 1em; flex: none;
  display: inline-block; vertical-align: -.15em;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.ico-sm { width: .9em; height: .9em; }
.ico-lg { width: 1.3em; height: 1.3em; stroke-width: 1.6; }
.ico-xl { width: 1.8em; height: 1.8em; stroke-width: 1.5; }

/* Смысловая палитра: цвет означает роль, а не настроение. Деньги золотые,
   безопасность зелёная, запреты красные — см. ICONS в web/icons.py. */
.c-blue   { color: #8090ff; }
.c-violet { color: #b18cff; }
.c-cyan   { color: #4fd6e6; }
.c-gold   { color: #f5c53d; }
.c-green  { color: #45d97c; }
.c-red    { color: #ff6b6b; }
.c-rose   { color: #ff8fb0; }
.c-orange { color: #ff9f4d; }
.c-mut    { color: var(--muted); }

/* Плитка: иконка в мягком градиенте своего же цвета — для карточек
   статистики и заголовков страниц. Градиент собирается из currentColor,
   поэтому достаточно сменить класс .c-*. */
.ico-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.35em; height: 2.35em; border-radius: .72em;
  background:
    linear-gradient(150deg, color-mix(in srgb, currentColor 30%, transparent),
                            color-mix(in srgb, currentColor 8%, transparent));
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 6px 16px rgba(0,0,0,.22);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease;
}
.ico-tile .ico { width: 1.25em; height: 1.25em; }
.ico-tile-lg { width: 3.1em; height: 3.1em; border-radius: .9em; }
.ico-tile-lg .ico { width: 1.5em; height: 1.5em; }
a:hover > .ico-tile,
.card-link:hover .ico-tile {
  transform: translateY(-1px) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16),
              0 10px 24px color-mix(in srgb, currentColor 26%, transparent);
}

/* Топбар: иконка без «пилюли» — приглушена и разгорается вместе с текстом.
   Перекрывает прежние правила .nav-ico (в том числе в медиазапросе выше). */
.nav-ico {
  width: auto; height: auto;
  background: none; border: 0; box-shadow: none;
  font-size: 16px; opacity: .72;
  transition: opacity .2s ease, transform .2s cubic-bezier(.2,.7,.3,1), filter .2s ease;
}
.topnav a:hover .nav-ico,
.topnav a.active .nav-ico {
  background: none; border: 0; opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 55%, transparent));
}
@media (max-width: 1680px) {
  .nav-ico { width: auto; height: auto; font-size: 15px; }
}

/* Точка статуса вместо цветных кружков-эмодзи: цвет берётся от пилюли,
   ореол — тот же цвет с прозрачностью. */
.status-dot {
  width: 7px; height: 7px; border-radius: 999px;
  display: inline-block; flex: none;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}
/* Пилюли и бейджи теперь носят иконку/точку — им нужен flex с зазором. */
.pill { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; }
/* Ряд действий в таблицах: иконки-кнопки подсвечиваются по наведению. */
.row-actions { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.row-actions a:hover .ico, .row-actions button:hover .ico { color: var(--accent-2); }
/* Внутри пилюль, бейджей и кнопок иконка берёт цвет контейнера: смысл там
   уже передан фоном/заливкой, а второй цвет только шумит. */
.pill .ico, .badge .ico, .btn .ico, .lux-pill .ico { color: inherit; }

/* ══════════════════════════════════════════════════════════════════════════
   ТИПОГРАФИКА
   Шрифты подключены переменными (100..900) — веса 650/750/850 из правил выше
   теперь настоящие, а не синтезированный жирный. Здесь — ритм: межстрочный
   интервал для текста, сжатый для управляющих элементов, и цифры в таблицах
   одной ширины.
   ══════════════════════════════════════════════════════════════════════════ */
body {
  line-height: 1.5;
  /* На тёмном фоне субпиксельное сглаживание «раздувает» буквы. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

/* Заголовки: плотнее и без «висячего» короткого хвоста на последней строке. */
h1, h2, h3, h4 {
  line-height: 1.16;
  text-wrap: balance;
}
h1 { letter-spacing: -.018em; }
h2 { letter-spacing: -.014em; }
h3, h4 { letter-spacing: -.008em; }

/* Абзацы: браузер выравнивает длины строк, короткие «сироты» не остаются. */
p, .subtitle, .muted small, .card p { text-wrap: pretty; }

/* Управляющие элементы живут по своим отступам — растянутый интерлиньяж
   раздувал бы им высоту. */
.btn, .pill, .badge, .lux-pill, .topnav a, .tabs a, .brand-name, .brand-sub,
.bot-status-pill, .lang-switch a, .user-chip, .stat .num, th, .rs-trigger,
.rs-title, .nav-ico { line-height: 1.2; }

/* Цифры одной ширины везде, где их сравнивают глазами: суммы, счётчики,
   даты, идентификаторы. */
.mono, .stat .num, td, .num, time, .money {
  font-variant-numeric: tabular-nums;
}

/* Прописные подписи без разрядки читаются как ошибка вёрстки. */
.profile-kicker, .hero-eyebrow, .brand-sub, th {
  font-feature-settings: "case" 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   ТАБЛИЦЫ
   ══════════════════════════════════════════════════════════════════════════ */
.table-wrap {
  /* Тени по краям появляются только тогда, когда есть куда прокручивать:
     две «маски» цвета фона прокручиваются вместе с содержимым (local) и
     закрывают тени, пока таблица в крайнем положении. */
  background:
    linear-gradient(90deg, #0b0f1d 38%, rgba(11,15,29,0)) left / 30px 100% no-repeat local,
    linear-gradient(270deg, #0b0f1d 38%, rgba(11,15,29,0)) right / 30px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.55), rgba(0,0,0,0)) left / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.55), rgba(0,0,0,0)) right / 16px 100% no-repeat scroll,
    rgba(8,11,22,.36);
}
th, td { padding: 11px 14px; }
/* Воздух у краёв таблицы — строка не липнет к рамке. */
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
td { line-height: 1.45; }
th {
  font-weight: 750;
  letter-spacing: .07em;
  color: #9fb0ff;
  /* Линия под шапкой ярче обычной — она отделяет заголовки, а не строки. */
  border-bottom: 1px solid rgba(128,144,255,.28);
}
/* Чётные строки чуть светлее: глаз держит строку при длинном списке. */
tbody tr:nth-child(even) td { background: rgba(255,255,255,.022); }
tr:hover td { background: rgba(128,144,255,.07); }
/* Числовая колонка: моноширинные цифры, выключка вправо — разряды
   выстраиваются друг под другом. */
td.num, th.num, td.money, th.money {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
/* Второстепенное в строке — приглушённое и мельче основного. */
td small, td .muted { font-size: 12.5px; color: var(--muted); }
