/* ============================================================
   LEADHUNT.AI — Ambient UI Design System
   Dark glassmorphic aesthetic with ambient background effects
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

/* ── 1. Design Tokens (CSS Variables) ───────────────────────── */
:root {
  /* Backgrounds */
  --bg-deep:          #07070d;
  --bg-surface:       rgba(255,255,255,0.025);
  --bg-surface-hover: rgba(255,255,255,0.05);
  --bg-input:         rgba(255,255,255,0.035);

  /* Typography */
  --text-primary:   #fafaff;
  --text-secondary: rgba(230,230,245,0.92);
  --text-muted:     rgba(200,200,220,0.65);

  /* Borders */
  --border:       rgba(255,255,255,0.055);
  --border-hover: rgba(255,255,255,0.12);

  /* Semantic/Accent */
  --green:    #34d399;
  --red:      #f87171;
  --blue:     #7eb4ff;
  --lavender: #c4b5fd;
  --amber:    #fbbf24;
  --cyan:     #22d3ee;
  --pink:     #f472b6;

  /* Legacy aliases (for backward compat in templates) */
  --accent:     #7eb4ff;
  --accent-h:   #a3c8ff;
  --text:       #fafaff;
  --text-sm:    rgba(230,230,245,0.92);
  --text-xs:    rgba(200,200,220,0.65);
  --error:      #f87171;
  --success:    #34d399;

  /* Shadows & Radius */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 14px;
  --transition: all 0.35s ease;
}

/* ── 2. Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── 3. Typography ──────────────────────────────────────────── */
h1, h2 {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; color: var(--text-primary); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.2;  color: var(--text-primary); }
h3 { font-size: 1.1rem; font-weight: 600; font-family: 'Syne', sans-serif; letter-spacing: -0.02em; }
p  { line-height: 1.7; color: var(--text-secondary); }

/* ── 4. Ambient Background ──────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ab {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  animation: drift 32s ease-in-out infinite;
}

.ab.a1 {
  width: 700px; height: 500px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  opacity: 0.1;
  top: -15%; left: -10%;
  animation-delay: 0s;
}
.ab.a2 {
  width: 600px; height: 450px;
  background: linear-gradient(135deg, #22d3ee, #34d399);
  opacity: 0.07;
  bottom: -20%; right: -5%;
  animation-delay: -8s;
}
.ab.a3 {
  width: 500px; height: 400px;
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
  opacity: 0.05;
  top: 40%; right: 15%;
  animation-delay: -16s;
}
.ab.a4 {
  width: 450px; height: 350px;
  background: linear-gradient(135deg, #fbbf24, #34d399, #22d3ee);
  opacity: 0.04;
  top: 60%; left: 20%;
  animation-delay: -24s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate(60px, -40px) scale(1.1) rotate(2deg); }
  50%  { transform: translate(-30px, 50px) scale(0.95) rotate(-1deg); }
  75%  { transform: translate(40px, 20px) scale(1.05) rotate(1deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* App shell sits above ambient */
.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

/* ── 5. Aurora Glow — Rainbow Rotating Border ───────────────── */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 180deg;
  inherits: false;
}

@keyframes glowSpin {
  from { --glow-angle: 180deg; }
  to   { --glow-angle: 540deg; }
}

.aurora-glow {
  position: relative;
}
.aurora-glow::before,
.aurora-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--glow-angle),
    #f472b6, #fbbf24, #34d399, #22d3ee, #7eb4ff, #c4b5fd, #f472b6
  );
  animation: glowSpin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.aurora-glow::before {
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
.aurora-glow::after {
  inset: -6px;
  filter: blur(14px);
  opacity: 0 !important;
}
.aurora-glow:hover::before { opacity: 0.5; }
.aurora-glow:hover::after  { opacity: 0 !important; }
.aurora-glow.active::before { opacity: 0.4; }
.aurora-glow.active::after  { opacity: 0 !important; }

/* ── 6. fadeUp Animation ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease-out both;
}

/* Page fade-in */
.fade-in { animation: fadeUp 0.45s ease-out both; }

/* ── 7. Logo ────────────────────────────────────────────────── */
.logo-img    { height: 28px; width: auto; object-fit: contain; display: block; }
.logo-img-xs { height: 22px; width: auto; object-fit: contain; display: block; }
.logo-img-sm { height: 24px; width: auto; object-fit: contain; display: block; }
.logo-img-lg { height: 32px; width: auto; object-fit: contain; display: block; }

/* Logo gradient text style */
.logo-gradient {
  background: linear-gradient(135deg, #e4e4ee, #7eb4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 8. Layout Helpers ──────────────────────────────────────── */
.container    { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* ── 9. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-lg { padding: 8px 44px; min-height: 48px; font-size: 1.05rem; border-radius: var(--radius); }

/* ── 10. Form Inputs ────────────────────────────────────────── */
.input, .oc-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  padding: 14px 18px;
  outline: none;
  transition: var(--transition);
}
.input::placeholder, .oc-input::placeholder { color: var(--text-muted); }
.input:focus, .oc-input:focus {
  border-color: rgba(126,180,255,0.4);
  box-shadow: 0 0 0 3px rgba(126,180,255,0.08);
}

/* ── 11. Surface Cards ──────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  animation: fadeUp 0.5s ease-out both;
}
.card:hover { border-color: var(--border-hover); }

/* ── 12. Error Banner ───────────────────────────────────────── */
.error-banner {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 600px;
  text-align: left;
}

/* ── 13. Step Indicator ─────────────────────────────────────── */
.step-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 40px;
}
.step-dot {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: var(--transition);
}
.step-dot.active { background: var(--blue); }
.step-dot.done   { background: var(--blue); opacity: 0.6; }

/* Interactive step dots */
.step-dot.done {
  cursor: pointer;
  position: relative;
}
.step-dot.done:hover {
  opacity: 1;
  transform: scaleY(1.6);
  box-shadow: 0 0 8px rgba(126,180,255,0.35);
}

/* Step tooltip */
.step-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-family: 'Outfit', sans-serif;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.step-dot.done:hover .step-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Back button */
.step-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 9px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  box-sizing: border-box;
}
.step-back-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── Unified Onboarding Topbar ─────────────────────────────── */
.onb-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,13,0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-shrink: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}
.onb-topbar .logo-img-sm { flex-shrink: 0; }

