/* =========================================================
   Vaaani — auth + dashboard pages
   Inherits tokens from style.css; layered styles only.
   ========================================================= */

.auth-shell {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(77,105,78,0.08), transparent 65%),
    var(--c-bg);
}

.auth-main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 32px) 24px 60px;
}

.auth-card {
  width: 100%; max-width: 440px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 36px 32px;
}
.auth-card .auth-eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: 0.16em;
  color: var(--c-accent); text-transform: uppercase; font-weight: 600; margin-bottom: 12px;
}
.auth-card h1 {
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.auth-card .auth-sub {
  font-size: 14px; color: var(--c-muted-strong); margin-bottom: 28px; line-height: 1.55;
}

.field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}
.field label {
  font-size: 12px; letter-spacing: 0.05em; color: var(--c-muted-strong); font-weight: 500;
}
.field input {
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  color: var(--c-text); padding: 12px 14px; border-radius: 8px;
  font: inherit; font-size: 14.5px; outline: none;
  transition: border-color 0.15s var(--ease-out);
}
.field input:focus { border-color: var(--c-accent); }
.field input::placeholder { color: var(--c-muted); }
.field .hint { font-size: 11.5px; color: var(--c-muted); margin-top: 2px; }
.field .error { font-size: 12.5px; color: #b04050; margin-top: 4px; min-height: 16px; }

.auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.auth-actions .btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; }

.divider {
  display: flex; align-items: center; gap: 12px; margin: 22px 0;
  color: var(--c-muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }

.btn-google {
  background: var(--c-bg-2); color: var(--c-text); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-google:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.btn-google svg { width: 16px; height: 16px; }

.btn-github {
  background: var(--c-bg-2); color: var(--c-text); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-github:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.btn-github svg { width: 16px; height: 16px; fill: var(--c-text); }

.auth-foot {
  margin-top: 22px; text-align: center; color: var(--c-muted-strong); font-size: 13px;
}
.auth-foot a { color: var(--c-accent-soft); font-weight: 500; }
.auth-foot a:hover { color: var(--c-accent); }

.status-msg {
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px;
  border: 1px solid; line-height: 1.5;
}
.status-msg.ok { background: rgba(95,184,138,0.08); border-color: rgba(95,184,138,0.3); color: #2f8a55; }
.status-msg.err { background: rgba(255,107,133,0.08); border-color: rgba(255,107,133,0.3); color: #b04050; }
.status-msg.info { background: rgba(91,141,239,0.08); border-color: rgba(91,141,239,0.3); color: #3a5d9b; }
.status-msg.warn { background: rgba(212,169,87,0.08); border-color: rgba(212,169,87,0.3); color: #8a6520; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing-shell { padding: calc(var(--nav-h) + 60px) 24px 90px; }
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.pricing-head .eyebrow { margin-bottom: 22px; }
.pricing-head h1 { font-size: clamp(40px, 5.5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; }
.pricing-head p { font-size: 16px; color: var(--c-muted-strong); max-width: 560px; margin: 0 auto; line-height: 1.65; }

.cycle-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 999px;
  margin-top: 28px;
}
.cycle-toggle button {
  background: transparent; color: var(--c-muted-strong); border: none; cursor: pointer;
  font: inherit; font-size: 12.5px; padding: 8px 18px; border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.cycle-toggle button.on { background: var(--c-accent); color: #fff; }
.cycle-toggle .save { color: var(--c-accent); font-size: 11px; margin-left: 6px; font-weight: 600; }

.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.tier {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 36px 30px;
  display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  position: relative;
}
.tier:hover { border-color: var(--c-border-strong); transform: translateY(-3px); }
.tier.featured {
  border-color: rgba(77,105,78,0.5);
  background: linear-gradient(180deg, rgba(77,105,78,0.04), var(--c-surface));
}
.tier.featured::before {
  content: 'Most popular'; position: absolute; top: -1px; right: 24px;
  transform: translateY(-50%);
  background: var(--c-accent); color: #fff;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 4px 10px; border-radius: 4px;
}
.tier-name { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-bottom: 14px; }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.tier-price .amt { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; }
.tier-price .cur { font-size: 18px; color: var(--c-muted-strong); }
.tier-price .per { color: var(--c-muted); font-size: 13px; }
.tier-tag { font-size: 12.5px; color: var(--c-muted); margin-bottom: 24px; min-height: 18px; }
.tier-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.tier-features li { font-size: 13.5px; color: var(--c-muted-strong); padding: 8px 0; display: flex; gap: 10px; line-height: 1.5; border-bottom: 1px dashed var(--c-border); }
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before { content: '+'; color: var(--c-accent); font-weight: 700; flex: 0 0 14px; }
.tier .btn { width: 100%; justify-content: center; padding: 12px 18px; }

.pricing-faq { max-width: 800px; margin: 80px auto 0; }
.pricing-faq h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-bottom: 22px; text-align: center; }
.faq-item {
  padding: 18px 22px; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 10px; margin-bottom: 10px;
}
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq-item p { margin-top: 10px; color: var(--c-muted-strong); font-size: 14px; line-height: 1.65; }

/* =========================================================
   ACCOUNT / DASHBOARD
   ========================================================= */
.dash-shell { padding: calc(var(--nav-h) + 40px) 24px 60px; }
.dash-head { max-width: 1080px; margin: 0 auto 28px; }
.dash-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.dash-head p { font-size: 14px; color: var(--c-muted-strong); margin-top: 6px; }
.dash-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 24px;
}
.dash-card h2 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); font-weight: 600; margin-bottom: 18px;
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-tile {
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  border-radius: 10px; padding: 16px;
}
.stat-tile .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.stat-tile .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; color: var(--c-text); font-variant-numeric: tabular-nums; }
.stat-tile .value.accent { color: var(--c-accent); }

.skill-list, .due-list { display: flex; flex-direction: column; gap: 8px; }
.skill-row, .due-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 12px 14px; background: var(--c-bg-2); border: 1px solid var(--c-border);
  border-radius: 8px; font-size: 13.5px;
}
.skill-row .topic, .due-row .topic { font-weight: 500; color: var(--c-text); }
.skill-row .subject, .due-row .subject {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-muted); border: 1px solid var(--c-border); padding: 2px 6px; border-radius: 4px;
}
.mastery-bar {
  width: 110px; height: 5px; background: var(--c-bg); border-radius: 999px; overflow: hidden;
  position: relative;
}
.mastery-bar::after {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--m, 0%); background: var(--c-accent); transition: width 0.4s var(--ease-out);
}
.empty-state { color: var(--c-muted); font-size: 13px; padding: 14px; text-align: center; }

.profile-block { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.profile-block .label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.profile-block .value { font-size: 14.5px; color: var(--c-text); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  margin-left: 6px;
}
.badge.ok { background: rgba(95,184,138,0.12); color: #2f8a55; border: 1px solid rgba(95,184,138,0.3); }
.badge.warn { background: rgba(212,169,87,0.12); color: #8a6520; border: 1px solid rgba(212,169,87,0.3); }

.phone-step { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--c-border); }

/* School membership tags on account page */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10.5px; letter-spacing: 0.08em; font-weight: 600;
}
.tag.admin { background: rgba(77,105,78,0.12); color: var(--c-accent); }
.tag.teacher { background: rgba(91,141,239,0.1); color: #3a5d9b; }
.tag.student { background: rgba(95,184,138,0.1); color: #2f8a55; }
.tag.parent { background: rgba(212,169,87,0.12); color: #8a6520; }
