:root {
  --bg-1: #070b12;
  --bg-2: #0f1420;
  --bg-3: #171e2d;
  --panel: rgba(17, 22, 32, 0.9);
  --panel-strong: rgba(20, 26, 38, 0.95);
  --panel-soft: rgba(24, 31, 43, 0.85);
  --line: rgba(174, 145, 255, 0.14);
  --line-strong: rgba(185, 161, 255, 0.28);
  --text: #edf1ff;
  --muted: #a8afc8;
  --soft: #dfe5ff;
  --purple: #8d6df8;
  --purple-2: #a877ff;
  --purple-3: #6f5ce8;
  --glow: rgba(146, 112, 255, 0.28);
  --button: rgba(255, 255, 255, 0.03);
  --button-hover: rgba(255, 255, 255, 0.06);
  --success: #68ddaf;
  --warning: #f1c75b;
  --danger: #ff6b7d;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #050a12;
  color: var(--text);
}

body {
  position: relative;
  padding: 0;
  background-color: #050a12;
  background-image: linear-gradient(rgba(4, 8, 16, 0.28), rgba(4, 8, 16, 0.38)), url('./img/background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#root {
  position: relative;
  z-index: 1;
  background: transparent;
}

#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

#root {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-panel {
  width: min(480px, calc(100vw - 48px));
  background: rgba(14, 17, 25, 0.84);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 30px 26px 22px;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.login-logo {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(142, 109, 248, 0.38), rgba(98, 71, 198, 0.82));
  box-shadow: inset 0 0 16px rgba(255,255,255,0.18), 0 0 24px rgba(142, 109, 248, 0.28);
  border: 2px solid rgba(255,255,255,0.14);
}

.login-logo img {
  width: 82px;
  height: 82px;
}

.login-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f1f2ff;
}

.login-subtitle {
  text-align: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-form {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.login-form button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #b77bff, #7d5ef0);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.login-status {
  min-height: 22px;
  font-size: 0.85rem;
  color: #f1d1e9;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(1480px, calc(100vw - 90px));
  min-height: 760px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 14, 21, 0.88);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(13, 17, 25, 0.92);
  border-right: 1px solid var(--line);
  padding: 18px 14px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b07eff, #7c63ff);
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
}

.brand-name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--soft);
  white-space: nowrap;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.nav-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--soft);
  padding: 11px 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-item:hover {
  background: var(--button-hover);
}

.nav-item.active {
  background: rgba(142, 109, 248, 0.18);
  border-color: rgba(142, 109, 248, 0.35);
  color: #f3efff;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #c99dff, #7a62f0);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.user-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(147, 111, 255, 0.18);
  border: 1px solid rgba(173, 147, 255, 0.28);
  color: #d9c9ff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.user-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.logout-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--soft);
  text-align: left;
  padding: 8px 4px;
}

.main-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.98), rgba(13, 17, 26, 0.95));
  padding: 16px 18px 18px;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 14px;
  min-height: 68px;
  flex-shrink: 0;
}

.main-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  font-weight: 700;
  color: var(--soft);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.account-recovery-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 18px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 28, 34, 0.96), rgba(12, 15, 19, 0.98));
}

.account-recovery-lookup,
.account-recovery-change {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) minmax(150px, 0.7fr);
  align-items: center;
  gap: 12px;
}

.account-recovery-lookup label,
.account-recovery-change label {
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.account-recovery-lookup input,
.account-recovery-change input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: #171a1f;
}

.account-recovery-lookup button,
.account-recovery-change button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.2));
  color: var(--soft);
}

.account-recovery-lookup button:disabled,
.account-recovery-change button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.account-recovery-feedback {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-recovery-feedback.error {
  color: #ffb3bd;
}

.account-recovery-info h2 {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 0.98rem;
}

.account-recovery-info dl {
  display: grid;
  gap: 2px;
  margin: 0;
}

.account-recovery-info dl > div {
  display: flex;
  gap: 8px;
  padding: 6px 4px;
  color: var(--soft);
}

.account-recovery-info dt {
  color: var(--muted);
}

.account-recovery-info dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-recovery-guidelines {
  margin-top: auto;
  padding: 16px 18px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

.account-recovery-guidelines p {
  margin: 0 0 10px;
}

.account-inspector-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 620px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 28, 34, 0.96), rgba(12, 15, 19, 0.98));
}