/* Inline editable field (company name / website URL) */
.onb-field {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem; font-family: 'Outfit', sans-serif;
  padding: 4px 10px;
  outline: none;
  min-width: 80px; max-width: 170px;
  transition: var(--transition);
  flex-shrink: 1;
}
.onb-field:focus {
  border-color: rgba(126,180,255,0.4);
  color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(126,180,255,0.08);
}
.onb-field::placeholder { color: var(--text-muted); }

/* Read-only company name display */
.onb-company-name {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  flex-shrink: 1;
}

.onb-topbar .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.onb-topbar .topbar-actions .step-bar { margin: 0; flex-shrink: 0; }
.onb-topbar .topbar-actions .step-back-btn { flex-shrink: 0; }
.onb-middle { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

/* ============================================================
   SCREEN 1 — Registration / Website Input
   ============================================================ */
.s1-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* s1-nav removed — screens 1+2 now use .onb-topbar */

.s1-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.s1-inner {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s ease-out both;
}

.s1-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.s1-input-group {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.35s ease;
}
.s1-input-group:focus-within {
  border-color: rgba(126,180,255,0.4);
  box-shadow: 0 0 0 3px rgba(126,180,255,0.08);
}

.s1-url-input {
  font-size: 0.92rem;
  padding: 13px 16px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}
.s1-url-input::placeholder { color: var(--text-muted); }
.s1-url-input:focus { box-shadow: none !important; outline: none; }

.s1-attach-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.s1-attach-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.s1-attach-label:hover { color: var(--blue); }
.s1-file-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* s1-cta removed — button now in .onb-topbar */

/* ── File Chips ─────────────────────────────────────────────── */
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(126,180,255,0.1);
  border: 1px solid rgba(126,180,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--blue);
}
.file-chip-x {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.file-chip-x:hover {
  opacity: 1;
}

/* ============================================================
   SCREEN 2 — Loading / Analyzing
   ============================================================ */
.s2-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}

.s2-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.s2-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  animation: drift 32s ease-in-out infinite;
}
.s2-orb-1 {
  width: 500px; height: 500px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  top: -10%; left: -10%;
  opacity: 0.1;
}
.s2-orb-2 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, #c4b5fd, #ec4899);
  bottom: -15%; right: -10%;
  opacity: 0.07;
  animation-delay: -8s;
}
.s2-orb-3 {
  width: 350px; height: 350px;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  top: 30%; right: 20%;
  opacity: 0.05;
  animation-delay: -16s;
}

.s2-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(126,180,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,180,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.s2-scanline {
  position: fixed; left: 0; right: 0; z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126,180,255,0.12), transparent);
  animation: s2-scan 4s linear infinite;
  pointer-events: none;
}
@keyframes s2-scan {
  0%   { top: -2px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

.s2-rings { position: relative; width: 200px; height: 200px; margin: 0 auto 40px; z-index: 1; }
.s2-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  transform: translate(-50%,-50%);
}
.s2-ring-1 {
  width: 200px; height: 200px;
  border: 1px solid rgba(126,180,255,0.1);
  animation: s2-ring-rotate 20s linear infinite;
  background: conic-gradient(from 0deg, transparent, rgba(126,180,255,0.06), transparent, rgba(196,181,253,0.04), transparent);
}
.s2-ring-2 {
  width: 140px; height: 140px;
  border: 1px solid rgba(126,180,255,0.15);
  animation: s2-ring-rotate 12s linear infinite reverse;
  background: conic-gradient(from 90deg, transparent, rgba(34,211,238,0.06), transparent, rgba(126,180,255,0.04), transparent);
}
.s2-ring-3 {
  width: 90px; height: 90px;
  border: 1px solid rgba(126,180,255,0.2);
  animation: s2-ring-rotate 8s linear infinite;
  box-shadow: 0 0 30px rgba(126,180,255,0.05), inset 0 0 20px rgba(126,180,255,0.05);
}
@keyframes s2-ring-rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }

.s2-ring-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #7eb4ff, #c4b5fd);
  animation: s2-core-pulse 2s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
.s2-core-inner {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(7,7,13,0.4);
  animation: s2-core-inner-pulse 2s ease-in-out infinite 0.3s;
}
@keyframes s2-core-pulse {
  0%,100% { box-shadow: 0 0 20px rgba(126,180,255,0.2), 0 0 60px rgba(126,180,255,0.1); }
  50%     { box-shadow: 0 0 40px rgba(126,180,255,0.35), 0 0 100px rgba(196,181,253,0.15); }
}
@keyframes s2-core-inner-pulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%     { transform: scale(0.7); opacity: 0.8; }
}

.s2-orbit-path { position: absolute; top: 50%; left: 50%; border-radius: 50%; transform-origin: center; }
.s2-orbit-1 { width: 160px; height: 160px; margin-top: -80px; margin-left: -80px; animation: s2-orbit-spin 5s linear infinite; }
.s2-orbit-2 { width: 110px; height: 110px; margin-top: -55px; margin-left: -55px; animation: s2-orbit-spin 3.5s linear infinite reverse; }
@keyframes s2-orbit-spin { to { transform: rotate(360deg); } }

.s2-dot {
  position: absolute; top: 0; left: 50%;
  width: 6px; height: 6px; margin-left: -3px; margin-top: -3px;
  border-radius: 50%;
  background: #7eb4ff;
  box-shadow: 0 0 8px #7eb4ff, 0 0 20px rgba(126,180,255,0.3);
}
.s2-orbit-2 .s2-dot {
  background: #c4b5fd;
  box-shadow: 0 0 8px #c4b5fd, 0 0 20px rgba(196,181,253,0.3);
  width: 5px; height: 5px;
}

.s2-inner { position: relative; z-index: 1; width: 100%; max-width: 500px; }
.s2-logo  { margin-bottom: 32px; }

