.forum-body {
  --forum-bg: #090b10;
  --forum-panel: rgba(18, 22, 31, .86);
  --forum-panel-soft: rgba(28, 33, 45, .68);
  --forum-line: rgba(255, 255, 255, .10);
  --forum-line-strong: rgba(255, 255, 255, .18);
  --forum-text: #f3f7fb;
  --forum-muted: #a4afbf;
  --forum-cyan: #35f6ff;
  --forum-red: #ff315e;
  --forum-gold: #ffd166;
  --forum-green: #38f28c;
  --forum-shadow: 0 24px 64px rgba(0, 0, 0, .42);
  background:
    linear-gradient(180deg, rgba(19, 23, 32, .72), rgba(6, 7, 13, 1) 430px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 42px),
    var(--forum-bg);
}

.forum-page {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 44px;
}

.forum-body .dash-nav {
  background: rgba(8, 10, 15, .86);
  border-bottom: 1px solid var(--forum-line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
}

.forum-body .brand img {
  width: 44px;
  height: 44px;
}

.forum-top-nav a {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.forum-top-nav a.active,
.forum-top-nav a:hover {
  color: var(--forum-text);
}

.forum-top-nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--forum-cyan), var(--forum-gold));
}

.forum-nav-badge {
  min-width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: var(--forum-red);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(255, 49, 94, .28);
}

.forum-body .btn {
  min-height: 44px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, .16);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 12px 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 26px rgba(0, 0, 0, .22);
}

.forum-body .btn.primary {
  color: #051016;
  border-color: rgba(255, 255, 255, .22);
  background:
    linear-gradient(135deg, var(--forum-cyan), #f7fbff 46%, var(--forum-gold));
}

.forum-body .btn.ghost {
  color: var(--forum-text);
  background-color: rgba(255, 255, 255, .055);
}

.forum-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  min-height: 238px;
  margin-bottom: 16px;
  padding: 28px;
  border: 1px solid var(--forum-line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 20, 29, .94), rgba(34, 21, 26, .76)),
    linear-gradient(90deg, rgba(53, 246, 255, .12), transparent 58%);
  box-shadow: var(--forum-shadow);
}

.forum-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .38;
  pointer-events: none;
}

.forum-hero > * {
  position: relative;
  z-index: 1;
}

.forum-hero h1 {
  max-width: 880px;
  margin: 14px 0 10px;
  color: var(--forum-text);
  font-size: 64px;
  line-height: .94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.forum-hero p {
  max-width: 760px;
  margin: 0;
  color: #cdd7e5;
  font-size: 17px;
  line-height: 1.65;
}

.forum-hero-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 430px;
}

.forum-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.forum-command-card {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--forum-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .028));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.forum-command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 246, 255, .34);
  background: rgba(53, 246, 255, .07);
}

.forum-command-card span,
.forum-command-card small,
.forum-category header span,
.forum-last span,
.forum-row-stats span,
.topic-row span,
.forum-side-card span,
.forum-online-footer span,
.mod-row span,
.post-member-stats span,
.announcement-card span,
.announcement-card small {
  display: block;
  color: var(--forum-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.forum-command-card strong {
  color: var(--forum-text);
  font-size: 32px;
  line-height: 1;
}

.forum-command-card.accent strong {
  color: var(--forum-gold);
}

.forum-search-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--forum-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .09), transparent 42%),
    var(--forum-panel);
  box-shadow: var(--forum-shadow);
}

.forum-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
}

.forum-search-form input,
.forum-search-form select {
  min-height: 48px;
  color: var(--forum-text);
}

.forum-search-form option {
  background: #111722;
  color: var(--forum-text);
}

.forum-search-results {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--forum-line);
}

.forum-search-results > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--forum-text);
}

.forum-result-group {
  display: grid;
  gap: 8px;
}

.forum-result-group > span {
  color: var(--forum-gold);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.forum-result-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .032);
}

.forum-result-row:hover {
  border-color: rgba(53, 246, 255, .28);
  background: rgba(53, 246, 255, .06);
}

.forum-result-row.member {
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
}

.forum-result-row.member img {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
}

.forum-result-row strong {
  color: var(--forum-text);
}

.forum-result-row small,
.forum-result-row p {
  margin: 0;
  color: var(--forum-muted);
  line-height: 1.45;
}

.forum-shell,
.forum-compose-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.forum-index,
.forum-sidebar,
.topic-view,
.mod-list,
.roles-list {
  display: grid;
  gap: 14px;
}

.forum-category,
.forum-board,
.forum-editor,
.forum-side-card,
.admin-panel,
.forum-online-footer,
.forum-announcements,
.compose-side {
  border: 1px solid var(--forum-line);
  border-radius: 8px;
  background: var(--forum-panel);
  box-shadow: var(--forum-shadow);
  overflow: hidden;
}

.forum-category > header,
.forum-announcements > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--forum-line);
  background:
    linear-gradient(90deg, rgba(255, 209, 102, .10), transparent 42%),
    rgba(255, 255, 255, .04);
}

.forum-category h2,
.forum-announcements h2,
.forum-editor h2,
.admin-panel h2,
.compose-side h2 {
  margin: 0 0 6px;
  color: var(--forum-text);
  font-size: 22px;
  letter-spacing: 0;
}

.forum-category p,
.forum-row p,
.topic-row p,
.admin-panel p,
.mod-row p,
.compose-side p {
  margin: 4px 0 0;
  color: var(--forum-muted);
  line-height: 1.55;
}

