/* ═══════════════════════════════════════════════════════════
   Job Application Kit - UI Styles
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #0d0f18;
  --bg2: #161929;
  --bg3: #1f2336;
  --bg4: #252a3e;
  --border: #2a2f47;
  --border-light: #363d5a;
  --text: #e4e7f2;
  --text2: #7c839e;
  --text3: #555d7a;
  --accent: #6c8cff;
  --accent-hover: #8ba4ff;
  --accent-dim: rgba(108,140,255,.12);
  --green: #4ade80;
  --green-dim: rgba(74,222,128,.12);
  --red: #f87171;
  --orange: #fb923c;
  --purple: #a78bfa;
  --radius: 10px;
  --radius-sm: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  align-items: center;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  gap: 2px;
  height: 44px;
  overflow-x: auto;
}
.tab {
  padding: 8px 18px;
  cursor: pointer;
  color: var(--text2);
  font-size: 13px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab:hover { color: var(--text); background: var(--bg3); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab .close-tab {
  font-size: 11px;
  opacity: 0.4;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
}
.tab .close-tab:hover { opacity: 1; background: var(--red); color: #fff; }
.tab-add {
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text2);
  font-size: 18px;
  border-radius: var(--radius);
}
.tab-add:hover { color: var(--accent); background: var(--bg3); }

/* ── Scroll Glow Orbs ─────────────────────────────────────── */
/* JS drives `top` via vh. Size encodes depth: big=near, small=far. */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: top;
  transform: translateY(-50%);
}
/* NEAR — 78vw, right side, moves 65 vh across scroll range */
.glow-orb-r {
  width: 78vw;
  height: 78vw;
  right: -28vw;
  background: radial-gradient(circle, rgba(108,140,255,.07) 0%, rgba(167,139,250,.04) 40%, transparent 68%);
}
/* MID — 52vw, left side, moves 42 vh */
.glow-orb-l {
  width: 52vw;
  height: 52vw;
  left: -17vw;
  background: radial-gradient(circle, rgba(74,222,128,.04) 0%, rgba(108,140,255,.05) 40%, transparent 68%);
}
/* FAR — 34vw, center-top, moves 22 vh */
.glow-orb-t {
  width: 34vw;
  height: 34vw;
  left: 50%;
  margin-left: -17vw;
  background: radial-gradient(circle, rgba(167,139,250,.05) 0%, rgba(108,140,255,.03) 44%, transparent 70%);
}
/* DEEPEST — 20vw, right-bottom, moves only 8 vh */
.glow-orb-b {
  width: 20vw;
  height: 20vw;
  right: 12vw;
  background: radial-gradient(circle, rgba(108,140,255,.04) 0%, rgba(167,139,250,.02) 44%, transparent 70%);
}

/* ── Main Layout ──────────────────────────────────────────── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px;
}
.section {
  background: #1a1c25;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
  transition: box-shadow .2s;
  position: relative;
  z-index: 1;
}
.section:hover { box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(90deg, rgba(255,255,255,.025) 0%, transparent 100%);
  border-bottom: 1px solid transparent;
  transition: background .15s;
}
.section:not(.collapsed) .section-header { border-bottom-color: var(--border); }
.section-header:hover { background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, transparent 100%); }
.section-header h3 {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h3 span { font-size: 15px; line-height: 1; }
.section-header .arrow {
  font-size: 10px;
  color: var(--text3);
  transition: transform .2s;
}
.section.collapsed .section-body { display: none; }
.section.collapsed .arrow { transform: rotate(-90deg); }
.section-body { padding: 20px; }

/* ── Form Elements ────────────────────────────────────────── */
label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text2);
  display: block;
  margin-bottom: 5px;
  margin-top: 14px;
}
label:first-child { margin-top: 0; }
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], textarea, select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,140,255,.1);
}
textarea { resize: vertical; min-height: 80px; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-light); background: var(--bg4); }
.btn-run {
  background: linear-gradient(135deg, #6c8cff, #a78bfa);
  color: #fff;
  font-size: 15px;
  padding: 12px 36px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(108,140,255,.3);
}
.btn-run:hover { filter: brightness(1.1); box-shadow: 0 6px 20px rgba(108,140,255,.4); }
.btn-run:disabled { opacity: 0.45; cursor: not-allowed; filter: none; box-shadow: none; }
.btn-sm { padding: 5px 13px; font-size: 12px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }

/* ── Run Bar ──────────────────────────────────────────────── */
.run-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 8px;
}
.count-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}
.count-selector select {
  width: 70px;
}

/* ── File chips ───────────────────────────────────────────── */
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
}
.file-chip .remove {
  cursor: pointer;
  color: var(--text2);
  font-size: 14px;
}
.file-chip .remove:hover { color: var(--red); }

