/* ==========================================================================
   LIFT FACIAL PRO V2 — OFFICIAL DESIGN SYSTEM
   Palette:
     Primary:      #7938B5
     Dark Purple:  #542478
     Background:   #FAF5FD
     Lavender:     #DCC5F1
     Text:         #291B36
   Typography:
     Headings:     'Manrope', sans-serif
     Body/UI:      'DM Sans', sans-serif
   ========================================================================== */

:root {
  --lfp-primary: #7938B5;
  --lfp-primary-hover: #692DA1;
  --lfp-primary-dark: #542478;
  --lfp-primary-deep: #2E1146;
  --lfp-bg: #FAF5FD;
  --lfp-surface: #FFFFFF;
  --lfp-lavender: #DCC5F1;
  --lfp-lavender-soft: #F3E9FC;
  --lfp-lavender-tint: #FAF6FE;
  --lfp-text: #291B36;
  --lfp-text-secondary: #68557A;
  --lfp-text-muted: #9381A4;
  --lfp-border: #E8DAF6;
  --lfp-success: #2EA866;
  --lfp-success-bg: #E9F9F0;
  --lfp-danger: #D1435B;
  --lfp-danger-bg: #FDECEF;
  --lfp-gold: #F4C44E;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-xs: 0 2px 8px rgba(84, 36, 120, 0.05);
  --shadow-sm: 0 6px 20px rgba(84, 36, 120, 0.08);
  --shadow-md: 0 14px 36px rgba(84, 36, 120, 0.14);
  --shadow-cta: 0 10px 26px rgba(121, 56, 181, 0.36);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  height: 100%;
  background: #EFE4FA;
  color: var(--lfp-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: inherit;
}

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
}

