/* smb_app/style.css — SMB AI Growth Platform */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800;900&display=swap');

:root {
  --bg: #070B14;
  --bg2: #0E1425;
  --bg3: #161C2D;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --primary: #7C3AED;
  --primary-light: #9B5CF6;
  --teal: #0D9488;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --dim: #CBD5E1;
  --header-h: 60px;
  --nav-h: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  touch-action: manipulation;
}

#app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ── Header ── */
#app-header {
  height: var(--header-h);
  background: rgba(7,11,20,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  flex-shrink: 0;
}
.header-inner {
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-ava { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.15rem; font-family: 'Outfit', sans-serif; }
.ava-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }
.bottom-nav-desktop { display: flex; gap: 0.35rem; }
.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dim);
  padding: 0.6rem;
  border-radius: 10px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(0.94); }

/* ── Screens ── */
#screens { flex: 1; overflow: hidden; position: relative; }
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: var(--bg);
  z-index: 1;
}
.screen.active { opacity: 1; pointer-events: all; transform: translateX(0); }
.screen-inner { width: 100%; max-width: 580px; margin: 0 auto; padding: 1.25rem 1rem 7.5rem; min-height: 100%; }
@media (min-width: 1024px) {
  .screen-inner { max-width: 1000px; padding: 2.5rem 2rem 4rem; }
}
.center-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100%; gap: 1.25rem; }

/* ── Ava Avatar ── */
.ava-avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--primary), var(--teal)); flex-shrink: 0; }
.ava-avatar.large { width: 88px; height: 88px; font-size: 2.2rem; box-shadow: 0 0 0 16px rgba(124,58,237,0.1), 0 20px 40px rgba(124,58,237,0.4); }
.ava-avatar.medium { width: 64px; height: 64px; font-size: 1.5rem; box-shadow: 0 0 0 10px rgba(124,58,237,0.1); }
.ava-avatar.small { width: 40px; height: 40px; font-size: 1rem; flex-shrink: 0; }
.ava-avatar.pulse { animation: ava-pulse 3s ease-in-out infinite; }
.ava-avatar.analyzing { animation: ava-spin 2s linear infinite; }
@keyframes ava-pulse { 0%,100%{box-shadow:0 0 0 16px rgba(124,58,237,0.1),0 20px 40px rgba(124,58,237,0.4)} 50%{box-shadow:0 0 0 24px rgba(124,58,237,0.15),0 20px 50px rgba(124,58,237,0.5)} }
@keyframes ava-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ── Ava Bubble ── */
.ava-bubble { background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(13,148,136,0.1)); border: 1px solid rgba(124,58,237,0.25); border-radius: 16px 16px 16px 4px; padding: 1rem 1.25rem; font-size: 0.95rem; line-height: 1.6; color: var(--dim); margin-bottom: 1.5rem; }
.ava-bubble.small { font-size: 0.88rem; padding: 0.75rem 1rem; margin-bottom: 1rem; }