/* ── Link row ─────────────────────────────────────────────── */
.link-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: none;
}
.link-row:hover { color: var(--accent-hover); text-decoration: underline; }
.link-row .icon { font-size: 15px; }

/* ── Customize Files ──────────────────────────────────────── */
.customize-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 8px;
}
.add-type-btn { white-space: nowrap; }
.customize-card {
  background: #1a1c25;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.customize-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.customize-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.customize-card-remove {
  font-size: 16px;
  cursor: pointer;
  color: var(--text2);
  padding: 2px 6px;
  border-radius: 4px;
}
.customize-card-remove:hover { color: var(--red); background: rgba(248,113,113,.1); }

.filename-format-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filename-format-row input { flex: 1; }
.format-hint {
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
  margin-bottom: 8px;
}

/* ── Template editor ──────────────────────────────────────── */
.tpl-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.tpl-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,140,255,0.15);
}
.template-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  font-family: inherit;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
  color: var(--text2);
  margin-top: 8px;
}
.customize-card .template-preview {
  background: var(--bg2);
}
.customize-card .link-row {
  background: var(--bg2);
}
.customize-card .upload-area {
  border-color: var(--border);
}

/* ── Results ──────────────────────────────────────────────── */
.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.result-item:last-child { border-bottom: none; }
.result-item .status-icon { font-size: 16px; }
.result-item .firm-name { font-weight: 500; flex: 1; }
.badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-ok { background: rgba(74,222,128,.13); color: var(--green); }
.badge-warn { background: rgba(251,146,60,.13); color: var(--orange); }
.badge-err { background: rgba(248,113,113,.13); color: var(--red); }
.draft-error { font-size: 11px; color: var(--red); margin-top: 2px; width: 100%; }

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 11px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: slideIn .2s;
  max-width: 360px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Loading spinner ──────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text2);
}
.empty-state h2 { font-size: 20px; margin-bottom: 10px; color: var(--text); font-weight: 600; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

/* ── Upload area ──────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-top: 8px;
  background: rgba(255,255,255,.01);
}
.upload-area:hover { border-color: var(--accent); background: var(--accent-dim); }
.upload-area input { display: none; }
.upload-area p { font-size: 12px; color: var(--text2); }

/* ── Attachment Checkboxes ───────────────────────────────── */
.attach-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.attach-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.attach-check:hover { color: var(--accent); }
.attach-check input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Preview Path ────────────────────────────────────────── */
.preview-path {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text2);
}
.preview-path a {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.preview-path a:hover { text-decoration: underline; }

/* ── Search Results Panel ────────────────────────────────── */
.search-results-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}
.search-results-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-count {
  font-size: 12px;
  color: var(--text2);
  font-weight: 400;
}
.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.search-result-row:hover { border-color: var(--accent); }
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-info strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.search-detail {
  font-size: 12px;
  color: var(--text2);
}
.search-results-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
.search-results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.btn-remove-target {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.btn-remove-target:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(248,113,113,.1);
}

/* ── Token Usage ─────────────────────────────────────────── */
.token-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(108,140,255,.1);
  border: 1px solid rgba(108,140,255,.25);
  border-radius: 12px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}
.token-usage-inline {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.token-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.token-stat {
  flex: 1;
  min-width: 120px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.token-stat-label {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.token-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.token-stat-total {
  color: var(--accent);
}
.token-stat-cost {
  font-size: 12px;
  color: var(--text2);
}
.token-log-details {
  margin-top: 12px;
}
.token-log-details summary {
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  padding: 4px 0;
}
.token-log-details summary:hover { color: var(--accent); }
.token-log {
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
}
.token-log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.token-log-row:last-child { border-bottom: none; }
.token-log-time {
  color: var(--text2);
  min-width: 140px;
  font-size: 11px;
}
.token-log-op {
  color: var(--accent);
  font-weight: 500;
  min-width: 140px;
}
.token-log-tokens {
  color: var(--text);
  margin-left: auto;
  white-space: nowrap;
}

/* ── Source link in search results ──────────────────────── */
.source-link {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity .15s;
}
.source-link:hover { opacity: 1; }

/* ── Progress Modal ──────────────────────────────────────── */
.progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
}
.progress-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  width: 440px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.progress-modal h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--text);
}
.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6c8cff, #a78bfa);
  border-radius: 4px;
  transition: width .4s ease;
  width: 0%;
}
.progress-bar-fill.indeterminate {
  width: 30% !important;
  animation: indeterminate 1.5s ease-in-out infinite;
}
@keyframes indeterminate {
  0% { margin-left: 0; }
  50% { margin-left: 70%; }
  100% { margin-left: 0; }
}
.progress-status {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  min-height: 20px;
}
.progress-detail {
  font-size: 12px;
  color: var(--text2);
  min-height: 18px;
}
.progress-steps {
  margin-top: 16px;
  text-align: left;
  max-height: 180px;
  overflow-y: auto;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--text2);
}
.progress-step.active { color: var(--accent); font-weight: 500; }
.progress-step.done { color: var(--green); }
.progress-step .step-icon { width: 16px; text-align: center; }