.forum-row {
  display: grid;
  grid-template-columns: 48px minmax(220px, 1fr) 78px 78px minmax(210px, .58fr);
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .018);
  transition: background .18s ease, border-color .18s ease;
}

.forum-row:first-of-type {
  border-top: 0;
}

.forum-row:hover,
.topic-row:hover,
.mod-row:hover {
  background: rgba(53, 246, 255, .055);
}

.forum-row.is-locked {
  background: rgba(255, 209, 102, .035);
}

.forum-icon,
.topic-status {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 246, 255, .28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(53, 246, 255, .16), rgba(53, 246, 255, .045));
  color: var(--forum-cyan);
  font-weight: 1000;
}

.forum-row-main strong,
.topic-row strong,
.mod-row strong,
.forum-last strong {
  color: var(--forum-text);
  font-size: 16px;
  line-height: 1.3;
}

.forum-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.forum-row-tags span,
.compose-chip-row span,
.post-achievements span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
  color: #cfd8e7;
  font-size: 11px;
  font-weight: 900;
}

.forum-row-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--forum-text);
  font-size: 22px;
  line-height: 1;
}

.forum-last strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-last small,
.forum-latest-list small,
.mod-row small {
  display: block;
  margin-top: 5px;
  color: var(--forum-muted);
  line-height: 1.35;
}

.forum-announcements {
  margin-bottom: 16px;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.announcement-card {
  min-height: 122px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .03));
}

.announcement-card:hover {
  border-color: rgba(255, 209, 102, .38);
  background: rgba(255, 209, 102, .08);
}

.announcement-card strong {
  color: var(--forum-text);
  font-size: 17px;
  line-height: 1.35;
}

.forum-side-card {
  padding: 18px;
}

.forum-side-card strong {
  display: block;
  margin-top: 5px;
  color: var(--forum-text);
  font-size: 34px;
  line-height: 1;
}

.forum-side-card p {
  margin: 10px 0 0;
  color: #cbd5e3;
  line-height: 1.6;
}

.forum-side-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.forum-side-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: var(--forum-text);
  font-weight: 900;
}

.forum-side-actions b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 49, 94, .86);
  color: #fff;
  font-size: 12px;
}

.forum-shortcuts {
  display: grid;
  gap: 8px;
}

.forum-shortcuts a,
.forum-latest-list a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--forum-text);
  font-weight: 900;
}

.forum-shortcuts span + a,
.forum-latest-list span + a {
  border-top: 0;
}

.forum-shortcuts a:hover,
.forum-latest-list a:hover,
.topic-main p a:hover,
.post-author:hover,
.forum-link {
  color: var(--forum-cyan);
}

.forum-board,
.forum-editor,
.admin-panel,
.compose-side {
  padding: 18px;
}

.forum-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.topic-row {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) 86px 86px;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .032);
  margin-bottom: 10px;
}

.topic-main a strong,
.topic-main p a,
.post-author {
  color: inherit;
}

.forum-empty {
  padding: 24px;
  border: 1px solid var(--forum-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #dbe8f8;
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  border: 1px solid var(--forum-line);
  border-radius: 8px;
  background: rgba(13, 18, 28, .88);
  box-shadow: var(--forum-shadow);
  overflow: hidden;
}

.post-anchor {
  position: absolute;
  top: -80px;
  left: 0;
}

.post-card aside {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-right: 1px solid var(--forum-line);
  background: rgba(255, 255, 255, .04);
  text-align: center;
}

.post-avatar,
.profile-avatar-lg,
.profile-avatar-edit img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #0b101a;
}

.post-body {
  min-width: 0;
  padding: 20px;
}

.post-body header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--forum-muted);
  font-size: 13px;
  font-weight: 900;
}

.post-content,
.post-body p {
  color: #e8f2ff;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: normal;
}

.post-reactions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.post-reaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.post-reaction-summary span,
.post-reaction-chip,
.post-login-reaction {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #cfd8e7;
  font-size: 12px;
  font-weight: 900;
}

.post-reaction-chip {
  font: inherit;
  cursor: pointer;
}

.post-reaction-chip:hover,
.post-reaction-chip:focus {
  border-color: rgba(53, 246, 255, .34);
  background: rgba(53, 246, 255, .09);
  color: #fff;
  outline: 0;
}

.post-reaction-chip b {
  font-size: 18px;
  line-height: 1;
}

.post-reaction-summary strong {
  color: var(--forum-text);
}

.post-reaction-picker {
  position: relative;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
}

.post-reaction-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035)),
    rgba(255, 255, 255, .03);
  color: var(--forum-text);
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 24px rgba(0, 0, 0, .22);
}

.post-reaction-trigger span {
  font-size: 19px;
  line-height: 1;
}

.post-reaction-trigger:hover,
.post-reaction-trigger.active,
.post-reaction-picker:focus-within .post-reaction-trigger {
  border-color: rgba(53, 246, 255, .38);
  background: rgba(53, 246, 255, .10);
  color: #fff;
}

.reaction-tray {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(680px, calc(100vw - 48px));
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(39, 45, 59, .97), rgba(17, 21, 31, .97));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.96);
  transform-origin: left bottom;
  transition: opacity .16s ease, transform .16s ease;
}

.post-reaction-picker:hover .reaction-tray,
.post-reaction-picker:focus-within .reaction-tray {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.reaction-option {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 4px 3px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--forum-text);
  font: inherit;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.reaction-option span {
  font-size: 27px;
  line-height: 1;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .28));
}

