﻿/* =========================================================
   VANISH FORUM
   Dark XenForo-style forum inspired by forum.majestic-rp.ru
   Brand / content: vanish-cheat.com / ROB RUN
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atyp';
  src: url('../assets/fonts/AtypDisplay-Regular.C-K9HQ1U.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atyp';
  src: url('../assets/fonts/AtypDisplay-Medium.rgoYe21T.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atyp';
  src: url('../assets/fonts/AtypDisplay-Semibold.BFy5L3Zd.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atyp';
  src: url('../assets/fonts/AtypDisplay-Bold.CXnq0yLQ.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro';
  src: url('../assets/fonts/SF-Pro-Display-Regular.CDxdQjN-.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro';
  src: url('../assets/fonts/SF-Pro-Display-Medium.Ci108Q4B.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro';
  src: url('../assets/fonts/SF-Pro-Display-Semibold.DCwMG21g.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #09090b;
  --bg-2: #0b0b0e;
  --topbar: #0e0e11;
  --surface: #121216;
  --surface-2: #16161b;
  --surface-3: #1a1a20;
  --surface-4: #202027;
  --line: #2b2c34;
  --line-soft: #23242b;
  --line-strong: #3a3b45;
  --text: #f1f1f4;
  --text-2: #c8c8d0;
  --muted: #9898a4;
  --muted-2: #70707c;
  --muted-3: #54545e;
  --accent: #4c67ff;
  --accent-2: #7b5cff;
  --accent-soft: rgba(76, 103, 255, 0.12);
  --accent-line: rgba(76, 103, 255, 0.32);
  --pink: #f92e8c;
  --pink-2: #ff5aa8;
  --pink-soft: rgba(249, 46, 140, 0.11);
  --green: #47dba1;
  --amber: #ffc46b;
  --red: #ff6868;
  --font-ui: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --radius: 3px;
  --radius-md: 5px;
  --shadow-pop: 0 22px 55px -18px rgba(0, 0, 0, 0.85);
  --grad-blue: linear-gradient(100deg, #2740cf 0%, #4c67ff 48%, #7358ff 100%);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
}
::selection {
  background: rgba(76, 103, 255, 0.4);
  color: #fff;
}
:focus-visible {
  outline: 2px solid rgba(110, 130, 255, 0.8);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0b0b0d;
}
::-webkit-scrollbar-thumb {
  background: #2a2a31;
  border: 2px solid #0b0b0d;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a44;
}

/* ---------- Ambient background ---------- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(760px 340px at 50% -160px, rgba(76, 103, 255, 0.13), transparent 72%),
    radial-gradient(520px 300px at 96% 0%, rgba(249, 46, 140, 0.045), transparent 75%),
    var(--bg);
}
.bg-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.023;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}
.app-main {
  min-height: 72vh;
  padding-bottom: 64px;
}
.page {
  padding-top: 22px;
  animation: page-in 0.35s ease both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}
.forum-main {
  min-width: 0;
}
.forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

/* ---------- Typography / utilities ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.muted { color: var(--muted); }
.accent { color: #93a2ff; }
.small { font-size: 11px; }
.hidden { display: none !important; }
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-sm { width: 13px; height: 13px; }
.icon-xs { width: 11px; height: 11px; }
.icon-lg { width: 20px; height: 20px; }
.icon-fill { fill: currentColor; stroke: none; }
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-2);
  font-size: 9px;
  font-family: var(--font-ui);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn-primary {
  color: #fff;
  background: var(--grad-blue);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px -8px rgba(76, 103, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:hover {
  background: linear-gradient(100deg, #324de0 0%, #5a73ff 48%, #8169ff 100%);
  box-shadow: 0 8px 22px -8px rgba(76, 103, 255, 0.85);
}
.btn-pink {
  color: #fff;
  background: linear-gradient(105deg, #e01572, #f92e8c 55%, #ff4f9c);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px -8px rgba(249, 46, 140, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-pink:hover {
  background: linear-gradient(105deg, #ef1d7e, #ff3d97 55%, #ff62aa);
}
.btn-ghost {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: #3a3a44;
}
.btn-soft {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--line);
}
.btn-soft:hover {
  color: #fff;
  background: var(--surface-3);
  border-color: var(--line-strong);
}
.btn-sm {
  height: 29px;
  padding: 0 10px;
  font-size: 10.5px;
  gap: 5px;
}
.btn-lg {
  height: 40px;
  padding: 0 18px;
  font-size: 12px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}
.icon-btn-bordered {
  border-color: var(--line);
  background: var(--surface-2);
}
.link {
  color: #93a2ff;
  transition: color 0.18s;
}
.link:hover {
  color: #fff;
}
.divider {
  height: 1px;
  background: var(--line-soft);
}

/* ---------- Avatars / roles ---------- */
.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #171a24;
  color: #dfe4ff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  overflow: hidden;
  user-select: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-22 { width: 22px; height: 22px; font-size: 9px; }
.avatar-26 { width: 26px; height: 26px; font-size: 10px; }
.avatar-30 { width: 30px; height: 30px; font-size: 11px; }
.avatar-34 { width: 34px; height: 34px; font-size: 12px; }
.avatar-38 { width: 38px; height: 38px; font-size: 13px; }
.avatar-42 { width: 42px; height: 42px; font-size: 14px; }
.avatar-46 { width: 46px; height: 46px; font-size: 15px; }
.avatar-54 { width: 54px; height: 54px; font-size: 18px; }
.avatar-64 { width: 64px; height: 64px; font-size: 22px; }
.avatar-76 { width: 76px; height: 76px; font-size: 26px; }
.avatar-fallback {
  background:
    radial-gradient(110% 110% at 18% 0%, var(--av1, #4c67ff), transparent 62%),
    linear-gradient(145deg, var(--av2, #1d2342), #0b0c12);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.role-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}
.role-team {
  color: #fff;
  background: linear-gradient(100deg, #3049d8, #5871ff);
}
.role-moderator {
  color: #fff;
  background: linear-gradient(100deg, #8c33d6, #b763ff);
}
.role-veteran {
  color: #2a1a00;
  background: linear-gradient(100deg, #e8a93e, #ffd478);
}
.role-member {
  color: #b5b7c2;
  background: #23232a;
  border: 1px solid #303038;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 17px;
  padding: 0 5px;
  border-radius: 2px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.role-badge.role-team {
  background: rgba(76, 103, 255, 0.14);
  border: 1px solid rgba(76, 103, 255, 0.28);
  color: #a3b2ff;
}
.role-badge.role-moderator {
  background: rgba(183, 99, 255, 0.11);
  border: 1px solid rgba(183, 99, 255, 0.28);
  color: #d5b1ff;
}
.role-badge.role-veteran {
  background: rgba(255, 196, 107, 0.09);
  border: 1px solid rgba(255, 196, 107, 0.25);
  color: #ffd28c;
}
.role-badge.role-member {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #acaeba;
}
.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(71, 219, 161, 0.6);
  flex-shrink: 0;
}
.online-dot.offline {
  background: #55555f;
  box-shadow: none;
}
.dot-live {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.dot-live::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(71, 219, 161, 0.45);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  75%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid #1d1d22;
  background: rgba(13, 13, 16, 0.96);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand img {
  width: 104px;
  height: auto;
  opacity: 0.97;
  transition: opacity 0.18s;
}
.brand:hover img {
  opacity: 0.75;
}
.brand-suffix {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6d6d78;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.brand-suffix::before {
  content: '';
  width: 1px;
  height: 19px;
  background: #2b2b33;
}
.topbar-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  height: 100%;
}
.topbar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: #8f8f9b;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.18s, background 0.18s;
}
.topbar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.022);
}
.topbar-nav a.active {
  color: #fff;
}
.topbar-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad-blue);
  box-shadow: 0 0 14px rgba(76, 103, 255, 0.7);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.topbar-sep {
  width: 1px;
  height: 22px;
  margin: 0 8px;
  background: #2a2a31;
}
.topbar-auth {
  display: flex;
  align-items: center;
  gap: 2px;
}
.topbar-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: #a3a3af;
  font-size: 11px;
  transition: color 0.18s, background 0.18s;
}
.topbar-auth-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}
.topbar-auth-btn .icon {
  width: 14px;
  height: 14px;
  color: #777785;
}
.topbar-auth-btn.accent-btn {
  color: #fff;
}
.topbar-auth-btn.accent-btn .icon {
  color: #9bacff;
}
.topbar-user {
  position: relative;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 9px 0 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  transition: border-color 0.18s, background 0.18s;
}
.user-chip:hover,
.user-chip[aria-expanded='true'] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}
.user-chip-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}
.user-chip .icon {
  width: 9px;
  height: 9px;
  color: var(--muted-2);
}
.bell-btn {
  position: relative;
}
.bell-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  border: 1.5px solid #0e0e11;
  box-shadow: 0 0 8px rgba(249, 46, 140, 0.65);
}
.topbar-more {
  position: relative;
}
.topbar-menu-btn {
  display: none;
}
.popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 210px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #131317;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.popover-label {
  padding: 7px 9px 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.popover-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 2px;
  color: var(--text-2);
  font-size: 11.5px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.popover-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}
.popover-item .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}
.popover-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--line-soft);
}
.user-popover {
  min-width: 208px;
}
.user-popover-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 9px;
}
.user-popover-head b {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
}
.user-popover-head span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--muted-2);
}
.notif-popover {
  width: 292px;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.notif-head b {
  font-size: 11px;
  font-weight: 600;
}
.notif-head span {
  font-size: 8.5px;
  color: var(--muted-3);
}
.notif-item {
  display: flex;
  gap: 9px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.notif-item:last-child {
  border-bottom: 0;
}
.notif-item p {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.notif-item span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted-3);
}
.topbar-search-kbd {
  margin-left: 2px;
}

/* ---------- Mobile drawer ---------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}
.mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.75);
  backdrop-filter: blur(6px);
}
.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(350px, 88vw);
  height: 100%;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #0e0e11;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  transform: translateX(24px);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.mobile-drawer.open .mobile-panel {
  transform: translateX(0);
}
.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-head img {
  width: 98px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 13px;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}
.mobile-nav .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-3);
}
.mobile-section-label {
  margin: 16px 10px 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.mobile-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.mobile-user-box b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.mobile-user-box span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--muted-2);
}
.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.mobile-product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(76, 103, 255, 0.14), transparent 62%),
    var(--surface);
}
.mobile-product img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.mobile-product b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.mobile-product span {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: var(--muted-3);
}
.mobile-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 9px;
  line-height: 1.55;
  color: var(--muted-3);
}

/* ---------- Page title ---------- */
.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 0;
}
.page-title {
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #f4f4f7;
}
.page-sub {
  max-width: 640px;
  margin-top: 6px;
  color: #898995;
  font-size: 12px;
  line-height: 1.55;
}
.page-title-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding-bottom: 3px;
}
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
}
.online-pill b {
  color: #d9dae2;
  font-weight: 500;
}
.online-pill .online-dot {
  margin-left: 2px;
}
.online-pill .avatar-stack {
  margin-left: 3px;
}
.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack .avatar {
  width: 20px;
  height: 20px;
  margin-left: -5px;
  border: 1.5px solid #0d0d10;
}
.avatar-stack .avatar:first-child {
  margin-left: 0;
}
.avatar-stack-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  margin-left: -5px;
  padding: 0 5px;
  border: 1.5px solid #0d0d10;
  border-radius: 999px;
  background: #202027;
  color: #85858f;
  font-size: 7.5px;
  font-weight: 600;
}

/* ---------- Notice ---------- */
.notice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 55px;
  margin-top: 17px;
  padding: 10px 12px 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(249, 46, 140, 0.035), transparent 42%),
    var(--surface);
}
.notice-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(249, 46, 140, 0.35);
  border-radius: 50%;
  color: #ff5da4;
  flex-shrink: 0;
}
.notice-icon .icon {
  width: 13px;
  height: 13px;
}
.notice-text {
  min-width: 0;
  flex: 1;
  font-size: 11.5px;
  line-height: 1.45;
  color: #acaeba;
}
.notice-text strong {
  color: #e7e8ee;
  font-weight: 500;
}
.notice-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.notice-btn {
  height: 32px;
  padding: 0 13px;
  font-size: 10.5px;
}
.notice-close {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: var(--radius);
  color: var(--muted-3);
  transition: color 0.18s, background 0.18s;
}
.notice-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.notice-close .icon {
  width: 12px;
  height: 12px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  font-size: 9.5px;
  color: var(--muted-3);
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  transition: color 0.18s;
}
.breadcrumbs a:hover {
  color: #fff;
}
.breadcrumbs .icon {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}
.breadcrumbs .current {
  max-width: 500px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a7a9b5;
}

/* ---------- Promo banner ---------- */
.forum-promo {
  position: relative;
  isolation: isolate;
  min-height: 172px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101014;
  overflow: hidden;
}
.forum-promo-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.forum-promo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.82) brightness(0.78);
}
.forum-promo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, #0b0b0e 2%, rgba(11, 11, 14, 0.96) 30%, rgba(11, 11, 14, 0.72) 55%, rgba(11, 11, 14, 0.1) 100%),
    linear-gradient(0deg, rgba(9, 9, 12, 0.72), transparent 55%);
}
.forum-promo-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 172px;
  max-width: 590px;
  padding: 22px 26px;
}
.promo-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b6c1ff;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.promo-kicker img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}
.promo-kicker .promo-new {
  display: inline-flex;
  height: 15px;
  align-items: center;
  padding: 0 4px;
  margin-left: 2px;
  border-radius: 2px;
  background: var(--pink);
  color: #fff;
  font-size: 7px;
  letter-spacing: 0.06em;
}
.forum-promo h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}
.forum-promo p {
  max-width: 430px;
  margin-top: 6px;
  color: #a2a2ae;
  font-size: 11px;
  line-height: 1.55;
}
.promo-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
}
.promo-actions .btn {
  height: 31px;
  font-size: 10.5px;
}
.promo-meta {
  position: absolute;
  right: 17px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 11, 0.55);
  color: #c9cad4;
  font-size: 8.5px;
  backdrop-filter: blur(8px);
}
.promo-meta .dot-live {
  width: 5px;
  height: 5px;
}