/* ── Landing Page ─────────────────────────────────────────── */
/* ── Sticky Nav ───────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(8, 10, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 36, 56, 0);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}
.landing-nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-bottom-color: rgba(30, 36, 56, 0.8);
}
.landing-nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.landing-nav-links a {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.landing-nav-links a:hover { color: var(--text); }
.landing-nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}
.landing-nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────────────────── */
.landing-hero {
  background: var(--bg);
  padding: 140px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1000px;
  background:
    radial-gradient(ellipse 55% 70% at 30% 50%,
      rgba(167,139,250,0.32) 0%,
      rgba(139,92,246,0.15) 40%,
      transparent 70%),
    radial-gradient(ellipse 55% 70% at 70% 50%,
      rgba(251,113,133,0.28) 0%,
      rgba(244,114,182,0.14) 40%,
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: heroGlowPulse 7s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(108,140,255,0.08);
  border: 1px solid rgba(108,140,255,0.22);
  border-radius: 100px;
  letter-spacing: 0.01em;
}
.landing-title {
  font-size: 62px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(135deg, #6c8cff 0%, #a78bfa 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-subtitle {
  font-size: 19px;
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.65;
  font-weight: 400;
}
.btn-landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: linear-gradient(135deg, #6c8cff 0%, #a78bfa 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow:
    0 0 0 1px rgba(108,140,255,0.3),
    0 4px 20px rgba(108,140,255,0.35),
    0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-landing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-landing-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(108,140,255,0.4),
    0 8px 32px rgba(108,140,255,0.45),
    0 2px 6px rgba(0,0,0,0.3);
}
.btn-landing-cta:hover::before { opacity: 1; }
.btn-landing-cta:active { transform: translateY(0); }
.btn-landing-cta .arrow { transition: transform 0.2s; }
.btn-landing-cta:hover .arrow { transform: translateX(4px); }

/* ── Privacy Banner ───────────────────────────────────────── */
.privacy-banner {
  background: rgba(99, 102, 241, 0.07);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 12px 0;
}
.privacy-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
  justify-content: center;
  text-align: center;
}
.privacy-banner-icon { font-size: 16px; flex-shrink: 0; }
.privacy-banner-inner a { color: var(--accent); text-decoration: none; }
.privacy-banner-inner a:hover { text-decoration: underline; }

/* ── Metrics Bar ──────────────────────────────────────────── */
.landing-metrics {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
}
.metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 52px;
}
.metric-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-label {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  font-weight: 400;
  max-width: 110px;
}
.metric-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Features ─────────────────────────────────────────────── */
.landing-features {
  padding: 100px 20px;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px;
  text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,140,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: rgba(108,140,255,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(108,140,255,0.08);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(108,140,255,0.1);
  border: 1px solid rgba(108,140,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0;
}

/* ── Section Title ────────────────────────────────────────── */
.landing-how {
  padding: 100px 20px;
  background: var(--bg2);
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
  line-height: 1.2;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-steps {
  max-width: 680px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 44px;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(108,140,255,0.6) 0%,
    rgba(108,140,255,0.08) 100%);
}
.how-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  padding: 24px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }
.how-step:hover { transform: none; border-color: var(--border); }
.step-number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.how-step:first-child .step-number {
  background: rgba(108,140,255,0.12);
  border-color: rgba(108,140,255,0.35);
  box-shadow: 0 0 16px rgba(108,140,255,0.2);
}
.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  padding-top: 8px;
}
.step-content p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0;
}

/* ── CTA Section ──────────────────────────────────────────── */
.landing-cta {
  padding: 140px 20px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-cta::before {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse 50% 40% at 50% 100%,
    rgba(108,140,255,0.18) 0%,
    rgba(167,139,250,0.07) 50%,
    transparent 70%);
  pointer-events: none;
}
.landing-cta h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}
.landing-cta p {
  font-size: 17px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ── Landing Trust Pills ──────────────────────────────────── */
.landing-trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.trust-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  transition: border-color 0.2s, color 0.2s;
}
.trust-pill:hover { border-color: var(--border-light); color: var(--text2); }

/* ── Section Subtitle ─────────────────────────────────────── */
.section-subtitle {
  text-align: center;
  color: var(--text2);
  font-size: 16px;
  margin-top: -12px;
  margin-bottom: 36px;
}

/* ── Use Cases Section ────────────────────────────────────── */
.landing-usecases {
  padding: 80px 20px;
  background: var(--bg);
}
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.usecase-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.usecase-icon { font-size: 28px; margin-bottom: 12px; }
.usecase-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.usecase-card p { font-size: 14px; color: var(--text2); line-height: 1.6; margin: 0; }

