/* Account area (sign-in, subscribe, account). Builds on /shared.css tokens. */

[hidden] { display: none !important; }

.acct { max-width: 1000px; margin: 0 auto; padding: 44px 24px 96px; position: relative; z-index: 1; }
.acct-narrow { max-width: 460px; }
.acct-split { max-width: 1000px; }

.acct-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px;
  background: linear-gradient(135deg, #9a7b4f 0%, #c8aa6e 28%, #f4e4b0 52%, #c8aa6e 74%, #9a7b4f 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.acct-lead { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 26px; }

/* Panels */
.panel {
  background: rgba(26,24,31,0.72); border-radius: 16px; padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(200,170,110,0.13);
}
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 13px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title .inline-link, .panel-title .btn-ghost { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.panel-note { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.panel-title .inline-link { padding: 8px 0; }
.panel-note a, .inline-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(200,170,110,0.4); }
.panel-note a:hover, .inline-link:hover { color: var(--gold-bright); }

/* Buttons: compact variants of the shared recipes */
.btn-primary.btn-block, .btn-secondary.btn-block { width: 100%; justify-content: center; }
.btn-primary.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-secondary.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-primary:disabled, .btn-secondary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary:disabled::after { display: none; }
.btn-primary:focus-visible, .btn-secondary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.btn-primary[aria-busy="true"]::before, .btn-secondary[aria-busy="true"]::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost {
  background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover { color: var(--gold-bright); }
.btn-ghost:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }

/* Provider buttons */
.providers { display: grid; gap: 10px; }
.provider-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px;
  padding: 12px 18px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  color: var(--text-primary); background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, border-color 0.2s, transform .25s cubic-bezier(.16,1,.3,1);
}
.provider-btn:hover { background: rgba(200,170,110,0.08); border-color: var(--gold-border-hover); transform: translateY(-1px); }
.provider-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.provider-btn svg { width: 20px; height: 20px; flex: none; }

.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 12px; color: var(--text-dim); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gold-border); }