/* ---------- Forum groups ---------- */
.forum-group {
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
}
.forum-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 45px;
  padding: 0 14px 0 16px;
  background: var(--grad-blue);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.forum-group-head::before {
  content: '';
  position: absolute;
  right: 30px;
  top: -80px;
  width: 300px;
  height: 210px;
  border: 28px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-10deg);
  pointer-events: none;
}
.forum-group-head::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -120px;
  width: 330px;
  height: 250px;
  border: 20px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
  transform: rotate(-10deg);
  pointer-events: none;
}
.forum-group-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.forum-group-title .group-count {
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}
.forum-group-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.18s, color 0.18s;
}
.forum-group-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.forum-group-toggle .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.22s;
}
.forum-group.collapsed .forum-group-body {
  display: none;
}
.forum-group.collapsed .forum-group-toggle .icon {
  transform: rotate(-90deg);
}
.forum-group-body {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.forum-node {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 154px 234px;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 12px 15px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.16s;
}
.forum-node:first-child {
  border-top: 0;
}
.forum-node:hover {
  background: #141418;
}
.node-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  align-self: center;
  flex-shrink: 0;
}
.node-icon .icon {
  width: 17px;
  height: 17px;
}
.node-icon.solid {
  background: linear-gradient(145deg, #4c67ff, #7b5cff);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 5px 14px -7px rgba(76, 103, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.node-icon.solid.pink {
  background: linear-gradient(145deg, #e61c79, #ff4f9f);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 5px 14px -7px rgba(249, 46, 140, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.node-icon.outline {
  background: #17171c;
  border: 1px solid #34343d;
  color: #9c9caa;
}
.node-main {
  min-width: 0;
}
.node-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.node-title {
  color: #e7e8ee;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.16s;
}
.forum-node:hover .node-title,
.node-title:hover {
  color: #aab8ff;
}
.badge-new {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--pink);
  color: #fff;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.node-desc {
  margin-top: 3px;
  color: #858591;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.node-subforums {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--muted-3);
}
.node-subforums .subforums-label {
  color: #5f5f6b;
}
.node-subforums a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #868696;
  transition: color 0.16s;
}
.node-subforums a::before {
  content: '';
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4d4d57;
}
.node-subforums a:hover {
  color: #b0bcff;
}
.node-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-left: 1px solid var(--line-soft);
}
.node-stat {
  min-width: 58px;
  padding: 0 8px;
  text-align: center;
}
.node-stat span {
  display: block;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #63636f;
}
.node-stat b {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: #c2c3cc;
}
.node-last {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-soft);
  transition: opacity 0.16s;
}
.node-last:hover {
  opacity: 0.82;
}
.node-last-copy {
  min-width: 0;
}
.node-last-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b7b8c3;
  font-size: 10.5px;
  line-height: 1.4;
  transition: color 0.16s;
}
.node-last:hover .node-last-title {
  color: #e4e6f0;
}
.node-last-meta {
  display: block;
  margin-top: 2px;
  color: #656570;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-mobile-last {
  display: none;
}
/* standalone link node */
.forum-link-node {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background 0.16s, border-color 0.16s;
}
.forum-link-node:hover {
  background: #141418;
  border-color: var(--line-strong);
}
.forum-link-node .node-icon.outline {
  border-radius: 50%;
  width: 34px;
  height: 34px;
}
.forum-link-node-copy {
  min-width: 0;
  flex: 1;
}
.forum-link-node-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e3ea;
  font-size: 13px;
  font-weight: 500;
}
.forum-link-node-desc {
  margin-top: 2px;
  color: #787884;
  font-size: 10.5px;
}
.forum-link-node > .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-3);
}

/* ---------- Sidebar widgets ---------- */
.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 10px;
}
.widget-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c9cad3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.widget-title .icon {
  width: 12px;
  height: 12px;
  color: #70707c;
}
.widget-head-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #777784;
  font-size: 8.5px;
  transition: color 0.16s;
}
.widget-head-link:hover {
  color: #fff;
}
.widget-head-link .icon {
  width: 9px;
  height: 9px;
}
.widget-body {
  padding: 0 14px 12px;
}
.recent-list {
  border-top: 1px solid var(--line-soft);
}
.recent-item {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: opacity 0.16s;
}
.recent-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.recent-item:hover {
  opacity: 0.8;
}
.recent-copy {
  min-width: 0;
}
.recent-title {
  display: block;
  color: #bfc0ca;
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-title:hover {
  color: #d8dae4;
}
.recent-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 3px;
  color: #61616c;
  font-size: 8.5px;
}
.recent-meta .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4a4a54;
}
.stats-list {
  border-top: 1px solid var(--line-soft);
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px;
}
.stats-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.stats-row span {
  color: #797985;
}
.stats-row b {
  color: #bcbdc8;
  font-weight: 500;
}
.stats-row .online-value {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8fe4c4;
}
.product-widget {
  position: relative;
  border-color: rgba(76, 103, 255, 0.24);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(76, 103, 255, 0.14), transparent 58%),
    var(--surface);
}
.product-widget-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px 0;
}
.product-widget-head img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.product-widget-head-copy {
  min-width: 0;
  flex: 1;
}
.product-widget-head b {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.product-widget-head span {
  display: block;
  margin-top: 1px;
  color: #72727e;
  font-size: 8.5px;
}
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 17px;
  padding: 0 5px;
  border: 1px solid rgba(71, 219, 161, 0.2);
  border-radius: 2px;
  background: rgba(71, 219, 161, 0.07);
  color: #7fe3bf;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.07em;
}
.product-widget-body {
  padding: 10px 14px 13px;
}
.product-widget-body p {
  color: #8c8c98;
  font-size: 10px;
  line-height: 1.5;
}
.product-widget-body ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 9px 0 11px;
}
.product-widget-body li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #91919d;
  font-size: 9.5px;
  line-height: 1.4;
}
.product-widget-body li .icon {
  width: 10px;
  height: 10px;
  margin-top: 1px;
  color: #7086ff;
}
.product-widget-body .btn {
  width: 100%;
  height: 30px;
  font-size: 10px;
}
.moderators-list {
  border-top: 1px solid var(--line-soft);
}
.moderator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.moderator-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.moderator-copy {
  min-width: 0;
  flex: 1;
}
.moderator-name {
  display: block;
  color: #bdbec8;
  font-size: 10.5px;
  line-height: 1.3;
}
.moderator-role {
  display: block;
  margin-top: 1px;
  color: #63636e;
  font-size: 8.5px;
}
.moderator-row .online-dot {
  width: 5px;
  height: 5px;
}
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 9px;
}
.rule-item {
  display: flex;
  gap: 7px;
  color: #858591;
  font-size: 9.5px;
  line-height: 1.45;
}
.rule-item .icon {
  width: 10px;
  height: 10px;
  margin-top: 2px;
  color: #d457a0;
  flex-shrink: 0;
}

/* ---------- Threads list ---------- */
.threads-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.threads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: #131316;
}
.thread-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}
.thread-tab {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 2px;
  color: #7d7d89;
  font-size: 10.5px;
  transition: color 0.16s, background 0.16s;
}
.thread-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}
.thread-tab.active {
  color: #fff;
  background: #23232a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.thread-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select-wrap > .icon {
  position: absolute;
  right: 9px;
  width: 10px;
  height: 10px;
  color: #6e6e7a;
  pointer-events: none;
}
.select-control {
  height: 30px;
  padding: 0 27px 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101013;
  color: #8e8e9a;
  font-size: 10px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}
.select-control:hover {
  border-color: var(--line-strong);
  color: #d0d1da;
}
.select-control:focus {
  outline: none;
  border-color: var(--accent-line);
}
.select-control option {
  background: #131317;
}
.threads-list-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  height: 29px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  color: #5e5e69;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #0f0f12;
}
.threads-list-head .head-title {
  margin-right: auto;
}
.threads-list-head span + span {
  width: 62px;
  text-align: center;
}
.threads-list-head span:last-child {
  width: 185px;
  text-align: right;
}
.thread-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #17171b;
  color: #85858f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.thread-section-label .icon {
  width: 10px;
  height: 10px;
  color: #696975;
}
.thread-section-label .label-count {
  margin-left: auto;
  color: #55555f;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.thread-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 62px 62px 185px;
  align-items: center;
  gap: 11px;
  min-height: 61px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.thread-item:last-child {
  border-bottom: 0;
}
.thread-item:hover {
  background: #141418;
}
.thread-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(76, 103, 255, 0.6);
}
.thread-item-avatar {
  align-self: start;
  margin-top: 1px;
}
.thread-item-main {
  min-width: 0;
}
.thread-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.thread-item-title {
  color: #dcdde5;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}
.thread-item:hover .thread-item-title {
  color: #a9b7ff;
}
.thread-pin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid rgba(255, 196, 107, 0.22);
  border-radius: 2px;
  background: rgba(255, 196, 107, 0.06);
  color: #e2b46b;
  font-size: 7.5px;
  font-weight: 500;
}
.thread-pin .icon {
  width: 8px;
  height: 8px;
}
.thread-solved {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid rgba(71, 219, 161, 0.2);
  border-radius: 2px;
  background: rgba(71, 219, 161, 0.055);
  color: #7fe2bf;
  font-size: 7.5px;
}
.thread-solved .icon {
  width: 8px;
  height: 8px;
}
.thread-badge-new {
  display: inline-flex;
  align-items: center;
  height: 14px;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--pink);
  color: #fff;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.thread-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 3px;
  color: #6c6c78;
  font-size: 9.5px;
}
.thread-item-meta a {
  color: #85858f;
  transition: color 0.15s;
}
.thread-item-meta a:hover {
  color: #fff;
}
.thread-item-meta .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4d4d57;
}
.thread-item-meta .unread-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 1px;
}
.thread-mobile-stats {
  display: none;
  align-items: center;
  gap: 3px;
}
.thread-mobile-stats .icon {
  width: 9px;
  height: 9px;
}
.btn.is-active {
  color: #aebaff;
  border-color: rgba(76, 103, 255, 0.3);
  background: rgba(76, 103, 255, 0.09);
}
.thread-item-tags {
  display: none;
}
.thread-count-col {
  text-align: center;
  color: #747480;
  font-size: 9.5px;
}
.thread-count-col b {
  display: block;
  color: #a9aab5;
  font-size: 10.5px;
  font-weight: 500;
}
.thread-count-col span {
  display: block;
  margin-top: 1px;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #51515b;
}
.thread-last-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
}
.thread-last-copy {
  min-width: 0;
  text-align: right;
}
.thread-last-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9fa0ac;
  font-size: 9.5px;
}
.thread-last-time {
  display: block;
  margin-top: 1px;
  color: #5f5f6a;
  font-size: 8.5px;
  white-space: nowrap;
}
.threads-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 7px 13px;
  border-top: 1px solid var(--line);
  background: #101013;
  color: #666671;
  font-size: 9px;
}
.threads-footer .login-link {
  color: #96a3ff;
}
.threads-footer .login-link:hover {
  color: #fff;
}
.empty-block {
  padding: 42px 20px;
  text-align: center;
  color: #6f6f7a;
}
.empty-block .icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  color: #50505a;
}
.empty-block strong {
  display: block;
  margin-bottom: 3px;
  color: #a4a5b0;
  font-size: 12px;
  font-weight: 500;
}
.empty-block span {
  font-size: 10px;
}

/* ---------- Category heading block ---------- */
.category-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.category-title-copy {
  min-width: 0;
}
.category-heading-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.category-info-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #70707c;
  font-size: 9.5px;
}
.category-info-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.category-info-strip .icon {
  width: 11px;
  height: 11px;
}
.category-info-strip .sep {
  width: 1px;
  height: 12px;
  background: var(--line);
}

