/* ============================================================
   College Resume — clean, airy theme
   Minimal, lots of white space, one teal accent, pill buttons,
   soft large-radius cards, friendly geometric headings.
   ============================================================ */
:root {
  --ink: #16243a;        /* headings / charcoal-navy */
  --ink-soft: #3c4856;
  --muted: #6b7480;
  --line: #e9edf1;
  --line-soft: #f1f4f6;
  --bg: #ffffff;
  --surface: #f5f8f9;    /* alternating section background */
  --panel: #ffffff;
  --navy: #16243a;
  --teal: #15808b;       /* brand accent */
  --teal-dark: #116a73;
  --teal-soft: #e6f3f4;
  --accent: #15808b;     /* links use the brand accent */
  --good: #16a34a;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 34px rgba(16,24,40,.07);
  --shadow-lg: 0 8px 40px rgba(16,24,40,.10);
  --radius: 14px;
  --r-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Poppins", "Inter", sans-serif; color: var(--ink); letter-spacing: -.01em; }
.container { width: min(1140px, 92vw); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--accent); }

/* ---------- Buttons (pills) ---------- */
.btn {
  font: inherit; font-family: "Poppins", "Inter", sans-serif; font-weight: 600; cursor: pointer; border: 0;
  border-radius: 999px; padding: 13px 26px; font-size: .98rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(21,128,139,.22); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0f1a2c; }