.reaction-option small {
  max-width: 50px;
  overflow: hidden;
  color: #cbd5e3;
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-option:hover,
.reaction-option:focus,
.reaction-option.active {
  transform: translateY(-7px) scale(1.12);
  border-color: rgba(53, 246, 255, .34);
  background: rgba(255, 255, 255, .08);
  outline: 0;
}

.reaction-option.active small {
  color: #fff;
}

.reaction-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(3, 5, 10, .68);
  backdrop-filter: blur(10px);
}

.reaction-viewer.open {
  display: grid;
}

.reaction-viewer-panel {
  width: min(520px, 100%);
  max-height: min(640px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(18, 22, 31, .98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
  overflow: hidden;
}

.reaction-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .045);
}

.reaction-viewer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forum-text);
  font-weight: 1000;
}

.reaction-viewer-title b {
  font-size: 25px;
  line-height: 1;
}

.reaction-viewer-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--forum-text);
  font-size: 22px;
  cursor: pointer;
}

.reaction-viewer-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding: 14px;
}

.reaction-member-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .032);
}

.reaction-member-row:hover {
  border-color: rgba(53, 246, 255, .26);
  background: rgba(53, 246, 255, .06);
}

.reaction-member-row img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #0b101a;
}

.reaction-member-row strong {
  display: block;
  overflow: hidden;
  color: var(--forum-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-member-row small {
  color: var(--forum-muted);
  font-size: 12px;
  font-weight: 900;
}

.reaction-member-emoji {
  font-size: 24px;
}

.reaction-viewer-empty {
  padding: 20px;
  color: var(--forum-muted);
  text-align: center;
}

.notifications-board {
  display: grid;
  gap: 10px;
}

.notification-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .032);
}

.notification-row.unread {
  border-color: rgba(53, 246, 255, .24);
  background: rgba(53, 246, 255, .07);
}

.notification-row:hover {
  background: rgba(255, 255, 255, .06);
}

.notification-row img,
.message-bubble img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #0b101a;
}

.notification-row strong {
  color: var(--forum-text);
  line-height: 1.35;
}

.notification-row p,
.notification-row small {
  display: block;
  margin: 5px 0 0;
  color: var(--forum-muted);
  line-height: 1.45;
}

.messages-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.messages-inbox {
  display: grid;
  gap: 8px;
}

.message-inbox-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .032);
}

.message-inbox-row.active,
.message-inbox-row.unread {
  border-color: rgba(53, 246, 255, .28);
  background: rgba(53, 246, 255, .07);
}

.message-inbox-row strong {
  color: var(--forum-text);
}

.message-inbox-row small,
.message-inbox-row p {
  margin: 0;
  color: var(--forum-muted);
  line-height: 1.45;
}

.messages-main {
  display: grid;
  gap: 14px;
}

.message-thread {
  display: grid;
  gap: 12px;
}

.message-participants {
  color: var(--forum-muted);
  font-size: 13px;
  font-weight: 900;
}

.message-bubble {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: 820px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .036);
}

.message-bubble.mine {
  margin-left: auto;
  border-color: rgba(255, 209, 102, .22);
  background: rgba(255, 209, 102, .065);
}

.message-bubble header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--forum-muted);
  font-size: 13px;
}

.message-bubble header strong {
  color: var(--forum-text);
}

.message-bubble .message-content {
  margin: 8px 0 0;
  color: #e8f2ff;
  line-height: 1.7;
}

.public-profile-actions {
  margin-top: 18px;
}

.forum-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--badge-color, #35f6ff);
  border-radius: 8px;
  background: rgba(53, 246, 255, .10);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.post-member-stats {
  min-width: 92px;
  display: grid;
  gap: 2px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.post-member-stats strong {
  font-size: 22px;
}

.post-achievements {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.forum-online-footer {
  display: block;
  margin-top: 18px;
  padding: 18px;
  text-align: center;
}

.forum-online-footer strong {
  display: block;
  color: var(--forum-text);
  font-size: 34px;
}

.forum-online-footer p {
  max-width: 900px;
  margin: 8px auto 0;
  color: #c9d7e9;
  line-height: 1.6;
}

.forum-editor form,
.admin-form {
  display: grid;
  gap: 12px;
}

.forum-body input,
.forum-body textarea,
.forum-body select {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, .13);
  background: rgba(4, 7, 12, .46);
}

.forum-editor textarea {
  min-height: 180px;
}

.forum-compose textarea,
.rich-editor textarea {
  min-height: 320px;
  line-height: 1.7;
  font-family: inherit;
}

.editor-source {
  display: none !important;
}

.wysiwyg-editor {
  display: grid;
  min-width: 0;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--forum-line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 16px);
}

.editor-tool,
.editor-colour,
.editor-size,
.editor-font,
.editor-swatch {
  min-width: 38px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(54, 63, 80, .96), rgba(31, 37, 50, .96));
  color: #eef6ff;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
}

.editor-tool:hover,
.editor-colour:hover,
.editor-size:hover,
.editor-font:hover,
.editor-swatch:hover {
  border-color: rgba(53, 246, 255, .42);
  background: rgba(53, 246, 255, .10);
}

.editor-size {
  width: 82px;
  appearance: none;
  background:
    linear-gradient(180deg, rgba(54, 63, 80, .96), rgba(31, 37, 50, .96));
}

.editor-font {
  width: 112px;
  appearance: none;
  background:
    linear-gradient(180deg, rgba(54, 63, 80, .96), rgba(31, 37, 50, .96));
}

.editor-size option,
.editor-font option {
  background: #111722;
  color: var(--forum-text);
}

.editor-swatch {
  min-width: 34px;
  width: 34px;
  padding: 0;
}

