:root {
  --bg: #0d1117;
  --bg-soft: #141b24;
  --panel: rgba(18, 27, 38, 0.88);
  --panel-border: rgba(198, 255, 93, 0.18);
  --text: #e8f0f7;
  --muted: #8fa0b3;
  --accent: #c6ff5d;
  --accent-strong: #8de64e;
  --danger: #ff6978;
  --success: #7dffb3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(198, 255, 93, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(0, 201, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #0b0f14 0%, #111824 45%, #0d1117 100%);
  min-height: 100vh;
}

textarea,
input,
button {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-panel,
.panel,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-panel {
  width: min(520px, 100%);
  border-radius: 28px;
  padding: 2rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  color: #091017;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  font-weight: 700;
}

.button-link-muted {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 1rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-home {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.admin-home-hero {
  display: grid;
  gap: 1.5rem;
}

.admin-home-brand,
.admin-home-actions,
.admin-home-summary,
.admin-server-card,
.admin-server-card-main,
.admin-owner-chip,
.admin-server-card-pills {
  display: flex;
  gap: 1rem;
}

.admin-home-brand,
.admin-server-card-main,
.admin-owner-chip {
  align-items: center;
}

.admin-home-actions,
.admin-home-summary,
.admin-server-card,
.admin-server-card-pills {
  flex-wrap: wrap;
}

.admin-home-actions {
  justify-content: space-between;
  align-items: center;
}

.admin-home-avatar,
.admin-server-card-art {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.6rem;
  background:
    radial-gradient(circle at top, rgba(0, 201, 255, 0.3), transparent 55%),
    linear-gradient(135deg, rgba(198, 255, 93, 0.18), rgba(125, 255, 179, 0.14));
  border: 1px solid rgba(198, 255, 93, 0.18);
}

.admin-owner-chip {
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-owner-chip img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-owner-chip small {
  color: var(--muted);
  display: block;
  margin-top: 0.15rem;
}

.summary-card {
  flex: 1 1 260px;
}

.summary-card strong {
  display: block;
  font-size: 2rem;
  margin: 0.25rem 0 0.45rem;
}

.admin-home-list-panel h2 {
  margin: 0;
}

.admin-server-list {
  display: grid;
  gap: 1rem;
}

.admin-server-card {
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(198, 255, 93, 0.15);
}

.admin-server-card-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.admin-server-card-copy .muted {
  margin: 0;
}

.admin-server-card-pills {
  margin-top: 0.8rem;
}

.admin-server-card-actions {
  display: flex;
  align-items: center;
}

.sidebar {
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 12, 18, 0.72);
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.server-switcher,
.nav {
  display: grid;
  gap: 0.7rem;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.server-chip,
.nav-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.server-chip.active,
.nav-link.active,
.server-chip:hover,
.nav-link:hover {
  border-color: rgba(198, 255, 93, 0.28);
  background: rgba(198, 255, 93, 0.08);
}

.ghost-button,
button {
  border: 0;
  border-radius: 16px;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
}

button {
  color: #091017;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  font-weight: 700;
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.content {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.content-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.content-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.6rem);
}

.server-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.server-meta span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.roadmap-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-card,
.panel {
  border-radius: 24px;
  padding: 1.35rem;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.stat-card strong {
  font-size: 2.1rem;
}

.panel h3 {
  margin-top: 0;
}

.danger-panel {
  border-color: rgba(255, 105, 120, 0.35);
}

.status-list,
.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-list li:last-child {
  border-bottom: 0;
}

.status-detail {
  justify-content: start !important;
  color: var(--muted);
  font-size: 0.92rem;
  padding-top: 0 !important;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-list li {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.three-up {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
  display: grid;
  gap: 0.45rem;
}

label span {
  color: var(--muted);
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #111824 !important;
  color: #e8f0f7 !important;
  -webkit-text-fill-color: #e8f0f7;
  border-color: rgba(198, 255, 93, 0.18);
}

select option {
  color: #111824 !important;
  background: #ffffff !important;
}

select:focus {
  outline: 2px solid rgba(198, 255, 93, 0.28);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.toggle {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 0.8rem;
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.actions {
  display: flex;
  align-items: end;
}

.action-grid {
  display: grid;
  gap: 0.8rem;
}

.panel-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.orp-zone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.orp-zone-card {
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 15, 34, 0.96), rgba(13, 12, 24, 0.98));
  border: 1px solid rgba(232, 68, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(232, 68, 255, 0.08);
}

.orp-zone-card-protected {
  border-color: rgba(0, 230, 175, 0.38);
  box-shadow: inset 0 0 0 1px rgba(0, 230, 175, 0.08);
}

.orp-zone-card-unprotected {
  border-color: rgba(255, 183, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 183, 0, 0.08);
}

.orp-zone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.orp-zone-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.orp-zone-title-row strong {
  font-size: 1.05rem;
}

.orp-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.orp-status-badge-protected {
  background: rgba(18, 220, 177, 0.18);
  color: #57ffd5;
  border: 1px solid rgba(18, 220, 177, 0.32);
}

.orp-status-badge-unprotected {
  background: rgba(255, 186, 40, 0.16);
  color: #ffd56d;
  border: 1px solid rgba(255, 186, 40, 0.3);
}

.orp-zone-meta-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 1rem;
}

.orp-zone-meta-grid p,
.orp-zone-team p {
  margin: 0.28rem 0 0;
}

.orp-zone-team {
  margin-top: 1rem;
}

.orp-zone-team .pill-list {
  margin-top: 0.45rem;
}

.player-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1rem;
}

.player-search-panel h3 {
  margin-bottom: 0.9rem;
}

.search-field input[type="search"] {
  width: 100%;
}

.online-count-card strong {
  color: #2ce6ff;
}

.player-table-panel {
  overflow: hidden;
}

.offline-player-panel {
  border-color: rgba(255, 171, 84, 0.2);
}

.table-shell {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.player-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1260px;
  table-layout: auto;
}

.player-table th {
  text-align: left;
  padding: 0 1.25rem 0.85rem 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.player-table td {
  padding: 0.95rem 1.25rem 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  white-space: nowrap;
}

.player-table th:last-child,
.player-table td:last-child {
  padding-right: 0;
}

.player-table th:nth-child(1),
.player-table td:nth-child(1) {
  min-width: 190px;
}

.player-table th:nth-child(2),
.player-table td:nth-child(2) {
  min-width: 135px;
}

.player-table th:nth-child(3),
.player-table td:nth-child(3) {
  min-width: 140px;
}

.player-table th:nth-child(4),
.player-table td:nth-child(4) {
  min-width: 120px;
}

.player-table th:nth-child(5),
.player-table td:nth-child(5) {
  min-width: 90px;
}

.player-table th:nth-child(6),
.player-table td:nth-child(6) {
  min-width: 170px;
}

.player-table th:nth-child(7),
.player-table td:nth-child(7),
.player-table th:nth-child(8),
.player-table td:nth-child(8),
.player-table th:nth-child(9),
.player-table td:nth-child(9),
.player-table th:nth-child(10),
.player-table td:nth-child(10) {
  min-width: 90px;
}

.player-name-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.linked-badge {
  font-size: 0.95rem;
}

.health-cell {
  display: grid;
  gap: 0.35rem;
  min-width: 120px;
}

.health-bar {
  width: 110px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.health-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6978 0%, #ffbe5c 45%, #73ffb7 100%);
}

.health-cell small {
  color: var(--muted);
}

.inline-details {
  position: relative;
  display: inline-block;
}

.inline-details summary {
  cursor: pointer;
  color: #2ce6ff;
  list-style: none;
  white-space: nowrap;
}

.inline-details summary::-webkit-details-marker {
  display: none;
}

.inline-details-card {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 3;
  min-width: 220px;
  padding: 0.85rem;
  border-radius: 18px;
  background: #101722;
  border: 1px solid rgba(44, 230, 255, 0.16);
  box-shadow: var(--shadow);
}

.inline-details-card .pill-list li {
  font-size: 0.82rem;
}

.table-caption {
  margin-bottom: 0;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .player-toolbar {
    grid-template-columns: 1fr;
  }
}

.zone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.zone-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zone-row:last-child {
  border-bottom: 0;
}

.zone-meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.zone-menu {
  position: relative;
}

.zone-menu summary {
  list-style: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.2rem;
}

.zone-menu summary::-webkit-details-marker {
  display: none;
}

.zone-menu-card {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 4;
  width: 180px;
  padding: 0.75rem;
  border-radius: 16px;
  background: #111824;
  border: 1px solid rgba(198, 255, 93, 0.18);
  box-shadow: var(--shadow);
}

.toggle-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.economy-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.economy-action-strip form,
.economy-action-strip button {
  width: 100%;
}

.economy-action-strip form {
  flex: 1 1 210px;
}

.economy-card {
  position: relative;
  overflow: hidden;
}

.economy-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 255, 93, 0.4), rgba(44, 230, 255, 0.18), transparent 80%);
}

.economy-grid-top {
  align-items: start;
}

.economy-card-currency {
  border-color: rgba(0, 221, 186, 0.2);
}

.economy-card-xp {
  border-color: rgba(105, 157, 255, 0.22);
}

.economy-card-loss {
  border-color: rgba(255, 105, 120, 0.24);
}

.economy-card-loss-alt {
  border-color: rgba(255, 202, 87, 0.22);
}

.economy-card-loss-pve {
  border-color: rgba(255, 152, 71, 0.22);
}

.economy-inline-actions {
  display: grid;
  gap: 1rem;
}

.economy-mini-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.economy-mini-form button {
  min-width: 110px;
}

.economy-player-table {
  min-width: 980px;
}

.economy-player-table th:nth-child(1),
.economy-player-table td:nth-child(1) {
  min-width: 220px;
}

.economy-player-table th:nth-child(2),
.economy-player-table td:nth-child(2) {
  min-width: 100px;
}

.economy-player-table th:nth-child(3),
.economy-player-table td:nth-child(3),
.economy-player-table th:nth-child(4),
.economy-player-table td:nth-child(4),
.economy-player-table th:nth-child(5),
.economy-player-table td:nth-child(5),
.economy-player-table th:nth-child(6),
.economy-player-table td:nth-child(6),
.economy-player-table th:nth-child(7),
.economy-player-table td:nth-child(7),
.economy-player-table th:nth-child(8),
.economy-player-table td:nth-child(8) {
  min-width: 90px;
}

.economy-card textarea {
  min-height: 120px;
}

.economy-card .server-meta span {
  background: rgba(255, 255, 255, 0.05);
}

.skipnight-status-bar {
  display: grid;
}

.skipnight-status-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.skipnight-status-pill {
  min-width: 180px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 119, 255, 0.18);
}

.skipnight-status-pill strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.15rem;
}

.skipnight-card {
  border-color: rgba(124, 119, 255, 0.2);
}

.skipnight-card-accent {
  background: linear-gradient(180deg, rgba(30, 23, 44, 0.92), rgba(18, 22, 36, 0.96));
}

.skipnight-broadcast-panel {
  border-color: rgba(255, 255, 255, 0.16);
}

.skipnight-message-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.skipnight-message-card {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skipnight-message-card-start {
  border-color: rgba(255, 202, 87, 0.3);
  background: linear-gradient(180deg, rgba(49, 43, 24, 0.65), rgba(22, 24, 30, 0.9));
}

.skipnight-message-card-success {
  border-color: rgba(76, 255, 166, 0.28);
  background: linear-gradient(180deg, rgba(18, 54, 39, 0.6), rgba(18, 24, 30, 0.9));
}

.skipnight-message-card-failed {
  border-color: rgba(255, 105, 120, 0.28);
  background: linear-gradient(180deg, rgba(58, 24, 30, 0.6), rgba(24, 21, 28, 0.9));
}

.skipnight-message-card textarea {
  min-height: 180px;
}

.dial-a-ride-panel,
.dial-a-ride-list-panel {
  border-color: rgba(99, 177, 255, 0.22);
}

.dial-a-ride-form-card {
  border-color: rgba(99, 177, 255, 0.16);
}

.dial-a-ride-form-card-messages {
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.92), rgba(18, 22, 36, 0.96));
}

.dial-a-ride-form-card textarea {
  min-height: 110px;
}

.dial-a-ride-form-actions {
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.dial-a-ride-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dial-a-ride-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.dial-a-ride-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.95), rgba(16, 22, 36, 0.98));
  border: 1px solid rgba(90, 160, 255, 0.2);
}

