:root {
  --bg: #05060a;
  --panel: #0a0c12;
  --panel-2: #10141c;
  --panel-3: #171c27;
  --panel-hover: #141922;
  --border: #1c2230;
  --border-2: #28303f;
  --text: #eef1f7;
  --text-dim: #98a2b5;
  --text-faint: #626d82;
  --accent: #4d70ef;
  --accent-2: #85a0ff;
  --accent-rgb: 77, 112, 239;
  --accent-soft: rgba(var(--accent-rgb), 0.14);
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --steam: #1b2838;
  --steam-text: #66c0f4;
  --green: #3ddc84;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --dock-bg: rgba(8, 9, 13, 0.8);
  --shell-top: 62px;
  --shell-y: 18px;
}

html[data-theme="halloween"] {
  --dock-bg: rgba(12, 8, 18, 0.78);
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(var(--accent-rgb), 0.4);
  color: #fff;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(760px 520px at 10% -10%, rgba(var(--accent-rgb), 0.16), transparent 62%),
    radial-gradient(720px 560px at 104% -8%, rgba(56, 189, 248, 0.1), transparent 60%),
    radial-gradient(900px 620px at 50% 120%, rgba(var(--accent-rgb), 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  z-index: 0;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #1e1e26;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2c2c36;
}

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  color: var(--text);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease, box-shadow 0.2s ease;
  user-select: none;
}
.btn:hover {
  border-color: #3d3d4a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-discord {
  background: linear-gradient(180deg, #6a76ff, var(--discord));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover {
  background: linear-gradient(180deg, #5b67f5, var(--discord-hover));
  box-shadow: 0 12px 34px rgba(88, 101, 242, 0.45);
}

.btn-steam {
  background: linear-gradient(120deg, #1b2838 0%, #2a475e 60%, #1b2838 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(42, 71, 94, 0.35);
}
.btn-steam:hover {
  background: linear-gradient(120deg, #223142 0%, #35576f 60%, #223142 100%);
}

.btn-accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.32);
}
.btn-accent:hover {
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.48);
}

.btn-discord,
.btn-accent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-discord::after,
.btn-accent::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-22deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn-discord:hover::after,
.btn-accent:hover::after {
  left: 130%;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-ghost {
  background: transparent;
}
.btn-ghost:hover {
  background: var(--panel-2);
  border-color: var(--border-2);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------------- Логотип ---------------- */
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: radial-gradient(120% 120% at 30% 0%, #1c1c24, #0a0a0d);
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(var(--accent-rgb), 0.45));
}

/* ---------------- Страница входа ---------------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: linear-gradient(180deg, rgba(20, 20, 25, 0.92), var(--panel));
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 42px 34px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  position: relative;
  overflow: hidden;
  animation: rise 0.5s ease both;
}
.login-card .brand {
  margin-bottom: 30px;
}
.login-card .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(var(--accent-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.9;
}
.login-card::after {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), transparent);
  pointer-events: none;
}
.login-footer {
  margin-top: 26px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
}
.login-footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.login-footer a:hover {
  color: var(--accent-2);
  border-bottom-color: rgba(var(--accent-rgb), 0.55);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 26px;
}
.brand h1 {
  font-size: 21px;
  margin: 0;
  letter-spacing: 0.4px;
  background: linear-gradient(180deg, #fff, #c9c9d2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-actions .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}
.login-actions .btn svg {
  width: 20px;
  height: 20px;
}

.alert {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: #aebeff;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}
.alert.show {
  display: block;
}

/* ---------------- Dashboard ---------------- */
.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .brand {
  margin: 0;
  gap: 11px;
}
.topbar .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.topbar .brand h1 {
  font-size: 16px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  padding-bottom: 104px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Левая колонка: профиль + цель банов */
.side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 80px;
  align-self: start;
}
.side-col .sidebar,
.side-col .goal-panel {
  position: static;
  top: auto;
}

.panel {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.6), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Sidebar */
.sidebar {
  padding: 24px 22px;
  position: sticky;
  top: 80px;
  overflow: hidden;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 84px;
  background: radial-gradient(220px 90px at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.profile-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.avatar-frame {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), #3b4792 75%);
  margin-bottom: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 24px rgba(var(--accent-rgb), 0.35);
}
.avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-2);
  display: block;
}
.profile-name {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  word-break: break-word;
  max-width: 100%;
}
.profile-id {
  font-size: 12px;
  color: var(--text-faint);
  font-family: "Consolas", "SFMono-Regular", monospace;
  margin-bottom: 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.4;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 4px;
  min-height: 26px;
}
.role-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: #9eb4ff;
}
.role-chip.role-admin {
  background: rgba(236, 118, 14, 0.14);
  border-color: rgba(236, 118, 14, 0.5);
  color: #ec760e;
}
.role-chip.role-admin-plus {
  background: rgba(255, 176, 0, 0.14);
  border-color: rgba(255, 176, 0, 0.5);
  color: #ffb000;
}
.role-chip.role-mlmoder {
  background: rgba(226, 187, 109, 0.14);
  border-color: rgba(226, 187, 109, 0.5);
  color: #e2bb6d;
}
.role-chip.role-moder {
  background: rgba(231, 82, 136, 0.14);
  border-color: rgba(231, 82, 136, 0.5);
  color: #e75288;
}
.role-chip.muted {
  background: var(--panel-2);
  border-color: var(--border-2);
  color: var(--text-dim);
}

.stats-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-faint);
  margin: 20px 0 11px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  text-align: left;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.stat:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-1px);
}
.stat .k {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.stat .v {
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.side-unlink {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.side-switch {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
  gap: 8px;
}

.side-switch img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 5px;
}

/* Goal panel (Цель банов) */
.goal-panel {
  padding: 20px 18px;
  position: sticky;
  top: 80px;
}
.goal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.goal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.goal-field span {
  font-size: 12px;
  color: var(--text-dim);
}
.goal-input {
  width: 100%;
  padding: 9px 11px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: rgba(8, 8, 12, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.goal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.goal-start {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.goal-error {
  margin-top: 10px;
  font-size: 12px;
  color: #ff6b6b;
}
.goal-progress {
  display: flex;
  flex-direction: column;
}
.goal-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.goal-count {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.6), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
}
.goal-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}
.goal-lbl {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.goal-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}
.goal-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7d9bff);
  transition: width 0.4s ease;
}
.goal-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 8px;
}
.goal-stat::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  align-self: stretch;
  min-height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.goal-status {
  margin: 4px 0 14px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--panel-2);
}
.goal-status.done {
  color: #57f287;
  border-color: rgba(87, 242, 135, 0.4);
  background: rgba(87, 242, 135, 0.08);
}
.goal-status.late {
  color: #ed4245;
  border-color: rgba(237, 66, 69, 0.4);
  background: rgba(237, 66, 69, 0.08);
}
.goal-status.ok {
  color: var(--text-dim);
}
.goal-clear {
  width: 100%;
  justify-content: center;
}

/* Main */
.main {
  min-width: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.6), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 16px;
}
.tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
  position: relative;
}
.tab:hover {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border);
}
.tab.active {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.06));
  border-color: rgba(var(--accent-rgb), 0.45);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.badge {
  display: inline-block;
  min-width: 20px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fade 0.25s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toolbar-note {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.2px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.reg-card {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.5), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
  animation: fade 0.3s ease both;
}
.reg-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.reg-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}
.reg-card:hover::before {
  opacity: 1;
}
.reg-card .rc-avatar {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  flex: none;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease;
}
.reg-card:hover .rc-avatar {
  border-color: rgba(var(--accent-rgb), 0.6);
}
.reg-card .rc-body {
  min-width: 0;
  flex: 1;
}
.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.rc-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.rc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
}
.rc-title .rc-name {
  flex: 0 1 auto;
}
.modal-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.modal-name-row h3 {
  margin-bottom: 0;
}
.role-slot:empty {
  display: none;
}
.role-badge {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  outline: none;
  cursor: default;
}
.role-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.role-tip {
  position: fixed;
  z-index: 200;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0c0e16;
  color: #eef1f7;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}
.role-tip.show {
  opacity: 1;
}
.age-pill {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(55, 214, 122, 0.12);
  color: var(--green);
  border: 1px solid rgba(55, 214, 122, 0.3);
}
.age-pill.warn {
  background: rgba(255, 193, 7, 0.12);
  color: #ffd35c;
  border-color: rgba(255, 193, 7, 0.3);
}
.rc-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.rc-meta .mono {
  font-family: "Consolas", monospace;
  color: var(--text-faint);
}
.rc-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}
.rc-actions .btn {
  flex: 0 1 auto;
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------------- Нарушения ---------------- */
.viol-card {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.5), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  gap: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
  animation: fade 0.3s ease both;
}
.viol-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.viol-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
}
.viol-card.open {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}
.viol-card.open::before {
  opacity: 1;
}
.viol-card .rc-avatar {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  flex: none;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.reason-pill {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: #9eb4ff;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}
.result-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(55, 214, 122, 0.12);
  color: var(--green);
  border: 1px solid rgba(55, 214, 122, 0.3);
}
.viol-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s ease;
  user-select: none;
}
.viol-card:hover .viol-link,
.viol-card.open .viol-link {
  color: #9eb4ff;
}
.viol-chev {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 11px;
  color: var(--text-faint);
}
.viol-card.open .viol-chev {
  transform: rotate(90deg);
}