.editor-swatch:before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: var(--swatch-color);
  box-shadow: 0 0 16px rgba(53, 246, 255, .18);
}

.editor-colour {
  width: 42px;
  padding: 3px;
}

.wysiwyg-surface {
  position: relative;
  min-height: 190px;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid var(--forum-line);
  border-radius: 0 0 8px 8px;
  background: rgba(4, 7, 12, .50);
  color: var(--forum-text);
  font: inherit;
  line-height: 1.7;
  outline: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.forum-compose .wysiwyg-surface,
.rich-editor .wysiwyg-surface {
  min-height: 320px;
}

.wysiwyg-surface.empty:before {
  content: attr(data-placeholder);
  position: absolute;
  top: 14px;
  left: 14px;
  color: rgba(164, 175, 191, .72);
  pointer-events: none;
}

.wysiwyg-surface:focus {
  border-color: rgba(53, 246, 255, .38);
  box-shadow: 0 0 0 3px rgba(53, 246, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.wysiwyg-surface.invalid {
  border-color: rgba(255, 49, 94, .60);
  box-shadow: 0 0 0 3px rgba(255, 49, 94, .12);
}

.wysiwyg-surface blockquote,
.wysiwyg-surface pre,
.wysiwyg-surface figure {
  white-space: normal;
}

.wysiwyg-surface pre {
  white-space: pre-wrap;
}

.wysiwyg-surface img {
  cursor: default;
}

.rich-editor .editor-toolbar + textarea,
.rich-editor .editor-toolbar + .wysiwyg-surface {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(3, 5, 10, .68);
  backdrop-filter: blur(12px);
}

.editor-modal.open {
  display: grid;
}

.editor-modal-panel {
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 40, 54, .98), rgba(16, 21, 31, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}

.editor-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .045);
}

.editor-modal-head strong {
  color: var(--forum-text);
  font-size: 18px;
}

.editor-modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--forum-text);
  font-size: 22px;
  cursor: pointer;
}

.editor-modal-fields {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.editor-modal-fields label {
  display: grid;
  gap: 7px;
  color: var(--forum-muted);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editor-modal-fields input {
  min-height: 46px;
  color: var(--forum-text);
}

.editor-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--forum-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.compose-actions,
.mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compose-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.admin-form.compact {
  grid-template-columns: minmax(120px, .8fr) minmax(180px, 1.3fr) 90px 110px 90px;
  align-items: center;
}

.admin-form.forum-edit {
  grid-template-columns: 160px minmax(130px, .8fr) minmax(130px, .8fr) minmax(180px, 1fr) 90px 90px 90px 90px 90px;
  align-items: center;
}

.role-form {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  align-items: center;
}

.mini-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #dbe8f8;
  font-weight: 800;
}

.mini-check input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--forum-cyan);
}

.new-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--forum-line);
}

.role-row,
.mod-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.role-row form,
.mod-row form {
  margin: 0;
}

.mod-grid {
  grid-template-columns: 1fr 1fr;
}

.mod-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mod-actions {
  justify-content: flex-end;
}

.mod-actions .btn {
  min-height: 38px;
  padding: 0 14px;
}

.profile-avatar-edit {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--forum-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.profile-avatar-edit small,
.muted-line {
  color: var(--forum-muted);
  line-height: 1.5;
}

.public-profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 12px 0 20px;
}

.public-profile-head h1 {
  margin: 0 0 10px;
}

.member-title {
  margin: 10px 0 0 !important;
  color: #ffdca0 !important;
  font-weight: 900;
}

.forum-portal-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.forum-preview-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.forum-preview-category {
  padding: 14px;
  border: 1px solid var(--forum-line);
  border-radius: 8px;
  background: rgba(14, 20, 31, .80);
  overflow: hidden;
}

.forum-preview-category span {
  display: block;
  margin-bottom: 8px;
  color: var(--forum-gold);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.forum-preview-category a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.forum-preview-category a:first-of-type {
  border-top: 0;
}

.forum-preview-category small {
  color: var(--forum-muted);
  text-align: right;
}

.forum-u {
  text-decoration: underline;
}

.forum-align-center {
  text-align: center;
}

.forum-align-left {
  text-align: left;
}

.forum-align-right {
  text-align: right;
}

.forum-quote {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--forum-cyan);
  border-radius: 0 8px 8px 0;
  background: rgba(53, 246, 255, .08);
}

.forum-code {
  margin: 12px 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #070b11;
  color: #d8f5ff;
  white-space: pre-wrap;
}

.forum-image {
  margin: 14px 0;
}

.forum-image img {
  display: block;
  max-width: 100%;
  max-height: 560px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #0b101a;
}

.forum-size-small {
  font-size: .86em;
}

.forum-size-normal {
  font-size: 1em;
}

.forum-size-large {
  font-size: 1.28em;
}

.forum-size-custom {
  line-height: 1.45;
}

.public-profile-grid .achievement-list {
  grid-column: 1 / -1;
}

.achievement-list span {
  display: inline-flex;
  margin: 4px 6px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(53, 246, 255, .24);
  border-radius: 8px;
  background: rgba(53, 246, 255, .08);
  font-size: 12px;
  font-weight: 900;
}

.forum-mobile-dock {
  display: none;
}

