/* PrepAid user account / subscription area.
   Reuses base.css design tokens + button classes; everything else lives here so
   the account pages are independent of the admin console styles. */

body.account-body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
}

/* ---- Top bar ---- */
.account-topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
.account-topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy-800);
}
.account-topbar .brand small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--slate-500);
}
.account-who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--slate-700);
}
.account-who strong { color: var(--ink); font-weight: 600; }
.linklike {
  background: none;
  border: none;
  color: var(--blue-600);
  font: 600 13.5px var(--font);
  cursor: pointer;
  padding: 0;
}
.linklike:hover { text-decoration: underline; }

/* ---- Shell / cards ---- */
.account-shell {
  max-width: 560px;
  margin: 12px auto 64px;
  padding: 0 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card + .card { margin-top: 18px; }

.eyebrow {
  font: 700 12px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.card h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.card .lede { color: var(--slate-500); margin: 0 0 20px; font-size: 14.5px; }

/* ---- Premium price panel ---- */
.plan {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-800), var(--blue-700));
  color: #fff;
  margin-bottom: 22px;
}
.plan .amount { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.plan .per { font-size: 13px; opacity: 0.82; }
.plan .badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gold-400);
  color: var(--navy-900);
  padding: 5px 10px;
  border-radius: 999px;
}
.perks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate-700); }
.perks svg { flex: none; margin-top: 2px; color: var(--green-600); }

/* ---- Fields ---- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font: 600 12.5px/1.4 var(--font); color: var(--slate-700); }
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font: 500 15px var(--font);
  color: var(--ink);
  background: #fff;
}
.field input:focus { outline: 2px solid var(--blue-500); outline-offset: -1px; }
.field.invalid input { border-color: var(--red-600); }
.field .err { color: var(--red-600); font-size: 12px; min-height: 14px; }
.paying-as { font-size: 13px; color: var(--green-600); font-weight: 600; min-height: 16px; }

/* ---- Network picker ---- */
.net-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.net-options input { position: absolute; opacity: 0; pointer-events: none; }
.net-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--slate-700);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, background 0.12s;
}
.net-options input:checked + label { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.net-options label:hover { border-color: var(--blue-500); }

.btn.block { width: 100%; justify-content: center; padding: 13px 18px; font-size: 15px; }
.form-error { color: var(--red-600); font-size: 13.5px; font-weight: 500; margin: 6px 0 0; min-height: 18px; }
.fine { font-size: 12.5px; color: var(--slate-400); margin: 14px 0 0; text-align: center; }

/* ---- Waiting / status states ---- */
.state { text-align: center; padding: 8px 0 4px; }
.state .spinner {
  width: 44px; height: 44px; margin: 4px auto 16px;
  border: 4px solid var(--blue-100);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state h2 { font-size: 19px; margin: 0 0 8px; }
.state p { color: var(--slate-500); font-size: 14.5px; margin: 0 auto 18px; max-width: 380px; }

.tick {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-600);
}
.cross {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--red-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-600);
}

.hidden { display: none !important; }

/* ---- Login page ---- */
body.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 30px;
}
.login-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--navy-800); margin-bottom: 22px;
}
.login-brand small { display: block; font-weight: 500; font-size: 11px; color: var(--slate-500); }
.login-card h1 { font-size: 21px; margin: 0 0 4px; }
.login-sub { color: var(--slate-500); font-size: 14px; margin: 0 0 22px; }
.login-foot { margin-top: 20px; font-size: 13.5px; text-align: center; }

/* ---- Social Login ---- */
.login-divider {
  display: flex; align-items: center; text-align: center; color: var(--slate-400); font-size: 12px; font-weight: 600; margin: 20px 0;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--slate-200); }
.login-divider::before { margin-right: .8em; }
.login-divider::after { margin-left: .8em; }

.social-login { display: grid; gap: 10px; }
.social-btn-wrapper { min-height: 40px; display: flex; justify-content: center; width: 100%; }

/* Wrong-account notice. Amber, not red: nothing has failed — they most likely
   picked the wrong one of several accounts on the device. */
.social-warning {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  background: #fffbeb;
}
.social-warning strong { display: block; font-size: 14.5px; color: #92400e; margin-bottom: 4px; }
.social-warning p { margin: 0 0 12px; font-size: 13.5px; color: #78350f; line-height: 1.5; }

/* Who the payment lands on — the last checkpoint before money moves. */
.pay-as {
  margin: 18px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-50, #f8fafc);
  text-align: center;
}
.pay-as-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); }
.pay-as strong { display: block; font-size: 15px; color: var(--ink); margin: 3px 0 1px; word-break: break-all; }
.pay-as-via { display: block; font-size: 12.5px; color: var(--slate-500); }
.pay-as .linklike { margin-top: 8px; font-size: 12.5px; }

/* ---- Toast ---- */
.toast-region { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 10px; z-index: 200; }
.toast {
  background: var(--navy-800); color: #fff;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; box-shadow: var(--shadow-lg);
  animation: toast-in 0.18s ease-out;
}
.toast.error { background: var(--red-600); }
.toast.success { background: var(--green-600); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 480px) {
  .card { padding: 22px 18px; }
  .net-options { grid-template-columns: 1fr; }
}
