.profile-container {
  width: min(1180px, 95%);
  margin: 24px auto 30px;
  display: grid;
  gap: 16px;
}

.profile-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.profile-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.profile-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ghost-bg);
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.nav-item.active {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--ghost-bg));
}

.nav-item.danger {
  color: #dc4e56;
}

.profile-content {
  display: grid;
  gap: 16px;
}

.tab-pane h2 {
  margin: 0 0 14px;
}

.tab-pane label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

.tab-pane input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, white 12%);
  color: var(--text);
  padding: 10px;
  font: inherit;
}

.tab-pane small {
  color: var(--muted);
}

.muted-text {
  color: var(--muted);
  margin: 0;
}

.profile-content .btn {
  border: 1px solid color-mix(in srgb, var(--brand) 70%, black 10%);
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
}

.profile-content .btn.danger {
  background: #dc4e56;
  border-color: #dc4e56;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