.account-inspector-toolbar {
  display: grid;
  grid-template-columns: 90px minmax(160px, 1fr) 140px 140px;
  gap: 10px;
  align-items: center;
}

.account-inspector-toolbar.group-inspector-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-inspector-toolbar.group-inspector-toolbar input {
  flex: 1 1 220px;
}

.account-inspector-toolbar.group-inspector-toolbar button {
  min-width: 120px;
}

.account-inspector-toolbar label,
.account-inspector-category-toolbar label {
  color: var(--soft);
  font-weight: 700;
  font-size: 0.86rem;
}

.account-inspector-toolbar input,
.account-inspector-category-toolbar select,
.account-inspector-search input {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #171a1f;
}

.account-inspector-toolbar button,
.account-inspector-wipe-actions button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.22));
  color: var(--soft);
}

.account-inspector-toolbar button:disabled,
.account-inspector-wipe-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.account-inspector-toolbar .danger-button,
.account-inspector-wipe-actions .danger-button {
  border-color: rgba(255, 104, 104, 0.38);
  background: linear-gradient(180deg, rgba(134, 39, 43, 0.5), rgba(55, 15, 19, 0.65));
}

.account-inspector-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-inspector-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
}

.account-inspector-summary,
.account-inspector-category-panel {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
}

.account-inspector-summary h2 {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 0.9rem;
}

.account-inspector-info-list {
  max-height: 450px;
  overflow: auto;
}

.group-inspector-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.group-inspector-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.group-inspector-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.group-inspector-actions-grid .action-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.group-inspector-members-section {
  flex: 1 1 auto;
}

.group-inspector-info-list {
  max-height: 220px;
}

.group-inspector-members-wrap {
  min-height: 180px;
  max-height: 250px;
}

.account-inspector-info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.79rem;
}

.account-inspector-info-row span {
  color: var(--muted);
}

.account-inspector-info-row strong {
  color: var(--soft);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.account-inspector-placeholder,
.account-inspector-empty {
  padding: 26px 12px !important;
  color: var(--muted) !important;
  text-align: center !important;
}

.account-inspector-category-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-inspector-category-toolbar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.account-inspector-table-wrap {
  min-height: 260px;
  max-height: 460px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
}

.account-inspector-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.8rem;
  color: var(--soft);
}

.account-inspector-table th,
.account-inspector-table td {
  padding: 7px 9px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-wrap: anywhere;
}

.account-inspector-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(15, 18, 22, 0.98);
  color: var(--muted);
  font-weight: 600;
}

.account-inspector-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--soft);
}

.account-inspector-search > span {
  font-size: 1.5rem;
  text-align: center;
}

.account-inspector-search small {
  color: var(--muted);
  white-space: nowrap;
}

.punishment-modal.account-inspector-wipe-modal {
  width: min(560px, 96vw);
}

.account-inspector-wipe-intro {
  margin: 4px 0 14px;
  color: var(--soft);
  text-align: center;
  line-height: 1.45;
}

.account-inspector-wipe-options {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
}

.account-inspector-wipe-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--soft);
  font-size: 0.9rem;
}

.account-inspector-wipe-options input {
  width: 16px;
  height: 16px;
  accent-color: #b94a4a;
}

.account-inspector-wipe-status {
  margin-bottom: 10px;
  color: #ffb3bd;
  font-size: 0.84rem;
}

.account-inspector-wipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.overview-card {
  background: rgba(19, 24, 35, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  min-height: 136px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01);
}

.overview-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.overview-value {
  font-size: clamp(2rem, 2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--soft);
}