/* Tabs (segmented control) */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 20px; background: rgba(0,0,0,0.25); box-shadow: inset 0 0 0 1px rgba(200,170,110,0.14); border-radius: 10px; }
.tab {
  min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] { color: #1a1408; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.tab:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field input, .name-form input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; font: inherit; font-size: 16px;
  color: var(--text-primary); background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .name-form input::placeholder { color: var(--text-dim); }
.field input:hover, .name-form input:hover { border-color: rgba(255,255,255,0.2); }
.field input:focus, .name-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,170,110,0.18); }
.field input[aria-invalid="true"], .name-form input[aria-invalid="true"] { border-color: #e0806e; box-shadow: 0 0 0 3px rgba(224,128,110,0.15); }
.field-hint { font-size: 12px; color: var(--text-dim); }
.code-input { text-align: center; letter-spacing: 0.5em; font-size: 26px !important; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: calc(14px + 0.5em) !important; min-height: 58px !important; }

/* Messages */
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.msg svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.msg-error { color: #f3c2b8; background: rgba(224,128,110,0.1); border: 1px solid rgba(224,128,110,0.3); }
.msg-info { color: var(--text-primary); background: rgba(200,170,110,0.08); border: 1px solid var(--gold-border-hover); }
.msg-success { color: #cdebd2; background: rgba(110,190,130,0.1); border: 1px solid rgba(110,190,130,0.3); }
.msg-warn { color: #f5deaa; background: rgba(230,180,80,0.1); border: 1px solid rgba(230,180,80,0.35); }
.msg strong { color: inherit; }
.msg .msg-body { flex: 1; }
.msg .msg-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Loading */
.loading-block { display: flex; justify-content: center; padding: 96px 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(200,170,110,0.2); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .spinner, .skeleton, [aria-busy="true"]::before { animation-duration: 2.4s; } }

/* Tier chips, shared by every page */
.tier-chip { display: inline-block; padding: 2px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; border-radius: 5px; vertical-align: middle; color: #1a1408; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.tier-chip.plus { background: linear-gradient(135deg, #f4e4b0, #e2c27a 50%, #c8aa6e); box-shadow: 0 0 14px -4px rgba(244,228,176,0.7); }
.tier-chip.free { color: #7ed98a; background: rgba(126,217,138,0.1); box-shadow: inset 0 0 0 1px rgba(126,217,138,0.3); }

/* ── Sign in ───────────────────────────────────────────── */
.signin-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 64px; align-items: start; }
.signin-grid .acct-title { font-size: clamp(30px, 4vw, 42px); }
.signin-aside { position: sticky; top: 24px; padding: 34px 32px 32px; overflow: hidden; border-radius: 22px;
  background: radial-gradient(90% 70% at 100% 0%, rgba(200,170,110,0.16), transparent 60%), linear-gradient(180deg, rgba(30,27,33,0.85), rgba(16,14,19,0.85)); box-shadow: inset 0 0 0 1px rgba(200,170,110,0.18); }
.aside-title { margin: 0 0 18px; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--gold-bright); text-wrap: balance; }
.aside-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.aside-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text-primary); }
.aside-list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.aside-list span span { color: var(--text-muted); }
.aside-shot { margin: 0 auto; max-width: 260px; }
.aside-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(0,0,0,0.9), 0 0 0 1px rgba(200,170,110,0.3); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.signin-aside:hover .aside-shot img { transform: translateY(-4px); }

/* ── Subscribe ─────────────────────────────────────────── */
.sub-head { margin-bottom: 22px; }
.tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 22px; }
nav.tier-cards { position: static; z-index: auto; padding: 0; background: none; border: none; transition: none; }
.tier-card { position: relative; display: grid; gap: 4px; padding: 18px 20px 18px 54px; border-radius: 14px; text-decoration: none; background: rgba(26,24,31,0.72); box-shadow: inset 0 0 0 1px rgba(200,170,110,0.14); transition: box-shadow .25s, background .25s, transform .25s cubic-bezier(.16,1,.3,1); }
.tier-card::before { content: ''; position: absolute; left: 20px; top: 22px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3); transition: box-shadow .2s; }
.tier-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(200,170,110,0.4); }
.tier-card[aria-current="page"] { background: radial-gradient(120% 120% at 100% 0%, rgba(200,170,110,0.16), transparent 60%), rgba(36,32,30,0.85); box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 40px -18px rgba(200,170,110,0.6); }
.tier-card[aria-current="page"]::before { box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 6px #241f1c, inset 0 0 0 10px var(--gold-bright); }
.tier-card:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.tc-name { font-size: 19px; font-weight: 800; color: var(--text-primary); }
.tier-card[aria-current="page"] .tc-name { color: var(--gold-bright); }
.tc-price { font-size: 14px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.tc-desc { font-size: 13px; line-height: 1.45; color: var(--text-muted); }

.sub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.sub-grid > .panel:first-child { position: sticky; top: 24px; }
.tier-name { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; color: var(--gold-bright); line-height: 1.2; }
.tier-desc { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin: 6px 0 20px; }
.features { list-style: none; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-primary); line-height: 1.45; }
.features svg { width: 18px; height: 18px; flex: none; stroke: #7ed98a; margin-top: 1px; }

.step-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .4px; color: var(--text-primary); margin-bottom: 12px; }
.step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 12px; font-weight: 800; color: #1a1408; border-radius: 7px; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.intervals { display: grid; gap: 10px; margin-bottom: 24px; border: 0; }
.interval {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px; border-radius: 12px; cursor: pointer; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s, background 0.2s;
}
.interval:hover { border-color: var(--gold-border-hover); }
.interval:has(input:checked) { border-color: var(--gold); background: rgba(200,170,110,0.08); }
.interval:has(input:focus-visible) { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.interval input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); display: grid; place-items: center; }
.interval:has(input:checked) .radio-dot { border-color: var(--gold); }
.interval:has(input:checked) .radio-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); }
.interval-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.interval-sub { font-size: 12px; color: var(--text-muted); }
.interval-price { text-align: right; font-variant-numeric: tabular-nums; }
.interval-price strong { display: block; font-size: 19px; font-weight: 800; color: var(--gold-bright); }
.interval-price > span { font-size: 12px; color: var(--text-muted); }
.offer-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 12px 14px; border-radius: 10px; background: radial-gradient(120% 140% at 0% 0%, rgba(200,170,110,0.14), transparent 65%), rgba(0,0,0,0.2); border: 1px solid var(--gold-border-hover); }
.offer-note p { display: grid; gap: 2px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.offer-note strong { font-size: 14px; color: var(--gold-bright); }
.offer-pct { flex: none; padding: 3px 8px; border-radius: 6px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: #1a1408; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.save-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 800; color: #1a1408; background: var(--gold); vertical-align: 1px; }

.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 10px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08); font-size: 14px; }
.who-email { color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.who-label { color: var(--text-dim); font-size: 12px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--text-dim); }
.secure-note svg { width: 13px; height: 13px; }