/* Чат репорта */
.viol-chat {
  display: none;
}
.viol-card.open .viol-chat {
  display: block;
  animation: fade 0.2s ease both;
}
.chat {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.chat-count {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.chat-loading {
  margin-top: 14px;
  padding: 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.chat-loading .spinner {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
}
.chat-retry {
  margin-top: 10px;
}
.chat-retry .btn {
  font-size: 13px;
  padding: 7px 16px;
}
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.chat-bubble {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-bubble.team {
  border-left: 3px solid rgba(55, 214, 122, 0.45);
}
.chat-who {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.chat-who-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.chat-name {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.chat-name.intruder {
  color: #9eb4ff;
}
.chat-time {
  font-size: 11px;
  color: var(--text-faint);
  flex: none;
}
.chat-text {
  white-space: pre-wrap;
}
.chat-empty {
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  padding: 18px;
}

/* Подсветка найденных слов (мат) */
.hl-word {
  background: rgba(245, 196, 81, 0.2);
  color: #ffd98a;
  border-bottom: 1.5px solid rgba(245, 196, 81, 0.85);
  border-radius: 4px;
  padding: 0 2px;
  margin: 0 1px;
}

.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px dashed rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius);
  animation: fade 0.3s ease both;
}
.empty::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d70ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='M16.8 16.8 21 21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.75;
}
.empty h3 {
  color: var(--text);
  margin: 0;
  font-size: 18px;
}

.dev-box {
  text-align: center;
  padding: 66px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dev-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 10px 24px rgba(var(--accent-rgb), 0.4));
}
.dev-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.dev-box p {
  color: var(--text-dim);
  margin: 0;
  font-size: 14px;
}

.loading {
  padding: 50px;
  text-align: center;
  color: var(--text-dim);
}
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Centered page (Топы / ошибки) */
.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.center-card {
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.9), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 46px 36px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
  position: relative;
  overflow: hidden;
}
.center-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}
.center-card .dev-logo {
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
}
.center-card h2 {
  margin: 0 0 26px;
  font-size: 24px;
}


.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: var(--dock-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 120;
  animation: dockRise 0.5s ease both;
}

.dock::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 72%;
  height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(var(--accent-rgb), 0.35), transparent 72%);
  filter: blur(11px);
  pointer-events: none;
  z-index: -1;
}
@keyframes dockRise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dock-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.14s ease,
    box-shadow 0.2s ease;
}
.dock-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.18s ease, color 0.16s ease;
}
.dock-btn:hover {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.13);
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42), 0 0 22px rgba(var(--accent-rgb), 0.22);
}
.dock-btn:hover svg {
  color: var(--accent-2);
  transform: scale(1.12);
}
.dock-btn:active {
  transform: translateY(-1px) scale(0.98);
}
.dock-btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.dock-sep {
  width: 1px;
  height: 26px;
  margin: 0 5px;
  background: linear-gradient(180deg, transparent, var(--border-2), transparent);
}

.dock-danger:hover {
  color: #ff9a9a;
  background: rgba(255, 86, 86, 0.14);
  border-color: rgba(255, 86, 86, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 22px rgba(255, 86, 86, 0.25);
}
.dock-danger:hover svg {
  color: #ff9a9a;
}

/* Активный пункт меню */
.dock-btn.is-active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.12));
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34), 0 0 20px rgba(var(--accent-rgb), 0.2);
}
.dock-btn.is-active svg {
  color: var(--accent-2);
}
.dock-btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--accent-2);
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.9);
}

/* Переключатель темы (Хэллоуин / Обычная) */
.dock-theme .theme-switch {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 19px;
  padding: 0 2px;
  border-radius: 999px;
  background: var(--panel-3);
  border: 1px solid var(--border-2);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.dock-theme .theme-knob {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-dim);
  transform: translateX(0);
  transition: transform 0.22s cubic-bezier(0.3, 0.9, 0.3, 1.25), background 0.2s ease, box-shadow 0.2s ease;
}
.dock-theme:hover .theme-switch {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.25);
}
html[data-theme="halloween"] .dock-theme .theme-switch {
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.55), rgba(255, 122, 24, 0.2));
  border-color: rgba(255, 122, 24, 0.55);
}
html[data-theme="halloween"] .dock-theme .theme-knob {
  transform: translateX(15px);
  background: #ffb347;
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.65);
}
html[data-theme="normal"] .dock-theme .theme-knob {
  background: var(--accent-2);
  box-shadow: 0 0 9px rgba(var(--accent-rgb), 0.55);
}
.dock-theme .theme-label,
.dock-theme #themeLabel {
  font-variant: small-caps;
  letter-spacing: 0.3px;
}

.toast {
  bottom: 104px;
}

/* Узкие экраны/планшеты: только иконки, чтобы док не вылезал за экран */


/* ---------- Карточка «Аккаунты связаны» ---------- */
.link-accounts {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 36px 28px 28px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, #0f1220 0%, #1a1d2e 50%, #0f1220 100%);
  border: 1px solid var(--border-2);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--accent-rgb), 0.1);
  animation: laIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes laIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.link-accounts::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  border-radius: 1px;
  opacity: 0.6;
  background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb)), transparent);
}

.la-head-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: rgb(var(--accent-rgb));
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.45));
  animation: laPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.la-head-icon svg {
  width: 100%;
  height: 100%;
}
@keyframes laPop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.la-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
}
.la-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 24px;
}

.la-account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.la-account.la-discord:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 101, 242, 0.5);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.14), rgba(88, 101, 242, 0.05));
}
.la-account.la-steam:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.5);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.05));
}

.la-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--border-2);
  background: var(--panel-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.la-info {
  min-width: 0;
}
.la-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.la-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.la-id {
  font-size: 11px;
  font-family: "Consolas", "SF Mono", "Menlo", monospace;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.la-chain {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.la-chain-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--accent-rgb));
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}
.la-chain-circle svg {
  width: 20px;
  height: 20px;
}

.la-warning {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  text-align: left;
  margin-top: 20px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.22);
  border-left: 4px solid #ff6b6b;
}
.la-warning-icon {
  font-size: 17px;
  line-height: 1.25;
  flex: none;
  color: #ff6b6b;
}
.la-warning-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.la-warning-text strong {
  display: block;
  margin-bottom: 4px;
  color: #ff6b6b;
}

.la-confirm {
  width: 100%;
  margin-top: 20px;
}
/* --- 2. Панель: сайдбар + три колонки ---------------------------------- */
.layout {
  grid-template-columns: 330px minmax(0, 1fr);
  gap: var(--shell-y);
  align-items: start;
}
.side-col {
  top: calc(var(--shell-top) + var(--shell-y));
}

.main.feeds-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.feeds-col .feed-section {
  height: 100%;
  max-height: min(68vh, 700px);
  margin-bottom: 0;
}
/* На широких экранах разделы идут сеткой 2×2: всё видно сразу, без вкладок. */
@media (min-width: 900px) {
  .main.feeds-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.feeds-col .section-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-gutter: stable;
}
.feeds-col .section-body::-webkit-scrollbar {
  width: 10px;
}
.feeds-col .section-body::-webkit-scrollbar-track {
  background: transparent;
}
.feeds-col .section-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
.feeds-col .section-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
  background-clip: padding-box;
}

@media (max-width: 1080px) {
  .page-hero-inner { padding: 18px 18px; }
  .layout { grid-template-columns: 1fr; }
  .side-col,
  .tops-profile {
    position: static;
    top: auto;
  }
}

/* =====================================================================
   REDESIGN v2 — визуальная доводка (карточки, сайдбар, типографика, мобайл)
   ===================================================================== */

/* --- Типографика --- */
.section-title {
  font-size: 15.5px;
  letter-spacing: 0.2px;
}
.rc-name {
  font-size: 15px;
}
.rc-meta {
  font-size: 12px;
}

/* --- Разделы (колонки панели) --- */
.feed-section .section-head {
  padding: 15px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(14, 14, 20, 0.55);
}
.feeds-col .section-body {
  padding: 14px;
}
.feeds-col .cards {
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 10px;
}

/* --- Карточки элементов --- */
.reg-card,
.viol-card {
  border-radius: 14px;
  padding: 14px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 55%), var(--panel);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.22s ease;
}
.reg-card:hover,
.viol-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}
.reg-card .rc-avatar,
.viol-card .rc-avatar {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.reg-card:hover .rc-avatar,
.viol-card:hover .rc-avatar {
  border-color: rgba(var(--accent-rgb), 0.6);
}

.rc-head {
  gap: 8px;
}
.rc-meta {
  margin-top: 6px;
  gap: 4px 10px;
  line-height: 1.5;
}
.rc-actions {
  margin-top: 11px;
  gap: 7px;
}

/* Единый вид пилюль/чипов */
.age-pill,
.reason-pill,
.ticket-pill,
.ob-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

/* --- Проектные блоки (баны с других проектов) --- */
.ob-block {
  border-radius: 11px;
  padding: 9px 11px;
}

/* --- Пустые состояния --- */
.empty {
  border-radius: 14px;
}
.empty h3 {
  font-size: 15px;
}

/* --- Сайдбар / профиль --- */
.sidebar {
  padding: 22px 20px;
}
.avatar-frame {
  width: 108px;
  height: 108px;
  margin-bottom: 14px;
}
.stats-title {
  margin: 18px 0 10px;
  padding-top: 14px;
}
.stats-grid {
  gap: 10px;
}
.stat {
  border-radius: 12px;
  padding: 11px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--panel-2);
}

