:root {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #18243b;
  --surface-soft: #1e293b;
  --border: rgba(148, 163, 184, 0.25);
  --text: #f8fafc;
  --muted: #a9b5c7;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --warning: #f59e0b;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(234, 88, 12, 0.18), transparent 36rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 32px, 720px); margin: 0 auto; padding: 28px 0 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.card { margin-top: 30px; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--border); border-radius: 22px; background: rgba(24, 36, 59, .96); box-shadow: 0 28px 70px rgba(0, 0, 0, .28); }
.eyebrow { margin: 0 0 10px; color: #fb923c; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 48px); line-height: 1.04; letter-spacing: -.035em; }
.lead { margin: 16px 0 26px; color: var(--muted); font-size: 18px; }
.tabs, .locale, .oauth, .tier-grid { display: grid; gap: 10px; }
.tabs { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
.locale { grid-template-columns: repeat(3, auto); justify-content: end; margin-bottom: 12px; }
.tier-grid { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.tab, .locale button, .tier {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 11px 14px;
}
.tab.active, .locale button.active, .tier.active { border-color: var(--accent); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.tier { min-height: 86px; text-align: left; }
.tier b, .tier span { display: block; }
.tier span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; }
.field input { width: 100%; border: 1px solid var(--border); border-radius: 11px; background: #0f172a; color: var(--text); padding: 13px 14px; }
.field input:focus, button:focus-visible, a:focus-visible { outline: 2px solid #fb923c; outline-offset: 2px; }
.button { display: block; width: 100%; border: 0; border-radius: 11px; background: var(--accent); color: white; padding: 13px 16px; font-weight: 800; text-align: center; text-decoration: none; }
.button:hover { background: var(--accent-hover); }
.button.secondary { margin-top: 10px; border: 1px solid var(--border); background: transparent; }
.button.link { width: auto; padding: 2px; background: transparent; color: #fb923c; font-weight: 700; }
.oauth { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.provider-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; }
.provider-mark { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.apple-mark { color: var(--text); }
.button.secondary.google-provider { border-color: #dadce0; background: #fff; color: #1f1f1f; }
.button.secondary.google-provider:hover { background: #f8fafc; }
.button.secondary.apple-provider { border-color: #000; background: #000; color: #fff; }
.button.secondary.apple-provider:hover { background: #111827; }
.apple-provider .apple-mark { color: #fff; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.notice { margin: 18px 0; border-left: 3px solid var(--warning); border-radius: 8px; background: rgba(245, 158, 11, .09); padding: 14px 16px; color: var(--muted); }
.notice strong { display: block; color: var(--text); margin-bottom: 4px; }
.notice.success { border-left-color: #22c55e; background: rgba(34, 197, 94, .09); }
.notice.warning { border-left-color: var(--warning); }
.summary { display: grid; gap: 10px; margin: 18px 0; border: 1px solid var(--border); border-radius: 12px; background: rgba(15, 23, 42, .55); padding: 15px 16px; }
.summary.compact { margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; }
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; }
.member-hub { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.provider-list { display: grid; gap: 10px; margin-top: 8px; }
.provider-item { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.provider-top { display: flex; justify-content: space-between; gap: 14px; }
.provider-top b { font-size: 15px; }
.provider-top span, .provider-detail { color: var(--muted); font-size: 13px; }
.provider-item .button { width: fit-content; min-width: 148px; padding: 9px 12px; font-size: 13px; }
.state-icon { display: grid; width: 52px; height: 52px; margin-bottom: 20px; place-items: center; border-radius: 50%; font-size: 24px; font-weight: 900; }
.state-icon.success { background: rgba(34, 197, 94, .13); color: #4ade80; }
.state-icon.warning { background: rgba(245, 158, 11, .13); color: #fbbf24; }
.status { min-height: 25px; margin-top: 14px; color: var(--muted); }
.status.error { color: #fca5a5; }
.fine { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.spinner { width: 42px; height: 42px; margin-bottom: 20px; border: 4px solid rgba(255,255,255,.16); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.account-page {
  background:
    radial-gradient(circle at 20% 14%, rgba(234, 88, 12, 0.16), transparent 25rem),
    linear-gradient(90deg, rgba(234, 88, 12, 0.06), transparent 42%),
    var(--bg);
}
.account-page .shell { width: 100%; max-width: none; padding: 0; }
.account-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
}
.account-brand { gap: 12px; letter-spacing: 0; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.brand-wordmark { width: 96px; height: auto; display: block; }
.account-nav-right { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 700; }
.account-nav-right a { color: inherit; text-decoration: none; }
.account-nav-right a:hover { color: var(--text); }
.account-nav .locale { margin: 0; }
.account-stage {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(420px, .95fr);
}
.account-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 92px);
}
.account-story h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: .98;
}
.account-story .lead { max-width: 610px; margin-bottom: 0; }
.promise-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.promise-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(30, 41, 59, .76);
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}
.account-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  background: rgba(15, 23, 42, .42);
}
.account-page .auth-card {
  width: min(100%, 520px);
  margin: 0;
  border-radius: 18px;
  background: rgba(24, 36, 59, .98);
}
.auth-card h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.05; }
.auth-card .lead.compact { margin: 10px 0 22px; font-size: 15px; line-height: 1.45; }
.checkout-note {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid rgba(234, 88, 12, .34);
  border-radius: 999px;
  background: rgba(234, 88, 12, .12);
  color: #fed7aa;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.account-page .tabs { margin-top: 4px; }
.account-page .tier-grid { grid-template-columns: repeat(3, 1fr); }
.account-page .tier { min-height: 76px; }
.account-page .oauth { grid-template-columns: 1fr; }
@media (max-width: 620px) {
  .tier-grid, .oauth { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .provider-top { display: grid; }
}
@media (max-width: 980px) {
  .account-stage { grid-template-columns: 1fr; }
  .account-story { padding: 42px 24px 26px; }
  .account-side { padding: 26px 20px 54px; }
  .promise-grid { margin-top: 24px; }
}
@media (max-width: 720px) {
  .account-nav { align-items: flex-start; flex-direction: column; }
  .account-nav-right { width: 100%; flex-wrap: wrap; gap: 12px; }
  .account-nav .locale { margin-left: auto; }
  .account-story h1 { font-size: clamp(32px, 12vw, 44px); }
  .account-page .auth-card { border-radius: 16px; padding: 22px; }
  .account-page .tier-grid { grid-template-columns: 1fr; }
}