/* ── Comparison Table Section ─────────────────────────────── */
.landing-compare {
  padding: 100px 20px;
  background: var(--bg2);
}
.compare-table-wrap {
  overflow: hidden;
  overflow-x: auto;
  margin-top: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg3);
}
.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  white-space: nowrap;
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  width: 36%;
}
.compare-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg4);
  padding: 16px 20px;
  letter-spacing: -0.01em;
}
.compare-table .compare-highlight {
  background: rgba(108, 140, 255, 0.07);
  color: var(--text) !important;
  font-weight: 600;
}
.compare-table thead .compare-highlight {
  color: var(--accent) !important;
  position: relative;
}
.compare-table thead .compare-highlight::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Pricing Promo ────────────────────────────────────────── */
.pricing-original {
  font-size: 0.65em;
  color: var(--text3);
  text-decoration: line-through;
  margin-left: 4px;
  font-weight: 400;
}
.pricing-promo-banner {
  text-align: center;
  background: linear-gradient(90deg, rgba(108,140,255,0.15), rgba(108,140,255,0.08));
  border: 1px solid rgba(108,140,255,0.3);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.credit-modal-promo {
  text-align: center;
  background: linear-gradient(90deg, rgba(108,140,255,0.15), rgba(108,140,255,0.08));
  border: 1px solid rgba(108,140,255,0.3);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── Landing FAQ Section ──────────────────────────────────── */
.landing-faq {
  padding: 80px 20px;
  background: var(--bg);
}
.landing-faq .faq-list {
  max-width: 760px;
  margin: 0 auto;
  gap: 0;
}
.landing-faq .faq-item {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 4px;
  background: transparent;
}
.landing-faq .faq-item:first-child { border-top: 1px solid var(--border); }
.landing-faq .faq-q {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
  user-select: none;
}
.landing-faq .faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text3);
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s;
}
.landing-faq .faq-item.open .faq-q::after { content: '−'; color: var(--accent); }
.landing-faq .faq-q:hover { color: var(--accent); }
.landing-faq .faq-a { font-size: 14px; margin-top: 12px; padding-right: 32px; }