.dial-a-ride-card-disabled {
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.1);
}

.dial-a-ride-card-main {
  min-width: 0;
}

.dial-a-ride-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.dial-a-ride-meta {
  margin: 0.4rem 0 0;
}

.dial-a-ride-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.dial-a-ride-status-enabled {
  background: rgba(76, 255, 166, 0.14);
  color: #70ffc2;
  border: 1px solid rgba(76, 255, 166, 0.26);
}

.dial-a-ride-status-disabled {
  background: rgba(255, 171, 84, 0.14);
  color: #ffc37e;
  border: 1px solid rgba(255, 171, 84, 0.24);
}

.dial-a-ride-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.dial-a-ride-card-actions form,
.dial-a-ride-card-actions a {
  margin: 0;
}

.dial-a-ride-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.home-teleport-card {
  border-color: rgba(171, 95, 255, 0.22);
}

.home-teleport-card .toggle-grid {
  margin: 1rem 0 1.15rem;
}

.home-teleport-card .toggle {
  padding: 0.2rem 0;
}

.home-teleport-monuments {
  border-color: rgba(255, 149, 64, 0.22);
  background: linear-gradient(180deg, rgba(34, 24, 22, 0.92), rgba(25, 21, 24, 0.96));
}

.home-teleport-message-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}