img, video {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   MOBILE-FIRST APP VIEWPORT SHELL
   ========================================================================== */
.lfp-viewport {
  width: 100%;
  min-height: 100dvh;
  background: var(--lfp-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: 24px 16px;
    background: radial-gradient(circle at 50% 0%, #F4EAFC 0%, #E2CCF5 100%);
  }
  .lfp-viewport {
    width: 100%;
    max-width: 400px;
    min-height: 830px;
    max-height: min(880px, calc(100dvh - 48px));
    border-radius: 40px;
    box-shadow: 0 30px 84px rgba(41, 27, 54, 0.26), 0 0 0 8px rgba(255, 255, 255, 0.72);
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/* ==========================================================================
   TYPOGRAPHY & BUTTON PRIMITIVES
   ========================================================================== */
.btn-lfp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s ease;
}

.btn-lfp:active {
  transform: scale(0.982);
}

.btn-lfp-primary {
  background: linear-gradient(135deg, #8B46CA 0%, var(--lfp-primary) 55%, var(--lfp-primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-cta);
}

.btn-lfp-primary:hover {
  background: linear-gradient(135deg, #944FD4 0%, #6D2FA6 100%);
}

.btn-lfp-glow {
  background: linear-gradient(90deg, #984CE0 0%, #7938B5 50%, #8C44CC 100%);
  color: #FFFFFF;
  border: 1px solid rgba(220, 197, 241, 0.42);
  box-shadow: 0 12px 32px rgba(25, 6, 44, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-lfp-white {
  background: #FFFFFF;
  color: var(--lfp-primary-dark);
  box-shadow: 0 8px 24px rgba(28, 9, 46, 0.16);
}

.btn-lfp-secondary {
  background: var(--lfp-lavender-soft);
  color: var(--lfp-primary-dark);
  border: 1px solid var(--lfp-lavender);
}

.btn-lfp-ghost {
  background: transparent;
  color: var(--lfp-text-secondary);
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ==========================================================================
   SCREEN TRANSITIONS & ANIMATIONS
   ========================================================================== */
@keyframes lfpFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lfpSoftPulse {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50%      { transform: scale(1.04); opacity: 0.9; }
}

.anim-fade-up {
  animation: lfpFadeUp 0.48s var(--ease-out) both;
}
.anim-delay-1 { animation-delay: 0.07s; }
.anim-delay-2 { animation-delay: 0.14s; }
.anim-delay-3 { animation-delay: 0.21s; }

/* ==========================================================================
   TELA 01 — BOAS-VINDAS (WELCOME SCREEN)
   Matches Blueprint Screen 01 pixel-for-pixel in commercial luxury quality
   ========================================================================== */
.screen-welcome {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(90% 42% at 50% 35%, #270A42 0%, #270A42 36%, rgba(39, 10, 66, 0) 76%),
    linear-gradient(180deg, #542478 0%, #371158 28%, #270A42 52%, #3B155E 100%);
  color: #FFFFFF;
  padding: calc(20px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

.welcome-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 4;
  padding-top: 2px;
}

.welcome-lotus {
  width: 48px;
  height: 34px;
  color: #F4EAFC;
  filter: drop-shadow(0 4px 12px rgba(220, 197, 241, 0.32));
}

.welcome-wordmark {
  font-family: var(--font-heading);
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

/* Portrait Stage with 100% Seamless Radial Blend & Delicate Lift Arrows */
.welcome-hero-stage {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 292px;
  margin: 2px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.welcome-hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 98, 226, 0.28) 0%, rgba(121, 56, 181, 0) 70%);
  animation: lfpSoftPulse 5s ease-in-out infinite;
  pointer-events: none;
}

.welcome-portrait-wrap {
  position: relative;
  width: 288px;
  height: 292px;
  overflow: hidden;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 58%, rgba(0, 0, 0, 0.65) 76%, rgba(0, 0, 0, 0.15) 91%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 48%, #000 58%, rgba(0, 0, 0, 0.65) 76%, rgba(0, 0, 0, 0.15) 91%, transparent 100%);
}

.welcome-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  transform: scale(1.06);
}

.welcome-contour-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Welcome Copy & Checklist */
.welcome-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 1.62rem;
  font-weight: 800;
  line-height: 1.22;
  color: #FFFFFF;
  margin-bottom: 16px;
  padding: 0 4px;
}

.welcome-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 318px;
  margin: 0 auto 20px;
}

.welcome-checklist li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #F6EFFC;
}

.welcome-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--lfp-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

/* Welcome Footer CTA + Dots + Login */
.welcome-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.welcome-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(220, 197, 241, 0.36);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s var(--ease-out);
}

.welcome-dot.active {
  width: 22px;
  background: #FFFFFF;
}

.welcome-login-link {
  background: none;
  border: none;
  color: rgba(243, 233, 252, 0.88);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: none;
}

.welcome-login-link strong {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   BOTTOM SHEET MODAL (REAL AUTHENTICATION — LOGIN & REGISTER)
   ========================================================================== */
.lfp-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(28, 10, 44, 0.62);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.lfp-sheet-backdrop.open {
  display: flex;
}

@media (min-width: 500px) {
  .lfp-sheet-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.lfp-sheet {
  width: 100%;
  max-width: 420px;
  background: var(--lfp-bg);
  color: var(--lfp-text);
  border-radius: 28px 28px 0 0;
  padding: 22px 24px calc(26px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 48px rgba(28, 10, 44, 0.28);
  animation: lfpFadeUp 0.3s var(--ease-out) both;
}

@media (min-width: 500px) {
  .lfp-sheet {
    border-radius: 28px;
    padding: 26px;
  }
}

.lfp-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--lfp-lavender);
  margin: 0 auto 16px;
}

.lfp-field {
  margin-bottom: 14px;
}

.lfp-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lfp-text);
  margin-bottom: 6px;
}

.lfp-field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--lfp-border);
  background: var(--lfp-surface);
  color: var(--lfp-text);
  font-size: 0.96rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lfp-field input:focus {
  outline: none;
  border-color: var(--lfp-primary);
  box-shadow: 0 0 0 3px rgba(121, 56, 181, 0.14);
}

.lfp-alert-error {
  background: var(--lfp-danger-bg);
  color: var(--lfp-danger);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.hidden {
  display: none !important;
}


/* ==========================================================================
   SCREENS 02–11 — LIFT FACIAL PRO V2 INTERNAL APP SHELL & COMPONENTS
   ========================================================================== */
.lfp-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--lfp-bg);
  color: var(--lfp-text);
  min-height: 100%;
}

.lfp-scroll-body {
  flex: 1;
  padding: calc(16px + env(safe-area-inset-top)) 20px 24px;
}

/* Top Navigation Bar */
.lfp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lfp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--lfp-border);
  background: var(--lfp-surface);
  color: var(--lfp-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.15s ease;
}

.lfp-icon-btn:active {
  transform: scale(0.94);
}

.lfp-topbar-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--lfp-text);
  text-align: center;
  flex: 1;
}

/* Sticky Bottom Navigation (5 Tabs matching Screen 03/07/08/11) */
.lfp-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--lfp-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}

.lfp-nav-btn {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 2px;
  color: var(--lfp-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.15s ease;
}

.lfp-nav-btn svg {
  width: 22px;
  height: 22px;
}

.lfp-nav-btn.active {
  color: var(--lfp-primary);
  font-weight: 700;
}

/* ==========================================================================
   TELA 02 — QUESTIONÁRIO INTELIGENTE (SOFÍA CONVERSATIONAL QUIZ)
   ========================================================================== */
.quiz-progress-track {
  width: 100%;
  height: 6px;
  background: #EADCF8;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lfp-primary) 0%, #9B56D8 100%);
  border-radius: 99px;
  transition: width 0.35s var(--ease-out);
}

.sofia-guide-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sofia-avatar-md {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lfp-lavender);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.sofia-bubble {
  background: #EFE3FA;
  border: 1px solid var(--lfp-lavender);
  border-radius: 6px 20px 20px 20px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.sofia-bubble h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lfp-text);
  margin-bottom: 4px;
}