@media (max-width: 1120px) {
  .forum-row {
    grid-template-columns: 48px minmax(180px, 1fr) 70px minmax(170px, .55fr);
  }

  .forum-row .forum-row-stats:nth-of-type(4) {
    display: none;
  }

  .forum-shell,
  .forum-compose-shell,
  .mod-grid {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forum-sidebar .forum-latest-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .forum-page {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 92px;
  }

  .forum-body .dash-nav {
    position: sticky;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .forum-top-nav {
    width: 100%;
    gap: 10px !important;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .forum-top-nav a {
    flex: 0 0 auto;
  }

  .forum-hero {
    grid-template-columns: 1fr;
    min-height: 210px;
    padding: 22px;
  }

  .forum-hero h1 {
    font-size: 42px;
  }

  .forum-hero-actions {
    justify-content: flex-start;
  }

  .forum-command-strip,
  .announcement-grid,
  .forum-sidebar,
  .topic-options,
  .forum-search-form,
  .messages-shell {
    grid-template-columns: 1fr;
  }

  .forum-search-form .btn {
    width: 100%;
  }

  .forum-row {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 15px;
  }

  .forum-row-stats,
  .forum-last {
    grid-column: 2;
  }

  .forum-row .forum-row-stats:nth-of-type(4) {
    display: block;
  }

  .forum-last strong {
    white-space: normal;
  }

  .topic-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .topic-row > div:nth-child(n+3) {
    grid-column: 2;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .message-bubble,
  .notification-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .message-bubble img,
  .notification-row img {
    width: 42px;
    height: 42px;
  }

  .message-bubble.mine {
    margin-left: 0;
  }

  .message-bubble header {
    display: grid;
    gap: 3px;
  }

  .reaction-tray {
    max-width: calc(100vw - 38px);
    overflow-x: auto;
    border-radius: 18px;
    transform-origin: left bottom;
    scrollbar-width: none;
  }

  .reaction-tray::-webkit-scrollbar {
    display: none;
  }

  .reaction-option {
    flex: 0 0 50px;
    width: 50px;
    height: 52px;
  }

  .post-card aside {
    border-right: 0;
    border-bottom: 1px solid var(--forum-line);
  }

  .admin-form.compact,
  .admin-form.forum-edit,
  .role-form,
  .role-row,
  .mod-row {
    grid-template-columns: 1fr;
  }

  .profile-avatar-edit,
  .public-profile-head {
    display: grid;
  }

  .forum-compose textarea,
  .rich-editor textarea {
    min-height: 240px;
  }

  .forum-mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .13);
    background: rgba(13, 16, 24, .94);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
  }

  .forum-mobile-dock a {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 8px;
    color: var(--forum-muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
  }

  .forum-mobile-dock a.active,
  .forum-mobile-dock a:hover {
    color: var(--forum-text);
    background: rgba(255, 255, 255, .08);
  }

  .forum-mobile-dock span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    color: var(--forum-cyan);
    font-size: 12px;
  }
}

/* 2026-06-21 UCD forum command-center visual pass */
.forum-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(53, 246, 255, .18), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 49, 94, .15), transparent 30%),
    linear-gradient(180deg, rgba(11, 14, 21, .94), #05070d 520px),
    var(--forum-bg);
}

.forum-body:before {
  content: "";
  position: fixed;
  inset: 86px 0 auto 0;
  height: 240px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(53, 246, 255, .14), transparent),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(255, 255, 255, .045) 72px 73px, transparent 73px 144px);
  mask-image: linear-gradient(to bottom, #000, transparent);
  opacity: .65;
}

.forum-page {
  max-width: 1420px;
}

.forum-body .dash-nav {
  background: rgba(6, 8, 13, .82);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .34);
}

.forum-top-nav a {
  padding: 0 2px;
}

.forum-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: stretch;
  min-height: 310px;
  padding: 34px;
  border-radius: 24px;
  border-color: rgba(53, 246, 255, .22);
  isolation: isolate;
  background:
    linear-gradient(115deg, rgba(6, 10, 18, .96) 0%, rgba(13, 20, 32, .94) 48%, rgba(34, 16, 24, .88) 100%),
    radial-gradient(circle at 12% 18%, rgba(53, 246, 255, .24), transparent 34%),
    radial-gradient(circle at 95% 0%, rgba(255, 209, 102, .14), transparent 30%);
  box-shadow:
    0 34px 95px rgba(0, 0, 0, .62),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 0 70px rgba(53, 246, 255, .05);
}

.forum-hero:before {
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 35%, rgba(53, 246, 255, .12) 35% 36%, transparent 36% 100%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
}

.forum-hero:after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 430px;
  height: 250px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(53, 246, 255, .20), transparent 66%);
  filter: blur(2px);
  opacity: .9;
}

.forum-hero h1 {
  max-width: 980px;
  font-size: clamp(48px, 6vw, 86px);
  letter-spacing: -.035em;
  text-shadow: 0 0 34px rgba(53, 246, 255, .18);
}

.forum-hero p {
  max-width: 840px;
  color: #d6e2f0;
}

.forum-hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.forum-hero-console {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
    rgba(4, 7, 12, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 18px 48px rgba(0, 0, 0, .38);
}

.forum-hero-console div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
}

.forum-hero-console span {
  display: block;
  color: var(--forum-muted);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.forum-hero-console strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--forum-text);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-hero-actions {
  max-width: none;
  justify-content: flex-start;
}

.forum-command-strip {
  gap: 16px;
}

.forum-command-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .088), rgba(255, 255, 255, .028)),
    rgba(10, 14, 22, .72);
}

.forum-command-card:after {
  content: "";
  position: absolute;
  inset: auto -26px -46px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(53, 246, 255, .12);
  filter: blur(1px);
}

.forum-command-card.accent:after {
  background: rgba(255, 209, 102, .16);
}

