.member-page { min-height: 100vh; display: flex; flex-direction: column; }
.member-main { width: min(900px, calc(100% - 40px)); flex: 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(340px, 1.2fr); align-items: start; gap: 2rem; padding-block: clamp(2rem, 7vw, 5rem); }
.member-intro { padding-top: 1.1rem; }
.member-intro h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -.05em; }
.member-intro > p:last-child { max-width: 500px; margin: 1rem 0 0; color: var(--muted); line-height: 1.65; }
.member-auth-card { min-height: 430px; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); box-shadow: var(--shadow); }
.member-loading { margin: 0; color: var(--muted); text-align: center; }
#clerk-sign-in { display: grid; justify-content: center; }
.member-error { margin-top: 1rem; padding: .85rem; border-radius: .75rem; font-size: .88rem; line-height: 1.5; color: #823a34; border: 1px solid #e6b8b3; background: #fff0ee; }
.member-footer { margin-top: auto; }
.member-billing { padding-block: clamp(1.5rem, 5vw, 3rem); }
.member-billing h1 { margin: 0; color: var(--navy); }
.member-billing p { color: var(--muted); }

@media (max-width: 720px) {
  .member-main { width: min(900px, calc(100% - 24px)); grid-template-columns: 1fr; gap: 1rem; padding-block: 1.25rem; }
  .member-intro { padding-top: 0; }
  .member-intro h1 { font-size: 1.7rem; }
  .member-intro > p:last-child { margin-top: .55rem; font-size: .85rem; }
  .member-auth-card { min-height: 390px; padding: .75rem; }
}