.s2-pct-wrap { margin-bottom: 8px; line-height: 1; }
.s2-pct {
  font-size: 3.2rem; font-weight: 800;
  font-family: 'Syne', sans-serif;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #7eb4ff, #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-variant-numeric: tabular-nums;
}
.s2-pct-sign {
  font-size: 1.4rem; font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.s2-status {
  font-size: 0.88rem; color: var(--text-secondary);
  margin-bottom: 20px; min-height: 22px;
  transition: all 0.3s ease; letter-spacing: 0.01em;
}

.s2-steps { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.s2-pill {
  font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.s2-pill.active {
  border-color: rgba(126,180,255,0.3);
  color: var(--blue);
  background: rgba(126,180,255,0.06);
}

.s2-progress { width: 100%; position: relative; }
.s2-progress-track {
  width: 100%; height: 3px;
  background: var(--border);
  border-radius: 2px; overflow: visible; position: relative;
}
.s2-progress-fill {
  height: 100%; width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, #7eb4ff, #c4b5fd);
  transition: width 0.1s linear;
  position: relative;
}
.s2-progress-glow {
  position: absolute; top: -4px; left: 0%;
  width: 12px; height: 12px; border-radius: 50%;
  background: #7eb4ff;
  box-shadow: 0 0 12px rgba(126,180,255,0.5), 0 0 30px rgba(126,180,255,0.2);
  transform: translateX(-50%);
  transition: left 0.1s linear; opacity: 0.8;
}

/* Particle system */
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(126,180,255,0.4);
  animation: particle-float 5s ease-out forwards;
}
@keyframes particle-float {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* ============================================================
   SCREEN 3 — Value Proposition Results
   ============================================================ */
.s3-page {
  min-height: 100vh;
  padding: 0;
  position: relative;
}

/* s3-topbar removed — uses .onb-topbar */
.s3-field-group { display: flex; align-items: center; gap: 8px; }
.s3-field-label {
  font-size: 0.62rem; font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.s3-field-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem; font-family: 'Outfit', sans-serif; font-weight: 500;
  padding: 4px 0; outline: none;
  min-width: 160px;
  transition: var(--transition);
}
.s3-field-input:focus { border-bottom-color: rgba(126,180,255,0.4); }

.s3-attach-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem; font-family: 'Outfit', sans-serif;
  padding: 8px 16px; min-height: 36px; box-sizing: border-box;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.s3-attach-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.s3-attach-btn.has-files {
  border-color: var(--accent);
  color: var(--accent);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3-regen-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.78rem;
  padding: 8px 16px; min-height: 36px; box-sizing: border-box;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.s3-regen-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.s3-regen-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.s3-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 40px;
}

.s3-heading-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 8px;
}
.s3-heading-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0;
}
.s3-title {
  font-size: 1.6rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  color: var(--text-primary);
}
.s3-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Cards grid */
.vp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 18px;
}

.vp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  position: relative;
  display: flex; flex-direction: column;
  max-height: 420px;
  animation: fadeUp 0.5s ease-out both;
}
.vp-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.02); }
.vp-card.editing {
  border-color: rgba(126,180,255,0.4);
  box-shadow: 0 0 0 3px rgba(126,180,255,0.08);
}

.vp-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-shrink: 0;
}
.vp-card-title {
  font-size: 0.72rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue);
}
.vp-edit-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer; padding: 4px 8px; min-height: 28px; box-sizing: border-box;
  font-size: 0.75rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.vp-edit-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.vp-edit-btn.done-btn { border-color: rgba(126,180,255,0.4); color: var(--blue); }

.vp-card-body {
  font-size: 0.85rem; line-height: 1.8;
  color: var(--text-secondary);
  flex: 1; overflow-y: auto; padding-right: 6px;
}
.vp-card-body::-webkit-scrollbar { width: 4px; }
.vp-card-body::-webkit-scrollbar-track { background: transparent; }
.vp-card-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.vp-card-body h3 {
  font-size: 0.8rem; font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--text-primary);
  margin: 14px 0 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.vp-card-body h3:first-child { margin-top: 0; }
.vp-card-body p { margin-bottom: 10px; color: var(--text-secondary); }
.vp-card-body p:last-child { margin-bottom: 0; }
.vp-card-body ul, .vp-card-body ol { padding-left: 18px; margin-bottom: 10px; }
.vp-card-body li { margin-bottom: 6px; padding-left: 4px; }
.vp-card-body li::marker { color: var(--blue); }
.vp-card-body strong, .vp-card-body b { color: var(--text-primary); font-weight: 600; }
.vp-card-body em { color: var(--blue); font-style: normal; font-weight: 500; }
.vp-card-body hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* Typing / generating state */
.type-text { color: var(--text-secondary); }

/* Aurora pulsating border while AI is generating */
@keyframes auroraPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.aurora-glow.generating::before {
  opacity: 0.35;
  animation: glowSpin 4s linear infinite;
}
.aurora-glow.generating::after {
  opacity: 0 !important;
}

