:root {
  --page: #20262b;
  --shell: #1b2229;
  --category: #17212a;
  --row: #373d43;
  --row-alt: #484f57;
  --row-hover: #515963;
  --sidebar: #242a30;
  --sidebar-2: #343b44;
  --line: #244359;
  --line-soft: rgba(255, 255, 255, .07);
  --text: #f6f8fb;
  --muted: #c5d0db;
  --dim: #94a2ae;
  --green: #8ccf45;
  --green-2: #6ab934;
  --gold: #e2be58;
  --blue: #159dff;
  --blue-2: #0074d9;
  --red: #ff4b4b;
  --shadow: rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
  background: #151c23;
  border-bottom: 1px solid #111820;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
  position: relative;
  z-index: 20;
}

.wrap {
  width: min(1880px, calc(100% - 40px));
  margin: 0 auto;
}

.site-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 28px min(5vw, 70px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 10, 16, .72), rgba(3, 10, 16, .08) 44%, rgba(3, 10, 16, .35)),
    url("pacific-reality-sa-banner.png") center / cover no-repeat;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(10, 15, 20, .55));
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: min(560px, 90vw);
  color: #fff;
  text-shadow: 0 5px 14px rgba(0, 0, 0, .72);
  transition: transform .14s ease;
}

.hero-logo:hover { transform: translateY(-2px); }

.hero-logo img {
  width: clamp(112px, 13vw, 190px);
  height: clamp(112px, 13vw, 190px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .62));
}

.hero-logo strong {
  display: block;
  font-size: clamp(36px, 5vw, 74px);
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #f7fcff;
  -webkit-text-stroke: 2px #07131d;
}

.hero-logo strong span {
  display: block;
  color: #24c7ff;
}

.hero-logo em {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 900;
  line-height: 1;
  transform: rotate(-5deg);
  text-shadow: 0 3px 0 #07131d, 0 10px 14px rgba(0, 0, 0, .54);
}

.hero-search {
  position: absolute;
  z-index: 2;
  top: 32px;
  right: min(5vw, 70px);
  width: min(270px, calc(100vw - 40px));
  min-height: 38px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  border-radius: 4px;
  background: rgba(48, 55, 63, .92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .26);
}

.hero-search span::before {
  content: "";
  width: 13px;
  height: 13px;
  display: block;
  margin-left: 12px;
  border: 2px solid #c8d3dd;
  border-radius: 50%;
  box-shadow: 6px 6px 0 -4px #c8d3dd;
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0 12px 0 2px;
}

.primary-bar {
  min-height: 48px;
  background: #238bd2;
}

.nav-shell {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.secondary-bar {
  min-height: 40px;
  background: #3b4148;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.secondary-shell {
  min-height: 40px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
  color: #d4dbe2;
  font-size: 12px;
}

.secondary-shell a:hover {
  color: #fff;
}

.new-post-pill {
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 5px;
  background: #249cf0;
  color: #fff;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  display: inline-flex;
}

.nav a,
.actions a,
.actions button,
.viewer {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 12px;
  color: #eef7ff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .14s ease, color .14s ease, transform .14s ease;
}

.nav a.active,
.nav a:hover {
  background: rgba(12, 77, 126, .52);
  color: #fff;
}

.nav a:hover,
.actions a:hover,
.actions button:hover {
  transform: translateY(-1px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 7px;
  border: 1px solid #314a5d;
  border-radius: 4px;
  background: #1d252d;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .14s ease, transform .14s ease;
  z-index: 40;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 3px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.actions form { margin: 0; }

.actions button {
  border: 0;
  background: rgba(0, 0, 0, .16);
  cursor: pointer;
}

.actions .primary {
  background: var(--green);
  color: #12200e;
}

.viewer {
  background: rgba(0, 0, 0, .18);
  color: var(--text);
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  padding: 18px 0 30px;
  align-items: start;
}

.content { min-width: 0; }
.full-content { grid-column: 1 / -1; }

.subnav-line {
  display: flex;
  gap: 20px;
  margin: -2px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.page-title {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 400;
}

.notice-bar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid #249cf0;
  border-radius: 5px;
  overflow: hidden;
  background: #333a42;
  color: #fff;
}

.notice-icon {
  display: grid;
  place-items: center;
  background: #249cf0;
  color: #dff4ff;
  font-weight: 900;
  font-style: normal;
}

.notice-bar p {
  margin: 0;
  padding: 15px 15px;
  line-height: 1.45;
}

.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--shell);
}

.forum-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 3px solid var(--accent, var(--blue));
}

