/* ── LandIt Design System ──────────────────────────────────── */
:root {
  --bg:           #07071a;
  --bg-card:      #0d0d24;
  --bg-input:     #111130;
  --bg-doc:       #ffffff;
  --border:       #1c1c40;
  --border-hi:    #3a3a70;
  --accent:       #7c5cfc;
  --accent-lo:    rgba(124, 92, 252, 0.18);
  --accent-glow:  rgba(124, 92, 252, 0.35);
  --cyan:         #22d3ee;
  --cyan-lo:      rgba(34, 211, 238, 0.15);
  --green:        #34d399;
  --red:          #f87171;
  --text:         #eeeef8;
  --text-dim:     #9494bc;
  --text-muted:   #555580;
  --font:         'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-glow:  0 8px 40px var(--accent-glow);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}
button { cursor: pointer; font-family: var(--font); }
input, textarea { font-family: var(--font); }
a { color: inherit; }

/* ── Views ──────────────────────────────────────────────────── */
.view { display: none; min-height: 100vh; }
.view.active { display: block; animation: fadeUp 0.35s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.accent { color: var(--accent); }

/* ── Background Orbs ────────────────────────────────────────── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,92,252,0.2) 0%, transparent 70%); top: -200px; left: -150px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%); bottom: -150px; right: -100px; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 70%); bottom: 0; left: 30%; }

/* ── Form Shared ────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}
.req { color: var(--accent); }
.opt { color: var(--text-muted); font-weight: 400; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lo);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; line-height: 1.65; }

.hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 2.75rem; }
.icon-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.2rem;
  display: flex;
  transition: color 0.2s;
}
.icon-btn:hover { color: var(--text); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #9068fd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hi); background: rgba(255,255,255,0.04); }

.btn-ghost-sm {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-ghost-sm:hover { color: var(--text); border-color: var(--border-hi); }

.btn-download {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.1rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-download:hover { background: #9068fd; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

.btn-generate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), #5530d4);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-generate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-generate:hover::after { opacity: 1; }
.btn-generate:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-generate:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ══════════════════════════════════════════════════════════════
   AUTH
══════════════════════════════════════════════════════════════ */
.auth-back-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  z-index: 10;
}
.auth-back-btn:hover { color: var(--text); }

.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

.clerk-container {
  width: 100%;
  max-width: 420px;
}

/* Override Clerk's default card to match our dark theme */
.cl-card, .cl-socialButtonsBlockButton {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* ══════════════════════════════════════════════════════════════
   WELCOME (legacy — kept for reference)
══════════════════════════════════════════════════════════════ */
.welcome-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2.5rem;
}

.logo-lockup { text-align: center; }
.logo-lockup .logo { font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; }
.tagline { color: var(--text-dim); font-size: 1.05rem; margin-top: 0.5rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 460px;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,92,252,0.25) 0%, transparent 60%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.card-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--accent-lo);
  border: 1px solid rgba(124,92,252,0.3);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card-sub {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════════════════════════════
   ONBOARDING
══════════════════════════════════════════════════════════════ */
.onboard-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.onboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0 2.5rem;
}

.step-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.step.active { color: var(--accent); font-weight: 600; }
.step-arrow { opacity: 0.4; }

.onboard-intro { margin-bottom: 2.5rem; }
.onboard-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.onboard-intro p {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 560px;
  line-height: 1.65;
}
.onboard-intro em { color: var(--text); font-style: normal; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.brain-group .prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.chip {
  padding: 0.28rem 0.75rem;
  background: var(--accent-lo);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: all 0.18s;
}
.chip:hover { background: rgba(124,92,252,0.28); color: var(--text); border-color: rgba(124,92,252,0.5); }

#u-dump { min-height: 300px; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 26, 0.75);
  position: sticky;
  top: 0;
  z-index: 90;
}
.nav-right { display: flex; align-items: center; gap: 0.625rem; }

