:root {
  color-scheme: dark;
  --bg: #020403;
  --bg-soft: #030604;
  --sidebar: #080d0a;
  --panel: rgba(8, 14, 10, 0.88);
  --panel-hover: rgba(13, 22, 15, 0.95);
  --panel-solid: #0b110d;
  --line: rgba(255, 255, 255, 0.07);
  --line-green: rgba(74, 255, 94, 0.18);
  --line-green-strong: rgba(57, 255, 90, 0.34);
  --text: #f4fff4;
  --muted: #9ba89d;
  --muted-2: #5f6b61;
  --pixelar: #39ff5a;
  --green-deep: #145c22;
  --success: #39ff5a;
  --warning: #d6a94a;
  --danger: #d94444;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.58);
  --glow: 0 0 28px rgba(57, 255, 90, 0.13);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 255, 90, 0.38) rgba(3, 6, 4, 0.72);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(57, 255, 90, 0.025), transparent),
    rgba(3, 6, 4, 0.72);
  border: 1px solid rgba(74, 255, 94, 0.055);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(3, 6, 4, 0.9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(57, 255, 90, 0.46), rgba(20, 92, 34, 0.62));
  box-shadow: inset 0 0 0 1px rgba(244, 255, 244, 0.06), 0 0 14px rgba(57, 255, 90, 0.11);
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(57, 255, 90, 0.66), rgba(20, 92, 34, 0.78));
}

::-webkit-scrollbar-corner {
  background: rgba(3, 6, 4, 0.92);
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Bahnschrift", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
a {
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-body,
.auth-body {
  background:
    linear-gradient(rgba(57, 255, 90, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 90, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 18% 10%, rgba(57, 255, 90, 0.12), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(20, 92, 34, 0.18), transparent 34rem),
    linear-gradient(180deg, #030604 0%, #020403 54%, #010201 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.auth-body {
  background:
    linear-gradient(rgba(57, 255, 90, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 90, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(57, 255, 90, 0.16), transparent 24rem),
    radial-gradient(circle at 70% 80%, rgba(20, 92, 34, 0.2), transparent 28rem),
    #020403;
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 280px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: rgba(8, 13, 10, 0.94);
  border-right: 1px solid var(--line-green);
  box-shadow: 12px 0 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pixelar), transparent);
  opacity: 0.42;
}

.sidebar-brand,
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-green-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(57, 255, 90, 0.18), rgba(20, 92, 34, 0.24));
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: var(--glow);
}

.brand-mark.large {
  width: 54px;
  height: 54px;
  border-radius: 10px;
}

.brand-logo {
  overflow: hidden;
  padding: 5px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-brand strong,
.auth-logo strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-brand small,
.auth-logo small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 34px;
}

.side-nav-section {
  margin: 14px 8px 5px;
  color: var(--pixelar);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.side-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(57, 255, 90, 0.055);
  border-color: var(--line-green);
  color: var(--text);
  box-shadow: inset 2px 0 0 rgba(57, 255, 90, 0.75);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 255, 90, 0.16);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--pixelar);
  font-size: 11px;
  font-weight: 900;
}

.nav-icon i {
  font-size: 16px;
  line-height: 1;
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(57, 255, 90, 0.035);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot,
.session-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(57, 255, 90, 0.72);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 280px;
  z-index: 15;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: rgba(2, 4, 3, 0.78);
  border-bottom: 1px solid var(--line-green);
  backdrop-filter: blur(16px);
}

.breadcrumb {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-action-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-green);
  border-radius: 7px;
  padding: 0 13px;
  background:
    linear-gradient(180deg, rgba(57, 255, 90, 0.11), rgba(20, 92, 34, 0.18)),
    rgba(3, 6, 4, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-action-button i {
  color: var(--pixelar);
  font-size: 16px;
}

.topbar-action-button:hover {
  border-color: var(--line-green-strong);
  color: var(--pixelar);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.session-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-chip {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 14, 10, 0.72);
}

.profile-chip img,
.avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.profile-chip img {
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-green);
  background: rgba(20, 92, 34, 0.2);
  color: var(--pixelar);
  font-weight: 900;
}

.profile-chip strong,
.profile-chip small {
  display: block;
}

.profile-chip strong {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-chip small {
  color: var(--pixelar);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-main {
  margin-left: 280px;
  padding: 96px 28px 36px;
  transition: padding-right 180ms ease;
}

.online-panel-open .admin-main {
  padding-right: 388px;
}

.online-panel {
  position: fixed;
  inset: 66px 0 0 auto;
  z-index: 18;
  width: 360px;
  border-left: 1px solid var(--line-green);
  background: rgba(8, 13, 10, 0.96);
  box-shadow: -18px 0 55px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform: translateX(0);
  transition: transform 180ms ease;
}

.online-panel.collapsed {
  transform: translateX(360px);
}

.online-panel-toggle {
  position: absolute;
  top: 18px;
  left: -48px;
  width: 48px;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  border: 1px solid var(--line-green);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  background: rgba(8, 13, 10, 0.96);
  color: var(--pixelar);
  cursor: pointer;
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.28);
}

.online-panel-toggle i {
  font-size: 20px;
  line-height: 1;
}

.online-panel-toggle span {
  min-width: 23px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
  border: 1px solid var(--line-green-strong);
  border-radius: 999px;
  background: rgba(57, 255, 90, 0.12);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
}

.online-panel:not(.collapsed) .online-panel-toggle i {
  transform: rotate(180deg);
}

.online-panel-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
}

.online-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 102px;
  padding: 18px;
  border: 1px solid var(--line-green);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(57, 255, 90, 0.08), rgba(3, 6, 4, 0.62)),
    rgba(8, 14, 10, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), var(--glow);
}

.online-summary-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(74, 255, 94, 0.18);
  background: rgba(57, 255, 90, 0.07);
  color: var(--pixelar);
  box-shadow: inset 0 0 22px rgba(57, 255, 90, 0.08);
}

.online-summary-icon i {
  font-size: 38px;
}

.online-summary-count {
  display: grid;
  justify-items: end;
  line-height: 1;
}

