/* ==========================================================================
   Clear Auto Choice - Account
   Covers: account/login.html, account/preferences.html

   Deliberately reuses .card / .field / .btn / .badge / .status-msg from
   style.css rather than redefining them — this file only adds the layout
   and small pieces those shared rules don't cover, same approach as
   trade-in.css's "itl-" rules.
   ========================================================================== */

.acct-card-wrap { max-width: 420px; margin: 0 auto; }
.acct-card { padding: 32px; }

.acct-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.acct-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 6px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
}
.acct-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.acct-fineprint { margin: 18px 0 0; }

/* ---------- Dashboard (preferences.html) ---------- */

.acct-dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.acct-dash-email { font-size: 0.85rem; color: var(--slate); margin-top: 2px; }

.acct-section { margin-bottom: 28px; }
.acct-section h3 { margin-top: 0; }

.acct-spend-line { font-size: 0.85rem; color: var(--slate); margin: -6px 0 16px; }
.acct-spend-line strong { color: var(--ink); }

.acct-report-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.acct-report-row:last-child { margin-bottom: 0; }
.acct-report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.acct-report-vin { font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.acct-report-meta { font-size: 0.82rem; color: var(--slate); margin-top: 4px; }
.acct-report-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.acct-report-detail { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.acct-report-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 0.85rem; margin: 0; }
.acct-report-detail dt { color: var(--slate); }
.acct-report-detail dd { margin: 0; color: var(--ink); word-break: break-word; }

.acct-empty { color: var(--slate); font-size: 0.9rem; }

.acct-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
}
.acct-status-paid { background: var(--confirmed-bg, #DCFCE7); color: var(--confirmed, #166534); }
.acct-status-pending { background: #FEF3C7; color: #92400E; }
.acct-status-failed { background: #FEE2E2; color: #B91C1C; }
