:root {
  color-scheme: dark;
  --bg: #101113;
  --bg-soft: #141518;
  --panel: #18191d;
  --panel-2: #1d1e22;
  --panel-3: #222329;
  --border: #2a2c32;
  --border-strong: #34363e;
  --text: #f4f4f2;
  --text-soft: #c1c2c6;
  --muted: #85878f;
  --accent: #ff5a47;
  --accent-strong: #e94837;
  --accent-soft: rgba(255, 90, 71, 0.12);
  --amber: #eaa35c;
  --green: #63c18b;
  --blue: #78a8e8;
  --purple: #a18add;
  --danger: #ff6b58;
  --sidebar-width: 264px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  flex: 0 0 auto;
}

::selection {
  background: rgba(255, 90, 71, 0.32);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-frame {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #131417;
}

.brand-row {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
}

.brand,
.auth-brand,
.corner-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 43px;
  place-items: center;
  flex: 0 0 auto;
  background: var(--accent);
  color: #111214;
  clip-path: polygon(50% 0, 100% 16%, 92% 75%, 50% 100%, 8% 75%, 0 16%);
}

.brand-mark::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(17, 18, 20, 0.24);
  content: "";
  clip-path: inherit;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark.large {
  width: 48px;
  height: 54px;
}

.brand-mark.large span {
  font-size: 14px;
}

.brand-copy,
.auth-brand > span:last-child,
.corner-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong,
.auth-brand strong,
.corner-brand strong {
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-copy small,
.auth-brand small,
.corner-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 28px 16px;
}

.nav-label {
  margin: 0 12px 10px;
  color: #6f7179;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 9px;
  color: #9b9da4;
  font-size: 14px;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-item:hover {
  background: #1b1c20;
  color: var(--text);
}

.nav-item:active {
  transform: translateY(1px);
}

.nav-item.active {
  background: var(--accent-soft);
  color: #ff7564;
}

.nav-item.active::before {
  position: absolute;
  left: -16px;
  width: 3px;
  height: 24px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  content: "";
}

.nav-icon {
  display: grid;
  width: 22px;
  place-items: center;
}

.sidebar-meta {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #2b2d32;
  border-radius: 9px;
  background: #191a1e;
}

.security-note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(99, 193, 139, 0.1);
  color: var(--green);
}

.security-note div,
.sidebar-user-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.security-note strong,
.sidebar-user-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-note small,
.sidebar-user-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px;
}

.discord-avatar,
.avatar-fallback {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--panel-3);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.icon-button:hover {
  border-color: var(--border);
  background: var(--panel-2);
  color: var(--text);
}

.sidebar-close,
.mobile-menu,
.nav-scrim {
  display: none;
}

.main-area {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  height: 82px;
  align-items: center;
  gap: 18px;
  padding: 0 36px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 17, 19, 0.94);
  backdrop-filter: blur(16px);
}

.global-search {
  position: relative;
  display: flex;
  width: min(100%, 470px);
  align-items: center;
}

.global-search input,
.filter-search input,
.hero-search input {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  background: #151619;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.global-search input {
  height: 43px;
  padding: 0 58px 0 42px;
  border-radius: 9px;
}

.global-search input::placeholder,
.filter-search input::placeholder,
.hero-search input::placeholder {
  color: #70727a;
}

.global-search input:focus,
.filter-search input:focus,
.hero-search input:focus,
.select-wrap select:focus {
  border-color: rgba(255, 90, 71, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 90, 71, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: #777981;
}

.global-search kbd {
  position: absolute;
  right: 10px;
  padding: 3px 7px;
  border: 1px solid #303239;
  border-bottom-color: #26282e;
  border-radius: 5px;
  background: #1e2024;
  color: #777982;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #85878e;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-status span,
.live-pill i,
.stat-active i,
.success-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(99, 193, 139, 0.09);
}

.page-wrap {
  width: min(100%, 1540px);
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 38px 40px 24px;
}

.page-heading {
  margin-bottom: 28px;
}

.heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(17, 18, 20, 0.64);
}