/* ── CTA Note ─────────────────────────────────────────────── */
.cta-note {
  font-size: 13px !important;
  color: var(--text3) !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* ── Landing Page Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .landing-title {
    font-size: 36px;
  }
  .landing-subtitle {
    font-size: 16px;
  }
  .btn-landing-cta {
    padding: 14px 32px;
    font-size: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .usecase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .landing-trust-pills {
    flex-direction: column;
    align-items: center;
  }
  .metric-item { padding: 0 20px; }
  .metric-sep { display: none; }
  .metrics-row { gap: 28px; }
  .how-steps::before { display: none; }
  .landing-nav { padding: 0 20px; }
  .landing-nav-links { display: none; }
  .section-title {
    font-size: 32px;
  }
  .how-step {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .step-number {
    margin: 0 auto;
  }
  .landing-cta h2 {
    font-size: 32px;
  }
  .landing-hero {
    padding: 60px 20px;
  }
  .landing-features,
  .landing-how,
  .landing-cta {
    padding: 60px 20px;
  }
}

/* ── Login Page ──────────────────────────────────────────── */
.btn-back-landing {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100;
}
.btn-back-landing:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg3);
}
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 24px;
}
.login-container h1 {
  font-size: 36px;
  background: linear-gradient(135deg, #6c8cff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.login-subtitle {
  color: var(--text2);
  font-size: 16px;
}
.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
}
.btn-google, .btn-microsoft {
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  background: var(--bg2);
  color: var(--text);
  transition: background 0.2s;
}
.btn-google:hover, .btn-microsoft:hover {
  background: var(--bg3);
}

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  background: #1a1c25;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(100,100,120,.06), 0 2px 12px rgba(0,0,0,.3);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}
.top-bar-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-back {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.btn-back:hover { color: var(--text); }
.btn-back-chevron {
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  margin-top: -1px;
}
.top-bar-center {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  padding-left: 16px;
}
.top-bar-project-name {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 500px;
  overflow: hidden;
}
.top-bar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.app-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #6c8cff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.project-select {
  flex: 1;
  min-width: 0;
  padding: 5px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  width: auto;
}
.project-select:focus { border-color: var(--accent); }
.project-select option { background: var(--bg3); }
.btn-icon {
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
  line-height: 1;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-icon-danger:hover { border-color: var(--red); color: var(--red); background: rgba(248,113,113,.08); }
.credits-display {
  background: var(--green-dim);
  border: 1px solid rgba(74,222,128,.22);
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .01em;
}
.user-email {
  font-size: 12px;
  color: var(--text2);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-sm { padding: 5px 13px; font-size: 12px; }
.btn-buy {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(108,140,255,.25);
}
.btn-buy:hover { filter: brightness(1.1); box-shadow: 0 3px 14px rgba(108,140,255,.35); }
.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-logout:hover { background: var(--bg3); border-color: var(--border-light); color: var(--text); }

/* ── Celebration Modal ──────────────────────────────────── */
.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  backdrop-filter: blur(8px);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.celebration-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 52px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  width: 420px;
  max-width: 90vw;
  text-align: center;
  animation: celebPop .4s cubic-bezier(.175,.885,.32,1.275);
  position: relative;
  z-index: 2;
}
@keyframes celebPop {
  from { opacity: 0; transform: scale(0.7) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.celebration-checkmark {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}
.checkmark-svg {
  width: 72px;
  height: 72px;
}
.checkmark-circle {
  stroke: var(--green);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: checkStroke .6s cubic-bezier(.65,0,.45,1) .2s forwards;
}
.checkmark-check {
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkStroke .4s cubic-bezier(.65,0,.45,1) .6s forwards;
}
@keyframes checkStroke {
  to { stroke-dashoffset: 0; }
}
.celebration-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.celebration-msg {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 20px;
}
.celebration-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.celeb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.celeb-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.celeb-stat-label {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.celebration-close {
  padding: 10px 36px;
  font-size: 14px;
}
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall var(--fall-duration, 3s) linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(100vh) rotate(var(--rotation, 720deg)); opacity: 0; }
}

/* ── Manual Entry Form ─────────────────────────────────── */
.manual-entry-section {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.manual-entry-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  padding: 6px 0;
  user-select: none;
}
.manual-entry-toggle:hover { color: var(--accent-hover); }
.manual-entry-toggle .arrow-icon {
  font-size: 10px;
  transition: transform .2s;
}
.manual-entry-toggle.expanded .arrow-icon {
  transform: rotate(90deg);
}
.manual-entry-form {
  display: none;
  margin-top: 12px;
}
.manual-entry-form.visible {
  display: block;
}
.manual-entry-form .row {
  margin-bottom: 8px;
}
.manual-entry-form label {
  margin-top: 8px;
  margin-bottom: 3px;
}
.manual-entry-form label:first-child {
  margin-top: 0;
}
.manual-entry-hint {
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 10px;
}
.manual-entry-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.manual-entries-list {
  margin-top: 12px;
}
.manual-entry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  border-left: 3px solid var(--orange);
}
.manual-entry-row .search-result-info { flex: 1; min-width: 0; }
/* Subject row */
.subject-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 4px;
}
.subject-input-wrap { flex: 1; }
.subject-smart-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1px;
}
.smart-subject-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  margin: 0 !important;
}
.smart-subject-check input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
  cursor: pointer;
}
.smart-subject-status {
  min-height: 18px;
  margin-top: 4px;
  font-size: 11px;
}
.smart-searching { color: var(--accent); }
.smart-found { color: var(--green); }

/* ── Credit Purchase Modal ───────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.72);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 72px rgba(0,0,0,.6);
  width: 92%;
  max-width: 660px;
  position: relative;
  animation: modalIn .2s ease;
}
/* wider variant for credit modal */
.credit-modal-box { max-width: 680px; }
@keyframes modalIn {
  from { opacity:0; transform: translateY(16px) scale(.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}
.modal-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.modal-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 22px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius);
  line-height: 1;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--bg3); color: var(--text); }
.modal-subtitle {
  color: var(--text2);
  font-size: 13px;
  margin: 0;
}
.credit-modal-promo {
  background: linear-gradient(135deg, rgba(108,140,255,.15), rgba(168,85,247,.15));
  border: 1px solid rgba(108,140,255,.3);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin-bottom: 18px;
}
.credit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  align-items: stretch;
}
@media (max-width: 520px) {
  .credit-cards { grid-template-columns: 1fr; }
}
.credit-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 14px 18px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.credit-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(108,140,255,.18);
}
.credit-card-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(108,140,255,.1), rgba(168,85,247,.06));
  box-shadow: 0 4px 20px rgba(108,140,255,.15);
}
.credit-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.credit-card-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text2);
  margin-bottom: 12px;
}
.credit-card-amount {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.credit-card-amount span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text2);
  letter-spacing: 0;
}
.credit-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3px;
}
.credit-card-rate {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 16px;
  flex: 1;
}
.btn-block { width: 100%; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(108,140,255,.08); }
.modal-note {
  text-align: center;
  font-size: 12px;
  color: var(--text2);
}
.smart-error { color: var(--red); }