/* Aurora cursor (rainbow cycling + breathing) */
@keyframes cursorRainbow {
  0%   { background: #f87171; }
  14%  { background: #fbbf24; }
  28%  { background: #34d399; }
  42%  { background: #22d3ee; }
  57%  { background: #7eb4ff; }
  71%  { background: #c4b5fd; }
  85%  { background: #f472b6; }
  100% { background: #f87171; }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursorRainbow 3s linear infinite, cursorBlink 1s ease-in-out infinite;
  border-radius: 2px;
}

.card-waiting { display: flex; align-items: center; gap: 5px; padding: 8px 0; }
.waiting-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); opacity: 0.25;
  animation: waiting-pulse 1.2s ease-in-out infinite;
}
.waiting-dot:nth-child(2) { animation-delay: 0.2s; }
.waiting-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes waiting-pulse {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.6;  transform: scale(1); }
}

/* ── Progress bar component ─────────────────────────────────── */
.progress-container {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; max-width: 340px;
  margin: 0 auto; padding: 24px 0;
  animation: fadeUp 0.4s ease-out both;
}
.progress-container.hidden { display: none; }
.progress-status {
  font-size: 0.82rem; color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  min-height: 1.2em;
}
.progress-bar-row {
  display: flex; align-items: center; gap: 10px;
}
.progress-bar-track {
  flex: 1; height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 3px;
  transition: width 0.4s ease;
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: progress-shimmer 1.8s ease-in-out infinite;
}
@keyframes progress-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.progress-percentage {
  font-size: 0.72rem; color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  min-width: 32px; text-align: right;
  font-variant-numeric: tabular-nums;
}

.vp-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem; font-family: 'Outfit', sans-serif;
  line-height: 1.75; resize: vertical;
  min-height: 120px; padding: 10px 12px;
  border-radius: var(--radius-sm);
  flex: 1;
}
.vp-textarea:focus { border-color: rgba(126,180,255,0.4); }

/* ============================================================
   SCREEN 4 — Ideal Customer Profile
   ============================================================ */
.s4-page {
  min-height: 100vh;
  padding-bottom: 40px;
  position: relative;
}

/* s4-topbar removed — uses .onb-topbar */

.s4-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px 40px;
}
.s4-title {
  font-size: 1.6rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.s4-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.icp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.icp-col-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  animation: fadeUp 0.5s ease-out both;
}
.icp-col-title {
  font-size: 0.72rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue); margin-bottom: 20px;
}

.icp-section { margin-bottom: 24px; }
.icp-section:last-child { margin-bottom: 0; }
.icp-section-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(126,180,255,0.08);
  border: 1px solid rgba(126,180,255,0.12);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.82rem; color: var(--blue);
  transition: var(--transition);
}
.chip-x {
  background: none; border: none; color: var(--blue);
  cursor: pointer; font-size: 1rem; line-height: 1;
  opacity: 0.55; padding: 0; display: flex; align-items: center;
  transition: var(--transition);
}
.chip-x:hover { opacity: 1; color: var(--red); }

.chip-enter {
  opacity: 0; transform: translateY(8px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chip-enter.chip-visible { opacity: 1; transform: translateY(0) scale(1); }

.chip-waiting { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; }

.chip-add-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent;
  border: 1px dashed var(--border-hover);
  border-radius: 20px;
  padding: 4px 12px; min-height: 28px; box-sizing: border-box;
  font-size: 0.8rem; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}
.chip-add-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* Dropdown chip selector */
.chip-dropdown-wrap { position: relative; display: inline-flex; }

.chip-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px); left: 0; z-index: 50;
  width: 260px; max-height: 300px;
  background: rgba(12,12,20,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden; flex-direction: column;
}
.chip-dropdown.open { display: flex; }

.chip-dropdown-search {
  width: 100%; padding: 10px 12px;
  background: transparent; border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.82rem; font-family: 'Outfit', sans-serif;
  outline: none;
}
.chip-dropdown-search::placeholder { color: var(--text-muted); }

.chip-dropdown-options { overflow-y: auto; max-height: 248px; padding: 4px 0; }
.chip-dropdown-options::-webkit-scrollbar { width: 4px; }
.chip-dropdown-options::-webkit-scrollbar-track { background: transparent; }
.chip-dropdown-options::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chip-dropdown-option {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  font-size: 0.82rem; color: var(--text-secondary);
  cursor: pointer; border-radius: 7px; margin: 0 4px;
  transition: background 0.12s ease;
}
.chip-dropdown-option:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.chip-dropdown-option.selected { color: var(--blue); background: rgba(126,180,255,0.1); }
.chip-dropdown-option.selected:hover { background: rgba(255,80,80,0.08); color: var(--red); }

.chip-dropdown-check { width: 16px; text-align: center; font-size: 0.75rem; flex-shrink: 0; }
.chip-dropdown-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-dropdown-empty { padding: 12px; text-align: center; color: var(--text-muted); font-size: 0.8rem; font-style: italic; }

/* Legacy inline input */
.chip-input-wrap { display: none; align-items: center; gap: 6px; }
.chip-input-wrap.visible { display: inline-flex; }
.chip-input {
  background: var(--bg-input); border: 1px solid var(--blue);
  border-radius: 20px; padding: 5px 12px;
  font-size: 0.82rem; color: var(--text-primary);
  font-family: 'Outfit', sans-serif; outline: none; width: 160px;
}

/* ── Topbar save/continue button ────────────────────────────── */
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-save-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; min-height: 36px; box-sizing: border-box;
  border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}
.topbar-save-btn:hover:not(:disabled) { border-color: var(--border-hover); }
.topbar-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.topbar-save-feedback { font-size: 0.78rem; color: var(--blue); opacity: 0; transition: opacity 0.3s; }
.topbar-save-feedback.visible { opacity: 1; }

/* ============================================================
   SCREEN 5 — Communication Strategies
   ============================================================ */
.s5-page { min-height: 100vh; padding-bottom: 40px; }

/* s5-topbar removed — uses .onb-topbar */

.s5-content { padding: 16px 28px 24px; }

.s5-title {
  font-size: 1.25rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.s5-subtitle { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 18px; }

/* Horizontal scroll track */
.strategies-outer {
  overflow-x: auto; padding-top: 10px; cursor: grab;
  transform: rotateX(180deg);           /* flip so scrollbar sits on top */
}
.strategies-outer:active { cursor: grabbing; }
.strategies-outer::-webkit-scrollbar { height: 4px; }
.strategies-outer::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.strategies-outer::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }

.strategies-track {
  display: flex; gap: 14px; width: max-content; padding: 2px 2px 4px;
  transform: rotateX(180deg);           /* flip content back to normal */
}

.strategy-wrap { flex: 0 0 620px; display: flex; flex-direction: column; }
.strat-delete-btn {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.68rem; font-family: 'Outfit', sans-serif;
  padding: 4px 8px; min-height: 28px; box-sizing: border-box;
  margin-bottom: 6px; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.strat-delete-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

.strategy-col {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column;
  transition: border-color 0.35s;
  animation: fadeUp 0.5s ease-out both;
}
.strategy-col:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.02); }

.strategy-col.add-col {
  border-style: dashed;
  background: transparent;
  align-items: center; justify-content: center;
  min-height: 200px; cursor: pointer;
  transition: var(--transition);
}
.strategy-col.add-col:hover { border-color: var(--blue); background: rgba(126,180,255,0.02); }

.add-col-icon {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.2rem;
  margin-bottom: 8px; transition: var(--transition);
}
.strategy-col.add-col:hover .add-col-icon { border-color: var(--blue); color: var(--blue); }
.add-col-label { font-size: 0.72rem; color: var(--text-muted); transition: var(--transition); }
.strategy-col.add-col:hover .add-col-label { color: var(--text-secondary); }

.strategy-name-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.82rem; font-weight: 600; font-family: 'Outfit', sans-serif;
  padding: 0 0 10px; margin-bottom: 16px; outline: none; line-height: 1.4;
}
.strategy-name-input:focus { border-bottom-color: var(--blue); }

