/* ═══════════════════════════════════════════════════════════════
   Inova Flows Polígonos — Premium Light Emerald Design System
   Copied and adapted from Inova Flows 2.0 Aesthetic Standards
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Premium Light Theme Emerald (Inova Flows 2.0 Style) */
  --bg-page: #ffffff; /* Pure White background */
  --bg-card: #f8fafc; /* Slate 50 for secondary containers */
  --bg-glass: rgba(255, 255, 255, 0.85); /* Frosty light glass */
  
  --text-main: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b; /* Slate 500 */
  
  --primary: #10b981; /* Emerald 500 */
  --primary-hover: #059669; /* Emerald 600 (Darker for light mode contrast) */
  --primary-glow: rgba(16, 185, 129, 0.12);
  
  --accent: #3b82f6; /* Blue 500 */
  --red-error: #ef4444; /* Red 500 */
  
  --border: rgba(15, 23, 42, 0.08); /* Very soft slate border */
  --border-focus: rgba(16, 185, 129, 0.35);
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
  
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hidden { display: none !important; }
.active-view { display: flex; flex: 1; opacity: 1; transition: opacity 0.4s; }
.hidden-view { display: none !important; opacity: 0; }

/* ─── HEADER ────────────────────────────────────────────────── */
.glass-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
  z-index: 1000;
  position: relative;
}

/* Ocultação automática do cabeçalho quando na tela de upload (conforme Inova Flows 2.0) */
.app-container:has(#upload-section.active-view) .glass-header {
  display: none !important;
}

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

.logo img {
  height: 64px; 
  width: auto;
  margin: 0; 
  object-fit: contain;
  mix-blend-mode: multiply;
}

.badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.15);
  letter-spacing: 0.3px;
}

/* ─── MAIN CONTENT ─────────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

.main-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ─── UPLOAD SECTION ───────────────────────────────────────── */
#upload-section {
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centralização perfeita na tela */
  padding: 3rem 1.5rem; 
  overflow-y: auto;
  min-height: 0; 
  position: relative;
  z-index: 1;
}

.upload-container {
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
}

/* Estilo do Logo Centralizado */
.upload-logo {
  margin-top: -2rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-logo img {
  height: 96px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.upload-texts {
  margin-bottom: 2rem;
}

.upload-texts h2 {
  font-size: 2.25rem; 
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.upload-texts p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto;
}

/* Card Drop Zone Premium Estilo Inova Flows 2.0 (Menor e mais minimalista) */
.drop-zone {
  border: 1px solid #f1f5f9;
  border-radius: 20px; 
  padding: 1.25rem; 
  background: rgba(248, 250, 252, 0.6);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 300px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: rgba(16, 185, 129, 0.4);
  background: #ffffff;
  transform: scale(1.01);
  box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.15);
}

.drop-zone-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.drop-zone:hover .drop-zone-wrapper {
  transform: translateY(-4px);
}

.drop-zone-icon {
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(15, 23, 42, 0.02);
}

.drop-zone:hover .drop-zone-icon {
  color: var(--primary);
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.1);
}

.drop-zone-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: center;
  text-align: center;
}

.drop-zone-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-top: 0;
}

.drop-zone-subtitle {
  color: #94a3b8;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Badge de Aviso Flutuante Estilo Inova Flows 2.0 */
.warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.04);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #d97706; /* Amber 600 */
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #d97706;
  opacity: 0.4;
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ─── LOADING STATE ────────────────────────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  gap: 1.5rem;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-hover);
  animation: pulse-text 2s infinite ease-in-out;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; filter: drop-shadow(0 0 8px var(--primary-glow)); }
}

/* ─── MAP SECTION ──────────────────────────────────────────── */
#map-section {
  position: relative;
  height: 100%;
  width: 100%;
}

#map-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

#leaflet-map {
  width: 100%;
  height: 100%;
  background-color: #f8fafc;
}

.panel-mobile-header {
  display: none !important;
}