.subject-template-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.subject-template-row input[type="text"] { flex: 1; }
.smart-subject-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text2);
  margin: 0 !important;
}
.smart-subject-toggle input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.manual-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(251,146,60,.15);
  color: var(--orange);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   NEW UI — Projects List, Project Home, Start Apply
   ═══════════════════════════════════════════════════════════ */

/* ── View containers ──────────────────────────────────────── */
#viewProjectsList, #viewProjectHome, #viewStartApply {
  min-height: calc(100vh - 48px);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.view-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 0;
  max-width: 960px;
  margin: 0 auto;
}
.btn-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  cursor: pointer;
  padding: 5px 12px 5px 9px;
  border-radius: 20px;
  font-weight: 700;
  transition: all .15s;
}
.btn-breadcrumb:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.breadcrumb-sep { color: var(--border-light); font-size: 15px; font-weight: 700; }
.breadcrumb-current { color: var(--text); font-size: 13px; font-weight: 700; }

/* ── Loading / Error states ───────────────────────────────── */
.view-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text2);
  font-size: 14px;
}
.view-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--red);
  font-size: 14px;
}

/* ── Projects Page ────────────────────────────────────────── */
.projects-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}
.projects-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.projects-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text2);
}
.projects-empty-icon { font-size: 48px; margin-bottom: 16px; }
.projects-empty h2 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.projects-empty p { font-size: 13px; margin-bottom: 20px; }

/* ── Project Card ─────────────────────────────────────────── */
.project-card {
  background: #1a1c25;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
  padding: 22px 20px 18px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  min-height: 130px;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.project-card-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: all .15s;
  line-height: 1;
}
.project-card:hover .project-card-delete { opacity: 1; }
.project-card-delete:hover { color: var(--red); background: rgba(248,113,113,.1); }
.project-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-right: 24px;
  line-height: 1.3;
}
.project-card-subtitle {
  font-size: 12px;
  color: var(--text2);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.project-card-count {
  font-size: 11px;
  color: var(--text2);
  margin-top: auto;
  padding-top: 12px;
  opacity: 0.7;
}
.project-card-new {
  background: transparent;
  border: 1.5px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text3);
}
.project-card-new:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: none;
}
.project-card-new-icon {
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}
.project-card-new-label {
  font-size: 13px;
  font-weight: 500;
}

/* ── Project Home ─────────────────────────────────────────── */
.project-home-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.project-home-header {
  margin-bottom: 24px;
}
.project-home-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.project-home-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.btn-edit-proj-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.btn-edit-proj-name:hover { opacity: 1; background: var(--surface2); }
.proj-name-input {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface2);
  border: 1.5px solid var(--accent);
  border-radius: 7px;
  padding: 3px 10px;
  outline: none;
  min-width: 180px;
}
.btn-save-proj-name {
  padding: 4px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-cancel-proj-name {
  padding: 4px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
}
.project-home-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* ── Stats Row ────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.stat-card {
  flex: 1;
  text-align: center;
  padding: 4px 0;
}
.stat-card + .stat-card {
  border-left: 1px solid var(--border);
}
.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
}

/* ── Line Chart ───────────────────────────────────────────── */
.chart-card {
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.chart-title {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chart-container {
  width: 100%;
  overflow: hidden;
}
.line-chart-svg {
  width: 100%;
  height: 110px;
  display: block;
}
.chart-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-dot {
  fill: var(--accent);
}
.chart-axis {
  stroke: var(--border);
  stroke-width: 1;
}
.chart-label {
  font-size: 9px;
  fill: var(--text2);
  font-family: 'Segoe UI', sans-serif;
}

/* ── Start Apply Button ───────────────────────────────────── */
.home-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.btn-start-apply {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, #6c8cff, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(108,140,255,.3);
  letter-spacing: 0.5px;
}
.btn-start-apply:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108,140,255,.4);
}

/* ── Home Panels ──────────────────────────────────────────── */
.home-panels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}
.home-panel {
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all .2s;
}
.home-panel:hover {
  background: var(--bg3);
}
.home-panel-icon { font-size: 22px; }
.home-panel-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.home-panel-arrow {
  font-size: 20px;
  color: var(--text2);
  font-weight: 300;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 520px;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-wide {
  width: 860px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  border-radius: 4px;
}
.modal-close:hover { color: var(--text); background: var(--bg3); }
.modal-body {
  padding: 20px;
  overflow-y: auto;
}
.modal-body-scroll {
  overflow-x: auto;
}

/* ── Files Modal Content ──────────────────────────────────── */
.files-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text2);
  font-weight: 600;
  margin-bottom: 10px;
}
.file-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}
.file-list-icon { font-size: 16px; flex-shrink: 0; }
.file-list-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-size {
  font-size: 11px;
  color: var(--text2);
  flex-shrink: 0;
}
.file-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn-danger {
  background: none;
  border: 1px solid rgba(248,113,113,.4);
  color: var(--red);
}
.btn-danger:hover {
  background: rgba(248,113,113,.12);
  border-color: var(--red);
}
.modal-panel-wide { width: min(680px, 95vw); }
.files-empty-note {
  font-size: 13px;
  color: var(--text2);
  padding: 8px 0;
}