.overview-trend {
  font-size: 0.78rem;
}

.overview-trend.positive {
  color: var(--success);
}

.overview-trend.neutral {
  color: var(--warning);
}

.players-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1.1fr) 320px;
  gap: 18px;
  min-height: 620px;
  height: auto;
  margin-top: 0;
  flex: 1 1 auto;
}

.players-panel {
  background: rgba(17, 22, 32, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--soft);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.panel-head--details {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.small-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(147, 111, 255, 0.18);
  color: var(--soft);
  font-size: 0.72rem;
}

.small-badge.accent {
  background: rgba(157, 130, 255, 0.2);
}

.search-input {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 0;
  height: 0;
  min-height: 540px;
  overflow-y: auto;
  overflow-x: hidden;
}

.player-row {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--soft);
  text-align: left;
  padding: 10px 12px;
}

.player-row.selected {
  background: rgba(147, 111, 255, 0.18);
  border-color: rgba(160, 135, 255, 0.32);
}

.player-info {
  color: var(--muted);
  font-size: 0.72rem;
}

.player-details-panel {
  padding: 14px 18px 18px;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.detail-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--soft);
  margin-top: 2px;
}

.info-scroll-panel {
  max-height: 210px;
  overflow: auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.45;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-label {
  min-width: 120px;
  color: var(--muted);
  font-weight: 600;
}

.info-value {
  color: var(--soft);
  word-break: break-word;
}

@media (max-width: 760px) {
  .info-row {
    flex-direction: column;
    gap: 2px;
  }

  .info-label {
    min-width: 0;
  }
}

.action-section {
  margin-bottom: 18px;
}

.action-section:last-child {
  margin-bottom: 0;
}

.action-section-title {
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
}

.action-button {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  color: var(--soft);
  border-radius: 10px;
  padding: 9px 10px;
  text-align: center;
}

.empty-state {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 16px 8px;
}

.empty-state.large {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.chat-viewer-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  min-height: 620px;
  flex: 1 1 auto;
}

.chat-list-panel,
.chat-message-panel {
  min-height: 620px;
}

.chat-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.chat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--soft);
  text-align: left;
  padding: 10px 12px;
}

.chat-list-item.selected {
  background: rgba(147, 111, 255, 0.18);
  border-color: rgba(160, 135, 255, 0.32);
}

.chat-list-item small {
  color: var(--muted);
}

.chat-message-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-message-log {
  flex: 1 1 auto;
  min-height: 420px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
}

.chat-message-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  color: var(--soft);
  padding: 8px 10px;
  margin-bottom: 8px;
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-timestamp {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 70px;
  white-space: nowrap;
  line-height: 1.45;
}

.chat-message-content {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--soft);
}

.chat-message-segment {
  white-space: pre-wrap;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 16px;
}

.chat-composer input {
  width: 100%;
  background: rgba(18, 24, 35, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
}

.chat-composer button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #b77bff, #7d5ef0);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
}


.bans-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;

  /* Keep the layout within the available panel space */
  min-height: 0;
  flex: 1 1 0;
  height: 100%;
  overflow: hidden;
}

.bans-view {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.bans-subtabs {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
}

.bans-subtab {
  border: 1px solid var(--line);
  border-radius: 9px 9px 0 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  padding: 9px 16px;
  font-weight: 650;
}

.bans-subtab:hover,
.bans-subtab.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(142, 109, 248, 0.13);
}

.manual-ban-panel {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  margin-top: 14px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 22, 32, 0.9);
}