/* Strategy header colors */
.strategy-col[data-color="0"] .strategy-name-input { color: var(--amber); border-bottom-color: rgba(251,191,36,0.25); }
.strategy-col[data-color="0"] .strategy-name-input:focus { border-bottom-color: var(--amber); }
.strategy-col[data-color="1"] .strategy-name-input { color: var(--lavender); border-bottom-color: rgba(196,181,253,0.25); }
.strategy-col[data-color="1"] .strategy-name-input:focus { border-bottom-color: var(--lavender); }
.strategy-col[data-color="2"] .strategy-name-input { color: var(--green); border-bottom-color: rgba(52,211,153,0.25); }
.strategy-col[data-color="2"] .strategy-name-input:focus { border-bottom-color: var(--green); }
.strategy-col[data-color="3"] .strategy-name-input { color: var(--red); border-bottom-color: rgba(248,113,113,0.25); }
.strategy-col[data-color="3"] .strategy-name-input:focus { border-bottom-color: var(--red); }
.strategy-col[data-color="4"] .strategy-name-input { color: var(--cyan); border-bottom-color: rgba(34,211,238,0.25); }
.strategy-col[data-color="4"] .strategy-name-input:focus { border-bottom-color: var(--cyan); }
.strategy-col[data-color="5"] .strategy-name-input { color: var(--pink); border-bottom-color: rgba(244,114,182,0.25); }
.strategy-col[data-color="5"] .strategy-name-input:focus { border-bottom-color: var(--pink); }

.strat-label {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin: 14px 0 7px;
}
.strat-label:first-of-type { margin-top: 0; }

.conn-req-empty {
  font-size: 0.78rem; color: var(--text-muted); font-style: italic;
  padding: 9px 11px;
  background: var(--bg-input);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  min-height: 36px;
}

.wait-row {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 10px 0;
}
.wait-lbl { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.wait-input {
  flex: 1; background: transparent; border: none;
  border-bottom: 1px dashed var(--border-hover);
  color: var(--text-secondary); font-size: 0.78rem; font-family: 'Outfit', sans-serif;
  padding: 1px 3px; outline: none; min-width: 0;
}
.wait-input:focus { border-bottom-color: var(--blue); }
.wait-update-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-muted);
  font-size: 0.68rem; font-family: 'Outfit', sans-serif;
  padding: 4px 8px; min-height: 28px; box-sizing: border-box;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center;
}
.wait-update-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.wait-update-btn.ok { border-color: var(--green); color: var(--green); }

.msg-block { margin-bottom: 2px; }
.msg-content-row { display: flex; gap: 8px; align-items: flex-start; }
.msg-content-row > .msg-template-wrap,
.msg-content-row > .msg-textarea { flex: 1; min-width: 0; }
.msg-content-row > .msg-outcome-wrap { flex: 1; min-width: 0; }

.msg-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}

.msg-lbl {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-secondary);
}

.msg-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}

.msg-template-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}
.msg-edit-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-muted);
  cursor: pointer; padding: 4px 8px; min-height: 28px; box-sizing: border-box;
  font-size: 0.68rem; font-family: 'Outfit', sans-serif;
  display: flex; align-items: center; gap: 3px;
  transition: var(--transition);
}
.msg-edit-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.msg-edit-btn.done { border-color: var(--blue); color: var(--blue); }

.msg-body {
  background: var(--bg-input);
  border: 1px solid rgba(52,211,153,0.18);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8rem; line-height: 1.7;
  color: var(--text-secondary); white-space: pre-line;
  min-height: 52px;
}
.msg-body:hover { border-color: var(--border-hover); }
.var-blue { color: var(--blue); font-weight: 500; }

.msg-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(126,180,255,0.4);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem; font-family: 'Outfit', sans-serif;
  line-height: 1.7; padding: 10px 12px;
  resize: vertical; outline: none; min-height: 90px;
}