.home-teleport-message-grid textarea {
  min-height: 92px;
}

.home-teleport-monument-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.15rem 0 1.25rem;
  max-height: 360px;
  overflow: auto;
  padding-right: 0.25rem;
}

.home-teleport-monument-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-teleport-monument-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.home-teleport-safe-towns {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.home-teleport-safe-town {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(58, 124, 78, 0.18);
  border: 1px solid rgba(112, 255, 163, 0.22);
}

.home-teleport-blacklist-panel {
  border-color: rgba(255, 105, 120, 0.24);
}

.home-teleport-homes-panel {
  border-color: rgba(171, 95, 255, 0.22);
}

.emote-binds-panel,
.emote-binds-list-panel,
.emote-binds-message-panel {
  border-color: rgba(255, 206, 61, 0.22);
}

.emote-binds-form,
.emote-binds-list,
.emote-binds-message-panel form {
  display: grid;
  gap: 1rem;
}

.emote-binds-command-panel {
  border-color: rgba(255, 206, 61, 0.18);
  background: linear-gradient(180deg, rgba(47, 39, 20, 0.72), rgba(18, 22, 36, 0.96));
}

.emote-binds-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.emote-binds-type-option {
  display: block;
}

.emote-binds-type-option input {
  display: none;
}

.emote-binds-type-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.emote-binds-type-option input:checked + span {
  border-color: rgba(255, 206, 61, 0.48);
  background: rgba(255, 206, 61, 0.16);
  color: #fff4c4;
}

.emote-binds-helper-grid {
  align-items: end;
}

.emote-bind-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(55, 49, 42, 0.96), rgba(42, 37, 31, 0.98));
  border: 1px solid rgba(255, 190, 54, 0.28);
}

