/* ==========================================================================
   Actora.ai — Vubio-Inspired Onboarding Design System & Step 5 Showcase
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-canvas: #0f172a;
  --surface-card: #ffffff;
  --surface-card-subtle: #f8fafc;
  --surface-card-border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --brand-primary: #0f172a;
  --brand-indigo: #6366f1;
  --brand-violet: #8b5cf6;
  --brand-emerald: #10b981;
  --brand-rose: #f43f5e;
  --brand-amber: #f59e0b;

  --accent-glow: rgba(99, 102, 241, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  --shadow-phone: 0 25px 60px -15px rgba(0, 0, 0, 0.35);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 72px;
  --footer-height: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: #f8fafc;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* Background Mesh & Ambient Glows */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -150px;
  right: -150px;
}

/* ==========================================================================
   Top Stepper Navigation Bar
   ========================================================================== */
.onboarding-nav {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-primary);
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-dot {
  color: var(--brand-indigo);
}

/* 5-Step Stepper (Vubio Style) */
.stepper-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}

.step-item:hover {
  transform: translateY(-1px);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1.5px solid #cbd5e1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

/* Completed Step */
.step-item.completed .step-circle {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.step-item.completed .check-icon {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
}

.step-item.completed .step-label {
  color: var(--text-main);
  font-weight: 700;
}

/* Active Step */
.step-item.active .step-circle {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.14);
}

.step-item.active .step-label {
  color: #0f172a;
  font-weight: 800;
}

/* Connecting Lines between steps */
.step-line {
  width: 36px;
  height: 2px;
  background: #e2e8f0;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.step-line.completed,
.step-line.active {
  background: #0f172a;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.render-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn-exit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-exit:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* ==========================================================================
   Main Onboarding Canvas
   ========================================================================== */
.onboarding-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px calc(var(--footer-height) + 40px);
  position: relative;
  z-index: 10;
}

/* Step Header */
.step-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-indigo);
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.step-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.15;
}

