/* ==========================================================================
   MemorIA - Warm Emotional Boutique Design System (Mobile-First PWA)
   Palette: Warm Linen / Alabaster, Royal Indigo & Sunset Amber (Non-ByStartup)
   ========================================================================== */

:root {
  /* Warm Emotional Canvas */
  --bg-page: #F6F4EE;             /* Desktop presentation background */
  --bg-surface: #FFFFFF;          /* Main mobile viewport background */
  --bg-card: #FFFFFF;             /* Card background */
  --bg-card-hover: #F9F8F5;       /* Card hover */
  --bg-card-subtle: #F5F3ED;      /* Subtle grouped cards */
  --bg-input: #FAF8F5;            /* Input field background */
  
  /* Brand Identity: Royal Indigo & Sunset Amber */
  --brand-primary: #4F46E5;       /* Royal Indigo - poetic, musical, trustworthy */
  --brand-primary-hover: #4338CA;
  --brand-secondary: #F59E0B;     /* Sunset Amber - warmth, golden memories */
  --brand-accent: #8B5CF6;        /* Soft Violet */
  --brand-glow: rgba(79, 70, 229, 0.22);
  --brand-subtle: rgba(79, 70, 229, 0.08);

  /* Fallback aliases for existing components */
  --coral: var(--brand-primary);
  --coral-dark: var(--brand-primary-hover);
  --coral-glow: var(--brand-glow);
  --coral-subtle: var(--brand-subtle);

  /* Warm Neutral Borders */
  --border: #E8E2D8;
  --border-light: #F0EBE1;
  --border-primary: rgba(79, 70, 229, 0.40);
  --border-coral: var(--border-primary);

  /* Warm Typography Hierarchy */
  --text-primary: #1C1917;        /* Warm Deep Espresso / Stone 900 */
  --text-secondary: #44403C;      /* Warm Stone 700 */
  --text-muted: #78716C;          /* Warm Stone 500 */
  --text-subtle: #A8A29E;         /* Warm Stone 400 */

  /* Shapes & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Desktop Presentation Shell / Device Frame */
.desktop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  padding: 12px 20px;
  margin-top: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.82rem;
  z-index: 100;
}

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.desktop-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.desktop-btn:hover {
  background: #FFFFFF;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.desktop-btn.active {
  border-color: var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
}

