:root {
  --members-profile-max: 1160px;
}

.members-topbar-hide-btn {
  display: inline-flex;
}

.members-surface-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(188, 202, 226, 0.22);
  background: rgba(30, 40, 58, 0.48);
  color: rgba(237, 243, 255, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.members-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  gap: 18px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid rgba(188, 204, 232, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(74, 153, 255, 0.16), rgba(74, 153, 255, 0) 70%),
    linear-gradient(145deg, rgba(15, 22, 35, 0.92), rgba(10, 16, 27, 0.88));
  box-shadow: var(--ps-shadow);
}

.members-home-hero-copy {
  display: grid;
  gap: 12px;
}

.members-home-eyebrow {
  color: var(--ps-link-primary);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.members-home-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-family: "RechargeBd", "SuiGenerisRg", sans-serif;
  line-height: 0.94;
  letter-spacing: 0.02em;
}

.members-home-hero p {
  margin: 0;
  max-width: 64ch;
  color: var(--ps-muted);
  line-height: 1.7;
}

.members-home-stat-grid,
.members-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.members-home-stat-card,
.members-overview-card {
  padding: 18px;
  border: 1px solid rgba(194, 210, 236, 0.18);
  border-radius: 18px;
  background: rgba(11, 17, 28, 0.58);
}

.members-home-stat-card strong,
.members-home-stat-card span {
  display: block;
}

.members-home-stat-card strong {
  font-size: 1.7rem;
  font-family: "RechargeBd", "SuiGenerisRg", sans-serif;
}

.members-home-stat-card span {
  margin-top: 6px;
  color: var(--ps-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-home-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.members-home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(154, 209, 255, 0.36);
  background: rgba(32, 55, 84, 0.56);
  color: var(--ps-text);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.members-home-action:hover,
.members-home-action:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.66);
  background: rgba(43, 72, 108, 0.7);
  outline: none;
}

.members-overview-grid {
  margin-bottom: 24px;
}

.members-overview-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.members-compact-card {
  min-height: 100%;
}

.members-priority-pill {
  width: fit-content;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.members-priority-pill.priority-high {
  background: rgba(170, 56, 56, 0.34);
}

.members-priority-pill.priority-low {
  background: rgba(54, 88, 137, 0.34);
}

.members-notice-stack {
  display: grid;
  gap: 16px;
}

body.members-profile-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ps-text);
  font-family: "SuiGeneris", "SuiGenerisRg", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 560px at 12% -8%, rgba(70, 150, 255, 0.18), rgba(70, 150, 255, 0) 60%),
    radial-gradient(920px 480px at 88% -18%, rgba(134, 103, 255, 0.16), rgba(134, 103, 255, 0) 62%),
    linear-gradient(172deg, var(--ps-bg-0) 0%, var(--ps-bg-1) 46%, var(--ps-bg-2) 100%);
}

body.members-profile-page a {
  text-decoration: none;
}

.members-profile-shell {
  min-height: 100vh;
  padding: 32px 20px 40px;
}

.members-profile-wrap {
  width: min(100%, var(--members-profile-max));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.members-profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(188, 204, 232, 0.2);
  border-radius: 18px;
  background: rgba(10, 15, 24, 0.82);
  backdrop-filter: blur(14px);
}

.members-profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ps-text);
}

.members-profile-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.members-profile-brand-copy {
  display: grid;
  gap: 3px;
}

.members-profile-brand-copy strong {
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.members-profile-brand-copy span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.members-profile-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.members-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(188, 202, 226, 0.22);
  background: rgba(30, 40, 58, 0.56);
  color: rgba(237, 243, 255, 0.92);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.members-profile-link:hover,
.members-profile-link:focus-visible {
  color: var(--ps-link-primary);
  border-color: rgba(154, 209, 255, 0.55);
  background: rgba(38, 57, 85, 0.7);
  outline: none;
}

.members-profile-hero {
  overflow: hidden;
}

.members-profile-cover {
  position: relative;
  height: clamp(220px, 36vw, 320px);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.members-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.members-profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 10, 18, 0.88), rgba(5, 10, 18, 0.16));
}

.members-profile-hero-body {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.members-profile-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}

.members-profile-avatar {
  width: 104px;
  height: 104px;
  min-width: 104px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08) center/cover no-repeat;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.members-profile-avatar.is-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "RechargeBd", "SuiGenerisRg", sans-serif;
  font-size: 2rem;
}

.members-profile-summary-copy {
  flex: 1 1 320px;
  display: grid;
  gap: 10px;
}

.members-profile-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.members-profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.members-profile-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: "RechargeBd", "SuiGenerisRg", sans-serif;
  line-height: 0.95;
}

.members-profile-handle {
  color: var(--ps-link-primary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.members-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.members-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 24px;
}

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

.members-profile-placeholder {
  margin: 0;
  color: var(--ps-muted);
  line-height: 1.65;
}

.members-profile-list {
  display: grid;
  gap: 12px;
}

.members-profile-list-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(194, 210, 236, 0.16);
  border-radius: 16px;
  background: rgba(11, 17, 28, 0.54);
}

.members-profile-list-item strong {
  font-size: 0.95rem;
}

.members-profile-list-item span {
  color: var(--ps-muted);
  line-height: 1.5;
}

.members-profile-empty {
  padding: 20px;
  border: 1px dashed rgba(194, 210, 236, 0.2);
  border-radius: 16px;
  color: var(--ps-muted);
}

.members-profile-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ps-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.members-profile-section-block {
  display: grid;
  gap: 10px;
}

.members-profile-section-block h2 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.members-profile-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.members-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.members-profile-stat {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(194, 210, 236, 0.16);
  background: rgba(11, 17, 28, 0.54);
}

.members-profile-stat strong,
.members-profile-stat span {
  display: block;
}

.members-profile-stat strong {
  font-size: 1.25rem;
}

.members-profile-stat span {
  margin-top: 6px;
  color: var(--ps-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.members-shell-note {
  margin: 0;
  color: var(--ps-muted);
  line-height: 1.65;
}

.members-profile-not-found {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.members-profile-not-found h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: "RechargeBd", "SuiGenerisRg", sans-serif;
  line-height: 0.95;
}

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

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

@media (max-width: 720px) {
  .members-topbar-hide-btn,
  .members-surface-chip {
    display: none;
  }

  .members-profile-shell {
    padding: 18px 14px 28px;
  }

  .members-profile-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .members-profile-nav {
    flex-wrap: wrap;
  }

  .members-profile-hero-body {
    padding: 18px;
  }

  .members-profile-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    border-radius: 22px;
  }
}