.s5-tailoring-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; margin-bottom: 18px;
  font-size: 0.82rem; color: var(--blue);
  background: rgba(126,180,255,0.04);
  border: 1px solid rgba(126,180,255,0.1);
  border-radius: var(--radius);
  opacity: 1; transition: opacity 0.6s ease;
}
.s5-tailoring-banner.hidden { opacity: 0; pointer-events: none; height: 0; padding: 0; margin: 0; overflow: hidden; }
.s5-tailoring-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(126,180,255,0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* msg-body generating state handled by .aurora-glow.generating */

/* ── Screen 5 — Strategy Description (collapsible) ────────── */

.strat-desc {
  margin-bottom: 12px;
}

.strat-desc-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.strat-desc-toggle:hover { color: var(--text-secondary); }

.strat-desc-arrow {
  font-size: 0.6rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.strat-desc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
  margin-top: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 10px;
}

.strat-desc.expanded .strat-desc-body {
  max-height: 400px;
  opacity: 1;
  margin-top: 6px;
  border-color: var(--border);
  padding: 10px;
}

.strat-desc-text {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.strat-desc-text:last-child { margin-bottom: 0; }

.strat-desc-label {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Screen 5 — Inline AI Outcome ──────────────────────────── */

.s5-name-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}
.s5-name-row .strategy-name-input {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.s5-prospect-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-family: 'Outfit', sans-serif;
  padding: 4px 8px; min-height: 28px; box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  margin-bottom: 2px;
  display: inline-flex; align-items: center;
}
.s5-prospect-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* AI Outcome wrapper + box (sits beside the message template) */
.msg-outcome-wrap { }

.msg-outcome {
  background: var(--bg-input);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.msg-outcome-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.msg-outcome-body {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
  word-break: break-word;
}

.ai-highlight {
  color: var(--blue);
  font-weight: 500;
}

.s5-preview-spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 6px 0;
}
.s5-preview-spinner .s5-tailoring-spinner {
  width: 12px;
  height: 12px;
}

.s5-preview-error {
  font-size: 0.72rem;
  color: var(--red);
}

/* ============================================================
   SCREEN 6 — Sending Schedule
   ============================================================ */
.s6-page { display: flex; flex-direction: column; min-height: 100vh; }

/* s6-topbar removed — uses .onb-topbar */

.s6-content {
  flex: 1; max-width: 900px; width: 100%;
  margin: 0 auto; padding: 36px 24px 120px;
  display: flex; flex-direction: column; gap: 20px;
}

.s6-title {
  font-size: 1.5rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-primary); margin-bottom: 6px;
}
.s6-subtitle { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 24px; }

.s6-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Toggle rows */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-label { font-size: 0.9rem; color: var(--text-primary); }

.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-hover);
  border-radius: 24px; cursor: pointer;
  transition: background 0.2s ease;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s ease;
}
.toggle-switch input:checked + .toggle-slider { background: var(--blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Schedule table */
.sch-header {
  display: grid;
  grid-template-columns: 1fr 60px 110px 110px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.62rem; font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; gap: 8px;
}

.sch-row {
  display: grid;
  grid-template-columns: 1fr 60px 110px 110px;
  align-items: center;
  padding: 9px 20px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  transition: opacity 0.15s ease;
}
.sch-row:last-child { border-bottom: none; }
.sch-row.disabled { opacity: 0.38; }

.sch-day { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; }
.sch-en { display: flex; justify-content: center; align-items: center; }
.sch-checkbox { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

.sch-time {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem; font-family: 'Outfit', sans-serif;
  padding: 6px 10px; width: 100%; outline: none;
  transition: border-color 0.35s ease;
}
.sch-time:focus { border-color: rgba(126,180,255,0.4); }
.sch-row.disabled .sch-time { pointer-events: none; }

.s6-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.s6-col { display: flex; flex-direction: column; gap: 14px; }
.s6-toggle-row {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
@media (max-width: 768px) { .s6-cols { grid-template-columns: 1fr; } }

.s6-field { display: flex; flex-direction: column; gap: 8px; }
.s6-lbl {
  font-size: 0.62rem; font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.s6-select, .s6-number {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem; font-family: 'Outfit', sans-serif;
  padding: 10px 14px; outline: none; width: 100%;
  transition: border-color 0.35s ease;
  -webkit-appearance: none; appearance: none;
}
.s6-number:focus {
  border-color: rgba(126,180,255,0.4);
  box-shadow: 0 0 0 3px rgba(126,180,255,0.08);
}

/* ── Custom Select (.oc-select) ─────────────────────────────── */
.oc-select { position: relative; display: inline-flex; width: 100%; }
.oc-select-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 14px; cursor: pointer;
  font-size: 0.88rem; font-family: 'Outfit', sans-serif; color: var(--text-primary);
  transition: var(--transition);
}
.oc-select-trigger:hover { border-color: var(--border-hover); background: var(--bg-surface-hover); }
.oc-select.open .oc-select-trigger {
  border-color: rgba(126,180,255,0.4);
  box-shadow: 0 0 0 3px rgba(126,180,255,0.08);
}
.oc-select-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-select-arrow {
  font-size: 0.7rem; color: var(--text-muted);
  transition: transform 0.25s ease;
}
.oc-select.open .oc-select-arrow { transform: rotate(180deg); }
.oc-select-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: rgba(12,12,20,0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 10px;
  max-height: 220px; overflow-y: auto; z-index: 50;
  animation: menuFadeIn 0.18s ease-out;
}
.oc-select.open .oc-select-menu { display: block; }
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.oc-select-search {
  display: block; width: calc(100% - 16px); margin: 8px; padding: 6px 10px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 7px;
  color: var(--text-primary); font-size: 0.8rem; font-family: 'Outfit', sans-serif;
  outline: none;
}
.oc-select-search:focus { border-color: rgba(126,180,255,0.4); }
.oc-select-search::placeholder { color: var(--text-muted); }
.oc-select-option {
  padding: 7px 10px; font-size: 0.82rem; color: var(--text-secondary);
  border-radius: 7px; margin: 2px 4px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.oc-select-option:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.oc-select-option.selected { background: rgba(126,180,255,0.1); color: var(--blue); }
.oc-select-menu::-webkit-scrollbar { width: 4px; }
.oc-select-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.oc-select-menu::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   SCREENS 7 & 8 — Connect pages (shared)
   ============================================================ */
.connect-page { display: flex; flex-direction: column; min-height: 100vh; }

/* connect-topbar removed — uses .onb-topbar */

.connect-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px 120px; gap: 20px;
  max-width: 480px; width: 100%; margin: 0 auto;
}

.connect-icon {
  width: 72px; height: 72px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 0.5s ease-out both;
}

.connect-title {
  font-size: 1.5rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-primary); text-align: center;
}

.connect-subtitle {
  font-size: 0.88rem; color: var(--text-secondary);
  text-align: center; max-width: 380px; line-height: 1.65;
}

.btn-linkedin {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-surface); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 16px; min-height: 40px; box-sizing: border-box;
  font-size: 0.92rem; font-weight: 600; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: var(--transition);
}
.btn-linkedin:hover { border-color: var(--border-hover); }
.btn-linkedin:disabled { opacity: 0.6; cursor: not-allowed; }

.connected-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.9rem; color: var(--green); font-weight: 500;
}

.btn-provider-disconnect {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 8px 16px; min-height: 36px; box-sizing: border-box;
  font-size: 0.78rem; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: var(--transition);
  margin-top: 8px;
  display: inline-flex; align-items: center;
}
.btn-provider-disconnect:hover { border-color: var(--border-hover); color: var(--text-primary); }

.connect-skip-link {
  font-size: 0.8rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.35s ease;
}
.connect-skip-link:hover { color: var(--blue); }

/* Chrome extension steps */
.chrome-ext-steps { width: 100%; display: flex; flex-direction: column; }
.chrome-ext-step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.chrome-ext-step:last-child { border-bottom: none; }

.chrome-ext-step-num {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
}
.chrome-ext-step-content { flex: 1; }
.chrome-ext-step-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.chrome-ext-step-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }

.btn-chrome-ext {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-surface); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 16px; min-height: 40px; box-sizing: border-box;
  font-size: 0.82rem; font-weight: 600; font-family: 'Outfit', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: var(--transition);
}
.btn-chrome-ext:hover { border-color: var(--border-hover); }

/* LinkedIn profile card */
.linkedin-profile-card {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}

