/* ─── MY PROFILE + MY ACCOUNT ─────────────────────────────────────────
   Grouped-list layout (iOS Settings / Discord account pages): an identity
   header, a stats strip, then cards of rows with an icon, a value and a
   chevron. Tokens only, so all 15 themes apply (see themes.css). */


/* Identity header */
.acct-hero { display: flex; align-items: center; gap: 16px; padding: 4px 2px 18px; }
.acct-hero-compact { padding-bottom: 6px; }
.acct-avatar-wrap { position: relative; cursor: pointer; flex-shrink: 0; }
.acct-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent-soft) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}
.acct-avatar-sm { width: 56px; height: 56px; box-shadow: none; flex-shrink: 0; }
.acct-avatar-sm svg { width: 28px; height: 28px; }
.acct-avatar-badge { bottom: 0 !important; right: 0 !important; }
.acct-hero-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.acct-hero-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-hero-sub { font-size: 13px; color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-hero-sub:empty { display: none; }
.acct-badge {
  display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  background: rgb(var(--ink-rgb) / 0.08); color: rgb(var(--ink-rgb) / 0.55);
}
.acct-badge.is-pro { background: var(--accent-strong); color: var(--on-strong); }

/* Stats strip */
.acct-stats { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.acct-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; position: relative; }
.acct-stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 22%; height: 56%; width: 1px; background: var(--border); }
.acct-stat span { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.acct-stat label { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: 0.03em; cursor: default; }

/* Groups: cards, rows, icons and titles come from screens.css */
.acct-group-pad { padding: 14px 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.acct-group-pad .app-theme-picker { margin: 0 auto; }

/* Rows (base styles in screens.css) */
.acct-row-static { cursor: default; }
.acct-row-static:hover { background: none; }
.acct-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-row-label { flex: 1; }
.acct-row-main .acct-row-label { flex: none; }
.acct-row-sub { line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.acct-row-value { font-size: 13px; color: var(--text-3); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row-action { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.acct-readonly { background: none; border: none; padding: 0; margin: 0; width: 100%; font: inherit; font-size: 12.5px; color: var(--text-3); pointer-events: none; outline: none; }

/* Fields */
.acct-field { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-bottom: 1px solid var(--border); }
.acct-field:last-child { border-bottom: none; }
.acct-field-label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.acct-input {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 15px; outline: none; transition: border-color .15s;
}
.acct-input:focus { border-color: var(--accent); }
.acct-hint { font-size: 12px; color: var(--text-3); }
.acct-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.acct-chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.acct-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* Pills */
.acct-pill {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.acct-pill-strong { background: var(--accent-strong); border-color: transparent; color: var(--on-strong); }

/* Two-step setup expands under its row */
.acct-mfa-panel { padding: 0 14px 4px; }
.acct-mfa-panel .auth-error:empty { display: none; }

/* Plan */
.acct-plan { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-color: rgb(var(--acc-rgb) / 0.3); background: rgb(var(--acc-rgb) / 0.07); }
.acct-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-plan .acct-badge { margin-top: 0; }
.acct-plan-status { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.acct-plan-status:empty { display: none; }

/* Danger */
.acct-danger-title { color: #ff6b6b; }
.acct-danger .acct-ico { background: rgba(255, 59, 48, 0.12); color: #ff6b6b; }
.acct-danger .acct-row-label { color: #ff6b6b; }

.acct-save { margin-top: 16px; }

@media (max-width: 480px) {
  .acct-avatar { width: 72px; height: 72px; }
  .acct-hero-name { font-size: 20px; }
}