.manual-ban-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.manual-ban-heading p {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.manual-ban-form {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.manual-ban-feedback {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--soft);
  background: rgba(142, 109, 248, 0.1);
}

.manual-ban-field {
  display: grid;
  grid-template-columns: minmax(135px, 190px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--soft);
  font-size: 0.9rem;
}

.manual-ban-field > span {
  font-weight: 650;
}

.manual-ban-field i {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
}

.manual-ban-field input,
.manual-ban-field textarea,
.manual-ban-duration {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 8, 15, 0.6);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.manual-ban-field input:focus,
.manual-ban-field textarea:focus,
.manual-ban-duration:focus {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 3px var(--glow);
}

.manual-ban-field input:disabled,
.manual-ban-duration:disabled {
  opacity: 0.55;
}

.manual-ban-input-with-check {
  display: flex;
  align-items: center;
  gap: 14px;
}

.manual-ban-check,
.manual-ban-radio {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-size: 0.86rem;
}

.manual-ban-check input,
.manual-ban-radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--purple-2);
}

.manual-ban-choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.manual-ban-choice-row legend {
  float: left;
  width: min(190px, 30%);
  padding: 0;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.manual-ban-choice-row .manual-ban-duration {
  width: 135px;
}

.manual-ban-reason textarea {
  resize: vertical;
}

.manual-ban-submit-row {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.manual-ban-submit-row button {
  min-width: 190px;
  border: 1px solid rgba(197, 174, 255, 0.4);
  border-radius: 9px;
  padding: 11px 20px;
  background: linear-gradient(180deg, #b77bff, #7d5ef0);
  color: #fff;
  font-weight: 700;
}

.manual-ban-submit-row button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.players-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.ban-table-wrap {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  max-height: 100%;

  overflow: auto;
  overscroll-behavior: contain;

  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}


.ban-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.ban-table th,
.ban-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ban-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(13, 17, 25, 0.96);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.ban-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.ban-table tbody tr:hover,
.ban-table tbody tr.selected {
  background: rgba(142, 109, 248, 0.12);
}


.ban-details-panel {
  min-width: 0;
}

.ban-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.punishments-controls-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.punishments-search-by-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.punishments-search-by-row select,
.mutes-input-unit-row select,
.add-punishment-select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 8, 15, 0.6);
  color: var(--text);
  padding: 9px 12px;
  outline: none;
}

.punishments-controls-box .search-input {
  margin-bottom: 0;
}

.punishments-action-stack {
  display: grid;
  gap: 8px;
}

.mutes-input-unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

.mutes-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.add-punishment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.add-punishment-form {
  max-width: none;
}

.add-punishment-hint {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.account-last-punishments-panel {
  min-width: 0;
}

.account-last-punishments-wrap {
  min-height: 240px;
  max-height: 360px;
}

.punishment-row-revoked td {
  color: #ff6b6b !important;
}

.acl-manager-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
  gap: 18px;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.acl-tree-panel {
  min-height: 0;
}

.acl-tree-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px;
}

.acl-section-header {
  padding: 6px 10px 4px 28px;
  color: var(--soft);
  font-weight: 700;
  font-size: 0.88rem;
}

.acl-section-spacer {
  height: 12px;
}

.acl-subsection-header {
  padding: 5px 10px 3px 38px;
  color: var(--soft);
  font-weight: 700;
  font-size: 0.82rem;
}

.acl-tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--soft);
  text-align: left;
  padding: 5px 10px;
  font-size: 0.86rem;
}

.acl-tree-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.acl-tree-node.expanded {
  color: #ffffff;
  font-weight: 650;
}

.acl-tree-leaf {
  padding-left: 38px;
}

.acl-tree-leaf.selected {
  background: rgba(92, 128, 224, 0.35);
  border-color: rgba(140, 170, 255, 0.45);
  color: #ffffff;
}

.acl-tree-leaf.right-allowed .acl-tree-label {
  color: #48d597;
}

.acl-tree-leaf.right-denied .acl-tree-label {
  color: #ff6b6b;
}