/* ---------- Topic page ---------- */
.container-topic {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.topic-title-wrap {
  margin-top: 6px;
}
.topic-title {
  max-width: 980px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f3f3f6;
}
.topic-subline {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #777783;
  font-size: 9.5px;
}
.topic-subline .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4d4d57;
}
.topic-subline a {
  color: #9798a3;
}
.topic-subline a:hover {
  color: #fff;
}
.topic-label-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.topic-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.025);
  color: #8e8e9a;
  font-size: 8.5px;
}
.topic-label.hot {
  border-color: rgba(249, 46, 140, 0.25);
  background: rgba(249, 46, 140, 0.06);
  color: #ff86bd;
}
.topic-label.solved {
  border-color: rgba(71, 219, 161, 0.22);
  background: rgba(71, 219, 161, 0.06);
  color: #83e7c2;
}
.topic-title-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.post {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.post-author {
  padding: 16px 14px;
  border-right: 1px solid var(--line);
  background: #0f0f13;
}
.post-author-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.post-author-avatar .avatar {
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.8);
}
.post-author-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  color: #e1e2e9;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s;
}
.post-author-name:hover {
  color: #a9b7ff;
}
.post-author-name .icon {
  width: 11px;
  height: 11px;
  color: #7d90ff;
}
.post-role-bar {
  width: 100%;
  margin-top: 7px;
}
.post-author-stats {
  width: 100%;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-author-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #5f5f6a;
  font-size: 8.5px;
}
.post-author-stat b {
  color: #93939f;
  font-weight: 400;
}
.post-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
}
.post-head-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6b6b77;
  font-size: 9px;
}
.post-head-time .icon {
  width: 11px;
  height: 11px;
}
.post-head-right {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.post-op-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 17px;
  padding: 0 5px;
  border: 1px solid rgba(76, 103, 255, 0.23);
  border-radius: 2px;
  background: rgba(76, 103, 255, 0.07);
  color: #91a2ff;
  font-size: 7.5px;
  font-weight: 500;
}
.post-number {
  color: #585862;
  font-size: 9px;
}
.post-anchor {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 2px;
  color: #55555f;
  transition: color 0.16s, background 0.16s;
}
.post-anchor:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.post-anchor .icon {
  width: 11px;
  height: 11px;
}
.post-body {
  flex: 1;
  padding: 17px 18px 19px;
  color: #b2b3bf;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.post-body > :first-child {
  margin-top: 0;
}
.post-body > :last-child {
  margin-bottom: 0;
}
.post-body p {
  margin: 0 0 11px;
}
.post-body h2 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #ebecef;
  letter-spacing: -0.02em;
}
.post-body h3 {
  margin: 17px 0 7px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: #e5e6eb;
}
.post-body ul,
.post-body ol {
  margin: 9px 0 13px;
  padding-left: 0;
}
.post-body ul li,
.post-body ol li {
  position: relative;
  margin: 5px 0;
  padding-left: 16px;
}
.post-body ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6f86ff;
}
.post-body ol {
  counter-reset: list;
}
.post-body ol li {
  counter-increment: list;
}
.post-body ol li::before {
  content: counter(list) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: #7187ff;
  font-size: 10px;
  font-weight: 600;
}
.post-body strong {
  color: #e7e8ee;
  font-weight: 600;
}
.post-body em {
  color: #c8c9d3;
}
.post-body a {
  color: #93a4ff;
  text-decoration: underline;
  text-decoration-color: rgba(147, 164, 255, 0.3);
  text-underline-offset: 2px;
}
.post-body a:hover {
  color: #fff;
}
.post-body code {
  padding: 2px 5px;
  border: 1px solid #2a2a32;
  border-radius: 2px;
  background: #0b0b0e;
  color: #b9c6ff;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 11px;
}
.post-body pre {
  position: relative;
  margin: 12px 0 15px;
  padding: 13px 14px;
  border: 1px solid #25252d;
  border-radius: var(--radius);
  background: #0a0a0d;
  overflow-x: auto;
}
.post-body pre code {
  padding: 0;
  border: 0;
  background: none;
  color: #a7b4e6;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre;
}
.post-body blockquote {
  margin: 13px 0;
  padding: 11px 14px;
  border-left: 2px solid #5870ff;
  border-radius: 0 2px 2px 0;
  background: rgba(76, 103, 255, 0.055);
  color: #a1a4b6;
}
.post-body blockquote p {
  margin: 0;
}
.post-body figure {
  margin: 15px 0;
}
.post-body figure img {
  width: 100%;
  border: 1px solid #2a2a32;
  border-radius: var(--radius);
  background: #0a0a0d;
}
.post-body figcaption {
  margin-top: 7px;
  color: #63636f;
  font-size: 9px;
  text-align: center;
}
.post-body hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.post-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 37px;
  padding: 5px 12px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.01);
}
.post-react {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #747480;
  font-size: 9px;
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}
.post-react:hover {
  color: #d3d4dd;
  background: rgba(255, 255, 255, 0.04);
}
.post-react.is-liked {
  color: #ff94c4;
  border-color: rgba(249, 46, 140, 0.2);
  background: rgba(249, 46, 140, 0.06);
}
.post-react .icon {
  width: 11px;
  height: 11px;
}
.post-foot-sep {
  width: 1px;
  height: 13px;
  margin: 0 3px;
  background: var(--line);
}
.post-foot-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.post-foot-right .post-react {
  font-size: 8.5px;
}
.code-copy {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid #2b2b33;
  border-radius: 2px;
  background: #131317;
  color: #767682;
  font-size: 8px;
  opacity: 0;
  transition: opacity 0.16s, color 0.16s;
}
.post-body pre:hover .code-copy {
  opacity: 1;
}
.code-copy:hover {
  color: #fff;
}
.code-copy .icon {
  width: 9px;
  height: 9px;
}
.posts-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  color: #64646f;
  font-size: 9px;
}
.posts-footer-note .icon {
  width: 11px;
  height: 11px;
}
.posts-footer-note span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- Reply editor ---------- */
.reply-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 7px 13px;
  border-bottom: 1px solid var(--line);
  background: #131316;
}
.reply-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cdced7;
  font-size: 11px;
  font-weight: 600;
}
.reply-title .icon {
  width: 13px;
  height: 13px;
  color: #8b9aff;
}
.reply-head-note {
  color: #666671;
  font-size: 9px;
}
.editor {
  background: #0d0d10;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
  min-height: 35px;
  padding: 4px 7px;
  border-bottom: 1px solid var(--line-soft);
  background: #111114;
}
.tool-btn {
  display: grid;
  place-items: center;
  width: 27px;
  height: 25px;
  border-radius: 2px;
  color: #6f6f7b;
  transition: color 0.15s, background 0.15s;
}
.tool-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}
.tool-btn .icon {
  width: 12px;
  height: 12px;
}
.tool-sep {
  width: 1px;
  height: 15px;
  margin: 0 4px;
  background: var(--line);
}
.editor-toolbar .editor-tabs {
  display: flex;
  gap: 1px;
  margin-left: auto;
}
.editor-tab {
  height: 24px;
  padding: 0 7px;
  border-radius: 2px;
  color: #64646f;
  font-size: 9px;
}
.editor-tab:hover {
  color: #b6b7c1;
}
.editor-tab.active {
  background: #22222a;
  color: #c9cad3;
}
.editor-input {
  display: block;
  width: 100%;
  min-height: 118px;
  padding: 11px 13px;
  border: 0;
  background: #0c0c0f;
  color: #c3c4ce;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.65;
  resize: vertical;
  outline: none;
}
.editor-input::placeholder {
  color: #52525c;
}
.reply-preview {
  display: none;
  min-height: 150px;
  padding: 15px;
  background: #0c0c0f;
  color: #b2b3bf;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.editor.preview-mode .editor-input {
  display: none;
}
.editor.preview-mode .reply-preview {
  display: block;
}
.reply-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: #111114;
}
.reply-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #5c5c67;
  font-size: 8.5px;
}
.reply-hint .icon {
  width: 10px;
  height: 10px;
}
.reply-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.reply-guest {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.reply-guest-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(76, 103, 255, 0.22);
  border-radius: 2px;
  background: rgba(76, 103, 255, 0.07);
  color: #8fa0ff;
  flex-shrink: 0;
}
.reply-guest-icon .icon {
  width: 16px;
  height: 16px;
}
.reply-guest-copy {
  min-width: 0;
  flex: 1;
}
.reply-guest-copy b {
  display: block;
  color: #c3c4ce;
  font-size: 11px;
  font-weight: 500;
}
.reply-guest-copy span {
  display: block;
  margin-top: 1px;
  color: #6a6a75;
  font-size: 9.5px;
}
.related-block {
  margin-top: 22px;
}
.related-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #8b8b96;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.related-heading a {
  color: #7787ee;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.related-card {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s, background 0.16s;
}
.related-card:hover {
  border-color: var(--line-strong);
  background: #141418;
}
.related-title {
  color: #b6b7c1;
  font-size: 10.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card:hover .related-title {
  color: #c8d0ff;
}
.related-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: #5f5f6a;
  font-size: 8.5px;
}
.related-meta .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #484852;
}

/* ---------- Forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.form-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
  background: #131316;
}
.form-panel-head b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cdced7;
  font-size: 11px;
  font-weight: 600;
}
.form-panel-head b .icon {
  width: 13px;
  height: 13px;
  color: #7f90ff;
}
.form-panel-head span {
  color: #5e5e69;
  font-size: 8.5px;
}
.form-body {
  padding: 16px;
}
.form-row {
  margin-bottom: 16px;
}
.form-row:last-child {
  margin-bottom: 0;
}
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #a8a9b4;
  font-size: 10px;
  font-weight: 500;
}
.form-label .req {
  color: var(--pink);
}
.form-label .counter {
  color: #60606b;
  font-size: 8.5px;
  font-weight: 400;
}
.text-input,
.select-input,
.textarea-input {
  width: 100%;
  border: 1px solid #292930;
  border-radius: var(--radius);
  background: #0c0c0f;
  color: #d1d2da;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.text-input {
  height: 38px;
  padding: 0 11px;
  font-size: 11.5px;
}
.textarea-input {
  min-height: 150px;
  padding: 10px 11px;
  font-size: 11.5px;
  line-height: 1.6;
  resize: vertical;
}
.text-input::placeholder,
.textarea-input::placeholder {
  color: #565661;
}
.text-input:focus,
.select-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: rgba(76, 103, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(76, 103, 255, 0.07);
}
.select-input {
  height: 38px;
  padding: 0 32px 0 11px;
  font-size: 11.5px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select-input option {
  background: #131317;
}
.select-wrap-form {
  position: relative;
}
.select-wrap-form > .icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  color: #6a6a75;
  pointer-events: none;
}
.tag-picker {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tag-option {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.022);
  color: #83838f;
  font-size: 9px;
  transition: all 0.15s;
}
.tag-option:hover {
  color: #d4d5de;
  border-color: var(--line-strong);
}
.tag-option.selected {
  border-color: rgba(76, 103, 255, 0.4);
  background: rgba(76, 103, 255, 0.09);
  color: #aebaff;
}
.tag-option .icon {
  width: 9px;
  height: 9px;
}
.form-field-hint {
  margin-top: 5px;
  color: #5d5d68;
  font-size: 8.5px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #7d7d89;
  font-size: 9.5px;
  line-height: 1.5;
}
.checkbox-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border: 1px solid #32323b;
  border-radius: 2px;
  background: #0c0c0f;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.checkbox-row input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-row input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.form-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  background: #111114;
}
.draft-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5e5e69;
  font-size: 8.5px;
}
.draft-state .icon {
  width: 10px;
  height: 10px;
  color: #6e7dcc;
}
.form-actions-row .btn-primary {
  margin-left: auto;
}
.form-error {
  display: none;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #ff8c8c;
  font-size: 9.5px;
}
.form-error.show {
  display: flex;
}
.form-error .icon {
  width: 10px;
  height: 10px;
}
.form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
  padding-top: 9px;
}
.tip-row {
  display: flex;
  gap: 8px;
  color: #858591;
  font-size: 9.5px;
  line-height: 1.5;
}
.tip-row .icon {
  width: 11px;
  height: 11px;
  margin-top: 2px;
  color: #7384ef;
  flex-shrink: 0;
}
.tip-row b {
  display: block;
  margin-bottom: 1px;
  color: #b0b1bc;
  font-weight: 500;
}
.auth-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(100% 130% at 50% 0%, rgba(76, 103, 255, 0.09), transparent 62%),
    var(--surface);
}
.auth-gate-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border: 1px solid rgba(76, 103, 255, 0.25);
  border-radius: 2px;
  background: rgba(76, 103, 255, 0.07);
  color: #9dacff;
}
.auth-gate-icon .icon {
  width: 20px;
  height: 20px;
}
.auth-gate h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.auth-gate p {
  max-width: 380px;
  margin-top: 6px;
  color: #878792;
  font-size: 10.5px;
  line-height: 1.55;
}
.auth-gate .btn {
  margin-top: 14px;
}

/* ---------- Members ---------- */
.members-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #131316;
}
.member-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 310px;
}
.member-search .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: #676773;
  pointer-events: none;
}
.member-search input {
  width: 100%;
  height: 30px;
  padding: 0 10px 0 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0e11;
  color: #cecfd8;
  font-size: 10.5px;
}
.member-search input::placeholder {
  color: #5c5c67;
}
.member-search input:focus {
  outline: none;
  border-color: var(--accent-line);
}
.member-filters {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.member-card {
  position: relative;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  transition: border-color 0.16s, background 0.16s;
  animation: rise 0.4s both;
  animation-delay: calc(var(--i, 0) * 24ms);
}
.member-card:hover {
  border-color: var(--line-strong);
  background: #141418;
}
.member-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.member-card-ava {
  position: relative;
  flex-shrink: 0;
}
.member-card-ava .avatar {
  width: 40px;
  height: 40px;
}
.member-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
}
.member-presence.offline {
  background: #55555e;
}
.member-card-info {
  min-width: 0;
  flex: 1;
}
.member-card-name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #dedfe6;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-card-name .icon {
  width: 10px;
  height: 10px;
  color: #7d90ff;
  flex-shrink: 0;
}
.member-card-role {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: #686874;
  font-size: 8.5px;
}
.member-card-stats {
  display: flex;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
}
.member-card-stat {
  flex: 1;
}
.member-card-stat + .member-card-stat {
  padding-left: 8px;
  border-left: 1px solid var(--line-soft);
}
.member-card-stat b {
  display: block;
  color: #b3b4bf;
  font-size: 10px;
  font-weight: 500;
}
.member-card-stat span {
  display: block;
  margin-top: 1px;
  color: #5a5a65;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.member-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
  color: #5a5a65;
  font-size: 8px;
}
.members-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  color: #6e6e79;
  font-size: 10.5px;
}
.member-stats-strip {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #6c6c78;
  font-size: 9px;
}
.member-stats-strip span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.member-stats-strip .icon {
  width: 10px;
  height: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 34px;
  border-top: 1px solid #1d1d22;
  background: #08080a;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding: 30px 0 24px;
  border-bottom: 1px solid #18181d;
}
.footer-brand {
  max-width: 330px;
}
.footer-brand img {
  width: 96px;
  margin-bottom: 10px;
}
.footer-brand p {
  color: #5d5d68;
  font-size: 9.5px;
  line-height: 1.6;
}
.footer-brand .footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  padding: 5px 8px;
  border: 1px solid rgba(71, 219, 161, 0.13);
  border-radius: 2px;
  background: rgba(71, 219, 161, 0.04);
  color: #7bbfa5;
  font-size: 8px;
}
.footer-links {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}
.footer-col h4 {
  margin-bottom: 9px;
  color: #85858f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer-col a,
.footer-col button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  color: #5e5e69;
  font-size: 9.5px;
  text-align: left;
  transition: color 0.16s;
}
.footer-col a:hover,
.footer-col button:hover {
  color: #d0d1da;
}
.footer-col .icon {
  width: 9px;
  height: 9px;
  opacity: 0.65;
}
.footer-socials {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}
.social-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #232329;
  border-radius: 2px;
  color: #6b6b77;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.social-btn:hover {
  color: #fff;
  border-color: #33333c;
  background: rgba(255, 255, 255, 0.035);
}
.social-btn .icon {
  width: 13px;
  height: 13px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 0;
  color: #4d4d57;
  font-size: 8.5px;
}
.footer-lang {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #232329;
  border-radius: 2px;
  color: #7a7a85;
  font-size: 8.5px;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}
