:root {
  --bg: #1e2124;
  --panel: #26292e;
  --panel-2: #2c3036;
  --line: #35393f;
  --text: #e8eaed;
  --muted: #9aa0a8;
  --blue: #4fa4ff;
  --online: #70a0ff;
  --game: #01854b;
  --studio: #f57630;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-transform: lowercase;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar {
  background: #17191c;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.brand {
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  letter-spacing: .2px;
}

.brand:hover { text-decoration: none; }

.topbar-links { display: flex; gap: 22px; }

.topbar-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.topbar-links a:hover { color: var(--text); text-decoration: none; }

.hero {
  background: linear-gradient(180deg, #22252a 0%, var(--bg) 100%);
  padding: 44px 0 34px;
  text-align: center;
}

.hero h1 {
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: .3px;
}

.hero-sub {
  color: var(--muted);
  max-width: 620px;
  margin: 10px auto 30px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 10px 13px;
}

.stat-num {
  font-family: "Prompt", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 3px;
}

main { padding: 28px 0 10px; }

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

#search {
  flex: 1;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  text-transform: lowercase;
}

#search:focus { border-color: var(--blue); }
#search::placeholder { color: var(--muted); }

.tabs {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.tab {
  background: none;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  text-transform: lowercase;
}

.tab:hover { color: var(--text); }

.tab.active {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.table-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.staff-table { width: 100%; border-collapse: collapse; }

.staff-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--muted);
  background: #22252a;
  border-bottom: 1px solid var(--line);
  padding: 11px 16px;
}

.staff-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #2e3238;
  vertical-align: middle;
}

.staff-table tr:last-child td { border-bottom: 0; }
.staff-table tbody tr:hover { background: #2a2e34; }

.user-cell { display: flex; align-items: center; gap: 12px; }

.avatar-wrap { position: relative; flex-shrink: 0; display: block; width: 42px; height: 42px; }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: block;
}

.avatar.is-banned { filter: grayscale(1) brightness(.7); }

.presence-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--panel);
}

.presence-dot.online { background: var(--online); }
.presence-dot.game { background: var(--game); }
.presence-dot.studio { background: var(--studio); }

.user-names { min-width: 0; }

.user-display {
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.admin-badge { width: 16px; height: 16px; flex-shrink: 0; color: #f7f7f8; }
.verified-badge { width: 16px; height: 16px; flex-shrink: 0; }
.plus-badge { width: 15px; height: 15px; flex-shrink: 0; color: #f7f7f8; }
.premium-badge { width: 15px; height: 15px; flex-shrink: 0; color: #f7f7f8; }

.user-handle { color: var(--muted); font-size: 12.5px; }

.role-cell { color: var(--text); font-size: 13.5px; }
.role-note { color: var(--muted); font-size: 12px; }

.profile-link {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 16px;
}

.more {
  display: block;
  width: 100%;
  background: #22252a;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  text-transform: lowercase;
}

.more:hover { background: var(--panel-2); }

.hint {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
  line-height: 1;
}

.hint:hover {
  border-color: var(--text);
  color: var(--text);
}

.hint:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  background: #17191c;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  z-index: 20;
}

.about {
  margin: 34px 0 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
}

.about h2 {
  font-family: "Prompt", sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
}

.about p { color: var(--muted); font-size: 14px; }
.about p + p { margin-top: 8px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 22px 0 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.foot-updated { margin-top: 4px; font-size: 12px; }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .hero h1 { font-size: 27px; }
  .staff-table th:nth-child(2), .staff-table td:nth-child(2) { display: none; }
}