.online-summary-count strong {
  color: var(--text);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.online-summary-count span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.online-roster-card {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line-green);
  border-radius: 10px;
  background: rgba(8, 14, 10, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.online-search {
  position: relative;
  display: block;
}

.online-search input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(74, 255, 94, 0.16);
  border-radius: 5px;
  padding: 0 72px 0 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.online-search input:focus {
  border-color: rgba(74, 255, 94, 0.34);
  box-shadow: 0 0 0 3px rgba(57, 255, 90, 0.045);
}

.online-search kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(74, 255, 94, 0.16);
  border-radius: 4px;
  padding: 2px 6px;
  background: rgba(3, 6, 4, 0.86);
  color: var(--pixelar);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.online-panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.online-panel-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.online-player-list {
  display: grid;
  align-content: start;
  gap: 2px;
  overflow: auto;
  padding: 2px 2px 4px;
}

.tx-player-row {
  min-height: 28px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tx-player-row:hover {
  border-color: rgba(74, 255, 94, 0.18);
  background: rgba(57, 255, 90, 0.055);
  box-shadow: inset 2px 0 0 rgba(57, 255, 90, 0.65);
}

.tx-player-id {
  min-width: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(57, 255, 90, 0.055);
  color: var(--pixelar);
  font-size: 12px;
  font-weight: 900;
}

.tx-player-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-player-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-green);
  border-radius: 7px;
  background: rgba(57, 255, 90, 0.07);
  color: var(--pixelar);
  font-weight: 900;
}

.online-player-avatar.large {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.online-player-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.online-player-modal-backdrop[hidden] {
  display: none;
}

.online-player-modal {
  position: relative;
  width: min(680px, 100%);
  display: grid;
  overflow: visible;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: rgba(8, 14, 10, 0.98);
  box-shadow: var(--shadow), var(--glow);
}

.online-player-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.online-player-modal-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.online-player-modal-head h2 span {
  color: var(--pixelar);
}

.online-player-modal-head button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.online-player-modal-head button:hover {
  color: var(--text);
}

.online-player-modal-body {
  display: grid;
  overflow: visible;
}

.tx-player-modal-layout {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 280px;
}

.tx-player-modal-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.tx-player-modal-nav button {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.tx-player-modal-nav button i {
  font-size: 19px;
}

.tx-player-modal-nav button:hover,
.tx-player-modal-nav button.active {
  border-color: rgba(74, 255, 94, 0.12);
  background: rgba(57, 255, 90, 0.09);
  color: var(--pixelar);
}

.tx-player-modal-content {
  position: relative;
  z-index: 4;
  padding: 18px 20px;
}

.tx-modal-tab {
  display: none;
}

.tx-modal-tab.active {
  display: grid;
  gap: 11px;
}

.tx-modal-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 24px;
}

.tx-modal-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.tx-modal-row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tx-notes {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.tx-notes span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.tx-notes textarea {
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
  outline: none;
}

.tx-notes textarea:focus {
  border-color: var(--line-green-strong);
}

.tx-history-empty,
.tx-ban-summary {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  border: 1px dashed rgba(74, 255, 94, 0.14);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.tx-history-empty i {
  color: var(--pixelar);
  font-size: 28px;
}

.tx-ban-summary span {
  color: var(--pixelar);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tx-ban-summary strong {
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
}

.tx-ban-form {
  display: grid;
  gap: 12px;
}

.tx-ban-form footer,
.tx-action-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.tx-form-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.tx-form-field > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.tx-form-field input,
.tx-form-field textarea,
.tx-form-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
  outline: none;
}

.tx-form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background:
    linear-gradient(45deg, transparent 50%, var(--pixelar) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--pixelar) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, rgba(57, 255, 90, 0.055), rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.34);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tx-form-field select:hover {
  border-color: var(--line-green);
  background:
    linear-gradient(45deg, transparent 50%, var(--pixelar) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--pixelar) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, rgba(57, 255, 90, 0.09), rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.42);
}

.tx-form-field select option {
  background: #080d0a;
  color: var(--text);
  font-weight: 800;
}

.pixelar-select {
  position: relative;
  min-width: 0;
}

.pixelar-select-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line-green);
  border-radius: 6px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(57, 255, 90, 0.055), rgba(0, 0, 0, 0.2)),
    rgba(3, 6, 4, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pixelar-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixelar-select-trigger i {
  color: var(--pixelar);
  font-size: 18px;
  transition: transform 150ms ease;
}

.pixelar-select.open .pixelar-select-trigger,
.pixelar-select-trigger:hover {
  border-color: var(--line-green-strong);
  background:
    linear-gradient(180deg, rgba(57, 255, 90, 0.095), rgba(0, 0, 0, 0.2)),
    rgba(3, 6, 4, 0.96);
  box-shadow: 0 0 0 3px rgba(57, 255, 90, 0.045), var(--glow);
}

.pixelar-select.open .pixelar-select-trigger i {
  transform: rotate(180deg);
}

.pixelar-select-menu {
  position: absolute;
  inset: calc(100% + 6px) 0 auto;
  z-index: 30;
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line-green-strong);
  border-radius: 7px;
  background:
    linear-gradient(rgba(57, 255, 90, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 90, 0.018) 1px, transparent 1px),
    rgba(3, 6, 4, 0.99);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.66), var(--glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.pixelar-select.open .pixelar-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pixelar-select-menu button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.pixelar-select-menu button:hover,
.pixelar-select-menu button.active {
  border-color: rgba(74, 255, 94, 0.16);
  background: rgba(57, 255, 90, 0.085);
  color: var(--text);
  box-shadow: inset 2px 0 0 rgba(57, 255, 90, 0.82);
}

.pixelar-select.disabled {
  opacity: 0.42;
}

.pixelar-select.disabled .pixelar-select-trigger {
  cursor: not-allowed;
  box-shadow: none;
}

.tx-form-field textarea {
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

.tx-form-field input:focus,
.tx-form-field textarea:focus,
.tx-form-field select:focus {
  border-color: var(--line-green-strong);
  box-shadow: 0 0 0 3px rgba(57, 255, 90, 0.045);
}

.tx-form-field input:disabled,
.tx-form-field select:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.tx-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.64fr);
  gap: 8px;
}

.tx-reason-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.tx-reason-line button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
}

.tx-reason-line button:hover {
  border-color: var(--line-green-strong);
  color: var(--pixelar);
  box-shadow: var(--glow);
}

