/* ==========================================================================
   LAVCENTER LANDING PAGE - LUXURY LILAC & LAVENDER DESIGN SYSTEM (p/fsa01)
   Palette: #8769AC (Deep Lilac) | #DEC1F5 (Pastel Lavender)
   ========================================================================== */

:root {
  /* Premium Lavender Color Palette */
  --primary-purple: #8769AC;
  --primary-lavender: #DEC1F5;
  --primary-glow: rgba(222, 193, 245, 0.35);
  --dark-bg: #0C0814;
  --dark-card: rgba(24, 16, 38, 0.78);
  --dark-card-border: rgba(222, 193, 245, 0.18);
  --text-main: #FFFFFF;
  --text-muted: #B3A5C9;
  --text-dark: #0C0814;
  --accent-green: #10B981;
  --accent-gold: #F59E0B;
  
  /* Typography & Spacing */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--dark-bg);
  color: var(--text-main);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Animation */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.blob-1 {
  width: 340px;
  height: 340px;
  background: var(--primary-purple);
  top: -90px;
  left: -90px;
  animation: floatBlob 12s ease-in-out infinite alternate;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-lavender);
  bottom: 5%;
  right: -70px;
  opacity: 0.35;
  animation: floatBlob 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 50px) scale(1.15); }
}

/* Main Container Otimizado para Mobile */
.app-container {
  width: 100%;
  max-width: 480px;
  padding: 16px 16px 32px 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  text-align: center;
  padding: 12px 0 20px 0;
}

.header-mystery, .header-revealed {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease-out;
}

.header-mystery.hidden, .header-revealed.hidden {
  display: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(222, 193, 245, 0.12);
  border: 1px solid rgba(222, 193, 245, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-lavender);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-lavender);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-lavender);
}

.mystery-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-text {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-lavender) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.logo-tag {
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -2px;
}

/* Card Container & Glassmorphism */
.card-container {
  position: relative;
  width: 100%;
  flex: 1;
}

.step-card {
  background: var(--dark-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--dark-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(135, 105, 172, 0.15);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.step-card.hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}

.step-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: cardFadeIn 0.4s ease-out;
}

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

/* Mystery Banner (Passos 1 e 2) */
.mystery-banner {
  position: relative;
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, rgba(135, 105, 172, 0.35) 0%, rgba(222, 193, 245, 0.15) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(222, 193, 245, 0.15);
}

.mystery-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  animation: bounceSoft 2s infinite ease-in-out;
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mystery-tag {
  background: rgba(12, 8, 20, 0.85);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(222, 193, 245, 0.25);
  color: var(--primary-lavender);
}

.card-body {
  padding: 24px;
}

.padding-top-0 {
  padding-top: 0;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.card-desc strong {
  color: var(--primary-lavender);
}

/* Forms & Inputs */
.step-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(222, 193, 245, 0.2);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: all var(--transition-fast);
}

.phone-input-wrapper:focus-within {
  border-color: var(--primary-lavender);
  box-shadow: 0 0 18px var(--primary-glow);
  background: rgba(255, 255, 255, 0.08);
}

.country-code {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  padding-right: 10px;
  border-right: 1px solid rgba(222, 193, 245, 0.2);
  margin-right: 10px;
  white-space: nowrap;
}

.styled-input {
  width: 100%;
  height: 54px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(222, 193, 245, 0.2);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: all var(--transition-fast);
}

.phone-input-wrapper .styled-input {
  background: transparent;
  border: none;
  padding: 0;
}

.styled-input:focus {
  border-color: var(--primary-lavender);
  box-shadow: 0 0 18px var(--primary-glow);
  background: rgba(255, 255, 255, 0.08);
}

.styled-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input-error {
  font-size: 0.78rem;
  color: #F87171;
  font-weight: 600;
  min-height: 18px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-lavender) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(135, 105, 172, 0.45);
  transition: all var(--transition-fast);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.button-row {
  display: flex;
  gap: 12px;
}

.flex-1 { flex: 1; }

.btn-secondary {
  height: 56px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(222, 193, 245, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.shield-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-lavender);
}

.step-avatar {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 10px;
}

/* ================= STEP 3: REVELAÇÃO & VOUCHER ================= */
.reveal-header {
  padding: 28px 24px 16px 24px;
  text-align: center;
}

.celebration-chip {
  display: inline-block;
  background: linear-gradient(90deg, #8769AC, #DEC1F5);
  color: #0C0814;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(222, 193, 245, 0.35);
}

.reveal-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-lavender) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.reveal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Ticket Voucher Design */
.voucher-box {
  position: relative;
  background: linear-gradient(135deg, #1C132B 0%, #120A1E 100%);
  border: 1.5px dashed var(--primary-lavender);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(222, 193, 245, 0.1);
}

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

.voucher-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary-lavender);
  letter-spacing: 1px;
}

.voucher-discount {
  background: var(--primary-lavender);
  color: #0C0814;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.voucher-info {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #EAE3F7;
}

.voucher-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(222, 193, 245, 0.15);
}

.code-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.code-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-lavender);
  letter-spacing: 2px;
}

.btn-copy {
  background: rgba(222, 193, 245, 0.15);
  border: 1px solid rgba(222, 193, 245, 0.3);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* Cut notches on voucher */
.voucher-notch-left, .voucher-notch-right {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--dark-bg);
  border-radius: 50%;
  transform: translateY(-50%);
}
.voucher-notch-left { left: -9px; }
.voucher-notch-right { right: -9px; }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(222, 193, 245, 0.12);
  border-radius: var(--radius-md);
  padding: 14px;
}

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.feature-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #FFF;
}

.feature-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Status Alert */
.status-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(135, 105, 172, 0.15);
  border: 1px solid rgba(222, 193, 245, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
}

.check-icon {
  background: var(--primary-lavender);
  color: #0C0814;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.status-alert p {
  color: var(--text-muted);
  margin-top: 2px;
}

/* Footer */
.app-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