.footer-legal button:hover,
.footer-legal a:hover {
  color: #b1b2bc;
}
.footer-up {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a7a85;
}
.footer-note {
  width: 100%;
  margin-top: 2px;
  color: #3e3e47;
  font-size: 8px;
}

/* ---------- Search overlay ---------- */
.search-screen {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 18px 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0.18s;
}
.search-screen.open {
  visibility: visible;
  opacity: 1;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(7px);
}
.search-panel {
  position: relative;
  width: min(640px, 100%);
  border: 1px solid #2d2d35;
  border-radius: var(--radius);
  background: #101013;
  box-shadow: 0 45px 110px -18px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  background: #131316;
}
.search-bar > .icon {
  width: 16px;
  height: 16px;
  color: #7a8df5;
}
.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.search-input::placeholder {
  color: #5e5e69;
}
.search-body {
  max-height: min(55vh, 450px);
  overflow-y: auto;
  padding: 7px;
}
.search-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 9px 5px;
  color: #5d5d68;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.search-group-title span {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #474751;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 2px;
  text-align: left;
  transition: background 0.14s;
}
.search-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.search-item-copy {
  min-width: 0;
  flex: 1;
}
.search-item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c9cad3;
  font-size: 11px;
}
.search-item-title mark {
  background: transparent;
  color: #a9b7ff;
}
.search-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: #5d5d68;
  font-size: 8.5px;
}
.search-item-meta .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #474751;
}
.search-item > .icon {
  width: 11px;
  height: 11px;
  color: #5a5a65;
}
.search-empty {
  padding: 36px 18px;
  text-align: center;
  color: #5d5d68;
  font-size: 10.5px;
}
.search-empty strong {
  display: block;
  margin-bottom: 3px;
  color: #a6a7b2;
  font-size: 11px;
  font-weight: 500;
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px 9px 11px;
}
.search-chip {
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.022);
  color: #8c8c97;
  font-size: 9px;
  transition: all 0.15s;
}
.search-chip:hover {
  color: #fff;
  border-color: var(--line-strong);
}
.search-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #0d0d10;
  color: #52525c;
  font-size: 8px;
}
.search-foot span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 4, 6, 0.76);
  backdrop-filter: blur(7px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0.18s;
}
.modal-overlay.open {
  visibility: visible;
  opacity: 1;
}
.modal {
  position: relative;
  width: min(410px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid #2b2b33;
  border-radius: var(--radius);
  background: #111114;
  box-shadow: 0 60px 140px -25px rgba(0, 0, 0, 0.95);
  transform: translateY(6px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-head {
  position: relative;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  background: #141418;
}
.modal-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(76, 103, 255, 0.6);
}
.modal-kicker {
  color: #7d8cf5;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.modal-title {
  margin-top: 3px;
  color: #edeef3;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.modal-sub {
  margin-top: 3px;
  color: #7a7a85;
  font-size: 9.5px;
  line-height: 1.5;
}
.modal-close {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  color: #656570;
  transition: color 0.16s, background 0.16s;
}
.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}
.modal-close .icon {
  width: 12px;
  height: 12px;
}
.modal-body {
  padding: 15px;
}
.auth-form .form-row {
  margin-bottom: 11px;
}
.auth-form .text-input {
  height: 38px;
}
.auth-form .btn {
  height: 38px;
  margin-top: 2px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0;
  color: #52525c;
  font-size: 8px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.btn-discord {
  width: 100%;
  height: 37px;
  color: #c5caff;
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.24);
  font-size: 10.5px;
}
.btn-discord:hover {
  background: rgba(88, 101, 242, 0.19);
  border-color: rgba(88, 101, 242, 0.4);
  color: #fff;
}
.auth-note {
  margin-top: 11px;
  color: #565661;
  font-size: 8.5px;
  line-height: 1.5;
  text-align: center;
}
.auth-switch {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  color: #5f5f6a;
  font-size: 9.5px;
  text-align: center;
}
.auth-switch button {
  margin-left: 3px;
  color: #97a6ff;
}
.auth-switch button:hover {
  color: #fff;
}
.modal-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-rule {
  display: flex;
  gap: 9px;
  color: #83838f;
  font-size: 10px;
  line-height: 1.55;
}
.modal-rule .rule-index {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.025);
  color: #6f6f7a;
  font-size: 8px;
  flex-shrink: 0;
}
.modal-rule b {
  display: block;
  margin-bottom: 1px;
  color: #b8b9c4;
  font-weight: 500;
}
.modal-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.modal-actions .btn {
  flex: 1;
  height: 34px;
  font-size: 10.5px;
}
.profile-modal-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.profile-modal-head .avatar {
  width: 54px;
  height: 54px;
}
.profile-modal-stats {
  display: flex;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.profile-modal-stat {
  flex: 1;
  padding: 9px;
  text-align: center;
  background: rgba(255, 255, 255, 0.018);
}
.profile-modal-stat + .profile-modal-stat {
  border-left: 1px solid var(--line);
}
.profile-modal-stat b {
  display: block;
  color: #c5c6cf;
  font-size: 12px;
  font-weight: 500;
}
.profile-modal-stat span {
  display: block;
  margin-top: 1px;
  color: #5a5a65;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 330px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #303038;
  border-radius: var(--radius);
  background: #151519;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9);
  color: #c5c6cf;
  font-size: 10.5px;
  line-height: 1.45;
  animation: toast-in 0.22s ease both;
  pointer-events: auto;
}
.toast.removing {
  animation: toast-out 0.2s ease both;
}
.toast-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background: rgba(76, 103, 255, 0.1);
  color: #9dacff;
  flex-shrink: 0;
}
.toast-icon.success {
  background: rgba(71, 219, 161, 0.08);
  color: #7fe3bf;
}
.toast-icon.error {
  background: rgba(255, 104, 104, 0.09);
  color: #ff9696;
}
.toast-icon .icon {
  width: 11px;
  height: 11px;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(5px); }
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.forum-group,
.forum-link-node,
.forum-promo,
.widget {
  animation: rise 0.4s ease both;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .topbar-inner {
    gap: 18px;
  }
  .topbar-nav a {
    padding: 0 9px;
  }
  .forum-node {
    grid-template-columns: 36px minmax(0, 1fr) 142px 210px;
  }
  .thread-item {
    grid-template-columns: 30px minmax(0, 1fr) 58px 58px 160px;
  }
  .threads-list-head span:last-child {
    width: 160px;
  }
  .forum-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 1060px) {
  .topbar-nav a {
    padding: 0 8px;
    font-size: 9.5px;
  }
  .brand-suffix {
    display: none;
  }
  .forum-node {
    grid-template-columns: 36px minmax(0, 1fr) 210px;
  }
  .forum-node .node-stats {
    display: none;
  }
  .threads-list-head span:nth-child(3) {
    display: none;
  }
  .thread-item {
    grid-template-columns: 30px minmax(0, 1fr) 56px 160px;
  }
  .thread-item .thread-count-col.views {
    display: none;
  }
  .forum-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .topbar-search-text {
    display: none;
  }
}
@media (max-width: 900px) {
  .topbar-nav {
    display: none;
  }
  .topbar-menu-btn {
    display: inline-flex;
  }
  .topbar-inner {
    gap: 12px;
  }
  .topbar-search-kbd {
    display: none;
  }
  .forum-layout {
    grid-template-columns: 1fr;
  }
  .forum-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .forum-sidebar .widget:nth-child(3) {
    grid-column: 1 / -1;
  }
  .thread-item {
    grid-template-columns: 30px minmax(0, 1fr) 54px;
  }
  .thread-item .thread-last-col {
    display: none;
  }
  .thread-count-col.views {
    display: none;
  }
  .threads-list-head span:last-child,
  .threads-list-head span:nth-child(3),
  .threads-list-head span:nth-child(4) {
    display: none;
  }
  .threads-list-head span:nth-child(2) {
    width: 54px;
  }
  .post {
    grid-template-columns: 142px minmax(0, 1fr);
  }
  .post-author {
    padding: 13px 10px;
  }
  .post-author-avatar .avatar {
    width: 56px;
    height: 56px;
  }
  .post-author-stat {
    font-size: 8px;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .container-topic {
    width: calc(100% - 32px);
  }
  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .container {
    width: calc(100% - 28px);
  }
  .app-main {
    padding-bottom: 44px;
  }
  .page {
    padding-top: 14px;
  }
  .topbar {
    --header-h: 56px;
  }
  .brand img {
    width: 88px;
  }
  .topbar-right {
    gap: 1px;
  }
  .topbar-auth-btn {
    padding: 0 7px;
    font-size: 10.5px;
  }
  .topbar-auth-btn .icon {
    width: 13px;
    height: 13px;
  }
  .topbar-sep {
    margin: 0 3px;
  }
  .topbar .icon-btn {
    width: 32px;
    height: 32px;
  }
  .page-title {
    font-size: 27px;
  }
  .page-sub {
    font-size: 10.5px;
  }
  .page-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding-top: 4px;
  }
  .page-title-actions {
    padding-bottom: 0;
  }
  .online-pill {
    height: 29px;
    font-size: 9px;
  }
  .notice {
    flex-wrap: wrap;
    padding: 10px 11px;
    gap: 9px;
  }
  .notice-text {
    font-size: 10.5px;
  }
  .notice-actions {
    margin-left: 36px;
    width: calc(100% - 36px);
  }
  .notice-btn {
    height: 29px;
    font-size: 9.5px;
  }
  .notice-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 23px;
    height: 23px;
  }
  .notice-text {
    padding-right: 20px;
  }
  .breadcrumbs {
    margin-top: 12px;
    padding: 8px 10px;
    font-size: 8.5px;
  }
  .breadcrumbs .current {
    max-width: 210px;
  }
  .forum-promo {
    min-height: 204px;
  }
  .forum-promo-inner {
    min-height: 204px;
    padding: 18px;
    max-width: 100%;
    justify-content: flex-end;
  }
  .forum-promo-bg img {
    object-position: 62% center;
  }
  .forum-promo-bg::after {
    background:
      linear-gradient(0deg, #0b0b0e 2%, rgba(11, 11, 14, 0.94) 38%, rgba(11, 11, 14, 0.45) 75%, rgba(11, 11, 14, 0.15) 100%),
      linear-gradient(90deg, rgba(11, 11, 14, 0.4), transparent 90%);
  }
  .forum-promo h2 {
    font-size: 25px;
  }
  .forum-promo p {
    max-width: 100%;
    font-size: 10.5px;
  }
  .promo-meta {
    display: none;
  }
  .forum-group-head {
    height: 42px;
  }
  .forum-group-title {
    font-size: 13.5px;
  }
  .forum-node {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    min-height: 0;
  }
  .node-icon {
    width: 32px;
    height: 32px;
  }
  .node-stats,
  .node-last {
    display: none;
  }
  .node-mobile-last {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: #7b7b87;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .node-mobile-last .sep {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #484852;
  }
  .node-title {
    font-size: 13px;
  }
  .node-desc {
    font-size: 9.5px;
    -webkit-line-clamp: 2;
  }
  .node-subforums {
    font-size: 8.5px;
    margin-top: 3px;
  }
  .forum-link-node {
    padding: 11px 12px;
    min-height: 60px;
  }
  .forum-link-node-title {
    font-size: 12px;
  }
  .forum-link-node-desc {
    font-size: 9.5px;
  }
  .forum-sidebar {
    grid-template-columns: 1fr;
  }
  .forum-sidebar .widget:nth-child(3) {
    grid-column: auto;
  }
  .widget-head {
    padding: 11px 12px 9px;
  }
  .widget-body {
    padding: 0 12px 11px;
  }
  .threads-toolbar {
    padding: 6px 8px;
    flex-wrap: wrap;
  }
  .thread-tab {
    height: 26px;
    padding: 0 8px;
    font-size: 9.5px;
  }
  .threads-list-head {
    padding: 0 12px;
  }
  .thread-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px;
    min-height: 0;
  }
  .thread-item-avatar .avatar {
    width: 28px;
    height: 28px;
  }
  .thread-item-title {
    font-size: 11.5px;
  }
  .thread-count-col {
    display: none;
  }
  .thread-item-meta {
    font-size: 8.5px;
    gap: 3px;
  }
  .thread-item-meta .thread-mobile-stats {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .threads-list-head {
    display: none;
  }
  .threads-footer {
    padding: 7px 10px;
    font-size: 8.5px;
  }
  .threads-footer span:last-child {
    display: none;
  }
  .thread-section-label {
    padding: 0 12px;
  }
  .category-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .topic-title {
    font-size: 23px;
  }
  .topic-subline {
    font-size: 8.5px;
  }
  .topic-title-actions {
    width: 100%;
  }
  .topic-title-actions .btn span {
    display: none;
  }
  .topic-title-actions .btn {
    padding: 0 10px;
  }
  .post {
    grid-template-columns: 1fr;
  }
  .post-author {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .post-author-avatar {
    flex-direction: row;
    text-align: left;
    gap: 8px;
    width: auto;
    flex: 1;
  }
  .post-author-avatar .avatar {
    width: 34px;
    height: 34px;
  }
  .post-author-name {
    margin-top: 0;
    font-size: 11px;
  }
  .post-role-bar {
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
    font-size: 7px;
    min-height: 18px;
  }
  .post-author-stats {
    display: none;
  }
  .post-body {
    padding: 14px;
    font-size: 12px;
  }
  .post-body h2 {
    font-size: 17px;
  }
  .post-head {
    min-height: 34px;
    padding: 6px 12px;
  }
  .post-foot {
    padding: 5px 9px;
  }
  .post-foot-right .post-react span {
    display: none;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .reply-head {
    flex-wrap: wrap;
  }
  .reply-head-note {
    width: 100%;
  }
  .reply-foot .reply-hint {
    display: none;
  }
  .reply-actions {
    width: 100%;
  }
  .reply-actions .btn {
    flex: 1;
  }
  .reply-guest {
    flex-wrap: wrap;
  }
  .reply-guest .btn {
    width: 100%;
  }
  .form-side {
    grid-template-columns: 1fr;
  }
  .form-body {
    padding: 13px;
  }
  .form-actions-row {
    flex-wrap: wrap;
    padding: 10px 13px;
  }
  .form-actions-row .draft-state {
    display: none;
  }
  .form-actions-row .btn {
    flex: 1;
  }
  .form-actions-row .btn-primary {
    margin-left: 0;
  }
  .members-grid {
    grid-template-columns: 1fr;
  }
  .members-toolbar {
    gap: 7px;
    padding: 8px 9px;
  }
  .member-filters {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
  }
  .member-filters .thread-tab {
    white-space: nowrap;
  }
  .footer-main {
    gap: 24px;
    padding: 24px 0 18px;
  }
  .footer-links {
    gap: 26px;
    width: 100%;
    justify-content: space-between;
  }
  .footer-bottom {
    gap: 8px;
    padding: 11px 0;
  }
  .footer-note {
    display: none;
  }
  .search-screen {
    padding: 7vh 12px 16px;
  }
  .toast-root {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
  .toast {
    max-width: none;
  }
  .container-topic {
    width: calc(100% - 28px);
  }
}
@media (max-width: 520px) {
  .brand img {
    width: 80px;
  }
  .topbar-auth-btn {
    display: none;
  }
  .topbar-sep {
    display: none;
  }
  .topbar-right .icon-btn.bell-btn {
    display: none;
  }
  .page-title {
    font-size: 25px;
  }
  .online-pill .avatar-stack {
    display: none;
  }
  .promo-actions {
    flex-wrap: wrap;
  }
  .promo-actions .btn {
    flex: 1;
  }
  .forum-promo h2 {
    font-size: 23px;
  }
  .notice-actions {
    margin-left: 0;
    width: 100%;
  }
  .notice-close {
    top: 6px;
    right: 6px;
  }
  .category-title-actions .btn span {
    display: none;
  }
  .category-title-actions .btn {
    padding: 0 10px;
  }
  .topic-title-actions {
    flex-wrap: wrap;
  }
  .topic-label-row {
    margin-bottom: 8px;
  }
  .form-label {
    flex-wrap: wrap;
  }
  .members-grid {
    gap: 8px;
  }
  .member-card {
    padding: 11px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-col {
    min-width: 100px;
  }
  .footer-brand {
    max-width: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   CLARITY PASS
   Larger, cleaner typography and crisp surfaces.
   Inspired by the legibility of forum.majestic-rp.ru.
   ========================================================= */

body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* Remove composited animations that soften text on Windows */
.page,
.forum-group,
.forum-link-node,
.forum-promo,
.widget,
.member-card,
.thread-item {
  animation: none !important;
}
.btn,
.btn:hover,
.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover,
.btn-pink:hover,
.discord-btn:hover,
.member-card:hover,
.forum-node:hover,
.thread-item:hover {
  transform: none !important;
}

/* Solid header and crisp edges */
.topbar {
  background: #0d0e12;
  border-bottom-color: #2a2b33;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand img {
  width: 108px;
}
.brand-suffix {
  font-size: 9px;
  color: #858590;
}
.topbar-nav a {
  color: #a5a5b1;
  font-size: 11.5px;
  letter-spacing: 0.075em;
}
.topbar-nav a.active {
  color: #ffffff;
}
.topbar-right .icon-btn {
  width: 34px;
  height: 34px;
  color: #a5a5b1;
}
.topbar-auth-btn {
  height: 36px;
  padding: 0 11px;
  color: #b1b1bd;
  font-size: 12px;
}
.topbar-auth-btn .icon {
  width: 15px;
  height: 15px;
  color: #8b8b97;
}
.user-chip {
  height: 40px;
}
.user-chip-name {
  font-size: 12.5px;
  color: #d4d5de;
}
.popover {
  background: #15151a;
  border-color: #33343d;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.popover-item {
  font-size: 12px;
}
.popover-label {
  font-size: 9px;
}
.notif-item p {
  font-size: 11.5px;
}
.notif-item span {
  font-size: 10px;
}
.user-popover-head b {
  font-size: 12.5px;
}

/* Page titles */
.page {
  padding-top: 26px;
}
.page-title {
  font-family: var(--font-ui);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #f5f5f8;
}
.page-sub {
  margin-top: 7px;
  max-width: 700px;
  color: #9d9daa;
  font-size: 13px;
  line-height: 1.55;
}
.online-pill {
  height: 34px;
  color: #b1b1bd;
  font-size: 11px;
}
.online-pill b {
  color: #e4e5ec;
  font-weight: 500;
}
.topic-title {
  font-family: var(--font-ui);
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.page-title-actions {
  gap: 8px;
}

/* Buttons */
.btn {
  height: 38px;
  padding: 0 15px;
  font-size: 12.5px;
  font-weight: 500;
}
.btn-sm {
  height: 32px;
  padding: 0 11px;
  font-size: 11.5px;
}
.btn-lg {
  height: 42px;
  font-size: 13px;
}
.icon-btn {
  color: #a5a5b1;
}
.notice {
  min-height: 60px;
  border-color: #2e2f38;
  background:
    linear-gradient(90deg, rgba(249, 46, 140, 0.04), transparent 40%),
    #131318;
}
.notice-text {
  color: #c0c1cb;
  font-size: 12.5px;
  line-height: 1.5;
}
.notice-text strong {
  color: #f0f1f4;
  font-weight: 600;
}
.notice-icon {
  width: 30px;
  height: 30px;
}
.notice-icon .icon {
  width: 14px;
  height: 14px;
}
.notice-btn {
  height: 34px;
  font-size: 11.5px;
}
.breadcrumbs {
  margin-top: 18px;
  padding: 10px 13px;
  color: #7d7d89;
  font-size: 10.5px;
}
.breadcrumbs a {
  color: #9999a5;
}
.breadcrumbs .current {
  color: #b9bac4;
}

/* Promo */
.forum-promo {
  border-color: #2e2f38;
}
.forum-promo-inner {
  padding: 24px 28px;
}
.promo-kicker {
  font-size: 9.5px;
  color: #c1caff;
}
.promo-kicker .promo-new {
  height: 17px;
  padding: 0 5px;
  font-size: 8px;
}
.forum-promo h2 {
  margin-top: 9px;
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.forum-promo p {
  margin-top: 7px;
  color: #b0b1bd;
  font-size: 12.5px;
  line-height: 1.55;
}
.promo-actions {
  margin-top: 15px;
}
.promo-actions .btn {
  height: 34px;
  font-size: 11.5px;
}
.promo-meta {
  color: #d6d7df;
  font-size: 9.5px;
  background: rgba(9, 10, 14, 0.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Group headers: clean, sharp, no blurry curves */
.forum-group-head {
  height: 48px;
  padding: 0 16px;
  background: linear-gradient(100deg, #2d46d6 0%, #4c67ff 58%, #6c56f2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.forum-group-head::before,
.forum-group-head::after {
  display: none;
}
.forum-group-title {
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: none;
}
.forum-group-title .group-count {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
}
.forum-group-toggle {
  width: 28px;
  height: 28px;
}
.forum-group-toggle .icon {
  width: 16px;
  height: 16px;
}

/* Forum nodes */
.forum-group-body {
  border-color: #2c2d35;
  background: #121216;
}
.forum-node {
  min-height: 84px;
  padding: 14px 16px;
  border-top-color: #23242b;
}
.forum-node:hover {
  background: #17181e;
}
.node-icon {
  width: 36px;
  height: 36px;
}
.node-icon .icon {
  width: 17px;
  height: 17px;
}
.node-title {
  color: #f0f1f5;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.node-desc {
  margin-top: 4px;
  color: #9d9daa;
  font-size: 12.5px;
  line-height: 1.45;
}
.node-subforums {
  margin-top: 5px;
  gap: 8px;
  color: #85858f;
  font-size: 10.5px;
}
.node-subforums .subforums-label {
  color: #71717d;
}
.node-subforums a {
  color: #a0a0ac;
}
.node-subforums a:hover {
  color: #b7c2ff;
}
.badge-new {
  height: 17px;
  padding: 0 5px;
  font-size: 8px;
  font-weight: 600;
}
.node-stats {
  border-left-color: #26272f;
}
.node-stat {
  min-width: 64px;
}
.node-stat span {
  color: #7f7f8b;
  font-size: 9px;
  letter-spacing: 0.07em;
}
.node-stat b {
  margin-top: 3px;
  color: #d9dae2;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.node-last {
  padding-left: 14px;
  border-left-color: #26272f;
}
.node-last .avatar {
  width: 30px;
  height: 30px;
}
.node-last-title {
  color: #c7c8d2;
  font-size: 12px;
}
.node-last-meta {
  margin-top: 3px;
  color: #8a8a95;
  font-size: 10px;
}
.node-mobile-last {
  color: #92929e;
  font-size: 10px;
}
.forum-link-node {
  min-height: 74px;
  border-color: #2c2d35;
}
.forum-link-node:hover {
  background: #17181e;
}
.forum-link-node-title {
  font-size: 14px;
  color: #e4e5ec;
}
.forum-link-node-desc {
  font-size: 11.5px;
  color: #9494a0;
}

/* Sidebar */
.forum-sidebar {
  gap: 18px;
}
.widget {
  border-color: #2c2d35;
  background: #121216;
}
.widget-head {
  padding: 14px 15px 10px;
}
.widget-title {
  color: #d3d4dc;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.widget-title .icon {
  width: 13px;
  height: 13px;
  color: #8c8c98;
}
.widget-head-link {
  color: #8c8c98;
  font-size: 10px;
}
.widget-body {
  padding: 0 15px 14px;
}
.recent-item {
  gap: 10px;
  padding: 10px 0;
}
.recent-item .avatar {
  width: 30px;
  height: 30px;
}
.recent-title {
  color: #cdced8;
  font-size: 12px;
  line-height: 1.45;
}
.recent-meta {
  margin-top: 4px;
  color: #8a8a95;
  font-size: 9.5px;
}
.stats-row {
  padding: 8px 0;
  color: #9b9ba7;
  font-size: 12px;
}
.stats-row b {
  color: #d8d9e1;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.product-widget {
  border-color: #31449f;
}
.product-widget-head b {
  font-size: 13.5px;
}
.product-widget-head span {
  color: #8a8a95;
  font-size: 9.5px;
}
.product-widget-body p {
  color: #a2a2ae;
  font-size: 11.5px;
}
.product-widget-body li {
  color: #a0a0ac;
  font-size: 10.5px;
}
.product-widget-body .btn {
  height: 32px;
  font-size: 11.5px;
}
.live-tag {
  height: 19px;
  font-size: 8px;
}
.moderator-name {
  color: #cfd0da;
  font-size: 12px;
}
.moderator-role {
  color: #858590;
  font-size: 9.5px;
}
.rule-item {
  color: #9a9aa6;
  font-size: 10.5px;
}
.rules-list {
  gap: 9px;
}

/* Thread listing */
.threads-panel {
  border-color: #2c2d35;
  background: #121216;
}
.threads-toolbar {
  min-height: 48px;
  padding: 8px 14px;
  border-bottom-color: #2a2b33;
  background: #16161b;
}
.thread-tab {
  height: 30px;
  padding: 0 12px;
  color: #a0a0ac;
  font-size: 11.5px;
}
.thread-tab:hover {
  color: #fff;
}
.thread-tab.active {
  color: #fff;
  background: #262730;
}
.select-control {
  height: 32px;
  color: #a5a5b1;
  font-size: 11px;
}
.threads-list-head {
  height: 32px;
  color: #7d7d89;
  font-size: 9px;
  letter-spacing: 0.06em;
  background: #101014;
}
.thread-section-label {
  min-height: 34px;
  color: #9a9aa6;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  background: #191a20;
}
.thread-section-label .label-count {
  color: #767682;
}
.thread-item {
  min-height: 68px;
  padding: 12px 14px;
  border-bottom-color: #23242b;
}
.thread-item:hover {
  background: #17181e;
}
.thread-item-avatar .avatar {
  width: 30px;
  height: 30px;
}
.thread-item-title {
  color: #e7e8ef;
  font-size: 14px;
  font-weight: 500;
}
.thread-item-meta {
  margin-top: 4px;
  color: #81818d;
  font-size: 10.5px;
}
.thread-item-meta a {
  color: #a2a2ae;
}
.thread-pin,
.thread-solved {
  height: 18px;
  font-size: 8px;
}
.thread-badge-new {
  height: 16px;
  font-size: 7.5px;
}
.thread-count-col {
  color: #8c8c98;
  font-size: 11px;
}
.thread-count-col b {
  color: #c6c7d1;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.thread-count-col span {
  color: #71717d;
  font-size: 8px;
}
.thread-last-name {
  color: #b2b3bd;
  font-size: 10.5px;
}
.thread-last-time {
  color: #7b7b87;
  font-size: 9.5px;
}
.threads-footer {
  min-height: 42px;
  color: #8a8a95;
  font-size: 10px;
}
.empty-block {
  color: #8a8a95;
}
.empty-block strong {
  font-size: 13px;
  color: #bdbec8;
}
.empty-block span {
  font-size: 11px;
}

/* Category heading */
.category-title-row {
  padding-top: 2px;
}
.category-heading-actions .btn {
  height: 38px;
}
.category-info-strip {
  color: #8d8d99;
  font-size: 10.5px;
}

/* Topic */
.topic-title-wrap {
  margin-top: 8px;
}
.topic-label-row {
  gap: 6px;
  margin-bottom: 11px;
}
.topic-label {
  height: 20px;
  padding: 0 7px;
  color: #a3a3af;
  font-size: 9.5px;
}
.topic-subline {
  gap: 9px;
  margin-top: 12px;
  color: #8b8b97;
  font-size: 10.5px;
}
.topic-subline a {
  color: #b0b1bc;
}
.topic-title-actions .btn {
  height: 34px;
  font-size: 11.5px;
}
.post {
  border-color: #2c2d35;
  background: #121216;
}
.post-author {
  border-right-color: #2a2b33;
  background: #101014;
}
.post-author-avatar .avatar {
  width: 68px;
  height: 68px;
}
.post-author-name {
  margin-top: 10px;
  color: #ececf2;
  font-size: 13px;
  font-weight: 500;
}
.post-role-bar {
  margin-top: 8px;
}
.role-bar {
  min-height: 23px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
}
.post-author-stats {
  margin-top: 13px;
  padding-top: 10px;
  border-top-color: #26272f;
  gap: 5px;
}
.post-author-stat {
  color: #82828e;
  font-size: 9.5px;
}
.post-author-stat b {
  color: #b6b7c1;
  font-size: 10px;
}
.post-head {
  min-height: 42px;
  padding: 8px 15px;
  border-bottom-color: #26272f;
  background: #15151a;
}
.post-head-time {
  color: #8b8b97;
  font-size: 10px;
}
.post-head-time .icon {
  width: 12px;
  height: 12px;
}
.post-op-tag {
  height: 19px;
  font-size: 8.5px;
}
.post-number {
  color: #7d7d89;
  font-size: 10px;
}
.post-anchor {
  width: 25px;
  height: 25px;
}
.post-body {
  padding: 19px 20px 20px;
  color: #c2c3cd;
  font-size: 14px;
  line-height: 1.78;
}
.post-body p {
  margin-bottom: 12px;
}
.post-body h2 {
  margin-top: 22px;
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 600;
}
.post-body h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
}
.post-body code {
  font-size: 12px;
}
.post-body pre {
  border-color: #2c2d35;
  background: #0b0b0f;
}
.post-body pre code {
  font-size: 12px;
  line-height: 1.75;
}
.post-body figcaption {
  font-size: 10px;
  color: #858591;
}
.post-body blockquote {
  color: #b3b4c0;
}
.post-foot {
  min-height: 40px;
  padding: 6px 14px;
  border-top-color: #26272f;
  background: #111115;
}
.post-react {
  height: 28px;
  padding: 0 8px;
  color: #8c8c98;
  font-size: 10.5px;
}
.post-react .icon {
  width: 12px;
  height: 12px;
}
.posts-footer-note {
  min-height: 40px;
  color: #858591;
  font-size: 10px;
  border-color: #292a32;
}
.related-heading {
  color: #a0a0ac;
  font-size: 9.5px;
}
.related-card {
  border-color: #2c2d35;
  background: #121216;
}
.related-title {
  color: #c7c8d2;
  font-size: 11.5px;
}
.related-meta {
  color: #7f7f8b;
  font-size: 9.5px;
}
.reply-head {
  min-height: 44px;
  padding: 8px 14px;
  background: #15151a;
}
.reply-title {
  font-size: 12px;
}
.reply-head-note {
  color: #858591;
  font-size: 10px;
}
.editor-toolbar {
  min-height: 38px;
}
.tool-btn {
  width: 29px;
  height: 27px;
}
.editor-tab {
  height: 26px;
  font-size: 10px;
}
.editor-input {
  min-height: 130px;
  font-size: 13px;
  line-height: 1.7;
  color: #d0d1da;
}
.reply-foot {
  padding: 10px 13px;
}
.reply-hint {
  font-size: 9.5px;
  color: #7f7f8b;
}
.reply-actions .btn {
  height: 34px;
  font-size: 11.5px;
}
.reply-guest-copy b {
  font-size: 12px;
}
.reply-guest-copy span {
  font-size: 10.5px;
}
.reply-preview {
  font-size: 13px;
}

/* Members */
.member-stats-strip {
  color: #8f8f9b;
  font-size: 10.5px;
}
.member-search input {
  height: 32px;
  font-size: 12px;
}
.members-toolbar {
  background: #16161b;
}
.member-card {
  border-color: #2c2d35;
  background: #121216;
}
.member-card:hover {
  background: #17181e;
}
.member-card-ava .avatar {
  width: 44px;
  height: 44px;
}
.member-card-name {
  color: #e4e5ec;
  font-size: 13px;
}
.member-card-role {
  color: #858590;
  font-size: 9.5px;
}
.member-card-stats {
  border-top-color: #26272f;
}
.member-card-stat b {
  color: #cdced8;
  font-size: 11.5px;
  font-weight: 500;
}
.member-card-stat span {
  color: #73737f;
  font-size: 8px;
}
.member-card-foot {
  color: #73737f;
  font-size: 9px;
}
.members-empty {
  font-size: 11.5px;
}

/* Forms */
.form-panel {
  background: #121216;
  border-color: #2c2d35;
}
.form-panel-head {
  min-height: 46px;
  background: #16161b;
}
.form-panel-head b {
  font-size: 12.5px;
}
.form-panel-head span {
  color: #858591;
  font-size: 9.5px;
}
.form-body {
  padding: 18px;
}
.form-label {
  margin-bottom: 7px;
  color: #c0c1cb;
  font-size: 11.5px;
}
.form-label .counter {
  color: #7f7f8b;
  font-size: 9.5px;
}
.text-input,
.select-input {
  height: 42px;
  font-size: 13px;
}
.textarea-input {
  font-size: 13px;
  line-height: 1.65;
}
.select-input {
  font-size: 12.5px;
}
.form-field-hint {
  color: #7f7f8b;
  font-size: 9.5px;
}
.tag-option {
  height: 28px;
  padding: 0 9px;
  color: #9a9aa6;
  font-size: 10.5px;
}
.editor-tabs .editor-tab {
  height: 26px;
}
.checkbox-row {
  color: #9696a2;
  font-size: 10.5px;
}
.form-actions-row {
  padding: 12px 16px;
  background: #15151a;
}
.draft-state {
  color: #7f7f8b;
  font-size: 9.5px;
}
.form-error {
  font-size: 10.5px;
}
.tip-row {
  color: #9a9aa6;
  font-size: 10.5px;
}
.tip-row b {
  color: #c9cad3;
}
.auth-gate p {
  font-size: 11.5px;
  color: #9696a2;
}
.rule-row {
  font-size: 11px;
}
.mini-link {
  font-size: 11.5px;
}

/* Search overlay */
.search-panel {
  background: #121216;
  border-color: #34353f;
}
.search-bar {
  padding: 14px 15px;
  background: #16161b;
}
.search-input {
  font-size: 14px;
  color: #f2f2f6;
}
.search-group-title {
  color: #858591;
  font-size: 9px;
}
.search-item {
  padding: 9px 10px;
}
.search-item-title {
  color: #d9dae2;
  font-size: 12.5px;
}
.search-item-meta {
  color: #858591;
  font-size: 9.5px;
}
.search-chip {
  height: 27px;
  color: #a0a0ac;
  font-size: 10px;
}
.search-foot {
  color: #6f6f7b;
  font-size: 9px;
}

/* Modals */
.modal {
  background: #121216;
  border-color: #34353f;
}
.modal-head {
  background: #16161b;
}
.modal-kicker {
  font-size: 9px;
}
.modal-title {
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 600;
  color: #f2f2f6;
}
.modal-sub {
  color: #92929e;
  font-size: 11px;
  line-height: 1.55;
}
.modal-rule {
  color: #a0a0ac;
  font-size: 11px;
}
.modal-rule b {
  color: #d0d1da;
  font-size: 11.5px;
}
.auth-form .text-input {
  height: 41px;
  font-size: 13px;
}
.auth-note {
  color: #7f7f8b;
  font-size: 9.5px;
}
.auth-switch {
  color: #7f7f8b;
  font-size: 10.5px;
}
.btn-discord {
  height: 39px;
  font-size: 11.5px;
}
.profile-modal-stat b {
  font-size: 14px;
}
.profile-modal-stat span {
  font-size: 8px;
}

/* Footer */
.footer-brand p {
  color: #82828e;
  font-size: 10.5px;
}
.footer-status {
  color: #95cbb4;
  font-size: 9px;
}
.footer-col h4 {
  color: #9a9aa6;
  font-size: 8.5px;
}
.footer-col a,
.footer-col button {
  color: #858590;
  font-size: 10.5px;
}
.footer-bottom {
  color: #777782;
  font-size: 9.5px;
}
.footer-lang {
  color: #898995;
}
.lang-select {
  color: #a0a0ac;
  font-size: 9.5px;
}
.footer-note {
  color: #656570;
  font-size: 8.5px;
}

/* Toasts */
.toast {
  color: #d6d7e0;
  font-size: 11.5px;
  background: #17171c;
  border-color: #3a3b45;
}

/* Mobile typographic scale */
@media (max-width: 900px) {
  .page-title {
    font-size: 33px;
  }
  .forum-group-head {
    height: 45px;
  }
  .forum-node {
    min-height: 78px;
    padding: 13px 14px;
  }
  .topic-title {
    font-size: clamp(26px, 5.8vw, 34px);
  }
}

@media (max-width: 768px) {
  .page {
    padding-top: 16px;
  }
  .page-title {
    font-size: 29px;
  }
  .page-sub {
    font-size: 12px;
  }
  .topbar {
    border-bottom-color: #2a2b33;
  }
  .breadcrumbs {
    margin-top: 12px;
    font-size: 10px;
    padding: 9px 11px;
  }
  .notice-text {
    font-size: 11.5px;
  }
  .notice-btn {
    font-size: 11px;
  }
  .forum-promo h2 {
    font-size: 26px;
  }
  .forum-promo p {
    font-size: 11.5px;
  }
  .forum-promo-inner {
    padding: 20px;
  }
  .forum-group-head {
    height: 44px;
    padding: 0 14px;
  }
  .forum-group-title {
    font-size: 14.5px;
  }
  .forum-node {
    min-height: 0;
    padding: 12px;
  }
  .node-title {
    font-size: 14.5px;
  }
  .node-desc {
    font-size: 11.5px;
  }
  .node-subforums {
    font-size: 10px;
  }
  .node-mobile-last {
    font-size: 9.5px;
  }
  .thread-item {
    min-height: 0;
    padding: 11px 12px;
  }
  .thread-item-title {
    font-size: 13px;
  }
  .thread-item-meta {
    font-size: 10px;
  }
  .thread-tab {
    font-size: 11px;
  }
  .threads-toolbar {
    min-height: 44px;
    padding: 7px 10px;
  }
  .post-head {
    min-height: 38px;
  }
  .post-body {
    padding: 15px;
    font-size: 13px;
    line-height: 1.7;
  }
  .post-body h2 {
    font-size: 19px;
  }
  .post-body h3 {
    font-size: 16px;
  }
  .post-author-name {
    font-size: 12px;
  }
  .post-role-bar .role-bar {
    font-size: 8px;
  }
  .related-title {
    font-size: 12px;
  }
  .reply-actions .btn {
    height: 36px;
  }
  .member-card-name {
    font-size: 12.5px;
  }
  .form-body {
    padding: 14px;
  }
  .form-panel-head b {
    font-size: 12px;
  }
  .text-input,
  .select-input {
    height: 42px;
    font-size: 13px;
  }
  .editor-input {
    font-size: 13px;
  }
  .footer-brand p {
    font-size: 10.5px;
  }
  .footer-col a,
  .footer-col button {
    font-size: 10.5px;
  }
  .topic-subline {
    font-size: 10px;
  }
  .topic-label {
    font-size: 9px;
  }
}

@media (max-width: 520px) {
  .page-title {
    font-size: 26px;
  }
  .node-title {
    font-size: 14px;
  }
  .thread-item-title {
    font-size: 12.5px;
  }
  .forum-group-title {
    font-size: 14px;
  }
  .topic-title {
    font-size: 24px;
  }
}

/* Clarity pass responsive corrections */
@media (max-width: 1180px) {
  .topbar-nav a {
    padding: 0 9px;
    font-size: 10.5px;
  }
}
@media (max-width: 1060px) {
  .topbar-nav a {
    padding: 0 8px;
    font-size: 10px;
  }
  .topbar-auth-btn {
    padding: 0 8px;
    font-size: 11px;
  }
}
@media (max-width: 900px) {
  .post-author-avatar .avatar {
    width: 56px;
    height: 56px;
  }
}
@media (max-width: 768px) {
  .brand img {
    width: 88px;
  }
  .post-author-avatar .avatar {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 520px) {
  .brand img {
    width: 80px;
  }
}
@media (max-width: 768px) {
  .node-icon {
    width: 32px;
    height: 32px;
  }
  .node-icon .icon {
    width: 15px;
    height: 15px;
  }
  .thread-item-avatar .avatar {
    width: 28px;
    height: 28px;
  }
}

/* =========================================================
   MEMBER PROFILES
   ========================================================= */

.profile-page {
  padding-top: 22px;
}
.profile-page .breadcrumbs {
  margin-top: 0;
}

.profile-hero {
  margin-top: 16px;
  border: 1px solid #2c2d35;
  border-radius: 3px;
  background: #121216;
  overflow: hidden;
}
.profile-cover {
  --cover-accent: #5f77ff;
  position: relative;
  height: 178px;
  overflow: hidden;
  border-bottom: 1px solid #2b2c35;
  background:
    radial-gradient(520px 240px at 76% -20%, rgba(255, 255, 255, 0.11), transparent 62%),
    radial-gradient(420px 200px at 100% 110%, rgba(249, 46, 140, 0.13), transparent 68%),
    linear-gradient(100deg, #11162d 0%, #151b37 55%, #1d1332 100%);
  box-shadow: inset 0 -2px 0 var(--cover-accent);
}
.profile-cover.cover-team {
  --cover-accent: #5f77ff;
}
.profile-cover.cover-moderator {
  --cover-accent: #b46bff;
  background:
    radial-gradient(520px 240px at 76% -20%, rgba(255, 255, 255, 0.1), transparent 62%),
    radial-gradient(420px 200px at 100% 110%, rgba(180, 107, 255, 0.13), transparent 68%),
    linear-gradient(100deg, #16122b 0%, #211737 55%, #1d1332 100%);
}
.profile-cover.cover-veteran {
  --cover-accent: #ffc46b;
  background:
    radial-gradient(520px 240px at 76% -20%, rgba(255, 255, 255, 0.1), transparent 62%),
    radial-gradient(420px 200px at 100% 110%, rgba(255, 196, 107, 0.1), transparent 68%),
    linear-gradient(100deg, #1d1711 0%, #241c13 55%, #1b1325 100%);
}
.profile-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  pointer-events: none;
}
.profile-cover::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -210px;
  width: 430px;
  height: 430px;
  border: 74px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
}
.profile-cover-badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  background: rgba(9, 10, 14, 0.5);
  color: #d5d7e1;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
}
.profile-cover-word {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 5px;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--font-ui);
  font-size: 82px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.profile-cover-sub {
  position: absolute;
  z-index: 1;
  right: 27px;
  top: 17px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.profile-identity {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 22px 18px;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: -54px;
}
.profile-avatar-wrap .avatar {
  width: 112px;
  height: 112px;
  border: 4px solid #121216;
  box-shadow: 0 0 0 1px #3a3b47;
  font-size: 36px;
}
.profile-presence {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 15px;
  height: 15px;
  border: 3px solid #121216;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(71, 219, 161, 0.55);
}
.profile-presence.offline {
  background: #55555f;
  box-shadow: none;
}
.profile-identity-copy {
  min-width: 0;
  flex: 1;
  padding-top: 14px;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-name-row h1 {
  color: #f4f4f8;
  font-family: var(--font-ui);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.profile-verified {
  display: inline-flex;
  color: #8395ff;
}
.profile-verified .icon {
  width: 16px;
  height: 16px;
}
.profile-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  color: #9797a3;
  font-size: 11px;
}
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #858590;
}
.profile-status.online {
  color: #8ae4c2;
}
.profile-dot-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #575762;
}
.profile-self-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(95, 119, 255, 0.24);
  border-radius: 2px;
  background: rgba(95, 119, 255, 0.08);
  color: #a9b6ff;
  font-size: 8px;
  letter-spacing: 0.03em;
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 16px;
}
.profile-actions .btn {
  height: 35px;
  font-size: 11.5px;
}
.profile-actions .profile-share-btn {
  width: 35px;
  flex: 0 0 35px;
  padding: 0;
}
.profile-stat-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #2a2b33;
  background: #101014;
}
.profile-stat {
  padding: 13px 20px;
  border-right: 1px solid #23242b;
}
.profile-stat:last-child {
  border-right: 0;
}
.profile-stat b {
  display: block;
  color: #e6e7ee;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.profile-stat span {
  display: block;
  margin-top: 3px;
  color: #797985;
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.profile-tabs {
  display: flex;
  align-items: stretch;
  margin-top: 16px;
  border: 1px solid #2c2d35;
  border-radius: 3px;
  background: #121216;
  overflow: hidden;
}
.profile-tab {
  position: relative;
  height: 44px;
  padding: 0 20px;
  border-right: 1px solid #23242b;
  color: #9898a4;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.16s, background 0.16s;
}
.profile-tab:last-child {
  border-right: 0;
}
.profile-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
}
.profile-tab.active {
  color: #fff;
  background: #18191f;
  box-shadow: inset 0 -2px 0 #5f77ff;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.profile-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-section .widget-head {
  padding-bottom: 11px;
}
.profile-section-note {
  color: #858590;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.profile-bio {
  color: #b8b9c4;
  font-size: 13px;
  line-height: 1.65;
}
.profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 18px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #26272f;
}
.profile-meta-cell {
  min-width: 0;
  color: #c4c5cf;
  font-size: 11px;
}
.profile-meta-cell > span:first-child {
  display: block;
  margin-bottom: 4px;
  color: #777783;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.profile-meta-cell b {
  color: #d5d6df;
  font-weight: 500;
}
.profile-meta-cell .role-badge {
  margin-top: 1px;
}
.profile-activity-body {
  padding-top: 0;
}
.profile-activity-list {
  border-top: 1px solid #23242b;
}
.profile-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #23242b;
  transition: background 0.15s;
}
.profile-activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-activity-item:hover {
  background: #16171d;
}
.profile-activity-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid #2e2f39;
  border-radius: 2px;
  background: #17181e;
  color: #91919d;
}
.profile-activity-icon .icon {
  width: 13px;
  height: 13px;
}
.profile-activity-icon.is-thread {
  border-color: rgba(95, 119, 255, 0.24);
  background: rgba(95, 119, 255, 0.08);
  color: #a2afff;
}
.profile-activity-icon.is-reply {
  color: #a996ff;
}
.profile-activity-copy {
  min-width: 0;
  flex: 1;
}
.profile-activity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #777783;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-activity-time {
  flex-shrink: 0;
  color: #858590;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.profile-activity-title {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #dcdee7;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-activity-item:hover .profile-activity-title {
  color: #adbaff;
}
.profile-activity-meta {
  display: block;
  margin-top: 2px;
  color: #858590;
  font-size: 9.5px;
}
.profile-activity-excerpt {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #8b8b97;
  font-size: 10.5px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.profile-activity-item > .icon {
  align-self: center;
  width: 11px;
  height: 11px;
  color: #5e5e69;
}
.profile-empty {
  padding: 30px 12px 18px;
  text-align: center;
  color: #7f7f8b;
}
.profile-empty .icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 9px;
  color: #5e5e69;
}
.profile-empty strong {
  display: block;
  margin-bottom: 3px;
  color: #b4b5c0;
  font-size: 12px;
  font-weight: 500;
}
.profile-empty span {
  font-size: 10px;
}
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid #23242b;
  padding-top: 2px;
}
.achievement {
  padding: 9px;
  border: 1px solid #292a33;
  border-radius: 3px;
  background: #15151a;
}
.achievement-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-bottom: 7px;
  border: 1px solid transparent;
  border-radius: 2px;
}
.achievement-icon .icon {
  width: 13px;
  height: 13px;
}
.tone-blue {
  border-color: rgba(95, 119, 255, 0.24);
  background: rgba(95, 119, 255, 0.09);
  color: #a1afff;
}
.tone-violet {
  border-color: rgba(180, 145, 255, 0.24);
  background: rgba(180, 145, 255, 0.08);
  color: #cbb0ff;
}
.tone-amber {
  border-color: rgba(255, 196, 107, 0.24);
  background: rgba(255, 196, 107, 0.07);
  color: #ffd08a;
}
.tone-green {
  border-color: rgba(71, 219, 161, 0.24);
  background: rgba(71, 219, 161, 0.07);
  color: #80e5c0;
}
.tone-pink {
  border-color: rgba(249, 46, 140, 0.24);
  background: rgba(249, 46, 140, 0.07);
  color: #ff97c7;
}
.achievement b {
  display: block;
  color: #d0d1da;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
}
.achievement span {
  display: block;
  margin-top: 2px;
  color: #83838f;
  font-size: 8.5px;
  line-height: 1.4;
}
.profile-online-list {
  border-top: 1px solid #23242b;
  padding-top: 2px;
}
.profile-online-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #23242b;
}
.profile-online-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-online-row:hover .profile-online-copy b {
  color: #fff;
}
.profile-online-copy {
  min-width: 0;
  flex: 1;
}
.profile-online-copy b {
  display: block;
  overflow: hidden;
  color: #cfd0da;
  font-size: 11.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}
.profile-online-copy span {
  display: block;
  margin-top: 1px;
  color: #7e7e8a;
  font-size: 9px;
}
.profile-online-row .online-dot {
  width: 5px;
  height: 5px;
}

/* Links to profiles */
.post-author-avatar-link,
.topic-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-card {
  color: inherit;
}
.member-card-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: auto;
  color: #5e5e69;
  transition: color 0.15s;
}
.member-card-arrow .icon {
  width: 12px;
  height: 12px;
}
.member-card:hover .member-card-arrow {
  color: #aebaff;
}
.moderator-row {
  color: inherit;
  border-radius: 2px;
  transition: background 0.15s;
}
.moderator-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.moderator-row:hover .moderator-name {
  color: #fff;
}
.user-popover-head {
  color: inherit;
  border-radius: 2px;
  transition: background 0.15s;
}
.user-popover-head:hover {
  background: rgba(255, 255, 255, 0.045);
}

/* Profile responsive */
@media (max-width: 1060px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .profile-page {
    padding-top: 14px;
  }
  .profile-page .breadcrumbs {
    margin-top: 0;
  }
  .profile-hero {
    margin-top: 12px;
  }
  .profile-cover {
    height: 138px;
  }
  .profile-cover::after {
    right: -100px;
    top: -250px;
    width: 380px;
    height: 380px;
    border-width: 54px;
  }
  .profile-cover-word {
    right: 14px;
    font-size: 54px;
  }
  .profile-cover-sub {
    display: none;
  }
  .profile-cover-badge {
    top: 10px;
    left: 11px;
    height: 22px;
    font-size: 7.5px;
  }
  .profile-identity {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 14px 14px;
  }
  .profile-avatar-wrap {
    margin-top: -42px;
  }
  .profile-avatar-wrap .avatar {
    width: 84px;
    height: 84px;
    border-width: 3px;
    font-size: 27px;
  }
  .profile-presence {
    right: 4px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  .profile-identity-copy {
    padding-top: 7px;
    flex-basis: calc(100% - 104px);
  }
  .profile-name-row h1 {
    font-size: 22px;
  }
  .profile-name-row .role-badge {
    font-size: 8px;
    height: 17px;
  }
  .profile-status-line {
    gap: 6px;
    margin-top: 5px;
    font-size: 10px;
  }
  .profile-actions {
    order: 3;
    width: 100%;
    padding-top: 2px;
    flex-wrap: wrap;
  }
  .profile-actions .btn {
    flex: 1;
    min-width: 0;
    height: 36px;
  }
  .profile-actions .btn span {
    font-size: 11px;
  }
  .profile-actions .profile-share-btn {
    flex: 0 0 36px;
    width: 36px;
  }
  .profile-stat-bar {
    grid-template-columns: 1fr 1fr;
  }
  .profile-stat {
    padding: 11px 14px;
    border-right: 1px solid #23242b;
    border-bottom: 1px solid #23242b;
  }
  .profile-stat:nth-child(2) {
    border-right: 0;
  }
  .profile-stat:nth-child(3),
  .profile-stat:nth-child(4) {
    border-bottom: 0;
  }
  .profile-stat b {
    font-size: 16px;
  }
  .profile-stat span {
    font-size: 8px;
  }
  .profile-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar {
    display: none;
  }
  .profile-tab {
    height: 42px;
    padding: 0 14px;
    font-size: 11px;
  }
  .profile-layout {
    margin-top: 12px;
    gap: 12px;
  }
  .profile-main {
    gap: 12px;
  }
  .profile-sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .profile-bio {
    font-size: 12.5px;
  }
  .profile-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .profile-activity-title {
    white-space: normal;
  }
  .profile-activity-excerpt {
    -webkit-line-clamp: 2;
  }
  .achievements-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-section .widget-head {
    padding-bottom: 9px;
  }
}
@media (max-width: 420px) {
  .profile-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 7px;
    gap: 5px;
    font-size: 10.5px;
    white-space: normal;
    line-height: 1.2;
  }
  .profile-actions .btn .icon {
    width: 13px;
    height: 13px;
  }
  .profile-actions .profile-share-btn {
    flex: 0 0 36px;
    width: 36px;
    padding: 0;
  }
  .profile-meta-grid {
    grid-template-columns: 1fr;
  }
  .profile-activity-excerpt {
    display: none;
  }
}



/* =========================================================
   WORKING FORUM — server-side components
   ========================================================= */

.form-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 2px;
  background: var(--pink);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
}
.flash-wrap {
  padding-top: 16px;
}
.flash {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #141418;
  color: #c9cad3;
  font-size: 11.5px;
}
.flash .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.flash-success {
  border-color: rgba(71, 219, 161, 0.24);
  background: rgba(71, 219, 161, 0.06);
  color: #a8e8d1;
}
.flash-success .icon {
  color: #69dfb4;
}
.flash-error {
  border-color: rgba(255, 104, 104, 0.24);
  background: rgba(255, 104, 104, 0.06);
  color: #ffc0c0;
}
.flash-error .icon {
  color: #ff8d8d;
}
.auth-error {
  margin-bottom: 13px;
}
.text-accent {
  color: #9cacff;
}
mark {
  padding: 0 1px;
  border-radius: 1px;
  background: rgba(95, 119, 255, 0.22);
  color: #fff;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 0 0;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 31px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid #2b2c34;
  border-radius: 2px;
  background: #121216;
  color: #a0a0ac;
  font-size: 10.5px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.page-link:hover {
  color: #fff;
  border-color: #3a3b45;
  background: #17181e;
}
.page-link.active {
  color: #fff;
  border-color: rgba(95, 119, 255, 0.35);
  background: rgba(95, 119, 255, 0.12);
}
.page-link.disabled {
  color: #565661;
  background: #0f0f13;
}
.page-gap {
  padding: 0 3px;
  color: #666672;
  font-size: 10px;
}
.pagination-row {
  margin-top: 12px;
}
.pagination-row .pagination {
  padding-top: 2px;
}

/* Tag checkbox chips */
.tag-option {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.tag-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.tag-option:has(input:checked) {
  border-color: rgba(95, 119, 255, 0.4);
  background: rgba(95, 119, 255, 0.09);
  color: #aebaff;
}
.member-card {
  text-decoration: none;
}
.member-card-arrow {
  color: #5e5e69;
}

/* Thread moderation strip */
.thread-moderation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 11px;
  border: 1px solid #2c2d35;
  border-radius: 3px;
  background: #121216;
}
.thread-moderation-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 4px;
  color: #858591;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.thread-moderation-label .icon {
  width: 12px;
  height: 12px;
  color: #8b9bff;
}
.thread-moderation .btn {
  height: 29px;
  padding: 0 9px;
  font-size: 10px;
}
.btn.danger {
  color: #ff9a9a;
}
.btn.danger:hover {
  color: #fff;
  background: rgba(255, 104, 104, 0.1);
  border-color: rgba(255, 104, 104, 0.25);
}
.post-react.danger {
  color: #c77b7b;
}
.post-react.danger:hover {
  color: #ff9b9b;
  background: rgba(255, 104, 104, 0.07);
}

/* Search overlay live items */
.search-item .icon:last-child {
  margin-left: auto;
}
.search-suggestions {
  padding-top: 8px;
}
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 8px 7px 13px;
  border: 1px solid #2c2d35;
  border-radius: 3px;
  background: #121216;
}
.search-page-form > .icon {
  width: 17px;
  height: 17px;
  color: #8496ff;
  flex-shrink: 0;
}
.search-page-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  color: #eeeef4;
  font-size: 13px;
  outline: none;
}
.search-page-form input::placeholder {
  color: #666672;
}
.search-page-form .btn {
  height: 36px;
}
.search-summary {
  padding: 16px 2px 11px;
  color: #9595a1;
  font-size: 11.5px;
}
.search-summary b {
  color: #dfe0e8;
  font-weight: 500;
}
.search-hint {
  margin-top: 16px;
  border: 1px solid #2c2d35;
  border-radius: 3px;
  background: #121216;
}
.search-page-form + .widget,
.search-page-form + .threads-panel {
  margin-top: 14px;
}