.forum-command-card strong {
  position: relative;
  z-index: 1;
  font-size: 40px;
}

.forum-search-panel,
.forum-category,
.forum-board,
.forum-editor,
.forum-side-card,
.forum-announcements,
.topic-view,
.post-card {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(13, 18, 28, .82);
}

.forum-search-panel {
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .12), transparent 50%),
    rgba(12, 18, 28, .86);
}

.forum-category,
.forum-announcements {
  padding-bottom: 10px;
}

.forum-category > header,
.forum-announcements > header {
  padding: 20px 22px;
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .10), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
}

.forum-category h2,
.forum-announcements h2 {
  font-size: 26px;
}

.forum-row {
  position: relative;
  grid-template-columns: 56px minmax(240px, 1fr) 84px 84px minmax(220px, .62fr);
  margin: 10px 12px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .035), transparent 35%),
    rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.forum-row:hover {
  border-color: rgba(53, 246, 255, .28);
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .09), transparent 42%),
    rgba(255, 255, 255, .04);
  transform: translateX(2px);
}

.forum-icon,
.topic-status {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border-color: rgba(53, 246, 255, .34);
  background:
    linear-gradient(180deg, rgba(53, 246, 255, .19), rgba(53, 246, 255, .05)),
    #0a111a;
  box-shadow: 0 0 28px rgba(53, 246, 255, .12);
  font-size: 18px;
}

.forum-row-main strong {
  font-size: 17px;
}

.forum-row-tags span,
.compose-chip-row span,
.post-achievements span {
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}

.forum-row-stats,
.forum-last {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .14);
}

.announcement-grid {
  gap: 14px;
  padding: 18px;
}

.announcement-card {
  min-height: 138px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 209, 102, .11), rgba(255, 255, 255, .035)),
    rgba(0, 0, 0, .18);
}

.forum-sidebar {
  position: sticky;
  top: 104px;
}

.forum-side-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022)),
    rgba(11, 16, 25, .82);
}

.forum-side-card strong {
  font-size: 38px;
}

.forum-shortcuts a,
.forum-latest-list a {
  border-radius: 12px;
  padding: 11px 10px;
}

.forum-shortcuts a:hover,
.forum-latest-list a:hover {
  background: rgba(53, 246, 255, .07);
}

.topic-row {
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .055), transparent 36%),
    rgba(255, 255, 255, .032);
}

.post-card {
  grid-template-columns: 230px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .016)),
    rgba(11, 16, 25, .9);
}

.post-card.latest {
  border-color: rgba(53, 246, 255, .28);
  box-shadow: var(--forum-shadow), 0 0 0 1px rgba(53, 246, 255, .08);
}

.post-card aside {
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 246, 255, .14), transparent 40%),
    rgba(255, 255, 255, .035);
}

.post-avatar,
.profile-avatar-lg,
.profile-avatar-edit img {
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}

.post-body {
  padding: 24px;
}

.post-body header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}

@media (max-width: 1120px) {
  .forum-sidebar {
    position: static;
  }
}

@media (max-width: 920px) {
  .forum-hero {
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 24px;
  }

  .forum-hero-console {
    grid-template-columns: 1fr;
  }

  .forum-row {
    grid-template-columns: 48px minmax(0, 1fr);
    margin-inline: 10px;
  }

  .forum-row-stats,
  .forum-last {
    padding: 8px 10px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-21 forum live chat panel */
.forum-live-chat {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(53, 246, 255, .18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(53, 246, 255, .13), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(255, 49, 94, .16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    rgba(9, 14, 22, .88);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .52),
    inset 0 1px 0 rgba(255, 255, 255, .10);
}

.forum-live-chat:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  opacity: .7;
}

.forum-live-chat > * {
  position: relative;
  z-index: 1;
}

.live-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .10), transparent 42%),
    rgba(255, 255, 255, .025);
}

.live-chat-head h2 {
  margin: 5px 0 6px;
  color: var(--forum-text);
  font-size: 32px;
}

.live-chat-head p {
  max-width: 760px;
  margin: 0;
  color: #c7d4e6;
  line-height: 1.6;
}

.live-chat-status {
  min-width: 190px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(0, 0, 0, .20);
}

.live-chat-status span {
  width: 11px;
  height: 11px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--forum-green);
  box-shadow: 0 0 18px rgba(56, 242, 140, .52);
}

.live-chat-status strong,
.live-chat-status small {
  display: block;
}

.live-chat-status strong {
  margin-top: 6px;
  color: var(--forum-text);
  font-size: 18px;
}

.live-chat-status small {
  margin-top: 4px;
  color: var(--forum-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 18px;
  padding: 20px;
}

.live-chat-feed {
  min-height: 360px;
  max-height: 620px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .24)),
    rgba(3, 6, 11, .48);
}

.live-chat-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 16px;
  color: var(--forum-muted);
  text-align: center;
}

.live-chat-empty strong {
  color: var(--forum-text);
  font-size: 20px;
}

.live-chat-message {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.live-chat-message.is-hidden {
  opacity: .55;
}

.live-chat-avatar {
  width: 48px;
  height: 48px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 246, 255, .30);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(53, 246, 255, .18), rgba(53, 246, 255, .05)),
    #0a111a;
  color: var(--forum-cyan);
  font-weight: 1000;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.live-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-chat-bubble {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .045), transparent 44%),
    rgba(255, 255, 255, .035);
}

.live-chat-bubble header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.live-chat-bubble header a {
  color: var(--forum-text);
  font-weight: 1000;
  text-decoration: none;
}