/* Expert handoff CTA: the primary conversion path after an audit. */
.expert-help-card {
  margin: 1rem 0 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(16,185,129,0.38);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(13,148,136,0.06));
  box-shadow: 0 12px 32px rgba(16,185,129,0.12);
}
.home-expert-card { margin-top: 0; }
.expert-help-kicker { color: #34d399; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 0.45rem; }
.expert-help-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.18rem; line-height: 1.25; margin-bottom: 0.5rem; }
.expert-help-card p { color: var(--dim); font-size: 0.88rem; line-height: 1.5; margin-bottom: 1rem; }
.expert-help-actions { display: flex; flex-direction: column; gap: 0.65rem; }
.expert-help-actions .btn-primary, .expert-help-actions .btn-outline { width: 100%; margin: 0; }
.callback-card { max-width: 480px; width: 100%; max-height: 90dvh; overflow-y: auto; }
.callback-card h2 { font-family: 'Outfit', sans-serif; font-size: 1.7rem; text-align: center; margin-bottom: 0.5rem; }
.callback-label { display: block; color: var(--dim); font-size: 0.8rem; font-weight: 700; margin: 1rem 0 0.4rem; }
.callback-status { color: #fca5a5; font-size: 0.85rem; line-height: 1.4; margin: 0.85rem 0; }
.callback-status.success { color: #6ee7b7; }

/* ── Welcome ── */
.welcome-title { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 900; line-height: 1.1; }
.welcome-sub { color: var(--dim); font-size: 1rem; line-height: 1.6; max-width: 320px; }
.grad-text { background: linear-gradient(135deg, var(--primary-light), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Inputs ── */
.input-group { width: 100%; max-width: 360px; text-align: left; }
.input-group label { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.input-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
input[type=email], input[type=text], .text-input {
  width: 100%; padding: 0.9rem 1.1rem; background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: 1rem; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }

/* ── Buttons ── */
.btn-primary {
  width: 100%; min-height: 54px; padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), #5B21B6);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
  color: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s ease; font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,58,237,0.45); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.large { padding: 1.15rem 2rem; font-size: 1.05rem; min-height: 56px; }

.btn-demo {
  width: 100%; min-height: 54px; padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(13,148,136,0.12));
  border: 1.5px solid rgba(124,58,237,0.35); border-radius: 14px;
  color: #C4B5FD; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s ease; font-family: 'Inter', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.15);
}
.btn-demo:hover {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(13,148,136,0.22));
  border-color: var(--primary-light); color: #FFFFFF; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.25);
}
.btn-demo:active { transform: scale(0.97); }

.btn-ghost {
  background: none; border: none; color: var(--dim); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; padding: 0.75rem; font-family: 'Inter', sans-serif; min-height: 44px;
  border-radius: 10px; transition: all 0.2s ease;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-ghost:active { transform: scale(0.96); }

.btn-outline {
  width: 100%; min-height: 54px; padding: 0.95rem 1.5rem; background: rgba(255,255,255,0.02);
  border: 1.5px solid var(--border); border-radius: 14px; color: var(--text); font-size: 1.02rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: 'Inter', sans-serif;
  margin-top: 0.75rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(124,58,237,0.08); }
.btn-outline:active { transform: scale(0.97); }

.btn-back {
  width: 52px; height: 52px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); color: var(--dim); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.btn-back:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: var(--primary); }
.btn-back:active { transform: scale(0.94); }
.btn-back-inline { background: none; border: none; color: var(--dim); font-size: 1.3rem; cursor: pointer; padding: 0.25rem 0.5rem; }
.btn-small { min-height: 40px; padding: 0.5rem 1.1rem; background: rgba(124,58,237,0.18); border: 1.5px solid rgba(124,58,237,0.35); border-radius: 12px; color: #C4B5FD; font-size: 0.84rem; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: 'Inter', sans-serif; transition: all 0.2s ease; }
.btn-small:hover { background: rgba(124,58,237,0.3); border-color: var(--primary-light); color: #fff; }
.btn-small:active { transform: scale(0.95); }

.btn-row { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.btn-row .btn-primary { flex: 1; }
.btn-row .btn-back { flex-shrink: 0; }

/* ── Score Gauge Ring ── */
.score-gauge-ring {
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(14,20,37,0.9) 58%, transparent 62%),
              conic-gradient(var(--gauge-color, #EF4444) calc(var(--gauge-score, 13) * 1%), rgba(255,255,255,0.08) 0deg);
  box-shadow: 0 0 25px rgba(0,0,0,0.4), inset 0 0 15px rgba(0,0,0,0.5);
  flex-shrink: 0; position: relative;
}
.score-gauge-val { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 900; line-height: 1; color: var(--text); }
.score-gauge-sub { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.risk-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.risk-badge.critical { background: rgba(239,68,68,0.15); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }
.risk-badge.moderate { background: rgba(245,158,11,0.15); color: #F59E0B; border: 1px solid rgba(245,158,11,0.3); }
.risk-badge.healthy { background: rgba(16,185,129,0.15); color: #10B981; border: 1px solid rgba(16,185,129,0.3); }

/* ── Tile Grid ── */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.tile-grid.col1 { grid-template-columns: 1fr; }
.tile {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px;
  padding: 1.1rem 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 1.5rem; cursor: pointer; transition: all 0.2s; text-align: center;
}
.tile span, .tile.wide { font-size: 0.92rem; font-weight: 600; color: var(--dim); }
.tile.wide { flex-direction: row; gap: 0.75rem; padding: 1rem 1.25rem; font-size: 0.95rem; justify-content: flex-start; }
.tile:hover { border-color: var(--primary); background: rgba(124,58,237,0.1); }
.tile.selected { border-color: var(--primary); background: rgba(124,58,237,0.15); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }
.tile.selected span, .tile.selected.wide { color: var(--primary-light); }

/* ── Question Block ── */
.question-block h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; line-height: 1.4; }

/* ── Progress Bar ── */
.progress-bar-container { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.progress-bar-track { flex: 1; height: 6px; background: var(--surface); border-radius: 9999px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--primary), var(--teal)); transition: width 0.4s ease; }
.progress-label { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

/* ── Audit Options ── */
.option-list { display: flex; flex-direction: column; gap: 0.6rem; }
.option-btn {
  padding: 1.1rem 1.3rem; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 14px; color: var(--text); font-size: 1.05rem; text-align: left; cursor: pointer;
  transition: all 0.2s; font-family: 'Inter', sans-serif; font-weight: 600; line-height: 1.4;
}
.option-btn:hover { border-color: var(--primary); background: rgba(124,58,237,0.1); }
.option-btn.selected { border-color: var(--primary); background: rgba(124,58,237,0.15); color: var(--primary-light); }
.q-counter { font-size: 0.78rem; color: var(--muted); margin-left: auto; }

/* ── Analyzing Steps ── */
.analyzing-steps { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 300px; margin: 1rem 0; }
.analysis-step { padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 0.9rem; color: var(--muted); transition: all 0.4s; }
.analysis-step.done { border-color: var(--green); color: var(--green); background: rgba(16,185,129,0.08); }
.analysis-step.active { border-color: var(--primary); color: var(--primary-light); background: rgba(124,58,237,0.1); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0%,100%{opacity:1} 50%{opacity:0.6} }
.analyzing-note { font-size: 0.82rem; color: var(--muted); }

/* ── Score Screen ── */
.score-ring-container { position: relative; width: 180px; height: 180px; margin: 0.5rem auto; }
.score-ring { width: 100%; height: 100%; }
.score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-number { font-family: 'Outfit', sans-serif; font-size: 3.2rem; font-weight: 900; line-height: 1; }
.score-out { font-size: 0.82rem; color: var(--muted); }
.score-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; color: var(--primary-light); }
.revenue-leak-banner { width: 100%; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); border-radius: 12px; padding: 0.85rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.88rem; flex-wrap: wrap; }
.revenue-leak-banner strong { color: var(--red); font-size: 1.1rem; }
.dimension-bars { width: 100%; display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.dim-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.82rem; }
.dim-name { width: 130px; flex-shrink: 0; color: var(--dim); }
.dim-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 9999px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 9999px; transition: width 0.8s ease; }
.dim-score { width: 36px; text-align: right; font-weight: 700; font-size: 0.85rem; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.25rem; font-size: 0.9rem; line-height: 1.7; color: var(--dim); margin-bottom: 1rem; white-space: pre-wrap; }

/* ── Action Plan ── */
.screen-title-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.screen-title-row h2 { font-size: 1.35rem; font-weight: 700; }
.task-counter { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
.task-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 0.75rem; transition: all 0.3s; }
.task-card.done { opacity: 0.5; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
.task-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.task-num { width: 28px; height: 28px; border-radius: 8px; background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; color: var(--primary-light); flex-shrink: 0; }
.task-title { font-weight: 700; font-size: 0.97rem; flex: 1; line-height: 1.35; }
.task-badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 9999px; }
.badge-high { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-medium { background: rgba(245,158,11,0.15); color: var(--amber); }
.task-body { margin-top: 0.75rem; font-size: 0.85rem; line-height: 1.6; color: var(--dim); display: none; }
.task-body.open { display: block; }
.task-why { font-style: italic; margin-bottom: 0.5rem; }
.task-time { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.task-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.btn-task-toggle { background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 0.78rem; padding: 0.35rem 0.7rem; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-task-done { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: 8px; color: var(--green); font-size: 0.78rem; padding: 0.35rem 0.7rem; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; }

/* ── Home ── */
.home-greeting { display: flex; align-items: flex-start; gap: 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.home-greeting p { font-size: 0.92rem; line-height: 1.6; color: var(--dim); }
.home-score-card { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(13,148,136,0.1)); border: 1px solid rgba(124,58,237,0.25); border-radius: 20px; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.home-score-num { font-family: 'Outfit', sans-serif; font-size: 2.8rem; font-weight: 900; }
.home-score-label { font-size: 0.75rem; color: var(--muted); }
.home-score-right { flex: 1; }
.home-leak { font-size: 1.1rem; font-weight: 700; color: var(--red); }
.home-leak-label { font-size: 0.75rem; color: var(--muted); }
.home-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 1rem; }
@media (min-width: 640px) {
  .home-tools-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .home-tools-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.tool-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.1rem; cursor: pointer; transition: all 0.2s; }
.tool-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tool-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.tool-name { font-weight: 800; font-size: 1.05rem; }
.tool-sub { font-size: 0.88rem; color: var(--dim); margin-top: 0.25rem; line-height: 1.35; }

.upgrade-modal-card {
  background: linear-gradient(180deg, rgba(14,20,37,0.98), rgba(8,13,24,0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.upgrade-subtitle {
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.upgrade-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.upgrade-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.upgrade-billing {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.upgrade-badge {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  flex-shrink: 0;
}
.upgrade-feature-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  color: var(--dim);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.upgrade-feature-list li {
  position: relative;
  padding-left: 1.4rem;
}
.upgrade-feature-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* ── Social ── */
.topic-tiles { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.custom-topic-row { display: flex; gap: 0.75rem; align-items: flex-end; margin-bottom: 1rem; }
.custom-topic-row .text-input { flex: 1; }
.custom-topic-row .btn-primary { width: auto; white-space: nowrap; padding: 0.9rem 1.25rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 0.75rem; }
.post-style { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-light); margin-bottom: 0.5rem; }
.post-caption { font-size: 0.9rem; line-height: 1.6; color: var(--dim); white-space: pre-wrap; }
.post-hashtags { margin-top: 0.5rem; font-size: 0.82rem; color: var(--primary-light); }
.btn-copy { margin-top: 0.75rem; padding: 0.45rem 0.9rem; background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.3); border-radius: 8px; color: var(--primary-light); font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── Leads ── */
.leads-form { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1.1rem; margin-bottom: 0.5rem; }
.lead-name { font-weight: 700; margin-bottom: 0.25rem; }
.lead-detail { font-size: 0.82rem; color: var(--dim); }

/* ── Settings ── */
.settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; margin-bottom: 1.5rem; }
.settings-card h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--primary-light); }
.settings-item { font-size: 0.9rem; color: var(--dim); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.settings-item:last-child { border-bottom: none; }
.settings-item strong { color: var(--text); }

/* ── Intro Card ── */
.intro-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem; text-align: left; width: 100%; }
.intro-card h2 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 0.75rem; }
.intro-card p { font-size: 0.92rem; color: var(--dim); line-height: 1.6; }
.audit-stats { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.stat-pill { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); border-radius: 9999px; padding: 0.35rem 0.85rem; font-size: 0.8rem; font-weight: 600; color: var(--primary-light); }
.section-sub { color: var(--dim); font-size: 0.9rem; text-align: center; max-width: 300px; }

/* ── Bottom Nav ── */
.bottom-nav { height: var(--nav-h); background: rgba(7,11,20,0.97); backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; padding: 0 0.5rem; flex-shrink: 0; z-index: 100; }
.bottom-nav .nav-btn { flex: 1; background: none; border: none; color: var(--muted); font-size: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; cursor: pointer; padding: 0.55rem 0.2rem; border-radius: 12px; transition: all 0.2s; font-family: 'Inter', sans-serif; min-height: 52px; }
.bottom-nav .nav-btn span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; }
.bottom-nav .nav-btn.active, .bottom-nav .nav-btn:hover { color: var(--primary-light); background: rgba(124,58,237,0.1); }
.desktop-nav .nav-btn { background: none; border: none; color: var(--muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; padding: 0.45rem 0.85rem; border-radius: 8px; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.desktop-nav .nav-btn.active, .desktop-nav .nav-btn:hover { color: var(--primary-light); background: rgba(124,58,237,0.12); }

/* ── Misc ── */
.hidden { display: none !important; }
.concierge-box {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.05rem;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(13, 148, 136, 0.24);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(124, 58, 237, 0.08));
}
.concierge-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.concierge-box p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--dim);
}
.concierge-actions {
  margin-top: 0.85rem;
}
.concierge-btn {
  margin-top: 0;
  width: 100%;
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--teal);
}
.error-msg { color: var(--red); font-size: 0.85rem; text-align: center; }
.loading-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 1rem auto; }
@keyframes spin { to{transform:rotate(360deg)} }

/* ── Responsive ── */
@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
  .bottom-nav-desktop { display: flex !important; }
  .screen-inner { padding-bottom: 4rem; }
  
  /* Desktop Dashboard Enhancements */
  .home-score-card { padding: 2.5rem; gap: 3rem; border-radius: 24px; }
  .home-score-num { font-size: 4rem; }
  .tool-card { padding: 1.75rem; border-radius: 20px; }
  .tool-icon { font-size: 2.2rem; }
  .tool-name { font-size: 1rem; }
}

@media (max-width: 767px) {
  .bottom-nav-desktop { display: none !important; }
  .bottom-nav { display: flex !important; }
  #screens { padding-bottom: var(--nav-h); }
}

@media (max-width: 480px) {
  .welcome-title { font-size: 2.2rem; }
}
.btn-task-done { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: 8px; color: var(--green); font-size: 0.78rem; padding: 0.35rem 0.7rem; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; }

/* ── Home ── */
.home-greeting { display: flex; align-items: flex-start; gap: 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.home-greeting p { font-size: 0.92rem; line-height: 1.6; color: var(--dim); }
.home-score-card { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(13,148,136,0.1)); border: 1px solid rgba(124,58,237,0.25); border-radius: 20px; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.home-score-num { font-family: 'Outfit', sans-serif; font-size: 2.8rem; font-weight: 900; }
.home-score-label { font-size: 0.75rem; color: var(--muted); }
.home-score-right { flex: 1; }
.home-leak { font-size: 1.1rem; font-weight: 700; color: var(--red); }
.home-leak-label { font-size: 0.75rem; color: var(--muted); }
.home-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 1rem; }
@media (min-width: 640px) {
  .home-tools-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .home-tools-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.tool-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.1rem; cursor: pointer; transition: all 0.2s; }
.tool-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tool-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.tool-name { font-weight: 800; font-size: 1.05rem; }
.tool-sub { font-size: 0.88rem; color: var(--dim); margin-top: 0.25rem; line-height: 1.35; }

.upgrade-modal-card {
  background: linear-gradient(180deg, rgba(14,20,37,0.98), rgba(8,13,24,0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.upgrade-subtitle {
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.upgrade-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.upgrade-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.upgrade-billing {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.upgrade-badge {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  flex-shrink: 0;
}
.upgrade-feature-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  color: var(--dim);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.upgrade-feature-list li {
  position: relative;
  padding-left: 1.4rem;
}
.upgrade-feature-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* ── Social ── */
.topic-tiles { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.custom-topic-row { display: flex; gap: 0.75rem; align-items: flex-end; margin-bottom: 1rem; }
.custom-topic-row .text-input { flex: 1; }
.custom-topic-row .btn-primary { width: auto; white-space: nowrap; padding: 0.9rem 1.25rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 0.75rem; }
.post-style { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-light); margin-bottom: 0.5rem; }
.post-caption { font-size: 0.9rem; line-height: 1.6; color: var(--dim); white-space: pre-wrap; }
.post-hashtags { margin-top: 0.5rem; font-size: 0.82rem; color: var(--primary-light); }
.btn-copy { margin-top: 0.75rem; padding: 0.45rem 0.9rem; background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.3); border-radius: 8px; color: var(--primary-light); font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── Leads ── */
.leads-form { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1.1rem; margin-bottom: 0.5rem; }
.lead-name { font-weight: 700; margin-bottom: 0.25rem; }
.lead-detail { font-size: 0.82rem; color: var(--dim); }

/* ── Settings ── */
.settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; margin-bottom: 1.5rem; }
.settings-card h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--primary-light); }
.settings-item { font-size: 0.9rem; color: var(--dim); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.settings-item:last-child { border-bottom: none; }
.settings-item strong { color: var(--text); }

/* ── Intro Card ── */
.intro-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem; text-align: left; width: 100%; }
.intro-card h2 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 0.75rem; }
.intro-card p { font-size: 0.92rem; color: var(--dim); line-height: 1.6; }
.audit-stats { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.stat-pill { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); border-radius: 9999px; padding: 0.35rem 0.85rem; font-size: 0.8rem; font-weight: 600; color: var(--primary-light); }
.section-sub { color: var(--dim); font-size: 0.9rem; text-align: center; max-width: 300px; }

/* ── Bottom Nav ── */
.bottom-nav { height: var(--nav-h); background: rgba(7,11,20,0.97); backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; padding: 0 0.5rem; flex-shrink: 0; z-index: 100; }
.bottom-nav .nav-btn { flex: 1; background: none; border: none; color: var(--muted); font-size: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; cursor: pointer; padding: 0.55rem 0.2rem; border-radius: 12px; transition: all 0.2s; font-family: 'Inter', sans-serif; min-height: 52px; }
.bottom-nav .nav-btn span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; }
.bottom-nav .nav-btn.active, .bottom-nav .nav-btn:hover { color: var(--primary-light); background: rgba(124,58,237,0.1); }
.desktop-nav .nav-btn { background: none; border: none; color: var(--muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; padding: 0.45rem 0.85rem; border-radius: 8px; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.desktop-nav .nav-btn.active, .desktop-nav .nav-btn:hover { color: var(--primary-light); background: rgba(124,58,237,0.12); }

/* ── Misc ── */
.hidden { display: none !important; }
.concierge-box {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.05rem;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(13, 148, 136, 0.24);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(124, 58, 237, 0.08));
}
.concierge-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.concierge-box p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--dim);
}
.concierge-actions {
  margin-top: 0.85rem;
}
.concierge-btn {
  margin-top: 0;
  width: 100%;
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--teal);
}
.error-msg { color: var(--red); font-size: 0.85rem; text-align: center; }
.loading-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 1rem auto; }
@keyframes spin { to{transform:rotate(360deg)} }

/* ── Responsive ── */
@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
  .bottom-nav-desktop { display: flex !important; }
  .screen-inner { padding-bottom: 4rem; }
  
  /* Desktop Dashboard Enhancements */
  .home-score-card { padding: 2.5rem; gap: 3rem; border-radius: 24px; }
  .home-score-num { font-size: 4rem; }
  .tool-card { padding: 1.75rem; border-radius: 20px; }
  .tool-icon { font-size: 2.2rem; }
  .tool-name { font-size: 1rem; }
}

