* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0b1118;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #8fb0cf;
  text-decoration: none;
}

a:hover {
  color: #c5e3ff;
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 14px 24px;
  background: url("https://s3.theburbs.club/style/header-bg.png") center / cover no-repeat;
  background-color: #0b1017;
  color: #dbe2ea;
  border-bottom: 1px solid rgba(62, 90, 120, 0.35);
}

.site-header a {
  color: #dbe2ea;
  text-decoration: none;
  margin-right: 0;
}

.brand a {
  font-weight: 700;
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav .nav-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 34, 92, 0.95);
  border: 1px solid rgba(94, 66, 138, 0.7);
  color: #f2e9ff;
  text-decoration: none;
}

.nav .nav-pill:hover {
  background: rgba(72, 44, 118, 0.98);
  border-color: rgba(124, 92, 178, 0.85);
  color: #ffffff;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 6px 10px;
  background: rgba(248, 223, 141, 0.92);
  border-radius: 999px;
  border: 1px solid rgba(209, 172, 68, 0.7);
  color: #2c2414;
  cursor: pointer;
}

.nav a.nav-user {
  color: #2c2414;
  text-decoration: none;
}

.nav-user:hover {
  background: rgba(253, 234, 170, 0.98);
  border-color: rgba(209, 172, 68, 0.9);
}

.nav a.nav-user:hover {
  color: #2c2414;
}

.nav-admin {
  background: rgba(122, 40, 40, 0.85);
  border-color: rgba(170, 72, 72, 0.6);
  color: #ffb3b3;
}

.nav a.nav-admin {
  color: #ffb3b3;
}

.nav-admin:hover {
  background: rgba(150, 50, 50, 0.9);
  border-color: rgba(210, 88, 88, 0.95);
}

.nav a.nav-admin:hover {
  color: #ffd1d1;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: rgba(10, 18, 28, 0.98);
  border: 1px solid rgba(54, 80, 112, 0.6);
  border-radius: 10px;
  padding: 8px;
  display: none;
  min-width: 160px;
  z-index: 10;
}

.nav-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #dbe2ea;
}

.nav-menu a:hover {
  background: rgba(18, 32, 49, 0.9);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  display: block;
}

.content {
  max-width: none;
  margin: 0;
  padding: 24px 48px;
  flex: 1;
  background-image: url("https://s3.theburbs.club/style/bg.png"),
    radial-gradient(circle at 20% 20%, rgba(21, 62, 105, 0.25), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(15, 45, 77, 0.4), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(9, 26, 44, 0.7), transparent 55%);
  background-attachment: fixed;
  background-repeat: repeat;
  background-position: center top;
}

.site-footer {
  text-align: center;
  padding: 16px;
  color: #dbe7f5;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(42, 64, 92, 0.6);
  margin: 0;
}

.page-title h1 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #f8fafc;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #b4c6dc;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 18, 28, 0.85);
  border: 1px solid rgba(54, 80, 112, 0.5);
  box-shadow: inset 0 0 0 1px rgba(9, 20, 32, 0.6);
}