/* --- Кнопки: мягче геометрия --- */
.btn-sm {
  border-radius: 10px;
}

/* --- Мобильный --- */
@media (max-width: 720px) {
  .sidebar {
    padding: 18px 16px;
  }
  .feeds-col .section-body {
    padding: 12px;
  }
  .reg-card,
  .viol-card {
    padding: 12px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Заглушка «Топы»: доступ один раз в воскресенье --- */
.tops-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 520px;
  margin: clamp(24px, 6vh, 64px) auto;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--panel-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.tops-locked-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.tops-locked-ico svg {
  width: 38px;
  height: 38px;
}

.tops-locked-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text);
}

.tops-locked-text {
  margin: 0 0 6px;
  max-width: 42ch;
  color: var(--text-dim);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .tops-locked {
    margin: 18px auto;
  }
}

/* =====================================================================
   ВОССТАНОВЛЕНИЕ (реконструкция после повреждения)
   ===================================================================== */

/* ---------------- Утилиты ---------------- */
.mono {
  font-family: "Consolas", "SFMono-Regular", monospace;
  letter-spacing: 0.2px;
}
.clickable {
  cursor: pointer;
}
.empty-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-faint);
}
.empty-sub::before {
  display: none;
}
.badge-warn {
  background: rgba(255, 158, 68, 0.16);
  color: #ffb26b;
  border: 1px solid rgba(255, 158, 68, 0.4);
  box-shadow: none;
}
.btn-danger {
  background: linear-gradient(180deg, rgba(226, 87, 87, 0.9), rgba(190, 55, 55, 0.9));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(214, 69, 69, 0.3);
}
.btn-danger:hover {
  box-shadow: 0 10px 28px rgba(214, 69, 69, 0.45);
}

/* ---------------- Разделы / фиды ---------------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
  min-width: 0;
}
.section-head > .btn {
  flex: 0 0 auto;
}
.section-body {
  padding: 14px;
}
.sec-ico {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--accent-2);
}
.sec-ico svg {
  width: 18px;
  height: 18px;
}
.sec-ico.green {
  color: var(--green);
  background: rgba(63, 199, 122, 0.12);
  border-color: rgba(63, 199, 122, 0.4);
}
.sec-ico.pink {
  color: #ff7ad9;
  background: rgba(255, 122, 217, 0.12);
  border-color: rgba(255, 122, 217, 0.4);
}
.sec-ico.warn {
  color: #ffb26b;
  background: rgba(255, 158, 68, 0.14);
  border-color: rgba(255, 158, 68, 0.42);
}

.feed-section {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.6), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  margin-bottom: 16px;
}
.feed-section:last-child {
  margin-bottom: 0;
}

.feed-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  flex: 1;
}
.feed-search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.feed-search svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-faint);
}
.feed-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
}
.feed-search-input::placeholder {
  color: var(--text-faint);
}
.feed-search-ico {
  color: var(--text-faint);
  display: inline-flex;
  flex: none;
}
.feed-no-match {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 22px 12px;
}

/* ---------------- Поиск и проверка игрока (строчка под профилем) ---------------- */
.psearch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.psearch:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}
.psearch-ico {
  display: inline-flex;
  flex: none;
  color: var(--text-faint);
}
.psearch-ico svg {
  width: 15px;
  height: 15px;
}
.psearch-input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.psearch-input::placeholder {
  color: var(--text-faint);
}
.psearch-input::-webkit-search-cancel-button {
  display: none;
}
.psearch-btn {
  flex: none;
  height: 28px;
  padding: 0 11px;
  font-size: 12.5px;
}
.rc-roles {
  justify-content: flex-start;
  margin: 9px 0 0;
  min-height: 0;
  gap: 6px;
}
.rc-roles .role-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------------- Результаты поиска ---------------- */
.search-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.search-item:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}
.search-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  object-fit: cover;
  background: var(--panel);
  border: 1px solid var(--border);
}
.search-info {
  flex: 1;
  min-width: 0;
}
.search-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-info .rc-roles {
  margin-top: 6px;
}
.search-go {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-2);
  opacity: 0.85;
}
.search-item:hover .search-go {
  opacity: 1;
}

/* ---------------- Проверка игрока ---------------- */
.modal-lg {
  width: min(860px, 100%);
}
.check-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.check-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
}
.check-badge.ok {
  color: #79d99b;
  border-color: rgba(80, 200, 130, 0.35);
  background: rgba(80, 200, 130, 0.1);
}
.check-badge.warn {
  color: #e8b866;
  border-color: rgba(232, 184, 102, 0.35);
  background: rgba(232, 184, 102, 0.1);
}
.check-badge.bad {
  color: #ff8f8f;
  border-color: rgba(255, 110, 110, 0.4);
  background: rgba(255, 110, 110, 0.12);
}
.check-badge.muted {
  color: var(--text-faint);
}
.check-sec {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel-2);
}
.check-sec h4 {
  margin: 0 0 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.check-rows {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 13px;
}
.check-k {
  color: var(--text-faint);
}
.check-v {
  color: var(--text);
  overflow-wrap: anywhere;
}
.check-empty {
  font-size: 12.5px;
  color: var(--text-faint);
}
.check-note {
  margin-bottom: 8px;
  font-size: 11.5px;
  color: var(--text-faint);
}
.check-sub {
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}
.check-sub:first-child {
  margin-top: 0;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-item {
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  font-size: 12.5px;
}
.check-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.check-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.check-item-reason {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.check-item-meta {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-faint);
}
.alt-list {
  gap: 10px;
}
.check-alt-item {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.check-alt-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--panel-3);
}
.check-alt-main {
  flex: 1 1 180px;
  min-width: 0;
}
.check-alt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.check-alt-item .check-open {
  margin-left: auto;
  align-self: center;
}
.ev-card-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ev-card-clickable:hover {
  border-color: var(--accent);
}
.ev-card-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .check-alt-item .check-open {
    width: 100%;
    margin-left: 0;
  }
}
.check-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.check-pill.ban {
  color: #ff8f8f;
  border-color: rgba(255, 110, 110, 0.4);
}
.check-pill.mute {
  color: #e8b866;
  border-color: rgba(232, 184, 102, 0.35);
}
.check-pill.live {
  color: #ff8f8f;
  border-color: rgba(255, 110, 110, 0.45);
  background: rgba(255, 110, 110, 0.12);
}
.check-pill.past {
  color: var(--text-faint);
}
.check-open {
  margin-top: 7px;
}
.check-errors {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(232, 184, 102, 0.3);
  border-radius: 12px;
  background: rgba(232, 184, 102, 0.07);
  font-size: 12px;
  color: #e8b866;
}
.check-foot {
  padding-top: 4px;
  font-size: 11px;
  color: var(--text-faint);
  text-align: right;
}

@media (max-width: 720px) {
  .main.feeds-col {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }
  .modal-lg {
    width: 100%;
  }
  .check-rows {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .psearch-btn {
    padding: 0 9px;
  }
}

/* ---------------- Фон и украшения всего сайта (включаются темой) ---------------- */
.site-bg,
.site-deco {
  display: none;
}

/* ---------------- Баннер страницы (base, без хэллоуина) ---------------- */
.page-hero {
  position: relative;
  margin: 18px 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1020 url("/assets/img/cover.svg") center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 12, 0.75) 0%, rgba(8, 8, 12, 0.25) 55%, rgba(8, 8, 12, 0.02) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}
.page-hero-mark {
  width: 74px;
  height: 74px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 30% 0%, #1d1d26, #0b0b0f);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.page-hero-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.page-hero h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

/* Декор баннера (base — обычные картинки; хэллоуин переопределяет своими) */
.hero-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.deco-cobweb {
  position: absolute;
  top: 0;
  width: 96px;
  height: 96px;
  background: url("/assets/img/cobweb.svg") center / contain no-repeat;
  opacity: 0.22;
}
.deco-cobweb.tl {
  left: 0;
}
.deco-cobweb.tr {
  right: 0;
  transform: scaleX(-1);
}
.deco-bat {
  position: absolute;
  width: 50px;
  height: 25px;
  background: url("/assets/img/bat.svg") center / contain no-repeat;
  opacity: 0.28;
}
.deco-bat.b1 {
  top: 26px;
  left: 46%;
}
.deco-bat.b2 {
  top: 62px;
  left: 64%;
  width: 36px;
  height: 18px;
}
.deco-spider {
  position: absolute;
  top: 0;
  left: 72%;
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}
.deco-spider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: url("/assets/img/spider.svg") center / contain no-repeat;
  opacity: 0.5;
}
.deco-ghost {
  position: absolute;
  background: url("/assets/img/ghost.svg") center / contain no-repeat;
  opacity: 0.22;
}
.deco-ghost.ghost-calm {
  left: 20%;
  bottom: -8px;
  width: 126px;
  height: 134px;
}
.deco-ghost.ghost-small {
  left: 30%;
  top: 10%;
  width: 56px;
  height: 60px;
  opacity: 0.18;
}
.deco-ghost.ghost-pumpkin {
  left: 60%;
  bottom: 2px;
  width: 74px;
  height: 80px;
  opacity: 0.2;
}

