@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --bg: #09090b;
  --bg-2: #111116;
  --panel: rgba(24, 24, 30, .92);
  --panel-2: rgba(34, 34, 42, .94);
  --line: rgba(255, 255, 255, .09);
  --text: #f4f4f5;
  --muted: #a6a6ad;
  --red: #e1192d;
  --red-2: #ff3046;
  --green: #2bd576;
  --warning: #eab308;
  --radius: 18px;
  --shadow: 0 24px 90px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(225, 25, 45, .16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .06), transparent 22%),
    linear-gradient(180deg, #050506, var(--bg));
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(7, 7, 9, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #7a0b16);
  font-weight: 900;
  letter-spacing: -1px;
}
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.nav a {
  padding: 10px 12px;
  color: #d8d8dd;
  border-radius: 10px;
}
.nav a:hover { background: rgba(255,255,255,.06); }
.nav-toggle { display: none; }
.userbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.user-name { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ddd; }

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.hero-content,
.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-content {
  min-height: 420px;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  position: relative;
}
.hero-content::after {
  content: '';
  position: absolute;
  inset: auto -90px -170px auto;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(225,25,45,.36), transparent 65%);
}
.hero h1,
.page-head h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .94;
  letter-spacing: -2.4px;
}
.hero p,
.page-head p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 760px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.status-line { display: flex; align-items: center; gap: 10px; color: #d7d7dc; margin-top: 14px; }
.status-line span { width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 18px var(--green); }

.eyebrow { color: var(--red-2); text-transform: uppercase; font-size: 12px; letter-spacing: .2em; font-weight: 800; }
.panel { padding: 24px; margin-bottom: 20px; }
.panel.accent { background: linear-gradient(180deg, rgba(225,25,45,.08), rgba(24,24,30,.92)); }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-red { background: linear-gradient(135deg, var(--red), #8e101d); }
.btn-dark { background: #23232b; border: 1px solid var(--line); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.btn-xl { padding: 14px 20px; }
.btn-small { padding: 7px 10px; font-size: 12px; border-radius: 9px; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.text-link { color: #ff5365; font-weight: 800; }
.text-link:hover { color: #ff8793; }

.dash-list { list-style: none; padding: 0; margin: 0 0 18px; }
.dash-list li { margin: 10px 0; color: #ddd; }
.dash-list li::before { content: '- '; color: var(--red-2); font-weight: 900; }
.server-list { display: grid; gap: 12px; }
.server-card { padding: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; }
.server-card span { display: inline-block; color: #fff; background: rgba(225,25,45,.25); padding: 3px 8px; border-radius: 20px; font-size: 12px; margin: 7px 0; }
.server-card p { color: var(--muted); margin: 4px 0 0; line-height: 1.45; }

.cards-list { display: grid; gap: 14px; }
.list-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.list-card h3 { margin: 6px 0 8px; }
.list-card p { color: var(--muted); line-height: 1.55; }
.list-card.pinned { border-color: rgba(225,25,45,.4); }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ddd;
  font-size: 12px;
}
.tag.danger { background: rgba(225,25,45,.18); color: #ff8a95; }
.muted { color: var(--muted); }

.page-head { margin: 6px 0 24px; }
.page-head.compact h1 { font-size: clamp(32px, 4vw, 48px); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tab { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: #ddd; }
.tab.active { background: rgba(225,25,45,.22); border-color: rgba(225,25,45,.5); color: #fff; }

.article-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.article-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.meta-box { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 14px; }
.meta-box span { color: var(--muted); margin-bottom: 8px; }
.article h1 { font-size: clamp(34px, 5vw, 58px); margin: 8px 0 24px; }
.content { color: #e9e9ec; line-height: 1.7; font-size: 16px; }
.content h2, .content h3 { margin-top: 28px; }
.content a { color: #ff5365; font-weight: 800; }
.content img { max-width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.content blockquote { border-left: 3px solid var(--red); margin: 18px 0; padding: 8px 0 8px 16px; color: #ccc; }

.forum-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.forum-card,
.topic-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.forum-card:hover,
.topic-row:hover { border-color: rgba(225,25,45,.4); background: var(--panel-2); }
.forum-card p,
.topic-row p { color: var(--muted); line-height: 1.5; }
.forum-stats,
.topic-meta { display: grid; align-content: center; gap: 8px; min-width: 95px; text-align: right; color: var(--muted); }
.forum-stats strong { display: block; color: #fff; font-size: 22px; }
.topic-list { display: grid; gap: 12px; }
.post-list { display: grid; gap: 16px; margin-bottom: 20px; }
.post-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.post-head small { display: block; color: var(--muted); margin-top: 3px; }
.post-actions { margin-top: 16px; }
.like-btn { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.like-btn.active { background: rgba(225,25,45,.26); border-color: rgba(225,25,45,.55); }
.hidden-post { opacity: .55; }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; color: #d8d8dd; font-weight: 700; }
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #101015;
  color: var(--text);
  font: inherit;
}
.form textarea { resize: vertical; font-family: Consolas, Monaco, monospace; }
.form textarea[hidden] { display: none; }
.checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.checkbox input { width: auto; }

.table-panel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #ddd; }
code { background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; }
.inline-form { display: inline; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-nav a { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats-grid.big { grid-template-columns: repeat(6, 1fr); }
.stats-grid div { text-align: center; }
.stats-grid strong { display: block; font-size: 32px; }
.stats-grid span { color: var(--muted); }

.profile-card { display: grid; gap: 26px; }
.profile-main { display: flex; gap: 18px; align-items: center; }
.profile-avatar { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; background: #202028; display: grid; place-items: center; font-weight: 900; }
.profile-avatar.empty { border: 1px solid var(--line); }

.flash { padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; border: 1px solid var(--line); }
.flash-success { background: rgba(43,213,118,.12); color: #b7ffd3; }
.flash-warning { background: rgba(234,179,8,.12); color: #ffe8a8; }
.flash-danger { background: rgba(225,25,45,.14); color: #ffb0b8; }
.error-panel { text-align: center; padding: 50px 20px; }
.badge { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgba(225,25,45,.18); color: #fff; font-size: 24px; font-weight: 900; margin-bottom: 10px; }

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .userbox { flex-basis: 100%; justify-content: flex-start; }
  .hero, .grid.two, .grid.three, .forum-grid, .article-layout, .stats-grid, .stats-grid.big { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .hero-content { min-height: 340px; }
  .forum-card, .topic-row { flex-direction: column; }
  .forum-stats, .topic-meta { text-align: left; display: flex; }
}

/* v0.1.2 editor / media additions */
.form-grid-tight { margin-bottom: 0; }
.rich-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101015;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.rich-toolbar button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 9px;
  padding: 7px 9px;
  cursor: pointer;
  font-weight: 800;
}
.rich-toolbar button:hover { background: rgba(225,25,45,.22); border-color: rgba(225,25,45,.45); }
.rich-editor {
  min-height: 320px;
  padding: 16px;
  outline: none;
  color: #e9e9ec;
  line-height: 1.7;
}
.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}
.rich-editor h2, .rich-editor h3 { margin-top: 20px; }
.rich-editor img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.rich-help {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.cover-preview img,
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 0 0 20px;
}
.cover-preview img { max-height: 220px; margin: 0; }
.media-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}
.card-cover {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111;
}
.table-thumb {
  width: 72px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.order-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.order-form input {
  width: 80px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #101015;
  color: var(--text);
}
.notification-unread { border-color: rgba(225,25,45,.55); background: rgba(225,25,45,.08); }
.notification-read { opacity: .72; }

@media (max-width: 900px) {
  .media-card { grid-template-columns: 1fr; }
  .card-cover { height: 190px; }
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.search-form input {
  flex: 1 1 320px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #101015;
  color: var(--text);
}
.big-search input { font-size: 17px; }
.checkbox-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}
.checkbox-line input { width: auto; }
.tag.success { background: rgba(35, 180, 95, .14); color: #9ff0bd; border-color: rgba(35, 180, 95, .35); }
.tag.warning { background: rgba(235, 170, 45, .14); color: #ffd98c; border-color: rgba(235, 170, 45, .35); }
.tag.danger { background: rgba(225, 25, 45, .14); color: #ff9ca8; border-color: rgba(225, 25, 45, .35); }
.post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.order-form select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #101015;
  color: var(--text);
}

/* v0.2.1 appearance / tickets */
body {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, var(--site-bg-overlay, 0)), rgba(0, 0, 0, var(--site-bg-overlay, 0))),
    var(--site-bg-image, linear-gradient(transparent, transparent)),
    radial-gradient(circle at 10% 0%, rgba(225, 25, 45, .16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .06), transparent 22%),
    linear-gradient(180deg, #050506, var(--bg));
  background-size: cover, cover, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-attachment: fixed, fixed, scroll, scroll, scroll;
}
.brand-mark.has-image {
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btn-ticket { white-space: nowrap; }
.appearance-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
.appearance-preview .brand-mark { width: 72px; height: 72px; border-radius: 18px; }
.background-preview {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.background-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.ticket-message {
  display: grid;
  gap: 10px;
}
.ticket-message.admin-message {
  border-color: rgba(225,25,45,.35);
  background: rgba(225,25,45,.06);
}
.ticket-message.hidden-message { opacity: .55; }
.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.ticket-head small { display: block; color: var(--muted); margin-top: 3px; }
.ticket-status-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ticket-status-form select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  background: #101015;
  color: var(--text);
}

@media (max-width: 900px) {
  .appearance-preview { grid-template-columns: 1fr; }
  .btn-ticket { width: 100%; }
}

/* v0.2.2 */
body {
  font-family: Manrope, Inter, "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
}
.form textarea { font-family: inherit; line-height: 1.55; }
.brand-mark.has-image { overflow: hidden; background: rgba(255,255,255,.06); }
.brand-mark.has-image img { width: 100%; height: 100%; object-fit: cover; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.sound-toggle { min-width: 38px; padding-left: 9px; padding-right: 9px; }
.tag.success { background: rgba(43, 213, 118, .16); color: #8ff0b8; }
.user-mini { display: flex; align-items: center; gap: 10px; }
.user-mini img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.user-mini small { display: block; color: var(--muted); margin-top: 3px; }
.user-actions-cell { min-width: 260px; }
.block-form { display: grid; gap: 8px; min-width: 230px; }
.block-form input,
.order-form input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 9px;
  background: #101015;
  color: var(--text);
  font: inherit;
}
.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.attachment-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.attachment-card:hover { border-color: rgba(225,25,45,.45); color: #fff; }
.attachment-card img,
.attachment-card video {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: #050506;
}
.attachment-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eee;
  font-size: 13px;
}
.attachment-card small { color: var(--muted); }
.inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}
@media (max-width: 720px) {
  .inline-form { grid-template-columns: 1fr; }
  .userbox { flex-wrap: wrap; justify-content: flex-end; }
}


/* v0.2.2.1 */
.btn-donate { white-space: nowrap; }
.profile-info { flex: 1; min-width: 0; }
.profile-game-name-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  align-items: end;
  gap: 10px;
}
.profile-game-name-form label { margin: 0; }
.profile-game-name-form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #101015;
  color: var(--text);
  font: inherit;
}
.ticket-archive-row { opacity: .78; }
@media (max-width: 720px) {
  .profile-main { align-items: flex-start; }
  .profile-game-name-form { grid-template-columns: 1fr; }
  .btn-donate { width: auto; }
}

/* v0.2.2.2 */
.topbar-donate {
  margin-right: 4px;
  flex: 0 0 auto;
}
.userbox .btn-ticket,
.userbox .btn-small {
  white-space: nowrap;
}
.admin-nav a {
  padding: 14px 18px;
  min-width: 132px;
  text-align: center;
}
.profile-main {
  align-items: stretch;
}
.profile-nickname-panel {
  margin-left: auto;
  min-width: 310px;
  max-width: 380px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.profile-nickname-panel .profile-game-name-form {
  width: 100%;
  margin-top: 0;
  grid-template-columns: 1fr auto;
}
.profile-ticket-actions {
  display: flex;
  margin-top: 18px;
  clear: both;
}
.admin-comment-cell {
  min-width: 280px;
}
.admin-comment-form {
  display: grid;
  gap: 8px;
}
.admin-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #101015;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.blocked-page .topbar { display: none; }
.blocked-shell {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}
.blocked-panel {
  width: 100%;
}
.notification-toast-stack {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}
.notification-toast {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(225,25,45,.45);
  border-radius: 14px;
  background: rgba(20,20,26,.96);
  box-shadow: var(--shadow);
  color: var(--text);
}
.notification-toast span {
  color: var(--muted);
  line-height: 1.45;
}
.file-error-box {
  margin: 0;
}

@media (max-width: 1080px) {
  .profile-main { flex-wrap: wrap; }
  .profile-nickname-panel { margin-left: 106px; }
}
@media (max-width: 720px) {
  .topbar-donate { order: 2; }
  .nav-toggle { order: 3; }
  .nav { order: 4; }
  .userbox { order: 5; }
  .profile-nickname-panel {
    margin-left: 0;
    min-width: 100%;
    max-width: none;
  }
  .profile-nickname-panel .profile-game-name-form { grid-template-columns: 1fr; }
  .admin-nav a { min-width: 100%; }
}

/* v0.2.2.3 */
body {
  font-family: Manrope, Segoe UI, Roboto, Arial, sans-serif;
}
.admin-users-form-panel,
.admin-users-table-panel {
  width: min(1560px, calc(100vw - 32px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.admin-users-table-panel table {
  min-width: 1380px;
}
.notification-toast em {
  width: max-content;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.ticket-events-panel {
  margin-top: 18px;
}
.ticket-events-list {
  display: grid;
  gap: 8px;
}
.ticket-event-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.ticket-event-row small {
  color: var(--muted);
  text-align: right;
}
@media (max-width: 720px) {
  .admin-users-form-panel,
  .admin-users-table-panel {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .ticket-event-row {
    display: grid;
  }
  .ticket-event-row small {
    text-align: left;
  }
}

/* v0.2.2.4 */
.user-link {
  color: #fff;
  font-weight: 900;
  border-bottom: 1px dashed rgba(255,255,255,.24);
}
.user-link:hover {
  color: #ff6b78;
  border-bottom-color: rgba(255,83,101,.65);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.badge-row.compact {
  margin-top: 6px;
  gap: 5px;
}
.boosty-badge {
  background: linear-gradient(135deg, rgba(225,25,45,.28), rgba(255,255,255,.08));
  border: 1px solid rgba(225,25,45,.32);
  color: #fff;
  font-weight: 800;
}
.post-badges {
  margin-top: 5px;
}
.admin-badges-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.admin-badges-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #101015;
  color: var(--text);
  font: inherit;
}
.badges-cell {
  min-width: 260px;
}
.public-profile-card .profile-main,
.profile-card .profile-main {
  gap: 18px;
}
@media (max-width: 720px) {
  .admin-badges-form { grid-template-columns: 1fr; }
}
.admin-users-table-panel table {
  min-width: 1620px;
}
.stats-grid.big {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}


/* v0.2.2.5 */
.public-user-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.public-user-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.public-user-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}
.public-user-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.ticket-messages-list {
  display: grid;
  gap: 10px;
}
.ticket-message.panel {
  padding: 14px 16px;
  margin-bottom: 0;
  border-radius: 14px;
  gap: 8px;
}
.ticket-message .ticket-head {
  align-items: center;
}
.ticket-message .ticket-head small {
  margin-top: 1px;
  font-size: 12px;
}
.ticket-message .content {
  line-height: 1.48;
}
.ticket-message .content p:first-child { margin-top: 0; }
.ticket-message .content p:last-child { margin-bottom: 0; }
.ticket-message .attachments-grid {
  margin-top: 4px;
}
.ticket-message .post-actions {
  margin-top: 2px;
}
@media (max-width: 720px) {
  .public-user-stats { grid-template-columns: 1fr; }
  .ticket-message.panel { padding: 12px; }
}

/* v0.2.2.6 */
.collapsed-ticket-events {
  padding: 0;
  overflow: hidden;
}
.collapsed-ticket-events details {
  padding: 0;
}
.collapsed-ticket-events summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  user-select: none;
}
.collapsed-ticket-events summary::-webkit-details-marker {
  display: none;
}
.collapsed-ticket-events summary span {
  font-weight: 900;
  color: #fff;
}
.collapsed-ticket-events summary small {
  color: var(--muted);
}
.collapsed-ticket-events summary::after {
  content: 'Раскрыть';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.collapsed-ticket-events details[open] summary::after {
  content: 'Скрыть';
}
.collapsed-ticket-events .ticket-events-list {
  padding: 0 16px 16px;
}
.forum-attachments-grid {
  margin-top: 12px;
}
.form input[type="file"] {
  cursor: pointer;
}
@media (max-width: 720px) {
  .collapsed-ticket-events summary {
    display: grid;
  }
  .collapsed-ticket-events summary::after {
    width: max-content;
  }
}

/* v0.2.3 — пользовательские статусы и лимиты */
.user-status-badge {
  background: var(--badge-bg, rgba(255,255,255,.08));
  color: var(--badge-text, #fff);
  border-color: color-mix(in srgb, var(--badge-bg, #ffffff) 55%, transparent);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  gap: 6px;
}

.user-status-badge .status-icon,
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  margin-right: 4px;
}

.custom-status-badge {
  background: rgba(255,255,255,.08);
  color: var(--text, #fff);
}

.status-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.status-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}

.status-checkbox input {
  width: auto;
}

.user-statuses-form details {
  margin-bottom: 8px;
}

.user-statuses-form summary {
  cursor: pointer;
  color: var(--accent, #e1192d);
  font-weight: 700;
}

.form-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.compact-grid {
  gap: 8px;
}

.compact-grid label,
.status-create-form label {
  font-size: .82rem;
}

.check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.check-row input[type="checkbox"] {
  width: auto;
}

.profile-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 12px 0 16px;
  font-size: .9rem;
}

.profile-limits span {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

/* v0.2.4 — бюрократические страницы */
.footer {
  align-items: center;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 13px;
}
.footer-links a {
  color: #d4d4da;
  border-bottom: 1px dashed rgba(255,255,255,.16);
}
.footer-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255,83,101,.65);
}
.legal-article .content ul {
  padding-left: 22px;
}
.legal-article .content li {
  margin: 8px 0;
}
@media (max-width: 900px) {
  .footer {
    display: grid;
    justify-content: stretch;
    text-align: center;
  }
  .footer-links {
    order: 2;
  }
}

/* v0.2.5+ — DRUGOY MIR Portal и обновление каналов */
.channel-head {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(225,25,45,.16), rgba(255,255,255,.035) 48%, rgba(24,24,30,.92)),
    var(--panel);
  box-shadow: var(--shadow);
}
.channel-head::after {
  content: '';
  position: absolute;
  inset: auto -120px -190px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(225,25,45,.28), transparent 64%);
  pointer-events: none;
}
.channel-head-main,
.channel-head-card,
.channel-head-stats {
  position: relative;
  z-index: 1;
}
.channel-head-main h1 {
  margin-bottom: 10px;
}
.channel-head-card,
.channel-head-stats div {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  text-align: center;
}
.channel-head-card strong,
.channel-head-stats strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: #fff;
}
.channel-head-card span,
.channel-head-stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.channel-head-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 10px;
}
.channel-toolbar {
  margin-top: -4px;
  background: rgba(18,18,24,.86);
}
.channel-tabs {
  margin-top: -8px;
}
.channel-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.channel-item-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.channel-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225,25,45,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}
.channel-card-body {
  min-width: 0;
}
.channel-card-body h3 {
  font-size: 22px;
  margin: 10px 0 9px;
}
.channel-card-body p {
  margin: 0 0 12px;
}
.channel-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.channel-card-meta small {
  color: var(--muted);
}
.channel-forum-grid {
  gap: 18px;
}
.channel-forum-card {
  position: relative;
  min-height: 170px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.channel-forum-card:hover,
.channel-topic-row:hover {
  transform: translateY(-2px);
}
.channel-forum-card h2 {
  margin: 12px 0 8px;
}
.channel-topic-row {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
@media (max-width: 900px) {
  .channel-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .channel-head-card,
  .channel-head-stats div {
    text-align: left;
  }
  .channel-head-stats {
    grid-template-columns: 1fr;
  }
}

.server-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.live-server-card {
  display: grid;
  gap: 8px;
}
.server-online-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #ddd;
  font-size: 13px;
}
.server-online-line em {
  color: var(--muted);
  font-style: normal;
}
.server-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.server-dot.online {
  background: var(--green);
  box-shadow: 0 0 14px rgba(43, 213, 118, .8);
}
.server-dot.offline {
  background: var(--red-2);
  box-shadow: 0 0 14px rgba(255, 48, 70, .55);
}
.server-dot.muted-dot {
  background: var(--muted);
}
.server-settings-list {
  display: grid;
  gap: 16px;
  margin: 14px 0 24px;
}
.server-settings-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 16px;
}
.server-settings-card legend {
  padding: 0 8px;
  color: #fff;
  font-weight: 800;
}
.server-settings-live {
  margin-bottom: 0;
}


.servers-article-block {
  margin: 8px 0 28px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.server-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.server-summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}
.server-summary-card strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}
.server-summary-card span {
  color: var(--muted);
  font-size: 13px;
}
.server-article-grid {
  display: grid;
  gap: 14px;
}
.server-detail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.server-detail-card.is-online {
  border-color: rgba(43, 213, 118, .28);
}
.server-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.server-detail-head h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}
.server-detail-head p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.server-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,.05);
}
.server-state-badge.online { border-color: rgba(43, 213, 118, .36); background: rgba(43, 213, 118, .12); }
.server-state-badge.offline { border-color: rgba(255, 48, 70, .34); background: rgba(255, 48, 70, .1); }
.server-state-badge.disabled { opacity: .85; }
.server-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.server-detail-metrics div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.07);
}
.server-detail-metrics strong {
  display: block;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-detail-metrics span,
.server-info-row span {
  color: var(--muted);
  font-size: 13px;
}
.server-info-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 7px 0;
  color: #ddd;
}
.server-info-row strong {
  min-width: 112px;
  color: #fff;
}
.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
}
@media (max-width: 760px) {
  .server-summary-grid,
  .server-detail-metrics {
    grid-template-columns: 1fr;
  }
  .server-detail-head {
    flex-direction: column;
  }
}


/* v0.2.8.1 */
.admin-nav a.admin-nav-alert {
  background: linear-gradient(135deg, rgba(225,25,45,.34), rgba(255,181,71,.16));
  border-color: rgba(255,181,71,.58);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 10px 30px rgba(225,25,45,.12);
}
.admin-nav a.admin-nav-alert:hover {
  transform: translateY(-1px);
  border-color: rgba(255,210,120,.88);
}
.stats-grid .panel {
  min-width: 0;
  overflow: hidden;
}
.stats-grid strong,
.stats-grid span {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}
.admin-rules-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  max-width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
}
.admin-rules-meta strong,
.admin-rules-meta code {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.admin-rules-readonly {
  max-width: 920px;
}

/* v0.2.9 — обновление дизайна каналов: вики, новости, форум */
.channel-head-v029 {
  border-color: rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 12% 15%, rgba(255,255,255,.09), transparent 24%),
    linear-gradient(135deg, rgba(225,25,45,.22), rgba(255,255,255,.045) 42%, rgba(15,15,20,.96)),
    var(--panel);
}
.channel-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.compact-stats {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}
.v029-toolbar {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  border-color: rgba(255,255,255,.11);
  background: rgba(14,14,19,.9);
}
.v029-toolbar .big-search input {
  min-height: 48px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
}
.v029-tabs {
  gap: 8px;
}
.v029-tabs .tab {
  background: rgba(255,255,255,.045);
}
.channel-feature-strip {
  display: grid;
  grid-template-columns: 1.3fr .85fr .85fr;
  gap: 16px;
  margin-bottom: 20px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225,25,45,.46);
}
.feature-card.primary { min-height: 280px; }
.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.82));
}
.feature-card > div {
  position: relative;
  z-index: 1;
}
.feature-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}
.feature-card p {
  color: #d8d8dd;
  line-height: 1.5;
}
.feature-card small { color: var(--muted); }
.channel-layout-v029 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.channel-side-panel {
  position: sticky;
  top: 92px;
  margin-bottom: 0;
}
.channel-side-panel h3 {
  margin: 8px 0 12px;
}
.side-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.side-chip {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #e6e6ea;
  font-size: 13px;
  font-weight: 800;
}
.article-grid-v029,
.news-grid-v029 {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.v029-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
}
.v029-card .card-cover {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.card-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-weight: 900;
}
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.075);
}
.news-lead-card {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border-color: rgba(225,25,45,.25);
  background:
    linear-gradient(135deg, rgba(225,25,45,.12), rgba(255,255,255,.035)),
    var(--panel);
}
.news-lead-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.news-lead-card h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}
.news-lead-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.v029-forum-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.v029-forum-card {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  padding: 22px;
}
.forum-card-main {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
}
.forum-card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
  font-size: 22px;
}
.forum-card-footer {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.075);
}
.inline-stats {
  display: flex;
  justify-content: space-between;
  text-align: left;
  min-width: 0;
}
.latest-topic {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.v029-topic-list {
  gap: 10px;
}
.v029-topic-row {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.v029-topic-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red-2), rgba(225,25,45,.2));
  opacity: .85;
}
.v029-topic-row h3 {
  margin: 2px 0 8px;
}
.v029-topic-meta strong {
  display: block;
  color: #fff;
  font-size: 24px;
}
.forum-topics-panel {
  background: rgba(18,18,24,.88);
}
.compact-channel-head .channel-head-main h1 {
  font-size: clamp(34px, 5vw, 58px);
}
.topic-hero-v029 {
  margin-bottom: 20px;
}
.v029-post-list {
  gap: 14px;
}
.v029-post-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
}
.v029-post-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.v029-post-head {
  align-items: flex-start;
}
.post-author-block {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.post-author-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225,25,45,.34), rgba(255,255,255,.08));
  font-weight: 900;
}
.post-side-tags,
.v029-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.v029-post-actions {
  justify-content: flex-start;
  align-items: center;
}
.reply-panel-v029 {
  border-color: rgba(225,25,45,.22);
}
.article-layout-v029 {
  grid-template-columns: 290px 1fr;
}
.article-side-v029 .text-link {
  display: inline-block;
  margin-bottom: 2px;
}
.meta-box-v029 {
  background: rgba(255,255,255,.045);
}
.article-panel-v029 {
  padding: clamp(22px, 4vw, 42px);
}
.article-title-block {
  margin-bottom: 18px;
}
.article-title-block h1 {
  margin-bottom: 14px;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.article-cover-v029 {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin: 0 0 22px;
}
.content-v029 {
  font-size: 17px;
  line-height: 1.78;
}
.content-v029 h2 {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.search-results-panel {
  border-color: rgba(255,255,255,.12);
}
@media (max-width: 980px) {
  .channel-feature-strip,
  .news-lead-card,
  .channel-layout-v029,
  .article-layout-v029 {
    grid-template-columns: 1fr;
  }
  .channel-side-panel,
  .article-side-v029 {
    position: static;
  }
  .feature-card.primary,
  .feature-card {
    min-height: 220px;
  }
}
@media (max-width: 720px) {
  .channel-head-actions,
  .card-bottom-row,
  .inline-stats,
  .v029-post-head {
    display: grid;
  }
  .channel-head-actions .btn {
    width: 100%;
  }
  .article-grid-v029,
  .news-grid-v029,
  .v029-forum-grid {
    grid-template-columns: 1fr;
  }
  .forum-card-main {
    grid-template-columns: 1fr;
  }
  .news-lead-card img {
    min-height: 180px;
  }
}

/* v0.3.4: forum live updates and server connection helpers */
.new-posts-banner {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 25, 45, .38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(225, 25, 45, .20), rgba(24, 24, 30, .92));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.new-posts-banner[hidden] {
  display: none !important;
}

.newly-added-post {
  animation: dmNewForumPostPulse 1.2s ease-out 1;
  border-color: rgba(225, 25, 45, .45);
}

@keyframes dmNewForumPostPulse {
  0% { transform: translateY(8px); box-shadow: 0 0 0 rgba(225, 25, 45, 0); }
  35% { transform: translateY(0); box-shadow: 0 0 0 4px rgba(225, 25, 45, .18); }
  100% { transform: translateY(0); box-shadow: inherit; }
}

.server-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.server-connect-help {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.server-connect-help summary {
  cursor: pointer;
  font-weight: 800;
}

.server-connect-help ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.server-connect-help code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,.26);
  color: #dce7ff;
  word-break: break-all;
}

.server-settings-live {
  overflow-wrap: anywhere;
}