.breadcrumb a {
  color: #c5dcf7;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #e2f0ff;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #7f93aa;
  font-size: 10px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.main-column {
  min-width: 0;
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.forum-list {
  display: grid;
  gap: 16px;
}

.forum-card {
  background: rgba(10, 18, 28, 0.9);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(54, 80, 112, 0.4);
  box-shadow: inset 0 0 0 1px rgba(9, 20, 32, 0.7);
  display: grid;
  gap: 12px;
  width: 100%;
}

.forum-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 80px 80px 200px;
  align-items: center;
  gap: 12px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.forum-main {
  min-width: 0;
}

.forum-head {
  color: #9db4cc;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(42, 64, 92, 0.7);
}

.forum-col-title {
  grid-column: 1 / span 2;
}

.forum-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1f4b80, #0d2034 70%);
  border: 1px solid rgba(80, 124, 178, 0.5);
  display: grid;
  place-items: center;
  color: #d7e6f7;
  font-weight: 700;
  font-size: 20px;
  overflow: hidden;
}

.forum-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forum-title {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #dbe7f5;
}

.forum-desc {
  margin: 6px 0 0;
  color: #8ea3ba;
  font-size: 13px;
}

.forum-children {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(56, 82, 114, 0.4);
  display: grid;
  gap: 10px;
}

.forum-sub {
  padding-left: 10px;
  border-left: 2px solid rgba(42, 64, 92, 0.7);
  background: rgba(8, 14, 22, 0.55);
  border-radius: 8px;
  padding: 10px;
}

.forum-col-threads,
.forum-col-posts {
  text-align: center;
  color: #c9d7e8;
  font-size: 13px;
}

.forum-col-last {
  font-size: 12px;
  color: #9ab1c8;
}

.last-post-title {
  color: #d7e6f7;
  font-weight: 600;
  font-size: 12px;
}

.last-post-meta {
  color: #7f93a9;
  font-size: 11px;
}

.last-post-block {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.last-post-text {
  display: grid;
  gap: 2px;
}

.truncate-title {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-list {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.thread-table {
  gap: 10px;
  width: 100%;
}

.thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 80px 220px;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.thread-head {
  color: #9db4cc;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(42, 64, 92, 0.7);
}

.thread-item {
  background: rgba(10, 18, 28, 0.9);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(54, 80, 112, 0.4);
  width: 100%;
}

.thread-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.thread-col-posts {
  text-align: center;
  color: #c9d7e8;
  font-size: 13px;
}

.thread-col-views {
  text-align: center;
  color: #c9d7e8;
  font-size: 13px;
}

.thread-col-last {
  font-size: 12px;
  color: #9ab1c8;
}

.forum-header {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
  position: relative;
}

.forum-header h1 {
  margin: 0;
}

.forum-header p {
  margin: 0;
}

.forum-header .btn {
  justify-self: start;
}

.forum-new-thread {
  position: absolute;
  right: 0;
  top: 0;
}

.forum-header p {
  margin-top: 4px;
}

.thread-card {
  background: rgba(10, 18, 28, 0.9);
  padding: 16px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(54, 80, 112, 0.4);
  width: 100%;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-card {
  background: rgba(10, 18, 28, 0.94);
  border: 1px solid rgba(54, 80, 112, 0.55);
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(16, 34, 54, 0.4);
}

.news-title {
  font-size: 18px;
  font-weight: 700;
}

.news-date {
  font-size: 12px;
  color: #8fb0cf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-body {
  font-size: 14px;
  color: #d7e6f7;
  line-height: 1.6;
}

.thread-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #dbe7f5;
  text-decoration: none;
  display: inline-block;
}

.thread-title:hover {
  color: #c5e3ff;
  text-decoration: underline;
}

.thread-meta {
  font-size: 12px;
  color: #7f93a9;
}

.user-link {
  color: #9fd0ff;
  text-decoration: none;
  font-weight: 600;
}

.user-link-small {
  font-size: 12px;
}

.user-link:hover {
  color: #c5e3ff;
  text-decoration: underline;
}

.post-body a {
  color: #8fb0cf;
  text-decoration: none;
}

.post-body a:hover {
  color: #c5e3ff;
  text-decoration: underline;
}

.post-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.post-card {
  background: rgba(10, 18, 28, 0.9);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(54, 80, 112, 0.4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  width: 100%;
  align-items: start;
  position: relative;
}

.post-card::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 180px;
  width: 1px;
  background: rgba(42, 64, 92, 0.7);
}

.post-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-meta {
  font-size: 12px;
  color: #7f93a9;
  margin-bottom: 8px;
}

.post-date {
  color: #8fb0cf;
}

.post-date a {
  color: inherit;
  text-decoration: none;
}

.post-date a:hover {
  text-decoration: underline;
}

.quote-link {
  color: #b7d6f5;
  text-decoration: none;
  font-weight: 700;
}

.quote-link:hover {
  text-decoration: underline;
}

.post-divider {
  border: none;
  border-top: 1px solid rgba(42, 64, 92, 0.6);
  margin: 8px 0 0;
}

.post-body {
  font-size: 14px;
  line-height: 1.5;
}

.post-signature-divider {
  border: none;
  border-top: 1px solid rgba(42, 64, 92, 0.6);
  margin: 14px 0 10px;
}

.post-signature {
  font-size: 12px;
  color: #9db4cc;
}

.post-signature a,
.profile-signature a {
  color: #8fb0cf;
  text-decoration: none;
}

.post-signature a:hover,
.profile-signature a:hover {
  color: #c5e3ff;
  text-decoration: underline;
}

.post-deleted {
  background: rgba(132, 44, 44, 0.15);
  border: 1px solid rgba(170, 64, 64, 0.5);
  color: #ffe3e3;
  padding: 10px 12px;
  border-radius: 8px;
}

.post-body blockquote {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 4px solid rgba(120, 176, 232, 0.95);
  background: rgba(12, 36, 60, 0.85);
  color: #d7e6f7;
}

.post-body .quote-divider {
  border: none;
  border-top: 1px solid rgba(90, 140, 190, 0.8);
  margin: 6px 0;
}

.post-body .quote-header {
  font-size: 13px;
  font-weight: 700;
  color: #d7e6f7;
}

.post-body pre {
  background: rgba(5, 12, 20, 0.8);
  border: 1px solid rgba(59, 86, 120, 0.6);
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
}

.youtube-embed {
  margin: 12px 0;
  display: grid;
  gap: 6px;
}

.youtube-source {
  font-size: 11px;
  color: #7f93a9;
}

.youtube-source a {
  color: #9fd0ff;
  text-decoration: none;
}

.markup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-direction: column;
}

.markup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.markup-toolbar button {
  background: rgba(18, 32, 49, 0.9);
  border: 1px solid rgba(64, 98, 134, 0.6);
  color: #d4e1f3;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.smilie-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 0;
}

.smilie-btn {
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(64, 98, 134, 0.6);
  background: rgba(12, 24, 38, 0.85);
}

.smilie-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.attachment-uploader {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(8, 14, 22, 0.65);
  border: 1px dashed rgba(64, 98, 134, 0.6);
  border-radius: 10px;
  margin-top: 8px;
}

.attachment-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.attachment-input {
  display: none;
}

.attachment-status {
  font-size: 12px;
  color: #9db4cc;
}

.attachment-status.error {
  color: #ffb4b4;
}

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

.attachment-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(10, 18, 28, 0.8);
  border: 1px solid rgba(54, 80, 112, 0.5);
  border-radius: 10px;
  padding: 8px 10px;
}

.attachment-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(54, 80, 112, 0.6);
}

.attachment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.attachment-code {
  background: rgba(8, 16, 28, 0.9);
  border: 1px solid rgba(54, 80, 112, 0.6);
  color: #dbe7f5;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  width: 170px;
}

.attachment-hint {
  font-size: 11px;
  color: #7f93a9;
}

.post-attachment {
  max-width: 400px;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(54, 80, 112, 0.6);
}

.attachment-missing {
  color: #ffb4b4;
  font-size: 12px;
}

.share-panel .panel-title {
  margin-bottom: 10px;
}

.share-buttons {
  display: grid;
  gap: 8px;
}

.share-buttons.is-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-panel-row .share-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #dbe7f5;
  background: rgba(10, 18, 28, 0.85);
  border: 1px solid rgba(54, 80, 112, 0.6);
  font-size: 13px;
}