/* ---------- Призраки вокруг страницы входа (base) ---------- */
.login-ghosts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.login-ghosts .ghost {
  position: absolute;
  background: url("/assets/img/ghost.svg") center / contain no-repeat;
  opacity: 0.2;
}
.login-ghosts .ghost-calm {
  left: 6%;
  bottom: 8%;
  width: 130px;
  height: 138px;
}
.login-ghosts .ghost-small {
  right: 9%;
  top: 12%;
  width: 60px;
  height: 64px;
  opacity: 0.16;
}
.login-ghosts .ghost-pumpkin {
  right: 12%;
  bottom: 10%;
  width: 78px;
  height: 84px;
  opacity: 0.18;
}
.login-ghosts .ghost-angry {
  left: 10%;
  top: 12%;
  width: 84px;
  height: 90px;
  opacity: 0.16;
}

@media (max-width: 760px) {
  .deco-ghost.ghost-small,
  .deco-ghost.ghost-pumpkin {
    display: none;
  }
  .login-ghosts {
    display: none;
  }
}

/* ---------------- Модалки ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 4, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.18s ease both;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  width: min(680px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.98), var(--panel));
  border: 1px solid var(--border-2);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  animation: modal-in 0.22s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.modal-sm {
  width: min(460px, 100%);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}
.modal-avatar {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}
.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-title {
  flex: 1;
  min-width: 0;
}
.modal-title h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.modal-sub {
  font-size: 13px;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}
.modal-close {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border-2);
}
.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}
.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 18px;
}
.modal-count {
  font-size: 12px;
  color: var(--text-faint);
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--border);
}
body.modal-open {
  overflow: hidden;
}

/* ---------------- Топы ---------------- */
.tops-page {
  padding: 18px;
  padding-bottom: 104px;
  position: relative;
  z-index: 1;
}
.tops-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tops-profile {
  padding: 22px 20px;
  position: sticky;
  top: 80px;
}
.tops-grid {
  min-width: 0;
}
.tops-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.top-col {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.55), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.top-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}
.top-col-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.top-count {
  min-width: 22px;
  padding: 1px 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}
.top-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 560px;
  overflow-y: auto;
}
.top-empty {
  padding: 26px 14px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--panel-2);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  min-width: 0;
}
.top-row.clickable:hover {
  background: var(--panel-hover, var(--panel-3));
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-1px);
}
.top-row.me {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.04));
}
.top-rank {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
}
.top-rank.gold {
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.3), rgba(255, 168, 40, 0.16));
  border-color: rgba(255, 190, 70, 0.5);
  color: #ffd98a;
}
.top-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-3);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}
.top-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-val {
  flex: none;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.top-open {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-faint);
  transition: color 0.15s ease, background 0.15s ease;
}
.top-open:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.top-open svg {
  width: 15px;
  height: 15px;
}
.tops-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--text-dim);
  font-size: 13px;
}