@media (max-width: 767px) {
  .bottom-nav-desktop { display: none !important; }
  .bottom-nav { display: flex !important; }
  #screens { padding-bottom: var(--nav-h); }
}

@media (max-width: 480px) {
  .welcome-title { font-size: 2.2rem; }
  .home-score-card { padding: 1.25rem; }
  .home-score-num { font-size: 2.5rem; }
  .tool-card { padding: 1rem; }
}

/* Switch Toggle */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Pricing Screen */
.pricing-card-v {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card-v.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(13,148,136,0.05));
  box-shadow: 0 15px 40px -10px rgba(124,58,237,0.2);
}

.p-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.p-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.p-tier-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.p-price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.p-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dim);
}

.p-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-light);
}

.p-period {
  font-size: 0.75rem;
  color: var(--muted);
}

.p-blurb {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.p-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.p-features li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.p-features li span {
  font-size: 0.9rem;
}

.pricing-footer p {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Goal-Oriented Sections & Glossary Tooltips */
.home-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}
.home-section-group {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  padding: 1.25rem 1rem 0.5rem;
  border-radius: 20px;
}
.home-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.glossary-term {
  border-bottom: 1.5px dashed var(--muted);
  cursor: help;
  position: relative;
}
.glossary-term::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  width: 200px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
}
.glossary-term:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.task-outcome-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  display: block;
}
.task-duration-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dim);
  margin-top: 0.5rem;
  display: block;
}