.tx-action-feedback {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-green);
  border-radius: 6px;
  background: rgba(57, 255, 90, 0.055);
  color: var(--pixelar);
  font-size: 12px;
  font-weight: 900;
}

.tx-action-feedback.error {
  border-color: rgba(217, 68, 68, 0.38);
  background: rgba(217, 68, 68, 0.1);
  color: #ffd7d7;
}

.tx-action-dialog-backdrop {
  position: absolute;
  inset: 52px 0 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.tx-action-dialog {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: rgba(8, 14, 10, 0.98);
  box-shadow: var(--shadow), var(--glow);
}

.tx-action-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.tx-action-dialog h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tx-action-dialog h3 i {
  color: var(--pixelar);
  font-size: 18px;
}

.tx-action-dialog header > button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  cursor: pointer;
}

.tx-action-dialog header > button:hover {
  border-color: var(--line-green);
  color: var(--text);
}

.tx-player-modal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.online-modal-copy {
  order: -1;
  margin-right: auto;
}

.online-modal-copy.copied {
  color: var(--pixelar);
}

.hero-panel,
.panel-card,
.stat-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel,
.panel-card:hover,
.stat-card:hover,
.auth-card {
  border-color: var(--line-green);
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--pixelar);
  box-shadow: 0 0 24px rgba(57, 255, 90, 0.42);
}

.hero-panel.compact {
  margin-bottom: 18px;
}

.dashboard-hero {
  align-items: center;
}

.dashboard-statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0 2px;
}

.hero-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.last-update {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-panel h1,
.auth-card h1 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-panel p,
.auth-card p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--pixelar);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.danger {
  color: var(--danger);
}

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

.stat-card {
  padding: 17px;
  background: rgba(8, 14, 10, 0.78);
}

.stat-card span,
.stat-card small {
  color: var(--muted);
}

.stat-card span,
.stat-card strong,
.stat-card small {
  display: block;
}

.stat-card span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-card strong {
  margin: 9px 0 6px;
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stat-card small {
  font-size: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}

.source-strip span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 14, 10, 0.62);
}

.source-strip b,
.source-strip i {
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-strip b {
  color: var(--muted);
}

.source-strip i.is-ok {
  color: var(--pixelar);
}

.source-strip i.is-error {
  color: var(--danger);
}

.source-strip i.is-unavailable {
  color: var(--warning);
}

.dashboard-section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.metric-card {
  position: relative;
  min-height: 132px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 90, 0.16);
  border-radius: 6px;
  background:
    radial-gradient(circle at 82% 45%, rgba(57, 255, 90, 0.045), transparent 13rem),
    linear-gradient(135deg, rgba(8, 19, 12, 0.94), rgba(3, 7, 5, 0.96));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.metric-card:hover {
  border-color: rgba(57, 255, 90, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 24px rgba(57, 255, 90, 0.08);
}

.metric-copy {
  position: relative;
  z-index: 2;
  width: calc(100% - 92px);
}

.metric-icon,
.metric-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.metric-icon {
  position: absolute;
  z-index: 1;
  right: 26px;
  top: 50%;
  width: 64px;
  height: 64px;
  border: 0;
  color: rgba(244, 255, 244, 0.13);
  background: transparent;
  transform: translateY(-50%);
}

.metric-icon i {
  font-size: 70px;
  line-height: 1;
}

.metric-state {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.metric-card.is-ok .metric-state {
  border-color: var(--line-green);
  color: var(--pixelar);
}

.metric-card.is-error .metric-state {
  border-color: rgba(217, 68, 68, 0.34);
  color: var(--danger);
}

.metric-card.is-unavailable .metric-state {
  border-color: rgba(214, 169, 74, 0.32);
  color: var(--warning);
}

.metric-label,
.metric-value,
.metric-source {
  display: block;
}

.metric-label {
  color: rgba(244, 255, 244, 0.45);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.metric-value {
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(28px, 2.2vw, 36px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(244, 255, 244, 0.08);
}

.metric-error {
  margin: 10px 0 0;
  color: var(--warning);
  font-size: 11px;
  line-height: 1.35;
}

.metric-card.is-ok .metric-error {
  display: none;
}

.metric-card.is-ok .metric-state {
  opacity: 0;
}

.metric-source {
  display: none;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(57, 255, 90, 0.45);
  opacity: 0.55;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 90, 0.28), transparent);
  opacity: 0.35;
}

.metric-card.tone-red,
.metric-card.tone-orange {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 82% 45%, rgba(217, 68, 68, 0.035), transparent 13rem),
    linear-gradient(135deg, rgba(15, 12, 10, 0.94), rgba(4, 6, 4, 0.96));
}

.metric-card.tone-red::before {
  background: rgba(217, 68, 68, 0.45);
}

.metric-card.tone-orange::before {
  background: rgba(214, 169, 74, 0.45);
}

.rich-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rich-list-card {
  min-width: 0;
}

.rich-list {
  display: grid;
  gap: 8px;
}

.rich-list-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(3, 6, 4, 0.52);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.rich-list-row[href]:hover {
  border-color: rgba(57, 255, 90, 0.38);
  background: rgba(12, 25, 14, 0.78);
  transform: translateY(-1px);
}

.rich-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(57, 255, 90, 0.22);
  border-radius: 6px;
  color: var(--pixelar);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.rich-player {
  min-width: 0;
}

.rich-player strong,
.rich-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-player strong {
  font-size: 12px;
  font-weight: 950;
}

.rich-player small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
}

.rich-value {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.charts-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 14, 10, 0.62);
}

.charts-toolbar h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chart-card.wide {
  grid-column: 1 / -1;
}

.chart-card canvas {
  width: 100%;
  height: 260px !important;
  max-height: 320px;
  display: block;
}

.chart-card.wide canvas {
  height: 320px !important;
}

.chart-empty {
  margin-top: 12px;
}

.range-control {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
}

