/* Account and Fan pages: builds on site.css (same tokens, glass, buttons). */
.acct .nav { justify-content: space-between; }
.acct-main { width: min(620px, 100% - 2rem); margin: clamp(1.5rem, 5vw, 3rem) auto 2rem; display: grid; gap: 1rem; }
.acct-card { padding: clamp(1.25rem, 4vw, 2rem); border-radius: 22px; display: grid; gap: .9rem; }
.acct-card h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.acct-card h2 { font-size: 1.1rem; margin: 0; }
.acct-card p { margin: 0; line-height: 1.55; }
.acct-card .eyebrow { margin: 0; }
.acct-card > .btn { justify-self: start; }
.wide-card { width: 100%; }
.muted { color: var(--ink-2); }
.fine { font-size: .86rem; color: var(--ink-3); }
.fine a, .acct-card p a, .check a { color: inherit; text-underline-offset: 3px; }
.wide { width: 100%; }
.acct-flash { padding: .85rem 1.1rem; border-radius: 14px; margin: 0; }
.acct-flash:not(.glass) { background: var(--hover); }
.err { color: #f08a7a; font-size: .92rem; }
html[data-theme="light"] .err { color: #b23a26; }

.acct-form { display: grid; gap: .8rem; }
.acct-form.row { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 520px) { .acct-form.row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field > span { font-size: .9rem; font-weight: 600; }
.field em { font-weight: 400; font-style: normal; color: var(--ink-3); }
.field input {
  min-height: 48px; padding: 0 .95rem; border-radius: 12px; border: 1px solid var(--glass-edge);
  background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--ink); font: inherit; font-size: 1rem;
}
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-size: .92rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }

.or { display: flex; align-items: center; gap: .75rem; color: var(--ink-3); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tier-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--ink-2); font-size: .92rem; }
.tier { display: inline-flex; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; background: var(--hover); color: var(--ink); }
.tier-fan, .tier-premium_fan { background: var(--accent); color: var(--accent-ink); }

.perks { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.perks li { padding-left: 1.6rem; position: relative; line-height: 1.5; color: var(--ink-2); }
.perks li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.perks strong { color: var(--ink); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 460px) { .plans { grid-template-columns: 1fr; } }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-box { display: grid; gap: .2rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1.5px solid var(--glass-edge); background: color-mix(in srgb, var(--bg) 40%, transparent); cursor: pointer; transition: border-color 140ms ease, background 140ms ease; }
.plan input:checked + .plan-box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.plan input:focus-visible + .plan-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-name { font-weight: 700; }
.plan-price { font-family: var(--serif); font-size: 1.7rem; }
.plan-price small { font-family: var(--sans); font-size: .85rem; color: var(--ink-3); }
.plan-note { font-size: .82rem; color: var(--ink-3); }

.pk-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.link { border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .4rem; }
.acct-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.acct-table td { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.acct-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.danger summary { cursor: pointer; color: var(--ink-3); font-size: .9rem; padding: .3rem 0; }
.danger[open] summary { margin-bottom: .6rem; }
.btn-danger { background: #b23a26; color: #fff; justify-self: start; }
.acct-card form > .btn { justify-self: start; }
.acct-card form > .btn.wide { justify-self: stretch; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; line-height: 1.55; color: var(--ink-2); }
.prose h2 { margin-top: .6rem; }
.acct-foot { text-align: center; padding: 1rem 1rem 2.5rem; font-size: .85rem; color: var(--ink-3); }
.acct-foot a { color: inherit; }