/* Места в топах (профиль) */
.places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.place-card {
  padding: 11px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--panel-2);
  border: 1px solid var(--border);
  text-align: center;
  min-width: 0;
}
.place-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
}
.place-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.place-rank {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-2);
  margin-top: 2px;
}
.place-cap {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 3px;
}
.place-mutes .place-val { color: #8fb7ff; }
.place-bans .place-val { color: #ff8f8f; }
.place-general .place-val { color: var(--accent-2); }

/* ---------------- Модалка игрока ---------------- */
.pm-modal {
  width: min(760px, 100%);
}
.pm-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}
.pm-side {
  padding: 18px;
  border-right: 1px solid var(--border);
  background: rgba(12, 12, 16, 0.4);
}
.pm-places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.pm-place {
  padding: 10px 9px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  min-width: 0;
  text-align: center;
}
.pm-place-lbl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.pm-place-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}
.pm-place.mutes .pm-place-dot { background: #8fb7ff; }
.pm-place.bans .pm-place-dot { background: #ff8f8f; }
.pm-place.general .pm-place-dot { background: var(--accent); }
.pm-place-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pm-place.mutes .pm-place-val { color: #8fb7ff; }
.pm-place.bans .pm-place-val { color: #ff8f8f; }
.pm-place.general .pm-place-val { color: var(--accent-2); }
.pm-place-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  margin-top: 1px;
}
.pm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-main {
  padding: 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pm-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.pm-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.pm-count {
  font-size: 12px;
  color: var(--text-faint);
}
.pm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 46vh;
  padding-right: 4px;
}
.pm-group {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  padding: 10px 4px 2px;
  animation: fade 0.3s ease both;
}
.pm-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  animation: fade 0.3s ease both;
  min-width: 0;
}
.pm-item.ban { border-left: 3px solid rgba(255, 105, 105, 0.7); }
.pm-item.mute { border-left: 3px solid rgba(143, 183, 255, 0.7); }
.pm-ava {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel-3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dim);
}
.pm-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-ava.is-letter {
  color: var(--accent-2);
}
.pm-item-body {
  flex: 1;
  min-width: 0;
}
.pm-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-item-meta {
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-item-right {
  flex: none;
  text-align: right;
}
.pm-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 3px;
}
.pm-tag.ban {
  background: rgba(255, 105, 105, 0.16);
  color: #ff9d9d;
  border: 1px solid rgba(255, 105, 105, 0.35);
}
.pm-tag.mute {
  background: rgba(143, 183, 255, 0.16);
  color: #a9c4ff;
  border: 1px solid rgba(143, 183, 255, 0.35);
}
.pm-item-date {
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.pm-note {
  padding: 22px 12px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------------- Отслеживание ---------------- */
.tracking-page {
  padding: 18px;
  padding-bottom: 104px;
  position: relative;
  z-index: 1;
}
.access-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.access-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--panel);
  border: 1px solid var(--border);
  min-width: 0;
  text-align: center;
}
.access-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.access-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.access-stat.is-env .access-stat-value { color: #8fb7ff; }
.access-stat.is-custom .access-stat-value { color: var(--accent-2); }

.tracking-add,
.access-add,
.tracking-toolbar,
.access-toolbar,
.links-head {
  margin-bottom: 16px;
}
.tracking-add-head,
.access-add-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px 0;
}
.tracking-add-text,
.access-add-text {
  min-width: 0;
}
.tracking-add-title,
.access-add-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.tracking-add-sub,
.access-add-sub {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 2px;
}
.tracking-form,
.access-form {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
  flex-wrap: wrap;
}
.tracking-input,
.access-input {
  flex: 1;
  min-width: 220px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tracking-input::placeholder,
.access-input::placeholder {
  color: var(--text-faint);
}
.tracking-input:focus,
.access-input:focus {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.tracking-error,
.access-error {
  margin: 0 18px 16px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(255, 105, 105, 0.12);
  border: 1px solid rgba(255, 105, 105, 0.35);
  color: #ff9d9d;
  font-size: 13px;
}
.tracking-error[hidden],
.access-error[hidden] {
  display: none;
}

.tracking-toolbar,
.access-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tracking-search,
.access-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 12px;
  flex: 1;
  min-width: 240px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tracking-search:focus-within,
.access-search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.tracking-search svg,
.access-search svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-faint);
}
.tracking-search input,
.access-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
}
.tracking-search input::placeholder,
.access-search input::placeholder {
  color: var(--text-faint);
}
.tracking-toolbar-right,
.access-toolbar-right,
.links-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tracking-count,
.access-count,
.links-count {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* На странице отслеживания Fear лента событий убрана — список на всю ширину.
   У Yooma-страницы остаются две колонки. */
.tracking-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
body[data-track="fear"] .tracking-cols {
  grid-template-columns: minmax(0, 1fr);
}
.tracking-col {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.55), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
}
.tracking-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.tracking-col-clear {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tracking-col-clear:hover {
  background: var(--panel-3);
  color: var(--text);
  border-color: var(--border-2);
}
.tracking-list,
.tracking-events {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-gutter: stable;
}
.tracking-list > .loading,
.tracking-events > .loading,
.tracking-list > .empty,
.tracking-events > .empty {
  margin: 0;
}

/* Карточка отслеживаемого */
.tr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 55%), var(--panel-2);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
  animation: fade 0.3s ease both;
  min-width: 0;
  overflow: hidden;
}
.tr-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.15s ease;
}
.tr-card.is-online::before {
  background: linear-gradient(180deg, var(--green), rgba(63, 199, 122, 0.15));
  box-shadow: 0 0 14px rgba(63, 199, 122, 0.45);
}
.tr-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.tr-card.is-online {
  border-color: rgba(63, 199, 122, 0.35);
}
.tr-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px 11px;
  min-width: 0;
}
.tr-ava-wrap {
  position: relative;
  flex: none;
  align-self: start;
}
.tr-ava,
.tr-ava-fb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--panel-3);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-2);
}
.tr-ava-fb {
  text-transform: uppercase;
}
.tr-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--panel-2);
}
.tr-dot.is-on { background: var(--green); box-shadow: 0 0 10px rgba(63, 199, 122, 0.7); }
.tr-dot.is-off { background: #6b6b78; }
.tr-body {
  flex: 1;
  min-width: 0;
}
.tr-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  min-width: 0;
}
.tr-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}
.tr-name:hover { color: var(--accent-2); }
.tr-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--panel-3);
  color: var(--text-faint);
}
.tr-status.is-on {
  color: var(--green);
  border-color: rgba(63, 199, 122, 0.4);
  background: rgba(63, 199, 122, 0.12);
}
.tr-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.tr-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
  max-width: 100%;
}
.tr-chip-server {
  white-space: normal;
  overflow-wrap: anywhere;
}
.tr-chip-lbl { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(var(--accent-rgb), 0.4); }
.tr-chip-on { background: rgba(63, 199, 122, 0.14); color: var(--green); border-color: rgba(63, 199, 122, 0.4); }
.tr-chip-off { background: rgba(255, 255, 255, 0.04); color: var(--text-faint); }
.tr-chip-server { background: rgba(143, 183, 255, 0.12); color: #a9c4ff; border-color: rgba(143, 183, 255, 0.35); }
.tr-chip-ban { background: rgba(255, 105, 105, 0.14); color: #ff9d9d; border-color: rgba(255, 105, 105, 0.4); }
.tr-chip-other { background: rgba(255, 158, 68, 0.14); color: #ffb26b; border-color: rgba(255, 158, 68, 0.4); }
.tr-chip-ticket { background: rgba(255, 217, 138, 0.14); color: #ffd98a; border-color: rgba(255, 217, 138, 0.4); }
.tr-idline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  min-width: 0;
}
.tr-id {
  font-size: 12px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tr-copy {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel-3);
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tr-copy:hover { color: var(--text); border-color: var(--border-2); }
.tr-copy svg { width: 13px; height: 13px; }
.tr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.tr-chips:last-child {
  margin-bottom: 0;
}
.tr-meta {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 9px;
}
.tr-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 13px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
}
.tr-actions .btn {
  flex: 0 1 auto;
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.tr-actions .tr-remove {
  margin-left: auto;
}
.tr-pun-toggle.is-open {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent-2);
}

/* Наказания в карточке отслеживания */
.tr-card > .tr-pun {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.tr-pun {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tr-pun[hidden] { display: none; }
.tr-pun-head {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  padding: 6px 2px 2px;
}
.tr-pun-empty {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 14px 8px;
}
.tr-pun-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  min-width: 0;
}
.tr-pun-item.is-ban { border-left: 3px solid rgba(255, 105, 105, 0.7); }
.tr-pun-item.is-mute { border-left: 3px solid rgba(143, 183, 255, 0.7); }
.tr-pun-tag {
  flex: none;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
}
.tr-pun-tag.is-ban { background: rgba(255, 105, 105, 0.16); color: #ff9d9d; }
.tr-pun-tag.is-mute { background: rgba(143, 183, 255, 0.16); color: #a9c4ff; }
.tr-pun-body {
  flex: 1;
  min-width: 0;
}
.tr-pun-meta {
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tr-pun-date {
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.tr-pun-active {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(63, 199, 122, 0.14);
  border: 1px solid rgba(63, 199, 122, 0.4);
  border-radius: 20px;
  padding: 1px 8px;
}

/* Лента событий */
.tr-ev {
  display: flex;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  animation: fade 0.3s ease both;
  min-width: 0;
}
.tr-ev-ico {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tr-ev-ico svg { width: 16px; height: 16px; }
.tr-ev-online .tr-ev-ico { color: var(--green); border-color: rgba(63, 199, 122, 0.4); background: rgba(63, 199, 122, 0.12); }
.tr-ev-fear_ban .tr-ev-ico, .tr-ev-other_ban .tr-ev-ico { color: #ff9d9d; border-color: rgba(255, 105, 105, 0.4); background: rgba(255, 105, 105, 0.12); }
.tr-ev-ticket .tr-ev-ico { color: #ffd98a; border-color: rgba(255, 217, 138, 0.4); background: rgba(255, 217, 138, 0.12); }
.tr-ev-body {
  flex: 1;
  min-width: 0;
}
.tr-ev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}
.tr-ev-type {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-faint);
}
.tr-ev-time {
  flex: none;
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.tr-ev-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.tr-ev-text {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.tr-ev-field {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.tr-ev-flabel {
  color: var(--text-faint);
}

/* ---------------- Доступ ---------------- */
.access-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.access-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 55%), var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
  animation: fade 0.3s ease both;
  min-width: 0;
}
.access-row:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-1px);
}
.access-row.is-env {
  background: linear-gradient(180deg, rgba(143, 183, 255, 0.05), rgba(255, 255, 255, 0)), var(--panel);
}
.access-ava {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--panel-3);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-2);
  text-transform: uppercase;
}
.access-ava.is-owner {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.12));
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.3);
}
.access-info {
  flex: 1;
  min-width: 0;
}
.access-namewrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.access-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.access-name.muted { color: var(--text-faint); font-weight: 600; }
.access-tag {
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}
.access-tag.owner { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(var(--accent-rgb), 0.4); }
.access-tag.env { background: rgba(143, 183, 255, 0.12); color: #a9c4ff; border-color: rgba(143, 183, 255, 0.35); }
.access-tag.file { background: rgba(63, 199, 122, 0.12); color: var(--green); border-color: rgba(63, 199, 122, 0.35); }
.access-idline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.access-id {
  font-size: 12px;
  color: var(--text-faint);
}
.access-copy {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel-3);
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.access-copy:hover { color: var(--text); border-color: var(--border-2); }
.access-copy svg { width: 13px; height: 13px; }
.access-meta {
  font-size: 12px;
  color: var(--text-faint);
}
.access-right {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.access-lock {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-faint);
}
.access-lock svg { width: 15px; height: 15px; }

/* Выбор страниц, к которым выдан доступ */
.access-form {
  flex-direction: column;
  align-items: stretch;
}
.access-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.access-form-row .access-input {
  flex: 1;
  min-width: 220px;
}
.access-pages-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.access-pages-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-faint);
}
.page-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.page-check:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--text);
}
.page-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.page-check.is-locked {
  opacity: 0.65;
  cursor: default;
}
.page-check.is-locked input {
  cursor: default;
}
.access-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.access-pages .page-check {
  padding: 3px 8px 3px 7px;
  font-size: 11.5px;
}
.access-pages .page-check input {
  width: 13px;
  height: 13px;
}

/* Прячем ссылки на разделы, к которым у аккаунта нет доступа */
body[data-pages]:not([data-pages~="yooma"]) a[href="/yooma"],
body[data-pages]:not([data-pages~="fear"]) a[href="/app"] {
  display: none !important;
}

/* ---------------- Привязки ---------------- */
.links-page {
  padding: 18px;
  padding-bottom: 104px;
  position: relative;
  z-index: 1;
}
.links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.links-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 12px;
  flex: 1;
  min-width: 260px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.links-search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.links-search svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-faint);
}
.links-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
}
.links-search input::placeholder { color: var(--text-faint); }
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lk-card {
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 55%), var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
  animation: fade 0.3s ease both;
  min-width: 0;
}
.lk-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-1px);
}
.lk-accounts {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.lk-acc {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  min-width: 0;
}
.lk-acc.discord { border-left: 3px solid rgba(88, 101, 242, 0.6); }
.lk-acc.steam { border-left: 3px solid rgba(102, 192, 244, 0.6); }
.lk-ava {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  overflow: hidden;
  background: var(--panel-3);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-2);
}
.lk-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lk-ava.is-letter { text-transform: uppercase; }
.lk-ava-discord { border-color: rgba(88, 101, 242, 0.45); }
.lk-ava-steam { border-color: rgba(102, 192, 244, 0.45); }
.lk-acc-body {
  flex: 1;
  min-width: 0;
}
.lk-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.lk-badge-discord { background: rgba(88, 101, 242, 0.16); color: #a9b2ff; border: 1px solid rgba(88, 101, 242, 0.4); }
.lk-badge-steam { background: rgba(102, 192, 244, 0.16); color: #9fdcff; border: 1px solid rgba(102, 192, 244, 0.4); }
.lk-acc-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}
.lk-acc-name.muted { color: var(--text-faint); font-weight: 600; }
.lk-acc-id {
  font-size: 12px;
  color: var(--text-faint);
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
a.lk-acc-id:hover { color: var(--accent-2); }
.lk-ext { font-size: 11px; color: var(--text-faint); }
.lk-link {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  color: var(--text-faint);
  align-self: center;
}
.lk-link svg { width: 18px; height: 18px; }
.lk-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}
.lk-date,
.lk-ip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-faint);
}
.lk-date svg { width: 13px; height: 13px; }
.lk-dot { color: var(--text-faint); }
.lk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lk-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px dashed rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius);
}
.lk-empty-icon { font-size: 34px; margin-bottom: 12px; }
.lk-empty-title { font-size: 16px; font-weight: 700; color: var(--text); }
.lk-empty-sub { font-size: 13px; color: var(--text-faint); margin-top: 5px; }