/* ── Tracker Table ────────────────────────────────────────── */
.tracker-table-wrap {
  overflow-x: auto;
  min-width: 0;
}
.tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 700px;
}
.tracker-table th {
  background: transparent;
  color: var(--text3);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tracker-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-table tr:last-child td { border-bottom: none; }
.tracker-table tr:hover td { background: var(--bg3); }

/* ── Start Apply Page ─────────────────────────────────────── */
.start-apply-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.search-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.apply-section {
  background: #1a1c25;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}
.apply-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Email Preview Card ───────────────────────────────────── */
.email-preview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.email-field-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.email-field-row:last-child { border-bottom: none; }
.email-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  padding-top: 1px;
  flex-shrink: 0;
}
.email-field-value {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}
.email-field-body .email-field-value {
  font-size: 12px;
  color: var(--text2);
  white-space: pre-wrap;
  max-height: 120px;
  overflow: hidden;
}
.email-attachments-list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 11px;
  color: var(--text2);
}
.generated-chip {
  border-color: rgba(108,140,255,.3);
  color: var(--accent);
  background: rgba(108,140,255,.08);
}
.btn-edit-field {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  transition: all .15s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-edit-field:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.text-muted { color: var(--text2); font-size: 12px; }
.text-warn { color: var(--orange); }

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .home-panels { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .modal-wide { width: 100%; }
}

/* ── Landing Footer ──────────────────────────────────────── */
.landing-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  color: var(--text2);
  font-size: 12px;
  margin: 0;
}

/* ── About Page ──────────────────────────────────────────── */
#aboutPage {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
.about-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.about-back-btn {
  font-size: 13px;
  padding: 6px 14px;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.about-back-btn:hover { color: var(--accent); border-color: var(--accent); }
.about-logo {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #4361ee, #7209b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.about-section {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.about-section:last-child { border-bottom: none; }
.about-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.about-section p { color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.about-section a { color: var(--accent); text-decoration: none; }
.about-section a:hover { text-decoration: underline; }

/* About steps */
.about-steps { display: flex; flex-direction: column; gap: 20px; }
.about-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.about-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4361ee, #7209b7);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-step strong { color: var(--text); font-size: 15px; }
.about-step p { margin: 4px 0 0; font-size: 14px; }

/* Pricing cards */
.about-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 12px;
}
.about-pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
}
.about-pricing-featured {
  border-color: var(--accent);
  background: rgba(67,97,238,0.08);
}
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-name { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.pricing-amount { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pricing-price { font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 2px; }
.pricing-rate { font-size: 12px; color: var(--text2); }
.about-pricing-note { font-size: 13px; color: var(--text2); margin-top: 8px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}
.faq-q { font-weight: 600; color: var(--text); margin-bottom: 8px; font-size: 14px; }
.faq-a { color: var(--text2); font-size: 13px; line-height: 1.6; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-field { display: flex; flex-direction: column; gap: 5px; }
.contact-field label { font-size: 12px; color: var(--text2); font-weight: 500; }
.contact-field input,
.contact-field textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 8px 12px;
  transition: border-color 0.15s;
  font-family: inherit;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr; }
}

/* ? help button in top bar */
.btn-about-link {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text2);
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-about-link:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 600px) {
  .about-pricing-grid { grid-template-columns: 1fr; }
  .about-content { padding: 24px 16px 60px; }
}

/* ═══════════════════════════════════════════════════════════
   Project Home — Nav List & Sub-views
   ═══════════════════════════════════════════════════════════ */

.home-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.home-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg2);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.home-nav-item:last-child { border-bottom: none; }
.home-nav-item:hover { background: var(--bg3); }

.home-nav-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 18px 4px 6px;
}

.home-nav-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; }
.home-nav-info { flex: 1; min-width: 0; }
.home-nav-title { font-size: 14px; font-weight: 500; color: var(--text); }
.home-nav-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.home-nav-arrow { font-size: 20px; color: var(--text3); flex-shrink: 0; line-height: 1; }

/* Sub-view header */
.sub-view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.sub-view-title { font-size: 18px; font-weight: 600; color: var(--text); }
.btn-back-sub {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-back-sub:hover { color: var(--text); border-color: var(--border-light); background: var(--bg3); }
.customize-section { display: flex; flex-direction: column; gap: 16px; }

/* ═══════════════════════════════════════════════════════════
   Onboarding Wizard
   ═══════════════════════════════════════════════════════════ */

#viewOnboarding {
  min-height: calc(100vh - 52px);
  padding: 32px 16px 64px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#onboardingPage {
  width: 100%;
  max-width: 660px;
}