/* App Container (Responsive Mobile First - 100% Native on Mobile) */
.app-viewport {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  background-color: var(--bg-surface);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

.dynamic-island,
.status-bar {
  display: none !important;
}

/* ==========================================================================
   Desktop Mode Layout (Wide, Responsive, High-End Presentation)
   Activated by default on desktop screens (>=900px) or via Device Switcher
   ========================================================================== */

/* ==========================================================================
   Desktop Responsive System (Wide Layouts for Screens >= 900px)
   Applied automatically by media query, or forced with body.desktop-mode
   ========================================================================== */

@media (min-width: 900px) {
  body:not(.mobile-mode),
  body.desktop-mode {
    background-color: var(--bg-page);
  }

  body:not(.mobile-mode) .app-viewport,
  body.desktop-mode .app-viewport {
    max-width: 1060px;
    height: auto;
    min-height: 82vh;
    margin: 18px auto 44px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 
      0 20px 50px -15px rgba(28, 25, 23, 0.10),
      0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: visible;
  }

  body:not(.mobile-mode) .dynamic-island,
  body:not(.mobile-mode) .status-bar,
  body.desktop-mode .dynamic-island,
  body.desktop-mode .status-bar {
    display: none !important;
  }

  body:not(.mobile-mode) .app-header,
  body.desktop-mode .app-header {
    padding: 16px 36px;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  body:not(.mobile-mode) .screen-scroll,
  body.desktop-mode .screen-scroll {
    overflow-y: visible;
    padding: 32px 40px 48px;
    max-height: none;
    height: auto;
  }

  body:not(.mobile-mode) .app-bottom-bar,
  body.desktop-mode .app-bottom-bar {
    position: relative;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    border-radius: 0 0 24px 24px;
    padding: 18px 40px;
    box-shadow: none;
    display: flex;
    justify-content: flex-end;
  }

  body:not(.mobile-mode) #btnNext,
  body.desktop-mode #btnNext {
    max-width: 320px;
  }

  /* Screen 1 Desktop: 2-Column Hero & Showcase */
  body:not(.mobile-mode) .hero-desktop-grid,
  body.desktop-mode .hero-desktop-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 44px;
    align-items: start;
    text-align: left;
  }

  body:not(.mobile-mode) .hero-cta-btn,
  body.desktop-mode .hero-cta-btn {
    display: inline-flex !important;
    width: auto !important;
    padding: 14px 28px;
    font-size: 0.98rem;
    margin: 16px 0 26px;
    box-shadow: 0 6px 20px var(--brand-glow);
  }

  body:not(.mobile-mode) #screen1 .hero-title,
  body.desktop-mode #screen1 .hero-title {
    font-size: 2.6rem;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    text-align: left;
  }

  body:not(.mobile-mode) #screen1 .hero-desc,
  body.desktop-mode #screen1 .hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 16px;
  }

  body:not(.mobile-mode) #screen1 .hero-features,
  body.desktop-mode #screen1 .hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

  body:not(.mobile-mode) #screen1 .hero-mockup-card,
  body.desktop-mode #screen1 .hero-mockup-card {
    margin-top: 0;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.08);
  }

  body:not(.mobile-mode) #screen1 .reviews-section,
  body.desktop-mode #screen1 .reviews-section {
    margin-top: 24px;
  }

  /* Screen 2 Desktop: 3-Column Occasion Cards */
  body:not(.mobile-mode) #screen2,
  body.desktop-mode #screen2 {
    max-width: 940px;
    margin: 0 auto;
  }

  body:not(.mobile-mode) #screen2 .quiz-header,
  body.desktop-mode #screen2 .quiz-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
  }

  body:not(.mobile-mode) #screen2 #occasionOptions,
  body.desktop-mode #screen2 #occasionOptions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Screen 3 Desktop: 2-Column Guided Form */
  body:not(.mobile-mode) #screen3,
  body.desktop-mode #screen3 {
    max-width: 960px;
    margin: 0 auto;
  }

  body:not(.mobile-mode) #screen3 .quiz-header,
  body.desktop-mode #screen3 .quiz-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
  }

  body:not(.mobile-mode) .quiz3-desktop-grid,
  body.desktop-mode .quiz3-desktop-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 36px;
    align-items: start;
  }

  body:not(.mobile-mode) #screen3 .form-textarea,
  body.desktop-mode #screen3 .form-textarea {
    min-height: 190px;
  }

  /* Screen 4 Desktop: 2-Column Music & Voice Selection */
  body:not(.mobile-mode) #screen4,
  body.desktop-mode #screen4 {
    max-width: 960px;
    margin: 0 auto;
  }

  body:not(.mobile-mode) #screen4 .quiz-header,
  body.desktop-mode #screen4 .quiz-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
  }

  body:not(.mobile-mode) #screen4 #genreOptions,
  body.desktop-mode #screen4 #genreOptions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  body:not(.mobile-mode) #screen4 .chip-group,
  body.desktop-mode #screen4 .chip-group {
    display: flex;
    gap: 12px;
  }

  /* Screen 5 Desktop: 6-Column Photos Gallery */
  body:not(.mobile-mode) #screen5,
  body.desktop-mode #screen5 {
    max-width: 960px;
    margin: 0 auto;
  }

  body:not(.mobile-mode) #screen5 .quiz-header,
  body.desktop-mode #screen5 .quiz-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 24px;
  }

  body:not(.mobile-mode) #screen5 .fast-demo-btn,
  body.desktop-mode #screen5 .fast-demo-btn {
    max-width: 320px;
    margin: 0 auto 20px;
  }

  body:not(.mobile-mode) #screen5 .upload-dropzone,
  body.desktop-mode #screen5 .upload-dropzone {
    padding: 38px 24px;
    margin-bottom: 24px;
  }

  body:not(.mobile-mode) #screen5 .photos-grid,
  body.desktop-mode #screen5 .photos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }

  /* Screen 1 Desktop: Hide duplicate bottom bar on desktop */
  body:not(.mobile-mode) #screen1.active ~ #appBottomBar,
  body.desktop-mode #screen1.active ~ #appBottomBar,
  body:not(.mobile-mode) .screen-scroll:has(#screen1.active) ~ #appBottomBar,
  body.desktop-mode .screen-scroll:has(#screen1.active) ~ #appBottomBar {
    display: none !important;
  }

  /* Screen 6 & Screen 8 Desktop: 2-Column Cinematic Video Studio / Teaser */
  body:not(.mobile-mode) #screen6,
  body:not(.mobile-mode) #screen8,
  body.desktop-mode #screen6,
  body.desktop-mode #screen8 {
    max-width: 980px;
    margin: 0 auto;
  }

  body:not(.mobile-mode) .delivery-desktop-grid,
  body.desktop-mode .delivery-desktop-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
  }

  body:not(.mobile-mode) .delivery-header-desktop,
  body.desktop-mode .delivery-header-desktop {
    display: block;
    text-align: left;
    margin-bottom: 20px;
  }

  /* Screen 7 Desktop: 2-Column Split Checkout */
  body:not(.mobile-mode) #screen7,
  body.desktop-mode #screen7 {
    max-width: 980px;
    margin: 0 auto;
  }

  body:not(.mobile-mode) #screen7 .quiz-header,
  body.desktop-mode #screen7 .quiz-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
  }

  body:not(.mobile-mode) .checkout-desktop-grid,
  body.desktop-mode .checkout-desktop-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.15fr) minmax(360px, 1fr);
    gap: 40px;
    align-items: start;
  }

  body:not(.mobile-mode) .checkout-col-left,
  body:not(.mobile-mode) .checkout-col-right,
  body.desktop-mode .checkout-col-left,
  body.desktop-mode .checkout-col-right {
    min-width: 0;
    width: 100%;
  }

  body:not(.mobile-mode) .pix-box,
  body.desktop-mode .pix-box {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  body:not(.mobile-mode) .simulate-pix-btn,
  body.desktop-mode .simulate-pix-btn {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
  }
}