.forum-toolbar h1 {
  margin: 0 0 3px;
  font-size: 20px;
}

.forum-toolbar p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #4a5560;
  background: #303840;
  color: var(--text);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.button.primary {
  border: 0;
  background: var(--green);
  color: #12200e;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #62717e;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.block {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: var(--row);
  box-shadow: 0 10px 26px var(--shadow);
}

.pad { padding: 15px; }

.block-title {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  background: var(--category);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--accent, var(--blue));
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.category-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.category-icon {
  min-width: 32px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: var(--accent, var(--blue));
  color: #fff;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 900;
}

.collapse-arrow {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: background-color .14s ease, transform .14s ease;
}

.collapse-arrow:hover {
  background: rgba(255, 255, 255, .08);
}

.category-block.is-collapsed .collapse-arrow,
.block.is-collapsed .collapse-arrow {
  transform: rotate(180deg);
}

.category-block.is-collapsed .forum-row,
.block.is-collapsed > .thread-row,
.block.is-collapsed > .empty {
  display: none;
}

.forum-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 130px minmax(190px, 220px);
  gap: 14px;
  align-items: center;
  padding: 10px 20px 10px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
  cursor: pointer;
  transition: background-color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.forum-row:nth-child(odd) { background: var(--row); }
.forum-row:nth-child(even) { background: var(--row-alt); }
.forum-row:hover {
  background: var(--row-hover);
  box-shadow: inset 4px 0 0 var(--accent, var(--blue));
  transform: translateX(3px);
}
.forum-row:last-child { border-bottom: 0; }

.thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px minmax(190px, 220px);
  gap: 14px;
  padding: 14px 18px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
  cursor: pointer;
  transition: background-color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.thread-row:nth-child(odd) { background: var(--row); }
.thread-row:nth-child(even) { background: var(--row-alt); }
.thread-row:hover {
  background: var(--row-hover);
  box-shadow: inset 4px 0 0 var(--accent, var(--blue));
  transform: translateX(3px);
}

.forum-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent, var(--blue));
  background: #17242b;
  border: 2px solid var(--accent, var(--blue));
  box-shadow: 0 2px 0 #10161b, inset 0 0 0 3px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .45);
  font-size: 17px;
  font-weight: 900;
  transition: border-color .14s ease, color .14s ease, transform .14s ease;
}

.forum-row:hover .forum-icon {
  color: #8ed2ff;
  border-color: #8ed2ff;
  transform: scale(1.04);
}

.forum-title {
  display: inline;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.forum-title:hover,
.subforums a:hover,
.last-post a:hover,
.trend:hover strong {
  color: var(--blue);
}

.new-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 3px;
  background: var(--green);
  color: #11200e;
  font-size: 11px;
  font-weight: 900;
  vertical-align: 1px;
}

.forum-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.subforums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.subforums a {
  color: #f4f7fa;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.subforums a::before {
  content: "";
  width: 9px;
  height: 6px;
  border: 1px solid #b8c6d1;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 4px 2px 0 -1px #b8c6d1;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  text-align: center;
  color: #c9d4df;
  font-size: 11px;
}

.stats span + span {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.stats strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.last-post {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.last-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--green-2);
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .18);
}

.last-avatar img,
.avatar img,
.mini-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.has-image {
  overflow: hidden;
}

.mini-avatar {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
}

.large-avatar {
  width: 84px;
  height: 84px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
}