/* ── Account ───────────────────────────────────────────── */
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.who-block { display: flex; align-items: center; gap: 18px; min-width: 0; }
.avatar { position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 72px; }
.avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar .hx-f { fill: rgba(200,170,110,0.1); stroke: url(#avatarGrad); stroke-width: 1.6; }
.avatar b { position: relative; font-size: 26px; font-weight: 800; color: var(--gold-bright); text-transform: uppercase; }
.who-text { min-width: 0; }
.acct-head .acct-title { margin-bottom: 2px; overflow-wrap: anywhere; }
.name-view { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin-bottom: 4px;
  border-radius: 9px; border: 1px solid transparent; background: none; color: var(--text-dim); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--gold-bright); border-color: var(--gold-border-hover); background: rgba(200,170,110,0.06); }
.icon-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.name-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 520px; margin-bottom: 6px; }
.name-form input { flex: 1 1 220px; min-width: 0; font-size: 18px; font-weight: 700; }
.name-form .name-hint, .name-form .msg { flex-basis: 100%; margin: 0; }
.acct-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-muted); overflow-wrap: anywhere; }
.acct-methods { margin-top: 8px; font-size: 12px; color: var(--text-dim); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.chip svg { width: 13px; height: 13px; flex: none; }

/* The plan: themed by tier, with what it includes and what the next tier adds */
.plan { position: relative; overflow: hidden; padding: 30px 30px 26px; border-radius: 22px;
  background: radial-gradient(80% 120% at 100% 0%, rgba(200,170,110,0.12), transparent 60%), linear-gradient(180deg, rgba(32,29,34,0.9), rgba(20,18,23,0.9)); box-shadow: inset 0 0 0 1px rgba(200,170,110,0.25); }
.plan[data-tier="plus"] { background: radial-gradient(80% 130% at 100% 0%, rgba(244,228,176,0.2), transparent 60%), linear-gradient(180deg, rgba(40,34,30,0.92), rgba(22,19,20,0.92)); box-shadow: inset 0 0 0 1.5px rgba(232,213,163,0.5), 0 0 60px -30px rgba(232,213,163,0.6); }
.plan[data-tier="free"] { background: linear-gradient(180deg, rgba(28,26,32,0.85), rgba(20,18,23,0.85)); box-shadow: inset 0 0 0 1px rgba(200,170,110,0.15); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.plan-kicker { font-size: 12px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.plan-name { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--gold-bright); }
.plan[data-tier="free"] .plan-name { color: var(--text-primary); }
.plan-name small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text-muted); margin-left: 6px; }
.plan-status { margin-top: 10px; font-size: 14.5px; color: var(--text-primary); }
.plan-status .dim { color: var(--text-muted); }
.plan-status.warn { display: flex; gap: 8px; align-items: flex-start; max-width: 560px; color: #f5deaa; }
.plan-status.warn svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.days-left { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; color: #f5deaa; border-radius: 999px; background: rgba(230,180,80,0.12); box-shadow: inset 0 0 0 1px rgba(230,180,80,0.3); font-variant-numeric: tabular-nums; }
.days-left svg { width: 13px; height: 13px; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.plan .msg { margin: 20px 0 0; }
.plan-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(200,170,110,0.14); }
.perks-label { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.perks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-primary); }
.perks svg { width: 17px; height: 17px; margin-top: 1px; }
.perks-have svg { color: #7ed98a; }
.perks-next li { color: var(--text-muted); }
.perks-next svg { color: var(--gold); }
.perks-next a { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--gold); text-decoration: none; }
.perks-next a:hover { color: var(--gold-bright); }

.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.acct-grid .panel + .panel { margin-top: 16px; }

.get-app { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; border-radius: 16px;
  background: radial-gradient(100% 140% at 0% 0%, rgba(200,170,110,0.14), transparent 60%), rgba(30,27,33,0.8); box-shadow: inset 0 0 0 1px rgba(200,170,110,0.3); }
.get-app-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; color: var(--gold-bright); background: rgba(200,170,110,0.12); }
.get-app-icon svg { width: 24px; height: 24px; }
.get-app-text { flex: 1 1 300px; }
.get-app-text strong { display: block; font-size: 16px; color: var(--text-primary); margin-bottom: 2px; }

.riot-list, .inv-list { list-style: none; display: grid; }
.riot-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 14.5px; }
.riot-list li:first-child { border-top: 0; padding-top: 0; }
.riot-name { font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }
.riot-name .tag { color: var(--text-dim); font-weight: 500; }
.riot-region { flex: none; padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--text-muted); border-radius: 5px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); font-variant-numeric: tabular-nums; }