.sofia-bubble p {
  font-size: 0.86rem;
  color: var(--lfp-text-secondary);
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}

.quiz-opt-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--lfp-surface);
  border: 1.5px solid var(--lfp-border);
  color: var(--lfp-text);
  font-weight: 600;
  font-size: 0.96rem;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s var(--ease-out);
}

.quiz-opt-card.selected {
  border-color: var(--lfp-primary);
  background: #F7F0FD;
  box-shadow: 0 4px 16px rgba(121, 56, 181, 0.12);
}

.quiz-radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #C6B1DC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-opt-card.selected .quiz-radio-dot {
  border-color: var(--lfp-primary);
}

.quiz-opt-card.selected .quiz-radio-dot::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lfp-primary);
}

/* ==========================================================================
   TELA 03 — DASHBOARD PERSONALIZADO
   ========================================================================== */
.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dash-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lfp-lavender);
}

.dash-card-program {
  background: var(--lfp-surface);
  border: 1px solid var(--lfp-border);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 16px;
}

.dash-hero-session {
  background: linear-gradient(135deg, #642A99 0%, var(--lfp-primary-dark) 58%, #3B1659 100%);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.dash-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dash-hero-thumb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(220, 197, 241, 0.55);
  flex-shrink: 0;
}

.dash-hero-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-hero-play-badge {
  position: absolute;
  inset: 0;
  background: rgba(41, 27, 54, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.dash-quick-tile {
  background: var(--lfp-surface);
  border: 1px solid var(--lfp-border);
  border-radius: 18px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.dash-quick-tile:active {
  transform: scale(0.96);
}

.dash-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lfp-lavender-soft);
  color: var(--lfp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-quick-tile span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--lfp-text);
}

/* ==========================================================================
   TELA 04 — SESSÃO AUDIOVISUAL INTERATIVA (DARK SPA THEATER)
   ========================================================================== */
.player-theater {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #190C26;
  color: #FFFFFF;
  display: none;
  flex-direction: column;
}

.player-theater.open {
  display: flex;
}

@media (min-width: 640px) {
  .player-theater {
    max-width: 420px;
    max-height: min(880px, calc(100dvh - 48px));
    margin: auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  }
}

.theater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(25,12,38,0.95) 0%, rgba(25,12,38,0.4) 100%);
  z-index: 5;
}

.theater-modes {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 14px 10px;
  z-index: 5;
}

.theater-mode-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 197, 241, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #EADCF8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.theater-mode-pill.active {
  background: var(--lfp-primary);
  border-color: #B47EE8;
  color: #FFFFFF;
}

.theater-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #12081C;
  display: grid;
  grid-template-columns: 1fr;
}

.theater-stage.mode-split {
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.theater-pane {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.theater-pane video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1A1024;
}

.theater-pane video.video-mirrored {
  object-fit: cover;
}

#player-overlay:not(.hidden) ~ #lfp-lang-pill {
  display: none !important;
}

.video-mirrored {
  transform: scaleX(-1);
}

