/* ══════════════════════════════════════════
   KNNCT — Dark theme, coral accent
   Inspired by knnct.in
   ══════════════════════════════════════════ */

:root {
  --bg: #0A0710;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --surface-3: rgba(255,255,255,0.08);

  --primary: #F58080;
  --primary-dark: #e06a6a;
  --primary-light: rgba(245,128,128,0.14);
  --primary-lighter: rgba(245,128,128,0.08);
  --primary-ring: rgba(245,128,128,0.28);

  --text: #ffffff;
  --text-2: rgba(255,255,255,0.92);
  --text-3: rgba(255,255,255,0.65);
  --text-4: rgba(255,255,255,0.45);

  --border: rgba(255,255,255,0.1);
  --border-2: rgba(255,255,255,0.14);
  --border-focus: #F58080;

  --green: #34d399;
  --green-bg: rgba(52,211,153,0.1);
  --amber: #fbbf24;
  --amber-bg: rgba(251,191,36,0.1);
  --red: #f87171;
  --red-bg: rgba(248,113,113,0.1);
  --blue: #60a5fa;
  --blue-bg: rgba(96,165,250,0.1);
  --gold: #fbbf24;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 8px 24px rgba(0,0,0,0.25);
  --shadow-md: 0 16px 40px rgba(0,0,0,0.35);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.45);

  --r: 14px;
  --r-lg: 24px;
  --r-full: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }
html { height: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
::selection { background: rgba(245,128,128,0.3); color: #fff; }

body {
  min-height: 100vh;
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.6; color: var(--text);
  background: var(--bg); font-weight: 300; overflow-x: hidden; position: relative;
}

@media (pointer: coarse) {
  *, *::before, *::after { cursor: auto !important; }
  #cur-dot { display: none; }
}

/* ── Ambient background ───────────────── */
#ambient {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, #1a0a24 0%, #0A0710 55%),
    radial-gradient(ellipse 100% 70% at 80% 100%, #1d0a14 0%, #0A0710 50%),
    #0A0710;
}
#ambient .glow { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform, opacity; }
#ambient .g1 { width: 58vw; height: 58vw; background: radial-gradient(circle, #A600FF 0%, rgba(166,0,255,0) 68%); top: -18%; left: -10%; opacity: .5; animation: flow1 24s ease-in-out infinite; }
#ambient .g2 { width: 54vw; height: 54vw; background: radial-gradient(circle, #FF5E3A 0%, rgba(255,94,58,0) 68%); bottom: -20%; right: -8%; opacity: .45; animation: flow2 30s ease-in-out infinite; }
#ambient .g3 { width: 44vw; height: 44vw; background: radial-gradient(circle, #E0218A 0%, rgba(224,33,138,0) 70%); top: 30%; left: 42%; opacity: .4; animation: flow3 34s ease-in-out infinite; }
#ambient .streak { position: absolute; border-radius: 50%; filter: blur(6px); mix-blend-mode: screen; will-change: transform, opacity; }
#ambient .s1 { width: 140vw; height: 2px; top: 34%; left: -20%; background: linear-gradient(90deg, transparent, #FF3D6E 30%, #FFB37A 48%, #fff 50%, #FFB37A 52%, #A600FF 72%, transparent); transform: rotate(-12deg); opacity: .85; box-shadow: 0 0 24px 2px rgba(255,94,58,.5); animation: streak1 18s ease-in-out infinite; }
#ambient .s2 { width: 120vw; height: 1.5px; top: 58%; left: -10%; background: linear-gradient(90deg, transparent, #A600FF 38%, #fff 50%, #E0218A 62%, transparent); transform: rotate(8deg); opacity: .7; box-shadow: 0 0 20px 1px rgba(166,0,255,.5); animation: streak2 22s ease-in-out infinite; }
#ambient .s3 { width: 90vw; height: 1.5px; top: 20%; left: 10%; background: linear-gradient(90deg, transparent, #FF5E3A 45%, #fff 50%, #FF5E3A 55%, transparent); transform: rotate(-6deg); opacity: .6; box-shadow: 0 0 18px 1px rgba(255,94,58,.4); animation: streak3 26s ease-in-out infinite; }
#ambient .sheen {
  position: absolute; width: 160vmax; height: 160vmax; top: 50%; left: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(166,0,255,.06) 60deg, transparent 120deg, rgba(255,94,58,.05) 200deg, transparent 280deg, rgba(224,33,138,.05) 340deg, transparent 360deg);
  animation: ambSpin 60s linear infinite;
}
#ambient .grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes flow1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(16vw,10vh) scale(1.15)} 66%{transform:translate(8vw,22vh) scale(.92)} }
@keyframes flow2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-14vw,-12vh) scale(1.12)} 66%{transform:translate(-6vw,-4vh) scale(.95)} }
@keyframes flow3 { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.4} 50%{transform:translate(-62%,-38%) scale(1.2);opacity:.55} }
@keyframes streak1 { 0%,100%{transform:rotate(-12deg) translateX(0);opacity:.5} 50%{transform:rotate(-9deg) translateX(6vw);opacity:.85} }
@keyframes streak2 { 0%,100%{transform:rotate(8deg) translateX(0);opacity:.4} 50%{transform:rotate(11deg) translateX(-5vw);opacity:.7} }
@keyframes streak3 { 0%,100%{transform:rotate(-6deg) translateX(0);opacity:.3} 50%{transform:rotate(-3deg) translateX(4vw);opacity:.6} }
@keyframes ambSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