.page-heading h1,
.player-hero h1,
.detail-heading h1 {
  margin: 0;
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.page-heading > div > p:last-child,
.page-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.heading-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.heading-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-pill {
  padding: 6px 9px;
  border: 1px solid rgba(99, 193, 139, 0.18);
  border-radius: 99px;
  background: rgba(99, 193, 139, 0.06);
  color: #8dd7aa;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.live-pill i {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.heading-type-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.type-ban { color: #ff6f5d; }
.type-mute { color: #8da9d5; }
.type-warning { color: #e8ac66; }
.type-kick { color: #9c91c7; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 202px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.stat-card::after {
  position: absolute;
  right: -32px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.05;
  content: "";
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: #1b1c20;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.stat-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.stat-arrow {
  color: #5e6067;
}

.stat-card > strong {
  display: block;
  color: var(--text);
  font-size: 31px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card h2 {
  margin: 7px 0 1px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 680;
}

.stat-card p {
  margin: 0;
  color: #70727a;
  font-size: 11px;
}

.stat-active {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  color: #8e9198;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-active i {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.stat-active.neutral {
  color: #71737b;
}

.dashboard-grid,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.panel-header .eyebrow {
  margin-bottom: 5px;
}

.panel-header h2,
.access-panel h2,
.detail-player h2,
.technical-panel h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.panel-count {
  color: #7c7e85;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.data-table.compact {
  min-width: 760px;
}

.data-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #6f7178;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 22px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 20px;
}

.data-table td {
  max-width: 280px;
  padding: 13px 16px;
  border-bottom: 1px solid #24262b;
  color: #afb0b5;
  font-size: 12px;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background 130ms ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

.player-cell {
  display: flex;
  min-width: 158px;
  align-items: center;
  gap: 10px;
}

.player-cell img {
  width: 34px;
  height: 34px;
  border: 1px solid #34363c;
  border-radius: 7px;
  background: #25262b;
  image-rendering: pixelated;
}

.player-cell span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.player-cell strong {
  max-width: 145px;
  overflow: hidden;
  color: #e8e8e6;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-cell small {
  margin-top: 2px;
  color: #666870;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.type-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.type-badge {
  min-width: 58px;
  padding: 6px 9px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.025);
}

.type-badge.ban { color: #e97869; }
.type-badge.mute { color: #86a2d0; }
.type-badge.warning { color: #daa15e; }
.type-badge.kick { color: #9689c4; }

.status-pill {
  padding: 6px 9px;
  border: 1px solid transparent;
}

.status-pill.success {
  border-color: rgba(99, 193, 139, 0.18);
  background: rgba(99, 193, 139, 0.09);
  color: #82d1a2;
}

.status-pill.danger {
  border-color: rgba(255, 90, 71, 0.2);
  background: rgba(255, 90, 71, 0.1);
  color: #ff7867;
}

.status-pill.muted,
.status-pill.neutral {
  border-color: #31333a;
  background: #222329;
  color: #8a8c94;
}

.status-pill.large {
  padding: 8px 12px;
  font-size: 10px;
}

.reason-cell {
  overflow: hidden;
  color: #b9bac0 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-cell,
.staff-name {
  color: #85878e;
  white-space: nowrap;
}

.row-link {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #767880;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.row-link:hover {
  border-color: rgba(255, 90, 71, 0.42);
  background: var(--accent-soft);
  color: #ff7766;
}

.access-panel {
  position: relative;
  overflow: hidden;
  padding: 27px 24px 22px;
}

.access-panel::after {
  position: absolute;
  top: -65px;
  right: -65px;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(99, 193, 139, 0.1);
  border-radius: 50%;
  content: "";
}

.access-orbit {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 193, 139, 0.22);
  border-radius: 50%;
  background: rgba(99, 193, 139, 0.08);
  color: var(--green);
}

.access-panel > p:not(.eyebrow) {
  margin: 9px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.access-list,
.detail-grid,
.technical-list {
  margin: 0;
}

.access-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid #292b30;
}

.access-list dt,
.detail-grid dt,
.technical-list dt {
  color: #74767e;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.access-list dd {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #c5c6c9;
  font-size: 11px;
  font-weight: 600;
}

.success-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.filter-panel {
  margin-bottom: 16px;
  padding: 15px;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-search {
  position: relative;
  display: flex;
  min-width: 250px;
  flex: 1;
  align-items: center;
}

.filter-search > svg {
  position: absolute;
  left: 13px;
  color: #75777f;
}

.filter-search input {
  height: 42px;
  padding: 0 14px 0 40px;
  border-radius: 8px;
}

.select-wrap select {
  height: 42px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: #151619;
  color: #b8b9bd;
  cursor: pointer;
}

.primary-button,
.secondary-button,
.discord-button,
.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  font-weight: 680;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, color 150ms ease;
}

.primary-button {
  min-height: 42px;
  padding: 0 18px;
  background: var(--accent);
  color: #131416;
  font-size: 12px;
}

.primary-button:hover {
  background: #ff6b59;
}

.primary-button:active,
.secondary-button:active,
.discord-button:active,
.page-button:active {
  transform: translateY(1px);
}

.clear-filter {
  padding: 8px;
  color: #81838a;
  font-size: 11px;
}

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

.table-panel {
  overflow: hidden;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: #797b82;
  font-size: 11px;
}

.pagination strong {
  color: var(--text-soft);
}

.page-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #1a1b1f;
  color: #b0b1b6;
  font-size: 11px;
}

.page-button:hover:not(.disabled) {
  border-color: var(--border-strong);
  background: #202126;
  color: var(--text);
}

.page-button.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.empty-state {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  color: #686a72;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1b1c20;
}

.empty-state h3 {
  margin: 0;
  color: #c3c4c8;
  font-size: 15px;
}

.empty-state p {
  margin: 6px 0 0;
  color: #73757d;
  font-size: 11px;
}

.player-search-panel {
  padding: 18px;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-search > svg {
  position: absolute;
  left: 17px;
  color: #767880;
}

.hero-search input {
  height: 55px;
  padding: 0 16px 0 51px;
  border-radius: 9px;
  font-size: 15px;
}

.hero-search .primary-button {
  min-height: 55px;
  padding: 0 25px;
}

.search-results-panel {
  overflow: hidden;
  margin-top: 18px;
}

.player-result-list {
  display: grid;
}

.player-result {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 140ms ease;
}

.player-result:last-child {
  border-bottom: 0;
}

.player-result:hover {
  background: rgba(255, 255, 255, 0.02);
}

.player-result img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.player-result > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.player-result strong {
  color: #e4e4e3;
  font-size: 13px;
}

.player-result small {
  margin-top: 3px;
  overflow: hidden;
  color: #70727a;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
}

.player-result time {
  color: #777981;
  font-size: 10px;
}

.player-result > svg {
  color: #666870;
}

.player-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 24px 26px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.player-hero::after {
  position: absolute;
  top: -90px;
  right: -40px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 90, 71, 0.08);
  border-radius: 50%;
  content: "";
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: #8a8c93;
  font-size: 11px;
  font-weight: 620;
}

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

.player-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
}

.player-identity > img {
  width: 92px;
  height: 92px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #24252a;
  image-rendering: pixelated;
}

.uuid-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #777981;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.copy-button {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #1c1d21;
  color: #777981;
  cursor: pointer;
}

.copy-button:hover,
.copy-button.copied {
  border-color: rgba(99, 193, 139, 0.35);
  color: var(--green);
}

.alias-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.alias-row > span {
  margin-right: 4px;
  color: #72747b;
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alias-row i {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #1b1c20;
  color: #989aa1;
  font-size: 10px;
  font-style: normal;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
}

.mini-stat .type-badge {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
}

.mini-stat > div:last-child {
  display: flex;
  flex-direction: column;
}

.mini-stat strong {
  font-size: 19px;
  line-height: 1;
}

.mini-stat small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.detail-heading {
  margin-bottom: 18px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.detail-title-row h1 {
  font-size: 32px;
}

.detail-title-row h1 span {
  color: #74767e;
  font-weight: 500;
}

.detail-title-row > .status-pill {
  margin-left: auto;
}

.detail-type-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 11px;
  background: var(--panel);
}

.detail-main {
  padding: 24px;
}

.detail-player {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.detail-player img {
  width: 70px;
  height: 70px;
  border-radius: 11px;
  image-rendering: pixelated;
}

.detail-player a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: #e26a5a;
  font-size: 10px;
  font-weight: 650;
}

.reason-block {
  margin: 22px 0;
  padding: 18px;
  border-left: 2px solid var(--accent);
  background: #1b1c20;
}

.reason-block span {
  color: #73757d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reason-block p {
  margin: 8px 0 0;
  color: #d3d3d1;
  font-size: 14px;
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.detail-grid > div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-grid dd {
  margin: 7px 0 0;
  overflow: hidden;
  color: #c9c9cc;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.technical-panel {
  align-self: start;
  overflow: hidden;
}

.technical-list > div {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.technical-list dd {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
  color: #b8b9be;
  font-size: 11px;
}

.technical-list code {
  display: block;
  max-width: 210px;
  overflow: hidden;
  color: #a8aab1;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-list .copy-button {
  width: 27px;
  height: 27px;
}

.read-only-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 15px 20px;
  background: rgba(99, 193, 139, 0.045);
  color: #76bb92;
  font-size: 10px;
  font-weight: 650;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #222429;
  color: #5f6168;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Authentication */
.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(390px, 0.92fr) minmax(500px, 1.08fr);
}

.auth-brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 50px 40px;
  background: var(--accent);
  color: #111214;
}

.auth-brand {
  position: relative;
  z-index: 2;
}

.auth-brand .brand-mark {
  background: #111214;
  color: var(--accent);
}

.auth-brand small {
  color: rgba(17, 18, 20, 0.62);
}

.auth-statement {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: auto 0;
}

.auth-statement h1 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.auth-statement > p:last-child {
  max-width: 430px;
  margin: 24px 0 0;
  color: rgba(17, 18, 20, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.auth-footnote {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(17, 18, 20, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-grid {
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(17, 18, 20, 0.11);
  border-radius: 50%;
}

.auth-grid::before,
.auth-grid::after {
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(17, 18, 20, 0.11);
  border-radius: 50%;
  content: "";
}

.auth-grid::after {
  inset: 40%;
}

.auth-form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px;
  background: #111214;
}

.login-card {
  width: min(100%, 430px);
}

.login-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--panel);
  color: var(--accent);
}

.login-card h2 {
  margin: 0;
  font-size: 35px;
  font-weight: 720;
  letter-spacing: -0.045em;
}

.login-intro {
  margin: 13px 0 30px;
  color: #888a91;
  font-size: 13px;
  line-height: 1.7;
}

.discord-button {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  background: #5865f2;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.14);
}

.discord-button:hover {
  background: #6571f4;
}

.discord-button > span:nth-child(2) {
  flex: 1;
  text-align: left;
}

.discord-glyph {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 11px;
  font-weight: 900;
}

.login-steps {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--border);
}

.login-steps > div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.login-steps > div > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #303239;
  border-radius: 7px;
  color: #71737a;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.login-steps p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.login-steps strong {
  color: #c9c9cc;
  font-size: 11px;
}

.login-steps small {
  margin-top: 2px;
  color: #70727a;
  font-size: 9px;
}

.privacy-copy {
  margin: 18px 0 0;
  color: #5f6168;
  font-size: 9px;
  line-height: 1.6;
}

/* Error surfaces */
.not-found-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 40px;
  background: #111214;
}

.corner-brand {
  position: absolute;
  top: 34px;
  left: 38px;
  z-index: 2;
}

.not-found-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  text-align: center;
}

.error-code {
  margin-bottom: -24px;
  color: #1d1e22;
  font-size: clamp(128px, 24vw, 260px);
  font-weight: 850;
  letter-spacing: -0.09em;
  line-height: 0.75;
  user-select: none;
}

.not-found-card h1,
.error-panel h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 730;
  letter-spacing: -0.05em;
}

.not-found-card > p:not(.eyebrow),
.error-panel > p:not(.eyebrow) {
  margin: 14px auto 24px;
  color: #81838a;
  font-size: 13px;
  line-height: 1.7;
}

.secondary-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: #c7c7ca;
  font-size: 11px;
}

.secondary-button:hover {
  border-color: #41434b;
  background: var(--panel-2);
  color: #fff;
}

.not-found-lines {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 780px;
  height: 780px;
  border: 1px solid #1b1c20;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.not-found-lines::before,
.not-found-lines::after {
  position: absolute;
  inset: 18%;
  border: 1px solid #1b1c20;
  border-radius: 50%;
  content: "";
}

.not-found-lines::after {
  inset: 36%;
}

.error-panel {
  max-width: 560px;
  margin: 12vh auto;
  padding: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.error-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 90, 71, 0.2);
  border-radius: 7px;
  background: var(--accent-soft);
  color: #ff7867;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 1180px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 188px;
  }

  .dashboard-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .access-panel,
  .technical-panel {
    width: 100%;
  }

  .access-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 282px;
  }

  .sidebar {
    transform: translateX(-102%);
    box-shadow: var(--shadow);
    transition: transform 200ms ease;
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .nav-open .nav-scrim {
    visibility: visible;
    opacity: 1;
  }

  .sidebar-close,
  .mobile-menu {
    display: inline-grid;
  }

  .main-area {
    margin-left: 0;
  }

  .topbar {
    height: 72px;
    padding: 0 20px;
  }

  .global-search {
    max-width: none;
  }

  .topbar-status {
    display: none;
  }

  .page-wrap {
    min-height: calc(100vh - 72px);
    padding: 30px 24px 20px;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    padding: 28px;
  }
}