/* Mobile Mode rules (100% Native on Mobile, Zero Mockup Bezels) */
body.mobile-mode .app-viewport {
  max-width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: auto !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

body.mobile-mode .dynamic-island,
body.mobile-mode .status-bar {
  display: none !important;
}

body.mobile-mode .app-header {
  padding: 12px 18px !important;
  border-radius: 0 !important;
}

body.mobile-mode .screen-scroll {
  padding: 16px 18px 24px !important;
  max-height: none !important;
  height: auto !important;
  overflow-y: visible !important;
}

body.mobile-mode .hero-desktop-grid,
body.mobile-mode .quiz3-desktop-grid,
body.mobile-mode .checkout-desktop-grid,
body.mobile-mode .delivery-desktop-grid {
  display: flex !important;
  flex-direction: column !important;
}

body.mobile-mode .delivery-header-desktop {
  display: none !important;
}

.hero-cta-btn {
  display: flex !important;
  width: 100% !important;
  max-width: 100%;
  padding: 15px 22px;
  font-size: 1.02rem;
  font-weight: 800;
  margin: 16px 0 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 22px var(--brand-glow);
  box-sizing: border-box;
}

body.mobile-mode .hero-cta-btn {
  display: flex !important;
  width: 100% !important;
  margin: 16px 0 20px !important;
}

body.mobile-mode #screen1 .hero-title {
  font-size: 1.7rem !important;
  text-align: center !important;
}

body.mobile-mode #screen1 .hero-desc {
  font-size: 0.85rem !important;
  text-align: center !important;
}

body.mobile-mode #screen1 .hero-features {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.mobile-mode #screen2 #occasionOptions {
  display: flex !important;
  flex-direction: column !important;
}

body.mobile-mode #screen4 #genreOptions {
  display: flex !important;
  flex-direction: column !important;
}

body.mobile-mode #screen5 .photos-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

body.mobile-mode .app-bottom-bar {
  justify-content: stretch;
  padding: 14px 18px 20px;
}

.screen-scroll:has(#screen1.active) ~ .app-bottom-bar,
.app-bottom-bar.hidden-bar,
#screen6.active ~ .app-bottom-bar,
#screen7.active ~ .app-bottom-bar,
#screen8.active ~ .app-bottom-bar {
  display: none !important;
}

body.mobile-mode #btnNext {
  max-width: 100% !important;
}