/* ---------------- Другие баны ---------------- */
.ob-card {
  display: block;
}
.ob-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}
.ob-chip.warn { background: rgba(255, 105, 105, 0.14); color: #ff9d9d; border-color: rgba(255, 105, 105, 0.4); }
.ob-chip.ok { background: rgba(63, 199, 122, 0.14); color: var(--green); border-color: rgba(63, 199, 122, 0.4); }
.ob-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.ob-block {
  display: block;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-2);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.ob-block:hover { border-color: rgba(var(--accent-rgb), 0.45); background: var(--panel-hover, var(--panel-3)); }
.ob-block.warn { border-left-color: rgba(255, 105, 105, 0.7); }
.ob-block.cyber { border-left-color: rgba(143, 183, 255, 0.7); }
.ob-block.yooma { border-left-color: rgba(255, 217, 138, 0.7); }
.ob-proj {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-faint);
  margin-bottom: 5px;
}
.ob-block-text { font-size: 12.5px; color: var(--text-dim); }
.ob-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ob-state {
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.ob-state.warn { background: rgba(255, 105, 105, 0.16); color: #ff9d9d; border: 1px solid rgba(255, 105, 105, 0.35); }
.ob-state.dead { background: rgba(255, 255, 255, 0.05); color: var(--text-faint); border: 1px solid var(--border); }
.ob-reason {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-date {
  flex: none;
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Мобильные/планшет ---------------- */
@media (max-width: 1080px) {
  .tops-cols { grid-template-columns: 1fr; }
  .tracking-cols { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-side { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 960px) {
  .dock-btn > span:not(.theme-switch) { display: none; }
  .dock-btn { gap: 0; padding: 10px 12px; }
  .dock-sep { margin: 0 4px; }
}
@media (max-width: 720px) {
  .page-hero { margin: 12px 12px 0; }
  .page-hero-inner { padding: 16px 14px; gap: 12px; }
  .page-hero-mark { width: 58px; height: 58px; border-radius: 14px; }
  .page-hero-mark img { width: 34px; height: 34px; }
  .page-hero h2 { font-size: 20px; }
  .tops-page, .tracking-page, .links-page, .admin-page { padding: 12px; padding-bottom: 96px; }
  .tops-layout { grid-template-columns: 1fr; }
  .tops-profile { position: static; }
  .access-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracking-form, .access-form { flex-direction: column; }
  .tracking-input, .access-input { min-width: 0; }
  .places { grid-template-columns: 1fr; }
  .pm-places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal { border-radius: 14px; }
  .modal-head { padding: 14px 15px; }
  .confirm-actions, .modal-actions { padding: 12px 15px 14px; }
  .dock { bottom: 10px; padding: 6px; gap: 2px; max-width: calc(100vw - 12px); }
  .dock-btn { padding: 9px; }
  .dock-sep { margin: 0 3px; }
  .admin-tabs { gap: 6px; }
  .admin-tab { padding: 7px 12px; font-size: 13px; }
}

/* ---------------- Доп. базовые (достроены) ---------------- */
.access-page {
  padding: 18px;
  padding-bottom: 104px;
  position: relative;
  z-index: 1;
}
.goal-form {
  display: flex;
  flex-direction: column;
}
.lk-remove {
  flex: none;
}
.pm-place-right {
  margin-top: 2px;
}
.hide-hint {
  font-size: 12px;
  color: var(--text-faint);
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  margin-top: 8px;
}
@media (max-width: 720px) {
  .access-page { padding: 12px; padding-bottom: 96px; }
}

.tr-ev-fval {
  color: var(--text);
  font-weight: 600;
}

/* =====================================================================
   REDESIGN v3 — премиальная полировка
   Только визуальные свойства: цвет, тени, градиенты, радиусы, типографика,
   микроанимации. Сетка/отступы не затрагиваются.
   ===================================================================== */

/* ---------- Фон: глубина и мягкое свечение ---------- */
body {
  font-family: "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(820px 560px at 8% -12%, rgba(var(--accent-rgb), 0.2), transparent 60%),
    radial-gradient(760px 620px at 104% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(1000px 720px at 50% 124%, rgba(139, 92, 246, 0.15), transparent 62%),
    var(--bg);
}
body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 20%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 18%, #000 20%, transparent 76%);
}
body::after {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(36% 36% at 24% 30%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    radial-gradient(32% 32% at 76% 66%, rgba(139, 92, 246, 0.14), transparent 70%),
    radial-gradient(28% 28% at 62% 10%, rgba(56, 189, 248, 0.1), transparent 72%);
  filter: blur(14px);
  animation: fxAurora 28s ease-in-out infinite alternate;
}
@keyframes fxAurora {
  from {
    opacity: 0.55;
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    opacity: 0.95;
    transform: translate3d(2%, 2%, 0) scale(1.08);
  }
}

/* ---------- Типографика ---------- */
h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
}
.profile-name,
.modal-title h3,
.rc-name {
  letter-spacing: 0.1px;
}
.profile-id,
.search-meta,
.mono {
  font-feature-settings: "tnum" 1;
}

/* ---------- Топбар ---------- */
.topbar {
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.88), rgba(6, 7, 10, 0.72));
  border-bottom-color: rgba(var(--accent-rgb), 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 44px -30px rgba(0, 0, 0, 0.95);
}
.brand-mark {
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.85), 0 0 22px -6px rgba(var(--accent-rgb), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand-mark img {
  filter: drop-shadow(0 3px 9px rgba(var(--accent-rgb), 0.55));
}
.brand h1 {
  background: linear-gradient(180deg, #ffffff, #b9c2d6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Панели и разделы ---------- */
.panel,
.feed-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 42%), var(--panel);
  border-color: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 26px 60px -40px rgba(0, 0, 0, 0.95);
}
.feed-section .section-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 75%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.section-title {
  letter-spacing: 0.25px;
}
.sec-ico {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px -12px rgba(var(--accent-rgb), 0.7);
}

/* ---------- Кнопки ---------- */
.btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0) 62%), var(--panel-2);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 24px -18px rgba(0, 0, 0, 0.95);
}
.btn:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 32px -18px rgba(0, 0, 0, 0.95),
    0 0 26px -8px rgba(var(--accent-rgb), 0.45);
}
.btn-accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px -12px rgba(var(--accent-rgb), 0.75);
}
.btn-accent:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 16px 34px -12px rgba(var(--accent-rgb), 0.85);
  filter: brightness(1.06);
}
.btn-ghost {
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

/* ---------- Вкладки и бейджи ---------- */
.tabs {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 60%), var(--panel);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px -40px rgba(0, 0, 0, 0.9);
}
.tab.active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px -18px rgba(var(--accent-rgb), 0.7),
    0 0 24px -12px rgba(var(--accent-rgb), 0.6);
}
.badge {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 16px -6px rgba(var(--accent-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.age-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Профиль ---------- */
.avatar-frame {
  background: conic-gradient(from 210deg, var(--accent), #8b5cf6, #38bdf8, var(--accent));
  box-shadow: 0 20px 46px -20px rgba(var(--accent-rgb), 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.avatar-frame img {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.role-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 70%), var(--panel-2);
  border-color: rgba(255, 255, 255, 0.06);
}
.stat:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.9), 0 0 20px -8px rgba(var(--accent-rgb), 0.4);
}

/* ---------- Поиск под профилем ---------- */
.psearch {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%), var(--panel-2);
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -34px rgba(0, 0, 0, 0.95);
}
.psearch:focus-within {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 3px rgba(var(--accent-rgb), 0.16),
    0 18px 40px -34px rgba(0, 0, 0, 0.95);
}

/* ---------- Цель банов ---------- */
.goal-count {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 65%), var(--panel-2);
  border-color: rgba(255, 255, 255, 0.06);
}
.goal-num {
  background: linear-gradient(180deg, #ffffff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.goal-bar {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
}
.goal-bar-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px -2px rgba(var(--accent-rgb), 0.8);
}
.goal-stat,
.goal-status {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 70%), var(--panel-2);
  border-color: rgba(255, 255, 255, 0.06);
}

/* ---------- Карточки контента ---------- */
.reg-card,
.viol-card,
.tr-card,
.lk-card,
.ob-card,
.place-card,
.pm-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 55%), var(--panel);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px -34px rgba(0, 0, 0, 0.95);
}
.reg-card:hover,
.viol-card:hover,
.tr-card:hover,
.lk-card:hover,
.place-card:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 26px 54px -30px rgba(0, 0, 0, 0.95),
    0 0 30px -10px rgba(var(--accent-rgb), 0.4);
}
.rc-avatar {
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---------- Результаты поиска ---------- */
.search-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 70%), var(--panel-2);
  border-color: rgba(255, 255, 255, 0.06);
}
.search-item:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9), 0 0 24px -10px rgba(var(--accent-rgb), 0.45);
}

/* ---------- Модалки ---------- */
.modal-backdrop {
  background: radial-gradient(120% 120% at 50% 0%, rgba(var(--accent-rgb), 0.1), transparent 60%), rgba(3, 4, 7, 0.78);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}
.modal {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, rgba(20, 20, 26, 0.98), var(--panel));
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 110px -30px rgba(0, 0, 0, 0.9),
    0 0 60px -20px rgba(var(--accent-rgb), 0.35);
}
.modal-head {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0) 90%);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.modal-avatar {
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(var(--accent-rgb), 0.25);
}
.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Док ---------- */
.dock {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 26px 60px -24px rgba(0, 0, 0, 0.85),
    0 0 44px -16px rgba(var(--accent-rgb), 0.45);
}
.dock-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px -18px rgba(0, 0, 0, 0.9),
    0 0 26px -8px rgba(var(--accent-rgb), 0.5);
}

