/* Cabinet overlays/forms — no Montserrat, no page theme overrides */
.d-none { display: none !important; }

.l5-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}
.l5-modal.d-none { display: none !important; }
.l5-modal__box {
  width: 100%;
  max-width: 28rem;
  max-height: min(90vh, 40rem);
  overflow: auto;
  margin: auto;
  border-radius: 0.5rem;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 2.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.l5-modal__box h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.l5-field { margin-bottom: 0.75rem; }
.l5-label { display: block; margin-bottom: 0.4rem; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.l5-input,
.l5-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.31rem;
  border: 1px solid #0c0c0c;
  background: #0c0c0c;
  padding: 1rem 1.25rem;
  color: #fff;
  font: inherit;
}
.l5-textarea { min-height: 7rem; resize: vertical; }
.l5-input:focus,
.l5-textarea:focus {
  border-color: #ff8c00;
  outline: none;
}
.l5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.125rem;
  padding: 0.9rem 1.35rem;
  background: #ff8c00;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.l5-btn--ghost { background: #1a1c20; color: #fff; }
.l5-btn:hover { filter: brightness(1.05); }
.l5-alert {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.31rem;
  font-size: 0.9rem;
}
.l5-alert--err { background: rgba(220, 50, 50, 0.15); color: #ff6b6b; }
.l5-alert--ok { background: rgba(50, 180, 80, 0.15); color: #7dff9a; }
.l5-muted { color: #808080; }
.l5-accent { color: #ff8c00; }
.l5-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0;
  color: #fff;
  cursor: pointer;
}
.l5-card {
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.625rem;
  padding: 2rem;
}
.l5-legal { line-height: 1.65; }
.l5-legal h2 { margin: 2rem 0 0.75rem; color: #fff; font-size: 1.15rem; font-weight: 700; }
.l5-legal p { margin: 0.65rem 0; color: #d5d5d5; }
.l5-legal ul { margin: 0.5rem 0 1rem; padding-left: 1.5rem; color: #d5d5d5; list-style: disc; }
.l5-legal li + li { margin-top: 0.35rem; }
.l5-legal .l5-muted { color: #929292; }
.l5-section-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.l5-form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* Stats cards + character detail — explicit sizes (Tailwind size-* not in build) */
.l5-stats-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.l5-ico {
  width: 1.75rem !important;
  height: 1.75rem !important;
  max-width: 1.875rem;
  max-height: 1.875rem;
  flex-shrink: 0;
  color: #ff8c00;
  display: inline-block;
  vertical-align: middle;
}
#role svg.l5-ico,
.l5-pcard svg.l5-ico,
.l5-role svg.l5-ico {
  width: 1.75rem !important;
  height: 1.75rem !important;
}
/* gta5rp: grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 — one card stays ~1/3 width */
.l5-pcard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.875rem;
}
@media (min-width: 640px) {
  .l5-pcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .l5-pcard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.l5-pcard {
  display: flex;
  flex-direction: column;
  height: 16rem;
  padding: 1.5rem 2rem; /* py-6 px-8 */
  border-radius: 0.5rem;
  background: #151515;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  min-width: 0;
  overflow: hidden;
}
.l5-pcard:hover { background: #1c1c1c; }
.l5-pcard--on { background: rgba(62, 67, 75, 0.41); }
.l5-pcard__row { display: flex; gap: 1rem; flex: 1; }
.l5-pcard__main { flex: 1; min-width: 0; }
.l5-pcard__name {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.l5-pcard__meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.l5-pcard__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.125rem;
}
.l5-pcard__lvl { text-align: center; padding-top: 0.5rem; flex-shrink: 0; }
.l5-pcard__lvl strong { display: block; font-size: 1.375rem; font-weight: 500; }
.l5-pcard__lvl span { font-size: 0.875rem; color: #fff; }
.l5-pcard__line {
  height: 1px;
  margin: 1.125rem 0;
  background: rgba(255, 255, 255, 0.06);
}
.l5-pcard__vip { text-align: right; }
.l5-pcard__vip > span { display: block; color: #fff; }
.l5-pcard__vip p { margin: 0.25rem 0 0; font-weight: 400; }
.l5-vip-name { text-transform: uppercase; }

.l5-role-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 14.5rem;
  padding: 2.8rem 2rem;
  border-radius: 0.625rem;
  background: #151515;
  text-align: center;
  font-size: 1.125rem;
  color: #fff;
}
.l5-role-hint a { font-weight: 500; text-decoration: none; }
.l5-role-hint a:hover { opacity: 0.85; }

.l5-role {
  padding: 2.8rem 2rem;
  border-radius: 0.625rem;
  background: #151515;
  color: #fff;
}
.l5-role-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  text-decoration: none;
}
.l5-role-back:hover { opacity: 0.85; }
.l5-role-top {
  display: grid;
  grid-template-columns: minmax(12rem, 20.5rem) 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .l5-role-top { grid-template-columns: 1fr; }
}
.l5-role-avatar {
  position: relative;
  width: 100%;
  height: 33.4375rem;
  max-width: 20.5rem;
  background: #121212;
  border-radius: 0.25rem;
  overflow: hidden;
}
.l5-role-avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.l5-role-avatar__fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,140,0,0.08), transparent 55%),
    radial-gradient(ellipse at 50% 85%, rgba(255,140,0,0.22), transparent 55%),
    #121212;
}
.l5-role-avatar__fallback::after {
  content: '';
  position: absolute;
  inset: 10% 26% 6%;
  background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 45%, #1a1a1a 100%);
  clip-path: polygon(35% 0, 65% 0, 78% 18%, 72% 42%, 85% 48%, 80% 100%, 20% 100%, 15% 48%, 28% 42%, 22% 18%);
}
.l5-role-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.875rem;
}
.l5-role-name p { margin: 0; font-size: 1.6875rem; font-weight: 700; }
.l5-role-dot {
  width: 0.9375rem;
  height: 0.9375rem;
  border-radius: 50%;
  background: #41454E;
  flex-shrink: 0;
}
.l5-role-dot--on { background: #3DDC84; }
.l5-role-props {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.875rem;
}
@media (max-width: 700px) {
  .l5-role-props { grid-template-columns: 1fr; }
}
.l5-role-prop__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
}
.l5-role-prop__title .l5-ico { width: 1.875rem; height: 1.875rem; }
.l5-role-prop__box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  background: #1a1a1a;
  border-radius: 0.25rem;
  padding: 1rem;
  text-align: center;
}
.l5-role-prop__val { margin: 0; font-size: 1.125rem; color: #fff; }
.l5-role-prop__empty { margin: 0; color: #3E434A; font-size: 1rem; }
.l5-role-mid {
  display: grid;
  grid-template-columns: minmax(12rem, 20.5rem) 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .l5-role-mid { grid-template-columns: 1fr; }
}
.l5-role-lvlrow {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 0;
}
.l5-role-lvl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 0 1.25rem;
}
.l5-role-lvl strong { font-size: 1.625rem; font-weight: 500; line-height: 1; }
.l5-role-exp { flex: 1; display: flex; flex-direction: column; gap: 0.875rem; padding: 0 1.25rem; }
.l5-role-exp__bar {
  position: relative;
  height: 1.8125rem;
  border-radius: 0.3125rem;
  background: #222;
  overflow: hidden;
}
.l5-role-exp__bar > div {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: #ff8c00;
  border-radius: 0.3125rem;
}
.l5-role-exp__bar > p {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
}
.l5-role-exp__bar > p span { text-transform: uppercase; margin-left: 0.25rem; }
.l5-role-money,
.l5-role-bio {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid #2B2B2B;
}
.l5-role-money > span,
.l5-role-bio > span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
  min-width: 0;
}
.l5-role-money .l5-ico,
.l5-role-bio .l5-ico { width: 1.8125rem; height: 1.8125rem; }
.l5-role-h {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 700;
}
.l5-role-h .l5-ico { width: 1.875rem; height: 1.875rem; }
.l5-role-block { margin-top: 3rem; }
.l5-role-vehs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}
.l5-role-vehs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #1a1a1a;
  border-radius: 0.375rem;
}
.l5-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}
.l5-skill { width: 5.5rem; text-align: center; }
.l5-skill__ring {
  --p: 0;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#ff8c00 calc(var(--p) * 1%), #2a2a2a 0);
  position: relative;
}
.l5-skill__ring::before {
  content: '';
  position: absolute;
  inset: 0.45rem;
  border-radius: 50%;
  background: #0d0d0d;
}
.l5-skill__ring span {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 700;
}
.l5-skill__label { margin: 0; font-size: 0.85rem; color: #cfcfcf; }
.l5-vip { margin-top: auto; font-size: 0.9rem; color: #a0a0a0; }
.l5-vip span { margin-right: 0.35rem; }
.l5-hint { color: #a0a0a0; line-height: 1.5; }

/* GTA5RP Dialog shell (AdminLoginDialog / AdminMenuDialog) */
.gta-dialog-root { position: fixed; inset: 0; z-index: 5000; }
.gta-dialog-root.d-none { display: none !important; }
.gta-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
}
.gta-dialog-inner {
  position: fixed;
  inset: 0;
  z-index: 5001;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 0.5rem;
  overflow: auto;
}
.gta-dialog {
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
}
.gta-dialog #adminEntryEye:not(.hidden) { display: block; }