.btn-light { background: var(--line-soft); color: var(--ink); }
.btn-light:hover { background: #e6eaee; }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--ink); padding: 11px 22px; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cdd4da; }
.btn-block { display: flex; width: 100%; padding: 15px; font-size: 1.02rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.linklike { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; font-weight: 600; padding: 0; }
.linklike:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 32px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav a:hover { color: var(--ink); }

/* ---------- Hero (fills the viewport / full fold) ---------- */
.hero { min-height: calc(100svh - 70px); display: flex; align-items: center; padding: 40px 0; }
.hero-grid { width: 100%; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-h1 { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--teal-soft); color: var(--teal-dark);
  font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero-h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.08; margin: 0 0 18px; }
.hero-h1 .accent { color: var(--teal); }
.hero-p { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); margin: 0 0 26px; max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust-mini { margin: 22px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.trust-mini span { display: inline-flex; align-items: center; gap: 6px; }
.trust-mini .ck { color: var(--good); font-weight: 800; }

/* ---------- Upload card (hero right) ---------- */
.dropzone {
  background: #fff; border: 2px dashed #cfd8de; border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px) 28px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; outline: none;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--teal); background: #f7fcfc; }
.dropzone.dragover { border-color: var(--teal); background: #eef8f8; }
.dropzone.loaded { border-style: solid; border-color: var(--good); background: #f3fbf6; }
.dz-icon { color: var(--teal); margin-bottom: 12px; display: flex; justify-content: center; }
.dz-icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; }
.dz-title { margin: 6px 0 4px; font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.dz-hint { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.dz-file { margin: 14px 0 0; font-weight: 600; color: var(--good); font-size: .9rem; word-break: break-all; }
.wizard-line { text-align: center; font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.linklike-bold { font-weight: 700; font-size: 1rem; text-decoration: underline; text-underline-offset: 2px; }

/* "100% automatic and Free" tagline with pill */
.hero-tagline { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--ink); margin: 18px 0 0; display: inline-flex; align-items: center; gap: 12px; }
.free-pill { background: var(--teal); color: #fff; border-radius: 999px; padding: 4px 18px; font-weight: 700; }

/* Second upload CTA section (title on top, centered) */
.cta-section { background: var(--surface); }
.cta-stack { max-width: 600px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-title { margin: 0 0 10px; }
.cta-stack .hero-tagline { margin: 0 0 28px; }
.cta-card { width: 100%; max-width: 520px; }

/* ---------- Section system ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(30px, 4vw, 48px); }
.section-eyebrow { color: var(--teal); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.12; margin: 0 0 14px; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ---------- Template gallery ---------- */
#templates { position: relative; overflow: hidden; }
#templates .container { position: relative; z-index: 2; }
/* faint resume of the selected template, sitting in the section's right background */
/* anchored to the bottom of the section like a page rising from the fold */
.templates-bg { position: absolute; top: 0; bottom: 0; right: 0; width: min(54%, 720px); overflow: hidden; pointer-events: none; z-index: 1; display: flex; align-items: flex-end; }
.tbg-scale { transform: translateY(70px) scale(.86); transform-origin: bottom left; opacity: .96;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%), linear-gradient(to right, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%), linear-gradient(to right, transparent 0, #000 16%);
  mask-composite: intersect; }
.tbg-scale .resume-page { box-shadow: 0 -8px 40px rgba(16,24,40,.10); }
.tbg-scale .resume-page { position: relative; top: auto; left: auto; box-shadow: 0 24px 60px rgba(16,24,40,.14); }
@media (max-width: 900px) { .templates-bg { display: none; } }

.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
.tcard {
  border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px 16px 18px; text-align: center;
  cursor: pointer; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  position: relative; min-height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.tcard:hover { border-color: #cdd8dd; box-shadow: var(--shadow); transform: translateY(-3px); }
.tcard.active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21,128,139,.16); }
.tcard .crest { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: "Libre Baskerville", Georgia, serif; font-size: 2rem; }
.tcard .tprev { width: 100%; height: 90px; object-fit: contain; }
.tcard .tname { font-weight: 700; font-size: .86rem; line-height: 1.18; text-transform: uppercase; letter-spacing: .3px; color: var(--ink); }
.tcard .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .74rem; display: none; place-items: center; }
.tcard.active .tick { display: grid; }

/* ---------- Feature highlights ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto clamp(28px, 4vw, 44px); }
.feature-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.feature-card .fc-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.feature-card strong { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 3px; }
.feature-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.soon { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 2px 7px; vertical-align: middle; margin-left: 4px; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; } }

/* AI assist panel */
.ai-card { border-color: #bfe3e6; box-shadow: 0 10px 34px rgba(21,128,139,.10); }
.ai-head { display: flex; align-items: center; gap: 8px; font-family: "Poppins", sans-serif; font-weight: 700; color: var(--ink); font-size: 1.06rem; margin-bottom: 6px; }
.ai-head .ai-spark { color: var(--teal); display: inline-flex; }
.ai-sub { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.ai-btn svg { margin-right: 2px; }
.ai-input { width: 100%; margin-top: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); resize: vertical; min-height: 56px; }
.ai-input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.ai-results { display: grid; gap: 10px; margin-top: 16px; }
.ai-result { display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid #bfe3e6; background: #f6fcfc; border-radius: 12px; padding: 12px 14px; animation: aiIn .25s ease; }
@keyframes aiIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ai-result p { margin: 0; font-size: .92rem; color: var(--ink); line-height: 1.45; flex: 1 1 auto; }
.ai-copy { flex: 0 0 auto; background: none; border: 0; color: var(--teal); cursor: pointer; padding: 2px; border-radius: 6px; }
.ai-copy:hover { background: var(--teal-soft); }
.ai-examples { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ai-examples-label { font-size: .82rem; color: var(--muted); width: 100%; margin-bottom: 2px; }
.ai-chip { font: inherit; font-size: .82rem; color: var(--ink-soft); background: var(--line-soft); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.ai-chip:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); }

/* What's-included bundle panel */
.bundle-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 32px); }
.bundle-title { font-size: 1.3rem; margin: 0 0 18px; font-weight: 800; }
.bundle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bundle-list li { display: flex; gap: 12px; align-items: flex-start; }
.bundle-list .bl-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-top: 1px; }
.bundle-list strong { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 2px; }
.bundle-list p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* ---------- Builder (track + preview + generate) ---------- */
.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; max-width: 980px; margin: 0 auto; }
.builder-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); }
.field-label { font-weight: 600; font-size: .9rem; color: var(--ink); margin: 0 0 8px; display: block; }
.track-select {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2369727e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center;
}
.track-select:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* before / after bullet demo */
.ba { display: grid; gap: 12px; margin-top: 20px; }
.ba-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fcfdfd; }
.ba-row .ba-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; display: inline-block; margin-bottom: 6px; }
.ba-before .ba-tag { background: #fbeaea; color: #b4423d; }
.ba-after .ba-tag { background: var(--teal-soft); color: var(--teal-dark); }
.ba-row p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.ba-after { border-color: #bfe3e6; }
.ba-arrow { text-align: center; color: var(--muted); font-size: 1.1rem; line-height: 0; }

.preview-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.resume-preview { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; height: 340px; overflow: auto; font-size: 11px; color: #111; box-shadow: var(--shadow); }
#resumePreview { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }

/* ---------- Resume preview internals (driven inline by renderPreview) ----------
   Spacing is tuned by CSS custom properties that renderPreview sets per-résumé
   (--rp-sec-gap / --rp-entry-gap / --rp-head-gap) so a thin résumé breathes and
   a dense one tightens. The values below are safe fallbacks for the teaser. */
.rp-header { margin-bottom: 6px; }
.rp-name { font-weight: 700; font-size: 15px; line-height: 1.12; }
.rp-contact { color: #333; font-size: 10.5px; margin-top: 3px; }
.rp-sec-title { font-weight: 700; margin: var(--rp-sec-gap, 9px) 0 var(--rp-head-gap, 4px); padding-bottom: 2px; letter-spacing: .4px; }
.rp-entry { margin: 0 0 var(--rp-entry-gap, 7px); }
.rp-entry:last-child { margin-bottom: 0; }
.rp-entry-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rp-entry-head .rp-org { font-weight: 700; font-style: normal; }
.rp-role { margin: 1px 0 0; color: #26313f; }
.rp-date { color: #555; white-space: nowrap; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.rp-bullets { margin: 3px 0 0; padding-left: 15px; }
.rp-bullets li { margin: 1.5px 0; padding-left: 2px; }
.rp-plain { margin: 2px 0; }
/* Skills rendered as subtle inline chips separated by a hairline dot. */
.rp-skills { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: baseline; }
.rp-skill { position: relative; padding-right: 4px; }
.rp-skill:not(:last-child)::after { content: "•"; position: absolute; right: -3px; color: #9aa3af; }
.rp-empty { color: #9aa3af; font-style: italic; text-align: center; padding: 40px 10px; }

/* ---------- Reviews / testimonials ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 26px; display: flex; flex-direction: column; }
.review-stars { color: #f5a623; letter-spacing: 2px; font-size: 1rem; margin-bottom: 14px; }
.review-quote { font-size: 1.04rem; color: var(--ink); line-height: 1.55; margin: 0 0 24px; flex: 1 1 auto; }
.reviewer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.reviewer .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; display: grid; place-items: center; font-family: "Poppins", sans-serif; font-size: .92rem; flex: 0 0 auto; }
.reviewer strong { display: block; color: var(--ink); font-size: .95rem; }
.reviewer span { color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Trust band ---------- */
.trust-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 920px; margin: 0 auto; }
.trust-card { text-align: center; padding: 8px; }
.trust-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 14px; }
.trust-card h3 { font-size: 1.05rem; margin: 0 0 6px; font-weight: 700; }
.trust-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 740px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item2 { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item2 summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item2 summary::-webkit-details-marker { display: none; }
.faq-item2 summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; font-weight: 400; line-height: 1; }
.faq-item2[open] summary::after { content: "–"; }
.faq-item2 .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: .96rem; }

/* ---------- Coffee / support ---------- */
.coffee { text-align: center; }
.coffee-line { font-size: 1.18rem; margin: 0 0 10px; color: var(--ink); }
.coffee-links { margin: 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.coffee-link { color: var(--teal); text-decoration: none; font-weight: 600; font-size: .95rem; border: 1.5px solid var(--line); padding: 9px 18px; border-radius: 999px; }
.coffee-link:hover { border-color: var(--teal); background: var(--teal-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; }
.footer-disclaimer { width: min(1140px, 92vw); margin: 0 auto 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); line-height: 1.6; text-align: center; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .92rem;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: 1fr; }
  .steps, .trust-band { grid-template-columns: 1fr; }
  .site-nav a { display: none; }
}
@media (max-width: 560px) {
  .template-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .brand-logo { height: 28px; } }

/* ============================================================
   Admin area
   ============================================================ */
.admin-body { background: var(--surface); }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); }
.admin-header .header-inner { height: 64px; }
.admin-tag { font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--teal); padding: 3px 9px; border-radius: 999px; margin-left: 8px; }
.admin-wrap { width: min(1080px, 94vw); margin: 28px auto 64px; }
.login-card { max-width: 400px; margin: 12vh auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 32px; text-align: center; }
.login-card img { height: 36px; margin-bottom: 16px; }
.login-card h1 { font-size: 1.3rem; margin: 0 0 4px; }
.login-card p { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.login-card input { width: 100%; padding: 13px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; margin-bottom: 12px; }
.login-card .err { color: #b91c1c; font-size: .85rem; min-height: 18px; margin: 0 0 8px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.admin-toolbar h1 { font-size: 1.4rem; margin: 0; }
.admin-grid { display: grid; gap: 14px; }
.school-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; }
.school-row { display: flex; align-items: center; gap: 14px; }
.school-row .crestbig { width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 800; display: grid; place-items: center; font-family: "Libre Baskerville", serif; flex: 0 0 auto; }
.school-row .meta { flex: 1 1 auto; min-width: 0; }
.school-row .meta strong { display: block; color: var(--ink); }
.school-row .meta span { color: var(--muted); font-size: .82rem; }
.school-row .actions { display: flex; gap: 8px; flex: 0 0 auto; }
.badge-off { font-size: .7rem; color: #b91c1c; border: 1px solid #f3c2c2; background: #fdecec; padding: 1px 8px; border-radius: 999px; }
.editor { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 16px; display: none; }
.editor.open { display: block; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select { padding: 10px 11px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.field.full { grid-column: 1 / -1; }
.field input[type="color"] { padding: 2px; height: 42px; }
.editor-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.btn-danger { background: #fff; border: 1.5px solid #e3b3b3; color: #b91c1c; }
.btn-danger:hover { background: #fdecec; }
.save-status { font-size: .82rem; color: var(--good); }
.preview-thumb { height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; object-fit: contain; padding: 2px; }
.admin-link { color: var(--muted); text-decoration: none; }
.admin-link:hover { color: var(--ink); }

/* ============================================================
   Resume editor (full-screen)
   ============================================================ */
.editor-view { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.editor-view[hidden] { display: none; }
.editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.editor-bar .brand-logo { height: 30px; }
.editor-bar-actions { display: flex; gap: 10px; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.editor-grid { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 0; }
.editor-form-col { overflow-y: auto; padding: 24px clamp(16px, 3vw, 34px); border-right: 1px solid var(--line); }
.editor-hint { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.editor-preview-col { display: flex; flex-direction: column; min-height: 0; padding: 18px clamp(12px, 2vw, 24px); background: var(--surface); }
.editor-controls { display: flex; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; flex: 0 0 auto; }
.editor-controls label { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--ink-soft); flex: 1 1 180px; }
.editor-controls select { padding: 10px 11px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.editor-stage { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.page-scaler { position: relative; }
.resume-page { position: absolute; top: 0; left: 0; width: 612px; min-height: 792px; box-sizing: border-box; background: #fff; border: 1px solid #d8dde3; color: #111; transform-origin: top left; box-shadow: 0 4px 24px rgba(16,24,40,.18); overflow: hidden; }
.edit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 14px; }
.edit-card-title { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); font-weight: 800; }
.edit-card-body { display: flex; flex-direction: column; gap: 12px; }
.edit-field { display: flex; flex-direction: column; gap: 4px; }
.edit-field > span { font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
.edit-field input, .edit-field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); resize: vertical; }
.edit-field input:focus, .edit-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.entry-edit { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fafbfc; }
.entry-row { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 10px; }
@media (max-width: 900px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-form-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .entry-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Guided wizard (full-screen)
   ============================================================ */
.wizard-view { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: grid; grid-template-columns: 248px 1fr 360px; }
.wizard-view[hidden] { display: none; }
.wiz-rail { background: var(--navy); color: #fff; padding: 22px 20px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.wiz-rail .brand-logo { height: 28px; filter: brightness(0) invert(1); opacity: .95; }
.wiz-steps { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.wiz-step { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: rgba(255,255,255,.6); font: inherit; font-weight: 600; text-align: left; padding: 10px 10px; border-radius: 10px; cursor: pointer; }
.wiz-step .wiz-dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); display: grid; place-items: center; font-size: .78rem; flex: 0 0 auto; }
.wiz-step.current { color: #fff; background: rgba(255,255,255,.08); }
.wiz-step.current .wiz-dot { background: var(--teal); color: #fff; }
.wiz-step.done { color: rgba(255,255,255,.92); }
.wiz-step.done .wiz-dot { background: var(--teal); color: #fff; }
.wiz-exit { margin-top: auto; background: none; border: 0; color: rgba(255,255,255,.7); font: inherit; cursor: pointer; text-align: left; padding: 8px 10px; }
.wiz-exit:hover { color: #fff; }

.wiz-main { display: flex; flex-direction: column; min-height: 0; }
.wiz-body { flex: 1 1 auto; overflow-y: auto; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 56px); }
.wiz-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 6px; font-weight: 800; }
.wiz-head p { margin: 0 0 26px; color: var(--muted); }
.wiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wiz-field { display: flex; flex-direction: column; gap: 5px; }
.wiz-field.full { grid-column: 1 / -1; }
.wiz-field > span { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.wiz-field input, .wiz-field textarea, .wiz-field select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); resize: vertical; }
.wiz-field input:focus, .wiz-field textarea:focus, .wiz-field select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.wiz-entry { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; background: #fff; box-shadow: var(--shadow); }
.wiz-entry .wiz-field.full { grid-column: auto; }
.wiz-note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.wiz-foot { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(20px, 4vw, 56px); border-top: 1px solid var(--line); background: #fff; }

.wiz-preview-col { background: var(--surface); border-left: 1px solid var(--line); padding: 22px; overflow-y: auto; }
.wiz-preview-col .preview-label { margin: 0 0 12px; }
.wiz-preview { height: auto; min-height: 70vh; box-shadow: var(--shadow); }

@media (max-width: 1100px) { .wizard-view { grid-template-columns: 220px 1fr; } .wiz-preview-col { display: none; } }
@media (max-width: 720px) {
  .wizard-view { grid-template-columns: 1fr; }
  .wiz-rail { flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; overflow-x: auto; }
  .wiz-rail .brand, .wiz-exit { display: none; }
  .wiz-steps { flex-direction: row; margin: 0; }
  .wiz-step span:not(.wiz-dot) { display: none; }
  .wiz-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Download dropdown + Ivy Bundle paywall
   ============================================================ */
.dl-wrap { position: relative; }
.dl-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 70; }
.dl-menu[hidden] { display: none; }
.dl-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: none; border: 0; font: inherit; text-align: left; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.dl-item:hover { background: var(--line-soft); }
.dl-label { display: flex; flex-direction: column; }
.dl-label strong { color: var(--ink); font-size: .95rem; font-weight: 600; }
.dl-label em { color: var(--muted); font-size: .78rem; font-style: normal; }
.dl-free { font-size: .72rem; font-weight: 700; color: var(--good); background: #e7f6ec; border-radius: 999px; padding: 3px 9px; flex: 0 0 auto; }
.dl-lock { font-size: .72rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 3px 9px; flex: 0 0 auto; }
.dl-lock.is-unlocked { color: var(--good); background: #e7f6ec; }
.dl-lock::before { content: "🔒 "; }
.dl-lock.is-unlocked::before { content: "✓ "; }

.paywall { position: fixed; inset: 0; z-index: 95; background: rgba(16,24,40,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.paywall[hidden] { display: none; }
.paywall-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: min(460px, 100%); padding: 32px 30px; position: relative; max-height: 92vh; overflow-y: auto; }
.paywall-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.paywall-close:hover { color: var(--ink); }
.paywall-eyebrow { color: var(--teal); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.paywall-title { font-size: 1.5rem; margin: 0 0 12px; font-weight: 800; }
.paywall-price { font-family: "Poppins", sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.paywall-price span { font-size: .82rem; font-weight: 500; color: var(--muted); display: block; }
.paywall-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.paywall-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.paywall-list .pc { color: var(--good); font-weight: 800; flex: 0 0 auto; }
.paywall-or { text-align: center; margin: 18px 0 14px; position: relative; }
.paywall-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.paywall-or span { position: relative; background: #fff; padding: 0 12px; color: var(--muted); font-size: .85rem; }
.paywall-share-label { font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.paywall-share { display: grid; gap: 8px; }
.share-btn { font: inherit; font-weight: 600; font-size: .92rem; padding: 11px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.share-btn:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); }
.paywall-note { font-size: .8rem; color: var(--muted); margin: 16px 0 0; text-align: center; }

/* ===================== Accounts / header ===================== */
.acct-slot { display: inline-flex; align-items: center; }
.acct-wrap { position: relative; }
.acct-trigger { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 8px 4px 4px; cursor: pointer; }
.acct-trigger:hover { border-color: var(--teal); }
.acct-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.acct-caret { color: var(--muted); font-size: .7rem; }
.acct-badge { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 2px 7px; }
.acct-badge.pro { background: var(--teal); color: #fff; }
.acct-menu { position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 210px; padding: 8px; z-index: 40; }
.acct-menu[hidden] { display: none; }
.acct-email { font-size: .8rem; color: var(--muted); margin: 4px 8px 8px; word-break: break-all; }
.acct-mi { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 9px; font: inherit; color: var(--ink); cursor: pointer; }
.acct-mi:hover { background: var(--line-soft); }

/* ===================== Generic modal shell ===================== */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(16,24,40,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.auth-card, .dash-card, .cover-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); position: relative; max-height: 92vh; overflow-y: auto; }

/* ----- Auth ----- */
.auth-card { width: min(420px, 100%); padding: 34px 30px 26px; }
.auth-title { font-size: 1.5rem; margin: 0 0 6px; font-weight: 800; }
.auth-sub { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
#authForm label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 14px; }
#authForm input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit; }
#authForm input:focus { outline: none; border-color: var(--teal); }
.auth-error { color: #c0392b; font-size: .85rem; min-height: 1em; margin: 0 0 10px; }
.auth-toggle { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0 0; }

/* ----- Dashboard ----- */
.dash-card { width: min(620px, 100%); padding: 30px 28px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.dash-title { font-size: 1.4rem; margin: 0; font-weight: 800; }
.dash-list { display: grid; gap: 10px; }
.dash-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; }
.dash-meta strong { display: block; font-size: .98rem; color: var(--ink); }
.dash-meta em { font-style: normal; font-size: .82rem; color: var(--muted); }
.dash-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.dash-empty, .dash-loading { color: var(--muted); text-align: center; padding: 24px 10px; }

/* ===================== Cover letter modal ===================== */
.cover-card { width: min(1100px, 100%); padding: 30px 32px 26px; }
.cover-title { font-size: 1.5rem; margin: 0 0 4px; font-weight: 800; }
.cover-sub { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.cover-grid { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.cover-fields label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 14px; }
.cover-fields .opt { color: var(--muted); font-weight: 400; }
.cover-fields input { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit; }
.cover-fields input:focus { outline: none; border-color: var(--teal); }
.cover-dls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cover-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.cover-preview-wrap { background: var(--line-soft); border-radius: 14px; padding: 22px; max-height: 72vh; overflow-y: auto; display: flex; justify-content: center; }
.cover-preview { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 48px 52px; font-size: .92rem; line-height: 1.55; color: #1c1c1c; box-shadow: var(--shadow); width: 100%; max-width: 640px; }
.cover-preview p { margin: 0 0 12px; }
.cover-preview .cl-head { padding-bottom: 12px; margin-bottom: 18px; }
.cover-preview .cl-name { font-weight: 800; font-size: 1.35rem; color: #141414; }
.cover-preview .cl-contact { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.cover-preview .cl-date, .cover-preview .cl-to { margin-bottom: 12px; }
.cover-preview .cl-greet { margin-bottom: 14px; }
.cover-preview .cl-close { margin: 18px 0 4px; }
.cover-preview .cl-sign { font-weight: 700; }

/* ===================== Paywall: styled two-option layout ===================== */
.paywall-card { width: min(560px, 100%); }
.pw-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 8px; }
.pw-opt { border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 16px; display: flex; flex-direction: column; }
.pw-opt-feature { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21,128,139,.12); position: relative; }
.pw-tag { position: absolute; top: -10px; left: 16px; background: var(--teal); color: #fff; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 3px 9px; }
.pw-opt h3 { font-size: 1.02rem; margin: 4px 0 6px; font-weight: 800; }
.pw-price { font-family: "Poppins", sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.pw-price span { font-size: .8rem; font-weight: 500; color: var(--muted); }
.pw-trial { font-size: .76rem; color: var(--muted); margin: 2px 0 10px; }
.pw-opt ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; font-size: .84rem; color: var(--ink-soft); }
.pw-opt ul li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 7px; }
.pw-opt .btn { margin-top: auto; }

/* ===================== Pricing section ===================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.price-feature { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21,128,139,.12); }
.price-ribbon { position: absolute; top: -12px; left: 24px; background: var(--teal); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 4px 12px; }
.price-name { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
.price-fig { font-family: "Poppins", sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price-fig span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-cap { font-size: .82rem; color: var(--muted); margin: 6px 0 18px; }
.price-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.price-list li { display: flex; gap: 9px; align-items: flex-start; }
.price-list .pc { color: var(--good); font-weight: 800; flex: 0 0 auto; }
.price-card .btn { margin-top: auto; }
.price-foot { text-align: center; color: var(--muted); font-size: .86rem; margin: 22px auto 0; max-width: 46em; }

@media (max-width: 820px) {
  .cover-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .pw-options { grid-template-columns: 1fr; }
}

/* ===================== Résumé analysis ("great start") screen ===================== */
.analysis-view { position: fixed; inset: 0; z-index: 90; background: #f6f8fb; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.analysis-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); width: min(940px, 100%); display: grid; grid-template-columns: 1fr 300px; overflow: hidden; }
.analysis-main { padding: 40px 42px; }
.analysis-eyebrow { color: var(--teal); font-weight: 700; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 8px; }
.analysis-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 6px; }
.analysis-sub { color: var(--muted); margin: 0 0 22px; font-size: .98rem; }
.analysis-block { background: var(--line-soft); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.analysis-block h3 { font-size: 1.02rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.analysis-block .ab-ic { font-size: 1.1rem; }
.analysis-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.analysis-block li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.analysis-good .pc { color: var(--good); font-weight: 800; }
.analysis-help .star { color: #e0a008; font-weight: 800; }
.analysis-fact { display: flex; gap: 12px; align-items: flex-start; border: 1.5px dashed var(--teal); background: var(--teal-soft); border-radius: 16px; padding: 16px 18px; margin: 4px 0 22px; }
.analysis-fact .fact-tag { flex: 0 0 auto; background: var(--teal); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 4px 10px; margin-top: 2px; }
.analysis-fact p { margin: 0; font-size: .92rem; color: var(--ink); }
.analysis-go { margin-top: 4px; }
.analysis-aside { background: linear-gradient(160deg, #e6f3f4, #d8ecff); display: grid; place-items: center; }
.analysis-illus { position: relative; }
.ai-doc { width: 150px; height: 190px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 22px 18px; display: grid; gap: 12px; align-content: start; }
.ai-doc span { height: 9px; border-radius: 5px; background: #d7e2ea; }
.ai-doc span:nth-child(1) { width: 60%; background: var(--teal); height: 12px; }
.ai-doc span:nth-child(2) { width: 100%; }
.ai-doc span:nth-child(3) { width: 90%; }
.ai-doc span:nth-child(4) { width: 95%; }
.ai-doc span:nth-child(5) { width: 70%; }
.ai-check { position: absolute; right: -14px; bottom: -14px; width: 54px; height: 54px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 1.7rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(21,128,139,.4); }
@media (max-width: 720px) {
  .analysis-card { grid-template-columns: 1fr; }
  .analysis-aside { display: none; }
  .analysis-main { padding: 30px 24px; }
}

/* ===================== Upsell paywall (trial plans) ===================== */
.paywall-card { width: min(520px, 100%); }
.upsell-feats { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 9px; }
.upsell-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.upsell-feats .pc { color: var(--good); font-weight: 800; flex: 0 0 auto; }
.upsell-plans { display: grid; gap: 10px; margin-bottom: 14px; }
.upsell-plan { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; }
.upsell-plan:hover { border-color: #cdd4da; }
.upsell-plan.is-active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21,128,139,.14); background: #f7fcfc; }
.up-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-block; position: relative; }
.upsell-plan.is-active .up-radio { border-color: var(--teal); }
.upsell-plan.is-active .up-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal); }
.up-body { display: flex; flex-direction: column; }
.up-body strong { font-size: .98rem; color: var(--ink); }
.up-body em { font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.up-price { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.up-price small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.up-badge { position: absolute; top: -10px; right: 14px; background: var(--teal); color: #fff; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 3px 9px; }
.upsell-disclosure { font-size: .78rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.upsell-trust { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 14px 0 0; color: var(--muted); font-size: .8rem; }

/* ----- analysis: scanning / assessment animation ----- */
.analysis-scan { min-height: 280px; display: flex; flex-direction: column; }
.scan-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--teal-soft); border-top-color: var(--teal); animation: scanspin .8s linear infinite; margin-bottom: 18px; }
@keyframes scanspin { to { transform: rotate(360deg); } }
.scan-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.scan-line { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.scan-line.in { opacity: 1; transform: none; }
.scan-tick { color: var(--good); font-weight: 800; flex: 0 0 auto; }
.analysis-result { opacity: 0; transition: opacity .4s ease; }
.analysis-result.in { opacity: 1; }

.acct-slot { gap: 12px; }
.acct-login { font-size: .96rem; }

/* ===================== "Nice to meet you" intro screen ===================== */
.intro-card { grid-template-columns: 300px 1fr; }
.intro-main { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.intro-body { margin: 14px 0 26px; }
.intro-body p { font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }
.intro-body b { color: var(--ink); }
.intro-go { align-self: flex-start; min-width: 200px; }
.intro-aside .analysis-illus { position: relative; }
.ai-wave { position: absolute; top: -26px; left: -10px; font-size: 2.2rem; z-index: 2; }
@media (max-width: 720px) {
  .intro-card { grid-template-columns: 1fr; }
  .intro-aside { display: none; }
  .intro-main { padding: 30px 24px; }
  .intro-go { align-self: stretch; }
}

/* ===================== Download format picker ===================== */
.fmt-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: min(560px, 100%); padding: 30px 30px 24px; position: relative; max-height: 92vh; overflow-y: auto; }
.fmt-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 20px; }
.fmt-opts { display: grid; gap: 12px; }
.fmt-opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; font: inherit; }
.fmt-opt:hover { border-color: #cdd4da; }
.fmt-opt.is-active { border-color: var(--teal); background: #f4fbf7; }
.fmt-ic { width: 44px; height: 50px; border-radius: 7px; display: grid; place-items: center; font-size: .6rem; font-weight: 800; color: #fff; letter-spacing: .02em; position: relative; }
.fmt-ic::before { content: ""; position: absolute; top: 5px; left: 6px; right: 6px; bottom: 16px; border-radius: 2px; background: rgba(255,255,255,.35); }
.fmt-pdf { background: #d7322b; } .fmt-docx { background: #2b579a; } .fmt-txt { background: #2f8f4e; }
.fmt-body { display: flex; flex-direction: column; }
.fmt-body strong { font-size: 1.05rem; color: var(--ink); }
.fmt-body em { font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.fmt-badge { background: var(--teal-soft); color: var(--teal-dark); font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.fmt-free { background: #e9f7ef; color: #1a7a40; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.fmt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.fmt-foot .linklike { font-size: 1rem; }

/* ===================== Guided editor walkthrough ===================== */
.tour-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(900px, 94vw); background: var(--ink); color: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 16px; justify-content: space-between; z-index: 60; }
.tour-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tour-count { font-weight: 700; font-size: .74rem; color: #8fd3da; text-transform: uppercase; letter-spacing: .05em; }
.tour-tip { font-size: .95rem; line-height: 1.35; }
.tour-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.tour-bar .btn-light { background: rgba(255,255,255,.16); color: #fff; }
.tour-bar .btn-light:hover { background: rgba(255,255,255,.26); }
.tour-bar .btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.32); color: #fff; }
.tour-bar .btn-ghost:hover { border-color: #fff; }
.tour-highlight { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.edit-card.tour-highlight { box-shadow: 0 0 0 4px rgba(21,128,139,.22); }
.rp-section.tour-highlight, .rp-header.tour-highlight { background: rgba(21,128,139,.10); outline-offset: 2px; }
@media (max-width: 640px) {
  .tour-bar { flex-direction: column; align-items: stretch; gap: 10px; bottom: 10px; }
  .tour-actions { justify-content: space-between; }
}

/* ===================== Download account wall ("One last step") ===================== */
.gate-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: min(880px, 100%); position: relative; max-height: 92vh; overflow: hidden; display: grid; grid-template-columns: 1fr 340px; }
.gate-main { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.gate-title { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 16px; }
.gate-copy { font-size: 1.05rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 14px; max-width: 30em; }
.gate-main .btn-block { margin-top: 12px; }
.gate-alt { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.gate-aside { background: linear-gradient(160deg, #eef2fb, #e2e9f7); display: grid; place-items: center; padding: 26px; }
.gate-preview-frame { width: 290px; height: 400px; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow-lg); background: #fff; }
.gate-preview { width: 290px; height: 400px; }
.gate-preview-frame { position: relative; }
.gate-preview .resume-page { position: relative; top: 0; left: 0; box-shadow: none; border: 0; }
@media (max-width: 720px) {
  .gate-card { grid-template-columns: 1fr; }
  .gate-aside { display: none; }
  .gate-main { padding: 32px 26px; }
}

/* ===================== Full-page styled checkout (upsell) ===================== */
.upsell-view { position: fixed; inset: 0; z-index: 95; overflow-y: auto; background: linear-gradient(160deg, #16243a 0%, #1b2c4a 60%, #16243a 100%); color: #fff; }
.upsell-view[hidden] { display: none; }
.upsell-close { position: fixed; top: 18px; right: 22px; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.upsell-close:hover { background: rgba(255,255,255,.24); }
.upsell-inner { max-width: 1080px; margin: 0 auto; padding: 64px 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; min-height: 100%; }
.upsell-brand { font-family: "Poppins", sans-serif; font-weight: 800; letter-spacing: .02em; color: #fff; margin: 0 0 22px; opacity: .9; }
.upsell-headline { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.1; margin: 0 0 16px; color: #fff; }
.upsell-tagline { font-size: 1.08rem; color: #c8d4e4; margin: 0 0 28px; max-width: 30em; }
.upsell-guarantee { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px 20px; margin-bottom: 22px; }
.upsell-guarantee .ug-ic { font-size: 1.5rem; flex: 0 0 auto; }
.upsell-guarantee strong { color: #fff; font-size: 1rem; }
.upsell-guarantee p { margin: 4px 0 0; color: #c8d4e4; font-size: .9rem; line-height: 1.5; }
.upsell-secure { color: #aab8cc; font-size: .9rem; margin: 0 0 14px; }
.upsell-reviews-slot { color: #f0c040; font-size: .92rem; margin: 0; }
.upsell-reviews-slot { color: #ffd24a; }
.upsell-right { display: flex; justify-content: center; }
.upsell-card { background: #fff; color: var(--ink); border-radius: 22px; box-shadow: var(--shadow-lg); width: min(440px, 100%); padding: 28px 26px; }
.upsell-card-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 16px; }
.upsell-plans { display: grid; gap: 11px; margin-bottom: 18px; }
.uplan { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 15px 16px; cursor: pointer; font: inherit; }
.uplan:hover { border-color: #cdd4da; }
.uplan.is-active { border-color: var(--teal); background: #f3fbf8; }
.uplan-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); position: relative; }
.uplan.is-active .uplan-radio { border-color: var(--teal); }
.uplan.is-active .uplan-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal); }
.uplan-body { display: flex; flex-direction: column; min-width: 0; }
.uplan-body strong { font-size: 1rem; color: var(--ink); }
.uplan-body em { font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.uplan-price { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--ink); white-space: nowrap; }
.uplan-price small { font-size: .68rem; font-weight: 600; color: var(--muted); }
.uplan-badge { position: absolute; top: -10px; right: 14px; background: var(--teal); color: #fff; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 3px 9px; }
.upsell-feats { list-style: none; margin: 0 0 16px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.upsell-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.upsell-feats .pc { color: var(--good); font-weight: 800; flex: 0 0 auto; }
.upsell-disclosure { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.upsell-note { font-size: .76rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
@media (max-width: 820px) {
  .upsell-inner { grid-template-columns: 1fr; gap: 28px; padding: 56px 20px 40px; }
  .upsell-right { order: -1; }
}

/* ===================== Upsell: yellow CTA, money-back box, embedded checkout ===================== */
.upsell-continue { background: #ffd814; color: #0f1111; box-shadow: 0 6px 16px rgba(255,200,0,.28); font-weight: 800; }
.upsell-continue:hover { background: #f7ca00; }
.upsell-continue:disabled { opacity: .7; cursor: default; }
/* money-back: white card on the navy page */
.upsell-guarantee { background: #fff; border: 0; }
.upsell-guarantee strong { color: var(--ink); }
.upsell-guarantee p { color: var(--muted); }
.upsell-back { background: none; border: 0; color: var(--teal); font-weight: 700; font-size: .95rem; cursor: pointer; padding: 0; margin-bottom: 14px; }
.upsell-back:hover { text-decoration: underline; }
#embeddedCheckout { min-height: 320px; }
.upsell-trustband { display: flex; justify-content: center; flex-wrap: wrap; color: #9fb0c6; font-size: .85rem; padding: 4px 24px 46px; }
.upsell-trustband span { padding: 0 16px; border-left: 1px solid rgba(255,255,255,.16); }
.upsell-trustband span:first-child { border-left: 0; }

/* (plan page stays navy; checkout is a separate white page below) */

/* ===================== Checkout page (separate, white) ===================== */
.checkout-view { position: fixed; inset: 0; z-index: 96; overflow-y: auto; background: #fff; color: var(--ink); }
.checkout-view[hidden] { display: none; }
.checkout-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.checkout-brand { font-family: "Poppins", sans-serif; font-weight: 800; color: var(--ink); }
.checkout-back { background: none; border: 0; color: var(--teal); font-weight: 700; font-size: .95rem; cursor: pointer; }
.checkout-back:hover { text-decoration: underline; }
/* Sized to match Stripe's embedded form (it caps its own width), so the
   payment form fills the panel instead of floating in empty space. */
.checkout-wrap { max-width: 640px; margin: 0 auto; padding: 30px 20px 64px; }
.checkout-top .brand-logo { height: 30px; }
.checkout-panel { padding: 22px 18px; }
#embeddedCheckout { width: 100%; }
.checkout-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; }
.checkout-summary span { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.checkout-summary strong { font-family: "Poppins", sans-serif; font-size: 1.3rem; }
.checkout-panel { border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.checkout-h { font-size: 1.2rem; font-weight: 800; margin: 0 0 18px; }
#embeddedCheckout { min-height: 320px; }
.checkout-disclosure { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 16px 0 0; }
.checkout-secure { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.checkout-foot { margin-top: 30px; }
.checkout-foot h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; }
.checkout-foot p { color: var(--muted); font-size: .92rem; margin: 0; max-width: 52em; }

/* ===================== Plan page v2 (logo, testimonial, card brands, green trial) ===================== */
.upsell-logo { position: absolute; top: 18px; left: 24px; z-index: 2; }
.upsell-logo .brand-logo { height: 30px; filter: brightness(0) invert(1); }

/* testimonial */
.upsell-testimonial { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 24px; }
.ut-photo { width: 184px; height: 184px; border-radius: 18px; background: #2b3d5e; color: #ffd24a; display: grid; place-items: center; font-size: 1.5rem; flex: 0 0 auto; object-fit: cover; }
.upsell-testimonial blockquote { margin: 0; }
.upsell-testimonial p { margin: 0 0 6px; color: #e8eef6; font-size: 1.02rem; font-style: italic; line-height: 1.45; }
.upsell-testimonial figcaption { color: #9fb0c6; font-weight: 700; font-size: .86rem; }

/* money-back: centered */
.upsell-guarantee { flex-direction: column; align-items: center; text-align: center; gap: 6px; }

/* pay securely with card brands */
.upsell-secure { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #c8d4e4; }
.us-lead { font-size: .92rem; color: #c8d4e4; }
.cardbrand { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 44px; padding: 0 7px; background: #fff; border-radius: 5px; font-weight: 800; font-size: .68rem; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cb-visa { color: #1a1f71; font-style: italic; letter-spacing: .5px; }
.cb-disc { color: #e25822; font-size: .56rem; }
.cb-amex { color: #2e77bb; }
.cb-mc { gap: 0; }
.cb-mc i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.cb-mc i:first-child { background: #eb001b; }
.cb-mc i:last-child { background: #f79e1b; margin-left: -6px; }

/* green highlighted trial card */
.upsell-trial { margin-bottom: 14px; }
.uplan-feature { background: #eafaf0; border-color: #15a35b; box-shadow: 0 0 0 3px rgba(21,163,91,.14); }
.uplan-check { width: 30px; height: 30px; border-radius: 50%; background: #15a35b; color: #fff; display: grid; place-items: center; font-weight: 800; }
.uplan-feature .uplan-body { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.uplan-feature .uplan-body strong { font-size: 1.08rem; }
.uplan-badge { position: static; background: #f6b73c; color: #4a3500; font-size: .64rem; }
.uplan-price sup { font-size: .58em; top: -.5em; }

/* feature list with icon bullets */
.upsell-feats { list-style: none; margin: 0 0 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.upsell-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); padding: 5px 0; }
.upsell-feats li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: inline-grid; place-items: center; font-size: .7rem; font-weight: 800; flex: 0 0 auto; }
.upsell-other { margin-top: 4px; }

/* ===================== Plan page polish: badge color + money-back design ===================== */
/* Most Popular badge matches the yellow Continue button */
.uplan-badge { background: #ffd814; color: #4a3500; position: static; font-size: .64rem; }

/* keep the trial row in one line: check | title+badge | price */
.uplan-feature .uplan-price { white-space: nowrap; }

/* money-back guarantee box — megaphone + green shield + briefcase, centered */
.upsell-guarantee { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 16px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }
.ug-text { display: flex; flex-direction: column; gap: 6px; }
.upsell-guarantee strong { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-size: 1.15rem; }
.ug-shield { flex: 0 0 auto; }
.upsell-guarantee p { color: var(--ink-soft); margin: 0; font-size: .95rem; line-height: 1.45; }
.ug-mega, .ug-brief { font-size: 1.4rem; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.ug-mega { background: #fde8c8; }
.ug-brief { background: #cfe6f7; }
@media (max-width: 560px) { .ug-mega, .ug-brief { display: none; } }

/* ===================== Plan page: remove container card, white feature text ===================== */
.upsell-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.upsell-card-title { color: #fff; }
.upsell-feats { border-top-color: rgba(255,255,255,.16); border-bottom-color: rgba(255,255,255,.16); }
.upsell-feats li { color: #fff; }
.uplan-price { font-weight: 400; }            /* regular-weight pricing */
.uplan-feature .uplan-body { flex-wrap: nowrap; }  /* 14-Day Full Access + badge + price on one line */

/* ===================== Admin: KPI dashboard + users table ===================== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.kpi-label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.kpi-value { font-family: "Poppins", sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.kpi-sub { font-size: .76rem; color: var(--muted); }
.kpi-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.admin-count { color: var(--muted); font-weight: 500; font-size: 1rem; }
.users-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.users-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.users-table th { text-align: left; padding: 12px 14px; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.users-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.users-table tr:last-child td { border-bottom: 0; }
.ubadge { font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--line-soft); color: var(--ink); }
.ubadge.pro { background: var(--teal); color: #fff; }
.ubadge.free { background: var(--line-soft); color: var(--muted); }
.ulink-del { background: none; border: 0; color: #c0392b; cursor: pointer; font: inherit; font-size: .85rem; }
.ulink-del:hover { text-decoration: underline; }

/* ===================== Scholarships + Auto Apply pages ===================== */
.nav-active { color: var(--teal) !important; font-weight: 700 !important; }
.sch-hero { padding-bottom: 26px; }
.sch-stats { display: flex; gap: 26px; justify-content: center; margin: 22px 0 26px; flex-wrap: wrap; }
.sch-stat { display: flex; flex-direction: column; align-items: center; }
.sch-stat strong { font-family: "Poppins", sans-serif; font-size: 1.8rem; color: var(--ink); }
.sch-stat span { font-size: .82rem; color: var(--muted); }
.sch-cta { font-size: 1.08rem; }
.sch-cta-sub { color: var(--muted); font-size: .9rem; max-width: 42em; margin: 12px auto 0; }
.sch-tools { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.sch-tools input, .sch-tools select { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit; background: #fff; }
.sch-tools input:focus, .sch-tools select:focus { outline: none; border-color: var(--teal); }
.sch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sch-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.sch-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sch-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.sch-amt { font-family: "Poppins", sans-serif; font-weight: 800; color: var(--teal-dark); white-space: nowrap; font-size: .95rem; }
.sch-sponsor { margin: 0; font-size: .8rem; color: var(--muted); }
.sch-blurb { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.sch-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-tag { font-size: .68rem; font-weight: 700; background: var(--line-soft); color: var(--ink-soft); border-radius: 999px; padding: 3px 9px; }
.sch-tag.good { background: #e9f7ef; color: #1a7a40; }
.sch-actions { margin-top: 6px; }
.sch-note { color: var(--muted); font-size: .8rem; text-align: center; margin: 26px auto 0; max-width: 56em; }

/* Auto Apply modal */
.aa-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: min(720px, 100%); padding: 30px 30px 26px; position: relative; max-height: 92vh; overflow-y: auto; }
.aa-title { font-size: 1.45rem; font-weight: 800; margin: 0 0 6px; }
.aa-sub { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.aa-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.aa-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--ink); }
.aa-grid input, .aa-grid select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.aa-grid input:focus, .aa-grid select:focus { outline: none; border-color: var(--teal); }
.aa-check { grid-column: 1 / -1; flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.aa-check input { width: auto; }
.aa-matches { display: grid; gap: 10px; margin: 14px 0; }
.aa-match { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.aa-match-info { display: flex; flex-direction: column; min-width: 0; }
.aa-match-info strong { font-size: .95rem; color: var(--ink); }
.aa-match-info em { font-style: normal; font-size: .8rem; color: var(--muted); }
.aa-lock { font-size: 1.1rem; }
.aa-gate { border: 2px solid #ffd814; background: #fffbea; border-radius: 14px; padding: 18px 20px; margin: 8px 0 4px; text-align: center; }
.aa-gate h3 { margin: 0 0 6px; font-size: 1.05rem; }
.aa-gate p { margin: 0 0 14px; font-size: .9rem; color: var(--ink-soft); }
.aa-fine { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.aa-member-note { font-size: .88rem; color: #1a7a40; background: #e9f7ef; border-radius: 10px; padding: 10px 14px; margin: 0 0 6px; }

/* Auto Apply landing */
.aa-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.aa-hero .section-title { text-align: left; }
.aa-hero .section-sub, .aa-hero .section-eyebrow { text-align: left; }
.aa-store-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.aa-hero-card { display: flex; justify-content: center; }
.aa-demo { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px; width: min(340px, 100%); display: grid; gap: 10px; position: relative; }
.aa-demo-row { display: flex; flex-direction: column; gap: 3px; }
.aa-demo-row span { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.aa-demo-row i { font-style: normal; border: 1.5px solid #bfe4dd; background: #f2fbf8; border-radius: 8px; padding: 8px 10px; font-size: .9rem; color: var(--ink); }
.aa-demo-fill { position: absolute; right: -12px; top: -12px; background: var(--teal); color: #fff; font-weight: 800; font-size: .78rem; border-radius: 999px; padding: 8px 14px; box-shadow: 0 8px 20px rgba(21,128,139,.4); }
.aa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aa-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.aa-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.aa-step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.aa-step p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.aa-honest { text-align: center; color: var(--muted); font-size: .85rem; margin: 22px auto 0; max-width: 46em; }
.aa-tiein { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.aa-tiein .section-title, .aa-tiein .section-sub, .aa-tiein .section-eyebrow { text-align: left; margin-left: 0; }
.aa-install { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; box-shadow: var(--shadow); }
.aa-install ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-soft); }
.aa-install code { background: var(--line-soft); border-radius: 6px; padding: 2px 7px; font-size: .88em; }

/* Legal */
.legal-wrap { max-width: 720px; }
.legal-wrap h1 { font-size: 2rem; margin: 0 0 4px; }
.legal-updated { color: var(--muted); font-size: .85rem; margin: 0 0 26px; }
.legal-wrap h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal-wrap p { color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 860px) {
  .aa-grid { grid-template-columns: 1fr 1fr; }
  .aa-hero { grid-template-columns: 1fr; }
  .aa-steps { grid-template-columns: 1fr; }
}

/* ===================== Scholarships: browse UX (list/card, filters, chips) ===================== */
/* Toolbar: search spans the full row; the six selects sit in a 3-col grid
   beneath it, collapsing to 2 columns on small screens. */
.sch-tools {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.sch-tools #schSearch { grid-column: 1 / -1; }
@media (max-width: 620px) { .sch-tools { grid-template-columns: 1fr 1fr; } }

/* Result count + view toggle bar */
.sch-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 12px; flex-wrap: wrap; }
.sch-count { margin: 0; color: var(--muted); font-size: .92rem; }
.sch-count strong { color: var(--ink); font-family: "Poppins", "Inter", sans-serif; font-weight: 700; }
.sch-count-of { color: var(--muted); }

.sch-view { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.sch-view-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 600; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; line-height: 1; transition: background .15s ease, color .15s ease;
}
.sch-view-btn svg { display: block; }
.sch-view-btn[aria-pressed="true"] { background: var(--teal-soft); color: var(--teal-dark); }
.sch-view-btn:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* Active-filter chips */
.sch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.sch-chips[hidden] { display: none; }
.sch-chip {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .8rem; font-weight: 600;
  color: var(--ink-soft); background: var(--line-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 8px 5px 12px; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.sch-chip span { color: var(--muted); font-size: 1rem; line-height: 1; }
.sch-chip:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); }
.sch-chip:hover span { color: var(--teal-dark); }
.sch-chip-clear { background: none; color: var(--muted); border-style: dashed; padding: 5px 12px; }
.sch-chip-clear:hover { color: var(--ink); border-color: #cdd4da; background: none; }

/* Empty state */
.sch-empty { color: var(--muted); text-align: center; padding: 40px 10px; font-size: .96rem; }

/* Load more */
.sch-more { text-align: center; margin: 22px 0 0; }
.sch-more[hidden] { display: none; }

/* Deadline urgency */
.sch-urgent {
  display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 800; letter-spacing: .01em;
  color: #9a3412; background: #fff1e6; border: 1px solid #fcd9b6; border-radius: 999px; padding: 1px 8px; white-space: nowrap; vertical-align: 1px;
}
.sch-card.is-urgent { border-color: #fcd9b6; box-shadow: 0 1px 2px rgba(154,52,18,.05), 0 10px 30px rgba(154,52,18,.08); }
.sch-tr.is-urgent { background: #fffaf5; }

/* ---- List / table view (default, dense & scannable) ---- */
.sch-list { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.sch-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sch-table thead th {
  text-align: left; padding: 12px 16px; color: var(--muted); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff;
  position: sticky; top: 70px; z-index: 1;
}
.sch-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); vertical-align: middle; }
.sch-table tbody tr:last-child td { border-bottom: 0; }
.sch-table tbody tr:hover { background: var(--line-soft); }
.sch-table tbody tr.is-urgent:hover { background: #fff4ea; }
.sch-td-name { min-width: 200px; }
.sch-td-name strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.3; }
.sch-td-org { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.sch-td-amt { font-family: "Poppins", "Inter", sans-serif; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.sch-td-dl { white-space: nowrap; color: var(--ink-soft); }
.sch-td-lvl { white-space: nowrap; }
.sch-td-state { color: var(--ink-soft); }
.sch-td-state .sch-tag { margin-left: 6px; }
.sch-td-go { text-align: right; white-space: nowrap; }

/* ---- Mobile: table collapses into stacked cards ---- */
@media (max-width: 700px) {
  .sch-list { overflow-x: visible; border: 0; background: none; box-shadow: none; }
  .sch-table, .sch-table tbody, .sch-table tbody tr, .sch-table tbody td { display: block; width: 100%; }
  .sch-table thead { display: none; }
  .sch-table tbody tr {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: 14px 16px; margin-bottom: 12px;
  }
  .sch-table tbody tr.is-urgent { border-color: #fcd9b6; }
  .sch-table tbody td { border: 0; padding: 3px 0; }
  .sch-td-name { min-width: 0; margin-bottom: 6px; }
  .sch-td-amt { font-size: 1.05rem; }
  .sch-td-dl::before { content: "Deadline: "; color: var(--muted); font-weight: 400; }
  .sch-td-lvl::before { content: "Level: "; color: var(--muted); }
  .sch-td-go { text-align: left; margin-top: 10px; }
  .sch-td-go .btn { display: inline-flex; }
}

@media (max-width: 560px) {
  .sch-bar { gap: 10px; }
  .sch-view-btn { padding: 7px 12px; }
}

/* Feats: wrap text as ONE flex child so <strong> doesn't become a column */
.upsell-feats .feat-text { flex: 1 1 auto; min-width: 0; display: inline; line-height: 1.5; }
.feat-bonus { display: inline-block; background: #ffd814; color: #4a3500; font-size: .62rem; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 2px 8px; margin-right: 4px; vertical-align: 1px; }

/* ===================== Multi-page résumé preview ===================== */
/* When content overflows one Letter page, templates.js converts the
   preview element into a .pages-stack of separated .resume-page sheets. */
.pages-stack { position: absolute; top: 0; left: 0; width: 612px; display: flex; flex-direction: column; gap: 22px; transform-origin: top left; }
.pages-stack .resume-page { position: relative; top: auto; left: auto; height: 792px; overflow: hidden; }
.editor-stage { overflow-y: auto; }              /* scroll to see page 2+ */
.page-advice { background: #fffbea; border: 1.5px solid #ffd814; border-radius: 10px; padding: 9px 14px; font-size: .84rem; color: #5b4a12; margin: 0 0 10px; }
/* templates-section background + gate preview: keep stacks in flow */
.tbg-scale .pages-stack { position: relative; }
.gate-preview .pages-stack { position: relative; }

/* Scholarships: state tag color; Where-it-works columns.
   (Toolbar grid + responsive live in the "browse UX" block below.) */
.sch-tag.state { background: #e8f0fe; color: #1a4b8f; }
.aa-works { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.aa-works-col { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow); }
.aa-works-col h3 { margin: 0 0 8px; font-size: 1.05rem; }
.aa-works-col p { color: var(--ink-soft); font-size: .9rem; margin: 0 0 10px; }
.aa-works-col ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-soft); font-size: .9rem; }
.aa-works-note { margin-top: 12px !important; color: var(--muted) !important; font-size: .8rem !important; }
@media (max-width: 860px) { .aa-works { grid-template-columns: 1fr; } }

/* Admin: manual plan management */
.ubadge.comp { background: #eef4ff; color: #1a4b8f; }
.ulink-plan { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font: 600 .74rem Inter, sans-serif; cursor: pointer; margin-right: 6px; }
.ulink-plan:hover { border-color: var(--teal); color: var(--teal-dark); }
.ulink-up { border-color: #bfe4dd; background: #f2fbf8; color: #116a73; }
.ulink-note { font-size: .7rem; color: var(--muted); margin-right: 8px; }

/* mascot loader (shared with PREP): thinking owl on dashboard loading states */
.dash-loading { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dash-loading::before { content: ""; width: 180px; height: 180px; flex: 0 0 auto;
  background: url("../assets/thinking_owl_loader.gif") center/contain no-repeat; }

/* ---- Prep nav dropdown (multi-course) ---- */
.nav-prep { position: relative; display: inline-block; }
.nav-prep-trigger { cursor: pointer; }
.nav-drop { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(22,36,58,.16); padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity .15s ease, transform .15s ease; z-index: 40; }
.nav-prep:hover .nav-drop, .nav-prep:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.nav-drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.nav-drop a:hover { background: #f2fbf8; color: var(--ink); }
.nav-drop .nav-drop-all { border-top: 1px solid var(--line-soft, #eef2f6); margin-top: 4px; padding-top: 12px; font-weight: 700; color: var(--teal-dark); }
@media (max-width: 900px) { .nav-prep { display: none; } }

/* ---- admin integrations panel ---- */
.integ-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.integ-field { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.integ-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.integ-field .integ-hint { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.integ-field input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; }
.integ-field input:focus { outline: none; border-color: var(--teal); }
.integ-field .integ-priv { display: inline-block; font: 700 .66rem Inter,sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #8a5300; background: #fff3e0; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.integ-field .integ-pub { color: #1a7a40; background: #e9f7ef; }

/* ============================================================
   Résumé builder additions — paste fallback, AI Improve button,
   dropzone "paste" link, and preview refinements.
   ============================================================ */

/* "or paste your résumé text" line under each dropzone */
.dz-alt { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.dz-alt .linklike { font-weight: 600; }

/* ---------- Paste-your-text overlay ---------- */
.paste-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16,24,40,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.paste-card {
  position: relative; width: min(640px, 94vw);
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 26px 26px 22px;
  animation: pasteIn .18s ease;
}
@keyframes pasteIn { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.paste-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  font-size: 1.1rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.paste-close:hover { color: var(--ink); }
.paste-title { margin: 0 0 6px; font-size: 1.24rem; }
.paste-sub { margin: 0 0 14px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.paste-area {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 200px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; font-size: .92rem; line-height: 1.5; color: var(--ink);
}
.paste-area:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.paste-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* ---------- AI Improve button (editor bar) ---------- */
.btn-ai {
  background: linear-gradient(120deg, #7c3aed 0%, #15808b 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(124,58,237,.22);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn-ai:hover { filter: brightness(1.05); }
.btn-ai:disabled, .btn-ai.is-loading { opacity: .8; cursor: default; filter: saturate(.85); }
.ai-spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  display: inline-block; animation: aiSpin .7s linear infinite; vertical-align: -1px;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .editor-bar-actions { flex-wrap: wrap; gap: 6px; }
  .btn-ai { order: -1; }
}

/* admin integrations grouping */
.integ-group { margin-bottom: 22px; }
.integ-group-h { font: 800 .82rem Inter,sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 10px; }
.integ-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

/* ============================================================
   APPEND-ONLY — Homepage landing polish (2026)
   New classes for hero CTA, "how it works", features band,
   exam-prep courses grid. Reuses existing tokens
   (--ink, --teal, --gold/gold not defined so uses --teal, --line,
   --muted) and existing .section / .btn / .trust-band styles.
   Do not edit rules above this block.
   ============================================================ */

/* Hero secondary CTA (exam prep) sits beside the primary teal button */
.hero-prep-cta { white-space: nowrap; }

/* ---------- How it works (3 numbered steps) ---------- */
.how-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px);
  max-width: 980px; margin-inline: auto;
}
.how-step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px 26px 26px;
}
.how-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal-dark);
  font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}
.how-title { font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; }
.how-desc { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
/* connector line between steps on wide screens */
.how-step:not(:last-child)::after {
  content: ""; position: absolute; top: 51px; right: -18px; width: 22px; height: 2px;
  background: var(--line); display: block;
}

/* ---------- 4-up features band ---------- */
.feature-row-4 { grid-template-columns: repeat(4, 1fr); max-width: 1080px; }

/* ---------- Exam-prep courses grid ---------- */
.course-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1080px; margin-inline: auto;
}
.course-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 26px 24px;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.course-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-lg); }
.course-badge {
  align-self: flex-start; font-family: "Poppins", sans-serif; font-weight: 800; font-size: .74rem;
  letter-spacing: .06em; color: var(--teal-dark); background: var(--teal-soft);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 14px;
}
.course-name { font-size: 1.14rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.course-desc { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.5; flex: 1 1 auto; }
.course-link { font-weight: 700; font-size: .92rem; color: var(--teal); }
.course-card:hover .course-link { color: var(--teal-dark); }
.courses-cta { text-align: center; margin-top: clamp(28px, 4vw, 40px); }

/* ---------- Landing polish responsive ---------- */
@media (max-width: 980px) {
  .feature-row-4 { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; max-width: 520px; }
  .how-step:not(:last-child)::after { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-prep-cta { white-space: normal; }
}
@media (max-width: 560px) {
  .feature-row-4 { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   APPEND-ONLY — Auto Apply page enhancements (hero trust strip,
   benefits band, trust grid, FAQ CTA). Scoped to aa-* / trust
   classes; do not edit rules above this block.
   ============================================================ */

/* Hero trust strip under the CTA buttons */
.aa-hero-trust {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--ink-soft); font-size: .9rem; font-weight: 500;
}
.aa-hero-trust li { display: inline-flex; align-items: center; gap: 6px; }

/* Benefits band */
.aa-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.aa-benefit {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow); text-align: center;
}
.aa-benefit-ic {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  background: var(--teal-soft); display: grid; place-items: center; font-size: 1.5rem;
}
.aa-benefit h3 { margin: 0 0 8px; font-size: 1.08rem; }
.aa-benefit p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* Trust grid (page also relies on existing .trust-card styling) */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 960px; margin: 0 auto;
}
.aa-trust-grid .trust-card { padding: 20px 18px; }

/* FAQ closing CTA */
.aa-faq-cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: clamp(28px, 4vw, 40px);
}

/* Responsive — collapse the 3-up grids on smaller screens */
@media (max-width: 860px) {
  .aa-benefits, .trust-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   APPEND-ONLY — Résumé themes + editor controls (2026)
   Adds selectable visual themes for the résumé preview/export
   (.thm-modern / .thm-serif / .thm-compact / .thm-bold) and the
   editor's theme picker + per-section reorder controls. These style
   the .resume-page / .rp-* hooks emitted by templates.js renderPreview.
   Most typography/spacing is set inline by renderPreview from the merged
   template config; the rules here add the touches inline styles can't do
   cleanly (accent bands, heading underlines, chip separators, tracking).
   Do not edit rules above this block.
   ============================================================ */

/* ---------- Editor: controls bar (School / Career / Theme) ---------- */
.editor-controls { align-items: stretch; gap: 12px; }
.editor-controls .ctrl-theme { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.editor-controls .ctrl-caption { font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
/* Make the theme picker read as the "make it yours" control. */
.editor-controls .ctrl-theme select {
  padding: 10px 11px; border: 1.5px solid #bfe4dd; border-radius: 10px; font: inherit;
  background: #f2fbf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2315808b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  -webkit-appearance: none; appearance: none; color: var(--teal-dark); font-weight: 600; cursor: pointer;
}
.editor-controls .ctrl-theme select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

/* ---------- Editor: section card header + reorder buttons ---------- */
.edit-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.edit-card-head .edit-card-title { margin: 0; }
.edit-card-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.reorder-btn {
  width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  color: var(--ink-soft); font-size: .95rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.reorder-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); background: #f2fbf8; }
.reorder-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Shared themed-résumé niceties ---------- */
/* Slightly crisper skill separators than the teaser default. */
.resume-page .rp-skill:not(:last-child)::after { color: #aeb6c0; }

/* ============================================================
   THEME: Modern Sans (.thm-modern) — left-aligned, teal accent,
   airy headings with a hairline underline that spans the column.
   ============================================================ */
.resume-page.thm-modern .rp-name { font-weight: 800; letter-spacing: -.2px; }
.resume-page.thm-modern .rp-contact { color: #45505c; }
.resume-page.thm-modern .rp-sec-title {
  letter-spacing: 1.2px; font-weight: 800; padding-bottom: 3px;
}
.resume-page.thm-modern .rp-org { letter-spacing: .1px; }
.resume-page.thm-modern .rp-bullets { padding-left: 16px; }
.resume-page.thm-modern .rp-bullets li::marker { color: var(--rp-accent, #117a82); }

/* ============================================================
   THEME: Classic Serif (.thm-serif) — centered, refined, small-caps
   feel with a thin full-width rule under each heading.
   ============================================================ */
.resume-page.thm-serif .rp-name { font-weight: 700; letter-spacing: 1px; }
.resume-page.thm-serif .rp-sec-title {
  letter-spacing: 2px; font-weight: 700; font-variant: small-caps; text-transform: none !important;
}
.resume-page.thm-serif .rp-role { font-style: italic; }
.resume-page.thm-serif .rp-skills { justify-content: center; }
.resume-page.thm-serif .rp-plain { text-align: justify; }

/* ============================================================
   THEME: Compact Pro (.thm-compact) — dense, technical, tight rows;
   thin uppercase headings to pack more onto one page.
   ============================================================ */
.resume-page.thm-compact .rp-name { font-weight: 800; letter-spacing: .6px; }
.resume-page.thm-compact .rp-sec-title { letter-spacing: 1.4px; font-weight: 800; padding-bottom: 2px; }
.resume-page.thm-compact .rp-bullets { padding-left: 14px; }
.resume-page.thm-compact .rp-bullets li { margin: .5px 0; }
.resume-page.thm-compact .rp-role { color: #3a4552; }

/* ============================================================
   THEME: Bold Header (.thm-bold) — the name sits on a full-width
   accent band; headings get a heavier accent underline.
   ============================================================ */
.resume-page.thm-bold .rp-header {
  background: var(--rp-accent, #0c3c78); color: #fff;
  margin: calc(-1 * var(--rp-name-gap, 12px)) 0 var(--rp-sec-gap, 16px);
  /* Bleed the band to the page edges (cancel the page padding). */
  margin-left: calc(-1 * var(--rp-pad, 48px)); margin-right: calc(-1 * var(--rp-pad, 48px));
  margin-top: calc(-1 * var(--rp-pad, 48px));
  padding: var(--rp-pad, 48px) var(--rp-pad, 48px) 14px;
}
.resume-page.thm-bold .rp-name { color: #fff; font-weight: 800; }
.resume-page.thm-bold .rp-contact { color: rgba(255,255,255,.88); }
.resume-page.thm-bold .rp-sec-title { font-weight: 800; letter-spacing: 1px; }

/* Keep the bold band from bleeding past a page's rounded/shadowed edge. */
.resume-page.thm-bold { overflow: hidden; }
.pages-stack .resume-page.thm-bold { overflow: hidden; }

/* Compact reflow of the editor controls on narrow screens. */
@media (max-width: 640px) {
  .editor-controls { gap: 8px; }
  .editor-controls label, .editor-controls .ctrl-theme { flex-basis: 100%; }
}

/* ---- Continue with Google (auth modal) ---- */
#authGoogleWrap { margin: 4px 0 2px; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1.5px solid #dadce0; border-radius: 10px; background: #fff; color: #3c4043; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; box-sizing: border-box; transition: background .15s, box-shadow .15s; }
.auth-google:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(60,64,67,.15); }
.auth-g { width: 18px; height: 18px; flex: 0 0 auto; }
.auth-or { display: flex; align-items: center; text-align: center; gap: 12px; color: #98a2b3; font-size: .8rem; margin: 16px 0 4px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e4e7ec; }

/* ============================================================
   Member sidebar (logged-in app navigation).
   Reuses the résumé-wizard rail look (navy + teal). Shown only
   when signed in; hides the public top header and shifts content.
   Full-screen modes (wizard/editor overlays, z-index 55) cover it.
   ============================================================ */
:root { --rail-w: 236px; --rail-wc: 66px; }
.member-rail { position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail-w); background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 6px; padding: 20px 16px; z-index: 40; overflow-y: auto; transition: width .18s ease; }
.member-rail .brand { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; }
.member-rail .brand-logo { height: 26px; filter: brightness(0) invert(1); opacity: .96; }
.mn-toggle { position: fixed; top: 20px; left: calc(var(--rail-w) - 13px); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; font-size: .9rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.25); z-index: 42; transition: left .18s ease; }
.mn-links { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.mn-link { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: rgba(255,255,255,.66); font: inherit; font-weight: 600; font-size: .92rem; text-align: left; padding: 10px; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap; width: 100%; }
.mn-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.mn-link.current { color: #fff; background: rgba(255,255,255,.10); }
.mn-ico { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: .98rem; flex: 0 0 auto; }
.mn-link.current .mn-ico { background: var(--teal); }
.mn-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }
.mn-acct { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; font-size: .82rem; color: rgba(255,255,255,.82); min-width: 0; }
.mn-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.mn-acct-info { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-badge { font-size: .58rem; font-weight: 800; letter-spacing: .05em; background: var(--teal); color: #fff; padding: 2px 6px; border-radius: 999px; margin-left: 4px; }

body.member-mode { padding-left: var(--rail-w); }
body.member-mode .site-header { display: none !important; }
body.member-mode.rail-collapsed { padding-left: var(--rail-wc); }
body.rail-collapsed .member-rail { width: var(--rail-wc); padding-left: 9px; padding-right: 9px; }
body.rail-collapsed .mn-toggle { left: calc(var(--rail-wc) - 13px); }
body.rail-collapsed .member-rail .mn-label, body.rail-collapsed .member-rail .brand span, body.rail-collapsed .member-rail .mn-acct-info { display: none; }
body.rail-collapsed .member-rail .mn-link { justify-content: center; }
body.rail-collapsed .member-rail .mn-acct { justify-content: center; padding-left: 0; padding-right: 0; }

/* Mobile: off-canvas drawer with a hamburger + scrim */
.mn-hamb, .mn-scrim { display: none; }
@media (max-width: 860px) {
  body.member-mode { padding-left: 0; padding-top: 54px; }
  .member-rail { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.35); width: 250px; }
  body.rail-open .member-rail { transform: translateX(0); }
  body.rail-collapsed .member-rail { width: 250px; padding-left: 16px; padding-right: 16px; }
  body.rail-collapsed .member-rail .mn-label, body.rail-collapsed .member-rail .mn-acct-info { display: block; }
  .mn-toggle { display: none; }
  body.member-mode .mn-hamb { display: grid; position: fixed; top: 8px; left: 10px; z-index: 39; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; border: 0; place-items: center; font-size: 1.2rem; cursor: pointer; }
  body.rail-open .mn-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 39; }
}

/* ---- Auto Apply member area (completed applications) ---- */
.aa-mem-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.aa-stats { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.aa-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; min-width: 150px; font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.aa-stat span { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy); letter-spacing: 0; text-transform: none; }
.aa-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.aa-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.aa-row:first-child { border-top: 0; }
.aa-row-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--line-soft); }
.aa-site { font-weight: 700; color: var(--navy); }
.aa-when { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.aa-row a { color: var(--teal); text-decoration: none; }
.aa-empty { text-align: center; padding: 44px 24px; color: var(--muted); }
.aa-empty strong { color: var(--ink); font-size: 1.05rem; }
.aa-empty .btn { margin-top: 14px; }
@media (max-width: 640px) { .aa-row { grid-template-columns: 1fr auto; } .aa-row span:nth-child(2) { display: none; } }

/* Sticky footer on the Auto Apply page (member or marketing) — no mid-page gap. */
body:has(#aaMember) { min-height: 100vh; display: flex; flex-direction: column; }
body:has(#aaMember) main { flex: 1 0 auto; }
body:has(#aaMember) .site-footer { flex-shrink: 0; }

/* ---- Member area: strip marketing, keep the functional part ---- */
/* Home: signed-in members see only the "Upload your résumé" card. */
body.member-mode[data-page="home"] .hero-copy { display: none; }
body.member-mode[data-page="home"] main > section:not(.hero) { display: none; }
body.member-mode[data-page="home"] .hero-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
body.member-mode[data-page="home"] .hero { padding: 60px 0; }
/* Scholarships: members skip the marketing hero, go straight to the directory. */
body.member-mode[data-page="scholarships"] .sch-hero { display: none; }
body.member-mode[data-page="scholarships"] #directory { padding-top: 32px; }