.last-copy {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.last-copy strong {
  display: block;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.sidebar {
  position: sticky;
  top: 82px;
}

.side-card {
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 8px;
  background: var(--sidebar);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.side-card h2 {
  min-height: 29px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

.side-card h2::before {
  content: "";
  width: 10px;
  height: 13px;
  display: inline-block;
  border: 1px solid var(--muted);
  border-radius: 1px;
  box-shadow: inset -3px 3px 0 rgba(255, 255, 255, .08);
}

.channel-title {
  margin: 9px 0 7px;
  color: #c3d5e4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.with-space { margin-top: 17px; }

.channel-row {
  display: block;
  padding: 5px 8px;
  margin-bottom: 5px;
  border-radius: 5px;
  background: #3a414a;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  transition: background-color .14s ease, transform .14s ease, color .14s ease;
}

.channel-row:hover {
  background: #48515c;
  color: #fff;
  transform: translateX(3px);
}

.member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member {
  max-width: 100%;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #3b424a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: background-color .14s ease, transform .14s ease;
}

.member::first-letter {
  color: var(--blue);
}

.member:hover {
  background: #4a535e;
  transform: translateY(-1px);
}

.member span {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted-member {
  color: #d9e2ea;
}

.online-dot {
  margin: 12px 0;
  color: #d9e8de;
  font-size: 12px;
}

.online-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #39d98a;
}

.join-button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--green);
  color: #14210f;
  font-weight: 900;
  transition: background-color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.join-button:hover {
  background: #9ce258;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.trend {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  transition: transform .14s ease;
}

.trend:hover {
  transform: translateX(3px);
}

.trend:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.trend strong {
  display: block;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.3;
}

.trend span,
.side-card p,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.breadcrumbs {
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 12px;
}

.forum-heading h1,
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.forum-heading p {
  margin: 0;
  color: var(--muted);
}

.block h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 16px;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}

.form input,
.form textarea,
.form select,
.xf-form input,
.xf-form textarea,
.xf-form select,
.admin-row input,
.admin-row textarea,
.admin-row select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #4f5b66;
  border-radius: 4px;
  outline: none;
  background: #232a31;
  color: var(--text);
}

.form input:focus,
.form textarea:focus,
.form select:focus,
.xf-form input:focus,
.xf-form textarea:focus,
.xf-form select:focus,
.admin-row input:focus,
.admin-row textarea:focus,
.admin-row select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 157, 255, .14);
}

.auth-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.auth-form-block {
  background: #3b4148;
  border-radius: 6px;
  overflow: hidden;
}

.xf-form {
  display: grid;
}

.xf-row {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.xf-row > label {
  padding: 16px 15px;
  text-align: right;
  border-right: 1px solid rgba(255, 255, 255, .10);
  color: #fff;
  font-weight: 900;
}

.xf-row > label span {
  display: block;
  margin-top: 4px;
  color: #d0d8e0;
  font-weight: 400;
}

.xf-row > div {
  padding: 14px 15px;
}

.xf-row small {
  display: block;
  margin-top: 8px;
  color: #d6e2ec;
  line-height: 1.4;
}

.human-box {
  width: min(310px, 100%);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid #d7dee5;
  border-radius: 4px;
  background: #2d3238;
  color: #fff;
  font-weight: 900;
}

.human-box input,
.terms-line input,
.check-line input {
  width: auto;
}

.terms-line,
.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #fff;
}

.xf-actions {
  padding: 10px 15px;
  background: #454c55;
}

.auth-login-box {
  position: sticky;
  top: 18px;
  padding: 15px;
  border-radius: 5px;
  background: #343a41;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .36);
}

.auth-login-box .button {
  width: 100%;
  margin-top: 10px;
}

.auth-login-box > span,
.auth-login-box > strong {
  display: block;
  margin-top: 12px;
  color: #fff;
}

.login-divider {
  position: relative;
  height: 1px;
  margin: 20px 0;
  background: rgba(255, 255, 255, .12);
  text-align: center;
}

.login-divider span {
  position: relative;
  top: -9px;
  padding: 0 12px;
  background: #343a41;
  color: var(--muted);
}

.passkey-button {
  background: #2e5069;
  color: #dff4ff;
}

.composer {
  padding: 0;
  overflow: hidden;
}

.composer-form {
  gap: 0;
}

.composer-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #3b4148;
}

.composer-row label {
  text-align: right;
  color: #fff;
  font-weight: 900;
}

.editor-shell {
  padding: 14px 16px;
  background: #343a41;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid #4f5b66;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #2d333a;
}

.editor-toolbar button,
.editor-toolbar select,
.editor-toolbar input[type="color"] {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  background: #434b54;
  color: #fff;
  cursor: pointer;
}

.editor-toolbar select {
  max-width: 130px;
  padding: 0 8px;
}

.editor-toolbar input[type="color"] {
  width: 38px;
  padding: 3px;
}

.editor-shell textarea {
  min-height: 300px;
  border-radius: 0 0 5px 5px;
  resize: vertical;
}

.composer-help {
  display: grid;
  gap: 5px;
  padding: 13px 16px;
  border-top: 1px solid rgba(36, 156, 240, .45);
  background: rgba(36, 156, 240, .10);
  color: #dff4ff;
}

.composer-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #454c55;
}

.account-panel,
.profile-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.account-preview {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, .10);
  background: #30363d;
}

.profile-header {
  grid-template-columns: 130px minmax(0, 1fr) 220px;
  padding: 18px;
  align-items: center;
}

.profile-header h1 {
  margin: 5px 0;
  font-size: 28px;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.profile-stats strong {
  display: block;
  font-size: 24px;
  color: #fff;
}

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

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #202832;
}

