.ucp-login-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px 72px;
}

.ucp-login,
.ucp-pass {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid rgba(231, 193, 90, 0.2);
  border-radius: 22px;
  background: rgba(12, 14, 18, 0.78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.ucp-login h1,
.ucp-hero h1,
.ucp-view h2,
.ucp-view h3,
.ucp-side-name {
  font-family: Syne, Manrope, sans-serif;
}

.ucp-login h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.ucp-kicker {
  margin: 0 0 8px;
  color: #e7c15a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ucp-lead,
.ucp-copy {
  margin: 0 0 18px;
  color: #cfc6b8;
}

.ucp-copy a {
  color: #f8dc86;
}

.ucp-login label,
.ucp-pass label {
  display: block;
  margin-bottom: 12px;
  color: #cfc6b8;
  font-size: 13px;
  font-weight: 700;
}

.ucp-login input,
.ucp-pass input {
  display: block;
  width: 100%;
  margin-top: 6px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #f6f1e7;
  font: inherit;
  font-size: 16px;
}

.ucp-login button,
.ucp-pass button,
.ucp-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin-top: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8dc86, #e3b23c);
  color: #1c1406;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ucp-kicker i,
.ucp-login label i,
.ucp-pass label i,
.ucp-alert i,
.ucp-view h2 i,
.ucp-view h3 i {
  margin-right: 8px;
  color: #f0c14b;
}

.tone-gold { --tone: #f0c14b; }
.tone-green { --tone: #3ddc97; }
.tone-blue { --tone: #6cb6ff; }
.tone-red { --tone: #ff6b7a; }
.tone-purple { --tone: #c084fc; }
.tone-teal { --tone: #2dd4bf; }
.tone-orange { --tone: #fb923c; }

.ucp-alert,
.ucp-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(180, 40, 40, 0.22);
  color: #ffd0d0;
}

.ucp-note {
  background: rgba(231, 193, 90, 0.12);
  color: #f6f1e7;
}

.ucp-note-ok {
  background: rgba(70, 140, 90, 0.22);
}

.ucp-shell {
  width: calc(100% - 48px);
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ucp-main {
  min-width: 0;
}

.ucp-side {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid rgba(231, 193, 90, 0.16);
  border-radius: 20px;
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(16px);
}

.ucp-side-name {
  margin: 0;
  font-size: 20px;
}

.ucp-side-meta {
  margin: 4px 0 14px;
  color: #cfc6b8;
  font-size: 13px;
}

.ucp-side nav {
  display: grid;
  gap: 4px;
}

.ucp-side nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #f6f1e7;
  font-weight: 700;
  text-decoration: none;
}

.ucp-side nav a[href="#overview"] i { color: #f0c14b; }
.ucp-side nav a[href="#skills"] i { color: #6cb6ff; }
.ucp-side nav a[href="#record"] i { color: #ff6b7a; }
.ucp-side nav a[href="#wealth"] i { color: #3ddc97; }
.ucp-side nav a[href="#property"] i { color: #fb923c; }
.ucp-side nav a[href="#vehicles"] i { color: #2dd4bf; }
.ucp-side nav a[href="#faction"] i { color: #6cb6ff; }
.ucp-side nav a[href="#gear"] i { color: #ff6b7a; }
.ucp-side nav a[href="#vip"] i { color: #c084fc; }
.ucp-side nav a[href="#account"] i { color: #f0c14b; }

.ucp-side-meta i {
  margin-right: 6px;
  font-size: 8px;
  vertical-align: middle;
}

.ucp-side-meta.is-on i { color: #3ddc97; }
.ucp-side-meta.is-off i { color: #8d867b; }

.ucp-side nav a:hover,
.ucp-shell:not(:has(.ucp-view:target)) .ucp-side a[href="#overview"],
.ucp-shell:has(#overview:target) .ucp-side a[href="#overview"],
.ucp-shell:has(#skills:target) .ucp-side a[href="#skills"],
.ucp-shell:has(#record:target) .ucp-side a[href="#record"],
.ucp-shell:has(#wealth:target) .ucp-side a[href="#wealth"],
.ucp-shell:has(#property:target) .ucp-side a[href="#property"],
.ucp-shell:has(#vehicles:target) .ucp-side a[href="#vehicles"],
.ucp-shell:has(#faction:target) .ucp-side a[href="#faction"],
.ucp-shell:has(#gear:target) .ucp-side a[href="#gear"],
.ucp-shell:has(#vip:target) .ucp-side a[href="#vip"],
.ucp-shell:has(#account:target) .ucp-side a[href="#account"] {
  background: rgba(231, 193, 90, 0.16);
  color: #f8dc86;
}

.ucp-logout {
  width: 100%;
  margin-top: 16px;
}

.ucp-hero,
.ucp-view,
.ucp-cards article,
.ucp-split > article {
  border: 1px solid rgba(231, 193, 90, 0.16);
  border-radius: 20px;
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(16px);
}

.ucp-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px;
  background:
    radial-gradient(480px 180px at 100% 0%, rgba(240, 193, 75, 0.16), transparent 62%),
    radial-gradient(360px 180px at 0% 100%, rgba(108, 182, 255, 0.14), transparent 58%),
    rgba(12, 14, 18, 0.78);
}

.ucp-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.ucp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ucp-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(240, 193, 75, 0.14);
  color: #f8dc86;
  font-size: 12px;
  font-weight: 800;
}

.badge-admin { background: rgba(255, 107, 122, 0.16) !important; color: #ff8b98 !important; }
.badge-help { background: rgba(108, 182, 255, 0.16) !important; color: #8ec4ff !important; }
.badge-vip { background: rgba(192, 132, 252, 0.18) !important; color: #d7b4ff !important; }
.badge-dj { background: rgba(251, 146, 60, 0.16) !important; color: #ffc089 !important; }
.badge-house { background: rgba(45, 212, 191, 0.16) !important; color: #7eefe0 !important; }
.badge-job { background: rgba(240, 193, 75, 0.14) !important; color: #f8dc86 !important; }

.tag-blue { background: rgba(108, 182, 255, 0.18) !important; color: #8ec4ff !important; }
.tag-red { background: rgba(255, 107, 122, 0.18) !important; color: #ff8b98 !important; }
.tag-yellow { background: rgba(240, 193, 75, 0.18) !important; color: #f8dc86 !important; }
.tag-purple { background: rgba(192, 132, 252, 0.18) !important; color: #d7b4ff !important; }
.tag-green { background: rgba(61, 220, 151, 0.18) !important; color: #7dface !important; }
.tag-pink { background: rgba(232, 28, 201, 0.18) !important; color: #f59ae8 !important; }

.ucp-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  min-width: 280px;
}

.ucp-hero-stats div {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--tone, #f0c14b) 35%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tone, #f0c14b) 18%, transparent), transparent 78%),
    rgba(255, 255, 255, 0.03);
}

.ucp-hero-stats i {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--tone, #f0c14b);
}

.ucp-hero-stats b,
.ucp-grid strong,
.ucp-org {
  display: block;
  font-variant-numeric: tabular-nums;
}

.ucp-hero-stats b {
  font-size: 18px;
}

.ucp-hero-stats span,
.ucp-grid span,
.ucp-grid em {
  color: #cfc6b8;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.ucp-view {
  display: none;
  margin-top: 18px;
  padding: 22px;
}

.ucp-shell:not(:has(.ucp-view:target)) #overview,
.ucp-view:target {
  display: block;
}

.ucp-view h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.ucp-view h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}

.ucp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}

.ucp-grid-tight {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
}

.ucp-grid article,
.ucp-cards article,
.ucp-split > article {
  padding: 14px 16px;
}

.ucp-grid article {
  border: 1px solid color-mix(in srgb, var(--tone, #f0c14b) 32%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tone, #f0c14b) 16%, transparent), transparent 72%),
    rgba(255, 255, 255, 0.03);
}

.ucp-grid article span i,
.ucp-cards li i,
.ucp-cards h4 i,
.ucp-split h3 i {
  margin-right: 6px;
  color: var(--tone, #f0c14b);
}

.ucp-cards article.tone-blue,
.ucp-cards article.tone-teal,
.ucp-cards article.tone-orange,
.ucp-split > article.tone-blue,
.ucp-split > article.tone-green {
  border-color: color-mix(in srgb, var(--tone) 40%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tone) 12%, transparent), transparent 46%),
    rgba(12, 14, 18, 0.72);
}

.ucp-grid strong {
  margin-top: 4px;
  font-size: 20px;
}

.ucp-grid .is-dim {
  opacity: 0.45;
}

.ucp-cards,
.ucp-split {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.ucp-cards h4,
.ucp-org {
  margin: 0 0 4px;
  font-size: 18px;
}

.ucp-cards p,
.ucp-cards li,
.ucp-empty,
.ucp-muted {
  color: #cfc6b8;
}

.ucp-cards ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.ucp-cards li + li {
  margin-top: 4px;
}

.ucp-empty {
  margin: 0;
}

.ucp-car {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ucp-car img {
  width: 120px;
  height: 68px;
  object-fit: contain;
  border-radius: 10px;
  background: #2c313a;
}

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

.ucp-view table {
  width: 100%;
  border-collapse: collapse;
}

.ucp-view th,
.ucp-view td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
}

.ucp-view th {
  color: #e7c15a;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .ucp-shell {
    width: calc(100% - 28px);
    margin-top: 16px;
    grid-template-columns: 1fr;
  }

  .ucp-side {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name out"
      "meta meta"
      "nav nav";
    align-items: center;
    gap: 6px 12px;
    padding: 12px;
  }

  .ucp-side-name {
    grid-area: name;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ucp-side-meta {
    grid-area: meta;
    margin: 0 0 4px;
  }

  .ucp-side nav {
    grid-area: nav;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ucp-side nav::-webkit-scrollbar {
    display: none;
  }

  .ucp-side nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
  }

  .ucp-logout {
    grid-area: out;
    width: auto;
    margin: 0;
    height: 36px;
    padding: 0 14px;
  }

  .ucp-hero {
    flex-direction: column;
    padding: 16px;
  }

  .ucp-hero-stats {
    min-width: 0;
    width: 100%;
  }

  .ucp-view {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .ucp-login-wrap {
    padding: 20px 14px 48px;
  }

  .ucp-login,
  .ucp-pass {
    padding: 20px 16px;
  }

  .ucp-login h1 {
    font-size: 28px;
  }

  .ucp-shell {
    width: calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
    margin-bottom: 40px;
  }

  .ucp-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .ucp-hero-stats b {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .ucp-view thead {
    display: none;
  }

  .ucp-view tr {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
  }

  .ucp-view td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    white-space: normal;
    text-align: right;
  }

  .ucp-view td::before {
    content: attr(data-label);
    color: #e7c15a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
  }

  .ucp-view td[data-label="Vehicle"] {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .ucp-car img {
    width: 100%;
    max-width: 220px;
    height: auto;
  }
}