.acl-right-badge {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.acl-tree-marker {
  display: inline-block;
  width: 16px;
  text-align: center;
  font-family: Consolas, monospace;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.acl-tree-label {
  overflow-wrap: anywhere;
}

.acl-tree-empty {
  padding: 4px 10px 6px 38px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}

.acl-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acl-action-stack {
  display: grid;
  gap: 10px;
}

.acl-context-section {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.acl-context-title {
  color: var(--soft);
  font-size: 0.96rem;
  font-weight: 650;
}

.acl-context-separator {
  height: 2px;
  background: linear-gradient(90deg, #d63636, rgba(214, 54, 54, 0.25));
  border-radius: 999px;
  margin-bottom: 4px;
}

.acl-dropdown-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.acl-dropdown-box label {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.acl-dropdown-box select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 8, 15, 0.6);
  color: var(--text);
  padding: 9px 12px;
  outline: none;
}

.acl-dropdown-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.acl-context-placeholder {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 14px 4px;
}

.punishment-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.punishment-modal {
  width: min(540px, calc(100vw - 30px));
  background: rgba(15, 20, 29, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 18px 18px 14px;
}

.punishment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.punishment-kicker {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.punishment-header h3 {
  margin: 4px 0 0;
  font-size: 1.5rem;
  color: var(--soft);
}

.close-mini {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--soft);
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
}

.punishment-grid {
  display: grid;
  gap: 14px;
}

.punishment-field {
  display: grid;
  gap: 8px;
}

.punishment-field label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.punishment-field select,
.punishment-field input,
.punishment-field textarea {
  width: 100%;
  background: rgba(18, 24, 35, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
}

.punishment-field textarea {
  resize: vertical;
  min-height: 96px;
}

.punishment-field select {
  margin-top: 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.punishment-field select option {
  background: #1a2231;
  color: var(--text);
  padding: 10px 12px;
}

.punishment-field select option:checked,
.punishment-field select option:hover,
.punishment-field select option:focus {
  background: linear-gradient(180deg, rgba(142, 109, 248, 0.34), rgba(124, 102, 245, 0.22));
  color: #ffffff;
}

.punishment-duration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 8px 0 0;
}

.duration-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

.duration-option input {
  width: auto;
  margin: 0;
}

.permanent-option {
  margin-left: 2px;
}

.duration-input-row {
  display: grid;
  gap: 8px;
}

.warning-note {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--soft);
  padding: 12px 14px;
  line-height: 1.45;
}

.punishment-target {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(142, 109, 248, 0.12);
  border: 1px solid rgba(142, 109, 248, 0.24);
  color: var(--soft);
  font-weight: 700;
}

.duration-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.punishment-checkboxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding-top: 4px;
  min-height: 54px;
}

.punishment-checkboxes label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--soft);
  font-size: 0.9rem;
  min-width: 150px;
  text-align: center;
}

.punishment-checkboxes input {
  width: auto;
  margin: 0;
}

.warp-player-list {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  max-height: 220px;
  overflow: auto;
}

.warp-player-option {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--soft);
  padding: 10px 12px;
}

.warp-player-option.selected {
  border-color: rgba(160, 135, 255, 0.28);
  background: rgba(142, 109, 248, 0.14);
}

.punishment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.punishment-actions button {
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--soft);
}