/* Auth pages */
.auth-page {
  display: flex;
  justify-content: center;
}
.auth-shell {
  width: min(430px, 100%);
  padding: 26px 0 54px;
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-brand img {
  width: 104px;
}
.auth-brand span {
  color: #7b7b87;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-card {
  padding: 24px;
  border: 1px solid #2c2d35;
  border-radius: 3px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(76, 103, 255, 0.07), transparent 55%),
    #121216;
}
.auth-card-head {
  margin-bottom: 18px;
}
.auth-card-head h1 {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.auth-card-head p {
  margin-top: 6px;
  color: #92929e;
  font-size: 11px;
  line-height: 1.55;
}
.auth-form .form-row {
  margin-bottom: 12px;
}
.auth-form .btn-block {
  margin-top: 4px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0;
  color: #64646f;
  font-size: 9px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #26272f;
}
.auth-switch {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #24252d;
  color: #7b7b87;
  font-size: 10.5px;
  text-align: center;
}
.auth-switch a {
  color: #9dacff;
  margin-left: 3px;
}
.auth-switch a:hover {
  color: #fff;
}
.auth-note {
  margin-top: 14px;
  color: #61616c;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}
.auth-card .btn-discord {
  height: 39px;
  font-size: 11.5px;
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}
.settings-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  padding-bottom: 15px;
  border-bottom: 1px solid #26272f;
}
.settings-profile-head b {
  display: block;
  color: #e5e6ee;
  font-size: 15px;
  font-weight: 500;
}
.settings-profile-head span {
  display: block;
  margin-top: 2px;
  color: #858591;
  font-size: 10px;
}
.file-input {
  width: 100%;
  padding: 8px;
  border: 1px dashed #33343d;
  border-radius: 2px;
  background: #0d0d10;
  color: #9a9aa6;
  font-size: 10.5px;
}
.file-input::file-selector-button {
  margin-right: 9px;
  padding: 6px 9px;
  border: 1px solid #34353e;
  border-radius: 2px;
  background: #191a20;
  color: #d0d1da;
  font: inherit;
  cursor: pointer;
}
.settings-grid .form-actions-row {
  border-top: 0;
  background: transparent;
  padding: 10px 0 0;
}

/* Notifications */
.notification-widget {
  margin-top: 16px;
}
.notification-list {
  border-top: 1px solid #23242b;
}
.notification-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid #23242b;
  transition: background 0.15s;
}
.notification-item:last-child {
  border-bottom: 0;
}
.notification-item:hover {
  background: #16171d;
}
.notification-item.is-unread {
  background: rgba(95, 119, 255, 0.035);
}
.notification-copy {
  min-width: 0;
  flex: 1;
}
.notification-text {
  display: block;
  color: #b6b7c2;
  font-size: 11.5px;
  line-height: 1.5;
}
.notification-text b {
  color: #e0e1e9;
  font-weight: 500;
}
.notification-time {
  display: block;
  margin-top: 3px;
  color: #7b7b87;
  font-size: 9.5px;
}
.unread-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #5f77ff;
  box-shadow: 0 0 8px rgba(95, 119, 255, 0.7);
}