/* Referral code as a ticket */
.ref-code-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 16px; }
.ref-code { position: relative; flex: 1; display: flex; align-items: center; padding: 12px 16px; border-radius: 10px; font-size: 17px; font-weight: 800; letter-spacing: 2px; color: var(--gold-bright); background: radial-gradient(120% 140% at 0% 0%, rgba(200,170,110,0.14), transparent 60%), rgba(0,0,0,0.25); border: 1px dashed rgba(200,170,110,0.45); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.ref-stats > span { display: flex; flex-direction: column-reverse; padding: 0 14px; font-size: 12px; color: var(--text-dim); border-left: 1px solid rgba(200,170,110,0.14); }
.ref-stats > span:first-child { padding-left: 0; border-left: none; }
.ref-stats strong { font-size: 24px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; line-height: 1.2; }

.inv-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.inv-list li:first-child { border-top: 0; padding-top: 0; }
.inv-date { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }
.inv-meta { font-size: 12px; color: var(--text-dim); }
.inv-amount { text-align: right; font-size: 15px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.inv-links { grid-column: 1 / -1; display: flex; gap: 16px; font-size: 13px; }
.inv-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--gold); text-decoration: none; }
.inv-links a:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.inv-status { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.inv-status.open { color: #f5deaa; background: rgba(230,180,80,0.14); }
.inv-status.uncollectible, .inv-status.void { color: var(--text-dim); background: rgba(255,255,255,0.06); }
.empty { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.empty-block { display: flex; gap: 12px; align-items: flex-start; }
.empty-block svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--text-dim); }

/* Dialog */
dialog.switch-dialog {
  margin: auto; width: min(440px, calc(100% - 32px)); padding: 26px; border-radius: 16px; color: var(--text-primary);
  background: #1a1720; border: 1px solid var(--gold-border-hover); box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
dialog.switch-dialog::backdrop { background: rgba(8,6,12,0.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.switch-dialog h2 { font-size: 19px; color: var(--gold-bright); margin-bottom: 10px; }
.switch-dialog p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; overflow-wrap: anywhere; }
.switch-dialog p strong { color: var(--text-primary); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 900px) {
  .signin-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 460px; margin: 0 auto; }
  .signin-aside { position: static; }
}
@media (max-width: 768px) {
  .acct { padding: 26px 16px 64px; }
  .sub-grid, .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .sub-grid > .panel:first-child { position: static; }
  .tier-cards { gap: 10px; }
  .tier-card { padding: 14px 14px 14px 44px; }
  .tier-card::before { left: 14px; top: 17px; }
  .tc-desc { display: none; }
  .features { gap: 9px; }
  .features li { font-size: 14px; }
  .plan { padding: 22px 20px 20px; border-radius: 18px; }
  .plan-name { font-size: 32px; }
  .plan-actions { width: 100%; }
  .plan-actions .btn-primary, .plan-actions .btn-secondary { flex: 1 1 auto; justify-content: center; }
  .plan-perks { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .panel { padding: 20px; }
  .interval { padding: 14px; gap: 12px; }
  .name-form input { flex-basis: 100%; }
  .avatar { width: 52px; height: 58px; }
  .avatar b { font-size: 21px; }
  .who-block { gap: 14px; }
  .head-actions { width: 100%; }
  .head-actions .btn-secondary { flex: 1 1 auto; justify-content: center; }
  .signin-aside { padding: 26px 22px 24px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Activity strip under the header */
.activity { display: flex; flex-wrap: wrap; margin: -8px 0 26px; row-gap: 12px; }
.activity > div { display: flex; flex-direction: column-reverse; padding: 0 24px; border-left: 1px solid rgba(200,170,110,0.16); }
.activity > div:first-child { padding-left: 0; border-left: none; }
.activity dd { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.activity dt { margin-top: 2px; font-size: 12px; color: var(--text-dim); }
.riot-who { display: flex; flex-direction: column; min-width: 0; }
.riot-seen { font-size: 12px; color: var(--text-dim); }
@media (max-width: 768px) {
  .activity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .activity > div { padding: 0 12px; justify-content: flex-end; }
  .activity dd { font-size: 18px; }
  .activity dt { font-size: 11.5px; line-height: 1.35; }
}
/* Code and reset steps hide the side panel: the form takes the centre. */
.signin-grid:has(> .signin-aside[hidden]) { grid-template-columns: minmax(0, 440px); justify-content: center; }
@media (max-width: 768px) { .who-block { align-items: flex-start; } }