/* ---------- Скроллбар ---------- */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #262b38, #1a1e28);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.7), rgba(var(--accent-rgb), 0.45));
  background-clip: padding-box;
}

/* ---------- Крупные карточки (вход, центр, привязки) ---------- */
.login-card,
.center-card,
.tops-locked,
.link-accounts {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 100px -40px rgba(0, 0, 0, 0.95),
    0 0 70px -30px rgba(var(--accent-rgb), 0.45);
}
.profile-name {
  text-shadow: 0 2px 18px rgba(var(--accent-rgb), 0.3);
}

/* ---------- Появление панелей ---------- */
@keyframes fxRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel,
.feed-section {
  animation: fxRise 0.45s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .panel,
  .feed-section {
    animation: none !important;
  }
}

/* ---------- Технические работы ---------- */
body.maintenance {
  overflow: hidden;
}
body.maintenance > *:not(.maintenance-overlay) {
  filter: blur(10px) saturate(0.7) brightness(0.62);
  pointer-events: none;
  user-select: none;
}
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(var(--accent-rgb), 0.14), transparent 62%),
    rgba(4, 5, 9, 0.56);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.maintenance-card {
  width: min(440px, 100%);
  padding: 32px 30px 26px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(20, 20, 26, 0.98), var(--panel));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 110px -34px rgba(0, 0, 0, 0.95),
    0 0 70px -24px rgba(var(--accent-rgb), 0.5);
  animation: fxRise 0.4s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.maintenance-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  color: var(--accent-2);
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9), 0 0 30px -12px rgba(var(--accent-rgb), 0.7);
}
.maintenance-ico svg {
  width: 30px;
  height: 30px;
}
.maintenance-title {
  margin: 18px 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.maintenance-text {
  margin: 0 auto 20px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.maintenance-tg {
  width: 100%;
  gap: 10px;
  padding: 12px 18px;
  border-color: transparent;
  background: linear-gradient(180deg, #2aabee, #229ed9);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 30px -14px rgba(34, 158, 217, 0.8);
}
.maintenance-tg:hover {
  border-color: transparent;
  background: linear-gradient(180deg, #35b3f4, #229ed9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 38px -14px rgba(34, 158, 217, 0.9);
}
.maintenance-tg svg {
  width: 18px;
  height: 18px;
}
.yooma-page .maintenance-card {
  border-color: rgba(61, 76, 194, 0.4);
}
.yooma-page .maintenance-ico {
  color: #b9c0ff;
  background: rgba(61, 76, 194, 0.2);
  border-color: rgba(61, 76, 194, 0.55);
}
@media (max-width: 520px) {
  .maintenance-card {
    padding: 26px 20px 22px;
    border-radius: 16px;
  }
  .maintenance-title {
    font-size: 20px;
  }
}

/* ---------- Шапка: пользователь слева, бренд по центру ---------- */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
}
.topbar > * {
  min-width: 0;
}
.topbar-brand {
  justify-self: center;
  margin: 0;
}
.topbar-spacer {
  display: block;
}
.topbar-user {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 10px 5px 5px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.topbar-user:hover,
.topbar-user[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
}
.topbar-user:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}
.topbar-ava {
  width: 38px;
  height: 38px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: var(--panel-2);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.9);
}
.topbar-ava img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.topbar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.topbar-nick {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.topbar-sid {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  color: var(--text-faint);
  font-family: "Consolas", "SFMono-Regular", monospace;
}
.topbar-caret {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-faint);
  transition: transform 0.18s ease;
}
.topbar-user[aria-expanded="true"] .topbar-caret {
  transform: rotate(180deg);
}

/* ---------- Выезжающая панель профиля ---------- */
.user-panel-backdrop {
  position: fixed;
  inset: 62px 0 0;
  z-index: 110;
  background: rgba(3, 4, 7, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.user-panel-backdrop.open {
  opacity: 1;
}
.user-panel {
  position: fixed;
  top: 62px;
  bottom: 0;
  left: 0;
  z-index: 120;
  width: 370px;
  max-width: calc(100vw - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 20px 30px;
  background: linear-gradient(180deg, rgba(22, 23, 30, 0.99), rgba(10, 11, 15, 0.99));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 28px 0 70px -30px rgba(0, 0, 0, 0.95);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.25, 1), visibility 0.26s;
}
.user-panel.open {
  transform: none;
  visibility: visible;
}
.user-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.user-panel-close:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.12);
}
.user-panel .profile-top {
  padding-top: 8px;
}
.user-panel .avatar-frame {
  width: 92px;
  height: 92px;
  margin-bottom: 12px;
}
.user-panel .profile-name {
  font-size: 18px;
}
.user-panel .stats-title {
  text-align: left;
}
.user-panel .side-unlink,
.user-panel .side-switch,
.user-panel .side-back {
  width: 100%;
  justify-content: center;
}
.user-panel-goal {
  position: static;
  top: auto;
  margin-top: 18px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.user-panel .goal-panel {
  position: static;
  top: auto;
}
.user-panel .tops-profile {
  position: static;
  top: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.user-panel-open {
  overflow: hidden;
}
.layout {
  grid-template-columns: minmax(0, 1fr);
}
.feeds-col > .psearch {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 560px;
}
.tops-layout {
  grid-template-columns: minmax(0, 1fr);
}
.yooma-page .user-panel {
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.99), rgba(13, 13, 15, 0.99));
  border-right-color: rgba(61, 76, 194, 0.35);
}

@media (max-width: 720px) {
  .topbar {
    display: grid;
    height: 62px;
    padding: 0 12px;
    gap: 0;
    flex-wrap: nowrap;
  }
  .topbar .brand-mark {
    width: 32px;
    height: 32px;
  }
  .topbar .brand h1 {
    font-size: 14px;
  }
  .topbar-user {
    gap: 8px;
    padding: 4px 6px 4px 4px;
  }
  .topbar-ava {
    width: 34px;
    height: 34px;
  }
  .topbar-nick {
    max-width: 100px;
    font-size: 12px;
  }
  .topbar-sid {
    display: none;
  }
  .user-panel {
    top: 62px;
    width: 100%;
    max-width: none;
    border-right: 0;
  }
  .user-panel-backdrop {
    top: 62px;
  }
}

@media (max-width: 420px) {
  .topbar-nick {
    max-width: 88px;
  }
  .topbar .brand h1 {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .topbar-brand h1 {
    display: none;
  }
  .topbar-ava {
    width: 32px;
    height: 32px;
  }
  .topbar-user {
    gap: 7px;
  }
  .topbar-nick {
    max-width: 100px;
  }
}

/* ---------------- Вкладки (табы) ---------------- */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 60%), var(--panel);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.tab {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}
.tab.is-active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), 0.8);
}
.tab-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}
.tab-section {
  animation: fxRise 0.35s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.tab-section[hidden] {
  display: none !important;
}

/* ---------------- Вкладки (табы) ---------------- */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 60%), var(--panel);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.tab {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}
.tab.is-active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), 0.8);
}
.tab-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}
.tab-section {
  animation: fxRise 0.35s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.tab-section[hidden] {
  display: none !important;
}
.tab-section .feed-section {
  position: static;
  top: auto;
}

/* ---------------- Админ-панель (привязки + доступ) ---------------- */
.admin-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  padding-bottom: 104px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-tab:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}
.admin-tab.is-active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), 0.8);
}
.admin-section {
  animation: fxRise 0.35s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.admin-section[hidden] {
  display: none !important;
}
.links-section .links-head {
  margin-bottom: 16px;
}
.links-section .links-grid {
  margin-top: 16px;
}
.access-section .access-stats {
  margin-bottom: 18px;
}
.access-section .access-add {
  margin-bottom: 18px;
}
.access-section .access-toolbar {
  margin-bottom: 18px;
}

/* Длинные имена, ID и причины не должны вылезать за карточки админки. */
.admin-section,
.access-info,
.access-namewrap,
.access-meta,
.access-preview-body {
  min-width: 0;
}
.access-name,
.access-preview-name,
.access-preview-id {
  max-width: 100%;
}
.access-meta {
  overflow-wrap: anywhere;
}
.access-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .tracking-search,
  .access-search {
    min-width: 160px;
  }
}