/* Mobile Screen overrides (Phones & Tablets < 900px) */
@media (max-width: 899px) {
  body {
    background-color: var(--bg-surface) !important;
  }
  .desktop-controls {
    display: none !important;
  }
  .app-viewport {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* iPhone Island & Status Bar (Disabled - Native Clean Web App) */
.dynamic-island,
.status-bar {
  display: none !important;
}

/* App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 12px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
  min-height: 52px;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.logo-header span.highlight {
  color: var(--brand-primary);
}

.back-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--brand-subtle);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.back-btn.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Header User Account Button */
.header-user-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-user-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-subtle);
}

.header-user-btn.logged-in {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
}

.stepper-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: opacity 0.2s ease;
}

/* Stepper Progress Bar */
.progress-container {
  padding: 6px 18px 0;
  background: #FFFFFF;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: #F3F4F6;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease-spring);
  box-shadow: 0 0 10px var(--brand-glow);
}

/* Scrollable Screen Content Container */
.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 18px 24px;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

/* Screen Switching */
.screen {
  display: none;
  flex-direction: column;
  animation: screenFadeIn 0.25s var(--ease-spring);
}

.screen.active {
  display: flex;
}

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

/* Header & Text Components in Quiz */
.quiz-header {
  margin-bottom: 18px;
  text-align: left;
}

.quiz-step-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-primary);
  margin-bottom: 4px;
  display: inline-block;
}

.quiz-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.quiz-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Screen 1: Onboarding / Hero (Warm, Luminous & Emotional)
   ========================================================================== */
.onboarding-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-subtle);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Visual Mockup Card in Screen 1 */
.hero-mockup-card {
  width: 100%;
  background: linear-gradient(145deg, #FFFFFF 0%, #F5F3FF 100%);
  border: 1.5px solid #E0E7FF;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.08);
}

.hero-mockup-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mockup-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.mockup-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mockup-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: #E5E7EB;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.mockup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mockup-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mockup-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
}