/* Mode 3: Camera main + Floating Instructor PiP */
.theater-stage.mode-pip #th-pane-instructor {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 112px;
  height: 148px;
  border-radius: 16px;
  z-index: 6;
  border: 2px solid rgba(220, 197, 241, 0.75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

/* Circular SVG Countdown Timer (Top Right of Stage — Matches Screen 04) */
.theater-timer-ring {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 62px;
  height: 62px;
  z-index: 7;
  background: rgba(25, 12, 38, 0.66);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater-timer-ring svg {
  position: absolute;
  inset: 0;
  width: 62px;
  height: 62px;
  transform: rotate(-90deg);
}

.theater-timer-text {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

.theater-step-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 7;
  background: rgba(22, 11, 34, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 197, 241, 0.25);
  border-radius: 18px;
  padding: 14px 16px;
}

.theater-footer {
  background: #190C26;
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(220, 197, 241, 0.12);
}

.theater-timeline {
  height: 5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.theater-timeline-fill {
  height: 100%;
  background: linear-gradient(90deg, #B57BEE 0%, var(--lfp-primary) 100%);
  width: 0%;
  transition: width 0.3s linear;
}

.theater-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.btn-transport-sec {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(220, 197, 241, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-transport-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #984CE0 0%, var(--lfp-primary) 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 26px rgba(121, 56, 181, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   TELA 05 — ESPELHO INTELIGENTE (SMART MIRROR)
   ========================================================================== */
.mirror-frame-card {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 26px;
  overflow: hidden;
  background: #221233;
  border: 2px solid var(--lfp-lavender);
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}

.mirror-frame-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.mirror-brackets {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  z-index: 3;
}

.mirror-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mirror-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--lfp-surface);
  border: 1px solid var(--lfp-border);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.mirror-status-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.mirror-status-dot.ok {
  background: #2EA866;
  color: #FFFFFF;
}

.mirror-status-dot.wait {
  background: var(--lfp-lavender-soft);
  color: var(--lfp-primary);
}

/* ==========================================================================
   TELA 06 — ASSISTENTE VIRTUAL SOFÍA
   ========================================================================== */
.sofia-quick-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--lfp-surface);
  border: 1px solid var(--lfp-border);
  border-radius: 16px;
  margin-bottom: 9px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--lfp-text);
  box-shadow: var(--shadow-xs);
}

.sofia-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
}

.sofia-msg {
  max-width: 88%;
  padding: 13px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.48;
}

.sofia-msg.bot {
  align-self: flex-start;
  background: #EFE3FA;
  border: 1px solid var(--lfp-lavender);
  color: var(--lfp-text);
  border-top-left-radius: 6px;
}

.sofia-msg.user {
  align-self: flex-end;
  background: var(--lfp-primary);
  color: #FFFFFF;
  border-bottom-right-radius: 6px;
}

.sofia-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lfp-surface);
  border: 1.5px solid var(--lfp-border);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  box-shadow: var(--shadow-xs);
}

.sofia-input-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.93rem;
  color: var(--lfp-text);
}

/* ==========================================================================
   TELA 07 — MI EVOLUCIÓN & TELA 08 — RITUALES & TELA 09 — TIENDA
   ========================================================================== */
.evo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.evo-stat-card {
  background: var(--lfp-surface);
  border: 1px solid var(--lfp-border);
  border-radius: 20px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.evo-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lfp-lavender-soft);
  color: var(--lfp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.evo-stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--lfp-text);
  line-height: 1.1;
}

.evo-stat-lbl {
  font-size: 0.78rem;
  color: var(--lfp-text-secondary);
  margin-top: 3px;
}

.evo-bars-wrap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 108px;
  padding: 12px 4px 4px;
}

.evo-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.evo-bar-pill {
  width: 16px;
  border-radius: 8px 8px 4px 4px;
  background: #E4D2F4;
  min-height: 10px;
  transition: height 0.35s var(--ease-out);
}

.evo-bar-pill.active {
  background: linear-gradient(180deg, #984CE0 0%, var(--lfp-primary) 100%);
}

/* Tela 08: Search & Ritual List */
.lfp-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lfp-surface);
  border: 1.5px solid var(--lfp-border);
  border-radius: 999px;
  padding: 11px 16px;
  margin-bottom: 14px;
}

.lfp-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.92rem;
}

.lfp-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.lfp-chips-row::-webkit-scrollbar { display: none; }

.lfp-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--lfp-border);
  background: var(--lfp-surface);
  color: var(--lfp-text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.lfp-chip.active {
  background: var(--lfp-primary);
  border-color: var(--lfp-primary);
  color: #FFFFFF;
}

.ritual-row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--lfp-surface);
  border: 1px solid var(--lfp-border);
  border-radius: 20px;
  padding: 11px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease;
}

.ritual-row-card:active {
  transform: scale(0.985);
}

.ritual-row-thumb {
  width: 84px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Tela 09: Store */
.store-hero-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 152px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.store-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(84, 36, 120, 0.88) 0%, rgba(121, 56, 181, 0.32) 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #FFFFFF;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.store-item-card {
  background: var(--lfp-surface);
  border: 1px solid var(--lfp-border);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.store-item-img {
  width: 100%;
  height: 124px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Tela 10: Assinatura Premium */
.screen-premium {
  flex: 1;
  min-height: 100%;
  background: linear-gradient(180deg, #5A2682 0%, #3E185E 52%, #291042 100%);
  color: #FFFFFF;
  padding: calc(16px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.premium-price-box {
  background: #FFFFFF;
  color: var(--lfp-text);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(15, 4, 28, 0.38);
}

/* Tela 11: Perfil Menu Rows */
.profile-menu-card {
  background: var(--lfp-surface);
  border: 1px solid var(--lfp-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.profile-menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--lfp-border);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--lfp-text);
  cursor: pointer;
  text-align: left;
}

.profile-menu-row:last-child {
  border-bottom: none;
}

.profile-menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--lfp-lavender-soft);
  color: var(--lfp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