#cur-dot {
  position: fixed; top: 0; left: 0; width: 9px; height: 9px;
  background: #F58080; border-radius: 50%; pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s, opacity .2s;
}
body.cb #cur-dot { width: 6px; height: 6px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  #ambient .glow, #ambient .streak, #ambient .sheen { animation: none; }
}

.header, .wizard { position: relative; z-index: 2; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Progress ──────────────────────────── */
.progress-line { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--border); z-index: 300; }
.progress-fill { height: 100%; width: 0%; background: var(--primary); transition: width 0.5s var(--ease); box-shadow: 0 0 8px rgba(245,128,128,0.4); }

/* ── Header ────────────────────────────── */
.header {
  position: sticky; top: 2px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 960px; margin: 0 auto; padding: 14px 24px;
  background: rgba(10,7,16,0.55); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  letter-spacing: 0.06em; color: var(--text);
}
.header-logo { height: 34px; width: auto; border-radius: 8px; }

.header-dots { display: flex; align-items: center; gap: 6px; }
.header-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-2); transition: all 0.3s var(--ease);
}
.header-dot.active { width: 22px; border-radius: var(--r-full); background: var(--primary); }
.header-dot.done { background: var(--primary); }

.header-right { display: flex; align-items: center; gap: 8px; }
.btn-icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--border); background: transparent;
  color: var(--text-3); transition: all 0.15s;
}
.btn-icon:hover { background: var(--surface); color: var(--text); }
.btn-icon svg { width: 15px; height: 15px; }

/* ── Wizard ────────────────────────────── */
.wizard { max-width: 960px; margin: 0 auto; padding: 0 24px; min-height: calc(100vh - 68px); }

.step { display: none; animation: fadeUp 0.4s var(--ease) both; }
.step.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-center { max-width: 540px; margin: 0 auto; padding: 44px 0 80px; }
.step-center--hero { max-width: 580px; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 10vh; }
.step-center--narrow { max-width: 420px; }
.step-center--wide { max-width: 860px; }

/* ── Typography ────────────────────────── */
.label-tag {
  display: inline-block; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 300; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.28em; margin-bottom: 12px;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 104px); font-weight: 400; line-height: 1.02;
  letter-spacing: -0.025em; margin-bottom: 20px;
}
.hero-h1 em, .step-h1 em { font-style: italic; color: var(--primary); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.82); max-width: 400px; line-height: 1.85; margin-bottom: 36px; font-weight: 300; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-4); font-weight: 300; }

.step-h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px); font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.step-sub { font-size: 14.5px; color: rgba(255,255,255,0.95); line-height: 1.65; margin-bottom: 28px; max-width: 480px; font-weight: 300; }

/* ── Stats ─────────────────────────────── */
.stats-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.stat {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--r-full); border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(12px);
  font-size: 13px; color: var(--text-3); font-weight: 300;
}
.stat svg { width: 14px; height: 14px; color: var(--primary); }
.stat strong { color: var(--text); font-weight: 500; }

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: all 0.15s var(--ease); border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, #F58080 0%, #FF5E3A 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 30px rgba(245,128,128,0.35);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(255,94,58,0.4);
}

.btn-ghost { background: transparent; color: var(--text-3); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: rgba(255,255,255,0.04); }

.btn-lg { height: 54px; padding: 0 32px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 14px; }
.btn-full { width: 100%; }