.range-control button {
  min-width: 34px;
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.range-control button:hover,
.range-control button.active {
  border-color: var(--line-green);
  background: rgba(57, 255, 90, 0.07);
  color: var(--pixelar);
}

.panel-card {
  padding: 20px;
}

.panel-card:hover,
.stat-card:hover {
  background: var(--panel-hover);
}

.panel-card.wide {
  grid-column: 1 / -1;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-accent,
.badge-success {
  border-color: var(--line-green-strong);
  background: rgba(20, 92, 34, 0.24);
  color: var(--pixelar);
  box-shadow: 0 0 18px rgba(57, 255, 90, 0.1);
}

.badge-muted {
  color: var(--muted);
}

.info-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px 18px;
  margin: 0;
}

.info-list dt {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line-green);
  border-radius: 6px;
  background: rgba(3, 6, 4, 0.72);
  color: #dfffe4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.chip-strong {
  border-color: var(--line-green-strong);
  background: rgba(20, 92, 34, 0.22);
  color: var(--pixelar);
}

.permission-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: rgba(57, 255, 90, 0.045);
  color: var(--muted);
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 13px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 11px;
  align-items: start;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--pixelar);
  box-shadow: 0 0 16px rgba(57, 255, 90, 0.6);
}

.timeline-row strong,
.timeline-row small {
  display: block;
}

.timeline-row strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-row small {
  margin-top: 3px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}

th {
  color: var(--pixelar);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:hover td {
  background: rgba(57, 255, 90, 0.035);
  color: var(--text);
}

.clickable-row {
  cursor: pointer;
}

.page-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-green);
}

.page-toolbar h1 {
  margin: 0;
  color: var(--text);
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  gap: 8px;
  min-width: min(460px, 100%);
}

.search-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 13px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.search-form input:focus {
  border-color: var(--line-green-strong);
  box-shadow: 0 0 0 3px rgba(57, 255, 90, 0.06);
}

.pixelar-native-select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 36px 0 12px;
  background: rgba(3, 6, 4, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logs-filter-card {
  margin-bottom: 18px;
}

.logs-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.logs-filter-form label {
  display: grid;
  gap: 6px;
}

.logs-filter-form label span {
  color: var(--pixelar);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logs-filter-form input,
.logs-filter-form .pixelar-native-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(3, 6, 4, 0.76);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.logs-filter-form input:focus,
.logs-filter-form .pixelar-native-select:focus {
  border-color: var(--line-green-strong);
  box-shadow: 0 0 0 3px rgba(57, 255, 90, 0.06);
}

.logs-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.search-form button,
.table-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-green);
  border-radius: 7px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(20, 92, 34, 0.28), rgba(3, 6, 4, 0.42));
  color: var(--text);
  font: inherit;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-form button:hover,
.table-button:hover {
  border-color: var(--line-green-strong);
  background: linear-gradient(180deg, rgba(57, 255, 90, 0.13), rgba(20, 92, 34, 0.22));
  color: var(--pixelar);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.table-button i {
  color: currentColor;
  font-size: 15px;
}

.table-button.icon-only {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.data-table td strong,
.data-table td small {
  display: block;
}

.data-table td strong {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.data-table td small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
}

.data-table.compact {
  min-width: 720px;
  font-size: 12px;
}

.table-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.vehicle-keys-table {
  min-width: 0;
  table-layout: fixed;
}

.vehicle-keys-table th,
.vehicle-keys-table td {
  padding-right: 7px;
  padding-left: 7px;
}

.vehicle-keys-table th:nth-child(1),
.vehicle-keys-table td:nth-child(1) {
  width: 19%;
}

.vehicle-keys-table th:nth-child(2),
.vehicle-keys-table td:nth-child(2),
.vehicle-keys-table th:nth-child(3),
.vehicle-keys-table td:nth-child(3) {
  width: 16%;
}

.vehicle-keys-table th:nth-child(4),
.vehicle-keys-table td:nth-child(4) {
  width: 24%;
}

.vehicle-keys-table th:nth-child(5),
.vehicle-keys-table td:nth-child(5),
.vehicle-keys-table th:nth-child(6),
.vehicle-keys-table td:nth-child(6) {
  width: 10%;
}

.vehicle-keys-table th:nth-child(7),
.vehicle-keys-table td:nth-child(7) {
  width: 74px;
}

.vehicle-keys-table .table-button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.toolbar-stat {
  min-width: 124px;
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 10px 13px;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: rgba(8, 14, 10, 0.72);
}

.toolbar-stat span {
  color: var(--text);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.toolbar-stat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.properties-map-card {
  margin-bottom: 18px;
}

.properties-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-green);
  border-radius: 10px;
  background:
    linear-gradient(rgba(57, 255, 90, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 90, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(57, 255, 90, 0.08), transparent 52%),
    #020403;
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.54);
}

.properties-map {
  height: min(68vh, 660px);
  min-height: 460px;
  background: transparent;
}

.properties-map-empty {
  position: absolute;
  inset: auto 18px 18px 18px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 4, 3, 0.76);
  color: var(--muted);
  font-size: 12px;
}

.properties-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: rgba(2, 4, 3, 0.86);
}

.properties-map .leaflet-control-zoom a {
  width: 32px;
  height: 32px;
  border: 0;
  border-bottom: 1px solid var(--line-green);
  background: rgba(8, 14, 10, 0.88);
  color: var(--pixelar);
  font-weight: 900;
  line-height: 32px;
}

.properties-map .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.properties-map .leaflet-control-zoom a:hover {
  background: rgba(20, 92, 34, 0.34);
  color: var(--text);
}

.gtav-map-image {
  filter: saturate(0.72) contrast(1.08) brightness(0.62) hue-rotate(68deg);
  opacity: 0.88;
}

.map-image-error::before {
  content: "Carte GTA indisponible";
  position: absolute;
  z-index: 410;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(217, 68, 68, 0.42);
  border-radius: 7px;
  background: rgba(2, 4, 3, 0.84);
  color: #ffd7d7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-marker {
  background: transparent;
}

.property-marker span {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
  border: 1px solid rgba(57, 255, 90, 0.88);
  border-radius: 50%;
  background: rgba(3, 6, 4, 0.86);
  box-shadow: 0 0 16px rgba(57, 255, 90, 0.36);
}

.property-marker span::after,
.property-marker span i {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--pixelar);
}

.property-marker span i {
  inset: 2px;
  border: 1px solid rgba(57, 255, 90, 0.34);
  background: rgba(57, 255, 90, 0.16);
}