.live-chat-bubble time {
  margin-left: auto;
  color: var(--forum-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-chat-body {
  color: #e5eef9;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.live-chat-body p,
.live-chat-body figure {
  margin: 0;
}

.live-chat-compose {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .022)),
    rgba(7, 11, 18, .76);
}

.live-chat-compose h3 {
  margin: 0;
  color: var(--forum-text);
  font-size: 22px;
}

.live-chat-compose p {
  margin: 0;
  color: var(--forum-muted);
  line-height: 1.55;
}

.live-chat-form {
  display: grid;
  gap: 12px;
}

.live-chat-form .wysiwyg-surface {
  min-height: 132px;
  max-height: 260px;
}

.live-chat-form .editor-toolbar {
  max-height: 148px;
  overflow-y: auto;
}

.live-chat-login {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
}

.live-chat-login strong {
  color: var(--forum-text);
}

.live-chat-format {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-chat-format span {
  width: 100%;
  color: var(--forum-muted);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.live-chat-format code {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: #dff8ff;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .live-chat-layout {
    grid-template-columns: 1fr;
  }

  .live-chat-feed {
    max-height: 520px;
  }
}

@media (max-width: 720px) {
  .live-chat-head {
    display: grid;
    padding: 18px;
  }

  .live-chat-layout {
    padding: 14px;
  }

  .live-chat-message {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .live-chat-avatar {
    width: 40px;
    height: 40px;
  }

  .live-chat-bubble time {
    width: 100%;
    margin-left: 0;
  }
}

/* 2026-06-21 UCD RPG forum redesign */
:root {
  --ucd-street-hero: url("/assets/img/forum/ucd-rpg-street-hero-20260621.png");
  --ucd-garage-hub: url("/assets/img/forum/ucd-rpg-garage-hub-20260621.png");
  --forum-text: #f3f7fb;
  --forum-muted: #a4afbf;
  --forum-cyan: #35f6ff;
  --forum-red: #ff315e;
  --forum-gold: #ffd166;
  --forum-green: #38f28c;
}

.forum-body {
  --forum-bg: #04070c;
  --forum-panel: rgba(8, 13, 21, .78);
  --forum-panel-soft: rgba(12, 20, 31, .70);
  --forum-line: rgba(104, 238, 255, .14);
  --forum-line-strong: rgba(104, 238, 255, .30);
  --forum-cyan: #35f6ff;
  --forum-gold: #ffd166;
  --forum-red: #ff315e;
  --forum-green: #38f28c;
  position: relative;
  background:
    linear-gradient(180deg, rgba(2, 4, 9, .72), #04070c 620px),
    radial-gradient(circle at 16% 4%, rgba(53, 246, 255, .20), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(255, 49, 94, .18), transparent 30%),
    var(--ucd-garage-hub) center top / cover fixed,
    #04070c;
}

.forum-body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    radial-gradient(circle at 48% -10%, rgba(255, 209, 102, .16), transparent 34%);
  background-size: 74px 74px, 74px 74px, auto;
  animation: forumCityDrift 18s linear infinite;
  opacity: .65;
}

.forum-page {
  max-width: 1480px;
}

.forum-body .dash-nav {
  border-bottom-color: rgba(53, 246, 255, .16);
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .07), transparent 34%),
    rgba(3, 6, 12, .82);
  backdrop-filter: blur(18px);
}

.forum-body .brand span small {
  color: var(--forum-cyan);
}

.forum-hero-rpg {
  min-height: clamp(460px, 58vh, 690px);
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  align-items: end;
  padding: clamp(24px, 4vw, 54px);
  border-radius: 28px;
  border-color: rgba(53, 246, 255, .34);
  background:
    linear-gradient(90deg, rgba(2, 5, 10, .98) 0%, rgba(3, 7, 14, .90) 32%, rgba(3, 7, 14, .52) 64%, rgba(3, 7, 14, .82) 100%),
    radial-gradient(circle at 20% 26%, rgba(53, 246, 255, .22), transparent 26%),
    var(--ucd-street-hero) center center / cover;
  background-position:
    center center,
    center center,
    calc(50% + var(--forum-hero-x, 0px)) calc(50% + var(--forum-hero-y, 0px));
  box-shadow:
    0 40px 110px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(53, 246, 255, .06),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

.forum-hero-rpg:before {
  background:
    linear-gradient(110deg, transparent 0 58%, rgba(53, 246, 255, .18) 58% 58.45%, transparent 58.45% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 52px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .38));
  background-size: 100% 100%, 52px 100%, 100% 100%;
  opacity: .72;
  animation: forumStreetSweep 8s ease-in-out infinite;
}

.forum-hero-rpg:after {
  right: -160px;
  bottom: -130px;
  width: 560px;
  height: 420px;
  background:
    radial-gradient(circle, rgba(53, 246, 255, .24), transparent 62%),
    radial-gradient(circle at 68% 68%, rgba(255, 49, 94, .22), transparent 38%);
  filter: blur(6px);
}

.forum-hero-copy {
  align-self: end;
}

.forum-hero-rpg .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(53, 246, 255, .24);
  border-radius: 999px;
  background: rgba(0, 0, 0, .34);
  color: var(--forum-cyan);
}

.forum-hero-rpg .eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forum-green);
  box-shadow: 0 0 18px rgba(56, 242, 140, .72);
}

.forum-hero-rpg h1 {
  max-width: 860px;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(52px, 7vw, 108px);
  line-height: .9;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(53, 246, 255, .22), 0 12px 36px rgba(0, 0, 0, .62);
}