/* Premium Zoom & Map Controls Styles */
.leaflet-bar {
  border: none !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: #ffffff !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  transition: background-color 0.2s, color 0.2s;
}

.leaflet-bar a:hover {
  background-color: #f8fafc !important;
  color: var(--primary-hover) !important;
}

.leaflet-control-layers {
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
}
/* ─── FLOATING BANNER AVISO ─────────────────────────────────── */
.floating-banner {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(239, 68, 68, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  max-width: 90%;
  text-align: center;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-banner strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

@keyframes slideDown {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (max-width: 768px) {
  .floating-banner {
    top: 16px;
    font-size: 0.85rem;
    padding: 10px 16px;
    flex-direction: column;
    gap: 8px;
  }
}

/* ─── INFO PANEL (FLOATING SIDEBAR) ────────────────────────── */
.info-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 400px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  z-index: 1000;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-content h3 {
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 0.85rem;
}

.info-item {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.05);
  padding-bottom: 0.65rem;
}

.info-item strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.desc-scroll {
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.875rem;
  padding: 14px;
  background: rgba(248, 250, 252, 0.85); 
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
}

/* Scrollbar Style */
.desc-scroll::-webkit-scrollbar { width: 5px; }
.desc-scroll::-webkit-scrollbar-track { background: transparent; }
.desc-scroll::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.1); border-radius: 10px; }

.export-actions h4 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  filter: brightness(1.02);
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.04);
}

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

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  margin-bottom: -0.25rem;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--primary-hover);
  transform: translateX(-2px);
}