.property-leaflet-popup .leaflet-popup-content-wrapper,
.property-leaflet-popup .leaflet-popup-tip {
  border: 1px solid var(--line-green);
  background: rgba(3, 6, 4, 0.96);
  color: var(--text);
  box-shadow: var(--glow);
}

.property-leaflet-popup .leaflet-popup-content {
  margin: 12px;
}

.property-popup span {
  display: block;
  margin-bottom: 4px;
  color: var(--pixelar);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.property-popup strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-popup dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 7px 10px;
  margin: 0;
}

.property-popup dt {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-popup dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.properties-table .table-actions {
  width: 142px;
  text-align: right;
  white-space: nowrap;
}

.table-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

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

.properties-table th:nth-child(7),
.properties-table td:nth-child(7) {
  width: 142px;
}

.inline-action-form {
  display: inline-flex;
  margin: 0;
}

.logs-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.logs-table th[data-sort]::after {
  content: "↕";
  margin-left: 6px;
  color: var(--muted-2);
  font-size: 9px;
}

.logs-table th[data-direction="asc"]::after {
  content: "↑";
  color: var(--pixelar);
}

.logs-table th[data-direction="desc"]::after {
  content: "↓";
  color: var(--pixelar);
}

.logs-table .log-message {
  min-width: 360px;
  max-width: 620px;
  color: var(--text);
  line-height: 1.45;
}

.logs-table .log-message b,
.logs-table .log-message strong {
  color: #f4fff4;
  font-weight: 950;
}

.logs-table .table-button.active {
  border-color: var(--line-green-strong);
  color: var(--pixelar);
  box-shadow: var(--glow);
}

.log-json-row td {
  padding: 0 9px 12px;
  background: rgba(57, 255, 90, 0.025);
}

.log-json-row pre {
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--muted);
  font-size: 11px;
  white-space: pre-wrap;
}

.bourse-overview-card {
  margin-bottom: 18px;
}

.bourse-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bourse-summary-grid span {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 6, 4, 0.52);
}

.bourse-summary-grid b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bourse-summary-grid strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
}

.bourse-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
}

.bourse-variation {
  font-weight: 950;
}

.bourse-variation.positive {
  color: var(--pixelar);
}

.bourse-variation.negative {
  color: var(--danger);
}

.bourse-variation.neutral {
  color: var(--muted);
}

.administration-intro {
  margin-bottom: 18px;
}

.administration-role-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.role-picker-card {
  position: sticky;
  top: 84px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  max-height: calc(100vh - 110px);
  overflow: hidden;
}

.filter-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(3, 6, 4, 0.74);
  color: var(--muted);
}

.filter-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.filter-input input::placeholder {
  color: var(--muted-2);
}

.role-picker-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.role-picker-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(3, 6, 4, 0.44);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.role-picker-item:hover,
.role-picker-item.active {
  border-color: rgba(57, 255, 90, 0.42);
  background: rgba(12, 25, 14, 0.86);
  color: var(--text);
}

.role-picker-item strong {
  display: block;
  overflow: hidden;
  color: currentColor;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.role-picker-item small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-picker-item i {
  color: var(--pixelar);
}

.role-editor-stack {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.admin-role-card form {
  display: grid;
  gap: 16px;
}

.admin-role-head,
.admin-role-head > div,
.admin-role-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-role-head > div {
  justify-content: flex-start;
  min-width: 0;
}

.admin-role-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-role-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.role-color-dot {
  width: 14px;
  height: 42px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(57, 255, 90, 0.18);
}

.role-color-dot.compact {
  width: 10px;
  height: 34px;
  box-shadow: none;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.switch-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--pixelar);
}

.admin-role-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
  gap: 12px;
  min-width: 0;
}

.admin-role-settings label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-role-settings span,
.permission-matrix h3 {
  color: var(--pixelar);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-role-settings input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(3, 6, 4, 0.78);
  color: var(--text);
  font: inherit;
}

.permission-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.permission-matrix.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.permission-matrix section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 6, 4, 0.42);
}

.permission-matrix h3 {
  margin: 0 0 10px;
}

.permission-checks {
  display: grid;
  gap: 8px;
}

.permission-checks label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.permission-checks label span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.permission-checks label strong {
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.permission-checks label small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
}

.permission-checks input {
  margin-top: 1px;
  accent-color: var(--pixelar);
}