.wave-bar {
  width: 3px;
  height: 12px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: waveAnim 1s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { height: 18px; animation-delay: 0.2s; }
.wave-bar:nth-child(3) { height: 8px;  animation-delay: 0.4s; }
.wave-bar:nth-child(4) { height: 22px; animation-delay: 0.1s; }
.wave-bar:nth-child(5) { height: 14px; animation-delay: 0.3s; }

@keyframes waveAnim {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

/* Feature 3-step icons */
.hero-features {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 22px;
  gap: 8px;
}

.feature-item {
  flex: 1;
  background: #FAF8F5;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}

.feature-icon {
  margin-bottom: 4px;
}

.feature-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.25;
}

/* Customer Reviews Section */
.reviews-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.reviews-header-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.reviews-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.review-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.review-stars {
  color: #F59E0B;
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.review-body {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.trust-guarantee-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  color: #065F46;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Hero Sample Play Button */
.hero-sample-btn {
  background: linear-gradient(135deg, var(--brand-primary), #6366F1);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px var(--brand-glow);
}

.hero-sample-btn:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

.hero-sample-btn.playing {
  animation: pulsePlay 1s infinite alternate;
}

/* Cards & Selection Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.select-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.select-card:hover {
  background: var(--bg-card-hover);
  border-color: #D1D5DB;
  transform: translateY(-2px);
}

.select-card.selected {
  background: rgba(79, 70, 229, 0.04);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 18px var(--brand-glow);
}

.select-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.select-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.select-card.selected .select-card-icon {
  background: var(--brand-subtle);
  color: var(--brand-primary) !important;
}

.select-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.select-card-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.select-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.select-card.selected .select-radio {
  border-color: var(--brand-primary);
}

.select-card.selected .select-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
}

/* Music Genre Cards */
.music-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.music-card.selected {
  border-color: var(--brand-primary);
  background: rgba(79, 70, 229, 0.04);
  box-shadow: 0 4px 18px var(--brand-glow);
}

.music-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.music-card.selected .music-card-icon {
  background: var(--brand-subtle);
  color: var(--brand-primary) !important;
}

.music-card-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.music-card-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.music-play-btn {
  background: #F3F4F6;
  border: 1px solid var(--border);
  color: var(--brand-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.music-play-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  transform: scale(1.08);
}

.music-play-btn.playing {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 0 12px var(--brand-glow);
  animation: pulsePlay 1s infinite alternate;
}

@keyframes pulsePlay {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

/* Forms & Text inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-subtle);
}

.form-textarea {
  min-height: 100px;
  resize: none;
  line-height: 1.45;
}

/* Chip Selector for Relationship and Voices */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip-btn {
  background: #F3F4F6;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  border-color: #D1D5DB;
  background: #E5E7EB;
}

.chip-btn.selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--brand-glow);
}

/* Suggestions under textarea */
.suggestion-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 600;
}

.pill-suggestion {
  display: inline-block;
  background: #F3F4F6;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  margin-right: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-suggestion:hover {
  background: var(--brand-subtle);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Screen 5: Uploads */
.fast-demo-btn {
  width: 100%;
  background: var(--brand-subtle);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fast-demo-btn:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: var(--brand-primary);
}

.upload-dropzone {
  border: 2px dashed #C7D2FE;
  background: #FAF8F5;
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.upload-dropzone:hover {
  border-color: var(--brand-primary);
  background: #F5F3FF;
}

.upload-icon {
  margin-bottom: 8px;
}

.upload-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.upload-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Photo Grid */
.photos-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.photos-count-badge {
  font-size: 0.74rem;
  background: #F3F4F6;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
}

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

.photo-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: #F3F4F6;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-remove-btn:hover {
  background: #DC2626;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Screen 7: Summary & Pix Checkout */
.summary-card {
  background: #FAF8F5;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.summary-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  gap: 18px;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-label {
  color: var(--text-secondary);
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
}

.summary-val {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
  flex: 1 1 auto;
}

.summary-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed var(--border);
  gap: 16px;
}

.summary-price-box span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.summary-price-box strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* Pix Container */
.pix-box {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pix-qr-container {
  width: 170px;
  height: 170px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  margin: 12px 0;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pix-qr-container svg {
  width: 100%;
  height: 100%;
}

.pix-timer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pix-code-field {
  width: 100%;
  background: #F3F4F6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 12px;
}

.btn-pix-copy {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-primary), #6366F1);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--brand-glow);
}

.btn-pix-copy:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.pix-status-pulsing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 700;
  margin-top: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-primary);
  border-radius: 50%;
  animation: pulseDot 1.2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.simulate-pix-btn {
  width: 100%;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.simulate-pix-btn:hover {
  background: #D1FAE5;
  border-color: #34D399;
}

/* Screen 7: Magic Loading Screen & Video Player */
.loading-magic-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 10px;
  flex: 1;
}

.magic-spinner {
  width: 70px;
  height: 70px;
  position: relative;
  margin-bottom: 24px;
}

.spinner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--brand-primary);
  animation: spin 1s linear infinite;
}

.spinner-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.magic-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.magic-step-text {
  font-size: 0.85rem;
  color: var(--brand-primary);
  font-weight: 700;
  min-height: 24px;
  margin-bottom: 16px;
}

.magic-progress-track {
  width: 220px;
  height: 6px;
  background: #F3F4F6;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.magic-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--radius-full);
  transition: width 0.3s linear;
}

/* Video Player Screen (Finished) */
.video-player-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-frame-box {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 480px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid #E5E7EB;
  box-shadow: 0 16px 36px rgba(0,0,0,0.25);
}

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

.video-overlay-controls {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 20%, transparent 70%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  pointer-events: none;
}

.video-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-badge {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 5px;
}

.video-badge span.red-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
}

.video-center-btn {
  align-self: center;
  background: var(--brand-primary);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  pointer-events: auto;
  border: none;
  box-shadow: 0 0 25px var(--brand-glow);
  transition: all 0.2s ease;
}

.video-center-btn:hover {
  transform: scale(1.1);
  background: var(--brand-primary-hover);
}

.video-overlay-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
}

.video-song-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.video-song-info p {
  font-size: 0.74rem;
  color: #E4E4E7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.sound-toggle-btn {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Lyrics Accordion */
.lyrics-accordion {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.lyrics-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.lyrics-trigger:hover {
  color: var(--brand-primary);
}

.lyrics-content {
  display: none;
  padding: 0 16px 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  white-space: pre-line;
}

.lyrics-accordion.open .lyrics-content {
  display: block;
}

/* Action Delivery Buttons */
.delivery-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
}

.btn-download-hd {
  background: linear-gradient(135deg, var(--brand-primary), #6366F1);
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px var(--brand-glow);
}

.btn-download-hd:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.btn-reset-flow {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 8px;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
  margin-top: 4px;
}

.btn-reset-flow:hover {
  color: var(--text-primary);
}

/* Viral Loop Card on Screen 7 */
.viral-loop-card {
  background: linear-gradient(135deg, #EEF2FF 0%, #FEF3C7 100%);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin-top: 4px;
}

.viral-loop-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.viral-loop-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.btn-viral-action {
  width: 100%;
  background: #FFFFFF;
  color: var(--brand-primary);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-viral-action:hover {
  background: var(--brand-subtle);
  border-color: var(--brand-primary);
}

/* ==========================================================================
   Screen 3: Gravação de Áudio Interativa (Momentos Marcantes)
   ========================================================================== */
.audio-record-box {
  background: #FAF8F5;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.audio-record-box:hover {
  border-color: var(--brand-primary);
}

.audio-state-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-record-mic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), #6366F1);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px var(--brand-glow);
  transition: all 0.2s ease;
}

.btn-record-mic:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
}

.audio-prompt-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.audio-subtext {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 320px;
}

.audio-state-recording {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.record-pulse-ring {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #DC2626;
}

.recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #DC2626;
  animation: recordBlink 1s infinite alternate;
}

@keyframes recordBlink {
  from { opacity: 0.3; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

.audio-wave-anim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
}

.audio-wave-anim span {
  width: 4px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: waveBar 0.9s ease-in-out infinite alternate;
}

.audio-wave-anim span:nth-child(2) { animation-delay: 0.15s; }
.audio-wave-anim span:nth-child(3) { animation-delay: 0.3s; }
.audio-wave-anim span:nth-child(4) { animation-delay: 0.45s; }
.audio-wave-anim span:nth-child(5) { animation-delay: 0.6s; }
.audio-wave-anim span:nth-child(6) { animation-delay: 0.25s; }
.audio-wave-anim span:nth-child(7) { animation-delay: 0.5s; }
.audio-wave-anim span:nth-child(8) { animation-delay: 0.35s; }

@keyframes waveBar {
  0% { height: 6px; }
  50% { height: 26px; }
  100% { height: 10px; }
}

.btn-stop-record {
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-stop-record:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

.recorded-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.recorded-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.btn-play-recorded {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-play-recorded:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

.btn-trash-record {
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-trash-record:hover {
  color: #DC2626;
  background: #FEE2E2;
}

/* ==========================================================================
   Screen 6: Prévia do Vídeo Borrada & Bloqueada (Teaser de Conversão)
   ========================================================================== */
.locked-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}

.blurred-canvas {
  filter: blur(14px);
  transform: scale(1.05);
  pointer-events: none;
}

.video-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: rgba(15, 17, 23, 0.52);
  backdrop-filter: blur(2px);
  z-index: 10;
  color: #FFFFFF;
}

.lock-badge-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #F59E0B;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.5px;
}

.lock-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin: auto 0;
}

.lock-circle-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lock-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.lock-desc {
  font-size: 0.78rem;
  color: #E4E4E7;
  max-width: 260px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.preview-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.perk-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   Direito a 1 Refação Gratuita (Botão & Modal Interativo)
   ========================================================================== */
.btn-refacao {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.btn-refacao:hover {
  background: #EEF2FF;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

/* Refação Success & Reprocessing State inside Modal */
.refacao-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.25);
  animation: pulseSuccess 2s infinite alternate;
}

@keyframes pulseSuccess {
  from { transform: scale(0.96); box-shadow: 0 4px 14px rgba(22, 163, 74, 0.2); }
  to { transform: scale(1.05); box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4); }
}

.refacao-details-card {
  background: #FAF8F5;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 14px 0 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refacao-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.refacao-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.refacao-detail-label {
  color: var(--text-muted);
  font-weight: 600;
}

.refacao-detail-val {
  color: var(--text-primary);
  font-weight: 700;
}

.refacao-applied-banner {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #166534;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
  animation: fadeIn 0.3s ease;
}

.badge-pill-success {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid #BBF7D0;
}

.btn-refacao.used {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #64748B !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Bottom Nav Footer & CTAs */
.app-bottom-bar {
  padding: 14px 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 40%, #FFFFFF 100%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #6366F1 100%);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 15px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 4px 20px var(--brand-glow);
  letter-spacing: -0.2px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-primary-hover) 0%, #4F46E5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.35);
}

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

/* Toast Notifications */
.toast-msg {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1C1917;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
  z-index: 300;
  white-space: nowrap;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