.emote-bind-card-disabled {
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.1);
}

.emote-bind-card-main {
  min-width: 0;
}

.emote-bind-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.emote-bind-meta {
  margin: 0.35rem 0 0;
}

.emote-bind-trigger {
  color: #ff7d73;
  font-weight: 700;
}

.emote-bind-card-actions,
.emote-binds-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.emote-bind-card-actions {
  justify-content: flex-end;
}

.emote-binds-message-card {
  display: grid;
  gap: 0.95rem;
  border-color: rgba(52, 234, 255, 0.16);
}

.emote-binds-message-card textarea {
  min-height: 120px;
}

.teleports-panel,
.teleports-list-panel,
.teleports-broadcast-panel,
.teleports-blacklist-panel {
  border-color: rgba(139, 92, 246, 0.24);
}

.teleports-top-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.teleports-card {
  display: grid;
  gap: 1rem;
}

.teleports-card-basic {
  border-color: rgba(139, 92, 246, 0.28);
}

.teleports-card-behaviour {
  border-color: rgba(255, 183, 0, 0.24);
}

.teleports-card-guards {
  border-color: rgba(255, 105, 120, 0.24);
}

.teleports-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.teleports-broadcast-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.teleports-broadcast-card {
  display: grid;
  gap: 0.85rem;
  border-color: rgba(78, 218, 255, 0.18);
}

.teleports-broadcast-card textarea {
  min-height: 100px;
}

.store-policy-panel,
.store-settings-panel,
.store-editor-panel,
.store-items-panel,
.store-history-panel {
  border-color: rgba(139, 92, 246, 0.24);
}

.store-group-panel {
  border-color: rgba(52, 234, 255, 0.14);
}

.store-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.store-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(10, 17, 28, 0.84);
  border: 1px solid rgba(52, 234, 255, 0.14);
}

.store-card-disabled {
  opacity: 0.7;
}

.store-card-top {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.store-card-top img,
.store-card-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: contain;
}

.store-card-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #c6ff5d;
}

.store-card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.store-featured-pill,
.store-price-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.store-featured-pill {
  background: rgba(198, 255, 93, 0.12);
  border: 1px solid rgba(198, 255, 93, 0.24);
  color: #d6ff86;
}

.store-price-pill {
  background: rgba(255, 183, 0, 0.12);
  border: 1px solid rgba(255, 183, 0, 0.22);
  color: #ffd36d;
}

