/* ───────────────────────────────────────────────────────────────────────────
   Fitness Vow — /account page (signed-in hub + signed-in sign-in form)
   Depends on base.css for shared tokens, nav, footer, buttons, cards, etc.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.page {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 32px) clamp(48px, 7vw, 96px);
}

/* ── Loading state (default until auth resolves) ────────────────────────── */
.page-loader {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { margin-bottom: clamp(28px, 4vw, 40px); }
.hero .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 900; letter-spacing: -1.2px; line-height: 1.05;
  margin: 0 0 10px;
}
.hero p {
  color: var(--text-muted);
  font-size: clamp(15px, 1.7vw, 17px);
  margin: 0; max-width: 580px; line-height: 1.6;
}

/* ── Grid layouts ───────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid.profile-grid { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 760px) {
  .grid.profile-grid { grid-template-columns: 1fr; }
}

/* ── Card variants used on this page ────────────────────────────────────── */
.card-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
  margin: 0 0 8px;
}
.card-body { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin: 0; }
.card-body strong { color: var(--text); }

a.card { color: inherit; text-decoration: none; display: block; }
.card-action {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.card-action .arrow {
  color: var(--primary); font-size: 22px; line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}
a.card:hover .arrow { transform: translateX(3px); }

/* ── Profile block (left card) ──────────────────────────────────────────── */
.profile {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 22px;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900; font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 12px 28px -10px rgba(56,189,248,0.55);
}
.avatar img {
  width: 100%; height: 100%;
  border-radius: 18px;
  object-fit: cover;
}
.profile-meta { min-width: 0; }
.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 800;
  margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-email {
  font-size: 13px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-rows {
  display: grid; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(56,189,248,0.08);
}
.profile-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 14px;
}
.profile-row .label {
  color: var(--text-dim); font-size: 12px;
  letter-spacing: 0.4px; text-transform: uppercase; font-weight: 700;
}
.profile-row .value { color: var(--text); font-weight: 600; text-align: right; }

/* ── Status pill ────────────────────────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 100px;
  background: rgba(52,211,153,0.10);
  border: 1px solid rgba(52,211,153,0.32);
  color: var(--success);
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
}
.status-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(52,211,153,0.7);
}

/* ── Section title (between groups of cards) ────────────────────────────── */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-dim);
  margin: 40px 0 14px;
}

/* ── Data cards (Wallet, Plan, History, Progress link cards) ────────────── */
.data-card .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(56,189,248,0.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 20px;
}

/* ── Danger zone ────────────────────────────────────────────────────────── */
.danger-card {
  background: linear-gradient(180deg, rgba(248,113,113,0.04), rgba(248,113,113,0.02));
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 28px);
}
.danger-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--danger);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.danger-card p {
  color: var(--text-muted); font-size: 14px;
  line-height: 1.6; margin: 0 0 18px;
}
.danger-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Signed-out / sign-in form ──────────────────────────────────────────── */
.auth-card {
  max-width: 460px; margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-glass), rgba(15,26,46,0.45));
  border: 1px solid var(--outline-soft);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
}
.auth-card .eyebrow {
  display: block; text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
.auth-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 900; text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
}
.auth-card .sub {
  text-align: center; color: var(--text-muted);
  font-size: 14px; margin: 0 0 24px;
}
.form-row { display: grid; gap: 14px; margin-bottom: 8px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit; font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.14);
}
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--text-dim); font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(56,189,248,0.12);
}