.ob-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ob-card-complete {
  text-align: center;
  align-items: center;
  padding: 40px 32px;
}

/* Progress Bar */
.ob-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-progress-bar {
  height: 4px;
  background: var(--bg4);
  border-radius: 2px;
  overflow: hidden;
}
.ob-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.ob-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg4);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}
.ob-dot-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}
.ob-dot-done {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 0.5;
}
.ob-step-label {
  font-size: 12px;
  color: var(--text2);
}

.btn-ob-skip {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text3);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
}
.btn-ob-skip:hover { color: var(--text2); }

/* Title Area */
.ob-title-area { display: flex; flex-direction: column; gap: 4px; }
.ob-title { font-size: 20px; font-weight: 600; color: var(--text); }
.ob-subtitle { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* Body */
.ob-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ob-desc { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* Upload Zone */
.ob-upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ob-upload-zone:hover, .ob-upload-zone.ob-drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.ob-upload-icon { font-size: 28px; }
.ob-upload-text { font-size: 14px; color: var(--text); font-weight: 500; }
.ob-upload-hint { font-size: 12px; color: var(--text2); }

/* File List */
.ob-files-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}
.ob-file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--text);
}
.ob-file-remove {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}
.ob-file-remove:hover { color: var(--red); }
.ob-empty-hint { font-size: 13px; color: var(--text3); font-style: italic; }

/* Form grid */
.ob-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ob-field { display: flex; flex-direction: column; gap: 6px; }
.ob-field label { font-size: 13px; color: var(--text2); font-weight: 500; }
.ob-field input, .ob-field textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
  width: 100%;
}
.ob-field input:focus, .ob-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.ob-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ob-field-hint { font-size: 11px; color: var(--text3); }

/* Sample Banner */
.ob-sample-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(108,140,255,.25);
  border-radius: 10px;
  padding: 14px 16px;
}
.ob-sample-icon { font-size: 22px; flex-shrink: 0; }
.ob-sample-banner > div { flex: 1; }
.ob-sample-banner strong { font-size: 14px; color: var(--text); }
.ob-sample-banner p { font-size: 12px; color: var(--text2); margin-top: 2px; line-height: 1.4; }

/* Divider */
.ob-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text3);
  font-size: 12px;
}
.ob-divider::before, .ob-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Template sections */
.ob-label {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.ob-label-hint { font-size: 11px; color: var(--text3); font-weight: 400; }
.ob-template-section { display: flex; flex-direction: column; }
.ob-textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  width: 100%;
  transition: border-color 0.15s;
}
.ob-textarea:focus { outline: none; border-color: var(--accent); }
.ob-textarea-tall { min-height: 180px; }
.ob-generate-area {
  text-align: center;
  padding: 20px;
  background: var(--bg3);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.ob-generate-hint { font-size: 12px; color: var(--text3); margin-top: 8px; }

/* Email Options */
.ob-email-options { display: flex; flex-direction: column; gap: 12px; }
.ob-email-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  gap: 12px;
}
.ob-email-option.ob-email-connected {
  border-color: rgba(74,222,128,.3);
  background: rgba(74,222,128,.05);
}
.ob-email-option-left { display: flex; align-items: center; gap: 12px; }
.ob-email-icon { font-size: 22px; }
.ob-email-option strong { font-size: 14px; color: var(--text); display: block; }
.ob-connected-label { font-size: 12px; color: var(--green); margin-top: 2px; }
.ob-connect-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }
.ob-success-note {
  font-size: 13px;
  color: var(--green);
  padding: 10px 14px;
  background: var(--green-dim);
  border-radius: 7px;
  border: 1px solid rgba(74,222,128,.2);
}

/* Results */
.ob-results-panel { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ob-results-count {
  font-size: 13px;
  color: var(--text2);
  padding: 10px 14px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
}

/* Generated results */
.ob-gen-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.ob-gen-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: var(--bg3);
  border-radius: 7px;
  padding: 8px 12px;
}

/* Navigation */
.ob-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.ob-nav-right { display: flex; align-items: center; gap: 8px; }

/* Ghost button */
.btn-ghost {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text); }

/* Complete screen */
.ob-complete-icon { margin: 16px 0 8px; }
.ob-complete-title { font-size: 24px; font-weight: 700; color: var(--text); margin: 8px 0; }
.ob-complete-msg { font-size: 14px; color: var(--text2); margin-bottom: 16px; line-height: 1.5; }
.ob-complete-btn { padding: 12px 28px; font-size: 15px; margin-top: 16px; }

@media (max-width: 600px) {
  .ob-card { padding: 20px 16px; }
  .ob-form-grid { grid-template-columns: 1fr; }
  #viewOnboarding { padding: 16px 12px 64px; }
}

