/* aaoo — account pages (account.html only: sign-up A1–A5, account B1–B3).
   Shared tokens/components come from app.css. RTL-safe: logical properties. */

/* Wider column for list-style screens (account home, help). */
.screen-body.wide { text-align: start; align-items: stretch; }

/* --- Brand lockup (A1–A3 sign-up header) — carries Ау! identity across the
   whole signup, matching the landing/A5/B1 logo treatment. -------------------- */
.brand-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
}

/* --- Payment setup loader (A3) — mask the panel and show a single spinner
   until the Stripe Payment Element fires 'ready', so the card form appears
   fully-formed in one shot instead of an empty box that pops in. ------------- */
#screen-a3.pay-loading .screen-body { opacity: 0; pointer-events: none; }
#screen-a3.pay-loading::after {
  content: "";
  position: fixed;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: pay-spin 0.8s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }

/* --- Fields ------------------------------------------------------------------ */
.field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--no-zoom-fs);
}
.field:focus { border-color: var(--accent-strong); outline: none; }

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.error-text { color: var(--danger-text); }

/* --- Progress dots (A1–A3) ------------------------------------------------------ */
.progress-dots { display: flex; gap: 8px; justify-content: center; }
.progress-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}
.progress-dots .dot.active { background: var(--accent-strong); }
.progress-dots .dot.done { background: var(--success); }

/* --- Code entry (A2) --------------------------------------------------------------- */
.code-boxes { display: flex; gap: 8px; justify-content: center; }
.code-box {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}
.code-box:focus { border-color: var(--accent-strong); outline: none; }

/* --- Payment (A3) ---------------------------------------------------------------------- */
/* Loud amber strip shown on A3 only when the edge is on test-mode Stripe keys
   (dev brain / aydev) — a dry-run must never be mistaken for a real charge. */
.test-mode-banner {
  width: 100%;
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  color: var(--warning);
  background: var(--surface);
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
  text-align: center;
}

.line-item { display: flex; justify-content: space-between; gap: 12px; }
.line-item.total { font-weight: 700; color: var(--text); margin-top: 6px; }
.payment-element { width: 100%; min-height: 44px; }

/* --- Account cards (B1) --------------------------------------------------------------------- */
.card-row {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-row-head { font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em; }
.card-row-line { font-size: 14px; color: var(--text); }
.card-row-line.muted { color: var(--muted); font-size: 13px; }
.card-row .link-quiet { align-self: flex-start; padding-inline-start: 0; }

.link-quiet.small { font-size: 12px; }

/* --- Diagnostic block (B3) --------------------------------------------------------------------- */
.diag-block {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
}