.punishment-actions button:last-child {
  background: linear-gradient(180deg, #b77bff, #7d5ef0);
  border-color: rgba(197, 174, 255, 0.4);
  color: #fff;
}

.punishment-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ban-result-modal {
  max-width: 520px;
}

.ban-result-mark {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
}

.ban-result-mark.success {
  color: #062419;
  background: var(--success);
}

.ban-result-mark.failure {
  color: #2b0b10;
  background: var(--danger);
}

.ban-result-message {
  margin: 18px 0;
  color: var(--soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.player-history-modal {
  width: min(1360px, calc(100vw - 32px));
}

.player-history-modal .punishment-header h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.player-history-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.player-history-state.error {
  color: #ffb3bd;
  text-align: center;
  padding: 24px;
}

.player-history-table-wrap {
  max-height: min(56vh, 520px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
}

.player-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--soft);
  font-size: 0.84rem;
}

.player-history-table th,
.player-history-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-wrap: anywhere;
}

.player-history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(13, 17, 25, 0.98);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.player-history-table th:first-child,
.player-history-table td:first-child {
  width: 28%;
}

.player-history-table--anticheat {
  table-layout: auto;
}

.player-history-table--anticheat th:first-child,
.player-history-table--anticheat td:first-child {
  width: auto;
}

.player-history-table .history-serial {
  font-family: Consolas, monospace;
  font-size: 0.76rem;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.player-history-table .history-nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.player-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.player-history-footer button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .players-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .manual-ban-field {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .manual-ban-choice-row legend {
    width: 100%;
    margin-bottom: 4px;
  }

  .account-recovery-lookup,
  .account-recovery-change {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .account-inspector-content {
    grid-template-columns: 1fr;
  }

  .account-inspector-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .account-inspector-toolbar label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }
}

/* Performance Browser (IPB) */
.performance-browser-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.performance-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.performance-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.performance-control-group label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.performance-control-group select,
.performance-control-group input[type="text"] {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 21, 0.85);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 140ms ease;
}

.performance-control-group select:focus,
.performance-control-group input[type="text"]:focus {
  border-color: var(--accent);
}

.performance-control-group select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.performance-refresh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.performance-autorefresh-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--soft);
  cursor: pointer;
  user-select: none;
}

.performance-autorefresh-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

.performance-table-panel {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  overflow: hidden;
}

.performance-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.performance-table-wrap {
  flex: 1;
  overflow: auto;
  max-height: 70vh;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 18, 0.72);
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.performance-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #141624;
  color: var(--soft);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.performance-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text);
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.performance-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.08);
}

.performance-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1100px) {
  .performance-browser-layout {
    grid-template-columns: 1fr;
  }
}

/* Texture Change Requests */
.texture-requests-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.texture-request-details-panel {
  min-height: 0;
  overflow: auto;
}

.texture-request-detail-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
  min-height: 0;
  overflow: auto;
}

.texture-request-url-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.texture-request-url-box label,
.texture-request-preview-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.texture-request-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.texture-request-url-row input[type="text"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 21, 0.85);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
}

.texture-request-open-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.texture-request-preview-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.texture-request-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 16, 0.75);
  max-height: 210px;
  overflow: hidden;
}

.texture-request-preview-frame img {
  max-width: 100%;
  max-height: 186px;
  object-fit: contain;
  border-radius: 8px;
}

.texture-request-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .texture-requests-layout {
    grid-template-columns: 1fr;
  }
}

/* Staff Manager */
.staff-manager-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-manager-export-btn {
  padding: 9px 14px;
  font-size: 0.84rem;
}

.staff-manager-list-layout {
  display: grid;
  grid-template-columns: 300px minmax(320px, 1fr) minmax(300px, 1fr);
  gap: 16px;
  margin-top: 14px;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.staff-manager-activity-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.staff-members-table-wrap,
.staff-permissions-table-wrap {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 18, 0.72);
}

.staff-members-table,
.staff-permissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.staff-members-table thead th,
.staff-permissions-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #141624;
  color: var(--soft);
  text-align: left;
  padding: 9px 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.staff-members-table tbody td,
.staff-permissions-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.staff-members-table tbody tr,
.staff-permission-row {
  cursor: pointer;
  transition: background 120ms ease;
}

.staff-members-table tbody tr:hover,
.staff-permission-row:hover {
  background: rgba(139, 92, 246, 0.12);
}

.staff-members-table tbody tr.selected {
  background: rgba(139, 92, 246, 0.24);
}

.staff-manager-middle-panel,
.staff-manager-permissions-panel,
.staff-activity-details-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.staff-manager-middle-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.staff-management-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-management-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-management-row label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.staff-management-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
}

.staff-management-input-group select,
.staff-management-input-group input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 21, 0.85);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
}

.staff-kick-button {
  margin-top: 4px;
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.staff-kick-button:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.75);
}

.staff-perm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-perm-badge.yes {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.38);
}

.staff-perm-badge.no {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-activity-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
}

.staff-activity-year-block {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 11, 18, 0.65);
}

