.is-hidden {
  display: none !important;
}

.form-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #fb8b9c;
  font-size: 10px;
}

.remember-device {
  margin-top: 14px !important;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  color: #7f8fa1 !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}

.remember-device input {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 auto;
  accent-color: var(--mint);
}

.result-status {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
}

.location-list button {
  cursor: default;
}

.location-list button:hover {
  background: transparent;
}

.location-list .location-progress {
  grid-column: 2 / -1;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #1b2632;
  color: var(--mint);
  appearance: none;
}

.location-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: #1b2632;
}

.location-progress::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

.location-progress::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

.location-player { background: #5eead4 !important; }
.location-bag { background: #94a3b8 !important; }
.location-vehicle_trunk { background: #60a5fa !important; }
.location-vehicle_glovebox { background: #fb7185 !important; }
.location-property_storage { background: #f59e0b !important; }
.location-job_storage { background: #a78bfa !important; }
.location-crew_house_storage { background: #34d399 !important; }
.location-legacy_prison_storage { background: #f97316 !important; }
.location-legacy_storage { background: #eab308 !important; }
.location-private_storage { background: #67e8f9 !important; }
.location-other_storage { background: #64748b !important; }
.location-weapon_component { background: #f472b6 !important; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 380px;
  padding: 12px 15px;
  border: 1px solid rgba(72, 224, 193, 0.26);
  border-radius: 9px;
  background: #122019;
  color: #c9fff3;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-size: 11px;
}

.toast.error {
  border-color: rgba(251, 113, 133, 0.3);
  background: #24141a;
  color: #ffc3cc;
}

.metadata-preview {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: #758496;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.reclaim-inline-button {
  border: 1px solid rgba(251, 113, 133, 0.36);
  border-radius: 8px;
  background: rgba(251, 113, 133, 0.12);
  color: #ff9aaa;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  padding: 7px 9px;
}

.reclaim-inline-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

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

.item-cell > span:last-child {
  min-width: 0;
}

.item-image-frame,
.item-image-fallback {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(72, 224, 193, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(72, 224, 193, 0.1), transparent 55%),
    rgba(9, 18, 27, 0.92);
}

.item-image-frame img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.item-image-frame span,
.item-image-fallback {
  color: var(--mint);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.item-image-frame span {
  display: none;
}

.item-image-frame.image-missing img {
  display: none;
}

.item-image-frame.image-missing span {
  display: grid;
}

.profile-item-cell {
  min-width: 220px;
}

.loading-row td {
  height: 260px;
  color: var(--muted);
  text-align: center;
}

.history-empty {
  padding: 25px 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.detail-list strong,
.detail-list pre {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-metadata-row {
  align-items: start !important;
  flex-direction: column;
  gap: 8px;
}

.detail-metadata-row pre {
  width: 100%;
  max-height: 180px;
  margin: 0;
  padding: 9px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: #a9bac9;
  font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.owner-items-button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(72, 224, 193, 0.3);
  border-radius: 7px;
  background: rgba(72, 224, 193, 0.08);
  color: var(--mint);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.owner-items-button:hover:not(:disabled) {
  background: rgba(72, 224, 193, 0.14);
}

.owner-items-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.player-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.player-link:hover strong {
  color: var(--mint);
}

.player-link:disabled {
  cursor: default;
}

.online-workspace {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.online-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.online-panel {
  min-height: 430px;
}

.offline-panel {
  min-height: 300px;
}

.online-toolbar {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 170px;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.offline-toolbar {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 130px;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.online-toolbar input,
.online-toolbar select,
.offline-toolbar input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #0a141e;
  color: #dce7ed;
  font-size: 10px;
}

.online-toolbar input:focus,
.online-toolbar select:focus,
.offline-toolbar input:focus {
  border-color: rgba(72, 224, 193, 0.45);
}

.moderation-actions {
  display: flex;
  gap: 7px;
}

.danger-button,
.danger-soft-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
}

.danger-button {
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.17);
  color: #ff9baa;
}

.danger-soft-button {
  border: 1px solid rgba(248, 184, 78, 0.32);
  background: rgba(248, 184, 78, 0.11);
  color: #f9bd57;
}

.danger-button:disabled,
.danger-soft-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.status-pill {
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.12);
  color: #84baff;
  font-size: 9px;
  font-weight: 800;
}

.status-done {
  background: rgba(72, 224, 193, 0.1);
  color: var(--mint);
}

.status-failed {
  background: rgba(251, 113, 133, 0.12);
  color: #ff9baa;
}

.risk-badge {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 900;
}

.risk-clean {
  background: rgba(72, 224, 193, 0.09);
  color: var(--mint);
}

.risk-warning {
  background: rgba(248, 184, 78, 0.13);
  color: #f9bd57;
}

.risk-critical {
  background: rgba(251, 113, 133, 0.14);
  color: #ff9baa;
}

.moderation-grid {
  grid-template-columns: minmax(560px, 1fr) 360px;
}

.ban-list {
  max-height: 445px;
  padding: 14px;
  display: grid;
  gap: 10px;
  overflow: auto;
}

.ban-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(12, 24, 35, 0.7);
}

.ban-card h3 {
  margin: 0 0 5px;
  color: #f1f6f8;
  font-size: 12px;
}

.ban-card p {
  margin: 0 0 11px;
  color: #9aabba;
  font-size: 10px;
}

.ban-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ban-card div {
  min-width: 0;
}

.ban-card dt {
  color: #657789;
  font-size: 8px;
  text-transform: uppercase;
}

.ban-card dd {
  margin: 2px 0 0;
  color: #c0ccd4;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.unban-button {
  width: 100%;
  min-height: 32px;
  margin-top: 12px;
  border: 1px solid rgba(72, 224, 193, 0.25);
  border-radius: 7px;
  background: rgba(72, 224, 193, 0.08);
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
}

.unban-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.player-profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  background: rgba(2, 7, 12, 0.76);
  backdrop-filter: blur(8px);
}

.player-profile-drawer {
  width: min(1180px, calc(100vw - 70px));
  height: 100vh;
  overflow: auto;
  border-left: 1px solid rgba(72, 224, 193, 0.25);
  background:
    radial-gradient(circle at 18% 0%, rgba(24, 93, 83, 0.18), transparent 32%),
    #081019;
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.5);
}

.profile-drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 25, 0.94);
  backdrop-filter: blur(14px);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(72, 224, 193, 0.28);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(72, 224, 193, 0.2), rgba(50, 95, 120, 0.14));
  color: var(--mint);
  font-size: 16px;
  font-weight: 800;
}

.profile-identity h2 {
  margin: 4px 0 5px;
  color: #f3f8fb;
  font-size: 22px;
}

.profile-identity p:last-child {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.profile-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1721;
  color: #c6d3dc;
  cursor: pointer;
  font-size: 24px;
}

.profile-close:hover {
  border-color: rgba(72, 224, 193, 0.35);
  color: var(--mint);
}

.profile-loading {
  display: grid;
  min-height: 420px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.profile-body {
  padding: 24px 28px 40px;
}

.profile-risk-strip {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(72, 224, 193, 0.2);
  border-radius: 12px;
  background: rgba(72, 224, 193, 0.06);
}

.profile-risk-strip.risk-high {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.08);
}

.profile-risk-strip div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-risk-strip span,
.profile-metrics span {
  color: #708193;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-risk-strip strong {
  color: var(--mint);
  font-size: 22px;
}

.profile-risk-strip.risk-high strong {
  color: #fb8b9c;
}

.profile-risk-strip p {
  margin: 0;
  color: #b9c7d0;
  font-size: 11px;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.profile-metrics article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 24, 35, 0.75);
}

.profile-metrics strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #f0f6f9;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.profile-tabs button {
  padding: 11px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #768696;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-tabs button.active {
  border-bottom-color: var(--mint);
  color: var(--mint);
}

.profile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.profile-toolbar input {
  width: min(480px, 70%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #0a141e;
  color: #dce7ed;
  font-size: 10px;
}

.profile-toolbar input:focus {
  border-color: rgba(72, 224, 193, 0.45);
}

.profile-toolbar span {
  color: var(--muted);
  font-size: 10px;
}

.profile-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.profile-table th {
  position: sticky;
  top: 108px;
  z-index: 1;
  padding: 10px 12px;
  background: #0c1721;
  color: #637588;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
}

.profile-table td {
  max-width: 310px;
  padding: 11px 12px;
  border-top: 1px solid rgba(63, 79, 94, 0.22);
  color: #aebdc7;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.profile-table td strong {
  display: block;
  margin-bottom: 3px;
  color: #e7eff3;
}

.profile-table td small {
  color: #657789;
  font-size: 9px;
}

.profile-table .critical-number {
  color: #fb8b9c;
}

.profile-alert-list,
.profile-history-list,
.profile-vehicle-grid {
  display: grid;
  gap: 10px;
}

.profile-alert,
.profile-history-event,
.profile-vehicle {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 24, 35, 0.7);
}

.profile-alert {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
}

.profile-alert-severity {
  align-self: start;
  padding: 5px 7px;
  border-radius: 5px;
  color: #c9d5dc;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.severity-critical {
  background: rgba(251, 113, 133, 0.18);
  color: #ff9baa;
}

.severity-high {
  background: rgba(245, 158, 11, 0.16);
  color: #f9bd57;
}

.severity-medium {
  background: rgba(96, 165, 250, 0.15);
  color: #84baff;
}

.profile-alert h3,
.profile-history-event h3,
.profile-vehicle h3 {
  margin: 0 0 5px;
  color: #e9f1f4;
  font-size: 12px;
}

.profile-alert p,
.profile-history-event p,
.profile-vehicle p {
  margin: 0;
  color: #8192a0;
  font-size: 10px;
  line-height: 1.55;
}

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

.profile-vehicle dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
}

.profile-vehicle dt {
  color: #657789;
  font-size: 8px;
  text-transform: uppercase;
}

.profile-vehicle dd {
  margin: 2px 0 0;
  color: #b8c5ce;
  font-size: 10px;
}

.profile-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

body.profile-open {
  overflow: hidden;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 720px) {
  .mobile-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 20px;
    background: rgba(5, 12, 18, 0.94);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    position: relative;
    display: grid;
    gap: 3px;
    min-height: 50px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.72);
    color: #91a4b7;
    font: inherit;
  }

  .mobile-nav-item span {
    color: #2dd4bf;
    font-size: 17px;
    line-height: 1;
  }

  .mobile-nav-item strong {
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-nav-item em {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 20px;
    padding: 3px 5px;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.9);
    color: white;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-nav-item.active {
    border-color: rgba(45, 212, 191, 0.7);
    background: rgba(20, 184, 166, 0.18);
    color: #effffb;
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.18);
  }

  .workspace {
    padding-bottom: 96px !important;
  }

  .toast {
    right: 15px;
    bottom: 92px;
    left: 15px;
  }

  .player-profile-drawer {
    width: 100vw;
  }

  .profile-drawer-head,
  .profile-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .profile-risk-strip {
    grid-template-columns: 1fr;
  }

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

  .profile-vehicle-grid {
    grid-template-columns: 1fr;
  }

  .online-metrics,
  .online-toolbar,
  .moderation-grid {
    grid-template-columns: 1fr;
  }
}