.step-subtitle {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Demo Card Container (2-Column Grid) */
.demo-card-container {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
  align-items: start;
}

/* ==========================================================================
   LEFT COLUMN: High-Fidelity Smartphone Mockup
   ========================================================================== */
.phone-column {
  display: flex;
  justify-content: center;
}

.phone-device-wrap {
  position: relative;
  width: 360px;
}

.phone-frame {
  width: 100%;
  height: 720px;
  background: #111827;
  border-radius: 48px;
  padding: 11px;
  box-shadow: 
    0 0 0 2px #374151,
    0 0 0 6px #1f2937,
    0 25px 50px -12px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

/* Titanium Rim Highlights */
.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.camera-lens {
  width: 10px;
  height: 10px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 50%;
}

/* Phone Screen */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: #000000;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.demo-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Floating Top Bar inside Phone */
.video-top-bar {
  position: absolute;
  top: 54px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 25;
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.sound-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.04);
}

.hd-badge {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Big Center Play Button */
.center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-play-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Viral Caption Pill */
.live-caption-pill {
  position: absolute;
  bottom: 125px;
  left: 18px;
  right: 68px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  z-index: 25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.caption-highlight {
  color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Phone Side Actions (TikTok / Reels Style) */
.phone-side-actions {
  position: absolute;
  right: 12px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 25;
}

.side-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.side-action-item:hover {
  transform: scale(1.1);
}

.side-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.side-action-count {
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.creator-avatar-slot {
  position: relative;
  margin-bottom: 4px;
}

.side-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.side-avatar-plus {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 17px;
  height: 17px;
  background: var(--brand-rose);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1.5px solid #000;
}

/* Rotating Music Disc */
.music-disc-rotating {
  width: 42px;
  height: 42px;
  background: #111827;
  border: 8px solid #1f2937;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: rotateDisc 4s linear infinite;
}

.music-disc-rotating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes rotateDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Video Bottom Metadata */
.video-bottom-meta {
  position: absolute;
  bottom: 22px;
  left: 16px;
  right: 68px;
  z-index: 25;
  color: #ffffff;
}

.creator-handle-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.creator-handle {
  font-size: 13.5px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.verified-badge {
  background: #0284c7;
  color: #fff;
  font-size: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.video-short-caption {
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-short-caption .tag {
  color: #93c5fd;
  font-weight: 600;
}

.music-track-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.85;
}

/* Interactive Video Scrubber */
.video-scrubber-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 30;
}

.scrubber-progress {
  width: 35%;
  height: 100%;
  background: #ffffff;
  transition: width 0.1s linear;
}

.phone-shadow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 25px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}

/* ==========================================================================
   RIGHT COLUMN: Intelligence, Script, Virality & Launch Cockpit
   ========================================================================== */
.cockpit-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cockpit-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.cockpit-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title-group h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.card-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-indigo);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.btn-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: var(--brand-indigo);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pill-action:hover {
  background: #e0e7ff;
  transform: translateY(-1px);
}

/* Hook Preview Box */
.hook-preview-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid var(--brand-indigo);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.hook-box-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.badge-high-retention {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 6px;
}

.hook-text {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}

/* Script Scenes Grid */
.script-scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.scene-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
}

.scene-num {
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
}

.scene-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.scene-line {
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
  font-weight: 500;
}

/* Caption Copy Box */
.caption-copy-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.caption-copy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.btn-copy-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-sm:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.caption-body {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

/* Algorithm Predictor (Triple Metrics) */
.score-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.metrics-triple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.metric-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-val .unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-indigo);
}

.metric-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
}

.metric-sub {
  font-size: 10px;
  color: #94a3b8;
}

/* Specs Row */
.specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.spec-label {
  color: #64748b;
  font-weight: 600;
}

.chip-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.spec-val {
  color: #0f172a;
  font-weight: 700;
}

/* Card 3: Action Card & Multi-Casting Hero CTA */
.action-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
}