@media (max-width: 680px) {
  .global-search kbd {
    display: none;
  }

  .global-search input {
    padding-right: 14px;
  }

  .page-wrap {
    padding: 24px 16px 18px;
  }

  .heading-split {
    align-items: flex-start;
  }

  .heading-meta > span:first-child {
    display: none;
  }

  .page-heading h1,
  .player-hero h1 {
    font-size: 34px;
  }

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

  .stat-card {
    min-height: 172px;
    padding: 16px;
  }

  .stat-card-top {
    margin-bottom: 18px;
  }

  .stat-card > strong {
    font-size: 27px;
  }

  .stat-card p {
    display: none;
  }

  .stat-active {
    margin-top: 14px;
  }

  .filter-form {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .filter-search {
    min-width: 100%;
  }

  .filter-form .primary-button {
    flex: 1;
  }

  .select-wrap select {
    min-width: 150px;
  }

  .panel-header {
    padding: 17px 16px;
  }

  .access-list {
    grid-template-columns: 1fr;
  }

  .hero-search {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search > svg {
    top: 16px;
  }

  .player-result {
    grid-template-columns: 44px minmax(0, 1fr) 20px;
  }

  .player-result time {
    display: none;
  }

  .player-identity {
    align-items: flex-start;
  }

  .player-identity > img {
    width: 72px;
    height: 72px;
  }

  .uuid-line span {
    display: inline-block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .detail-title-row > .status-pill {
    margin-left: 69px;
  }

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

  .pagination > span {
    display: none;
  }

  .pagination {
    justify-content: space-between;
  }

  .footer-row {
    flex-direction: column;
  }

  .not-found-page {
    padding: 24px;
  }

  .corner-brand {
    top: 22px;
    left: 22px;
  }

  .error-code {
    margin-bottom: -5px;
    font-size: 130px;
  }

  .error-panel {
    margin: 8vh auto;
    padding: 34px 22px;
  }
}

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