/* ── Forms ─────────────────────────────── */
.form-stack {
  display: flex; flex-direction: column; gap: 22px; margin-bottom: 8px;
  padding: 44px 40px; border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.92);
  text-transform: uppercase; letter-spacing: 0.12em;
}

.field input, .field textarea, .field select {
  width: 100%; min-height: 56px; padding: 0 18px;
  border: 1.5px solid rgba(255,255,255,0.14); border-radius: var(--r);
  background: rgba(255,255,255,0.05); color: var(--text);
  font-size: 16px; font-weight: 400; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { padding: 14px 18px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring);
  background: rgba(255,255,255,0.07);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field select option { background: #16101f; color: var(--text); }
.field-hint { font-size: 12px; color: rgba(255,255,255,0.82); margin-top: 2px; font-weight: 300; }
.role-secondary-stack { display: flex; flex-direction: column; gap: 10px; }
.hint-inline { font-size: 12px; color: rgba(255,255,255,0.82); font-weight: 300; }

.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-4); pointer-events: none; }
.input-icon input { padding-left: 36px; }

/* ── Pill Grid ─────────────────────────── */
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: var(--r-full); border: 1.5px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03); font-size: 13px; font-weight: 400;
  color: var(--text-3); transition: all 0.15s var(--ease);
}
.pill:hover { border-color: rgba(255,255,255,0.25); color: var(--text-2); background: rgba(255,255,255,0.06); }
.pill.selected {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500;
  box-shadow: 0 4px 16px rgba(245,128,128,0.3);
}

/* ── Profile card (LinkedIn-enriched) ──── */
.profile-head-info { display: flex; flex-direction: column; gap: 2px; }
.profile-role { font-size: 13px; color: var(--primary); font-weight: 500; margin: 0; }
.profile-headline { font-size: 13px; color: var(--text-3); font-weight: 400; }
.profile-location { font-size: 12px; color: var(--text-4); display: flex; align-items: center; gap: 4px; }

.li-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.li-section.hidden { display: none; }
.li-section-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-4); margin-bottom: 12px;
}
.li-section-title svg { width: 13px; height: 13px; }

.li-timeline { display: flex; flex-direction: column; gap: 14px; }
.li-exp-item { display: flex; gap: 12px; }
.li-exp-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
  flex-shrink: 0; margin-top: 5px;
}
.li-exp-body { flex: 1; min-width: 0; }
.li-exp-title { font-size: 14px; font-weight: 500; color: var(--text); }
.li-exp-meta { font-size: 12px; color: var(--text-4); margin: 1px 0 4px; }
.li-exp-desc { font-size: 13px; color: var(--text-3); line-height: 1.5; white-space: pre-line; }
.li-exp-current { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; background: var(--primary); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

.li-edu-list { display: flex; flex-direction: column; gap: 10px; }
.li-edu-item { display: flex; gap: 10px; align-items: flex-start; }
.li-edu-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); flex-shrink: 0; }
.li-edu-icon svg { width: 15px; height: 15px; color: var(--text-3); }
.li-edu-name { font-size: 13px; font-weight: 500; color: var(--text); }
.li-edu-sub { font-size: 12px; color: var(--text-4); }

.li-highlights { display: flex; flex-direction: column; gap: 6px; padding-left: 0; }
.li-highlights li {
  display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.5;
}
.li-highlights li::before { content: "★"; color: var(--primary); font-size: 11px; flex-shrink: 0; margin-top: 2px; }

/* ── Intent Cards ──────────────────────── */
.intent-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.intent-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; padding: 20px 20px 18px; border-radius: var(--r-lg);
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(16px);
  transition: all 0.15s var(--ease);
}
.intent-card:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.intent-card.selected {
  border-color: var(--primary); background: var(--primary-lighter);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.intent-ico {
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 6px;
  border-radius: 10px; background: var(--surface-2); color: var(--primary);
}
.intent-card.selected .intent-ico { background: var(--primary); color: #fff; }
.intent-ico svg { width: 19px; height: 19px; }
.intent-card strong { font-size: 15px; font-weight: 500; color: var(--text); }
.intent-card small { font-size: 13px; color: var(--text-3); font-weight: 300; }

/* ── Step Nav ──────────────────────────── */
.step-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}

/* ── Profile Card ──────────────────────── */
.profile-card {
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(24px);
  padding: 28px; margin-bottom: 28px; box-shadow: var(--shadow-lg);
}
.profile-card__loading { display: flex; flex-direction: column; gap: 14px; }
.profile-card__body.hidden { display: none; }

.shimmer-line {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite;
}
.shimmer-line--avatar { width: 52px; height: 52px; border-radius: 50%; }
.shimmer-line--long { width: 85%; }
.shimmer-line--med { width: 60%; }
.shimmer-line--short { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar-circle {
  width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary-light); color: var(--primary);
  font-weight: 600; font-size: 17px;
}
.profile-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }

.profile-summary {
  font-size: 14px; color: var(--text-3); line-height: 1.65; font-weight: 300;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.profile-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--r-full); background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 500;
}
.profile-note { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-4); font-weight: 400; }
.profile-note svg { width: 12px; height: 12px; }

/* ── Voice ─────────────────────────────── */
.voice-section { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.voice-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(16px); box-shadow: var(--shadow-sm);
}
.mic-btn {
  width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary); color: #fff;
  transition: all 0.2s; box-shadow: 0 8px 30px rgba(245,128,128,0.35);
}
.mic-btn:hover { transform: scale(1.06); box-shadow: 0 12px 38px rgba(245,128,128,0.45); }
.mic-btn svg { width: 22px; height: 22px; }
.mic-btn.recording {
  background: var(--red); box-shadow: 0 4px 14px rgba(248,113,113,0.3);
  animation: pulse-rec 1.4s ease-in-out infinite;
}
@keyframes pulse-rec {
  0%,100% { box-shadow: 0 0 0 0 rgba(248,113,113,0.25); }
  50% { box-shadow: 0 0 0 14px rgba(248,113,113,0); }
}
.voice-info { display: flex; flex-direction: column; gap: 2px; }
.voice-info strong { font-size: 14px; font-weight: 500; }
.voice-info span { font-size: 13px; color: var(--text-3); line-height: 1.45; font-weight: 300; }
.audio-row { margin-top: 2px; }
.audio-playback {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); backdrop-filter: blur(12px);
}
.audio-playback__play {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary); color: #fff;
  box-shadow: 0 6px 20px rgba(245,128,128,0.3); transition: transform 0.2s;
}
.audio-playback__play:hover { transform: scale(1.05); }
.audio-playback__play svg { width: 18px; height: 18px; }
.audio-playback__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.audio-playback__wave {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden;
}
.audio-playback__fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #fbb6b6);
  transition: width 0.08s linear;
}
.audio-playback__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--text-3);
}
.audio-playback__label { font-weight: 500; color: var(--text-2); }
.audio-playback__time { font-variant-numeric: tabular-nums; }
.audio-playback__redo {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 12px; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.12); background: transparent;
  color: var(--text-2); font-size: 12px; font-weight: 500; transition: all 0.2s;
}
.audio-playback__redo svg { width: 14px; height: 14px; }
.audio-playback__redo:hover {
  border-color: rgba(245,128,128,0.45); color: var(--primary);
  background: rgba(245,128,128,0.08);
}
.voice-timer {
  font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500;
  color: var(--text-3); min-width: 40px; text-align: right; flex-shrink: 0;
}
.voice-timer.recording { color: var(--red); }
.voice-timer.hidden { display: none; }

/* ── Fee Gates ─────────────────────────── */
.gate-card {
  text-align: center; padding: 36px 28px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.gate-card .label-tag { margin-bottom: 4px; }
.gate-card .step-h1 { margin-bottom: 8px; }
.gate-sub { margin: 0 auto 24px; text-align: center; max-width: 340px; }
.gate-icon {
  width: 50px; height: 50px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 12px; background: var(--primary-light); color: var(--primary);
}
.gate-icon svg { width: 22px; height: 22px; }
.gate-icon--gold { background: var(--amber-bg); color: var(--amber); }
.gate-perks {
  text-align: left; max-width: 280px; margin: 0 auto 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.gate-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); font-weight: 300; }
.gate-perks li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.gate-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 18px; }
.price-big { font-family: var(--serif); font-size: 44px; font-weight: 300; letter-spacing: -0.02em; }
.price-label { font-size: 14px; color: var(--text-3); font-weight: 300; }
.gate-fine { margin-top: 10px; font-size: 12px; color: var(--text-4); }

/* ── Voice Questions ───────────────────── */
.voice-question {
  padding: 22px; border-radius: var(--r-lg);
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 14px;
}
.voice-question__label {
  font-size: 15px; font-weight: 400; color: var(--text); line-height: 1.55;
}