.forum-hero-rpg p {
  max-width: 720px;
  color: #dceeff;
  font-size: 18px;
}

.forum-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.forum-hero-badges span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(0, 0, 0, .34);
  color: #effaff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.forum-hero-console {
  border-radius: 22px;
  border-color: rgba(53, 246, 255, .20);
  background:
    linear-gradient(180deg, rgba(53, 246, 255, .10), rgba(255, 255, 255, .028)),
    rgba(2, 5, 10, .68);
  backdrop-filter: blur(16px);
}

.forum-hero-console div {
  border-color: rgba(255, 255, 255, .11);
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .07), transparent 46%),
    rgba(0, 0, 0, .24);
}

.forum-server-link {
  color: #fff;
  text-decoration: none;
}

.forum-server-link:hover {
  color: var(--forum-gold);
}

.forum-hero-actions {
  justify-content: flex-start;
}

.forum-body .btn.primary {
  background:
    linear-gradient(135deg, var(--forum-cyan), #ffffff 50%, var(--forum-gold));
  color: #021017;
}

.forum-body .btn.ghost {
  border-color: rgba(53, 246, 255, .18);
  background: rgba(2, 6, 12, .48);
  backdrop-filter: blur(10px);
}

.forum-command-strip {
  perspective: 1200px;
}

.forum-command-card {
  min-height: 138px;
  border-radius: 22px;
  border-color: rgba(53, 246, 255, .15);
  background:
    linear-gradient(145deg, rgba(53, 246, 255, .12), rgba(255, 209, 102, .045)),
    rgba(4, 8, 14, .78);
  backdrop-filter: blur(14px);
}

.forum-command-card:hover {
  transform: translateY(-6px) rotateX(4deg);
}

.forum-command-card strong {
  font-size: 46px;
}

.forum-live-chat,
.forum-search-panel,
.forum-category,
.forum-announcements,
.forum-side-card,
.forum-board,
.topic-view,
.post-card,
.forum-editor,
.profile-card {
  border-color: rgba(53, 246, 255, .15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018)),
    rgba(5, 9, 16, .82);
  backdrop-filter: blur(14px);
}

.forum-live-chat {
  background:
    linear-gradient(110deg, rgba(3, 7, 13, .95), rgba(3, 7, 13, .70)),
    radial-gradient(circle at 78% 18%, rgba(53, 246, 255, .15), transparent 24%),
    var(--ucd-garage-hub) center center / cover;
}

.live-chat-head,
.forum-category > header,
.forum-announcements > header {
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .13), transparent 45%),
    rgba(0, 0, 0, .24);
}

.forum-search-panel {
  border-radius: 20px;
}

.forum-row {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, .09);
  background:
    linear-gradient(90deg, rgba(53, 246, 255, .06), transparent 42%),
    rgba(255, 255, 255, .035);
}

.forum-row:hover {
  transform: translateX(5px) scale(1.008);
  border-color: rgba(53, 246, 255, .38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), 0 0 22px rgba(53, 246, 255, .08);
}

.forum-icon,
.topic-status {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .20), transparent 32%),
    linear-gradient(160deg, rgba(53, 246, 255, .28), rgba(255, 49, 94, .08)),
    #08111a;
  animation: forumNeonPulse 2.8s ease-in-out infinite;
}

.announcement-card,
.topic-row,
.live-chat-bubble,
.profile-visitor-list a {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.announcement-card:hover,
.topic-row:hover,
.profile-visitor-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 246, 255, .32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

.forum-sidebar {
  top: 96px;
}

.profile-visitors {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(53, 246, 255, .14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(53, 246, 255, .08), transparent 42%),
    rgba(0, 0, 0, .20);
}

.profile-visitors header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-visitors header span,
.profile-visitors header strong {
  color: var(--forum-text);
}

.profile-visitors header span {
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-visitors > p {
  margin: 0;
  color: var(--forum-muted);
}

.profile-visitor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.profile-visitor-list a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: var(--forum-text);
  text-decoration: none;
}

.profile-visitor-list img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.profile-visitor-list span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.profile-visitor-list strong,
.profile-visitor-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-visitor-list small {
  color: var(--forum-muted);
}

.forum-hero-rpg,
.forum-live-chat,
.forum-command-card,
.forum-row,
.announcement-card,
.forum-side-card {
  animation: forumPanelRise .55s ease both;
}

@keyframes forumCityDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-74px, -74px, 0); }
}

@keyframes forumStreetSweep {
  0%, 100% { opacity: .50; transform: translateX(-1.5%); }
  50% { opacity: .82; transform: translateX(1.5%); }
}

@keyframes forumNeonPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(53, 246, 255, .14); }
  50% { box-shadow: 0 0 36px rgba(53, 246, 255, .30), 0 0 18px rgba(255, 49, 94, .14); }
}

@keyframes forumPanelRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .forum-hero-rpg {
    min-height: auto;
    grid-template-columns: 1fr;
    background-position: center right;
  }

  .forum-hero-rpg h1 {
    font-size: clamp(46px, 15vw, 76px);
  }
}

@media (max-width: 700px) {
  .forum-body {
    background-attachment: scroll;
  }

  .forum-hero-rpg {
    border-radius: 20px;
  }

  .forum-command-card strong {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .forum-body:after,
  .forum-hero-rpg:before,
  .forum-icon,
  .topic-status,
  .forum-hero-rpg,
  .forum-live-chat,
  .forum-command-card,
  .forum-row,
  .announcement-card,
  .forum-side-card {
    animation: none !important;
  }
}