/* ─── TOAST / ALERTS ───────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    background: #ffffff;
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-left: 4px solid var(--red-error);
    font-size: 0.95rem;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ─── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Cabecalho */
  .glass-header { 
     padding: 0.4375rem 1.25rem; 
     flex-direction: row; 
     gap: 0.5rem; 
     align-items: center;
  }
  .logo { height: auto; overflow: visible; }
  .logo img { height: 48px; margin: 0; transform: none; mix-blend-mode: multiply; }
  .badge { display: none; }

  /* Upload area */
  #upload-section { 
    padding: 2.5rem 1rem; 
    justify-content: flex-start;
    display: block; 
    overflow-y: auto;
  }
  .upload-container {
    padding-bottom: 2rem;
  }
  .upload-logo {
    margin-top: -1rem;
  }
  .upload-logo img {
    height: 80px;
  }
  .upload-texts { margin-bottom: 2rem; }
  .upload-texts h2 { 
    font-size: 2rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.2; 
    letter-spacing: -0.5px;
  }
  .upload-texts p { font-size: 1rem; line-height: 1.5; }
  
  .drop-zone { 
    padding: 1.25rem 1rem; 
    gap: 0.65rem;
    border-radius: 20px;
    max-width: 300px;
  }
  .drop-zone-icon { padding: 0.5rem; border-radius: 10px; }
  .drop-zone-icon svg { width: 20px; height: 20px; }
  .drop-zone-title { font-size: 0.9rem; text-align: center; }
  .drop-zone-subtitle { font-size: 8px; text-align: center; }

  /* Painel do Mapa e Botoes - Bottom Sheet Colapsável */
  .panel-mobile-header {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0 0.8rem 0;
    width: 100%;
    margin-bottom: 0.5rem;
    position: relative;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  }
  
  .drag-handle {
    width: 40px;
    height: 5px;
    background: rgba(15, 23, 42, 0.12);
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    transition: background 0.3s;
  }
  
  .panel-mobile-header:hover .drag-handle {
    background: rgba(15, 23, 42, 0.25);
  }
  
  .panel-mobile-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 0.25rem;
  }
  
  .summary-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
  }
  
  .summary-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-hover);
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.15);
  }
  
  .btn-toggle-panel {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-20%);
    padding: 4px;
  }
  
  .chevron-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(180deg); /* Aponta para baixo quando expandido */
  }
  
  .info-panel.collapsed .chevron-icon {
    transform: rotate(0deg); /* Aponta para cima quando colapsado */
  }

  .info-panel {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 80vh;
    padding: 1.5rem;
    padding-top: 0.5rem;
    gap: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0); /* Estado expandido por padrao */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  }
  
  .info-panel.collapsed {
    transform: translateY(calc(100% - 75px)); /* Oculta o conteudo e deixa apenas os ~75px do header */
    overflow-y: hidden;
  }
  
  /* Fade out suave do conteudo interno ao colapsar */
  .info-panel #btn-back,
  .info-panel .info-content,
  .info-panel .export-actions {
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  
  .info-panel.collapsed #btn-back,
  .info-panel.collapsed .info-content,
  .info-panel.collapsed .export-actions {
    opacity: 0;
    pointer-events: none;
  }

  .info-content h3 { font-size: 1.25rem; margin-bottom: 0.85rem; padding-bottom: 0.65rem; }
  .info-item { font-size: 0.95rem; margin-bottom: 0.65rem; }
  .btn { padding: 0.85rem; font-size: 0.95rem; border-radius: 12px; }
  .buttons-grid { gap: 0.75rem; }
  
  /* Ajuste de mapa container pro painel nao cobrir tudo e impedir rolagem da pagina */
  #map-section {
    height: calc(100vh - 65px);
    position: relative;
    overflow: hidden;
  }
  #leaflet-map { height: 100%; }

  /* Toasts popup */
  .toast-container { bottom: 20px; left: 15px; right: 15px; }
  .toast { font-size: 0.85rem; padding: 0.75rem 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ESTILOS PREMIUM DO CHECKOUT PIX & BLUR FREEMIUM
   ═══════════════════════════════════════════════════════════════ */

/* Efeito de Blur no Mapa */
.locked-map {
    filter: blur(12px) !important;
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Overlay de Blur e Cadeado */
.blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.6s ease, visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

.blur-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex !important; /* Mantém o layout flex para transições */
}

/* Lock Card Premium */
.lock-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(16, 185, 129, 0.08);
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-icon {
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    border: 1px solid rgba(16, 185, 129, 0.12);
    animation: bounceLock 3s infinite ease-in-out;
}

.lock-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.lock-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-unlock {
    font-size: 1rem;
    padding: 0.95rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

/* Estilo dos botões bloqueados */
.btn-locked {
    opacity: 0.65;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
    background: #e2e8f0 !important;
    color: var(--text-muted) !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: none !important;
}

.btn-locked::after {
    content: "🔒";
    position: absolute;
    right: 16px;
    font-size: 0.95rem;
}

/* Modal PIX - Premium Glassmorphism */
.pix-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.4s ease, visibility 0.4s;
    opacity: 1;
    visibility: visible;
}

.pix-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex !important;
}

.pix-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pix-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
}

.btn-close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close-modal:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--text-main);
}

.pix-modal-header {
    padding: 1.75rem 2rem 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pix-header-icon {
    width: 42px;
    height: 42px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.pix-modal-header h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 800;
}

.pix-modal-body {
    padding: 0 2rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pix-price-tag {
    background: rgba(16, 185, 129, 0.06);
    border: 1px dashed rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-hover);
}

.pix-instructions p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pix-details-box {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pix-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

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

.detail-value {
    color: var(--text-main);
    font-weight: 600;
}

.highlight-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-hover);
    letter-spacing: 0.5px;
}

.btn-copy {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
}

.pix-confirm-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.field-label {
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 600;
}

.form-input {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    transition: var(--transition);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

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

.pix-modal-footer {
    padding: 0 2rem 2rem 2rem;
}

.w-full { width: 100%; }

/* Keyframes de animações premium */
@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

/* Responsivo do modal */
@media (max-width: 520px) {
    .pix-modal-content {
        border-radius: 20px;
    }
    .pix-modal-header, .pix-modal-body, .pix-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .price-value {
        font-size: 1.5rem;
    }
}

/* Seta de voltar na etapa 2 do PIX */
.btn-back-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-back-arrow:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-main);
}