/* ---------------- Логи ---------------- */
.logs-section {
  min-width: 0;
}
.logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.logs-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.logs-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.logs-filter:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}
.logs-filter.is-active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), 0.8);
}
.logs-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 10.5px;
  font-weight: 700;
  color: inherit;
  opacity: 0.85;
}
.logs-filter.is-active .logs-count {
  background: rgba(0, 0, 0, 0.18);
}
.logs-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 340px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}
.logs-search {
  flex: 1 1 auto;
  min-width: 0;
}
.scroll-section-logs {
  max-height: 58vh;
}
.logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.log-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 55%), var(--panel);
  animation: fade 0.3s ease both;
  min-width: 0;
}
.log-row:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
}
.log-ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.log-ico svg {
  width: 16px;
  height: 16px;
}
.log-ico-access { color: var(--green); border-color: rgba(63, 199, 122, 0.35); }
.log-ico-block { color: #ff9a9a; border-color: rgba(255, 80, 80, 0.35); }
.log-ico-maintenance { color: #ffb37a; border-color: rgba(255, 140, 60, 0.35); }
.log-ico-link { color: #a9c4ff; border-color: rgba(143, 183, 255, 0.35); }
.log-ico-auth { color: var(--accent-2); border-color: rgba(var(--accent-rgb), 0.4); }
.log-main {
  flex: 1;
  min-width: 0;
}
.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.log-badge {
  flex: none;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}
.log-badge-access { background: rgba(63, 199, 122, 0.12); color: var(--green); border-color: rgba(63, 199, 122, 0.35); }
.log-badge-block { background: rgba(255, 80, 80, 0.12); color: #ff9a9a; border-color: rgba(255, 80, 80, 0.35); }
.log-badge-maintenance { background: rgba(255, 140, 60, 0.12); color: #ffb37a; border-color: rgba(255, 140, 60, 0.35); }
.log-badge-link { background: rgba(143, 183, 255, 0.12); color: #a9c4ff; border-color: rgba(143, 183, 255, 0.35); }
.log-badge-auth { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(var(--accent-rgb), 0.4); }
.log-text {
  font-size: 13.5px;
  color: var(--text);
  overflow-wrap: anywhere;
  min-width: 0;
}
.log-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-faint);
  min-width: 0;
}
.log-actor,
.log-actor-id,
.log-target {
  overflow-wrap: anywhere;
}
.log-dot {
  opacity: 0.5;
}
.logs-empty {
  padding: 30px 18px;
  border: 1px dashed var(--border);
  border-radius: 13px;
  text-align: center;
  color: var(--text-faint);
}
.logs-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
}
.logs-empty-sub {
  margin-top: 4px;
  font-size: 12.5px;
}

/* ---------------- Секции с вертикальной прокруткой ---------------- */
.scroll-section {
  position: relative;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 16px;
}
.scroll-section::-webkit-scrollbar {
  width: 8px;
}
.scroll-section::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
.scroll-section::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
/* Карточки привязок: одинаковая ширина, сетка, вертикальная прокрутка секции. */
.scroll-section .links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr));
  gap: 12px;
  align-items: start;
}
.scroll-section .lk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.scroll-section .lk-accounts {
  flex-wrap: wrap;
  min-width: 0;
}
.scroll-section .lk-acc {
  flex: 1 1 170px;
  min-width: 0;
}
.scroll-section .lk-acc-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.scroll-section .lk-acc-id {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.scroll-section .lk-foot {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.scroll-section .lk-remove {
  width: 100%;
  justify-content: center;
}

/* ---------------- Секции с вертикальной прокруткой (доступ) ---------------- */
.scroll-section-access {
  max-height: 55vh;
}
.scroll-section-access .access-row {
  border-bottom: 1px solid var(--border);
}
.scroll-section-access .access-row:last-child {
  border-bottom: 0;
}

/* ---------------- Админ-панель: техработы и аватары ---------------- */
.admin-maint {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 60%), var(--panel);
}
.admin-maint-text {
  flex: 1 1 240px;
  min-width: 0;
}
.admin-maint-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.admin-maint-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-faint);
}
.admin-maint .access-error {
  flex-basis: 100%;
}
.admin-maint-btn.is-on {
  background: linear-gradient(180deg, #ff9a3d, #e8630a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(255, 122, 24, 0.8);
}

.access-ava img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.access-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 13px;
  background: rgba(var(--accent-rgb), 0.07);
}
.access-preview-ava {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-3);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  font-size: 18px;
  font-weight: 800;
}
.access-preview-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.access-preview-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.access-preview-id {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dim);
}

/* На узких экранах разделы идут в один столбец и без внутренней прокрутки. */
@media (max-width: 720px) {
  .feeds-col .feed-section {
    max-height: none;
  }
}

/* ---------------- Блокировка доступа ---------------- */
body.blocked {
  overflow: hidden;
}
body.blocked > *:not(.maintenance-overlay) {
  filter: blur(10px) saturate(0.7) brightness(0.62);
  pointer-events: none;
  user-select: none;
}
.blocked-ico {
  color: #ff8a8a;
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 80, 80, 0.45);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9), 0 0 30px -12px rgba(255, 80, 80, 0.65);
}
.blocked-reason {
  margin: 0 0 18px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
.blocked-reason-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint);
}
.blocked-reason-text {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}
.blocked-ticket {
  width: 100%;
  gap: 10px;
  padding: 12px 18px;
  border-color: transparent;
  background: linear-gradient(180deg, #5a7cf5, #415fd6);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 30px -14px rgba(var(--accent-rgb), 0.85);
}
.blocked-ticket:hover {
  background: linear-gradient(180deg, #6a8af8, #4a68e0);
}
.blocked-ticket svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.access-row.is-blocked {
  border-color: rgba(255, 80, 80, 0.35);
  background: linear-gradient(180deg, rgba(255, 80, 80, 0.06), rgba(255, 255, 255, 0) 60%), var(--panel);
}
.access-tag.blocked {
  background: rgba(255, 80, 80, 0.14);
  color: #ff9a9a;
  border-color: rgba(255, 80, 80, 0.4);
}
.access-meta.is-blocked {
  color: #ff9a9a;
}
.access-block-btn {
  color: #ffb37a;
  border-color: rgba(255, 140, 60, 0.35);
}
.access-block-btn:hover {
  color: #ffd0a8;
  border-color: rgba(255, 140, 60, 0.65);
}
.access-unblock-btn {
  color: var(--green);
  border-color: rgba(63, 199, 122, 0.35);
}
.access-unblock-btn:hover {
  border-color: rgba(63, 199, 122, 0.65);
}

.block-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-align: left;
}
.block-reason {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}
.block-reason:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
#blockModal .access-error {
  margin-top: 10px;
  text-align: left;
}
#blockModal .btn-danger {
  background: linear-gradient(180deg, #e25757, #be3737);
  border-color: transparent;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 26px -14px rgba(214, 69, 69, 0.85);
}
#blockModal .btn-danger:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 30px -14px rgba(214, 69, 69, 0.95);
  filter: brightness(1.05);
}

/* ---------------- Обход блокировки (панель) ---------------- */
.feed-source {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Новореги показываем в одну колонку: карточки не должны разъезжаться. */
#newregsList .cards {
  grid-template-columns: minmax(0, 1fr);
}

.ev-note {
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: var(--accent-soft);
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.55;
}
.ev-note p {
  margin: 0;
}
.ev-note p + p {
  margin-top: 5px;
}
.ev-note b {
  color: var(--text);
  font-weight: 700;
}
.ev-note-warn {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.22);
  color: #ffb0b0;
  font-weight: 600;
}

.ev-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}
.ev-search {
  flex: 1 1 220px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.ev-search:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.ev-select {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.ev-count {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}

.ev-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ev-list .ev-card {
  width: 100%;
  min-width: 0;
}

.ev-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.ev-chip.bad {
  background: rgba(255, 105, 105, 0.14);
  color: #ff9d9d;
  border-color: rgba(255, 105, 105, 0.4);
}
.ev-chip.warn {
  background: rgba(255, 190, 92, 0.13);
  color: #ffd08a;
  border-color: rgba(255, 190, 92, 0.38);
}
.ev-chip.muted {
  background: var(--panel-3);
  color: var(--text-faint);
}

.ev-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.ev-stat {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  min-width: 0;
}
.ev-stat-k {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-faint);
}
.ev-stat-v {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .ev-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ev-toolbar .ev-search,
  .ev-toolbar .ev-select {
    flex-basis: 100%;
  }
}


/* Поиск внутри раздела: держится сверху, пока список прокручивается. */
#newregsList,
#violationsList,
#otherbansList {
  padding-top: 0;
}
.section-body > .feed-search {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 14px 0 10px;
  background: var(--panel-2);
}

/* ---------- Панель /app: все 4 раздела в один экран ---------- */
@media (min-width: 900px) {
  .layout-app .main.feeds-col {
    height: max(calc(100vh - var(--shell-top) - var(--shell-y) - 104px), 560px);
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
  }
  .layout-app .feeds-col .feed-section {
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .layout-app .feeds-col .section-head {
    padding: 11px 14px;
  }
  .layout-app .feeds-col .section-body {
    padding: 12px;
  }
  .layout-app .feeds-col .section-title {
    font-size: 14.5px;
  }
}

/* Пустые состояния в компактных панелях не должны занимать пол-экрана. */
.feeds-col .empty {
  padding: 30px 18px;
}.feeds-col .empty::before {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.feeds-col .loading {
  padding: 26px 18px;
}

/* Заметка обхода свёрнута в строку, чтобы карточки влезали в панель. */
.ev-note {
  margin-bottom: 10px;
  padding: 0;
}
.ev-note-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 700;
}
.ev-note-sum::-webkit-details-marker {
  display: none;
}
.ev-note-sum svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--text-dim);
  transition: transform 0.15s ease;
}
.ev-note[open] .ev-note-sum svg {
  transform: rotate(180deg);
}
.ev-note-body {
  padding: 0 12px 11px;
  color: var(--text-dim);
}
.ev-note-body p {
  margin: 0;
}
.ev-note-body p + p {
  margin-top: 4px;
}
.ev-note-body b {
  color: var(--text);
  font-weight: 700;
}
