.hidden { display: none !important; }

#cabinetNav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 3px solid #5c4630;
}

.view { max-width: 920px; }

.card {
  max-width: 820px;
  margin: 0 0 1rem;
  padding: 1.25rem 1.35rem 1.4rem;
  background: var(--panel);
  border: 3px solid #5c4630;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.card h1 {
  margin: 0;
  font-size: 1.45rem;
}

.muted { color: var(--muted); }

.panel { display: none; }
.panel.active { display: block; }

.hero { display: flex; gap: 1rem; align-items: center; }

.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--grass-dark);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: inset -3px -3px 0 #2a5418, inset 3px 3px 0 var(--grass-light);
}

.balance {
  margin: 0.35rem 0;
  color: var(--grass-light);
  font-size: 1.15rem;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.78rem;
}

.badge.online { color: var(--grass-light); }

#playerUuid {
  margin: 0.15rem 0 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.list { display: flex; flex-direction: column; }

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 2px solid rgba(92, 70, 48, 0.7);
}

.item:last-child { border-bottom: 0; }

.item-info h3 { margin: 0; font-size: 1rem; color: var(--ink); }
.item-info p { margin: 0.2rem 0 0; }

.price { color: var(--grass-light); font-weight: 700; white-space: nowrap; }
.item-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.25);
}

.btn {
  border: 0;
  padding: 0.45rem 0.8rem;
  color: #14210c;
  background: var(--grass);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 var(--grass-dark), inset 2px 2px 0 var(--grass-light);
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn.secondary {
  color: var(--ink);
  background: #3a3228;
  box-shadow: inset -2px -2px 0 #241c14, inset 2px 2px 0 #6a5a46;
}

.btn.danger {
  color: #fff;
  background: #6b2a22;
  box-shadow: inset -2px -2px 0 #3d1612, inset 2px 2px 0 #a85a4e;
}

.login-form { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.8rem; }
.login-form input,
.login-form button { width: 100%; }

.center { max-width: 440px; }

input {
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  border: 2px solid #5c4630;
  padding: 0.45rem 0.6rem;
  font: inherit;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.06);
}

.rent-row,
.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.55rem;
}

.rent-row input,
.price-row input { width: 7rem; }

.item.admin-item { align-items: stretch; }

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: 10;
  max-width: 90vw;
  padding: 0.7rem 1rem;
  background: var(--stone);
  color: var(--ink);
  border: 3px solid #5c4630;
  border-bottom: 4px solid var(--grass);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.toast.error { border-bottom-color: #a85a4e; }

@media (max-width: 860px) {
  #cabinetNav { margin-top: 0.35rem; padding-top: 0.35rem; }
  .item { flex-direction: column; align-items: flex-start; }
}