/* ── AOA Task Badges ── */
.aoa-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.5rem;
}
.aoa-badge.aoa-audit {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.aoa-badge.aoa-optimize {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.aoa-badge.aoa-automate {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ── Speed-to-Lead Collapsible Card ── */
.collapsible-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.collapsible-card.active {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}
.collapsible-header {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.collapsible-header:hover {
  background: rgba(255, 255, 255, 0.02);
}
.collapsible-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.collapsible-arrow {
  font-size: 0.85rem;
  color: var(--dim);
  transition: transform 0.3s ease;
}
.collapsible-card.active .collapsible-arrow {
  transform: rotate(180deg);
}
.collapsible-content {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeSlideUp 0.3s ease;
}
.collapsible-card.active .collapsible-content {
  display: block;
}
.calc-field-group {
  margin-bottom: 1.25rem;
}
.calc-field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.calc-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.calc-val-display {
  width: 90px;
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.calc-select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}
.calc-select:focus {
  border-color: var(--primary);
}
.calc-result-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.25rem;
  text-align: center;
}
.calc-result-box.recovered {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.05));
  border-color: rgba(16, 185, 129, 0.25);
}
.calc-result-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ef4444;
  margin-top: 0.25rem;
  letter-spacing: -0.02em;
}
.calc-result-box.recovered .calc-result-amount {
  color: #10b981;
}