.credits-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-lo);
  border: 1px solid rgba(124,92,252,0.3);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
  display: none;
}
.credits-badge.visible { display: block; }
.credits-badge.low     { color: #f87171; background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════════ */
.dash-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.dash-columns {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}
.dash-col-main { min-width: 0; }
.dash-col-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.dash-hero { margin-bottom: 2.5rem; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dash-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.dash-hero p { color: var(--text-dim); font-size: 0.98rem; }

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s;
}
.job-card:focus-within { border-color: rgba(124,92,252,0.45); }

.job-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2.5s ease-in-out infinite;
}

#job-desc {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 1.25rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  min-height: 180px;
}
#job-desc:focus { border-color: var(--border-hi); box-shadow: none; }
#job-desc::placeholder { color: var(--text-muted); }

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.gen-checks { display: flex; gap: 1.25rem; }
.check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.check-label input { display: none; }
.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-hi);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
}
.check-label input:checked ~ .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.check-label input:checked ~ .checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.dash-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.dash-tip svg { flex-shrink: 0; margin-top: 1px; }
.dash-tip strong { color: var(--text-dim); }

/* ── API Key Panel ──────────────────────────────────────────── */
.key-panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  animation: fadeUp 0.2s ease;
}
.key-panel.hidden { display: none; }