.linkedin-profile-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.linkedin-profile-photo.placeholder {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.linkedin-profile-info { flex: 1; min-width: 0; }
.linkedin-profile-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.linkedin-profile-headline { font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Calendar buttons */
.calendar-connections-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.calendar-connection-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
}
.calendar-provider-icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.calendar-connection-info { flex: 1; min-width: 0; }
.calendar-provider-name { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.calendar-email { display: block; font-size: 0.78rem; color: var(--text-secondary); }

.calendar-buttons { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.btn-calendar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 8px 16px; min-height: 40px; box-sizing: border-box;
  border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.btn-calendar:hover { border-color: var(--border-hover); }

/* ============================================================
   SCREEN 9 — Campaign Dashboard
   ============================================================ */
.dash-page { display: flex; flex-direction: column; min-height: 100vh; }

/* dash-topbar removed — uses .onb-topbar */
.dash-topbar-right { display: flex; align-items: center; gap: 12px; }

.dash-status-pill {
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  display: flex; align-items: center; gap: 7px;
  letter-spacing: 0.03em;
}
.dash-status-pill.running {
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.2);
  color: var(--green);
}
.dash-status-pill.ready {
  background: rgba(126,180,255,0.06);
  border: 1px solid rgba(126,180,255,0.15);
  color: var(--blue);
}
.dash-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.dash-content {
  flex: 1; max-width: 860px; width: 100%;
  margin: 0 auto; padding: 36px 24px 64px;
  display: flex; flex-direction: column; gap: 12px;
}

/* Hero banner */
.dash-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  animation: fadeUp 0.5s ease-out both;
}
.dash-hero.launched { border-color: rgba(52,211,153,0.15); background: rgba(52,211,153,0.02); }

.dash-hero-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(126,180,255,0.06);
  border: 1px solid rgba(126,180,255,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-hero-icon.launched { background: rgba(52,211,153,0.06); border-color: rgba(52,211,153,0.15); }

.dash-hero-title {
  font-size: 1.1rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: var(--text-primary); margin-bottom: 4px;
}
.dash-hero-sub { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.5; }

.btn-launch {
  margin-left: auto; flex-shrink: 0;
  background: var(--bg-surface); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 16px; min-height: 36px; box-sizing: border-box;
  font-size: 0.9rem; font-weight: 700; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
  display: inline-flex; align-items: center;
}
.btn-launch:hover { border-color: var(--border-hover); }
.btn-launch:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-pause {
  margin-left: auto; flex-shrink: 0;
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px; min-height: 36px; box-sizing: border-box;
  font-size: 0.85rem; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
  display: inline-flex; align-items: center;
}
.btn-pause:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* Campaign name */
.campaign-name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.campaign-name-input {
  flex: 1; background: transparent; border: none;
  border-bottom: 2px solid var(--border);
  color: var(--text-primary);
  font-size: 1.4rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
  padding: 8px 4px; outline: none;
  transition: border-color 0.35s ease;
}
.campaign-name-input:focus { border-color: rgba(126,180,255,0.4); }
.campaign-name-input::placeholder { color: var(--text-muted); }

.campaign-name-save {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 8px 16px; min-height: 36px; box-sizing: border-box;
  font-size: 0.82rem; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center;
}
.campaign-name-save:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* Metrics row */
.dash-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  animation: fadeUp 0.5s ease-out both;
}
.metric-value {
  font-size: 1.6rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: var(--text-primary); line-height: 1; margin-bottom: 6px;
}
.metric-label {
  font-size: 0.62rem; font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Two-column dashboard body */
.dash-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px; }

.dash-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.dash-panel-title {
  font-size: 0.72rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.dash-edit-link {
  font-size: 0.75rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.35s ease;
}
.dash-edit-link:hover { color: var(--blue); }

/* Strategies list */
.dash-strategies-list {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dash-strat-row {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.dash-strat-row:last-child { border-bottom: none; }

.dash-strat-info { flex: 1; min-width: 0; }
.dash-strat-name {
  font-size: 0.85rem; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.dash-strat-meta { font-size: 0.73rem; color: var(--text-muted); margin-top: 2px; display: block; }

.dash-strat-stats { display: flex; gap: 20px; flex-shrink: 0; }
.dash-strat-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stat-num { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.stat-lbl { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Setup list */
.dash-setup-list {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.setup-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.setup-row:last-child { border-bottom: none; }
.setup-row.done .setup-icon { color: var(--green); }
.setup-row.warn .setup-icon { color: var(--amber); }

.setup-icon { flex-shrink: 0; }
.setup-info { flex: 1; }
.setup-name { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); display: block; }
.setup-sub { font-size: 0.73rem; color: var(--text-muted); display: block; margin-top: 1px; }
.setup-sub.ok { color: var(--green); }

.integration-logo-sm {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .dash-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
  .dash-hero { flex-wrap: wrap; }
  .btn-launch, .btn-pause { margin-left: 0; width: 100%; }
}

/* ============================================================
   Screen 2 — Agent Naming
   ============================================================ */
.naming-page {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.naming-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.naming-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 520px; padding: 40px 24px;
}
.naming-logo { margin-bottom: 16px; }
.naming-content {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; align-items: center;
  animation: fadeUp 0.5s ease-out both;
}
.naming-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(126,180,255,0.06);
  border: 1px solid rgba(126,180,255,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.naming-title {
  font-size: 1.35rem; font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: var(--text-primary); margin-bottom: 8px; text-align: center;
}
.naming-sub { font-size: 0.85rem; color: var(--text-secondary); text-align: center; line-height: 1.6; margin-bottom: 24px; max-width: 380px; }
.naming-input-wrap { display: flex; width: 100%; gap: 8px; margin-bottom: 6px; }
.naming-input {
  flex: 1; padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem; font-family: 'Outfit', sans-serif;
  outline: none; transition: border-color 0.35s;
}
.naming-input:focus { border-color: rgba(126,180,255,0.4); box-shadow: 0 0 0 3px rgba(126,180,255,0.08); }
.naming-input::placeholder { color: var(--text-muted); }

.naming-random-btn {
  width: 40px; height: 40px; min-height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer;
  transition: var(--transition);
  box-sizing: border-box;
}
.naming-random-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

.naming-meta { width: 100%; display: flex; justify-content: flex-end; padding: 0 2px; margin-bottom: 4px; }
.naming-char-count { font-size: 0.72rem; color: var(--text-muted); }
.naming-error { width: 100%; font-size: 0.78rem; color: var(--red); min-height: 20px; opacity: 0; transition: opacity 0.2s; margin-bottom: 8px; }
.naming-error.visible { opacity: 1; }

.naming-continue-btn {
  width: 100%; padding: 8px 16px; min-height: 40px; box-sizing: border-box;
  background: var(--bg-surface); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 650; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: var(--transition); margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.naming-continue-btn:hover { border-color: var(--border-hover); }
.naming-continue-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.naming-progress-hint { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.76rem; color: var(--text-muted); }
.naming-progress-spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(126,180,255,0.12);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.naming-progress-pct { color: var(--blue); font-weight: 500; font-size: 0.76rem; }

@media (max-width: 540px) {
  .naming-content { padding: 28px 20px 24px; }
  .naming-inner { max-width: 100%; }
}

/* ============================================================
   Screen 4 — Target Verticals
   ============================================================ */
.verticals-section { margin-bottom: 36px; }

#verticals-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { #verticals-list { grid-template-columns: 1fr; } }

.section-heading {
  font-size: 1rem; font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--text-primary); margin-bottom: 16px;
}

.vertical-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.35s ease;
  animation: fadeUp 0.5s ease-out both;
  border-left: 3px solid var(--border);
}
.vertical-card.accent-blue    { border-left-color: var(--blue); }
.vertical-card.accent-green   { border-left-color: var(--green); }
.vertical-card.accent-lavender{ border-left-color: var(--lavender); }
.vertical-card.accent-amber   { border-left-color: var(--amber); }
.vertical-card.accent-cyan    { border-left-color: var(--cyan); }
.vertical-card.accent-pink    { border-left-color: var(--pink); }
.vertical-card.accent-red     { border-left-color: var(--red); }

.vertical-card.accent-blue    .vertical-name-input { color: var(--blue); }
.vertical-card.accent-green   .vertical-name-input { color: var(--green); }
.vertical-card.accent-lavender .vertical-name-input { color: var(--lavender); }
.vertical-card.accent-amber   .vertical-name-input { color: var(--amber); }
.vertical-card.accent-cyan    .vertical-name-input { color: var(--cyan); }
.vertical-card.accent-pink    .vertical-name-input { color: var(--pink); }
.vertical-card.accent-red     .vertical-name-input { color: var(--red); }
.vertical-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.02); }

.vertical-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.vertical-name-input {
  flex: 1; background: transparent; border: none;
  color: var(--text-primary);
  font-size: 1rem; font-weight: 600; font-family: 'Outfit', sans-serif;
  outline: none;
}
.vertical-name-input::placeholder { color: var(--text-muted); }

.vertical-remove-btn {
  background: transparent; border: none;
  color: var(--text-muted);
  font-size: 1.3rem; cursor: pointer;
  padding: 4px 8px; min-height: 28px; box-sizing: border-box;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-flex; align-items: center;
}
.vertical-remove-btn:hover { color: var(--red); background: rgba(248,113,113,0.08); }

.vertical-card-body { padding: 16px 18px; }
.vertical-field { margin-bottom: 14px; }
.vertical-field-label {
  display: block; font-size: 0.62rem; font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--text-secondary);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em;
}

.vertical-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem; font-family: 'Outfit', sans-serif;
  padding: 9px 14px; outline: none;
  resize: vertical; min-height: 80px;
  transition: border-color 0.35s ease;
}
.vertical-textarea:focus { border-color: rgba(126,180,255,0.4); }
.vertical-textarea::placeholder { color: var(--text-muted); }

.add-vertical-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px dashed var(--border-hover);
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: 8px 16px; min-height: 40px; box-sizing: border-box;
  font-size: 0.88rem; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: var(--transition);
  margin-bottom: 28px;
}
.add-vertical-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .vp-grid { grid-template-columns: 1fr; }
  .onb-topbar { padding: 10px 16px; gap: 10px; }
  .s3-content { padding: 28px 16px; }
  .icp-cols { grid-template-columns: 1fr; }
  .s4-content { padding: 24px 16px 40px; }
}

/* ── Gradient text utility ──────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #7eb4ff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Staggered fadeUp delays for cards ──────────────────────── */
.vp-card:nth-child(1) { animation-delay: 0s; }
.vp-card:nth-child(2) { animation-delay: 0.05s; }
.vp-card:nth-child(3) { animation-delay: 0.1s; }
.vp-card:nth-child(4) { animation-delay: 0.15s; }
.vp-card:nth-child(5) { animation-delay: 0.2s; }
.vp-card:nth-child(6) { animation-delay: 0.25s; }
.vp-card:nth-child(7) { animation-delay: 0.3s; }
.vp-card:nth-child(8) { animation-delay: 0.35s; }

.metric-card:nth-child(1) { animation-delay: 0s; }
.metric-card:nth-child(2) { animation-delay: 0.05s; }
.metric-card:nth-child(3) { animation-delay: 0.1s; }
.metric-card:nth-child(4) { animation-delay: 0.15s; }
.metric-card:nth-child(5) { animation-delay: 0.2s; }

/* ── Paywall (pw-*) ───────────────────────────────────────── */

.pw-page {
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* pw-topbar removed — uses .onb-topbar */

/* pw-back-link removed — uses .step-back-btn in .onb-topbar */

.pw-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.pw-header {
  text-align: center;
  margin-bottom: 36px;
}
.pw-header h1 {
  margin-bottom: 8px;
}
.pw-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Profile count selector */
.pw-profiles-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.pw-profiles-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.pw-profiles-toggle {
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.pw-range-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px; min-height: 36px; box-sizing: border-box;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center;
}
.pw-range-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}
.pw-range-btn.active {
  background: rgba(126,180,255,0.06);
  color: var(--accent);
  border: 1px solid rgba(126,180,255,0.3);
}

/* Tier cards grid */
.pw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pw-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s ease both;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pw-card:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.02);
}