.staff-activity-year-header {
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(139, 92, 246, 0.16);
  color: #e9d5ff;
  border-bottom: 1px solid var(--line);
  border-radius: 11px 11px 0 0;
}

.staff-activity-month-block {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.staff-activity-month-block:last-child {
  border-bottom: 0;
}

.staff-activity-month-header {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--soft);
  margin-bottom: 8px;
}

.staff-activity-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}

.staff-activity-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.83rem;
}

.staff-activity-item-name {
  color: var(--muted);
  white-space: nowrap;
}

.staff-activity-item-val {
  color: var(--text);
  text-align: right;
}

.staff-activity-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.staff-activity-search-bar .search-input {
  flex: 1 1 220px;
  margin: 0;
}

.staff-activity-search-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--soft);
}

.staff-activity-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text);
  cursor: pointer;
}

.staff-add-panel {
  max-width: 520px;
  margin-top: 14px;
}

.staff-add-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.staff-add-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-add-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.staff-add-field input,
.staff-add-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 21, 0.85);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

@media (max-width: 1200px) {
  .staff-manager-list-layout,
  .staff-manager-activity-layout {
    grid-template-columns: 1fr;
  }
}

/* Live Map */
.live-map-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.live-map-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.live-map-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-map-zoom-btn {
  min-width: 34px;
  padding: 5px 10px;
  font-weight: 800;
}

.live-map-zoom-reset {
  min-width: 64px;
  padding: 5px 10px;
  font-size: 0.8rem;
}

.live-map-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-map-list-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.live-map-viewport {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #080a12;
  user-select: none;
}

.live-map-viewport.zoomable {
  cursor: grab;
}

.live-map-viewport.dragging {
  cursor: grabbing;
}

.live-map-canvas {
  position: relative;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  transform-origin: center center;
  transition: transform 60ms linear;
}

.live-map-viewport.dragging .live-map-canvas {
  transition: none;
}

.live-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.live-map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(10, 11, 18, 0.92);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  z-index: 2;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.live-map-dot:hover,
.live-map-dot.selected {
  z-index: 4;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.75), 0 0 10px rgba(0, 0, 0, 0.95);
}

.live-map-info-card {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  min-width: 240px;
  max-width: 300px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 16, 26, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.live-map-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.live-map-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text);
}

.live-map-info-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-map-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
}

.live-map-info-row span {
  color: var(--muted);
}

.live-map-info-row strong {
  color: var(--text);
  text-align: right;
}

@media (max-width: 1100px) {
  .live-map-layout {
    grid-template-columns: 1fr;
  }
}

.take-item-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Reports Tab */
.reports-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
  gap: 16px;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.reports-list-panel,
.report-view-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.reports-table-wrap {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 18, 0.72);
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.reports-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #141624;
  color: var(--soft);
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.reports-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.reports-table tbody tr {
  cursor: pointer;
  transition: background 120ms ease;
}

.reports-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.12);
}

.reports-table tbody tr.selected {
  background: rgba(139, 92, 246, 0.24);
}

.report-player-online {
  color: #48d597 !important;
  font-weight: 600;
}

.report-player-offline {
  color: #ff6b6b !important;
  font-weight: 600;
}

.report-reason-preview {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-view-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.report-section-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-section-box label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.report-reason-memo {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 21, 0.85);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
}

.report-screenshots-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 125px;
  overflow: auto;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 18, 0.65);
}

.report-screenshot-item {
  padding: 8px 12px;
}

.report-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-screenshot-modal {
  width: min(860px, calc(100vw - 32px));
}

.report-screenshot-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #06080e;
  overflow: hidden;
  max-height: 620px;
}

.report-screenshot-image-box img {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.report-screenshot-chat-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
  max-height: 480px;
  overflow: auto;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(6, 8, 14, 0.88);
  font-family: Consolas, monospace;
  font-size: 0.88rem;
}

.report-screenshot-chat-line {
  color: #ffffff;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .reports-layout {
    grid-template-columns: 1fr;
  }
}