/* Reports / moderation / admin */
.report-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--pink);
  color: #fff;
  font-size: 8px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.admin-stat {
  padding: 13px 14px;
  border: 1px solid #2c2d35;
  border-radius: 3px;
  background: #121216;
}
.admin-stat span {
  display: block;
  color: #858591;
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.admin-stat b {
  display: block;
  margin-top: 4px;
  color: #e6e7ee;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}
.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}
.report-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
}
.report-card {
  padding: 12px;
  border: 1px solid #2b2c34;
  border-radius: 3px;
  background: #15151a;
}
.report-card.is-closed {
  opacity: 0.72;
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.report-reporter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.report-reporter b {
  display: block;
  color: #d3d4dd;
  font-size: 11px;
  font-weight: 500;
}
.report-reporter span {
  display: block;
  margin-top: 1px;
  color: #7b7b87;
  font-size: 9px;
}
.report-status {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border: 1px solid #303038;
  border-radius: 2px;
  color: #9595a1;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.report-status.open {
  color: #ffb2b2;
  border-color: rgba(255, 104, 104, 0.25);
  background: rgba(255, 104, 104, 0.06);
}
.report-status.resolved {
  color: #8ee4c2;
  border-color: rgba(71, 219, 161, 0.22);
  background: rgba(71, 219, 161, 0.055);
}
.report-status.dismissed {
  color: #a0a0ac;
}
.report-reason {
  margin-top: 9px;
  color: #b8b9c4;
  font-size: 11px;
  line-height: 1.55;
}
.report-target {
  margin-top: 9px;
  padding: 8px 10px;
  border-left: 2px solid #4658c7;
  background: rgba(95, 119, 255, 0.045);
  color: #9595a1;
  font-size: 10px;
  line-height: 1.5;
}
.report-target a {
  color: #aab7ff;
  font-size: 10.5px;
}
.report-target p {
  margin-top: 3px;
  color: #858591;
}
.report-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.report-actions .btn {
  height: 29px;
  padding: 0 9px;
  font-size: 9.5px;
}
.admin-search {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}
.admin-search .member-search {
  flex: 1;
  max-width: 320px;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}
.admin-table th {
  padding: 8px;
  border-bottom: 1px solid #2b2c34;
  color: #7b7b87;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #23242b;
  color: #a5a5b1;
  vertical-align: middle;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}
.admin-user b {
  display: block;
  color: #d5d6df;
  font-size: 11px;
  font-weight: 500;
}
.admin-user small {
  display: block;
  margin-top: 1px;
  color: #747480;
  font-size: 8.5px;
}
.admin-table td > small {
  display: block;
  color: #747480;
  font-size: 8.5px;
}
.admin-user-form {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 330px;
}
.admin-user-form .select-control {
  height: 28px;
  padding: 0 23px 0 7px;
  font-size: 9.5px;
}
.ban-check {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #c18f8f;
  font-size: 9px;
  white-space: nowrap;
}
.ban-check input {
  accent-color: #f06767;
}
.admin-ban-reason {
  width: 132px;
  height: 28px;
  font-size: 9.5px;
}
.admin-user-form .btn {
  height: 28px;
  padding: 0 8px;
  font-size: 9.5px;
}
.admin-category-list {
  border-top: 1px solid #23242b;
}
.admin-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #23242b;
  color: #9a9aa6;
  font-size: 10px;
}
.admin-category-row:last-child {
  border-bottom: 0;
}
.admin-category-row b {
  color: #bfc0ca;
  font-size: 9.5px;
  font-weight: 400;
}