.pw-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pw-tier-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pw-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pw-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.pw-price {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.pw-price-period {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pw-tier-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Features */
.pw-features {
  flex: 1;
  margin-bottom: 24px;
}

.pw-feat-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.pw-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pw-feat-check {
  flex-shrink: 0;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
}
.pw-feat-check.base    { color: var(--green);    background: rgba(52,211,153,0.12); }
.pw-feat-check.ai      { color: var(--lavender); background: rgba(196,181,253,0.12); }
.pw-feat-check.meeting  { color: var(--cyan);     background: rgba(34,211,238,0.12); }

.pw-feat-divider {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 14px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

/* Onboarding section */
.pw-onboarding {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.pw-onboarding-type {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.pw-onboarding-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}
.pw-onboarding-item::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.pw-best-for {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* Select button */
.pw-select-btn {
  width: 100%;
  padding: 8px 16px; min-height: 40px; box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  cursor: pointer;
  transition: all 0.35s ease;
  margin-top: auto;
  box-shadow: 0 0 0 0 transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.pw-select-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary) !important;
}
.pw-select-btn:disabled {
  cursor: wait;
  opacity: 0.5;
  animation: none;
}

/* pw-btn-glow removed — using aurora-glow for subtle border effect */

/* Responsive */
@media (max-width: 900px) {
  .pw-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pw-content { padding: 32px 16px 60px; }
  /* pw-topbar responsive removed */
}