.action-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.action-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-emerald);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.connected-channels-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.chan-dot.green {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

/* Primary Hero Publish Button */
.btn-hero-publish {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 14px;
  text-align: left;
  overflow: hidden;
}

.btn-hero-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px -6px rgba(15, 23, 42, 0.45);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.btn-hero-publish:active {
  transform: translateY(0);
}

.btn-glow-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.btn-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.btn-text-wrap {
  flex: 1;
}

.btn-main-text {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.btn-sub-text {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.btn-arrow {
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.btn-hero-publish:hover .btn-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

/* Secondary Actions Row */
.secondary-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

/* ==========================================================================
   Bottom Sticky Stepper Footer (Vubio-Style)
   ========================================================================== */
.onboarding-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--surface-card-border);
  display: flex;
  align-items: center;
  z-index: 100;
}

.footer-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-footer-back {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-footer-back:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.footer-step-counter {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.footer-step-counter span {
  color: #0f172a;
  font-weight: 700;
}

.btn-footer-next {
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-footer-next:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

/* ==========================================================================
   Toast Notification Component
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease;
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .demo-card-container {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .phone-column {
    margin-bottom: 20px;
  }

  .script-scenes-grid {
    grid-template-columns: 1fr;
  }

  .secondary-actions-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .onboarding-nav {
    padding: 0 16px;
  }

  .stepper-container .step-label {
    display: none;
  }

  .step-line {
    width: 18px;
    margin-bottom: 0;
  }

  .phone-frame {
    height: 640px;
  }

  .footer-inner {
    padding: 0 16px;
  }
}

/* ==========================================================================
   Multi-Step Wizard Views & Animations
   ========================================================================== */
.step-view {
  display: none;
}

.step-view.active {
  display: block;
  animation: stepFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* User Profile Navbar Widget */
.user-profile-menu {
  display: flex;
  align-items: center;
}

.user-profile-menu.hidden {
  display: none !important;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--surface-card-border);
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.user-avatar-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name-display {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.user-company-badge {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-logout-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 2px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-logout-icon:hover {
  color: #ef4444;
  background: #fef2f2;
}

.btn-top-signin.hidden {
  display: none !important;
}

/* ==========================================================================
   Step 1: Brand Info & URL Extractor (Vubio-Style Single Card)
   ========================================================================== */
.step-card-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--surface-card-border);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}

.brand-input-group {
  margin-bottom: 24px;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.input-label-row label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.url-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  transition: all 0.2s;
}

.url-search-bar:focus-within {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.url-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
}

.btn-analyze-url {
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-analyze-url:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.preset-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preset-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.preset-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Extracted Brand Card */
.brand-extracted-card {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.brand-extracted-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-extracted-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.brand-header-meta {
  flex: 1;
}

.brand-extracted-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.brand-extracted-category {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-field-group {
  margin-bottom: 16px;
}

.form-field-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.form-input-text {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.form-input-text:focus {
  border-color: #0f172a;
}

.highlights-tags-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight-tag-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 12px;
}

.highlight-tag-input-row input {
  flex: 1;
  border: none;
  font-size: 13px;
  outline: none;
  color: var(--text-main);
}

/* ==========================================================================
   Step 2: Growth Plan & Cadence
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.plan-card {
  background: #ffffff;
  border: 2px solid var(--surface-card-border);
  border-radius: 18px;
  padding: 24px 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
}

.plan-card.selected {
  border-color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.plan-badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.plan-card-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.plan-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.plan-rate {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.plan-rate span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.plan-feature-list li {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-feature-list li::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
}

/* Audience Pills */
.audience-section {
  background: #ffffff;
  border: 1px solid var(--surface-card-border);
  border-radius: 16px;
  padding: 22px 24px;
}

.audience-pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.audience-pill {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.audience-pill.selected {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* ==========================================================================
   Step 3: Persona / AI Creator Selection
   ========================================================================== */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.creator-card {
  background: #ffffff;
  border: 2px solid var(--surface-card-border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.creator-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}

.creator-card.selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12);
}

.creator-img-wrap {
  height: 200px;
  position: relative;
  background: #0a0d14;
  overflow: hidden;
}

.creator-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.creator-card:hover .creator-img-wrap img {
  transform: scale(1.04);
}

.creator-selected-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.creator-card.selected .creator-selected-badge {
  display: flex;
}

.creator-niche-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.creator-card-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.creator-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.creator-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.creator-card-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.btn-voice-preview {
  width: 100%;
  margin-top: auto;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-voice-preview:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-voice-preview.playing {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

/* ==========================================================================
   Step 4: Social Channels Connect
   ========================================================================== */
.channels-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid var(--surface-card-border);
  border-radius: 16px;
  padding: 18px 22px;
  transition: all 0.2s;
}

.channel-card:hover {
  border-color: #cbd5e1;
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.channel-icon-wrap.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.channel-icon-wrap.tiktok {
  background: #000000;
  color: #fff;
}

.channel-icon-wrap.youtube {
  background: #ff0000;
  color: #fff;
}

.channel-meta h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.channel-meta p {
  font-size: 12px;
  color: var(--text-muted);
}

.channel-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-handle-input {
  width: 170px;
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

.channel-handle-input:focus {
  border-color: #0f172a;
}

.btn-channel-connect {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-channel-connect:hover {
  background: #e2e8f0;
}

.btn-channel-connect.connected {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* ==========================================================================
   High-Tech Generation Loader Overlay
   ========================================================================== */
.generation-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.generation-loader-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loader-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 48px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
}

.loader-anim-disc {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid #f1f5f9;
  border-top-color: #0f172a;
  margin: 0 auto 20px;
  animation: spinLoader 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

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

.loader-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.loader-step-text {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  min-height: 20px;
  transition: all 0.2s;
}

.btn-footer-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