/* Error page */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  margin: 50px auto;
  padding: 34px 24px;
  border: 1px solid #2c2d35;
  border-radius: 3px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(76, 103, 255, 0.07), transparent 55%), #121216;
  text-align: center;
}
.error-code {
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #303448;
}
.error-page h1 {
  margin-top: 13px;
  font-family: var(--font-ui);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.error-page p {
  margin-top: 7px;
  color: #92929e;
  font-size: 11.5px;
  line-height: 1.55;
}
.error-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

/* Responsive server components */
@media (max-width: 1024px) {
  .admin-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .flash-wrap {
    padding-top: 10px;
  }
  .flash {
    font-size: 10.5px;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-stat {
    padding: 11px;
  }
  .admin-stat b {
    font-size: 16px;
  }
  .admin-side {
    grid-template-columns: 1fr;
  }
  .admin-user-form {
    min-width: 270px;
  }
  .admin-ban-reason {
    width: 110px;
  }
  .auth-shell {
    padding-top: 12px;
  }
  .auth-card {
    padding: 18px;
  }
  .search-page-form {
    flex-wrap: wrap;
  }
  .search-page-form input {
    flex-basis: calc(100% - 32px);
    height: 34px;
  }
  .search-page-form .btn {
    width: 100%;
  }
  .settings-grid {
    gap: 12px;
  }
  .notification-item {
    padding: 10px 0;
  }
  .page-link {
    min-width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .thread-moderation {
    gap: 5px;
    padding: 7px 9px;
  }
  .thread-moderation .form-inline {
    display: inline-flex;
  }
  .thread-moderation .btn {
    height: 27px;
    padding: 0 7px;
    font-size: 9.5px;
  }
  .thread-moderation-label {
    width: 100%;
    margin-bottom: 2px;
  }
}
@media (max-width: 520px) {
  .admin-stats {
    gap: 7px;
  }
  .admin-user-form {
    min-width: 230px;
  }
  .admin-ban-reason {
    width: 90px;
  }
  .error-page {
    margin-top: 25px;
    padding: 25px 16px;
  }
  .error-code {
    font-size: 52px;
  }
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  .error-actions .btn {
    width: 100%;
  }
}