/* Alerta de Auditoria */
.pix-audit-alert {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    text-align: left;
}

.pix-audit-alert p {
    font-size: 0.85rem;
    color: #1e3a8a;
    line-height: 1.5;
    margin: 0;
}

.alert-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botão do WhatsApp Flutuante */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background-color: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:active {
    transform: scale(1) translateY(0);
}

/* No mobile, movemos um pouco para cima para não colidir com o painel colapsado */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 90px; /* Acima do header de 75px da Bottom Sheet colapsada */
        right: 16px;
        width: 48px;
        height: 48px;
    }
    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ─── SEÇÕES INFORMATIVAS ABAIXO DA DOBRA ───────────────────── */
.landing-info-wrapper {
    margin-top: 5rem;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-bottom: 5rem;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
}

/* Indicador de Rolagem */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 2rem;
    cursor: default;
    user-select: none;
}

.chevron-down-icon {
    animation: bounceSlow 2s infinite;
    color: var(--primary);
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.landing-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.landing-info-section h3 {
    font-size: 1.85rem;
    text-align: center;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Grid de Como Funciona */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: var(--shadow-md);
    background: #ffffff;
}

.step-num {
    background: var(--primary-glow);
    color: var(--primary-hover);
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.step-card h4 {
    font-size: 1.15rem;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Grid de Público Alvo */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.audience-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.audience-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
}

.audience-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.audience-card h4 {
    font-size: 1.2rem;
    color: var(--text-main);
}

.audience-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Planos e Preços */
.pricing-container-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 23, 42, 0.12);
}

.pricing-card.pricing-featured {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.12);
}

.pricing-card.pricing-featured:hover {
    box-shadow: 0 20px 45px -10px rgba(16, 185, 129, 0.22);
    border-color: var(--primary-hover);
}

.badge-featured {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.pricing-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-hover);
    font-family: 'Outfit', sans-serif;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    letter-spacing: 0.05em;
}

.pricing-card h4 {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 700;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.pricing-price .currency {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-right: 0.25rem;
}

.pricing-price .amount {
    font-family: 'Outfit', sans-serif;
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-price .period {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    min-height: 54px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 auto 0; /* empurra o CTA para o final se houver diferença de altura */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
    text-align: left;
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
}

.pricing-cta {
    margin-top: 1.5rem;
    width: 100%;
    text-decoration: none;
    font-weight: 700;
}

/* FAQ Accordion Native Details/Summary */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* remove padrão do Chrome */
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none; /* remove padrão do Safari */
}

.faq-chevron {
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px dashed rgba(15, 23, 42, 0.03);
    animation: slideFadeDown 0.3s ease-out;
}

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

/* ─── RESPONSIVIDADE LANDING SECTIONS ───────────────────────── */
@media (max-width: 768px) {
    .landing-info-wrapper {
        margin-top: 3.5rem;
        gap: 3.5rem;
        padding-bottom: 3rem;
    }
    
    .landing-info-section h3 {
        font-size: 1.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .audience-card {
        padding: 1.5rem;
    }
    
    .pricing-container-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.25rem;
    }
    
    .pricing-price .amount {
        font-size: 2.75rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.975rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ─── ELEMENTOS DO USUÁRIO PLUS (SSO) ───────────────────────── */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plus-header-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.65rem !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    display: inline-flex;
    align-items: center;
}

.plus-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--primary-hover);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(16, 185, 129, 0.12); }
}

.plus-pricing-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 2px dashed rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 650px;
    margin: 2rem auto 0 auto;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.05);
}

.plus-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.plus-banner-sparkle {
    font-size: 2.5rem;
    animation: spinSlow 8s infinite linear;
}

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

.plus-pricing-banner h3 {
    font-size: 1.65rem;
    color: var(--text-main);
    font-weight: 800;
}

.plus-pricing-banner p {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}