.admin-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  padding: 0 14px;
  background: #343d46;
  color: #dce7f0;
  font-weight: 900;
  cursor: pointer;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  background: #249cf0;
  color: #fff;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-card {
  margin-bottom: 20px;
}

.compact-form {
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 70px 90px 80px;
  gap: 8px;
  align-items: center;
}

.category-admin-row {
  grid-template-columns: minmax(180px, 1fr) 80px 70px 90px 80px;
}

.forum-admin-row {
  grid-template-columns: 150px 160px minmax(160px, 1fr) minmax(180px, 1fr) 60px 70px 80px 70px;
}

.prefix-admin-row {
  grid-template-columns: minmax(130px, 1fr) 70px 90px 120px minmax(100px, 1fr) 70px;
}

.user-admin-row {
  grid-template-columns: 150px 120px minmax(150px, 1fr) minmax(130px, 1fr) 70px minmax(160px, 1fr) 70px;
}

.compact-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
}

.compact-check input {
  width: auto;
}

.flash {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 164, 255, .35);
  background: rgba(36, 164, 255, .10);
  color: #d9f0ff;
}

.flash-error {
  border-color: rgba(255, 75, 75, .42);
  background: rgba(255, 75, 75, .12);
  color: #ffd8d8;
}

.flash-success {
  border-color: rgba(140, 207, 69, .42);
  background: rgba(140, 207, 69, .12);
  color: #eaffd9;
}

.empty {
  padding: 18px;
  color: var(--muted);
}

.post {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}

.post-author {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .16);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #12200e;
  font-weight: 900;
  overflow: hidden;
}

.prefix-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-right: 5px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--prefix-color, #249cf0);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  vertical-align: 1px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--rank-color, var(--blue));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-title {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.post-author strong,
.post-author span,
.post-author small {
  display: block;
  margin-top: 8px;
}

.post-author span {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.post-author small,
.post-meta {
  color: var(--dim);
  font-size: 11px;
}

.post-body {
  padding: 16px;
}

.post-meta {
  margin-bottom: 12px;
}

.post-text {
  color: var(--text);
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.post-text a {
  color: #66c4ff;
  font-weight: 800;
}

.post-text blockquote {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid var(--blue);
  background: rgba(36, 156, 240, .10);
  color: #eaf6ff;
}

.post-text pre {
  overflow: auto;
  padding: 12px;
  border-radius: 4px;
  background: #111820;
  color: #dff4ff;
}

.post-text ul {
  margin: 10px 0 10px 24px;
}

.post-image {
  display: block;
  max-width: min(100%, 720px);
  max-height: 520px;
  margin: 12px 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.media-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 8px 0;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(36, 156, 240, .16);
}

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

.spoiler {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  background: #252d35;
}

.auth-content {
  min-height: 420px;
}

.auth-card {
  max-width: 560px;
}

.forum-row:focus-visible,
.thread-row:focus-visible,
.channel-row:focus-visible,
.trend:focus-visible,
.button:focus-visible,
.nav a:focus-visible,
.actions a:focus-visible,
.actions button:focus-visible,
.collapse-arrow:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.js-enabled .forum-row[data-href],
.js-enabled .thread-row[data-href] {
  cursor: pointer;
}

.member-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xf-tooltip {
  position: fixed;
  max-width: 280px;
  padding: 7px 9px;
  border: 1px solid #385368;
  border-radius: 4px;
  background: #111820;
  color: #edf7ff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .09s ease, transform .09s ease;
  z-index: 80;
}

.xf-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .category-block,
.js-enabled .block {
  overflow: hidden;
}

.js-enabled .category-block .forum-row,
.js-enabled .block .thread-row,
.js-enabled .block .empty {
  animation: rowIn .16s ease both;
}

@keyframes rowIn {
  from { opacity: .75; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer {
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 860px) {
  .header { grid-template-columns: 1fr; padding: 10px 0; }
  .brand { min-width: 0; }
  .actions { justify-content: flex-start; flex-wrap: wrap; }
  .forum-row { grid-template-columns: 48px minmax(0, 1fr); }
  .stats,
  .last-post { grid-column: 2; }
  .thread-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 20px, 1880px); }
  .forum-toolbar { align-items: flex-start; flex-direction: column; }
  .block-title { padding: 0 14px; font-size: 19px; }
  .forum-row { grid-template-columns: 1fr; padding: 14px; }
  .forum-icon { display: none; }
  .stats,
  .last-post { grid-column: auto; }
  .post { grid-template-columns: 1fr; }
  .post-author { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}
