:root {
  color-scheme: dark;
  --bg: #050914;
  --bg-2: #071426;
  --panel: #0b1a2e;
  --panel-2: #102642;
  --line: rgba(121, 205, 255, .18);
  --line-2: rgba(121, 205, 255, .3);
  --text: #eef8ff;
  --soft: #a9bfd1;
  --muted: #718aa0;
  --blue: #289cff;
  --blue-2: #75d8ff;
  --danger: #ff5b78;
  --success: #42e69a;
  --shadow: 0 22px 70px rgba(0,0,0,.34);
  --radius: 8px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 16% -8%, rgba(40,156,255,.22), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(117,216,255,.12), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
code, .mono { font-family: Consolas, "Courier New", monospace; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; }
.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 12, 25, .82);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.brand img { width: 42px; filter: drop-shadow(0 0 20px rgba(117,216,255,.35)); }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--soft);
  font-weight: 800;
  font-size: .9rem;
}
.nav-menu a:hover, .nav-menu a.active { color: white; background: rgba(40,156,255,.18); }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; border: 1px solid var(--blue-2); }
.nav-user span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
}
.btn-primary { color: #02111f; background: linear-gradient(135deg, var(--blue-2), var(--blue)); box-shadow: 0 0 34px rgba(40,156,255,.22); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--blue-2); background: rgba(40,156,255,.12); }
.btn-danger { border-color: rgba(255,91,120,.4); background: rgba(255,91,120,.16); color: #ffd8e1; }
.btn-sm { min-height: 32px; padding: 6px 10px; font-size: .82rem; }

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,9,20,.96), rgba(5,9,20,.68), rgba(5,9,20,.92)),
    url("/logo_background.png") center / cover no-repeat;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
.eyebrow { color: var(--blue-2); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 900; }
.hero h1, .page-title h1, .forum-head h1, .topic-head h1, .admin-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: 0;
}
.hero p, .page-title p, .forum-head p, .admin-hero p { color: var(--soft); max-width: 720px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11,26,46,.72);
  box-shadow: var(--shadow);
}
.hero-panel img { width: 220px; margin: 0 auto 22px; filter: drop-shadow(0 0 38px rgba(117,216,255,.35)); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stats div, .metric, .server-card, .feature-card, .panel, .side-card, .topic-head, .post, .reply-box, .profile, .admin-nav, .server-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(11,26,46,.94), rgba(16,38,66,.76));
}
.hero-stats div { padding: 14px; text-align: center; }
.hero-stats strong, .metric strong { display: block; color: var(--blue-2); font-size: 1.8rem; }
.hero-stats span, .metric span, .muted { color: var(--muted); }

.section { padding: 72px 0; }
.section-tight { padding-top: 36px; }
.section-head, .forum-head, .panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2, .panel h2, .side-card h2 { margin: 0; font-size: 1.25rem; }
.section-head a, .panel-head a { color: var(--blue-2); font-weight: 800; text-decoration: none; }
.server-grid, .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.server-card, .feature-card { padding: 20px; }
.server-card h3, .feature-card h3 { margin: 14px 0 8px; }
.server-card code { display: inline-block; margin: 0 0 16px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue-2); }
.card-top { display: flex; justify-content: space-between; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-weight: 900; font-size: .85rem; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.online .status i, .status.online i { background: var(--success); box-shadow: 0 0 16px rgba(66,230,154,.55); }
.feature-card span { color: var(--blue-2); font-weight: 900; }
.feature-card p { color: var(--soft); }

.page-title { padding: 64px 0 20px; }
.page-title h1 { font-size: clamp(2rem, 5vw, 4rem); }
.page-header { padding: 56px 0 18px; }
.page-header h1 { margin: 10px 0; font-size: clamp(2rem, 5vw, 3.7rem); }
.page-header p { color: var(--soft); }
.bp-kicker { color: var(--blue-2); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 900; }
.back-link { display: inline-flex; margin-bottom: 10px; color: var(--blue-2); text-decoration: none; font-weight: 900; }
.server-list { display: grid; gap: 16px; }
.server-row { display: grid; grid-template-columns: minmax(220px, 1fr) 1.4fr auto; gap: 18px; align-items: center; padding: 20px; }
.server-main h2 { margin: 8px 0 4px; }
.server-main p { margin: 0; color: var(--soft); }
.server-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.server-meta div span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 4px; }
.role-line { display: flex; flex-wrap: wrap; gap: 6px; }
.role { display: inline-flex; padding: 4px 8px; border-radius: 5px; background: var(--role, #1f5f97); color: white; font-size: .76rem; font-weight: 900; }

.forum-page, .admin-page { padding: 38px 0 78px; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.forum-head.compact { align-items: center; }
.searchbar { display: flex; gap: 10px; margin-bottom: 16px; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: rgba(255,255,255,.055);
  color: var(--text);
}
select option { background: var(--panel); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(40,156,255,.12); }
.forum-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(11,26,46,.72); }
.forum-box-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #0d3158, #1f5f97);
  font-weight: 900;
}
.forum-box-title small { color: rgba(255,255,255,.72); }
.forum-category-row, .thread-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 86px 110px minmax(210px, 260px);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.thread-row { grid-template-columns: 42px minmax(0, 1fr) 90px 100px; }
.forum-category-row:hover, .thread-row:hover { background: rgba(40,156,255,.08); }
.forum-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: #1f5f97; color: white; font-weight: 900; }
.forum-info { min-width: 0; }
.forum-info strong, .forum-last b, .side-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-info span, .forum-last small, .side-item small { color: var(--muted); font-size: .84rem; }
.forum-count { text-align: center; color: var(--muted); }
.forum-count b { display: block; color: var(--text); }
.forum-last, .side-item { display: flex; gap: 10px; align-items: center; min-width: 0; }
.forum-last img, .side-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.side-column { display: grid; gap: 16px; }
.side-card { padding: 16px; }
.side-item { padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  color: var(--muted);
}
.breadcrumb a { color: var(--blue-2); text-decoration: none; }
.tag { display: inline-flex; margin-left: 8px; padding: 3px 7px; border-radius: 5px; background: rgba(117,216,255,.16); color: var(--blue-2); font-size: .75rem; }
.tag.danger { background: rgba(255,91,120,.16); color: #ffd6df; }
.empty { padding: 22px; color: var(--muted); text-align: center; }

.topic-head { padding: 18px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 16px; }
.topic-head h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.topic-actions, .post-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-radius: 0; border-bottom: 0; }
.post:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.post-author { padding: 18px; border-right: 1px solid var(--line); text-align: center; }
.post-author img { width: 86px; height: 86px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; border: 2px solid var(--blue-2); }
.post-author a { display: block; text-decoration: none; font-weight: 900; margin-bottom: 8px; }
.post-body { min-height: 190px; padding: 18px; }
.post-date { display: flex; justify-content: space-between; color: var(--muted); font-size: .86rem; margin-bottom: 16px; }
.bb-content { line-height: 1.65; color: #f6fbff; }
.bb-content a { color: var(--blue-2); }
.bb-quote { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--blue-2); background: rgba(40,156,255,.12); }
.bb-code { padding: 12px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #040811; }
.bb-img { max-width: min(100%, 760px); margin: 8px 0; border-radius: 6px; }
.bb-u { text-decoration: underline; }
.bb-s { text-decoration: line-through; }
.bb-center { text-align: center; }
.bb-left { text-align: left; }
.bb-right { text-align: right; }
.bb-list { margin-left: 22px; }
.post-actions { justify-content: flex-end; margin-top: 36px; }
.mini-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.05);
  color: var(--soft);
  text-decoration: none;
  cursor: pointer;
}
.mini-btn:hover, .mini-btn.active { color: white; border-color: var(--blue-2); background: rgba(40,156,255,.14); }
.mini-btn.danger { color: #ffd6df; border-color: rgba(255,91,120,.3); }
.reply-box { margin-top: 16px; padding: 16px; display: grid; grid-template-columns: 58px 1fr; gap: 14px; }
.reply-box > img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.editor-form, .create-topic, .info-form { display: grid; gap: 12px; }
.editor { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.04); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 7px; border-bottom: 1px solid var(--line); }
.editor-toolbar button { min-height: 32px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: var(--soft); font-weight: 900; cursor: pointer; }
.editor-toolbar button:hover { background: rgba(40,156,255,.14); color: white; }
.editor textarea { border: 0; border-radius: 0; min-height: 160px; background: transparent; }
.create-topic { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11,26,46,.72); }
.create-topic > input { font-size: 1.4rem; font-weight: 900; min-height: 58px; }
.alert { padding: 12px; border: 1px solid rgba(255,91,120,.36); border-radius: 6px; background: rgba(255,91,120,.12); color: #ffd6df; }

.profile { overflow: hidden; margin-bottom: 16px; }
.profile-banner {
  min-height: 260px;
  display: flex;
  align-items: end;
  gap: 20px;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 22%, rgba(117,216,255,.36), transparent 26%),
    linear-gradient(135deg, #061124, #123c61 54%, #07101f);
  background-size: cover;
  background-position: center;
}
.profile-banner.custom { background-size: cover; background-position: center; }
.profile-avatar { width: 168px; height: 168px; object-fit: cover; border-radius: 50%; border: 4px solid rgba(238,248,255,.9); box-shadow: 0 18px 48px rgba(0,0,0,.35); }
.profile-banner h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.5rem); }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-stats div { padding: 16px; text-align: center; border-right: 1px solid var(--line); min-width: 0; }
.profile-stats div:last-child { border-right: 0; }
.profile-stats span { display: block; color: var(--muted); font-size: .84rem; }
.profile-stats strong { word-break: break-word; }
.profile-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px; }
.panel { padding: 18px; margin-bottom: 16px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: start; }
.tabs { display: flex; margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: linear-gradient(135deg, #0d3158, #1f5f97); }
.tabs a { padding: 14px 16px; text-decoration: none; font-weight: 900; color: white; }
.tabs a.active { color: var(--blue-2); background: rgba(0,0,0,.18); }
.profile-message-form { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: start; }
.profile-message-form img, .profile-message img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
.profile-message { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.profile-message header { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--text); }
.profile-message header > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.profile-message header span { color: var(--muted); font-size: .84rem; }
.profile-message-delete { flex: 0 0 auto; margin: 0; }
.profile-message-delete button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid rgba(255,102,133,.24); border-radius: 8px; color: #ff9db0; background: rgba(255,102,133,.07); font-size: 1.05rem; line-height: 1; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease; }
.profile-message-delete button:hover { border-color: rgba(255,102,133,.62); color: #fff; background: rgba(255,102,133,.2); transform: translateY(-1px); }
.info-form label, .info-view h3 { color: var(--blue-2); font-weight: 900; }
.info-view { display: grid; gap: 8px; color: var(--soft); }
.role-list { display: grid; gap: 8px; }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.user-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(11,26,46,.94), rgba(16,38,66,.76));
  text-decoration: none;
}
.user-card img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; border: 1px solid var(--blue-2); }
.user-card strong { display: block; margin-bottom: 3px; }
.user-card span { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 7px; }