.player-shell-body {
  margin: 0;
  min-height: 100vh;
  background: #12161c;
}

.player-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background:
    radial-gradient(circle at top right, rgba(52, 234, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #171c24 0%, #12161c 100%);
}

.player-sidebar {
  padding: 1.4rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 18, 0.86);
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.player-nav {
  display: grid;
  gap: 0.35rem;
}

.player-nav-link {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.player-nav-link.active {
  color: var(--text);
  background: rgba(52, 234, 255, 0.08);
  border-color: rgba(52, 234, 255, 0.18);
}

.player-content {
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.player-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.player-header-actions,
.player-balance-row,
.player-store-pills {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.player-profile-chip {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-profile-chip img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.player-login-grid,
.player-store-layout {
  display: grid;
  gap: 1rem;
}

.player-login-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.player-store-layout {
  grid-template-columns: 260px 1fr;
  align-items: start;
}

.player-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.player-summary-card {
  display: grid;
  gap: 0.35rem;
  border-color: rgba(52, 234, 255, 0.18);
}

.player-summary-card h3,
.player-summary-card p {
  margin: 0;
}

.player-store-categories,
.player-store-main,
.player-store-search,
.player-store-hero,
.player-login-panel {
  border-color: rgba(139, 92, 246, 0.24);
}

.player-category-link {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 183, 0, 0.16);
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.45rem;
  background: rgba(255, 183, 0, 0.04);
}

.player-category-link.active {
  border-color: rgba(255, 183, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 183, 0, 0.18);
}

.player-store-search {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.player-store-search input {
  flex: 1;
}

.player-store-banner {
  width: 100%;
  border-radius: 20px;
  display: block;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-store-banner-fallback {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(52, 234, 255, 0.16), transparent 45%),
    linear-gradient(135deg, rgba(62, 255, 126, 0.08), rgba(255, 183, 0, 0.1));
}

.info-panel {
  border-radius: 24px;
  padding: 1.35rem;
  background: linear-gradient(135deg, rgba(198, 255, 93, 0.12), rgba(0, 201, 255, 0.08));
  border: 1px solid rgba(198, 255, 93, 0.22);
  box-shadow: var(--shadow);
}

.info-panel h3 {
  margin-top: 0;
}

.console-log {
  min-height: 420px;
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(3, 7, 12, 0.92);
  border: 1px solid rgba(198, 255, 93, 0.12);
  color: #b8fda3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.flash {
  border-radius: 18px;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
}

.flash-success {
  background: rgba(125, 255, 179, 0.12);
  border-color: rgba(125, 255, 179, 0.28);
}

.flash-error {
  background: rgba(255, 105, 120, 0.12);
  border-color: rgba(255, 105, 120, 0.28);
}

.flash-info {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.danger-button {
  background: linear-gradient(135deg, #ff8b96 0%, #ff6978 100%);
}

.success-button {
  background: linear-gradient(135deg, #63f5b0 0%, #31d88f 100%);
}

.linked-players-layout {
  align-items: start;
}

.linked-players-card,
.linked-players-list-card {
  display: grid;
  gap: 1rem;
}

.linked-players-card-accent {
  background: linear-gradient(180deg, rgba(18, 39, 44, 0.92), rgba(18, 27, 38, 0.88));
}

.linked-players-inline-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.linked-players-inline-actions form {
  margin: 0;
}

.linked-players-domain-box {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(125, 255, 179, 0.22);
  background: rgba(125, 255, 179, 0.08);
}

.linked-players-search {
  max-width: 460px;
}

.linked-player-list {
  display: grid;
  gap: 0.9rem;
}

.linked-player-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.linked-player-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.linked-player-title-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.status-chip.status-ok {
  background: rgba(125, 255, 179, 0.14);
  color: var(--success);
}

.status-chip.status-live {
  background: rgba(0, 201, 255, 0.14);
  color: #87f4ff;
}

.linked-player-actions {
  flex-shrink: 0;
}

.customzones-top-grid {
  align-items: start;
}

.customzones-card {
  display: grid;
  gap: 1rem;
}

.customzones-card-emote {
  border-color: rgba(255, 97, 122, 0.24);
}

.customzones-card-manual {
  border-color: rgba(255, 186, 80, 0.24);
}

.customzones-list-panel {
  display: grid;
  gap: 1rem;
}

.customzones-toolbar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.customzones-toolbar input {
  max-width: 520px;
}

.customzones-tab-button.active {
  border-color: rgba(198, 255, 93, 0.28);
  background: rgba(198, 255, 93, 0.08);
}

.customzone-card {
  border-color: rgba(171, 95, 255, 0.18);
}

.monument-zone-card {
  border-color: rgba(255, 149, 64, 0.18);
}

.killfeed-form {
  display: grid;
  gap: 1rem;
}

.killfeed-channel-panel {
  display: grid;
  gap: 1rem;
}

.killfeed-category {
  overflow: hidden;
}

.killfeed-category summary {
  list-style: none;
  cursor: pointer;
}

.killfeed-category summary::-webkit-details-marker {
  display: none;
}

.killfeed-category-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.killfeed-category-toggle {
  pointer-events: auto;
}

.killfeed-category-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.killfeed-category-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.killfeed-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.85rem;
}

.killfeed-category-body {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.killfeed-category-body.is-disabled {
  opacity: 0.45;
}

.killfeed-event-card {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(33, 24, 34, 0.95), rgba(22, 18, 27, 0.98));
  border: 1px solid rgba(255, 97, 122, 0.18);
}

.killfeed-event-card h3 {
  margin: 0;
}

.killfeed-placeholder-label {
  display: block;
  margin-bottom: 0.5rem;
}

.killfeed-placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.killfeed-placeholder-list code {
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.28);
  color: #ffd96a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.killfeed-channel-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
 }

.server-management-form {
  display: grid;
  gap: 1rem;
}

.server-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.server-management-header h3 {
  margin: 0;
}

.server-management-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.server-management-stat-card {
  display: grid;
  gap: 0.35rem;
}

.server-management-stat-card strong {
  font-size: 1.5rem;
}

.server-management-actions-panel,
.server-management-side-card,
.server-management-time-card,
.server-management-option-card,
.server-management-input-card,
.server-management-accordion {
  border-radius: 22px;
}

.server-management-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.server-management-action-button,
.server-management-inline-input {
  min-height: 88px;
  border-radius: 18px;
}

.server-management-action-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(60, 33, 41, 0.95), rgba(45, 22, 28, 0.98));
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.server-management-inline-input {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 193, 7, 0.26);
  background: linear-gradient(180deg, rgba(84, 63, 18, 0.94), rgba(65, 49, 16, 0.98));
}

.server-management-warning {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(209, 42, 42, 0.96), rgba(173, 29, 29, 0.98));
  color: #fff6f6;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-management-core-grid {
  gap: 1rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.segmented-control label {
  display: block;
}

.segmented-control input {
  display: none;
}

.segmented-control span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.segmented-control label:last-child span {
  border-right: 0;
}

.segmented-control input:checked + span {
  background: rgba(26, 232, 232, 0.16);
  color: var(--text);
}

.server-management-main-grid {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 1rem;
}

.server-management-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.server-management-accordion summary::-webkit-details-marker {
  display: none;
}

.server-management-accordion-body {
  margin-top: 1rem;
}

.server-management-modifier-row {
  align-items: end;
}

.server-management-ban-list {
  display: grid;
  gap: 0.75rem;
  max-height: 420px;
  overflow: auto;
}

.server-management-ban-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.server-management-ban-option {
  display: grid;
  grid-template-columns: auto 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.server-management-ban-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.server-management-ban-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-management-ban-thumb span {
  font-weight: 700;
}

.server-management-ban-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.server-management-ban-copy strong,
.server-management-ban-copy small {
  overflow-wrap: anywhere;
}

.server-management-ban-option small {
  color: var(--muted);
}

.server-time-slider-wrap {
  display: grid;
  gap: 0.65rem;
  position: relative;
  padding-top: 2.2rem;
}

.server-time-slider-wrap input[type="range"] {
  width: 100%;
}

.server-time-thumb-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 193, 255, 0.16);
  border: 1px solid rgba(0, 193, 255, 0.35);
  color: #dff7ff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.server-time-ticks {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  font-size: 0.78rem;
  color: var(--muted);
}

.server-time-ticks span:nth-child(1) {
  text-align: left;
}

.server-time-ticks span:not(:first-child):not(:last-child) {
  text-align: center;
}

.server-time-ticks span:last-child {
  text-align: right;
}

.kitbuilder-form {
  display: grid;
  gap: 1rem;
}

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

.kitbuilder-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.kitbuilder-title-wrap h3 {
  margin: 0;
}

.kitbuilder-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.kitbuilder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.95fr);
  gap: 1.2rem;
}

.kitbuilder-board,
.kitbuilder-side-card {
  display: grid;
  gap: 1rem;
}

.kitbuilder-group {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kitbuilder-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.kitbuilder-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.kitbuilder-group-header h4,
.kitbuilder-group-header p {
  margin: 0;
}

.kitbuilder-group-header h4 span {
  color: #fffd90;
}

.kitbuilder-grid {
  display: grid;
  gap: 0.7rem;
}

.kitbuilder-grid-wear {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.kitbuilder-grid-main {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kitbuilder-grid-belt {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kitbuilder-slot {
  min-height: 112px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  padding: 0.4rem;
}

.kitbuilder-slot.active {
  box-shadow: 0 0 0 2px rgba(0, 209, 255, 0.35);
  border-color: rgba(0, 209, 255, 0.8);
}

.kitbuilder-slot img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.kitbuilder-slot-name {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.35rem;
  font-size: 0.72rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kitbuilder-slot-amount {
  position: absolute;
  top: 0.38rem;
  right: 0.38rem;
  min-width: 1.5rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(18, 22, 30, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
}

.kitbuilder-button-stack,
.kitbuilder-editor-actions {
  display: grid;
  gap: 0.7rem;
}

.kitbuilder-button {
  width: 100%;
}

.kitbuilder-button.success {
  background: #2ce86d;
  color: #082110;
}

.kitbuilder-button.danger {
  background: #ff4848;
  color: white;
}

.kitbuilder-button.info {
  background: #2f9fd0;
}

.kitbuilder-button.secondary {
  background: #4f9bed;
}

.kitbuilder-button.ghost,
.kitbuilder-button.ghost-red {
  background: rgba(255, 255, 255, 0.05);
}

.kitbuilder-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kitbuilder-editor-head h4,
.kitbuilder-editor-head p {
  margin: 0;
}

.kitbuilder-slot-preview {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kitbuilder-slot-preview img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.player-shell-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(28, 235, 186, 0.12), transparent 28%),
    radial-gradient(circle at left center, rgba(114, 74, 255, 0.14), transparent 30%),
    #0a0f16;
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
}

.player-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.player-sidebar {
  padding: 1.6rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 24, 0.9);
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
}

.player-brand h1,
.player-brand p {
  margin: 0;
}

.player-brand {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.player-nav {
  display: grid;
  gap: 0.45rem;
}

.player-nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.78rem 0.92rem;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.player-nav-link.active {
  border-color: rgba(0, 229, 255, 0.36);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.18);
}

.player-content {
  padding: 1.6rem;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.player-header-actions,
.player-balance-row,
.player-store-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.player-balance-row > span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.player-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-profile-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.player-profile-chip small {
  display: block;
  color: var(--muted);
}

.player-login-panel,
.player-store-main,
.player-store-categories {
  display: grid;
  gap: 1rem;
}

.player-login-grid,
.player-store-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1rem;
}

.player-store-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.player-store-search input {
  width: 100%;
}

.player-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.player-category-link.active {
  border-color: rgba(255, 212, 76, 0.48);
  background: rgba(255, 212, 76, 0.12);
}

.player-store-hero {
  overflow: hidden;
}

.player-store-banner {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-store-banner-fallback {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(0, 255, 157, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(128, 84, 255, 0.22), rgba(13, 18, 29, 0.92));
}

.player-store-banner-fallback strong {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .content-header {
    flex-direction: column;
    align-items: start;
  }

  .economy-mini-form {
    grid-template-columns: 1fr;
  }

  .dial-a-ride-card {
    flex-direction: column;
    align-items: start;
  }

  .dial-a-ride-card-actions {
    width: 100%;
    justify-content: start;
  }

  .linked-player-row {
    flex-direction: column;
    align-items: start;
  }

  .teleports-form-actions {
    justify-content: start;
  }

  .emote-binds-type-grid {
    grid-template-columns: 1fr;
  }

  .emote-bind-card {
    flex-direction: column;
    align-items: start;
  }

  .emote-bind-card-actions {
    width: 100%;
    justify-content: start;
  }

  .killfeed-category-summary {
    align-items: start;
  }

  .server-management-header,
  .server-management-quick-grid,
  .server-management-stat-grid,
  .server-management-main-grid {
    grid-template-columns: 1fr;
  }

  .kitbuilder-layout,
  .kitbuilder-grid-wear,
  .kitbuilder-grid-main,
  .kitbuilder-grid-belt {
    grid-template-columns: 1fr;
  }

  .player-shell,
  .player-login-grid,
  .player-store-layout {
    grid-template-columns: 1fr;
  }

  .player-summary-grid {
    grid-template-columns: 1fr;
  }

  .player-sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .player-content {
    padding: 1rem;
  }

  .player-header,
  .player-store-search {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-home-actions,
  .admin-server-card {
    align-items: start;
    flex-direction: column;
  }

  .server-management-ban-toolbar {
    grid-template-columns: 1fr;
  }

  .server-management-ban-option {
    grid-template-columns: auto 44px minmax(0, 1fr);
  }

  .kitbuilder-slot {
    min-height: 92px;
  }
}

.map-layout {
  align-items: start;
}

.map-panel {
  overflow: hidden;
}

.map-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.map-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.map-legend-swatch.player {
  background: #36d1ff;
}

.map-legend-swatch.stone {
  background: #f1f5f9;
}

.map-legend-swatch.metal {
  background: #60a5fa;
}

.map-legend-swatch.sulfur {
  background: #facc15;
}

.map-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 0.5rem;
}

.map-filter-toolbar-player {
  justify-content: flex-start;
}

.map-filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.map-filter-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.map-filter-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.map-filter-pill input:checked + span {
  color: #08111d;
  background: linear-gradient(135deg, rgba(173, 255, 47, 0.95), rgba(65, 255, 172, 0.92));
  border-color: rgba(173, 255, 47, 0.65);
  box-shadow: 0 0 0 4px rgba(173, 255, 47, 0.1);
}

.map-filter-pill-stone input:checked + span {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(203, 213, 225, 0.95));
  border-color: rgba(248, 250, 252, 0.6);
}

.map-filter-pill-metal input:checked + span {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.96), rgba(56, 189, 248, 0.94));
  border-color: rgba(96, 165, 250, 0.65);
  color: #07111d;
}

.map-filter-pill-sulfur input:checked + span {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(251, 191, 36, 0.95));
  border-color: rgba(250, 204, 21, 0.65);
  color: #181101;
}

.map-filter-pill:hover span {
  transform: translateY(-1px);
}

.map-canvas-shell {
  border-radius: 20px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.92), rgba(7, 11, 20, 0.98));
}