/* ── Loading / Empty ───────────────────── */
.loading-inline {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 28px; color: var(--text-3); font-size: 14px;
}
.spinner {
  width: 20px; height: 20px; border: 2.5px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner--sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── OTP ───────────────────────────────── */
.otp-card {
  text-align: center; padding: 40px 32px;
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(24px); box-shadow: var(--shadow-lg);
}
.otp-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 14px; background: var(--primary); color: #fff;
}
.otp-icon svg { width: 24px; height: 24px; }
.otp-sub { margin: 0 auto 16px; text-align: center; }
.otp-sub strong { color: var(--text); }

.otp-inputs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 20px;
}
.otp-digit {
  width: 48px; height: 56px; text-align: center;
  font-size: 22px; font-weight: 500; letter-spacing: 0;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface-2); color: var(--text); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.otp-digit.error { border-color: var(--red); }

.otp-error { color: var(--red); font-size: 13px; margin-bottom: 12px; }
.otp-error.hidden { display: none; }
.otp-resend { margin-top: 14px; font-size: 13px; color: var(--text-3); font-weight: 300; }
.link-btn { background: none; border: none; color: var(--primary); font-weight: 500; cursor: pointer; font-size: 13px; }
.link-btn:hover:not(:disabled) { text-decoration: underline; }
.link-btn:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: none; }

.otp-demo {
  margin-top: 12px; padding: 10px 14px; border-radius: var(--r);
  background: var(--amber-bg); color: var(--amber); font-size: 13px; font-weight: 500;
}
.otp-demo.hidden { display: none; }

.otp-code-display {
  margin: 0 0 20px; padding: 18px 20px; border-radius: var(--r-lg); text-align: center;
  border: 1.5px solid rgba(245,128,128,0.35); background: rgba(245,128,128,0.1);
  display: flex; flex-direction: column; gap: 8px;
}
.otp-code-display.hidden { display: none; }
.otp-code-display__label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
}
.otp-code-display__value {
  font-size: 34px; font-weight: 600; letter-spacing: 0.35em; color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* ── Name Warning ──────────────────────── */
.name-warning {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px;
  border-radius: var(--r); background: var(--red-bg); margin-bottom: 12px;
}
.name-warning svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 1px; }
.name-warning span { font-size: 13px; color: var(--red); line-height: 1.45; }
.name-warning.hidden { display: none; }

/* ── Thank You ─────────────────────────── */
.thank-you { display: flex; flex-direction: column; align-items: center; }
.thank-icon {
  width: 76px; height: 76px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green-bg); color: var(--green);
  margin-bottom: 20px;
}
.thank-icon svg { width: 36px; height: 36px; }

.thank-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: 20px; margin: 28px 0;
  display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow-sm);
}
.thank-row {
  display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); font-weight: 300;
}
.thank-row svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.thank-row strong { color: var(--text); }

/* ── Autocomplete ─────────────────────── */
.autocomplete-wrap { position: relative; }
.autocomplete-wrap input { width: 100%; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  max-height: 220px; overflow-y: auto; margin-top: 4px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface-2); box-shadow: var(--shadow-md);
}
.autocomplete-list.hidden { display: none; }
.autocomplete-item {
  padding: 10px 14px; font-size: 14px; color: var(--text-2);
  cursor: pointer; transition: background 0.1s;
}
.autocomplete-item:hover, .autocomplete-item.active {
  background: var(--primary-light); color: var(--text);
}
.autocomplete-item mark { background: transparent; color: var(--primary); font-weight: 500; }

.hidden { display: none; }

/* ── Responsive ────────────────────────── */
@media (max-width: 640px) {
  .header { padding: 10px 16px; }
  .header-dots { display: none; }
  .wizard { padding: 0 16px; }
  .step-center { padding: 28px 0 60px; }
  .step-center--hero { padding-top: 6vh; }
  .step-h1 { font-size: 26px; }
  .hero-h1 { font-size: 32px !important; }
  .step-nav { flex-direction: column-reverse; gap: 8px; }
  .step-nav .btn { width: 100%; }
  .gate-card { padding: 28px 20px; }
  .voice-card { flex-direction: column; text-align: center; }
  .audio-playback { flex-wrap: wrap; }
  .audio-playback__redo { width: 100%; justify-content: center; }
  .stats-row { flex-direction: column; align-items: center; }
  .pill { font-size: 12px; height: 32px; padding: 0 12px; }
}