.share-btn:hover {
  background: rgba(18, 32, 49, 0.9);
}

.share-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-facebook {
  color: #cfe0ff;
}

.share-twitter {
  color: #cfe6ff;
}

.share-bsky {
  color: #cceeff;
}

.share-reddit {
  color: #ffd3c2;
}

.share-email {
  color: #d9f5d8;
}

.smilies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}

.smilies-table th,
.smilies-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(56, 82, 114, 0.4);
  text-align: left;
}

.smilies-table th {
  color: #9db4cc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.smilieText {
  display: inline-block;
  margin-right: 8px;
  color: #cde2ff;
}

.smilie {
  vertical-align: middle;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px);
  gap: 16px;
  justify-content: flex-start;
}

.member-card {
  background: rgba(11, 20, 32, 0.82);
  border: 1px solid rgba(56, 82, 114, 0.5);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.member-avatar .avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.member-name {
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

.member-tag {
  margin-left: 6px;
  color: #9db4cc;
  font-size: 12px;
}

.members-section {
  margin-bottom: 24px;
}

.section-divider {
  border: 0;
  border-top: 1px solid rgba(56, 82, 114, 0.5);
  margin: 10px 0 16px;
}

.member-title {
  color: #cbdcf2;
  font-size: 13px;
}

.member-meta {
  color: #93abc4;
  font-size: 12px;
  margin-top: 6px;
}

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.help-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(12, 24, 38, 0.85);
  border: 1px solid rgba(64, 98, 134, 0.6);
  border-radius: 12px;
  padding: 16px;
}

.help-nav-link {
  background: transparent;
  border: 1px solid rgba(64, 98, 134, 0.6);
  color: #cfe0f5;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

.help-nav-link.is-active {
  background: rgba(243, 146, 53, 0.18);
  border-color: rgba(243, 146, 53, 0.6);
  color: #f8d7b0;
}

.help-content {
  background: rgba(11, 20, 32, 0.82);
  border: 1px solid rgba(56, 82, 114, 0.5);
  border-radius: 14px;
  padding: 20px 22px;
}

.help-intro {
  color: #c8d9ef;
  margin-bottom: 18px;
  line-height: 1.6;
}

.help-section {
  display: none;
}

.help-section.is-active {
  display: block;
}

.help-bbcode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.help-bbcode-item {
  background: rgba(12, 24, 38, 0.85);
  border: 1px solid rgba(64, 98, 134, 0.6);
  border-radius: 10px;
  padding: 12px;
}

.help-bbcode-tag {
  font-family: "Courier New", monospace;
  color: #f3d2ad;
  margin-bottom: 6px;
  font-size: 12px;
}

.help-bbcode-example {
  color: #c9dff7;
  font-size: 13px;
}

@media (max-width: 900px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
}

.underline {
  text-decoration: underline;
}

.strike {
  text-decoration: line-through;
}

.admin-thread-actions,
.admin-post-actions,
.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-thread-actions {
  margin-bottom: 12px;
}

.admin-thread-bottom {
  justify-content: flex-end;
  margin-top: 16px;
}

.admin-thread-actions .btn {
  min-width: 140px;
  height: 36px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

.admin-post-actions .btn,
.admin-thread-actions .btn,
.post-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

.post-actions {
  margin-top: auto;
  align-items: center;
  flex-wrap: wrap;
}

.post-actions-divider {
  width: 100%;
  margin: 12px 0 0;
}

.btn.btn-ip {
  background: rgba(150, 158, 170, 0.9);
  border-color: rgba(188, 196, 208, 0.9);
  color: #0f1622;
  margin-left: auto;
}

.post-author {
  padding-left: 12px;
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: center;
  text-align: center;
  position: sticky;
  top: 90px;
}

.avatar.small {
  width: 96px;
  height: 96px;
  font-size: 28px;
}

.avatar.tiny {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.avatar.micro {
  width: 20px;
  height: 20px;
  font-size: 10px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: rgba(18, 32, 49, 0.9);
  border: 1px solid rgba(64, 98, 134, 0.6);
}

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

.last-post-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-name {
  font-weight: 600;
  color: #d7e6f7;
}

.author-meta {
  font-size: 12px;
  color: #7f93a9;
}

@media (max-width: 900px) {
  .post-card {
    grid-template-columns: 1fr;
  }
  .post-author {
    border-left: none;
    border-top: 1px solid rgba(42, 64, 92, 0.7);
    padding-left: 0;
    padding-top: 10px;
  }
}

.form {
  display: grid;
  gap: 12px;
  background: rgba(10, 18, 28, 0.9);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(54, 80, 112, 0.4);
  width: 100%;
}

.form input,
.form textarea,
.form select {
  padding: 10px 12px;
  border: 1px solid rgba(71, 100, 135, 0.6);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(9, 16, 25, 0.9);
  color: #e5e7eb;
}

.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1e3a5f, #0f2236);
  color: #eaf2ff;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(83, 126, 178, 0.6);
  cursor: pointer;
}

.flash-list {
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}

.flash {
  padding: 10px 12px;
  border-radius: 8px;
}

.flash.error {
  background: rgba(132, 44, 44, 0.8);
  color: #ffe3e3;
}

.flash.success {
  background: rgba(25, 97, 64, 0.8);
  color: #d9ffe9;
}

.flash.warning {
  background: rgba(110, 84, 28, 0.8);
  color: #fff2c7;
}

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

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.admin-search input {
  min-width: 260px;
  height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(10, 18, 28, 0.9);
  border: 1px solid rgba(54, 80, 112, 0.6);
  color: #e5e7eb;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(58, 86, 120, 0.7);
  background: rgba(12, 22, 36, 0.9);
  color: #cfe0f5;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}

.admin-tab:hover {
  background: rgba(20, 34, 52, 0.95);
}

.admin-tab.is-active {
  background: rgba(28, 58, 94, 0.95);
  border-color: rgba(88, 132, 178, 0.85);
  color: #eef4ff;
}

.admin-section {
  display: none;
}

.admin-section.is-active {
  display: block;
}

.admin-search input {
  flex: 1;
  min-width: 240px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(56, 82, 114, 0.4);
  text-align: left;
}

.online-table td,
.online-table th {
  font-size: 12px;
}

.online-table td {
  vertical-align: top;
}

.online-table td:nth-child(6) {
  max-width: 380px;
  white-space: normal;
  word-break: break-word;
  color: #c2d2e6;
}

.online-table tr:nth-child(even) {
  background: rgba(10, 18, 28, 0.55);
}

.admin-table th {
  color: #9db4cc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-table td.admin-actions {
  white-space: nowrap;
}

.admin-actions .btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
}

.btn-danger {
  background: rgba(132, 44, 44, 0.9);
  border-color: rgba(170, 64, 64, 0.9);
  color: #ffe3e3;
}

.btn-success {
  background: rgba(18, 92, 55, 0.9);
  border-color: rgba(44, 146, 88, 0.9);
  color: #d7ffe8;
}

.btn-current {
  background: rgba(216, 132, 56, 0.95);
  border-color: rgba(245, 176, 96, 0.95);
  color: #1a0f07;
}

.btn-neutral {
  background: rgba(76, 88, 104, 0.9);
  border-color: rgba(110, 124, 144, 0.9);
  color: #e1e8f2;
}

.forum-indent {
  padding-left: calc(12px + (var(--depth) * 16px));
  position: relative;
}

.forum-indent::before {
  content: "";
  position: absolute;
  left: calc(8px + (var(--depth) * 16px));
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(90, 140, 190, 0.6);
}

.members-table {
  gap: 0;
  padding: 0;
}

.members-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(56, 82, 114, 0.4);
}

.members-head {
  color: #9db4cc;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(9, 16, 25, 0.8);
}

.members-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.members-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(56, 82, 114, 0.4);
  width: 100%;
}

.muted {
  color: #7f93a9;
  font-size: 12px;
}

.error {
  background: rgba(76, 88, 104, 0.9);
  color: #e1e8f2;
  padding: 12px;
  border-radius: 8px;
}

.error-forbidden {
  background: rgba(132, 44, 44, 0.85);
  color: #ffe3e3;
}

.panel {
  background: rgba(10, 18, 28, 0.95);
  border: 1px solid rgba(54, 80, 112, 0.4);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
  width: 100%;
  align-self: start;
}

.panel h2 {
  margin: 6px 0 2px;
}

.panel h3 {
  margin: 4px 0 2px;
}

.panel p {
  margin: 0;
}

.panel ul {
  margin: 0;
  padding-left: 50px;
}

.privacy-policy a {
  color: #8fb0cf;
}

.privacy-policy a:hover {
  color: #c5e3ff;
  text-decoration: underline;
}

.page-subtext {
  margin: 0;
  font-size: 14px;
}

.panel-title {
  font-size: 13px;
  color: #9db4cc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 32, 49, 0.9);
  border: 1px solid rgba(64, 98, 134, 0.6);
  font-size: 12px;
  color: #d4e1f3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.staff-group {
  display: grid;
  gap: 6px;
}

.staff-title {
  font-size: 12px;
  color: #8fb0cf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(42, 64, 92, 0.5);
  padding-bottom: 4px;
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-row span:last-child {
  color: #cde2ff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.footer-links a {
  color: #8fb0cf;
  text-decoration: none;
}

.footer-link {
  color: #8fb0cf;
  text-decoration: none;
}

.footer-links a:hover,
.footer-link:hover {
  color: #c5e3ff;
  text-decoration: underline;
}

.nav-register {
  color: #ff6b6b;
  font-weight: 700;
}

.nav-register:hover {
  color: #ff9c9c;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

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

.profile-actions {
  margin-left: auto;
}

.profile-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-admin-actions form {
  margin: 0;
}

.profile-admin-actions .btn {
  min-width: 140px;
  height: 36px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1f4b80, #0d2034 70%);
  border: 1px solid rgba(80, 124, 178, 0.5);
  display: grid;
  place-items: center;
  color: #d7e6f7;
  font-weight: 700;
  font-size: 22px;
  overflow: hidden;
}

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

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: #f2f6fb;
}

.profile-role {
  color: #8fb0cf;
  font-size: 13px;
}

.profile-label {
  font-size: 12px;
  color: #8fb0cf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-value {
  font-size: 14px;
  color: #d7e6f7;
}

.profile-section {
  margin-top: 16px;
  border-top: 1px solid rgba(42, 64, 92, 0.6);
  padding-top: 12px;
}

.profile-posts {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

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

.profile-card {
  background: rgba(10, 18, 28, 0.94);
  border: 1px solid rgba(54, 80, 112, 0.55);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  font-size: 30px;
}

.profile-dot {
  margin: 0 6px;
  color: #4f6b88;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.profile-stat {
  background: rgba(8, 16, 26, 0.8);
  border: 1px solid rgba(54, 80, 112, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.profile-stat-label {
  font-size: 11px;
  color: #8fb0cf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-stat-value {
  font-size: 14px;
  color: #d7e6f7;
}

.profile-body {
  display: grid;
  gap: 16px;
}

.profile-panel {
  background: rgba(8, 16, 26, 0.8);
  border: 1px solid rgba(54, 80, 112, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
}

.profile-signature {
  margin-top: 10px;
}

.profile-signature {
  margin-top: 8px;
  font-size: 13px;
  color: #d7e6f7;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .forum-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .forum-col-threads,
  .forum-col-posts,
  .forum-col-last,
  .forum-head {
    display: none;
  }
  .thread-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .thread-col-posts,
  .thread-col-views,
  .thread-col-last,
  .thread-head {
    display: none;
  }
}