.admin-hero { padding: 24px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.admin-hero h1 { font-size: clamp(2rem, 5vw, 4rem); }
.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
.admin-nav { padding: 10px; display: grid; gap: 7px; align-content: start; }
.admin-nav a { padding: 11px 12px; border-radius: 6px; color: var(--soft); text-decoration: none; font-weight: 800; background: rgba(255,255,255,.035); }
.admin-nav a:hover { color: white; background: rgba(40,156,255,.14); }
.admin-main { min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.metric { padding: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: .82rem; }
.table code { color: var(--blue-2); }
.admin-card, .form-card, .admin-section { padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(11,26,46,.94), rgba(16,38,66,.76)); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .82rem; }
.admin-table code { color: var(--blue-2); }
.logs-table-wrapper { overflow-x: auto; }
.empty-cell, .empty-state { padding: 20px; color: var(--muted); text-align: center; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--soft); font-size: .8rem; font-weight: 900; }
.status-badge.active { color: var(--success); border-color: rgba(66,230,154,.35); background: rgba(66,230,154,.1); }
.status-badge.inactive { color: var(--muted); }
.btn-success { border-color: rgba(66,230,154,.35); background: rgba(66,230,154,.14); color: #d8ffe9; }
.role-badge { display: inline-flex; padding: 4px 8px; border-radius: 5px; color: #fff; font-size: .76rem; font-weight: 900; }
.role-badge.small { font-size: .72rem; }
.command-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.console-form { display: grid; grid-template-columns: 160px 180px 1fr; gap: 10px; }
.console-form input[name="command"] { grid-column: 1 / -2; }
.console-output { min-height: 120px; max-height: 240px; overflow: auto; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #040811; color: #cce9ff; font-family: Consolas, "Courier New", monospace; }
.agent-list { display: grid; gap: 10px; }
.agent-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.agent-card h3 { margin: 9px 0 4px; }
.agent-card p, .agent-card small { color: var(--muted); }
.agent-card code { display: block; margin: 8px 0; color: var(--blue-2); word-break: break-all; }

.footer { border-top: 1px solid var(--line); padding: 24px 0; background: rgba(5,12,25,.68); }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 900; }
.footer-brand img { width: 34px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--soft); text-decoration: none; font-weight: 700; }
.footer-copy { color: var(--muted); }

@media (max-width: 980px) {
  .nav { flex-wrap: wrap; padding: 10px 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-menu { order: 3; display: none; width: 100%; flex-direction: column; align-items: stretch; margin-left: 0; }
  .nav-menu.open { display: flex; }
  .hero-grid, .forum-layout, .admin-layout, .command-grid { grid-template-columns: 1fr; }
  .server-row { grid-template-columns: 1fr; }
  .server-meta, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .forum-category-row { grid-template-columns: 42px 1fr 80px; }
  .forum-category-row .forum-count:nth-of-type(2), .forum-last { display: none; }
  .inline-form, .console-form { grid-template-columns: 1fr; }
  .console-form input[name="command"] { grid-column: auto; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1220px); }
  .hero { min-height: 560px; }
  .hero-grid { gap: 24px; }
  .hero-panel { display: none; }
  .section-head, .forum-head, .topic-head, .admin-hero, .footer-grid { align-items: flex-start; flex-direction: column; }
  .server-meta, .feature-grid, .metric-grid, .profile-stats { grid-template-columns: 1fr; }
  .thread-row { grid-template-columns: 42px 1fr; }
  .thread-row .forum-count { grid-column: 2; display: inline-block; text-align: left; }
  .post, .reply-box, .profile-message-form, .profile-message { grid-template-columns: 1fr; }
  .post-author { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-banner { align-items: center; flex-direction: column; text-align: center; }
  .profile-avatar { width: 136px; height: 136px; }
  .profile-actions, .tabs { flex-direction: column; align-items: stretch; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Visual refresh — 2026 */
:root {
  --bg: #050711;
  --bg-2: #090d1b;
  --panel: #0d1425;
  --panel-2: #121d34;
  --line: rgba(150, 205, 255, .13);
  --line-2: rgba(142, 221, 255, .3);
  --text: #f4f8ff;
  --soft: #b7c3d8;
  --muted: #7889a5;
  --blue: #4b8dff;
  --blue-2: #83e4ff;
  --violet: #8d6cff;
  --danger: #ff6685;
  --success: #53e7a4;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, .24);
  --radius: 18px;
  --font: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection { color: #fff; background: rgba(89, 133, 255, .62); }
html { scrollbar-color: #31496e #080b15; }
body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 10% -10%, rgba(79, 114, 255, .24), transparent 65%),
    radial-gradient(ellipse 55% 40% at 100% 4%, rgba(73, 211, 255, .14), transparent 65%),
    linear-gradient(180deg, #050711 0%, #080c19 48%, #070a14 100%);
}
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
a, button, input, select, textarea { transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}
.container { width: min(1240px, calc(100% - 48px)); }

.topbar {
  border-bottom-color: rgba(148, 204, 255, .1);
  background: rgba(5, 7, 17, .72);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  backdrop-filter: blur(24px) saturate(140%);
}
.nav { min-height: 78px; gap: 22px; }
.brand { gap: 11px; letter-spacing: -.04em; }
.brand img {
  width: 45px;
  transition: transform .28s ease, filter .28s ease;
  filter: drop-shadow(0 0 18px rgba(110, 211, 255, .32));
}
.brand:hover img { transform: rotate(-5deg) scale(1.06); filter: drop-shadow(0 0 24px rgba(110, 211, 255, .5)); }
.brand-copy { display: inline-flex; align-items: baseline; font-style: normal; font-size: 1rem; }
.brand-copy strong { font-weight: 800; }
.brand-copy em { color: var(--blue-2); font-style: normal; font-weight: 500; }
.nav-menu { gap: 6px; }
.nav-menu a {
  position: relative;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .85rem;
  font-weight: 700;
}
.nav-menu a:hover { color: #fff; border-color: var(--line); background: rgba(255, 255, 255, .04); }
.nav-menu a.active {
  color: #fff;
  border-color: rgba(130, 227, 255, .17);
  background: linear-gradient(135deg, rgba(75, 141, 255, .2), rgba(131, 228, 255, .08));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
.nav-menu a.active::after {
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  box-shadow: 0 0 10px rgba(131, 228, 255, .7);
}
.nav-user {
  padding-left: 4px;
  border-left: 1px solid var(--line);
}
.nav-user img { width: 36px; height: 36px; border: 2px solid rgba(131, 228, 255, .55); box-shadow: 0 0 0 4px rgba(131, 228, 255, .06); }
.nav-user span { font-size: .84rem; font-weight: 700; }
.nav-toggle { border-radius: 12px; background: rgba(255, 255, 255, .035); cursor: pointer; }
.nav-toggle span { transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.btn::before {
  position: absolute;
  z-index: -1;
  top: -80%;
  bottom: -80%;
  left: -45%;
  width: 32%;
  content: "";
  pointer-events: none;
  opacity: 0;
  transform: rotate(18deg) translateX(-220%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
}
.btn:hover::before { animation: bp-button-shine .72s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary {
  color: #07101e;
  background: linear-gradient(135deg, #a4efff 0%, #61bbff 42%, #6687ff 100%);
  box-shadow: 0 10px 28px rgba(75, 141, 255, .25), inset 0 1px rgba(255, 255, 255, .6);
}
.btn-primary:hover { box-shadow: 0 15px 34px rgba(75, 141, 255, .36), inset 0 1px rgba(255, 255, 255, .7); filter: saturate(1.08); }
.btn-ghost {
  border-color: rgba(158, 213, 255, .2);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.btn-ghost:hover { border-color: rgba(131, 228, 255, .52); background: rgba(79, 147, 255, .12); }
.btn-danger { border-color: rgba(255, 102, 133, .32); background: rgba(255, 102, 133, .12); }
.btn-sm { min-height: 34px; padding: 7px 11px; border-radius: 9px; font-size: .78rem; }

.hero {
  min-height: 720px;
  border-bottom-color: rgba(140, 202, 255, .1);
  isolation: isolate;
}
.hero::before {
  position: absolute;
  z-index: 1;
  top: 13%;
  right: 6%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(131, 228, 255, .12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 70px rgba(111, 151, 255, .025), 0 0 0 140px rgba(111, 151, 255, .018);
}
.hero-bg {
  background:
    linear-gradient(90deg, rgba(5, 7, 17, .96) 0%, rgba(5, 8, 18, .7) 52%, rgba(5, 7, 17, .9) 100%),
    linear-gradient(180deg, rgba(5, 7, 17, .06) 45%, #070a15 100%),
    url("/logo_background.png") center / cover no-repeat;
  filter: saturate(.85) contrast(1.04);
}
.hero-grid { z-index: 2; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(38px, 6vw, 86px); }
.eyebrow, .bp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a3ebff;
  letter-spacing: .16em;
  font-size: .7rem;
}
.eyebrow::before, .bp-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--blue-2);
  box-shadow: 0 0 14px rgba(131, 228, 255, .8);
}
.hero h1 {
  margin: 16px 0 22px;
  max-width: 850px;
  color: transparent;
  font-size: clamp(3.3rem, 7.2vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .87;
  background: linear-gradient(120deg, #fff 15%, #d8f6ff 50%, #8ebcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 12px 32px rgba(45, 94, 181, .22));
}
.hero p { max-width: 680px; color: #b9c7db; font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.75; }
.hero-actions { gap: 11px; margin-top: 32px; }
.hero-actions .btn { min-height: 50px; padding: 13px 21px; }
.hero-panel {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border-color: rgba(156, 219, 255, .2);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17, 28, 50, .82), rgba(8, 14, 29, .74));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(22px);
}
.hero-panel::before {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 75%;
  height: 160%;
  content: "";
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(151, 224, 255, .07), transparent);
}
.hero-panel img { position: relative; width: 235px; margin-bottom: 28px; filter: drop-shadow(0 0 42px rgba(105, 187, 255, .44)); }
.hero-stats { position: relative; gap: 8px; }
.hero-stats div {
  padding: 15px 8px;
  border-color: rgba(147, 210, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.hero-stats strong, .metric strong {
  color: #a8edff;
  font-size: 1.75rem;
  letter-spacing: -.05em;
}
.hero-stats span { font-size: .7rem; }

.section { padding: 88px 0; }
.section-tight { padding-top: 28px; }
.section-head { margin-bottom: 24px; }
.section-head h2, .panel h2, .side-card h2 { letter-spacing: -.035em; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.section-head a, .panel-head a { color: #a4eaff; }
.server-grid, .feature-grid { gap: 18px; }
.hero-stats div, .metric, .server-card, .feature-card, .panel, .side-card, .topic-head, .post, .reply-box, .profile, .admin-nav, .server-row {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(16, 25, 44, .92), rgba(10, 16, 31, .86));
  box-shadow: inset 0 1px rgba(255, 255, 255, .03), var(--shadow-soft);
}
.server-card, .feature-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
}
.server-card::after, .feature-card::after {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  background: rgba(83, 141, 255, .08);
  filter: blur(6px);
}
.server-card:hover, .feature-card:hover, .user-card:hover {
  border-color: rgba(131, 228, 255, .28);
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .3), 0 0 0 1px rgba(131, 228, 255, .04);
}
.server-card h3, .feature-card h3 { position: relative; z-index: 1; font-size: 1.08rem; letter-spacing: -.025em; }
.server-card code { position: relative; z-index: 1; border-radius: 9px; background: rgba(84, 146, 255, .07); }
.card-top, .server-card .btn { position: relative; z-index: 1; }
.feature-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(131, 228, 255, .2);
  border-radius: 11px;
  background: rgba(84, 146, 255, .08);
  font-size: .75rem;
}
.feature-card p { position: relative; z-index: 1; line-height: 1.7; }
.status i { width: 8px; height: 8px; }
.status.online i { animation: bp-status-pulse 2.1s ease-out infinite; }
.page-title { padding: 82px 0 28px; }
.page-title h1, .forum-head h1, .admin-hero h1 {
  color: #f8fbff;
  font-weight: 800;
  letter-spacing: -.06em;
}
.page-title h1 { margin-top: 15px; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.page-title p, .forum-head p, .admin-hero p { line-height: 1.7; }

.server-list { gap: 14px; }
.server-row {
  padding: 23px;
  border-radius: 20px;
}
.server-row:hover { border-color: rgba(131, 228, 255, .26); transform: translateY(-2px); box-shadow: 0 20px 50px rgba(0, 0, 0, .26); }
.server-main h2 { letter-spacing: -.035em; }
.server-meta {
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(144, 204, 255, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}
.server-meta > div { padding: 3px 7px; }
.role, .role-badge { border-radius: 999px; box-shadow: inset 0 1px rgba(255, 255, 255, .15); }

.forum-page, .admin-page { padding: 52px 0 92px; }
.forum-layout { grid-template-columns: minmax(0, 1fr) 326px; gap: 22px; }
.forum-head { margin-bottom: 24px; }
.forum-head h1 { margin-top: 14px; font-size: clamp(2.35rem, 5vw, 4.5rem); }
.forum-head.compact h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.searchbar {
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 16, 30, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.searchbar input { border-color: transparent; background: transparent; }
.searchbar input:focus { border-color: transparent; box-shadow: none; }
input, select, textarea {
  min-height: 46px;
  padding: 11px 14px;
  border-color: rgba(147, 209, 255, .14);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
}
input::placeholder, textarea::placeholder { color: #657792; }
input:hover, select:hover, textarea:hover { border-color: rgba(147, 209, 255, .25); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(131, 228, 255, .64);
  background: rgba(54, 95, 158, .09);
  box-shadow: 0 0 0 4px rgba(75, 141, 255, .1);
}
.forum-box {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(10, 16, 30, .76);
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, .025);
}
.forum-box-title {
  padding: 15px 18px;
  background: linear-gradient(110deg, rgba(62, 105, 196, .72), rgba(51, 130, 180, .45));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}
.forum-category-row, .thread-row {
  min-height: 82px;
  padding: 15px 18px;
  border-top-color: rgba(145, 205, 255, .09);
  transition: padding .22s ease, background .22s ease, transform .22s ease;
}
.forum-category-row:hover, .thread-row:hover {
  padding-left: 22px;
  background: linear-gradient(90deg, rgba(74, 130, 232, .1), rgba(90, 202, 255, .035));
}
.forum-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(157, 225, 255, .2);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(83, 126, 237, .72), rgba(70, 172, 217, .52));
  box-shadow: 0 8px 22px rgba(61, 110, 202, .22);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), box-shadow .24s ease;
}
.forum-category-row:hover .forum-icon, .thread-row:hover .forum-icon { transform: rotate(-4deg) scale(1.06); }
.forum-info strong { margin-bottom: 4px; letter-spacing: -.015em; }
.forum-info span, .forum-last small, .side-item small { line-height: 1.5; }
.forum-last img, .side-item img {
  border: 1px solid rgba(131, 228, 255, .3);
  box-shadow: 0 0 0 3px rgba(131, 228, 255, .04);
}
.side-column { gap: 18px; }
.side-card { padding: 19px; border-radius: 18px; }
.side-card h2 { margin-bottom: 10px; font-size: 1.04rem; }
.side-item { margin: 0 -5px; padding: 13px 5px; border-top-color: rgba(145, 205, 255, .09); border-radius: 9px; }
.side-item:hover { padding-left: 10px; padding-right: 0; background: rgba(83, 141, 255, .055); }
.breadcrumb {
  margin-bottom: 22px;
  padding: 13px 16px;
  border-color: rgba(146, 207, 255, .11);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  font-size: .84rem;
}
.breadcrumb a:hover { color: #fff; }
.tag { border: 1px solid rgba(131, 228, 255, .16); border-radius: 999px; }

.topic-head { padding: 22px; margin-bottom: 16px; border-radius: 18px; }
.topic-head h1 { margin-top: 0; font-weight: 800; letter-spacing: -.045em; }
.post {
  border-color: rgba(145, 205, 255, .1);
  background: rgba(11, 17, 31, .86);
  box-shadow: none;
}
.post:first-of-type { border-radius: 18px 18px 0 0; }
.post:last-of-type { border-bottom: 1px solid var(--line); border-radius: 0 0 18px 18px; }
.post-author { padding: 22px 18px; border-right-color: rgba(145, 205, 255, .09); background: rgba(75, 125, 212, .035); }
.post-author img {
  width: 92px;
  height: 92px;
  border: 3px solid rgba(131, 228, 255, .58);
  box-shadow: 0 0 0 5px rgba(131, 228, 255, .05), 0 14px 32px rgba(0, 0, 0, .3);
}
.post-body { min-height: 205px; padding: 22px; }
.post-date { padding-bottom: 11px; border-bottom: 1px solid rgba(145, 205, 255, .08); }
.bb-content { color: #eaf1fb; line-height: 1.75; }
.bb-quote { padding: 14px 16px; border-left-width: 4px; border-radius: 0 11px 11px 0; background: rgba(64, 133, 235, .1); }
.bb-code, .console-output { border-radius: 11px; background: #050813; }
.bb-img { border-radius: 12px; }
.mini-btn { border-radius: 9px; background: rgba(255, 255, 255, .035); }
.mini-btn:hover, .mini-btn.active { transform: translateY(-1px); }
.reply-box { margin-top: 18px; padding: 20px; border-radius: 18px; }
.reply-box > img { border: 2px solid rgba(131, 228, 255, .38); }
.editor { border-radius: 13px; background: rgba(255, 255, 255, .025); }
.editor-toolbar { padding: 8px; background: rgba(255, 255, 255, .025); }
.editor-toolbar button { border-radius: 8px; }
.create-topic { padding: 22px; border-radius: 18px; background: rgba(11, 18, 33, .84); box-shadow: var(--shadow-soft); }
.alert { border-radius: 11px; }

.profile {
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.profile-banner {
  position: relative;
  min-height: 290px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(131, 228, 255, .34), transparent 27%),
    radial-gradient(circle at 80% 0%, rgba(141, 108, 255, .28), transparent 35%),
    linear-gradient(135deg, #0a1122, #183966 54%, #0a0f20);
}
.profile-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 17, .7));
}
.profile-banner > * { position: relative; z-index: 1; }
.profile-avatar { border-width: 5px; box-shadow: 0 0 0 7px rgba(255, 255, 255, .08), 0 22px 50px rgba(0, 0, 0, .42); }
.profile-banner h1 { letter-spacing: -.055em; }
.profile-stats { border-color: rgba(145, 205, 255, .09); background: rgba(7, 12, 24, .55); }
.profile-stats div { padding: 19px 14px; border-right-color: rgba(145, 205, 255, .09); }
.profile-stats strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.profile-actions { padding: 16px 18px; }
.panel { padding: 22px; border-radius: 18px; }
.tabs { border-color: var(--line); border-radius: 15px 15px 0 0; background: rgba(12, 20, 37, .9); }
.tabs a { position: relative; color: var(--soft); }
.tabs a.active { color: #fff; background: rgba(79, 141, 255, .12); }
.tabs a.active::after { position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; border-radius: 999px 999px 0 0; content: ""; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.profile-message { border-top-color: rgba(145, 205, 255, .09); }
.user-grid { gap: 16px; }
.user-card {
  padding: 17px;
  border-color: var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 25, 44, .92), rgba(10, 16, 31, .86));
  box-shadow: var(--shadow-soft);
}
.user-card img { border: 2px solid rgba(131, 228, 255, .42); }

.admin-hero {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 0%, rgba(131, 228, 255, .13), transparent 35%),
    linear-gradient(145deg, rgba(16, 27, 49, .94), rgba(9, 15, 29, .9));
  box-shadow: var(--shadow-soft);
}
.admin-hero h1 { margin-top: 13px; }
.admin-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
.admin-nav { position: sticky; top: 98px; padding: 12px; border-radius: 17px; }
.admin-nav a { padding: 12px 13px; border: 1px solid transparent; border-radius: 10px; }
.admin-nav a:hover { border-color: rgba(131, 228, 255, .14); transform: translateX(3px); }
.metric-grid { gap: 14px; }
.metric { padding: 19px; border-radius: 16px; }
.metric span { font-size: .78rem; }
.metric strong { margin-top: 5px; font-size: 2rem; }
.table th, .table td, .admin-table th, .admin-table td { padding: 13px 11px; border-bottom-color: rgba(145, 205, 255, .09); }
.table tbody tr:hover, .admin-table tbody tr:hover { background: rgba(76, 135, 234, .055); }
.admin-card, .form-card, .admin-section {
  padding: 22px;
  border-color: var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 25, 44, .92), rgba(10, 16, 31, .86));
  box-shadow: var(--shadow-soft);
}
.status-badge { border-radius: 999px; }
.agent-card { border-radius: 13px; }

.footer {
  padding: 32px 0;
  border-top-color: rgba(145, 205, 255, .09);
  background: rgba(4, 7, 14, .7);
  backdrop-filter: blur(14px);
}
.footer-brand img { width: 38px; filter: drop-shadow(0 0 14px rgba(131, 228, 255, .24)); }
.footer-links { gap: 7px; }
.footer-links a { padding: 7px 9px; border-radius: 8px; font-size: .82rem; }
.footer-links a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.footer-copy { font-size: .78rem; }

@keyframes bp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bp-button-shine {
  0% { opacity: 0; transform: rotate(18deg) translateX(-220%); }
  28% { opacity: .8; }
  100% { opacity: 0; transform: rotate(18deg) translateX(580%); }
}
@keyframes bp-status-pulse {
  0%, 45% { box-shadow: 0 0 0 0 rgba(83, 231, 164, .5); }
  100% { box-shadow: 0 0 0 8px rgba(83, 231, 164, 0); }
}

.motion-item {
  transition:
    opacity .55s cubic-bezier(.22, 1, .36, 1),
    transform .55s cubic-bezier(.22, 1, .36, 1),
    padding .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .25s ease;
  transition-delay: calc(var(--motion-order, 0) * 45ms);
}
.motion-item.motion-pending { opacity: 0; transform: translateY(22px) scale(.985); }
.motion-item.motion-visible { opacity: 1; transform: translateY(0) scale(1); }
.motion-item.motion-settled { transition-delay: 0s; }

.nav-menu a::before {
  position: absolute;
  right: 13px;
  bottom: 6px;
  left: 13px;
  height: 1px;
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transition: opacity .22s ease, transform .22s ease;
}
.nav-menu a:hover::before { opacity: .65; transform: scaleX(1); }
.nav-menu a.active::before { display: none; }
.agent-card:hover, .metric:hover {
  border-color: rgba(131, 228, 255, .28);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
}
.hero-copy > *, .hero-panel { animation: bp-rise .65s both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-panel { animation-delay: .18s; }

@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav-menu a { padding-inline: 9px; }
  .brand-copy { display: none; }
}

@media (max-width: 980px) {
  .nav { padding: 10px 0; }
  .brand-copy { display: inline-flex; }
  .nav-user { margin-left: auto; border-left: 0; }
  .nav-toggle { margin-left: 0; }
  .nav-menu {
    order: 4;
    gap: 4px;
    margin-top: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(11, 17, 31, .96);
    box-shadow: var(--shadow-soft);
  }
  .nav-menu a { padding: 11px 13px; }
  .nav-menu a.active::after { top: 10px; right: auto; bottom: 10px; left: 4px; width: 2px; height: auto; }
  .hero { min-height: 670px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .hero-panel { padding: 24px; }
  .forum-layout, .admin-layout, .command-grid { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1240px); }
  .nav { min-height: 68px; }
  .nav-user span { display: none; }
  .nav-user .btn { padding-inline: 11px; font-size: .76rem; }
  .hero { min-height: 610px; }
  .hero::before { right: -180px; opacity: .5; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .hero h1 { font-size: clamp(3.15rem, 15vw, 5.2rem); letter-spacing: -.07em; }
  .hero p { line-height: 1.65; }
  .section { padding: 68px 0; }
  .section-tight { padding-top: 20px; }
  .server-card, .feature-card { min-height: 0; }
  .page-title { padding-top: 60px; }
  .page-title h1, .forum-head h1 { letter-spacing: -.05em; }
  .server-row { padding: 18px; }
  .server-meta { grid-template-columns: 1fr; }
  .forum-page, .admin-page { padding: 34px 0 68px; }
  .forum-category-row { grid-template-columns: 38px minmax(0, 1fr) 62px; padding: 13px; }
  .thread-row { grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
  .forum-box-title small { display: none; }
  .forum-icon { width: 34px; height: 34px; }
  .topic-head { padding: 18px; }
  .post-author { padding: 18px; }
  .post-author img { width: 80px; height: 80px; }
  .post-body { padding: 18px; }
  .reply-box { padding: 16px; }
  .profile-banner { min-height: 280px; padding: 26px 18px; }
  .profile-stats div { border-right: 0; border-bottom: 1px solid rgba(145, 205, 255, .09); }
  .profile-stats div:last-child { border-bottom: 0; }
  .profile-actions, .tabs { gap: 7px; }
  .tabs { padding: 7px; border-radius: 15px; }
  .tabs a { border-radius: 9px; text-align: center; }
  .tabs a.active::after { display: none; }
  .panel { padding: 17px; }
  .footer { padding: 28px 0; }
}

@media (max-width: 480px) {
  .brand-copy { display: none; }
  .nav { gap: 8px; }
  .nav-user { margin-left: auto; }
  .nav-user img { display: none; }
  .hero h1 { font-size: 3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .searchbar { flex-direction: column; }
  .searchbar .btn { width: 100%; }
}

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

/* Account menu */
.nav-user { position: relative; padding-left: 0; border-left: 0; }
.user-menu { position: relative; }
.user-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  list-style: none;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { border-color: rgba(131, 228, 255, .3); background: rgba(79, 141, 255, .09); }
.user-menu summary img { width: 34px; height: 34px; }
.user-menu summary span { max-width: 120px; color: var(--text); font-size: .82rem; }
.user-menu summary i { width: 7px; height: 7px; margin: 0 3px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.user-menu[open] summary i { transform: translateY(2px) rotate(225deg); }
.user-menu-popover {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  padding: 8px;
  border: 1px solid rgba(151, 213, 255, .17);
  border-radius: 17px;
  background: rgba(9, 14, 27, .97);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(24px);
}
.user-menu-popover::before { position: absolute; top: -6px; right: 28px; width: 11px; height: 11px; content: ''; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); background: #0a1020; transform: rotate(45deg); }
.user-menu-head { display: grid; gap: 2px; padding: 10px 11px 12px; border-bottom: 1px solid var(--line); }
.user-menu-head small { color: var(--muted); }
.user-menu-popover a { display: grid; gap: 2px; padding: 10px 11px; border-radius: 10px; text-decoration: none; }
.user-menu-popover a:hover { background: rgba(77, 141, 255, .1); }
.user-menu-popover a span { display: block; color: var(--text); font-size: .86rem; font-weight: 800; }
.user-menu-popover a small { color: var(--muted); font-size: .72rem; }
.user-menu-popover .user-menu-logout { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.user-menu-popover .user-menu-logout span { color: #ff9caf; }

/* Profile and player management */
.profile-page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-page-grid.with-management { grid-template-columns: minmax(0, 1fr) 350px; }
.profile-main-column { min-width: 0; }
.profile-tab-panel { margin-top: 0; border-radius: 0 0 18px 18px; }
.player-management { position: sticky; top: 98px; display: grid; gap: 12px; }
.management-heading { padding: 6px 4px 10px; }
.management-heading h2 { margin: 10px 0 4px; font-size: 1.65rem; letter-spacing: -.045em; }
.management-heading p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.management-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(16, 25, 44, .94), rgba(9, 15, 29, .9)); box-shadow: var(--shadow-soft); }
.management-card summary { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 12px 15px; cursor: pointer; list-style: none; font-size: .87rem; font-weight: 800; }
.management-card summary::-webkit-details-marker { display: none; }
.management-card summary::after { content: '+'; color: var(--blue-2); font-size: 1.2rem; font-weight: 500; }
.management-card[open] summary { border-bottom: 1px solid var(--line); }
.management-card[open] summary::after { content: '−'; }
.management-card summary b { min-width: 21px; padding: 2px 6px; border-radius: 999px; background: rgba(255, 102, 133, .16); color: #ffafbd; text-align: center; }
.management-form, .management-stack { display: grid; gap: 10px; }
.management-form { padding: 13px; }
.management-stack { padding: 13px; }
.management-options { display: grid; gap: 6px; }
.role-choice { display: flex; align-items: center; gap: 9px; min-height: 37px; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--soft); cursor: pointer; }
.role-choice:hover { border-color: var(--line); background: rgba(255, 255, 255, .025); }
.role-choice input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--blue); }
.role-color { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--role-color); box-shadow: 0 0 10px var(--role-color); }
.server-role-control { padding: 0 0 11px; border-bottom: 1px solid var(--line); }
.server-role-control:last-child { padding-bottom: 0; border-bottom: 0; }
.server-role-control label { display: grid; gap: 6px; color: var(--soft); font-size: .8rem; }
.active-ban { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px; border: 1px solid rgba(255, 102, 133, .14); border-radius: 10px; background: rgba(255, 102, 133, .05); }
.active-ban div { display: grid; gap: 2px; min-width: 0; }
.active-ban span { overflow: hidden; color: var(--muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.btn-block { width: 100%; }

/* Personal settings */
.settings-page { padding: 54px 0 90px; }
.settings-layout { display: grid; grid-template-columns: 245px minmax(0, 820px); justify-content: center; gap: 34px; align-items: start; }
.settings-nav { position: sticky; top: 105px; display: grid; gap: 5px; }
.settings-nav h1 { margin: 11px 0 18px; font-size: 2.3rem; letter-spacing: -.06em; }
.settings-nav a { padding: 10px 12px; border-radius: 10px; color: var(--soft); font-size: .84rem; font-weight: 700; text-decoration: none; }
.settings-nav a:hover { color: #fff; background: rgba(78, 141, 255, .1); transform: translateX(3px); }
.settings-content, .settings-form { display: grid; gap: 18px; }
.settings-card { display: grid; gap: 16px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(16, 25, 44, .94), rgba(9, 15, 29, .9)); box-shadow: var(--shadow-soft); scroll-margin-top: 100px; }
.settings-card-head { display: flex; gap: 13px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.settings-card-head > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--blue-2); font-size: .72rem; font-weight: 800; }
.settings-card h2 { margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -.035em; }
.settings-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.settings-card label { display: grid; gap: 7px; color: var(--soft); font-size: .82rem; font-weight: 700; }
.settings-preview { min-height: 155px; display: flex; align-items: flex-end; gap: 14px; padding: 20px; border-radius: 15px; background: radial-gradient(circle at 15% 10%, rgba(131,228,255,.28), transparent 30%), linear-gradient(135deg,#0a1122,#1b4070); background-size: cover; background-position: center; }
.settings-preview img { width: 76px; height: 76px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.settings-preview strong { font-size: 1.25rem; text-shadow: 0 2px 12px #000; }
.settings-savebar { position: sticky; z-index: 5; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 13px 12px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(9, 15, 29, .94); box-shadow: 0 18px 50px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.settings-savebar span { color: var(--muted); font-size: .78rem; }
.connection-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; align-items: center; }
.connection-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #5865f2; color: #fff; font-size: 1.25rem; font-weight: 900; box-shadow: 0 10px 28px rgba(88,101,242,.25); }
.connection-row > div:nth-child(2) { display: grid; gap: 3px; }
.connection-row > div:nth-child(2) span, .connection-unavailable { color: var(--muted); font-size: .78rem; }
.connection-setup-note { margin-top: 18px; padding: 15px 17px; display: grid; gap: 7px; border: 1px solid rgba(255,190,92,.26); border-radius: 12px; background: rgba(255,190,92,.06); }
.connection-setup-note span { color: var(--muted); font-size: .82rem; }
.connection-setup-note code { color: var(--soft); overflow-wrap: anywhere; }
.connection-setup-note a { color: var(--accent); font-weight: 800; font-size: .82rem; }
.integration-health { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.integration-warning { margin-bottom: 14px; padding: 11px 13px; border: 1px solid rgba(255,190,92,.24); border-radius: 10px; color: #ffd28b; background: rgba(255,190,92,.06); font-size: .82rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.guide-content { display: grid; gap: 14px; }
.guide-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
.guide-step > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); font-weight: 900; }
.guide-step h2 { margin: 2px 0 8px; font-size: 1.2rem; }
.guide-step p, .guide-step li { color: var(--muted); }
.guide-step code { overflow-wrap: anywhere; }
.guide-step pre { overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.18); }
.guide-step .btn { margin-top: 12px; }
.guide-status { position: sticky; top: 90px; display: grid; gap: 14px; }
.guide-status h3 { margin: 0; }
.guide-status ul { margin: 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } .guide-status { position: static; } }
.alert-warning { border-color: rgba(255,190,92,.4); color: #ffd28b; }
.notice { padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(78, 141, 255, .08); color: var(--soft); }
.notice.success { border-color: rgba(83, 231, 164, .25); background: rgba(83, 231, 164, .08); color: #caffdf; }

/* Thread permissions and forum management */
.narrow-container { max-width: 980px; }
.permission-page-head { padding: 18px 0 28px; }
.permission-page-head h1 { margin: 13px 0 9px; font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -.065em; }
.permission-page-head p { max-width: 720px; margin: 0; color: var(--soft); line-height: 1.65; }
.thread-permissions-form { display: grid; gap: 16px; }
.permission-block { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(16,25,44,.94), rgba(9,15,29,.9)); box-shadow: var(--shadow-soft); }
.permission-block-copy { display: flex; gap: 13px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.permission-block-copy > span { color: var(--blue-2); font-size: .74rem; font-weight: 800; }
.permission-block-copy h2 { margin: 0 0 5px; font-size: 1.2rem; }
.permission-block-copy p { margin: 0; color: var(--muted); font-size: .82rem; }
.policy-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 8px; padding-top: 17px; }
.policy-option { cursor: pointer; }
.policy-option input { position: absolute; opacity: 0; pointer-events: none; }
.policy-option span { display: grid; min-height: 54px; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--soft); font-size: .78rem; font-weight: 700; text-align: center; }
.policy-option:hover span { border-color: var(--line-2); }
.policy-option input:checked + span { border-color: rgba(131,228,255,.48); background: linear-gradient(135deg, rgba(75,141,255,.18), rgba(131,228,255,.07)); color: #fff; box-shadow: inset 0 0 0 1px rgba(131,228,255,.06); }
.permission-role-picker { display: none; margin-top: 15px; padding: 14px; border: 1px dashed rgba(131,228,255,.2); border-radius: 12px; background: rgba(75,141,255,.04); }
.permission-role-picker.visible { display: grid; gap: 9px; }
.permission-role-picker > strong { font-size: .8rem; }
.permission-role-picker > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px; }
.permission-actions { position: sticky; z-index: 3; bottom: 14px; padding: 12px; border: 1px solid var(--line-2); border-radius: 15px; background: rgba(8,13,25,.94); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.thread-access-note { margin-top: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--muted); text-align: center; }
.post-ranks { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.author-role { --role: linear-gradient(135deg, #587fff, #42bad7); }
.forum-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.forum-manage-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; align-items: start; }
.forum-category-create { position: sticky; top: 98px; }
.forum-category-list { display: grid; gap: 10px; }
.forum-category-manage-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(16,25,44,.92), rgba(9,15,29,.88)); }
.forum-category-manage-card > div { display: flex; gap: 12px; min-width: 0; }
.forum-category-manage-card h2 { margin: 0 0 3px; font-size: 1rem; }
.forum-category-manage-card p { margin: 0 0 6px; color: var(--muted); font-size: .78rem; }
.forum-category-manage-card small { color: #60708b; }

/* Icon BBCode toolbar */
.editor-toolbar { gap: 4px; padding: 9px; overflow: visible; }
.editor-toolbar button { position: relative; display: grid; width: 34px; height: 34px; min-height: 34px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; font-size: .85rem; }
.editor-toolbar button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.editor-toolbar button:hover { border-color: var(--line); transform: translateY(-1px); }
.editor-toolbar button::after { position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 50%; padding: 6px 8px; content: attr(data-tooltip); transform: translate(-50%, 4px); border: 1px solid var(--line); border-radius: 7px; opacity: 0; pointer-events: none; background: #080e1c; color: #fff; box-shadow: var(--shadow-soft); font-size: .68rem; font-weight: 700; white-space: nowrap; transition: .16s ease; }
.editor-toolbar button:hover::after, .editor-toolbar button:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.toolbar-divider { width: 1px; height: 24px; align-self: center; margin: 0 3px; background: var(--line); }
.toolbar-color { position: relative; display: inline-flex; }
.toolbar-color input[type="color"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.color-tool { padding-bottom: 2px; border-bottom: 3px solid var(--editor-color, #63d5ff); font-weight: 800; }
.bb-image-error { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(255,102,133,.25); border-radius: 8px; color: #ff9caf; background: rgba(255,102,133,.08); font-size: .8rem; }
.size-tool { font-size: 1.05rem; font-weight: 800; }
.editor-preview-controls { display: flex; justify-content: flex-end; padding-top: 9px; }
.bb-preview { margin-top: 11px; overflow: hidden; border: 1px solid rgba(131,228,255,.19); border-radius: 14px; background: linear-gradient(145deg,rgba(17,27,47,.96),rgba(8,14,27,.94)); }
.bb-preview[hidden] { display: none; }
.bb-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.bb-preview > header > div { display: grid; gap: 3px; }
.bb-preview > header strong { font-size: .82rem; }
.bb-preview > .bb-content { min-height: 76px; padding: 17px; }
.bbcode-help-footer { padding-top: 22px; padding-bottom: 8px; }
.bbcode-help-button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 15px; background: linear-gradient(135deg,rgba(75,141,255,.1),rgba(131,228,255,.035)); color: var(--text); cursor: pointer; text-align: left; }
.bbcode-help-button > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: linear-gradient(135deg,var(--blue-2),var(--blue)); color: #06101e; font-weight: 900; }
.bbcode-help-button > div { display: grid; gap: 2px; }
.bbcode-help-button small { color: var(--muted); }
.bbcode-help-button > b { margin-left: auto; color: var(--blue-2); font-size: .74rem; }
.bbcode-help-dialog { width: min(860px,calc(100vw - 28px)); max-height: min(760px,calc(100vh - 28px)); padding: 0; overflow: auto; border: 1px solid var(--line-2); border-radius: 20px; background: #0a1120; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.bbcode-help-dialog::backdrop { background: rgba(2,6,14,.78); backdrop-filter: blur(8px); }
.bbcode-help-head { display: flex; justify-content: space-between; gap: 18px; padding: 22px; border-bottom: 1px solid var(--line); }
.bbcode-help-head h2 { margin: 6px 0 3px; }
.bbcode-help-head p { margin: 0; color: var(--muted); font-size: .78rem; }
.bbcode-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 22px; }
.bbcode-help-grid article { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.bbcode-help-grid code { overflow-wrap: anywhere; color: var(--blue-2); font-size: .72rem; }
.bbcode-help-grid span { color: var(--soft); font-size: .75rem; }
.bbcode-help-tip { margin: 0 22px 22px; padding: 12px; border: 1px solid rgba(83,231,164,.14); border-radius: 11px; background: rgba(83,231,164,.05); color: #a9d5bb; font-size: .74rem; }
.discord-link-state { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.discord-link-state span, .discord-link-state small { color: var(--muted); font-size: .68rem; }
.discord-link-state strong { overflow-wrap: anywhere; font-family: ui-monospace,monospace; font-size: .78rem; }
.management-notice { padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--soft); font-size: .72rem; }
.management-notice.success { border-color: rgba(83,231,164,.2); background: rgba(83,231,164,.055); color: #a9d5bb; }
.management-notice.danger { border-color: rgba(255,105,120,.2); background: rgba(255,105,120,.055); color: #ffc0c7; }

/* Roles */
.role-settings-head { margin: 24px 0; }
.role-settings-head h1 { margin: 12px 0 8px; font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.07em; }
.role-settings-head p { max-width: 680px; margin: 0; color: var(--soft); }
.role-create-card { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); gap: 24px; align-items: center; margin-bottom: 22px; padding: 22px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(135deg, rgba(64,105,190,.17), rgba(22,36,62,.75)); box-shadow: var(--shadow-soft); }
.role-create-card > div { display: flex; gap: 13px; }
.role-create-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: linear-gradient(135deg,var(--blue-2),var(--blue)); color: #07101e; font-size: 1.4rem; font-weight: 500; }
.role-create-card h2 { margin: 0 0 4px; }
.role-create-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.role-create-form { display: grid; grid-template-columns: 1.2fr 90px 1fr auto auto; gap: 9px; align-items: end; }
.role-create-form label, .role-main-fields label { display: grid; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.color-field input[type=color] { min-height: 46px; padding: 5px; cursor: pointer; }
.switch-field { display: flex !important; align-items: center; gap: 8px !important; min-height: 46px; padding: 0 8px; }
.switch-field input { position: absolute; opacity: 0; }
.switch-field span, .permission-switch i { position: relative; width: 34px; height: 20px; flex: 0 0 auto; border-radius: 999px; background: #26334a; }
.switch-field span::after, .permission-switch i::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; content: ''; background: #8c9ab0; transition: .18s ease; }
.switch-field input:checked + span, .permission-switch input:checked + i { background: rgba(83,171,255,.45); }
.switch-field input:checked + span::after, .permission-switch input:checked + i::after { left: 17px; background: var(--blue-2); box-shadow: 0 0 10px rgba(131,228,255,.6); }
.role-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr)); gap: 18px; }
.role-settings-card { position: relative; padding: 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(16,25,44,.94), rgba(9,15,29,.9)); box-shadow: var(--shadow-soft); }
.role-settings-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ''; background: var(--role-accent); box-shadow: 0 0 18px var(--role-accent); }
.role-settings-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.role-card-title { display: flex; align-items: center; gap: 11px; }
.role-card-swatch { width: 15px; height: 15px; border-radius: 50%; background: var(--role-accent); box-shadow: 0 0 14px var(--role-accent); }
.role-card-title h2 { margin: 0 0 2px; font-size: 1.1rem; }
.role-card-title p { margin: 0; color: var(--muted); font-size: .72rem; }
.protected-badge { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .66rem; font-weight: 800; }
.role-edit-form { display: grid; gap: 18px; }
.role-main-fields { display: grid; grid-template-columns: 1fr 80px 1fr auto; gap: 9px; align-items: end; }
.role-permission-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-permission-groups fieldset { display: grid; gap: 5px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.role-permission-groups legend { padding: 0 6px; color: var(--blue-2); font-size: .72rem; font-weight: 800; }
.permission-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; color: var(--soft); cursor: pointer; }
.permission-switch b { font-size: .73rem; font-weight: 600; }
.permission-switch input { position: absolute; opacity: 0; }
.role-card-actions { display: flex; justify-content: flex-end; }
.role-delete-form { position: absolute; right: 21px; bottom: 21px; }
.role-card-actions { padding-right: 115px; }
.role-permission-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-permission-summary section { padding: 11px; border: 1px solid var(--line); border-radius: 11px; }
.role-permission-summary h3 { margin: 0 0 8px; color: var(--blue-2); font-size: .72rem; }
.role-permission-summary section > div { display: grid; gap: 5px; }
.role-permission-summary span { display: flex; align-items: center; gap: 7px; color: var(--soft); font-size: .72rem; }
.role-permission-summary span i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.role-permission-summary small { color: var(--muted); }

.action-badge { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(131,228,255,.15); border-radius: 999px; background: rgba(75,141,255,.08); color: #bceeff; font-size: .74rem; font-weight: 700; }
.server-check-time { display: block; margin-top: 5px; color: var(--muted); font-size: .67rem; }
.server-config-form { grid-template-columns: 1fr 1fr 140px auto; }
.btn-xs { min-height: 28px; padding: 4px 8px; border-radius: 8px; font-size: .72rem; }
.btn-outline { border-color: var(--line-2); background: transparent; }

@media (max-width: 1100px) {
  .profile-page-grid.with-management { grid-template-columns: minmax(0, 1fr) 320px; }
  .role-create-card { grid-template-columns: 1fr; }
  .role-create-form { grid-template-columns: 1fr 90px 1fr auto auto; }
}

@media (max-width: 900px) {
  .profile-page-grid.with-management, .settings-layout, .forum-manage-grid { grid-template-columns: 1fr; }
  .player-management, .settings-nav, .forum-category-create { position: static; }
  .settings-nav { display: flex; flex-wrap: wrap; align-items: center; }
  .settings-nav h1 { width: 100%; }
  .role-create-form, .role-main-fields { grid-template-columns: 1fr 90px 1fr; }
  .role-create-form .switch-field, .role-main-fields .switch-field { grid-column: span 2; }
}

@media (max-width: 700px) {
  .user-menu summary span { display: none; }
  .user-menu-popover span { display: block; }
  .user-menu-popover { position: fixed; top: 72px; right: 14px; left: 14px; width: auto; }
  .profile-page-grid.with-management { display: flex; flex-direction: column; }
  .player-management { width: 100%; }
  .settings-page { padding-top: 34px; }
  .settings-card { padding: 18px; }
  .settings-savebar { align-items: stretch; flex-direction: column; }
  .connection-row { grid-template-columns: 48px 1fr; }
  .connection-row > :last-child { grid-column: 1 / -1; width: 100%; }
  .connection-row form .btn { width: 100%; }
  .permission-block { padding: 17px; }
  .policy-options { grid-template-columns: 1fr 1fr; }
  .forum-category-manage-card { align-items: stretch; flex-direction: column; }
  .role-create-form, .role-main-fields, .role-permission-groups, .role-permission-summary { grid-template-columns: 1fr; }
  .role-create-form .switch-field, .role-main-fields .switch-field { grid-column: auto; }
  .role-delete-form { position: static; margin-top: 10px; }
  .role-card-actions { padding-right: 0; }
  .role-card-actions .btn, .role-delete-form .btn { width: 100%; }
  .server-config-form { grid-template-columns: 1fr; }
  .bbcode-help-grid { grid-template-columns: 1fr; }
  .bbcode-help-head { align-items: flex-start; flex-direction: column; }
}

/* Split role editor */
.roles-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.role-sidebar {
  position: sticky;
  top: 98px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 25, 44, .96), rgba(8, 14, 27, .94));
  box-shadow: var(--shadow-soft);
}
.role-quick-create { border-bottom: 1px solid var(--line); }
.role-quick-create > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}
.role-quick-create > summary::-webkit-details-marker { display: none; }
.role-quick-create > summary:hover, .role-quick-create[open] > summary { background: rgba(76, 139, 238, .08); }
.role-quick-create > summary > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #07101e;
  font-size: 1.25rem;
}
.role-quick-create > summary > div { display: grid; gap: 2px; }
.role-quick-create > summary strong { font-size: .86rem; }
.role-quick-create > summary small { color: var(--muted); font-size: .7rem; }
.role-quick-create > form { display: grid; gap: 10px; padding: 0 14px 14px; }
.role-quick-create label { display: grid; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.role-create-inline { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
.role-integration-mini { display: grid; gap: 8px; padding: 10px; border: 1px solid rgba(131,228,255,.13); border-radius: 11px; background: rgba(75,141,255,.045); }
.role-quick-create .switch-field { padding: 0; }
.role-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px 8px;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.role-sidebar-head b { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; background: rgba(131, 228, 255, .08); color: var(--blue-2); font-size: .67rem; }
.role-nav-list { display: grid; gap: 4px; max-height: calc(100vh - 280px); min-height: 180px; padding: 5px 8px 10px; overflow-y: auto; }
.role-nav-group-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 5px 2px; padding: 7px 6px 5px; border-bottom: 1px solid var(--line); color: #8fa0ba; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.role-nav-group-title:first-child { margin-top: 0; }
.role-nav-group-title.server { color: #a6def1; }
.role-nav-group-title b { min-width: 19px; padding: 2px 5px; border-radius: 999px; background: rgba(131, 228, 255, .07); color: var(--blue-2); font-size: .61rem; text-align: center; }
.role-nav-empty { padding: 7px 11px 10px; color: #5e6d84; font-size: .68rem; line-height: 1.4; }
.role-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.role-nav-item:hover { border-color: var(--line); background: rgba(255, 255, 255, .035); }
.role-nav-item.active {
  border-color: rgba(131, 228, 255, .22);
  background: linear-gradient(135deg, rgba(75, 141, 255, .17), rgba(131, 228, 255, .055));
  box-shadow: inset 3px 0 var(--role-color, var(--blue-2));
}
.role-nav-swatch { width: 11px; height: 11px; border-radius: 50%; background: var(--role-color); box-shadow: 0 0 12px var(--role-color); }
.role-nav-copy { display: grid; gap: 3px; min-width: 0; }
.role-nav-copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.role-nav-copy small { overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.role-nav-arrow { color: var(--muted); font-size: 1.2rem; }
.role-nav-lock { opacity: .55; font-size: .72rem; }
.role-nav-item.active .role-nav-arrow { color: var(--blue-2); transform: translateX(2px); }

.role-editor-surface {
  min-width: 0;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16, 25, 44, .93), rgba(8, 14, 27, .9));
  box-shadow: var(--shadow-soft);
}
.role-editor-panel { display: none; position: relative; padding: 25px; overflow: hidden; }
.role-editor-panel.active { display: block; animation: bp-rise .25s both; }
.role-editor-panel::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ''; background: var(--role-accent); box-shadow: 0 0 22px var(--role-accent); }
.role-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -1px -1px 22px; padding: 2px 0 20px; border-bottom: 1px solid var(--line); }
.role-editor-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.role-editor-swatch { width: 46px; height: 46px; flex: 0 0 auto; border: 8px solid rgba(255, 255, 255, .06); border-radius: 14px; background: var(--role-accent); box-shadow: 0 0 24px color-mix(in srgb, var(--role-accent) 45%, transparent); }
.role-editor-identity h2 { margin: 5px 0 2px; font-size: 1.55rem; letter-spacing: -.045em; }
.role-editor-identity p { margin: 0; color: var(--muted); font-size: .75rem; }
.role-editor-section { display: grid; gap: 17px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.role-editor-section:first-child { padding-top: 0; }
.role-editor-section-head { display: flex; gap: 11px; }
.role-editor-section-head > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-2); border-radius: 9px; color: var(--blue-2); font-size: .66rem; font-weight: 800; }
.role-editor-section-head h3 { margin: 0 0 3px; font-size: .98rem; }
.role-editor-section-head p { margin: 0; color: var(--muted); font-size: .73rem; }
.role-editor-actions { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding: 11px 11px 11px 15px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(8, 14, 27, .94); box-shadow: 0 15px 42px rgba(0, 0, 0, .35); backdrop-filter: blur(16px); }
.role-editor-actions span { color: var(--muted); font-size: .72rem; }
.role-editor-delete { display: flex; justify-content: flex-end; margin-top: 12px; }
.protected-role-notice { display: flex; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid rgba(131, 228, 255, .14); border-radius: 12px; background: rgba(75, 141, 255, .06); }
.protected-role-notice > span { font-size: 1.15rem; }
.protected-role-notice strong { display: block; margin-bottom: 3px; }
.protected-role-notice p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.role-editor-empty { display: grid; min-height: 620px; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.role-editor-empty > span { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid var(--line); border-radius: 15px; color: var(--blue-2); font-size: 1.5rem; }
.role-editor-empty h2 { margin: 14px 0 4px; color: var(--text); }
.role-editor-empty p { margin: 0; }
.role-main-fields { grid-template-columns: minmax(180px, 1fr) 80px minmax(200px, 1fr); }
.role-scope-field { min-width: 0; }
.role-integration-form { margin-top: 18px; }
.role-integration-section { padding: 18px; border: 1px solid rgba(131,228,255,.15); border-radius: 15px; background: linear-gradient(135deg,rgba(75,141,255,.08),rgba(131,228,255,.025)); }
.role-integration-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.role-integration-fields > label { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(0,1fr); gap: 14px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7,12,24,.48); }
.role-integration-fields label > span { display: grid; gap: 3px; }
.role-integration-fields b { font-size: .8rem; }
.role-integration-fields small { color: var(--muted); font-size: .66rem; line-height: 1.4; }
.role-integration-note { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.role-integration-note i { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 10px rgba(131,228,255,.6); }
.role-integration-save { justify-self: end; }
.agent-token-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 9px 0; }
.agent-token-row code { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .roles-workspace { grid-template-columns: 250px minmax(0, 1fr); gap: 14px; }
  .role-editor-panel { padding: 19px; }
  .role-main-fields { grid-template-columns: 1fr 80px; }
  .role-main-fields > label:nth-child(3) { grid-column: 1 / -1; }
  .role-main-fields .switch-field { grid-column: 1 / -1; }
  .role-permission-groups { grid-template-columns: 1fr; }
  .role-integration-fields { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .roles-workspace { grid-template-columns: 1fr; }
  .role-sidebar { position: static; }
  .role-nav-list { display: flex; min-height: 0; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .role-nav-group-title { min-width: max-content; border-bottom: 0; border-right: 1px solid var(--line); }
  .role-nav-empty { display: none; }
  .role-nav-item { min-width: 190px; }
  .role-editor-surface { min-height: 0; }
  .role-editor-panel { padding: 17px; }
  .role-editor-header { align-items: flex-start; flex-direction: column; }
  .role-editor-actions { align-items: stretch; flex-direction: column; }
  .role-editor-actions .btn { width: 100%; }
  .role-integration-fields > label { grid-template-columns: 1fr; gap: 8px; }
  .role-integration-save { width: 100%; }
  .agent-token-row { grid-template-columns: 1fr; }
}

/* Homepage v3 */
.landing-hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #060914; isolation: isolate; }
.landing-hero::before { position: absolute; z-index: -2; inset: 0; content: ''; opacity: .14; background-image: linear-gradient(rgba(145,205,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(145,205,255,.08) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 76%); }
.landing-hero::after { position: absolute; z-index: -1; right: -12%; bottom: -45%; width: 720px; height: 720px; border: 1px solid rgba(131,228,255,.08); border-radius: 50%; content: ''; box-shadow: 0 0 0 90px rgba(92,135,255,.025), 0 0 0 180px rgba(92,135,255,.018); }
.landing-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.landing-glow.one { top: -220px; left: -130px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(67,102,242,.24), transparent 67%); }
.landing-glow.two { right: 6%; bottom: 2%; width: 430px; height: 430px; background: radial-gradient(circle, rgba(49,193,230,.14), transparent 68%); }
.landing-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: clamp(48px, 7vw, 100px); align-items: center; padding-top: 68px; padding-bottom: 68px; }
.landing-copy { max-width: 720px; }
.landing-live-label { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 7px 10px; border: 1px solid rgba(83,231,164,.18); border-radius: 999px; background: rgba(83,231,164,.055); color: #bdeed1; font-size: .7rem; font-weight: 700; }
.landing-live-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 14px rgba(83,231,164,.8); }
.landing-copy h1 { margin: 0; font-size: clamp(4rem, 7.4vw, 7.7rem); font-weight: 800; letter-spacing: -.085em; line-height: .89; }
.landing-copy h1 span { color: transparent; background: linear-gradient(105deg, #8eeaff, #698cff 72%); -webkit-background-clip: text; background-clip: text; }
.landing-copy > p { max-width: 650px; margin: 28px 0 0; color: #a9b6cb; font-size: 1.02rem; line-height: 1.75; }
.landing-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.landing-actions .btn { min-height: 52px; padding-inline: 22px; }
.landing-actions .btn b { margin-left: 24px; font-size: 1.1rem; }
.landing-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: .84rem; font-weight: 800; text-decoration: none; }
.landing-text-link:hover { color: #fff; transform: translateX(3px); }
.landing-text-link span { color: var(--blue-2); }
.landing-proof { display: flex; gap: 0; margin-top: 45px; }
.landing-proof div { display: grid; gap: 2px; min-width: 122px; padding-right: 24px; border-right: 1px solid var(--line); }
.landing-proof div + div { padding-left: 24px; }
.landing-proof div:last-child { border-right: 0; }
.landing-proof strong { font-size: 1.35rem; letter-spacing: -.04em; }
.landing-proof span { color: var(--muted); font-size: .68rem; }
.landing-dashboard { position: relative; padding: 19px; overflow: hidden; border: 1px solid rgba(145,211,255,.18); border-radius: 24px; background: linear-gradient(150deg, rgba(17,27,48,.93), rgba(7,12,25,.94)); box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.045); transform: perspective(1200px) rotateY(-3deg); }
.landing-dashboard::before { position: absolute; top: -120px; right: -100px; width: 270px; height: 270px; border-radius: 50%; content: ''; background: rgba(75,141,255,.1); filter: blur(20px); }
.dashboard-topline { position: relative; display: flex; align-items: center; gap: 8px; padding: 2px 3px 15px; color: #86a1c2; font-family: Consolas, monospace; font-size: .61rem; letter-spacing: .08em; }
.dashboard-topline i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.dashboard-topline small { margin-left: auto; color: #506079; font-size: .57rem; }
.dashboard-logo { position: relative; display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.dashboard-logo img { width: 50px; filter: drop-shadow(0 0 16px rgba(131,228,255,.3)); }
.dashboard-logo div { display: grid; gap: 2px; }
.dashboard-logo small { color: var(--muted); font-size: .66rem; }
.dashboard-logo strong { font-size: 1rem; letter-spacing: -.035em; }
.dashboard-server-stack { position: relative; display: grid; gap: 7px; }
.dashboard-server { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.022); }
.dashboard-server:hover { border-color: rgba(131,228,255,.24); transform: translateX(-3px); }
.dashboard-index { color: #4d5d75; font-family: Consolas, monospace; font-size: .66rem; }
.dashboard-server-main { display: grid; gap: 3px; min-width: 0; }
.dashboard-server-main strong { font-size: .82rem; }
.dashboard-server-main span { color: var(--muted); font-size: .64rem; }
.dashboard-server-main > div { height: 3px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #1a2335; }
.dashboard-server-main > div i { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-2)); box-shadow: 0 0 10px rgba(131,228,255,.4); }
.dashboard-status { display: inline-flex; align-items: center; gap: 5px; color: #8aa0bd; font-family: Consolas, monospace; font-size: .57rem; }
.dashboard-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.dashboard-server.online .dashboard-status { color: #8ee8b5; }
.dashboard-server.online .dashboard-status i { background: var(--success); box-shadow: 0 0 10px rgba(83,231,164,.7); }
.dashboard-server.offline { opacity: .58; }
.dashboard-empty { padding: 30px; color: var(--muted); text-align: center; }
.dashboard-footer { display: flex; justify-content: space-between; margin-top: 11px; padding: 12px 4px 2px; color: var(--muted); font-size: .68rem; text-decoration: none; }
.dashboard-footer b { color: var(--blue-2); }
.dashboard-footer:hover b { transform: translateX(3px); }

.network-strip { border-bottom: 1px solid var(--line); background: rgba(5,8,16,.72); }
.network-strip-grid { display: grid; grid-template-columns: 150px 150px 150px minmax(0,1fr); min-height: 116px; align-items: stretch; }
.network-strip-grid > div { display: flex; flex-direction: column; justify-content: center; padding: 20px 25px; border-right: 1px solid var(--line); }
.network-strip-grid > div:first-child { padding-left: 0; }
.network-strip-grid span { color: var(--muted); font-size: .65rem; }
.network-strip-grid strong { margin-top: 4px; font-size: 1.75rem; letter-spacing: -.06em; }
.network-strip-grid strong small { color: #53627a; font-size: .8rem; }
.network-strip-grid .network-strip-note { flex-direction: row; align-items: center; gap: 11px; border-right: 0; }
.network-strip-note i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 14px rgba(131,228,255,.6); }
.network-strip-note p { max-width: 440px; margin: 0; color: #73839b; font-size: .72rem; line-height: 1.55; }
.home-section { padding: 105px 0; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.home-section-number { color: var(--blue-2); font-family: Consolas, monospace; font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.home-section-head h2 { margin: 12px 0 0; font-size: clamp(2.7rem, 5vw, 5rem); letter-spacing: -.075em; line-height: .94; }
.home-section-head > p { max-width: 370px; margin: 0; color: var(--muted); line-height: 1.65; }
.home-server-board { border-top: 1px solid var(--line); }
.home-server-entry { display: grid; grid-template-columns: 55px minmax(260px,1fr) minmax(220px,.65fr) 130px; gap: 22px; align-items: center; min-height: 124px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.home-server-entry:hover { padding-right: 12px; padding-left: 12px; background: linear-gradient(90deg, rgba(75,141,255,.06), transparent); }
.home-server-entry.offline { opacity: .62; }
.home-server-number { color: #3e4d64; font-family: Consolas, monospace; font-size: .72rem; }
.home-server-name .status { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.home-server-name h3 { margin: 7px 0 3px; font-size: 1.45rem; letter-spacing: -.045em; }
.home-server-name code { color: #667892; font-size: .72rem; }
.home-server-load > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.home-server-load b { color: var(--soft); }
.home-load-bar { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #172135; }
.home-load-bar i { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #617cff, #71dcff); }
.home-copy-address { display: grid; gap: 2px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; text-align: left; }
.home-copy-address span { color: var(--muted); font-size: .58rem; }
.home-copy-address b { font-size: .72rem; }
.home-copy-address:not(:disabled):hover { border-color: var(--line-2); background: rgba(75,141,255,.1); transform: translateY(-2px); }
.home-copy-address:disabled { cursor: not-allowed; opacity: .45; }
.home-community-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(12,20,37,.45), transparent); }
.community-showcase { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(320px,.7fr); gap: 18px; }
.community-forum-card, .community-identity-card { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(16,25,44,.94), rgba(8,14,27,.9)); box-shadow: var(--shadow-soft); }
.community-forum-card { padding: 22px; }
.community-card-head { display: flex; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.community-card-head > div { display: grid; gap: 3px; }
.community-card-head span { color: var(--muted); font-size: .68rem; }
.community-card-head strong { font-size: 1rem; }
.community-card-head a { color: var(--blue-2); font-size: .72rem; font-weight: 800; text-decoration: none; }
.community-thread-list { display: grid; }
.community-thread-list > a { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 78px; border-bottom: 1px solid var(--line); text-decoration: none; }
.community-thread-list > a:last-child { border-bottom: 0; }
.community-thread-list > a:hover { padding-inline: 7px; background: rgba(75,141,255,.045); }
.community-thread-list > a > span { color: #4b5b74; font-family: Consolas, monospace; font-size: .65rem; }
.community-thread-list > a div { display: grid; gap: 4px; min-width: 0; }
.community-thread-list > a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-thread-list > a small { color: var(--muted); font-size: .68rem; }
.community-thread-list > a > b { color: #71839d; font-size: .67rem; }
.community-empty { padding: 50px; color: var(--muted); text-align: center; }
.community-identity-card { position: relative; padding: 28px; overflow: hidden; }
.community-identity-card::after { position: absolute; right: -120px; bottom: -150px; width: 330px; height: 330px; border: 1px solid rgba(131,228,255,.08); border-radius: 50%; content: ''; box-shadow: 0 0 0 55px rgba(75,141,255,.025); }
.identity-orbit { position: relative; width: 115px; height: 115px; display: grid; place-items: center; margin-bottom: 40px; border: 1px solid rgba(131,228,255,.14); border-radius: 50%; }
.identity-orbit img { width: 65px; filter: drop-shadow(0 0 18px rgba(131,228,255,.35)); }
.identity-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 12px rgba(131,228,255,.7); }
.identity-orbit i:nth-of-type(1) { top: 4px; left: 29px; }.identity-orbit i:nth-of-type(2) { right: 0; bottom: 34px; }.identity-orbit i:nth-of-type(3) { bottom: 3px; left: 25px; background: var(--violet); }
.community-identity-card > span { color: var(--blue-2); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.community-identity-card h3 { margin: 10px 0 12px; font-size: 2rem; letter-spacing: -.06em; line-height: 1; }
.community-identity-card p { position: relative; z-index: 1; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.community-identity-card .btn { position: relative; z-index: 1; margin-top: 15px; }
.home-final-cta { padding: 105px 0; border-top: 1px solid var(--line); background: radial-gradient(circle at 15% 100%, rgba(75,141,255,.17), transparent 37%), #070a14; }
.home-final-inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 60px; align-items: end; }
.home-final-inner h2 { margin: 14px 0 0; font-size: clamp(3rem,6vw,6rem); letter-spacing: -.08em; line-height: .9; }
.home-final-inner > div:last-child { display: grid; gap: 22px; justify-items: start; }
.home-final-inner p { max-width: 380px; margin: 0; color: var(--soft); line-height: 1.65; }

/* Profile moderation and hierarchy */
.self-management-note { margin-top: 10px; padding: 9px 10px; border: 1px solid rgba(131,228,255,.15); border-radius: 9px; background: rgba(75,141,255,.06); color: #9eb2ce; font-size: .7rem; line-height: 1.45; }
.role-choice small { color: var(--muted); font-size: .65rem; }
.forum-ban-form { padding: 0; }
.forum-ban-form label { display: grid; gap: 6px; color: var(--soft); font-size: .78rem; }
.forum-ban-state { display: grid; gap: 4px; padding: 11px; border: 1px solid rgba(255,102,133,.18); border-radius: 10px; background: rgba(255,102,133,.06); }
.forum-ban-state strong { color: #ffadbd; font-size: .78rem; }
.forum-ban-state span { color: var(--soft); font-size: .75rem; line-height: 1.45; }
.forum-ban-state small { color: var(--muted); font-size: .65rem; }
.role-main-fields { grid-template-columns: minmax(170px,1fr) 80px minmax(190px,1fr) 130px; }

/* Local GMod connection */
.local-server-card { display: grid; grid-template-columns: minmax(280px,1fr) minmax(360px,.9fr); gap: 20px; border-color: rgba(131,228,255,.24); background: radial-gradient(circle at 0 0, rgba(75,141,255,.13), transparent 38%), linear-gradient(145deg,rgba(16,25,44,.96),rgba(8,14,27,.92)); }
.local-server-copy { display: flex; gap: 14px; align-items: flex-start; }
.local-server-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-2); border-radius: 13px; background: rgba(75,141,255,.1); color: var(--blue-2); font-size: 1.3rem; }
.local-server-copy h3 { margin: 8px 0 5px; }
.local-server-copy p { max-width: 500px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.local-server-form { display: grid; grid-template-columns: 1fr 150px; gap: 9px; align-content: start; }
.local-server-form label { display: grid; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.local-server-form .btn { grid-column: 1 / -1; }
.local-server-ready { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid rgba(83,231,164,.17); border-radius: 11px; background: rgba(83,231,164,.055); color: #9ebda9; font-size: .72rem; }
.local-server-ready > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(83,231,164,.7); }
.local-server-ready a { margin-left: auto; color: var(--blue-2); font-weight: 800; text-decoration: none; }

@media (max-width: 1000px) {
  .landing-hero-grid { grid-template-columns: 1fr 370px; gap: 35px; }
  .landing-copy h1 { font-size: clamp(3.7rem, 8vw, 6rem); }
  .network-strip-grid { grid-template-columns: repeat(3, 1fr); }
  .network-strip-grid .network-strip-note { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .home-server-entry { grid-template-columns: 45px minmax(220px,1fr) 200px 115px; }
  .local-server-card { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .landing-hero { min-height: auto; }
  .landing-hero-grid { grid-template-columns: 1fr; padding-top: 75px; padding-bottom: 55px; }
  .landing-dashboard { transform: none; }
  .landing-copy h1 { font-size: clamp(3.5rem, 15vw, 5.5rem); }
  .landing-proof { flex-wrap: wrap; row-gap: 18px; }
  .network-strip-grid { grid-template-columns: repeat(3,1fr); }
  .network-strip-grid > div { padding: 18px 12px; }
  .network-strip-grid > div:first-child { padding-left: 12px; }
  .home-section { padding: 75px 0; }
  .home-section-head { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .home-server-entry { grid-template-columns: 38px minmax(0,1fr) auto; gap: 13px; }
  .home-server-load { grid-column: 2 / -1; }
  .home-copy-address { grid-column: 3; grid-row: 1; }
  .community-showcase, .home-final-inner { grid-template-columns: 1fr; }
  .home-final-inner { gap: 35px; }
  .role-main-fields { grid-template-columns: 1fr 80px; }
  .role-main-fields > label:nth-child(3), .role-main-fields > label:nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-text-link { padding: 8px 2px; }
  .landing-proof div { min-width: 33%; padding-right: 10px; }
  .landing-proof div + div { padding-left: 10px; }
  .dashboard-topline small { display: none; }
  .network-strip-grid { grid-template-columns: 1fr 1fr; }
  .network-strip-grid > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .home-server-entry { grid-template-columns: 30px minmax(0,1fr); }
  .home-copy-address { grid-column: 2; grid-row: auto; }
  .home-server-load { grid-column: 2; }
  .community-thread-list > a { grid-template-columns: 25px minmax(0,1fr); }
  .community-thread-list > a > b { grid-column: 2; }
  .local-server-form { grid-template-columns: 1fr; }
  .local-server-form .btn { grid-column: auto; }
  .local-server-ready { align-items: flex-start; flex-direction: column; }
  .local-server-ready a { margin-left: 0; }
}

.profile-stats { grid-template-columns: repeat(5,minmax(0,1fr)); }
@media (max-width: 760px) { .profile-stats { grid-template-columns: 1fr; } }

/* Forum structure, directories and staff tools */
.forum-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.forum-action-btn { position: relative; display: flex; min-width: 205px; min-height: 58px; align-items: center; gap: 12px; padding: 9px 15px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 15px; text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.forum-action-btn > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(255,255,255,.09); font-size: 1.25rem; }
.forum-action-btn > div { display: grid; gap: 1px; }.forum-action-btn small { color: rgba(235,248,255,.65); font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; }.forum-action-btn b { font-size: .82rem; }
.forum-action-btn.primary { color: #06111f; border-color: transparent; background: linear-gradient(135deg,#a4efff,#61bbff 44%,#6687ff); }.forum-action-btn.primary small { color: rgba(6,17,31,.62); }.forum-action-btn.secondary { background: linear-gradient(145deg,rgba(24,39,66,.96),rgba(12,21,39,.94)); }
.forum-action-btn:hover { transform: translateY(-3px); border-color: rgba(131,228,255,.55); box-shadow: 0 18px 42px rgba(0,0,0,.32); }.forum-action-btn.compact { min-width: 185px; min-height: 52px; }
.forum-section-stack { display: grid; gap: 22px; }.forum-section-box { overflow: hidden; }.forum-section-box .forum-box-title > div { display: grid; gap: 2px; }.forum-section-box .forum-box-title > div > small { opacity: .7; text-transform: none; letter-spacing: 0; }
.forum-subcategory-row { position: relative; padding-left: 48px; background: rgba(70,123,206,.025); }.forum-subcategory-row::before { position: absolute; top: 0; bottom: 0; left: 26px; width: 1px; content: ''; background: linear-gradient(transparent,var(--line-2),transparent); }.forum-subcategory-row .forum-icon { width: 32px; height: 32px; background: rgba(78,133,220,.16); }
.category-children { margin-bottom: 18px; }

.forum-builder-create-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 25px 0; }.forum-builder-form,.builder-edit-form { display: grid; gap: 11px; }.builder-form-title { display: flex; gap: 12px; align-items: flex-start; }.builder-form-title > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--blue-2); font-size: .72rem; }.builder-form-title h2 { margin: 0 0 3px; }.builder-form-title p { margin: 0; color: var(--muted); font-size: .75rem; }
.visibility-fieldset { display: grid; gap: 9px; margin: 2px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }.visibility-fieldset legend { padding: 0 6px; color: var(--soft); font-size: .72rem; font-weight: 800; }.visibility-audiences { display: flex; flex-wrap: wrap; gap: 7px; }.visibility-audiences label,.visibility-roles label { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); color: var(--soft); font-size: .72rem; cursor: pointer; }.visibility-audiences label:has(input:checked),.visibility-roles label:has(input:checked) { border-color: rgba(131,228,255,.5); color: #fff; background: rgba(75,141,255,.12); }.visibility-fieldset input { min-height: 0; }.visibility-fieldset > small { color: var(--muted); font-size: .65rem; line-height: 1.5; }.visibility-roles summary { color: var(--blue-2); font-size: .7rem; cursor: pointer; }.visibility-roles > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }.visibility-roles i { width: 8px; height: 8px; border-radius: 50%; background: var(--role-color); }
.forum-builder-sections { display: grid; gap: 22px; margin-top: 25px; }.forum-builder-section { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,rgba(16,25,44,.95),rgba(8,14,27,.92)); box-shadow: var(--shadow-soft); }.builder-section-settings > summary,.builder-category-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; cursor: pointer; list-style: none; }.builder-section-settings > summary::-webkit-details-marker,.builder-category-card > summary::-webkit-details-marker { display: none; }.builder-section-settings > summary > div,.builder-category-card > summary > div { display: flex; align-items: center; gap: 12px; }.builder-section-settings h2,.builder-category-card strong { margin: 0; }.builder-section-settings p,.builder-category-card small { display: block; margin: 3px 0 0; color: var(--muted); font-size: .7rem; }.builder-section-settings > summary > b { color: var(--blue-2); font-size: .72rem; }.builder-section-settings[open] > summary { border-bottom: 1px solid var(--line); }.builder-section-settings > form,.builder-category-card > form { margin: 0 18px 16px; }.builder-edit-form { grid-template-columns: repeat(3,minmax(0,1fr)); padding-top: 15px; }.builder-edit-form label { display: grid; gap: 5px; color: var(--muted); font-size: .68rem; }.builder-edit-form .visibility-fieldset,.builder-edit-form .btn { grid-column: 1 / -1; }.builder-category-tree { display: grid; gap: 8px; padding: 14px; background: rgba(3,8,17,.25); }.builder-category-card { border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }.builder-category-card[open] { border-color: rgba(131,228,255,.3); }.builder-category-card.subcategory { margin-left: 34px; }.builder-category-card > summary > span { color: var(--blue-2); font-size: .7rem; }

.directory-filter { display: grid; grid-template-columns: minmax(240px,1.5fr) repeat(3,minmax(145px,.7fr)) auto; gap: 10px; align-items: end; margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(15,25,44,.94),rgba(8,14,27,.9)); box-shadow: var(--shadow-soft); }.directory-filter label { display: grid; gap: 6px; color: var(--muted); font-size: .68rem; font-weight: 800; }.directory-filter-actions { display: flex; gap: 7px; }.filtered-user-grid { margin-top: 0; }.user-steam-line { display: block; margin: -2px 0 8px; color: #667b99; font-family: Consolas,monospace; font-size: .65rem; }.profile-steamid { display: block; margin-top: 4px; color: var(--blue-2); font-size: .65rem; }.log-filter { grid-template-columns: minmax(220px,1.2fr) repeat(4,minmax(140px,.7fr)) auto; }

.ban-create-form { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; align-items: end; }.ban-create-form > label { display: grid; gap: 6px; color: var(--muted); font-size: .7rem; }.temporary-ban-toggle { display: flex !important; min-height: 46px; align-items: center; gap: 8px !important; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.03); cursor: pointer; }.temporary-ban-toggle input { min-height: 0; }.temporary-ban-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.temporary-ban-fields[hidden] { display: none; }.ban-create-form > .btn { min-height: 46px; }.ban-scope { display: inline-flex; padding: 5px 8px; border-radius: 8px; background: rgba(75,141,255,.1); color: #acd0ff; font-size: .7rem; }.ban-scope.global { background: rgba(255,102,133,.1); color: #ffadbd; }

.wide-container { width: min(1780px,calc(100% - 36px)); }.staff-server-tabs { display: flex; gap: 8px; margin: 20px 0; overflow-x: auto; }.staff-server-tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); text-decoration: none; white-space: nowrap; }.staff-server-tabs a.active { border-color: rgba(131,228,255,.5); color: #fff; background: rgba(75,141,255,.12); }.staff-add-card,.staff-table-card { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(16,25,44,.96),rgba(8,14,27,.94)); box-shadow: var(--shadow-soft); }.staff-add-card > summary { display: flex; align-items: center; gap: 11px; padding: 15px 17px; cursor: pointer; list-style: none; }.staff-add-card > summary > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(75,141,255,.13); color: var(--blue-2); }.staff-add-card > summary strong,.staff-add-card > summary small { display: block; }.staff-add-card > summary small { color: var(--muted); font-size: .68rem; }.staff-add-form { display: grid; grid-template-columns: repeat(5,minmax(150px,1fr)); gap: 9px; padding: 0 17px 17px; }.staff-add-form label { display: grid; gap: 5px; color: var(--muted); font-size: .66rem; }.staff-add-form .btn { align-self: end; }.staff-table-card > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }.staff-table-card h2 { margin: 5px 0 0; }.staff-table-card > header > b { color: var(--blue-2); font-size: .75rem; }.staff-table-scroll { overflow-x: visible; border-top: 1px solid var(--line); }.staff-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }.staff-table th,.staff-table td { padding: 6px; border-right: 1px solid rgba(145,205,255,.06); border-bottom: 1px solid rgba(145,205,255,.08); text-align: left; overflow-wrap: anywhere; }.staff-table th { position: sticky; top: 0; color: #8fa4c3; background: #0b1324; font-size: .58rem; line-height: 1.25; text-transform: uppercase; }.staff-table td { font-size: .66rem; }.staff-table input,.staff-table select { width: 100%; min-width: 0; min-height: 34px; padding: 6px; font-size: .65rem; }.staff-table code { white-space: normal; overflow-wrap: anywhere; }.staff-profile-link { display: block; margin-top: 4px; color: var(--blue-2); font-size: .62rem; text-decoration: none; }.staff-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }.staff-row-actions form { margin: 0; }

@media (max-width: 1400px) { .staff-table-scroll { overflow-x: auto; }.staff-table { min-width: 1380px; } }
@media (max-width: 1100px) { .directory-filter,.log-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }.directory-search,.directory-filter-actions { grid-column: 1 / -1; }.staff-add-form { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) { .forum-builder-create-grid { grid-template-columns: 1fr; }.builder-edit-form { grid-template-columns: 1fr; }.builder-category-card.subcategory { margin-left: 15px; }.forum-subcategory-row { padding-left: 28px; }.forum-subcategory-row::before { left: 12px; }.ban-create-form,.staff-add-form { grid-template-columns: 1fr; }.temporary-ban-fields { grid-column: 1 / -1; }.directory-filter,.log-filter { grid-template-columns: 1fr; }.directory-search,.directory-filter-actions { grid-column: auto; }.forum-head-actions { width: 100%; }.forum-action-btn { flex: 1 1 190px; } }

/* Staff workspace and payroll */
.staff-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.staff-overview > div { position: relative; overflow: hidden; min-height: 112px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,rgba(19,31,54,.96),rgba(8,15,29,.94)); box-shadow: var(--shadow-soft); }
.staff-overview > div::after { position: absolute; right: -22px; bottom: -32px; width: 92px; height: 92px; border-radius: 50%; content: ''; background: rgba(76,145,255,.09); filter: blur(2px); }
.staff-overview span,.staff-overview small { position: relative; z-index: 1; display: block; color: var(--muted); }
.staff-overview span { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.staff-overview strong { position: relative; z-index: 1; display: block; margin: 6px 0 2px; color: #fff; font-size: 1.55rem; line-height: 1; }
.staff-overview small { font-size: .66rem; }
.staff-table-card.redesigned { overflow: hidden; border-color: rgba(131,228,255,.14); background: #080f1e; }
.staff-table-card.redesigned > header { background: linear-gradient(100deg,rgba(32,70,126,.2),transparent 70%); }
.staff-table-card.redesigned > header p { margin: 4px 0 0; color: var(--muted); font-size: .68rem; }
.staff-table-card.redesigned .staff-table-scroll { overflow-x: auto; border-top-color: rgba(131,228,255,.12); scrollbar-color: rgba(105,172,255,.55) rgba(255,255,255,.025); }
.staff-table-card.redesigned .staff-table { min-width: 1660px; table-layout: auto; }
.staff-table-card.redesigned .staff-table th { position: sticky; z-index: 2; top: 0; padding: 11px 9px; border-right-color: rgba(255,255,255,.045); color: #a8bddb; background: #0d182b; font-size: .59rem; letter-spacing: .045em; }
.staff-table-card.redesigned .staff-table td { height: 70px; padding: 8px 9px; vertical-align: middle; border-color: rgba(145,205,255,.065); background: rgba(255,255,255,.012); }
.staff-table-card.redesigned .staff-data-row:nth-child(even) td { background: rgba(64,111,181,.035); }
.staff-table-card.redesigned .staff-data-row:hover td { background: rgba(68,133,230,.075); }
.staff-table-card.redesigned input,.staff-table-card.redesigned select { border-color: transparent; background: rgba(255,255,255,.035); }
.staff-table-card.redesigned input:hover,.staff-table-card.redesigned select:hover,.staff-table-card.redesigned input:focus,.staff-table-card.redesigned select:focus { border-color: rgba(131,228,255,.32); background: rgba(10,20,38,.95); }
.staff-identity-cell { min-width: 145px; }.staff-steamid { max-width: 145px; }.staff-steamid code { color: #9db8dd; font-size: .61rem; }
.staff-profile-link.external { color: #768aa8; }.discipline-input { text-align: center; font-weight: 900; }.discipline-input.warning { color: #ffd07a; }.discipline-input.reprimand { color: #ff95aa; }
.tenure-pill,.appointed-by { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 8px; border: 1px solid rgba(131,228,255,.15); border-radius: 9px; color: #b9d8ff; background: rgba(72,137,231,.07); font-size: .65rem; white-space: nowrap; }
.appointed-by { color: var(--soft); border-color: var(--line); background: rgba(255,255,255,.025); }
.staff-salary-link { display: grid; gap: 2px; padding: 7px 9px; border: 1px solid rgba(89,216,171,.17); border-radius: 10px; color: #71e2b8; background: rgba(57,190,143,.065); text-decoration: none; white-space: nowrap; }
.staff-salary-link b { font-size: .78rem; }.staff-salary-link small { color: #8196b4; font-size: .58rem; }.staff-salary-link:hover { border-color: rgba(89,216,171,.42); background: rgba(57,190,143,.12); }

.salary-hero { align-items: center; }.salary-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 32px 0 14px; }.salary-section-head h2 { margin: 5px 0 0; }.salary-section-head p { margin: 0; color: var(--muted); font-size: .72rem; }
.salary-role-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(330px,1fr)); gap: 12px; }.salary-role-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,rgba(17,29,50,.96),rgba(8,15,29,.94)); box-shadow: var(--shadow-soft); }.salary-role-card[open] { grid-column: 1 / -1; border-color: rgba(131,228,255,.3); }.salary-role-card > summary { display: grid; grid-template-columns: 13px 1fr auto; gap: 12px; align-items: center; padding: 16px 17px; cursor: pointer; list-style: none; }.salary-role-card > summary::-webkit-details-marker { display: none; }.salary-role-dot { width: 11px; height: 38px; border-radius: 99px; background: var(--role-color); box-shadow: 0 0 18px color-mix(in srgb,var(--role-color) 55%,transparent); }.salary-role-card summary strong,.salary-role-card summary small { display: block; }.salary-role-card summary small { margin-top: 3px; color: var(--muted); font-size: .67rem; }.salary-role-card summary > b { color: var(--blue-2); font-size: .68rem; }
.salary-role-form { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 14px; padding: 0 17px 17px; border-top: 1px solid var(--line); }.salary-role-form label { display: grid; gap: 5px; color: var(--muted); font-size: .66rem; }.salary-base-input { padding-top: 15px; }.salary-base-input input { min-height: 54px; color: #fff; font-size: 1.1rem; font-weight: 900; }.salary-bonus-settings { display: grid; grid-template-columns: repeat(4,minmax(135px,1fr)); gap: 8px; padding-top: 15px; }.salary-role-form > .btn { grid-column: 1 / -1; justify-self: end; }
.salary-staff-list { display: grid; gap: 12px; }.salary-staff-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(16,27,47,.96),rgba(7,13,25,.95)); box-shadow: var(--shadow-soft); }.salary-staff-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }.salary-person { display: flex; align-items: center; gap: 12px; }.salary-avatar-letter { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(131,228,255,.22); border-radius: 13px; color: var(--blue-2); background: rgba(75,141,255,.1); font-weight: 900; }.salary-person strong,.salary-person small,.salary-total span,.salary-total small { display: block; }.salary-person small,.salary-total span,.salary-total small { color: var(--muted); font-size: .65rem; }.salary-total { text-align: right; }.salary-total strong { display: block; color: #71e2b8; font-size: 1.25rem; }.salary-staff-form { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }.salary-bonus-picker { display: grid; flex: 1; grid-template-columns: repeat(4,minmax(145px,1fr)); gap: 7px; }.salary-bonus-choice { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.022); cursor: pointer; }.salary-bonus-choice:has(input:checked) { border-color: rgba(89,216,171,.38); background: rgba(57,190,143,.09); }.salary-bonus-choice input { min-height: 0; }.salary-bonus-choice span,.salary-bonus-choice b,.salary-bonus-choice small { display: block; }.salary-bonus-choice b { color: var(--soft); font-size: .65rem; }.salary-bonus-choice small { margin-top: 2px; color: #71e2b8; font-size: .59rem; }

/* Unlimited forum nesting and moderation controls */
.forum-subcategory-row { padding-left: calc(18px + var(--category-indent,24px)); }.forum-subcategory-row::before { left: calc(14px + var(--category-line,18px)); }.builder-category-card.subcategory { margin-left: var(--category-indent,22px); }.thread-move-form { display: flex; gap: 6px; align-items: center; }.thread-move-form select { width: min(310px,38vw); min-height: 34px; padding: 5px 8px; font-size: .68rem; }

@media (max-width: 1200px) { .staff-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }.salary-bonus-settings,.salary-bonus-picker { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .staff-overview { grid-template-columns: 1fr; }.salary-role-grid { grid-template-columns: 1fr; }.salary-role-form { grid-template-columns: 1fr; }.salary-bonus-settings,.salary-bonus-picker { grid-template-columns: 1fr; }.salary-staff-card > header,.salary-staff-form,.salary-section-head { align-items: stretch; flex-direction: column; }.salary-total { text-align: left; }.salary-role-form > .btn { grid-column: auto; justify-self: stretch; }.thread-move-form { width: 100%; }.thread-move-form select { width: 100%; }.builder-category-card.subcategory { margin-left: var(--category-mobile-indent,10px); } }

/* Salary workspace v2 */
.salary-dashboard { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 20px 0 32px; }
.salary-dashboard > div { position: relative; overflow: hidden; min-height: 122px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(18,31,54,.97),rgba(8,15,29,.95)); box-shadow: var(--shadow-soft); }
.salary-dashboard > div::after { position: absolute; right: -30px; bottom: -40px; width: 115px; height: 115px; border-radius: 50%; content: ''; background: rgba(75,141,255,.09); }
.salary-dashboard > div.primary { border-color: rgba(81,221,169,.25); background: linear-gradient(145deg,rgba(19,59,54,.7),rgba(8,22,30,.96)); }.salary-dashboard > div.primary::after { background: rgba(65,221,164,.13); }
.salary-dashboard span,.salary-dashboard small,.salary-dashboard strong { position: relative; z-index: 1; display: block; }.salary-dashboard span { color: #8095b4; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.salary-dashboard strong { margin: 9px 0 4px; color: #fff; font-size: 1.55rem; line-height: 1; }.salary-dashboard .primary strong { color: #72e2b8; }.salary-dashboard small { color: var(--muted); font-size: .64rem; }
.salary-config-workspace { display: grid; grid-template-columns: 285px minmax(0,1fr); overflow: hidden; min-height: 640px; border: 1px solid rgba(131,228,255,.14); border-radius: 20px; background: linear-gradient(145deg,rgba(14,24,42,.98),rgba(7,13,25,.97)); box-shadow: var(--shadow); }
.salary-rank-sidebar { border-right: 1px solid var(--line); background: rgba(3,8,17,.3); }.salary-rank-sidebar-head { padding: 18px; border-bottom: 1px solid var(--line); }.salary-rank-sidebar-head strong,.salary-rank-sidebar-head small { display: block; }.salary-rank-sidebar-head strong { color: #fff; }.salary-rank-sidebar-head small { margin-top: 3px; color: var(--muted); font-size: .65rem; }.salary-rank-nav { display: grid; gap: 5px; padding: 10px; max-height: 720px; overflow-y: auto; }
.salary-rank-nav-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 11px; align-items: center; width: 100%; padding: 11px; border: 1px solid transparent; border-radius: 12px; color: var(--soft); background: transparent; text-align: left; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease; }.salary-rank-nav-item > i { width: 7px; height: 34px; border-radius: 99px; background: var(--role-color); box-shadow: 0 0 14px color-mix(in srgb,var(--role-color) 48%,transparent); }.salary-rank-nav-item span,.salary-rank-nav-item b,.salary-rank-nav-item small { display: block; }.salary-rank-nav-item b { font-size: .72rem; }.salary-rank-nav-item small { margin-top: 3px; color: #6f84a2; font-size: .59rem; }.salary-rank-nav-item em { color: #526985; font-style: normal; font-size: 1.15rem; }.salary-rank-nav-item:hover { border-color: rgba(131,228,255,.13); background: rgba(75,141,255,.055); transform: translateX(2px); }.salary-rank-nav-item.active { border-color: rgba(131,228,255,.28); color: #fff; background: linear-gradient(100deg,rgba(67,129,224,.16),rgba(67,129,224,.04)); }.salary-rank-nav-item.active em { color: var(--blue-2); }
.salary-rate-editor { min-width: 0; }.salary-rate-panel { display: none; }.salary-rate-panel.active { display: block; animation: salaryPanelIn .22s ease both; }@keyframes salaryPanelIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }.salary-rate-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 112px; padding: 20px 23px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg,rgba(51,101,176,.11),transparent 70%); }.salary-rate-title { display: flex; align-items: center; gap: 14px; }.salary-rate-title > i { width: 10px; height: 58px; border-radius: 99px; background: var(--role-color); }.salary-rate-title h2 { margin: 3px 0; }.salary-rate-title p { margin: 0; color: var(--muted); font-size: .68rem; }.salary-rate-maximum { text-align: right; }.salary-rate-maximum span,.salary-rate-maximum strong { display: block; }.salary-rate-maximum span { color: var(--muted); font-size: .62rem; }.salary-rate-maximum strong { margin-top: 4px; color: #72e2b8; font-size: 1.35rem; }
.salary-rate-form { padding: 22px 23px; }.salary-rate-base { display: grid; max-width: 390px; gap: 7px; color: var(--soft); font-size: .69rem; font-weight: 800; }.salary-rate-base > div { display: grid; grid-template-columns: 1fr 42px; overflow: hidden; border: 1px solid rgba(131,228,255,.22); border-radius: 13px; background: rgba(255,255,255,.025); }.salary-rate-base input { min-height: 58px; border: 0; border-radius: 0; color: #fff; background: transparent; font-size: 1.2rem; font-weight: 900; }.salary-rate-base > div > b { display: grid; place-items: center; border-left: 1px solid var(--line); color: #72e2b8; background: rgba(52,190,141,.055); }.salary-rate-base > small { color: var(--muted); font-size: .6rem; font-weight: 500; line-height: 1.5; }
.salary-rate-bonuses { margin-top: 26px; }.salary-rate-bonuses-head strong,.salary-rate-bonuses-head small { display: block; }.salary-rate-bonuses-head small { margin-top: 3px; color: var(--muted); font-size: .64rem; }.salary-rate-bonus-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 12px; }.salary-rate-bonus-grid > label { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 62px; padding: 9px 10px 9px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.022); }.salary-rate-bonus-grid > label > span { display: flex; align-items: center; gap: 9px; min-width: 0; }.salary-rate-bonus-grid > label > span i { display: grid; flex: 0 0 auto; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #82aef3; background: rgba(75,141,255,.1); font-size: .58rem; font-style: normal; }.salary-rate-bonus-grid > label > span b { font-size: .66rem; }.salary-rate-bonus-grid > label > div { display: grid; flex: 0 0 122px; grid-template-columns: 1fr 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }.salary-rate-bonus-grid input { min-width: 0; min-height: 36px; padding: 5px 7px; border: 0; border-radius: 0; background: rgba(4,9,18,.62); font-size: .68rem; }.salary-rate-bonus-grid em { display: grid; place-items: center; color: #72e2b8; background: rgba(52,190,141,.055); font-size: .65rem; font-style: normal; }.salary-rate-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }.salary-rate-actions span { color: var(--muted); font-size: .62rem; }
.salary-payroll-list { display: grid; gap: 8px; }.salary-payroll-row { display: grid; grid-template-columns: minmax(190px,1.1fr) 100px 100px minmax(220px,1.3fr) 120px auto; gap: 14px; align-items: center; min-height: 78px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg,rgba(16,27,47,.92),rgba(7,13,25,.93)); }.salary-payroll-amount span,.salary-payroll-amount b,.salary-payroll-total span,.salary-payroll-total strong { display: block; }.salary-payroll-amount span,.salary-payroll-total span { color: var(--muted); font-size: .59rem; }.salary-payroll-amount b { margin-top: 3px; color: #d8e7fb; font-size: .73rem; }.salary-payroll-amount.bonus b { color: #72e2b8; }.salary-payroll-tags { display: flex; flex-wrap: wrap; gap: 4px; }.salary-payroll-tags span { padding: 4px 6px; border: 1px solid rgba(131,228,255,.12); border-radius: 7px; color: #9cb4d4; background: rgba(75,141,255,.055); font-size: .55rem; }.salary-payroll-tags small { color: var(--muted); }.salary-payroll-total strong { margin-top: 2px; color: #72e2b8; font-size: 1rem; }

/* Bonus dropdown inside staff table */
.staff-bonus-cell { position: relative; min-width: 150px; }.staff-bonus-dropdown { position: relative; min-width: 140px; }.staff-bonus-dropdown > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 7px 9px; border: 1px solid rgba(89,216,171,.2); border-radius: 10px; color: #72e2b8; background: rgba(57,190,143,.065); cursor: pointer; list-style: none; }.staff-bonus-dropdown > summary::-webkit-details-marker { display: none; }.staff-bonus-dropdown summary span,.staff-bonus-dropdown summary b,.staff-bonus-dropdown summary small { display: block; }.staff-bonus-dropdown summary b { font-size: .76rem; }.staff-bonus-dropdown summary small { margin-top: 2px; color: #7990ad; font-size: .56rem; }.staff-bonus-dropdown summary > i { color: #7890ae; font-style: normal; transition: transform .18s ease; }.staff-bonus-dropdown[open] summary > i { transform: rotate(180deg); }.staff-bonus-menu { display: grid; gap: 8px; width: 290px; margin-top: 7px; padding: 11px; border: 1px solid rgba(131,228,255,.2); border-radius: 13px; background: #0b1527; box-shadow: 0 18px 42px rgba(0,0,0,.42); }.staff-bonus-menu header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }.staff-bonus-menu header strong { color: #fff; font-size: .68rem; }.staff-bonus-menu header small { color: #72e2b8; font-size: .58rem; }.staff-bonus-menu > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }.staff-bonus-menu label { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); cursor: pointer; }.staff-bonus-menu label:has(input:checked) { border-color: rgba(89,216,171,.35); background: rgba(57,190,143,.08); }.staff-bonus-menu input { width: auto !important; min-width: 0 !important; min-height: 0 !important; }.staff-bonus-menu label span,.staff-bonus-menu label b,.staff-bonus-menu label small { display: block; min-width: 0; }.staff-bonus-menu label b { overflow: hidden; color: #b7c9e2; font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }.staff-bonus-menu label small { margin-top: 2px; color: #72e2b8; font-size: .52rem; }.staff-bonus-menu > button { justify-self: stretch; }

@media (max-width: 1200px) { .salary-dashboard { grid-template-columns: repeat(2,minmax(0,1fr)); }.salary-config-workspace { grid-template-columns: 240px minmax(0,1fr); }.salary-rate-bonus-grid { grid-template-columns: 1fr; }.salary-payroll-row { grid-template-columns: minmax(180px,1fr) repeat(3,100px) auto; }.salary-payroll-tags { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 760px) { .salary-dashboard { grid-template-columns: 1fr; }.salary-config-workspace { display: block; }.salary-rank-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }.salary-rank-nav { display: flex; overflow-x: auto; }.salary-rank-nav-item { flex: 0 0 210px; }.salary-rate-panel > header,.salary-rate-actions { align-items: stretch; flex-direction: column; }.salary-rate-maximum { text-align: left; }.salary-rate-bonus-grid > label { align-items: stretch; flex-direction: column; }.salary-rate-bonus-grid > label > div { width: 100%; flex-basis: auto; }.salary-payroll-row { grid-template-columns: 1fr 1fr; }.salary-payroll-row .salary-person,.salary-payroll-tags { grid-column: 1 / -1; }.salary-payroll-row > .btn { grid-column: 1 / -1; }.staff-bonus-menu { width: 250px; }.staff-bonus-menu > div { grid-template-columns: 1fr; } }

/* Administration directory and staff profile dialog */
.staff-add-form-new { grid-template-columns: repeat(4,minmax(0,1fr)); }.staff-add-form-new .btn { align-self: end; }
.staff-directory-shell { overflow-x: auto; border: 1px solid rgba(131,228,255,.14); border-radius: 19px; background: linear-gradient(145deg,rgba(13,23,41,.98),rgba(7,13,25,.97)); box-shadow: var(--shadow-soft); }
.staff-directory-table { width: 100%; min-width: 1120px; border-collapse: collapse; }.staff-directory-table th { padding: 13px 14px; border-bottom: 1px solid var(--line); color: #7287a6; background: rgba(3,8,17,.34); font-size: .59rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }.staff-directory-table td { padding: 13px 14px; border-bottom: 1px solid rgba(151,177,220,.09); color: #c7d5e9; font-size: .7rem; vertical-align: middle; }.staff-directory-table tbody tr:last-child td { border-bottom: 0; }
.staff-directory-row { cursor: pointer; outline: none; transition: background .18s ease,transform .18s ease; }.staff-directory-row:hover,.staff-directory-row:focus-visible { background: rgba(75,141,255,.075); }.staff-directory-row:focus-visible { box-shadow: inset 3px 0 #76b8ff; }.staff-person-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }.staff-person-cell img { width: 39px; height: 39px; border: 1px solid rgba(131,228,255,.18); border-radius: 11px; object-fit: cover; }.staff-person-cell span,.staff-person-cell strong,.staff-person-cell small { display: block; }.staff-person-cell strong { color: #fff; font-size: .73rem; }.staff-person-cell small { margin-top: 3px; color: #667d9c; font-size: .56rem; }.staff-directory-table code { color: #9eb8da; font-size: .62rem; white-space: nowrap; }
.discipline-count { display: inline-grid; min-width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-weight: 900; }.discipline-count.warning { color: #ffd27f; border-color: rgba(255,195,92,.25); background: rgba(255,195,92,.07); }.discipline-count.reprimand { color: #ff91a4; border-color: rgba(255,102,133,.25); background: rgba(255,102,133,.07); }
.staff-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #aebdd2; white-space: nowrap; }.staff-status i { width: 7px; height: 7px; border-radius: 50%; background: #6f7f96; }.staff-status.active { color: #76e0b7; border-color: rgba(72,211,157,.22); background: rgba(72,211,157,.065); }.staff-status.active i { background: #55d6a3; box-shadow: 0 0 8px rgba(85,214,163,.6); }.staff-status.vacation { color: #ffd180; border-color: rgba(255,193,89,.22); background: rgba(255,193,89,.06); }.staff-status.vacation i { background: #ffc45c; }.staff-status.frozen { color: #91c8ff; border-color: rgba(95,174,255,.23); background: rgba(95,174,255,.065); }.staff-status.frozen i { background: #72b8ff; }
.staff-profile-dialog { width: min(1120px,calc(100% - 30px)); max-width: none; max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 1px solid rgba(131,228,255,.22); border-radius: 22px; color: var(--text); background: #091323; box-shadow: 0 30px 100px rgba(0,0,0,.68); }.staff-profile-dialog::backdrop { background: rgba(2,6,13,.78); backdrop-filter: blur(7px); }.staff-profile-dialog > article { background: radial-gradient(circle at 90% 0,rgba(75,141,255,.14),transparent 34%),linear-gradient(145deg,#101c31,#07101e 72%); }.staff-dialog-head { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(9,19,35,.94); backdrop-filter: blur(14px); }.staff-dialog-person { display: flex; align-items: center; gap: 14px; }.staff-dialog-person img { width: 60px; height: 60px; border: 2px solid rgba(131,228,255,.24); border-radius: 17px; object-fit: cover; }.staff-dialog-person h2 { margin: 3px 0; font-size: 1.35rem; }.staff-dialog-person p { margin: 0; color: var(--muted); font-size: .68rem; }.staff-dialog-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #aebdd3; background: rgba(255,255,255,.035); font-size: 1.45rem; cursor: pointer; }.staff-dialog-close:hover { color: #fff; border-color: rgba(131,228,255,.32); }
.staff-dialog-body { display: grid; gap: 16px; padding: 20px 22px 24px; }.staff-profile-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.staff-profile-stats > div { padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }.staff-profile-stats span,.staff-profile-stats strong { display: block; }.staff-profile-stats span { color: var(--muted); font-size: .6rem; text-transform: uppercase; }.staff-profile-stats strong { margin-top: 7px; color: #fff; font-size: 1.1rem; }.reprimand-text { color: #ff91a4 !important; }.warning-text { color: #ffd27f !important; }
.staff-norm-card { padding: 15px 17px; border: 1px solid rgba(93,214,168,.18); border-radius: 15px; background: rgba(49,172,128,.055); }.staff-norm-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.staff-norm-head h3 { margin: 4px 0 0; }.staff-norm-head > strong { color: #72e2b8; font-size: 1.25rem; }.staff-norm-progress { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }.staff-norm-progress i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#43bf91,#7ce7c0); box-shadow: 0 0 12px rgba(83,216,167,.4); }
.staff-detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }.staff-detail-grid > div { display: grid; min-width: 0; gap: 5px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(3,8,17,.28); }.staff-detail-grid span { color: var(--muted); font-size: .59rem; text-transform: uppercase; }.staff-detail-grid code,.staff-detail-grid strong { overflow-wrap: anywhere; color: #d8e8ff; font-size: .68rem; }.staff-detail-grid button { justify-self: start; padding: 0; border: 0; color: var(--blue-2); background: none; font-size: .58rem; cursor: pointer; }
.staff-dialog-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; align-items: start; }.staff-dialog-section { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(7,14,27,.6); }.staff-section-title { display: flex; gap: 11px; padding: 15px 16px; border-bottom: 1px solid var(--line); }.staff-section-title > span { display: grid; flex: 0 0 32px; height: 32px; place-items: center; border: 1px solid rgba(131,228,255,.2); border-radius: 9px; color: var(--blue-2); font-size: .62rem; }.staff-section-title h3,.staff-section-title p { margin: 0; }.staff-section-title p { margin-top: 3px; color: var(--muted); font-size: .61rem; }.staff-profile-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 15px 16px; }.staff-profile-form label,.discipline-create-form label { display: grid; gap: 5px; color: var(--muted); font-size: .61rem; font-weight: 800; }.staff-profile-form input,.staff-profile-form select,.discipline-create-form input,.discipline-create-form select,.discipline-create-form textarea { min-height: 41px; padding: 8px 10px; }.staff-profile-form .btn { grid-column: 1 / -1; }.discipline-create-form { display: grid; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line); }.discipline-create-form textarea { min-height: 86px; }.discipline-history { display: grid; gap: 8px; max-height: 420px; padding: 14px 16px; overflow-y: auto; }.discipline-history article { padding: 11px 12px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 11px; background: rgba(255,255,255,.022); }.discipline-history article.warning { border-left-color: #ffc55f; }.discipline-history article.reprimand { border-left-color: #ff718c; }.discipline-history article.legacy { border-left-color: #7186a4; }.discipline-history article span { color: #fff; font-size: .64rem; font-weight: 900; }.discipline-history article p { margin: 6px 0; color: #b9c9df; font-size: .66rem; line-height: 1.55; }.discipline-history article small { color: #7186a4; font-size: .56rem; }.staff-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }.staff-dialog-footer form { margin-left: auto; }
@media (min-width: 1280px) { .staff-directory-shell { overflow-x: visible; }.staff-directory-table { min-width: 100%; } }
@media (max-width: 860px) { .staff-add-form-new { grid-template-columns: 1fr 1fr; }.staff-dialog-columns { grid-template-columns: 1fr; }.staff-detail-grid,.staff-profile-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .staff-add-form-new,.staff-profile-form,.staff-detail-grid,.staff-profile-stats { grid-template-columns: 1fr; }.staff-dialog-head,.staff-dialog-footer { align-items: stretch; flex-direction: column; }.staff-dialog-close { position: absolute; top: 14px; right: 14px; }.staff-dialog-person { padding-right: 44px; }.staff-dialog-footer form,.staff-dialog-footer .btn { width: 100%; margin: 0; } }

/* Staff table v2: strict geometry also protects the layout before images finish loading. */
.staff-directory-shell { margin-top: 18px; border-color: rgba(131,228,255,.2); box-shadow: 0 20px 55px rgba(0,0,0,.25); }
.staff-directory-table { table-layout: auto; }.staff-directory-table th:first-child { width: 22%; }.staff-directory-table th:nth-child(2) { width: 14%; }.staff-directory-row { height: 68px; transition: background .18s ease,box-shadow .18s ease; }.staff-directory-row:nth-child(even) { background: rgba(255,255,255,.012); }.staff-directory-row:hover,.staff-directory-row:focus-visible { background: linear-gradient(90deg,rgba(75,141,255,.12),rgba(75,141,255,.035)); box-shadow: inset 3px 0 #76b8ff; }
.staff-person-cell img { display: block; width: 39px !important; min-width: 39px !important; max-width: 39px !important; height: 39px !important; min-height: 39px !important; max-height: 39px !important; object-fit: cover; }
.staff-dialog-person img { display: block; width: 60px !important; min-width: 60px !important; max-width: 60px !important; height: 60px !important; min-height: 60px !important; max-height: 60px !important; object-fit: cover; }
.staff-salary-summary { overflow: hidden; border: 1px solid rgba(89,216,171,.2); border-radius: 16px; background: linear-gradient(120deg,rgba(35,122,95,.11),rgba(8,18,29,.72)); }.staff-salary-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }.staff-salary-totals > div { padding: 15px 17px; border-right: 1px solid var(--line); }.staff-salary-totals > div:last-child { border-right: 0; }.staff-salary-totals span,.staff-salary-totals strong { display: block; }.staff-salary-totals span { color: var(--muted); font-size: .61rem; text-transform: uppercase; }.staff-salary-totals span b { color: #72e2b8; }.staff-salary-totals strong { margin-top: 7px; color: #ddecff; font-size: 1.05rem; }.staff-salary-totals .total { background: rgba(54,194,143,.065); }.staff-salary-totals .total strong { color: #72e2b8; font-size: 1.25rem; }
.staff-salary-bonuses { padding: 12px 16px; border-top: 1px solid var(--line); }.staff-salary-bonus-tags { display: flex; flex-wrap: wrap; gap: 6px; }.staff-salary-bonus-tags > span { padding: 6px 8px; border: 1px solid rgba(89,216,171,.2); border-radius: 8px; color: #b9d7cc; background: rgba(57,190,143,.06); font-size: .59rem; }.staff-salary-bonus-tags > span b { color: #72e2b8; }.staff-salary-bonus-tags > small { color: var(--muted); }.staff-salary-bonuses details { margin-top: 10px; }.staff-salary-bonuses summary { color: var(--blue-2); font-size: .64rem; font-weight: 800; cursor: pointer; }.staff-salary-bonuses form { display: grid; gap: 10px; margin-top: 10px; }.staff-salary-bonuses form > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }.staff-salary-bonuses label { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.022); cursor: pointer; }.staff-salary-bonuses label:has(input:checked) { border-color: rgba(89,216,171,.36); background: rgba(57,190,143,.08); }.staff-salary-bonuses label input { width: auto; min-height: 0; }.staff-salary-bonuses label span,.staff-salary-bonuses label b,.staff-salary-bonuses label small { display: block; }.staff-salary-bonuses label b { color: #c7d7ea; font-size: .58rem; }.staff-salary-bonuses label small { margin-top: 2px; color: #72e2b8; font-size: .54rem; }
@media (max-width: 860px) { .staff-salary-bonuses form > div { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .staff-salary-totals,.staff-salary-bonuses form > div { grid-template-columns: 1fr; }.staff-salary-totals > div { border-right: 0; border-bottom: 1px solid var(--line); }.staff-salary-totals > div:last-child { border-bottom: 0; } }

/* Readability pass: staff table and cards */
.staff-directory-table th { font-size: .72rem; line-height: 1.35; }
.staff-directory-table td { font-size: .84rem; line-height: 1.45; }
.staff-person-cell strong { font-size: .9rem; }.staff-person-cell small { font-size: .7rem; }.staff-directory-table code { font-size: .76rem; }
.staff-profile-dialog { font-size: 16px; }.staff-dialog-person p { font-size: .82rem; }.staff-profile-stats span { font-size: .72rem; }.staff-profile-stats strong { font-size: 1.18rem; }
.staff-detail-grid span { font-size: .7rem; }.staff-detail-grid code,.staff-detail-grid strong { font-size: .82rem; }.staff-detail-grid button { font-size: .72rem; }
.staff-section-title > span { font-size: .72rem; }.staff-section-title p { font-size: .76rem; }.staff-profile-form label,.discipline-create-form label { font-size: .76rem; }
.discipline-history article span { font-size: .8rem; }.discipline-history article p { font-size: .8rem; }.discipline-history article small { display: block; margin-top: 4px; font-size: .69rem; }
.discipline-history article.revoked { opacity: .67; border-left-color: #7186a4; }.discipline-history article.revoked > span { text-decoration: line-through; }
.discipline-revoke-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }.discipline-revoke-form input { min-height: 36px; font-size: .76rem; }
.staff-resync-form { padding: 0 16px 16px; }.staff-resync-form .btn { width: 100%; }
.staff-norm-card p { margin: 10px 0 0; color: var(--soft); font-size: .8rem; }.staff-norm-card.norm-failed { border-color: rgba(255,113,140,.2); background: rgba(191,65,91,.06); }.staff-norm-card.norm-failed .staff-norm-progress i { background: linear-gradient(90deg,#ff718c,#ffc55f); }.staff-norm-card.norm-none { border-color: var(--line); background: rgba(255,255,255,.025); }

/* Salary norm configuration */
.salary-norm-settings { display: grid; gap: 14px; margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(75,141,255,.045); }.salary-norm-settings legend { padding: 0 7px; color: #fff; font-size: .9rem; font-weight: 900; }.salary-norm-settings > .switch { justify-self: start; color: var(--soft); font-size: .82rem; }.salary-norm-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.salary-norm-grid label { display: grid; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 800; }.salary-norm-grid input { min-height: 46px; }.salary-norm-settings > small { color: var(--muted); font-size: .72rem; }

/* Staff reports */
.report-page,.report-review-page { padding-top: 28px; padding-bottom: 60px; }.report-layout { display: grid; grid-template-columns: minmax(300px,390px) minmax(0,1fr); gap: 18px; align-items: start; }.report-submit { position: sticky; top: 92px; }.report-submit h2 { margin-top: 0; }.report-submit label { font-size: .82rem; }.report-upload small { color: var(--muted); }.report-history,.report-review-list { display: grid; gap: 14px; }.report-server > header,.report-review-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }.report-server h2,.report-review-card h2 { margin: 5px 0 0; }.norm-state,.report-status { display: inline-flex; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 900; }.norm-state.done,.report-status.approved { color: #72e2b8; border-color: rgba(89,216,171,.28); background: rgba(57,190,143,.08); }.norm-state.failed,.report-status.rejected { color: #ff91a4; border-color: rgba(255,113,140,.28); background: rgba(191,65,91,.08); }.norm-state.none { color: #9eb0c8; }.report-status.pending { color: #ffd27f; border-color: rgba(255,197,95,.28); background: rgba(255,197,95,.07); }.report-norm-progress { margin-top: 16px; }.report-norm-progress > div:not(.staff-norm-progress) { display: flex; justify-content: space-between; margin-top: 7px; color: var(--soft); font-size: .82rem; }.report-norm-progress > small { display: block; margin-top: 9px; color: var(--muted); }.report-list { display: grid; gap: 8px; margin-top: 17px; }.report-list article { padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }.report-list article > div { display: flex; align-items: center; gap: 9px; }.report-list article p { margin: 8px 0 0; color: var(--soft); font-size: .82rem; }.report-list article small { display: block; margin-top: 7px; color: var(--muted); }.report-filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; }.report-filter-tabs a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--soft); }.report-filter-tabs a.active { color: #fff; border-color: rgba(131,228,255,.4); background: rgba(75,141,255,.12); }.report-review-card { padding: 20px; }.report-review-card header p { margin: 5px 0 0; color: var(--muted); }.report-metrics { display: flex; gap: 8px; }.report-metrics b { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: #dceaff; }.report-comment { color: var(--soft); line-height: 1.65; }.report-screenshots { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 9px; margin-top: 14px; }.report-screenshots a { overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: 10px; }.report-screenshots img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }.report-screenshots a:hover img { transform: scale(1.04); }.report-screenshots > span { color: var(--muted); }.report-review-form { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; margin-top: 16px; }.report-review-form textarea { min-height: 44px; }.review-note { padding: 11px 13px; border-radius: 10px; color: var(--soft); background: rgba(255,255,255,.025); }

/* Thread permissions: restore the Node.js card interface and readable controls */
.permission-block-copy > span { font-size: .84rem; }.permission-block-copy h2 { font-size: 1.3rem; }.permission-block-copy p { font-size: .9rem; line-height: 1.55; }.policy-option span { min-height: 58px; font-size: .88rem; }.permission-role-picker > strong { font-size: .9rem; }.role-choice { min-height: 42px; font-size: .84rem; }.visibility-permission-block .visibility-fieldset { margin-top: 17px; padding: 16px; }.visibility-permission-block .visibility-fieldset legend { font-size: .82rem; }.visibility-permission-block .visibility-audiences label,.visibility-permission-block .visibility-roles label { min-height: 42px; padding: 9px 11px; font-size: .84rem; }.visibility-permission-block .visibility-fieldset > small,.visibility-permission-block .visibility-roles summary { font-size: .76rem; }

@media (max-width: 860px) { .report-layout { grid-template-columns: 1fr; }.report-submit { position: static; }.report-review-form { grid-template-columns: 1fr 1fr; }.report-review-form textarea { grid-column: 1 / -1; }.salary-norm-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .discipline-revoke-form,.report-review-form { grid-template-columns: 1fr; }.report-review-card > header,.report-server > header { flex-direction: column; }.report-metrics { flex-wrap: wrap; } }

.thread-layout { display: grid; gap: 0; padding: 0 0 65px; }.thread-layout > .post:first-child { border-radius: 18px 18px 0 0; }.thread-layout > .post + .post { border-top: 1px solid rgba(145,205,255,.09); }.thread-layout > .post:last-of-type { border-radius: 0 0 18px 18px; border-bottom: 1px solid var(--line); }.reply-form { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,rgba(16,25,44,.92),rgba(9,15,29,.88)); }.reply-form h2 { margin-top: 0; }.moderation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }.moderation-actions h3 { width: 100%; margin: 0 0 5px; }.moderation-actions form { display: flex; gap: 7px; }.post-ranks .role-badge { font-size: .72rem; }

/* Lightweight staff dialog: avoid repainting and blurring the animated table behind it. */
.staff-profile-dialog::backdrop { background: rgba(2,6,13,.88) !important; backdrop-filter: none !important; }
.staff-profile-dialog { box-shadow: 0 22px 64px rgba(0,0,0,.58); }
.staff-profile-dialog > article { background: #0a1425; }
.staff-dialog-head { background: #0b1628; backdrop-filter: none !important; }
.staff-dialog-open .motion-item { transition: none !important; animation: none !important; }
.staff-dialog-open .staff-directory-row { transition: none !important; }

.role-table-toggle { display: flex !important; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(75,141,255,.045); cursor: pointer; }.role-table-toggle input { width: 18px; min-width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--blue); }.role-table-toggle span,.role-table-toggle b,.role-table-toggle small { display: block; }.role-table-toggle b { color: #dce9fb; font-size: .78rem; }.role-table-toggle small { margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1.45; }.role-table-toggle-wide { max-width: 720px; }

/* Unified administration workspace: console, bans, reports and audit log */
.admin-workspace-page { padding-top: 38px; background: radial-gradient(circle at 85% 0,rgba(75,141,255,.08),transparent 28%); }
.admin-workspace-heading .breadcrumb { margin-bottom: 14px; }
.admin-workspace-heading .admin-hero { position: relative; overflow: hidden; margin-bottom: 4px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 21px; background: radial-gradient(circle at 92% 0,rgba(117,216,255,.13),transparent 34%),linear-gradient(145deg,rgba(16,29,51,.98),rgba(8,15,29,.96)); box-shadow: 0 24px 65px rgba(0,0,0,.24); }
.admin-workspace-heading .admin-hero::after { position: absolute; right: -45px; bottom: -75px; width: 230px; height: 230px; border: 1px solid rgba(131,228,255,.08); border-radius: 50%; content: ''; }
.admin-workspace-heading .admin-hero h1 { margin: 8px 0 7px; font-size: clamp(2.15rem,4.5vw,3.7rem); }
.admin-workspace-heading .admin-hero p { margin: 0; max-width: 780px; }
.admin-workspace-heading .admin-hero > * { position: relative; z-index: 1; }
.admin-workspace-page > .admin-tabs { width: min(1780px,calc(100% - 36px)); margin: 14px auto 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,14,27,.72); }
.admin-workspace-page > .admin-tabs a { min-height: 42px; display: inline-flex; align-items: center; }
.admin-workspace-content { display: grid; gap: 18px; padding-top: 20px; }
.admin-tool-card,.admin-create-disclosure { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,rgba(16,27,47,.96),rgba(8,15,28,.95)); box-shadow: 0 18px 48px rgba(0,0,0,.2); }
.admin-tool-card-head { display: flex; align-items: center; gap: 13px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.admin-tool-card-head > div { min-width: 0; flex: 1; }.admin-tool-card-head h2,.admin-tool-card-head p { margin: 0; }.admin-tool-card-head h2 { font-size: 1.05rem; }.admin-tool-card-head p { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.admin-tool-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(131,228,255,.18); border-radius: 11px; color: #9de9ff; background: rgba(75,141,255,.1); font-size: .92rem; font-weight: 900; }.admin-tool-icon.danger { color: #ff9aaa; border-color: rgba(255,113,140,.2); background: rgba(191,65,91,.09); }
.admin-record-count { padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .67rem; white-space: nowrap; }
.admin-table-card .logs-table-wrapper { overflow-x: auto; }.admin-table-card .admin-table { min-width: 890px; }.admin-table-card .admin-table th { padding: 12px 14px; font-size: .69rem; text-transform: uppercase; letter-spacing: .055em; }.admin-table-card .admin-table td { padding: 13px 14px; font-size: .8rem; vertical-align: middle; }.admin-table-card .admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-date-cell { color: var(--muted); font-size: .71rem !important; white-space: nowrap; }.command-code { display: inline-block; max-width: 420px; padding: 6px 8px; border: 1px solid rgba(131,228,255,.12); border-radius: 8px; color: #a9eaff !important; background: rgba(2,8,16,.5); overflow-wrap: anywhere; }.command-result { max-width: 430px; color: #aebed3; overflow-wrap: anywhere; }
.console-command-form { display: grid; grid-template-columns: minmax(210px,.65fr) minmax(320px,2fr) auto; gap: 11px; align-items: end; padding: 18px 19px 20px; }.console-command-form label,.admin-ban-form label { display: grid; gap: 6px; color: var(--muted); font-size: .71rem; font-weight: 800; }.console-command-form input,.console-command-form select,.admin-ban-form input,.admin-ban-form select { min-height: 46px; }.console-command-form .btn { min-height: 46px; }
.queue-status,.scope-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #aabbd1; background: rgba(255,255,255,.025); font-size: .68rem; font-weight: 800; white-space: nowrap; }.queue-status i { width: 7px; height: 7px; border-radius: 50%; background: #8392a8; }.queue-status.completed { color: #72e2b8; border-color: rgba(89,216,171,.22); background: rgba(57,190,143,.055); }.queue-status.completed i { background: #55d6a3; }.queue-status.claimed { color: #8edcff; border-color: rgba(117,216,255,.22); }.queue-status.claimed i { background: #75d8ff; box-shadow: 0 0 8px rgba(117,216,255,.65); }.queue-status.queued { color: #ffd27f; border-color: rgba(255,197,95,.2); }.queue-status.queued i { background: #ffc55f; }.queue-status.failed { color: #ff91a4; border-color: rgba(255,113,140,.22); background: rgba(191,65,91,.055); }.queue-status.failed i { background: #ff718c; }
.admin-create-disclosure > summary { display: flex; align-items: center; gap: 13px; padding: 17px 19px; cursor: pointer; list-style: none; }.admin-create-disclosure > summary::-webkit-details-marker { display: none; }.admin-create-disclosure > summary > div { flex: 1; }.admin-create-disclosure > summary strong,.admin-create-disclosure > summary small { display: block; }.admin-create-disclosure > summary strong { color: #fff; }.admin-create-disclosure > summary small { margin-top: 3px; color: var(--muted); font-size: .71rem; }.admin-create-disclosure > summary > b { color: var(--blue-2); font-size: .68rem; }.admin-create-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.admin-ban-form { display: grid; grid-template-columns: 1.2fr 1fr 1.8fr auto auto auto; gap: 10px; align-items: end; padding: 18px 19px 20px; }.admin-ban-temporary { min-height: 46px; align-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; }.admin-ban-form > .btn { min-height: 46px; }.scope-badge.global { color: #ff9aaa; border-color: rgba(255,113,140,.2); }.scope-badge.server { color: #8edcff; border-color: rgba(117,216,255,.2); }.ban-reason-cell { min-width: 220px; max-width: 430px; }
.admin-filter-disclosure { margin: 0; border-radius: 16px; background: linear-gradient(145deg,rgba(16,27,47,.92),rgba(8,15,28,.92)); }.admin-filter-title { display: flex; align-items: center; gap: 11px; }.admin-filter-title > i { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--blue-2); font-style: normal; }.admin-filter-title span,.admin-filter-title strong,.admin-filter-title small { display: block; }.admin-filter-title small { margin-top: 2px; color: var(--muted); font-size: .67rem; font-weight: 600; }
.audit-table .action-badge { white-space: nowrap; }.log-person-link { display: grid; gap: 2px; color: #dceaff; font-weight: 850; text-decoration: none; }.log-person-link > span { color: #6f91bc; font-size: .59rem; font-weight: 700; }.log-person-link:hover { color: #8ee8ff; }.log-person-link.target { color: #9ddcff; }.console-actor { color: #aab9cc; font-weight: 800; }.log-details-cell { min-width: 190px; max-width: 440px; color: var(--soft); overflow-wrap: anywhere; }
.admin-status-tabs { margin: 0; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,14,27,.64); }.admin-status-tabs a { min-height: 39px; display: inline-flex; align-items: center; }.report-person-link { color: #f1f7ff; text-decoration: none; }.report-person-link:hover { color: #8ee8ff; }.admin-workspace-content .report-review-card { padding: 20px; }.admin-workspace-content .report-metrics b { display: grid; min-width: 92px; gap: 2px; text-align: center; }.admin-workspace-content .report-metrics b span { color: var(--muted); font-size: .57rem; text-transform: uppercase; letter-spacing: .07em; }
@media (max-width: 1060px) { .admin-ban-form { grid-template-columns: repeat(2,minmax(0,1fr)); }.admin-ban-reason { grid-column: 1 / -1; }.console-command-form { grid-template-columns: 1fr 2fr; }.console-command-form .btn { grid-column: 1 / -1; } }
@media (max-width: 680px) { .admin-workspace-heading .admin-hero { align-items: flex-start; flex-direction: column; padding: 22px; }.admin-workspace-heading .admin-hero .page-actions,.admin-workspace-heading .admin-hero .btn { width: 100%; }.admin-workspace-page > .admin-tabs { width: min(100% - 24px,1780px); }.admin-workspace-content { width: min(100% - 24px,1780px); }.console-command-form,.admin-ban-form { grid-template-columns: 1fr; }.admin-ban-reason,.console-command-form .btn { grid-column: auto; }.admin-tool-card-head { align-items: flex-start; }.admin-record-count { display: none; }.admin-create-disclosure > summary > b { display: none; } }