.key-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.btn-test-key {
  align-self: flex-start;
  padding: 0.5rem 1.1rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-test-key:hover { background: #9068fd; }
.btn-test-key:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Error Detail Box ───────────────────────────────────────── */
.error-detail {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius);
  color: #fca5a5;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.error-detail.hidden { display: none; }

/* ══════════════════════════════════════════════════════════════
   RESULTS
══════════════════════════════════════════════════════════════ */
.results-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.results-head { margin-bottom: 1.75rem; }
.results-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.results-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
}

.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem;
}
.tab {
  padding: 0.45rem 1.1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.18s;
}
.tab.active { background: var(--accent); color: #fff; font-weight: 700; }

.toolbar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.doc-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Document Page (white, ATS-friendly serif) ───────────────── */
.doc-page {
  background: #ffffff;
  color: #000;
  padding: 2.5rem 3rem;
  min-height: 700px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 10pt;
  line-height: 1.5;
}

/* ── Global link styles ── */
.doc-page a         { color: #0066cc; text-decoration: underline; }
.doc-page a:hover   { cursor: pointer; }

/* ── Resume: Header ─── */
/* ── Header — NO borders, minimal spacing ── */
.doc-page .r-header       { margin-bottom: 0; }
.doc-page .r-name         { font-size: 18pt; font-weight: bold; color: #000; margin-bottom: 1pt; line-height: 1.2; }
.doc-page .r-contact      { font-size: 9.5pt; color: #222; margin-bottom: 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.doc-page .r-contact a    { color: #0066cc; text-decoration: underline; }
.doc-page .r-applied-title{ font-size: 14pt; font-weight: bold; color: #000; text-align: center; margin-top: 5pt; margin-bottom: 0; line-height: 1.3; }
.doc-page .r-keywords     { font-size: 11pt; font-weight: bold; color: #000; text-align: center; white-space: nowrap; margin-top: 1pt; margin-bottom: 4pt; }
/* Legacy alias — keep so old renders still work */
.doc-page .r-skills-bar   { font-size: 11pt; font-weight: bold; color: #000; text-align: center; white-space: nowrap; margin-top: 1pt; margin-bottom: 4pt; }

/* ── Summary — NO border ── */
.doc-page .r-summary {
  font-size: 11pt;
  line-height: 1.5;
  text-align: justify;
  color: #111;
  margin-bottom: 0;
}

/* ── Section Headings — ONLY these get a bottom border ── */
.doc-page .r-section {
  font-size: 11pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1.5pt solid #000;
  padding-bottom: 1.5pt;
  margin: 6pt 0 3pt;
  color: #000;
}

/* ── Experience / Education / Volunteering blocks ── */
.doc-page .r-item      { margin-bottom: 6pt; }
.doc-page .r-item-head { display: flex; justify-content: space-between; align-items: baseline; }
.doc-page .r-company   { font-weight: bold; font-size: 11pt; color: #000; }
.doc-page .r-date      { font-size: 11pt; color: #333; white-space: nowrap; flex-shrink: 0; font-style: italic; margin-left: 8pt; }
.doc-page .r-job-title { font-style: italic; font-size: 11pt; color: #000; margin-bottom: 2pt; }
.doc-page .r-para      { font-size: 11pt; line-height: 1.5; text-align: justify; color: #111; margin-bottom: 2pt; page-break-inside: avoid; }
.doc-page ul           { padding-left: 13pt; margin: 2pt 0 0; }
.doc-page ul li        { font-size: 11pt; line-height: 1.5; color: #111; margin-bottom: 1.5pt; text-align: justify; }

/* ── Skills ── */
.doc-page .r-skills-list     { font-size: 11pt; color: #111; line-height: 1.5; }
.doc-page .r-skills-cat      { margin-bottom: 2pt; }
.doc-page .r-skills-cat-name { font-weight: bold; }

/* ── Cover Letter Styles ─── */
.doc-page .cl-sender { font-size: 9.5pt; color: #111; margin-bottom: 12pt; line-height: 1.65; }
.doc-page .cl-date { font-size: 9.5pt; color: #111; margin-bottom: 10pt; }
.doc-page .cl-recipient { font-size: 9.5pt; color: #111; margin-bottom: 10pt; line-height: 1.65; }
.doc-page .cl-subject { font-weight: bold; font-size: 9.5pt; margin-bottom: 10pt; }
.doc-page .cl-greeting { font-size: 9.5pt; margin-bottom: 8pt; }
.doc-page .cl-body p { margin-bottom: 9pt; color: #111; font-size: 9.5pt; line-height: 1.7; text-align: justify; }
.doc-page .cl-closing { margin-top: 12pt; font-size: 9.5pt; color: #111; line-height: 1.75; }

/* ══════════════════════════════════════════════════════════════
   LOADER
══════════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 26, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.loader.hidden { display: none; }

.loader-card {
  text-align: center;
  max-width: 360px;
  padding: 0 2rem;
}

.loader-ring {
  width: 52px;
  height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 1.5rem;
  position: relative;
}
.loader-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1.2s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-msg {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}
.loader-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.loader-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.loader-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  justify-content: center;
  transition: color 0.3s;
}
.loader-step.done { color: var(--green); }
.loader-step.active { color: var(--text); }
.step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   TOASTS
══════════════════════════════════════════════════════════════ */
#toasts {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  max-width: 340px;
  animation: toastIn 0.28s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.success { background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.3); color: #34d399; }
.toast.error   { background: rgba(248,113,113,0.14); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }
.toast.info    { background: rgba(124,92,252,0.14);  border: 1px solid rgba(124,92,252,0.3);  color: var(--accent); }

@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   MATCH SCORE PANEL
══════════════════════════════════════════════════════════════ */
.match-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.3s ease;
}
.match-panel.hidden { display: none; }

.mp-left { flex-shrink: 0; }

.mp-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--score-colour, var(--accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--score-colour, var(--accent)) 40%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.mp-score {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--score-colour, var(--accent));
  line-height: 1;
}
.mp-score span { font-size: 0.75rem; font-weight: 600; }
.mp-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

.mp-right { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.mp-row { display: flex; align-items: flex-start; gap: 0.625rem; }
.mp-badge {
  flex-shrink: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 1px;
}
.mp-matched { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: #34d399; }
.mp-gap     { background: rgba(251,191,36,0.12);  border: 1px solid rgba(251,191,36,0.3);  color: #fbbf24; }
.mp-keywords { font-size: 0.78rem; color: var(--text-dim); line-height: 1.55; }

@media (max-width: 640px) {
  .match-panel { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════
   UPLOAD ZONE
══════════════════════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-lo);
}
#upload-idle { display: flex; flex-direction: column; align-items: center; }
.upload-icon { color: var(--text-muted); margin-bottom: 0.5rem; display: flex; justify-content: center; }
.upload-text { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.3rem; }
.upload-link { color: var(--accent); text-decoration: underline; }
.upload-hint { font-size: 0.77rem; color: var(--text-muted); }

/* Loaded state */
#upload-loaded {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
}
.upload-loaded-icon {
  flex-shrink: 0;
  color: var(--green);
  display: flex;
}
.upload-loaded-info { flex: 1; min-width: 0; }
.upload-loaded-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-loaded-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.upload-replace-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid var(--border-hi);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.upload-replace-btn:hover { border-color: var(--accent); color: var(--accent); }

.upload-status {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  min-height: 1rem;
}
.upload-status.ok    { color: var(--green); }
.upload-status.err   { color: var(--red); }
.upload-status.loading { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   REFINE SECTION
══════════════════════════════════════════════════════════════ */
.refine-section {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.refine-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.875rem;
}
.refine-row {
  display: flex;
  gap: 0.625rem;
}
.refine-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.refine-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lo); }
.refine-row input::placeholder { color: var(--text-muted); }
.btn-refine {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: rgba(124,92,252,0.15);
  border: 1px solid rgba(124,92,252,0.35);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font);
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-refine:hover { background: var(--accent); color: #fff; }
.btn-refine:disabled { opacity: 0.4; cursor: not-allowed; }

.refine-history {
  margin-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.refine-entry {
  font-size: 0.77rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.refine-entry::before { content: '↻'; color: var(--accent); font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════════
   PRINT (PDF export)
══════════════════════════════════════════════════════════════ */
@media print {
  body * { visibility: hidden; }
  #print-target, #print-target * { visibility: visible; }
  #print-target {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    background: white;
    color: #1a1a32;
    font-family: 'Inter', Arial, sans-serif;
    padding: 0.75in 1in;
    font-size: 10pt;
    line-height: 1.5;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .welcome-wrap { padding: 1.5rem; gap: 1.75rem; }
  .logo-lockup .logo { font-size: 2.75rem; }
  .onboard-wrap { padding: 0 1.25rem 3rem; }
  .dash-wrap, .results-wrap { padding: 1.75rem 1.25rem; }
  .dash-columns { grid-template-columns: 1fr; }
  .doc-page { padding: 1.75rem 1.5rem; }
  .job-card-footer { flex-direction: column; align-items: flex-start; }
  .btn-generate { width: 100%; justify-content: center; }
  .doc-toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar-actions { flex-wrap: wrap; }
  .navbar { padding: 0.875rem 1.25rem; }
  .packs-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   BUY PAGE
══════════════════════════════════════════════════════════════ */
.buy-wrap {
  position: relative; z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.buy-nav { margin-bottom: 3rem; }
.buy-nav .logo { font-size: 1.6rem; font-weight: 900; letter-spacing: -1px; text-decoration: none; color: var(--text); }
.buy-hero { text-align: center; margin-bottom: 2.5rem; }
.buy-hero h1 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; }
.buy-sub { color: var(--text-dim); margin-top: 0.5rem; font-size: 1.05rem; }

.buy-banner {
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}
.buy-banner.hidden { display: none; }
.buy-banner-success { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: #34d399; }
.buy-banner-info    { background: rgba(148,148,188,0.1);  border: 1px solid var(--border);           color: var(--text-dim); }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.pack-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.pack-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pack-popular { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }
.pack-badge {
  position: absolute; top: -12px;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  border-radius: 20px; padding: 0.2rem 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pack-credits      { font-size: 3rem; font-weight: 900; color: var(--text); line-height: 1; }
.pack-credits-label{ font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.pack-price        { font-size: 1.75rem; font-weight: 800; color: var(--accent); margin-top: 0.5rem; }
.pack-per          { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.btn-buy {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: auto;
}
.btn-buy:hover { background: #9068fd; transform: translateY(-1px); }
.btn-buy:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.pack-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 240px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } }

.buy-footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.buy-footer a { color: var(--text-dim); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES
══════════════════════════════════════════════════════════════ */
.legal-wrap {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
}
.legal-body h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.legal-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
.legal-body h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legal-body p, .legal-body li {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.legal-body ul { padding-left: 1.25rem; margin-bottom: 0.6rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body a { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) {
  .legal-body { padding: 1.5rem 1.25rem; }
  .legal-body h1 { font-size: 1.5rem; }
}

.app-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.app-footer a { color: var(--text-muted); text-decoration: underline; }
.app-footer a:hover { color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   OUTREACH KIT
══════════════════════════════════════════════════════════════ */
.outreach-generate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
}
.outreach-gen-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.outreach-gen-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.outreach-gen-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.outreach-gen-cost {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--accent-lo);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 1.5rem;
}
.outreach-gen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
}

.outreach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
@media (max-width: 720px) {
  .outreach-grid { grid-template-columns: 1fr; }
}

.outreach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.outreach-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.outreach-card-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.outreach-subject-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.outreach-field-label {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 0.8rem;
}
.outreach-subject {
  color: var(--text);
  font-weight: 500;
}
.outreach-to {
  color: var(--text-dim);
}
.outreach-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}
.outreach-body {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  flex: 1;
}
.outreach-char-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.outreach-regen-row {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   URL IMPORT ROW
══════════════════════════════════════════════════════════════ */
.url-import-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.url-import-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.url-import-row input:focus { border-color: var(--accent); }
.url-import-row input::placeholder { color: var(--text-muted); }
.btn-import {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent-lo);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-import:hover { background: var(--accent); color: #fff; }
.btn-import:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════
   OUTREACH MANAGER ROW
══════════════════════════════════════════════════════════════ */
.outreach-manager-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 380px;
  margin-bottom: 1rem;
}
.outreach-manager-row input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}
.outreach-manager-row input:focus { border-color: var(--accent); }
.outreach-manager-row input::placeholder { color: var(--text-muted); }
.outreach-manager-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}


/* ══════════════════════════════════════════════════════════════
   QUALITY GATE MODAL
══════════════════════════════════════════════════════════════ */
.qg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 26, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeUp 0.25s ease;
}
.qg-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.qg-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.qg-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.qg-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 1rem; }
.qg-vague { font-size: 0.8rem; color: var(--text-muted); background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; margin-bottom: 1rem; }
.qg-vague em { color: #f87171; font-style: normal; }
.qg-questions { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }
.qg-q { display: flex; flex-direction: column; gap: 0.35rem; }
.qg-q-label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.qg-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.qg-textarea:focus { border-color: var(--accent); }
.qg-textarea::placeholder { color: var(--text-muted); }
.qg-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ══════════════════════════════════════════════════════════════
   SELF-CRITIQUE PANEL
══════════════════════════════════════════════════════════════ */
.critique-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.critique-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-hi);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.critique-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-size: 0.9rem; }

.critique-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 0;
}
.critique-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.critique-score-wrap {
  min-width: 72px;
  text-align: center;
}
.critique-score-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sc, var(--accent));
  line-height: 1;
}
.critique-score-lbl { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.5px; }
.critique-summary-text h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.critique-summary-text p { font-size: 0.85rem; color: var(--text-dim); }

.critique-tips {
  background: rgba(124, 92, 252, 0.07);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
}
.critique-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.critique-tips-list {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.critique-tips-list li { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }

.critique-bullet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.critique-bullet-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.critique-rating-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #000;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
}
.critique-issue-tag { font-size: 0.78rem; color: var(--text-muted); }
.critique-orig { font-size: 0.87rem; color: var(--text-dim); font-style: italic; line-height: 1.5; margin-bottom: 0.75rem; }
.critique-rewrite-wrap { border-top: 1px solid var(--border); padding-top: 0.75rem; }
.critique-arrow-lbl { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #34d399; display: block; margin-bottom: 0.4rem; }
.critique-rewrite { font-size: 0.87rem; color: var(--text); line-height: 1.5; margin-bottom: 0.6rem; }
.btn-apply-rewrite {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-apply-rewrite:hover { background: rgba(52, 211, 153, 0.22); }

.critique-strong-details { margin-top: 1rem; }
.critique-strong-details > summary { padding: 0.5rem 0; }
.critique-strong-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.critique-strong-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.critique-strong-item:last-child { border-bottom: none; }

.tab-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #000;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.tab-loading-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 0.3rem;
  animation: pulse-dot 1s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ══════════════════════════════════════════════════════════════
   APPLICATION TRACKER
══════════════════════════════════════════════════════════════ */
.log-application-panel {
  margin: 1.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.log-app-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  flex-wrap: wrap;
}
.log-app-label { font-size: 0.9rem; font-weight: 600; }
.log-app-hint { font-size: 0.8rem; color: var(--text-muted); flex: 1; }
.log-app-form { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--border); }
.log-app-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.log-app-row input {
  flex: 1;
  min-width: 160px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.log-app-row input:focus { border-color: var(--accent); }
.log-app-row input::placeholder { color: var(--text-muted); }
.log-app-actions { display: flex; gap: 0.6rem; margin-top: 0.75rem; justify-content: flex-end; }
.log-app-success { padding: 0.9rem 1.25rem; font-size: 0.88rem; color: #34d399; }

.apps-section {
  margin-top: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.apps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.apps-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.apps-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.apps-stat { font-size: 0.78rem; color: var(--text-dim); background: var(--bg-input); border: 1px solid var(--border); border-radius: 20px; padding: 0.2rem 0.7rem; }
.apps-stat-green { color: #34d399; border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.apps-list { }
.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.app-row:last-child { border-bottom: none; }
.app-info { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; flex-wrap: wrap; }
.app-company { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.app-role    { font-size: 0.82rem; color: var(--text-dim); }
.app-date    { font-size: 0.75rem; color: var(--text-muted); }
.app-controls { display: flex; align-items: center; gap: 0.5rem; }
.app-status-sel {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: var(--font);
}
.app-del {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.app-del:hover { color: #f87171; }
.apps-more { padding: 0.7rem 1.5rem; font-size: 0.78rem; color: var(--text-muted); }
.apps-stat-ghost { color: #9ca3af; border-color: rgba(156,163,175,0.3); background: rgba(156,163,175,0.08); }
.apps-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.apps-empty p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }
.apps-empty span { font-size: 0.8rem; color: var(--text-muted); }
.app-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Analysis Section ──────────────────────────────────────── */
.anl-section {
  margin-top: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.anl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.anl-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.anl-header-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.anl-meta { font-size: 0.75rem; color: var(--text-muted); }
.btn-analyse {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-analyse:hover { opacity: 0.85; }
.btn-analyse:disabled { opacity: 0.5; cursor: not-allowed; }
.anl-idle {
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.anl-idle p { font-size: 0.85rem; color: var(--text-dim); margin: 0; line-height: 1.6; }
.anl-warn { color: #fbbf24 !important; }
.anl-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.anl-gaps { display: flex; flex-direction: column; gap: 0.75rem; }
.anl-gap {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.anl-gap-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.anl-gap-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.anl-gap-skill {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.anl-gap-pri {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.anl-gap-seen {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-left: auto;
}
.anl-gap-why {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.anl-gap-learn {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.anl-learn-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.anl-learn-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.anl-none { font-size: 0.85rem; color: var(--text-muted); padding: 0.5rem 0; }
.anl-ts {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  padding-top: 0.5rem;
}
.anl-rerun {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   REFINE CHIPS
══════════════════════════════════════════════════════════════ */
.refine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.refine-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.refine-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-lo);
}

/* ══════════════════════════════════════════════════════════════
   ACTIONABLE MATCH PANEL ADDITIONS
══════════════════════════════════════════════════════════════ */
.mp-gap-section { margin-top: 0.5rem; }
.mp-gap-header  { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.mp-boost-pill  {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
}
.mp-gap-list    { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.mp-gap-item    {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.mp-gap-more    { font-size: 0.75rem; color: var(--text-muted); align-self: center; }
.mp-gap-tip     { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* ══════════════════════════════════════════════════════════════
   INTERVIEW PREP TAB
══════════════════════════════════════════════════════════════ */
.interview-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}
.interview-idle-icon  { font-size: 2.5rem; margin-bottom: 0.75rem; }
.interview-idle-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.interview-idle-desc  { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 0.75rem; }
.interview-idle-cost  { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.interview-idle-btn   { gap: 0.5rem; }

.interview-panel { max-width: 720px; margin: 0 auto; padding: 1.5rem 0; }
.interview-insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) { .interview-insight-row { grid-template-columns: 1fr; } }
.interview-insight {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.interview-strength {
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.2);
  color: var(--text);
}
.interview-risk {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: var(--text);
}
.insight-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); }

.interview-q-list { display: flex; flex-direction: column; gap: 0.75rem; }
.interview-q {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.interview-q-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.interview-q-num  {
  width: 22px; height: 22px;
  background: var(--accent-lo);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.interview-q-type { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.interview-q-text { font-size: 0.9rem; font-weight: 500; color: var(--text); margin-bottom: 0.5rem; line-height: 1.5; }
.interview-q-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(124,92,252,0.06);
  border-left: 2px solid var(--accent);
  padding: 0.4rem 0.7rem;
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}
.interview-regen-row { margin-top: 1.25rem; display: flex; justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   GENERATION HISTORY
══════════════════════════════════════════════════════════════ */
.history-section {
  margin-top: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.history-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.history-list  { }
.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.history-empty p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }
.history-empty span { font-size: 0.8rem; color: var(--text-muted); }
.history-item  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  gap: 1rem;
}
.history-item:last-child { border-bottom: none; }
.history-item:hover { background: rgba(124,92,252,0.06); }
.history-item-info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.history-item-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-date  { font-size: 0.75rem; color: var(--text-muted); }
.history-score {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Landing Page ───────────────────────────────────────────── */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(7,7,26,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.lp-nav-right { display: flex; align-items: center; gap: 0.75rem; }

.lp-hero {
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(124,92,252,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero-inner { max-width: 780px; margin: 0 auto; position: relative; }

.lp-badge {
  display: inline-block;
  background: var(--accent-lo);
  border: 1px solid rgba(124,92,252,0.3);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.lp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.lp-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.lp-cta-group { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lp-cta-btn {
  font-size: 1.05rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
}
.lp-cta-note { font-size: 0.82rem; color: var(--text-muted); }

.lp-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.lp-stat { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.lp-stat-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.lp-stat-label { font-size: 0.75rem; color: var(--text-muted); }
.lp-stat-div { width: 1px; height: 36px; background: var(--border); }

.lp-section-inner { max-width: 1000px; margin: 0 auto; }

.lp-steps {
  padding: 5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-steps h2, .lp-features h2, .lp-pricing h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}
.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.lp-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.lp-step-num {
  width: 2.5rem; height: 2.5rem;
  background: var(--accent-lo);
  border: 1px solid rgba(124,92,252,0.3);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.lp-step h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; }
.lp-step p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }

.lp-features {
  padding: 5rem 2rem;
}
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lp-feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lp-feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.lp-feature-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.lp-feature-item p { font-size: 0.83rem; color: var(--text-dim); line-height: 1.6; }

.lp-pricing {
  padding: 5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-pricing-sub { text-align: center; color: var(--text-dim); margin-top: -2rem; margin-bottom: 3rem; }
.lp-price-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.lp-price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.lp-price-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(124,92,252,0.08), var(--bg));
}
.lp-price-badge {
  position: absolute;
  top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.lp-price-tier { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lp-price-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); }
.lp-price-per { font-size: 0.9rem; font-weight: 400; color: var(--text-dim); }
.lp-price-desc { font-size: 0.83rem; color: var(--text-dim); }
.lp-price-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin: 0.5rem 0; }
.lp-price-list li { font-size: 0.88rem; color: var(--text-dim); }
.lp-price-btn { width: 100%; margin-top: auto; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.lp-final-cta {
  padding: 6rem 2rem;
  text-align: center;
}
.lp-final-inner { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.lp-final-cta h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.lp-final-cta p { color: var(--text-dim); line-height: 1.7; }

.lp-footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-footer p { font-size: 0.83rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .lp-nav { padding: 1rem 1.25rem; }
  .lp-hero { padding: 4rem 1.25rem 3rem; }
  .lp-steps-grid, .lp-features-grid { grid-template-columns: 1fr; }
  .lp-price-cards { grid-template-columns: 1fr; }
  .lp-stats { gap: 1rem; }
  .lp-steps, .lp-features, .lp-pricing, .lp-final-cta { padding: 3.5rem 1.25rem; }
  .lp-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Landing page hero grid ──────────────────────────────── */
.lp-hero { padding: 4rem 2.5rem 3.5rem; }
.lp-hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.lp-hero-text { display: flex; flex-direction: column; gap: 0; }
.lp-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.lp-hero-text .lp-badge { margin-bottom: 1.5rem; }
.lp-hero-text .lp-sub { margin-bottom: 2rem; }
.lp-hero-text .lp-stats { justify-content: flex-start; margin-top: 2rem; padding-top: 1.5rem; }

/* ── Resume mockup card ──────────────────────────────────── */
.lp-hero-visual { display: flex; justify-content: center; }
.lp-mock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,92,252,0.1);
}
.lp-mock-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.lp-mock-score-ring { position: relative; flex-shrink: 0; }
.lp-mock-score-ring svg { display: block; }
.lp-mock-score-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}
.lp-mock-score-label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.lp-mock-score-sub { font-size: 0.75rem; color: var(--green); margin-top: 0.15rem; }
.lp-mock-divider { height: 1px; background: var(--border); margin: 1rem 0; }
.lp-mock-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.lp-mock-title { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1rem; }
.lp-mock-section {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0.75rem 0 0.4rem;
}
.lp-mock-company { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.4rem; }
.lp-mock-bullets { display: flex; flex-direction: column; gap: 0.3rem; }
.lp-mock-bullet { font-size: 0.75rem; color: var(--text-dim); line-height: 1.5; }
.lp-kw { color: var(--accent); font-weight: 600; }
.lp-mock-keywords { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.lp-kw-pill {
  background: var(--accent-lo);
  border: 1px solid rgba(124,92,252,0.25);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* ── Testimonials ────────────────────────────────────────── */
.lp-testimonials {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-testimonials h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 3rem;
}
.lp-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lp-testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lp-testi-stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 0.05em; }
.lp-testi-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; flex: 1; }
.lp-testi-author { display: flex; align-items: center; gap: 0.75rem; }
.lp-testi-avatar {
  width: 36px; height: 36px;
  background: var(--accent-lo);
  border: 1px solid rgba(124,92,252,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.lp-testi-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.lp-testi-role { font-size: 0.75rem; color: var(--text-muted); }

/* ── Compact upload zone ─────────────────────────────────── */
.upload-zone-compact { padding: 0.9rem 1.25rem !important; min-height: unset !important; }
.upload-zone-compact .upload-icon { display: none !important; }
.upload-zone-compact .upload-text { font-size: 0.88rem; }

/* ── Responsive overrides ────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-hero-visual { display: none; }
  .lp-testi-grid { grid-template-columns: 1fr; }
  .lp-hero-text .lp-stats { justify-content: center; }
}