/* ── In-App Video Walkthrough & Modal ────────────────────────────────────── */
.card-video-pill {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 5;
}
.card-video-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.6);
}

.btn-video-preview {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-video-preview:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #a78bfa;
  color: #e0e7ff;
}

.fvm-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.fvm-backdrop.hidden {
  display: none !important;
}

.fvm-dialog {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fvmPop 0.25s ease-out;
}
@keyframes fvmPop {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.fvm-header {
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.fvm-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fvm-icon {
  font-size: 1.5rem;
  background: rgba(124, 58, 237, 0.2);
  padding: 6px;
  border-radius: 10px;
  display: inline-flex;
}
.fvm-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}
.fvm-badge {
  font-size: 0.82rem;
  color: #a78bfa;
  font-weight: 600;
}
.fvm-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.fvm-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Video Viewport */
.fvm-viewport {
  position: relative;
  width: 100%;
  height: 280px;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fvm-native-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fvm-native-video.hidden {
  display: none !important;
}

.fvm-simulation-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
.fvm-simulation-canvas.hidden {
  display: none !important;
}

.fvm-sound-off-pill {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 10;
}

/* Kinetic Captions Box */
.fvm-captions-overlay {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  backdrop-filter: blur(8px);
  z-index: 15;
  text-align: left;
}
.fvm-caption-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.fvm-caption-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fde047;
  line-height: 1.3;
  margin-bottom: 3px;
  font-family: 'Outfit', sans-serif;
}
.fvm-caption-sub {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

/* Controls */
.fvm-controls {
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fvm-control-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
}
.fvm-control-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.fvm-progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.fvm-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #38bdf8);
  border-radius: 4px;
  transition: width 0.1s linear;
}
.fvm-time {
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Footer CTA */
.fvm-footer {
  padding: 0.95rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fvm-btn-upgrade {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
}
.fvm-btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* ── Scene Simulation Mock Component Styles ───────────────────────────────── */
.v-scene-mock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 0.85rem;
}
.v-scene-mock.dark-night {
  background: radial-gradient(circle at top right, rgba(124,58,237,0.15), transparent 70%);
}
.v-scene-mock.center-cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.v-unlock-icon {
  font-size: 2.4rem;
}
.v-tier-pill {
  background: rgba(124,58,237,0.2);
  border: 1px solid #7c3aed;
  color: #c4b5fd;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Browser Mock */
.v-browser-bar {
  background: rgba(255,255,255,0.06);
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.v-dot { width: 6px; height: 6px; border-radius: 50%; }
.v-dot.r { background: #ef4444; }
.v-dot.y { background: #f59e0b; }
.v-dot.g { background: #10b981; }
.v-url { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-left: 4px; }
.v-mock-site {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px;
  flex: 1;
}
.v-site-hero h4 { margin: 0 0 4px 0; font-size: 1rem; font-weight: 700; }
.v-site-hero p { margin: 0; color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.v-loss-indicator {
  margin-top: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  font-weight: 700;
}

/* Chat Mock */
.v-chat-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 180px;
}
.v-chat-header {
  background: rgba(124, 58, 237, 0.2);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v-ava-avatar {
  background: #7c3aed;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}
.v-live-tag {
  background: #10b981;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 700;
}
.v-mini-sub { font-size: 0.68rem; color: rgba(255,255,255,0.6); }
.v-chat-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.v-bubble {
  max-width: 82%;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
}
.v-bubble.bot {
  background: rgba(255, 255, 255, 0.08);
  align-self: flex-start;
  color: #f1f5f9;
}
.v-bubble.bot.highlight {
  background: rgba(124, 58, 237, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #e0e7ff;
}
.v-bubble.user {
  background: #2563eb;
  color: #fff;
  align-self: flex-end;
}

/* Lead & Data Cards */
.v-lead-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
}
.v-lead-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.v-badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
}
.v-lead-time { font-size: 0.70rem; color: rgba(255,255,255,0.6); }
.v-lead-data { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; }
.v-data-row { display: flex; justify-content: space-between; }
.v-data-row .k { color: rgba(255,255,255,0.6); }
.v-data-row .v { font-weight: 600; color: #fff; }
.v-data-row .v.val-green { color: #34d399; }

/* SMS Preview */
.v-sms-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
}
.v-phone-bar {
  font-size: 0.70rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  font-weight: 600;
}
.v-sms-bubble {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 9px;
  border-radius: 8px;
  font-size: 0.80rem;
  line-height: 1.4;
}
.v-star-tap-row {
  display: flex;
  gap: 10px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Speed & SEO Meters */
.v-speed-meters {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  margin-top: 15px;
}
.v-meter-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  flex: 1;
}
.v-meter-score {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 4px;
}
.v-meter-score.red { color: #ef4444; }
.v-meter-score.orange { color: #f59e0b; }
.v-meter-score.green { color: #10b981; }
.v-meter-lbl { font-size: 0.68rem; color: rgba(255,255,255,0.7); }

/* Comparison Tables */
.v-diff-table {
  width: 100%;
  border-collapse: collapse;
}
.v-diff-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
}
.v-diff-row.header {
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.v-diff-row span { flex: 1; text-align: center; }
.v-diff-row span:first-child { text-align: left; }
.v-diff-row .bad { color: #f87171; font-weight: 600; }
.v-diff-row .good { color: #34d399; font-weight: 600; }

/* Animations */
.animate-pulse { animation: vPulse 1.5s infinite; }
@keyframes vPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-bounce { animation: vBounce 1.8s infinite; }
@keyframes vBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.animate-slide-up { animation: vSlideUp 0.35s ease-out forwards; }
@keyframes vSlideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.animate-scale-up { animation: vScaleUp 0.35s ease-out forwards; }
@keyframes vScaleUp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ── Screen: Tools Hub ────────────────────────────────────────────────────── */
.tools-hub-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(13, 148, 136, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.tools-hub-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.tools-hub-sub {
  font-size: 0.90rem;
  color: var(--dim);
  line-height: 1.45;
}
.tools-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.tool-row-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.tool-row-card:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-1px);
}
.tool-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.tool-row-icon {
  font-size: 1.9rem;
  background: rgba(255, 255, 255, 0.05);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-row-info h4 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.tool-row-info p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--dim);
  line-height: 1.35;
}
.tool-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tool-status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}
.tool-status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.tool-status-badge.locked {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.3);
}