.permission-toolbar {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.permission-toolbar strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.permission-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-group-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: rgba(3, 6, 4, 0.62);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.permission-group-tabs button:hover,
.permission-group-tabs button.active {
  border-color: rgba(57, 255, 90, 0.48);
  background: rgba(18, 63, 28, 0.36);
  color: var(--text);
}

.permission-matrix section.is-hidden {
  display: none;
}

.table-button.danger-lite {
  border-color: rgba(217, 68, 68, 0.42);
  background: rgba(217, 68, 68, 0.12);
}

.table-button.danger-lite:hover {
  border-color: rgba(217, 68, 68, 0.72);
  background: rgba(217, 68, 68, 0.18);
  color: #ffd7d7;
  box-shadow: 0 0 22px rgba(217, 68, 68, 0.12);
}

.player-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.player-toolbar {
  align-items: center;
  min-height: 78px;
  margin-bottom: 16px;
}

.player-toolbar h1 {
  font-size: 28px;
  letter-spacing: 0.1em;
}

.player-subline {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.player-info-card,
.player-flags-card,
.player-actions-card,
.sanctions-card {
  border-color: rgba(255, 255, 255, 0.075);
}

.player-info-card .card-head,
.player-flags-card .card-head,
.player-actions-card .card-head,
.sanctions-card .card-head {
  min-height: 40px;
  margin-bottom: 14px;
}

.player-info-card .card-head h2,
.player-flags-card .card-head h2,
.player-actions-card .card-head h2,
.sanctions-card .card-head h2 {
  font-size: 12px;
  letter-spacing: 0.15em;
}

.info-list.dense {
  grid-template-columns: 126px 1fr;
  gap: 10px 16px;
}

.player-info-card .info-list.dense {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.player-info-card .info-list.dense dt,
.player-info-card .info-list.dense dd {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.player-info-card .info-list.dense dt {
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(155, 168, 157, 0.82);
  font-size: 10px;
}

.player-info-card .info-list.dense dd {
  padding: 0 13px;
  color: rgba(244, 255, 244, 0.92);
  font-size: 12px;
  font-weight: 750;
}

.player-info-card .info-list.dense dt:nth-last-child(2),
.player-info-card .info-list.dense dd:last-child {
  border-bottom: 0;
}

.flag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.flag-grid span {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(57, 255, 90, 0.045), rgba(0, 0, 0, 0.22));
}

.flag-grid b {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flag-grid strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.player-block {
  margin-top: 14px;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.action-tile {
  min-height: 104px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px 10px;
  border: 1px solid rgba(74, 255, 94, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(13, 22, 15, 0.92), rgba(3, 6, 4, 0.62));
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.action-tile:hover {
  border-color: var(--line-green-strong);
  background: rgba(57, 255, 90, 0.055);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.action-tile i {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-green);
  border-radius: 7px;
  color: var(--pixelar);
  font-size: 19px;
  background: rgba(57, 255, 90, 0.06);
}

.action-tile span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.action-tile small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.action-tile.danger i {
  border-color: rgba(217, 68, 68, 0.42);
  color: #ffb4b4;
  background: rgba(217, 68, 68, 0.1);
}

.action-tile.warning i {
  border-color: rgba(214, 169, 74, 0.42);
  color: #ffd98a;
  background: rgba(214, 169, 74, 0.1);
}

.action-tile.muted {
  opacity: 0.58;
  cursor: default;
}

.action-tile.muted:hover {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.18);
  transform: none;
  box-shadow: none;
}

.character-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 16px;
  padding: 12px;
  border: 1px solid rgba(74, 255, 94, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.character-tabs,
.inline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.character-tabs a,
.inline-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(244, 255, 244, 0.72);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.character-tabs a {
  gap: 8px;
}

.character-tabs a b {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(217, 68, 68, 0.42);
  border-radius: 4px;
  background: rgba(217, 68, 68, 0.14);
  color: #ffd7d7;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.character-tabs a.is-wiped {
  border-color: rgba(217, 68, 68, 0.42);
  background:
    linear-gradient(180deg, rgba(217, 68, 68, 0.16), rgba(48, 8, 8, 0.34)),
    rgba(8, 14, 10, 0.72);
  color: #ffd7d7;
  box-shadow: inset 2px 0 0 rgba(217, 68, 68, 0.72);
}

.character-tabs a.is-wiped:hover,
.character-tabs a.is-wiped.active {
  border-color: rgba(217, 68, 68, 0.72);
  background:
    linear-gradient(180deg, rgba(217, 68, 68, 0.2), rgba(48, 8, 8, 0.42)),
    rgba(8, 14, 10, 0.78);
  color: #fff1f1;
  box-shadow: 0 0 22px rgba(217, 68, 68, 0.13), inset 2px 0 0 rgba(217, 68, 68, 0.9);
}

.character-tabs a:hover,
.character-tabs a.active,
.inline-tabs button:hover,
.inline-tabs button.active {
  border-color: var(--line-green-strong);
  background: rgba(57, 255, 90, 0.07);
  color: var(--pixelar);
  box-shadow: 0 0 18px rgba(57, 255, 90, 0.08);
}

.character-info {
  padding-top: 0;
  border-top: 0;
}

.character-info-grid {
  grid-template-columns: 126px minmax(0, 1fr) 126px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.character-info-grid dt,
.character-info-grid dd {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.character-info-grid dt {
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(155, 168, 157, 0.82);
  font-size: 10px;
}

.character-info-grid dd {
  padding: 0 13px;
  color: rgba(244, 255, 244, 0.92);
  font-size: 12px;
  font-weight: 750;
}

.character-info-grid dt:nth-last-child(2),
.character-info-grid dd:last-child {
  border-bottom: 0;
}

.copy-command {
  min-height: 32px;
  border: 1px solid var(--line-green);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(57, 255, 90, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.sanctions-grid {
  align-items: start;
}

.sanctions-card .data-table.compact {
  min-width: 0;
  table-layout: fixed;
}

.sanctions-card td {
  color: rgba(244, 255, 244, 0.72);
  font-size: 12px;
}

.sanctions-card td:first-child {
  color: var(--text);
  font-weight: 900;
}

.sanctions-card th:first-child,
.sanctions-card td:first-child {
  width: 56px;
}

.sanctions-card th:last-child,
.sanctions-card td:last-child {
  width: 96px;
}

.sanctions-card th,
.sanctions-card td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-command:hover {
  border-color: var(--line-green-strong);
  color: var(--pixelar);
  box-shadow: var(--glow);
}

.character-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.character-data-grid section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.character-data-grid h3 {
  margin: 0 0 12px;
  color: var(--pixelar);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mini-metrics span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  background: rgba(3, 6, 4, 0.58);
}

.mini-metrics b,
.mini-metrics strong {
  display: block;
}

.mini-metrics b {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-metrics strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.json-stack {
  display: grid;
  gap: 8px;
}

.json-stack details {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(3, 6, 4, 0.5);
}

.json-stack summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.json-stack pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.vehicle-json {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(3, 6, 4, 0.5);
}

.vehicle-json summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: var(--pixelar);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.vehicle-json pre {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.inventory-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) max-content;
  gap: 14px;
  align-items: start;
}

.inventory-meta {
  position: sticky;
  top: 92px;
}

.pixelar-inventory-panel {
  width: fit-content;
  max-width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(20, 20, 20, 0.54);
  box-shadow: var(--shadow);
}

.pixelar-inventory-header {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.pixelar-inventory-header > div:first-child {
  min-width: 0;
}

.pixelar-inventory-header span,
.pixelar-inventory-header strong {
  display: block;
}

.pixelar-inventory-header span {
  color: var(--pixelar);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pixelar-inventory-header strong {
  margin-top: 4px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-header-stats {
  display: flex;
  gap: 8px;
}

.inventory-header-stats span,
.inventory-header-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(20, 20, 20, 0.55);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.inventory-header-action {
  border-color: var(--line-green);
  color: var(--text);
  cursor: pointer;
}

.inventory-header-action:hover {
  border-color: var(--line-green-strong);
  color: var(--pixelar);
  box-shadow: var(--glow);
}

.inventory-slots-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 90px));
  gap: 8px;
  justify-content: start;
  align-content: start;
  width: calc((90px * 6) + (8px * 5));
  max-width: 100%;
  overflow: visible;
}

.inventory-slot {
  position: relative;
  aspect-ratio: 1;
  min-height: 90px;
  border: 1px solid rgba(113, 113, 113, 0.25);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 50%, rgba(25, 25, 30, 0.5) 100%);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.inventory-slot:hover {
  border-color: rgba(200, 200, 200, 0.5);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 50%, rgba(25, 25, 30, 0.8) 100%);
}

.inventory-slot.empty {
  border-color: rgba(113, 113, 113, 0.16);
  background: linear-gradient(180deg, rgba(12, 14, 13, 0.38), rgba(8, 10, 9, 0.44));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.18);
}

.inventory-slot.empty:hover {
  border-color: var(--line-green);
  background: rgba(57, 255, 90, 0.025);
}

.inventory-slot[data-rare="Commun"] {
  border-color: rgba(180, 180, 180, 0.25);
  box-shadow: inset 0 0 30px rgba(180, 180, 180, 0.12);
}

.inventory-slot[data-rare="Inhabituel"] {
  border-color: rgba(111, 190, 99, 0.28);
  box-shadow: inset 0 0 30px rgba(111, 190, 99, 0.14);
}

.inventory-slot[data-rare="Rare"] {
  border-color: rgba(99, 149, 190, 0.3);
  box-shadow: inset 0 0 30px rgba(99, 149, 190, 0.14);
}

.inventory-slot[data-rare="Epique"],
.inventory-slot[data-rare="Épique"] {
  border-color: rgba(163, 99, 190, 0.3);
  box-shadow: inset 0 0 30px rgba(163, 99, 190, 0.14);
}

.inventory-slot[data-rare="Legendaire"],
.inventory-slot[data-rare="Légendaire"] {
  border-color: rgba(203, 176, 65, 0.3);
  box-shadow: inset 0 0 30px rgba(203, 176, 65, 0.14);
}

.inventory-slot[data-rare="Mythique"] {
  border-color: rgba(190, 60, 60, 0.3);
  box-shadow: inset 0 0 30px rgba(190, 60, 60, 0.14);
}

.inventory-slot img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 75%;
  max-height: 75%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 150ms ease;
}

.inventory-slot:hover img {
  transform: translate(-50%, -50%) scale(1.12);
}

.slot-quantity,
.slot-weight,
.slot-index {
  position: absolute;
  z-index: 1;
  color: rgba(244, 255, 244, 0.76);
  font-size: 10px;
  font-weight: 500;
}

.slot-quantity {
  top: 3px;
  left: 4px;
}

.slot-weight {
  right: 4px;
  bottom: 3px;
}

.slot-index {
  top: 3px;
  right: 4px;
  color: rgba(155, 168, 157, 0.38);
  font-weight: 800;
}

.inventory-slot:not(.empty) .slot-index {
  opacity: 0;
}

.inventory-slot .durability-bar {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  overflow: hidden;
  border-radius: 0 0 3px 3px;
  background: rgba(0, 0, 0, 0.4);
}

.inventory-slot .durability-fill {
  display: block;
  height: 100%;
  background: var(--pixelar);
}

.inventory-item-tooltip {
  position: fixed;
  z-index: 9999;
  width: min(340px, calc(100vw - 24px));
  padding: 10px;
  pointer-events: none;
  border: 1px solid rgba(74, 255, 94, 0.18);
  border-radius: 4px;
  background: rgba(3, 6, 4, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 26px rgba(57, 255, 90, 0.08);
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.inventory-item-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-header {
  display: flex;
  align-items: center;
  min-height: 80px;
}

.tooltip-img {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(8, 14, 10, 0.78);
}

.tooltip-img img {
  max-width: 60px;
  max-height: 60px;
}

.tooltip-img[data-rare="Commun"] { box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.08); }
.tooltip-img[data-rare="Inhabituel"] { border-color: rgba(111, 190, 99, 0.45); box-shadow: inset 0 0 26px rgba(111, 190, 99, 0.18); }
.tooltip-img[data-rare="Rare"] { border-color: rgba(99, 149, 210, 0.45); box-shadow: inset 0 0 26px rgba(99, 149, 210, 0.18); }
.tooltip-img[data-rare="Epique"],
.tooltip-img[data-rare="Épique"] { border-color: rgba(163, 99, 190, 0.5); box-shadow: inset 0 0 26px rgba(163, 99, 190, 0.2); }
.tooltip-img[data-rare="Legendaire"],
.tooltip-img[data-rare="Légendaire"] { border-color: rgba(190, 140, 60, 0.55); box-shadow: inset 0 0 26px rgba(190, 140, 60, 0.22); }
.tooltip-img[data-rare="Mythique"] { border-color: rgba(190, 60, 80, 0.55); box-shadow: inset 0 0 26px rgba(190, 60, 80, 0.22); }

.tooltip-infos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.tooltip-label {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.tooltip-rare {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tooltip-rare[data-rare="Inhabituel"] { background: rgba(111, 190, 99, 0.22); color: rgba(150, 230, 130, 0.95); }
.tooltip-rare[data-rare="Rare"] { background: rgba(99, 149, 210, 0.22); color: rgba(140, 185, 255, 0.95); }
.tooltip-rare[data-rare="Epique"],
.tooltip-rare[data-rare="Épique"] { background: rgba(163, 99, 190, 0.24); color: rgba(210, 155, 245, 0.95); }
.tooltip-rare[data-rare="Legendaire"],
.tooltip-rare[data-rare="Légendaire"] { background: rgba(190, 140, 60, 0.25); color: rgba(240, 190, 110, 0.95); }
.tooltip-rare[data-rare="Mythique"] { background: rgba(190, 60, 80, 0.25); color: rgba(240, 110, 130, 0.95); }

.tooltip-description {
  margin-top: 8px;
  color: rgba(244, 255, 244, 0.72);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.tooltip-separator {
  width: 100%;
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(74, 255, 94, 0.22), rgba(255, 255, 255, 0.04));
}

.tooltip-genetics {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(74, 255, 94, 0.12);
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.28);
}

.tooltip-genetics-label,
.tooltip-genetics-stability {
  color: rgba(244, 255, 244, 0.55);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.tooltip-genetics-label {
  margin-bottom: 7px;
}

.tooltip-genetics-stability {
  margin-top: 7px;
}

.tooltip-genetics-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tooltip-gene {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: 10px;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
}

.tooltip-gene.good {
  background: rgba(75, 200, 75, 0.72);
}

.tooltip-gene.bad {
  background: rgba(190, 60, 60, 0.72);
}

.tooltip-gene-dash {
  color: rgba(255, 255, 255, 0.34);
  font-size: 9px;
}

.tooltip-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tooltip-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 500;
}

.tooltip-stat-label {
  font-weight: 900;
}

.tooltip-stat:nth-child(6n+1) { background: rgba(99, 149, 210, 0.12); border-color: rgba(99, 149, 210, 0.3); color: rgba(140, 185, 255, 0.9); }
.tooltip-stat:nth-child(6n+2) { background: rgba(111, 190, 99, 0.12); border-color: rgba(111, 190, 99, 0.3); color: rgba(150, 230, 130, 0.9); }
.tooltip-stat:nth-child(6n+3) { background: rgba(190, 140, 60, 0.12); border-color: rgba(190, 140, 60, 0.3); color: rgba(240, 185, 100, 0.9); }
.tooltip-stat:nth-child(6n+4) { background: rgba(163, 99, 190, 0.12); border-color: rgba(163, 99, 190, 0.3); color: rgba(200, 145, 240, 0.9); }
.tooltip-stat:nth-child(6n+5) { background: rgba(190, 60, 80, 0.12); border-color: rgba(190, 60, 80, 0.3); color: rgba(240, 110, 130, 0.9); }
.tooltip-stat:nth-child(6n+6) { background: rgba(60, 190, 180, 0.12); border-color: rgba(60, 190, 180, 0.3); color: rgba(100, 235, 225, 0.9); }

.inventory-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 5px;
}

.action-feedback {
  margin-bottom: 14px;
  border-color: var(--line-green);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.inventory-modal {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: rgba(8, 14, 10, 0.98);
  box-shadow: var(--shadow), var(--glow);
}

.announcement-modal {
  width: min(520px, 100%);
}

.announcement-modal .table-button {
  width: 100%;
}

.confirm-modal {
  border-color: rgba(217, 68, 68, 0.42);
  box-shadow: var(--shadow), 0 0 30px rgba(217, 68, 68, 0.1);
}

.confirm-modal-message {
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(217, 68, 68, 0.22);
  border-radius: 7px;
  background: rgba(217, 68, 68, 0.08);
  color: rgba(244, 255, 244, 0.84);
  line-height: 1.45;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  cursor: pointer;
}

.inventory-modal label {
  display: grid;
  gap: 7px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-modal input,
.inventory-modal textarea,
.inventory-modal select {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font: inherit;
  outline: none;
}

.inventory-modal textarea {
  min-height: 92px;
  resize: vertical;
  padding: 10px 11px;
}

.inventory-modal select {
  text-transform: uppercase;
}

.inventory-modal input:focus,
.inventory-modal textarea:focus,
.inventory-modal select:focus {
  border-color: var(--line-green-strong);
}

.ghost-button,
.discord-button,
.secondary-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line-green);
  border-radius: 7px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.ghost-button,
.secondary-button {
  background: rgba(0, 0, 0, 0.18);
}

.ghost-button:hover,
.secondary-button:hover {
  border-color: var(--line-green-strong);
  background: rgba(57, 255, 90, 0.06);
  box-shadow: var(--glow);
}

.discord-button {
  width: 100%;
  margin-top: 22px;
  min-height: 48px;
  border-color: var(--line-green-strong);
  background: linear-gradient(180deg, rgba(57, 255, 90, 0.2), rgba(20, 92, 34, 0.34));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), var(--glow);
}

.discord-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 30px rgba(57, 255, 90, 0.18);
}

.discord-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pixelar);
  box-shadow: 0 0 16px rgba(57, 255, 90, 0.72);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  position: relative;
  width: min(470px, 100%);
  padding: 30px;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pixelar), transparent);
  opacity: 0.5;
}

.auth-logo {
  margin-bottom: 28px;
}

.auth-note {
  font-size: 12px;
}

.danger-card {
  text-align: left;
}

.danger-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(217, 68, 68, 0.36);
  border-radius: 8px;
  background: rgba(217, 68, 68, 0.12);
  color: #ffd6d6;
  font-size: 24px;
  font-weight: 900;
}

.danger-card .secondary-button {
  border-color: rgba(217, 68, 68, 0.34);
}

.placeholder-card {
  max-width: 780px;
}

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

  .online-panel-open .admin-main {
    padding-right: 28px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-green);
  }

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

  .topbar {
    position: static;
    inset: auto;
    height: auto;
    padding: 14px 18px;
  }

  .topbar-left,
  .session-indicator {
    display: none;
  }

  .admin-main {
    margin-left: 0;
    padding: 22px 16px 32px;
  }

  .online-panel {
    inset: auto 0 0 auto;
    width: min(360px, calc(100vw - 48px));
    max-height: 72vh;
    border-top: 1px solid var(--line-green);
  }

  .online-panel.collapsed {
    transform: translateX(min(360px, calc(100vw - 48px)));
  }

  .online-panel-toggle {
    top: 14px;
  }

  .content-grid,
  .stats-grid,
  .source-strip,
  .metric-grid,
  .charts-grid,
  .admin-action-grid,
  .player-summary-grid,
  .character-data-grid,
  .inventory-shell {
    grid-template-columns: 1fr;
  }

  .inventory-meta {
    position: static;
  }

  .pixelar-inventory-panel {
    width: 100%;
  }

  .inventory-slots-grid {
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .character-info-grid {
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form {
    min-width: 0;
  }

  .hero-panel {
    display: block;
  }

  .hero-actions {
    justify-items: start;
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .profile-chip {
    min-width: 0;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .hero-panel h1,
  .auth-card h1 {
    font-size: 27px;
  }

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

  .search-form {
    flex-direction: column;
  }

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

  .character-tabs a,
  .inline-tabs button {
    flex: 1 1 100%;
  }

  .character-action-bar .table-button,
  .character-action-bar .inline-action-form {
    width: 100%;
  }

  .character-action-bar .table-button {
    justify-content: center;
  }

  .inventory-slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