.map-canvas {
  position: relative;
  min-width: 920px;
}

.map-canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.map-corner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.map-corner-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.map-image-calibration {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.map-heat {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: auto;
  mix-blend-mode: screen;
}

.map-corner-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(173, 255, 47, 0.92);
  color: #08111d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow:
    0 0 0 4px rgba(173, 255, 47, 0.16),
    0 0 18px rgba(173, 255, 47, 0.5);
  cursor: default;
}

.map-test-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 91, 91, 0.95);
  color: #ffffff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow:
    0 0 0 5px rgba(255, 91, 91, 0.18),
    0 0 22px rgba(255, 91, 91, 0.6);
  cursor: default;
}

.map-heat.player {
  width: 16px;
  height: 16px;
  background: rgba(54, 209, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(54, 209, 255, 0.18),
    0 0 18px rgba(54, 209, 255, 0.55);
  z-index: 4;
}

.map-heat-player-fog {
  width: 30px;
  height: 30px;
  background: rgba(255, 90, 90, 0.3);
  box-shadow:
    0 0 0 10px rgba(255, 90, 90, 0.08),
    0 0 28px rgba(255, 90, 90, 0.32),
    0 0 56px rgba(255, 90, 90, 0.18);
  opacity: 0.95;
}

.map-team-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 7;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(146, 255, 122, 0.96);
  color: #062011;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow:
    0 0 0 4px rgba(146, 255, 122, 0.15),
    0 0 18px rgba(146, 255, 122, 0.5);
}

.map-team-pin-self {
  background: rgba(202, 255, 122, 0.98);
  box-shadow:
    0 0 0 5px rgba(202, 255, 122, 0.16),
    0 0 24px rgba(202, 255, 122, 0.62);
}

.map-heat.stone {
  width: 10px;
  height: 10px;
  background: rgba(248, 250, 252, 0.82);
  box-shadow: 0 0 14px rgba(248, 250, 252, 0.35);
  opacity: 0.8;
}

.map-heat.metal {
  width: 10px;
  height: 10px;
  background: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.4);
  opacity: 0.82;
}

.map-heat.sulfur {
  width: 10px;
  height: 10px;
  background: rgba(250, 204, 21, 0.9);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.45);
  opacity: 0.84;
}

.map-list {
  display: grid;
  gap: 0.75rem;
}

.map-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.map-list-item strong {
  color: #f8fafc;
}

.map-list-item span {
  color: var(--muted);
  text-align: right;
}
