/* ==========================================================================
   AUTHNOW / INDUFAR - COMPONENTES, ONBOARDING, CÂMERA, RADAR, MODAIS E APP CLIP
   Arquivo: css/components.css (100% Completo - Card App Clip Idêntico à Imagem 2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. UTILITÁRIOS GERAIS
   -------------------------------------------------------------------------- */
.hide {
  display: none !important;
}

/* --------------------------------------------------------------------------
   0.1. CARD NATIVO APPLE APP CLIP DO IOS (IDÊNTICO À IMAGEM 2)
   -------------------------------------------------------------------------- */
.ios-appclip-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ios-appclip-backdrop.hide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ios-appclip-card {
  width: 100%;
  max-width: 440px;
  background-color: #FFFFFF;
  border-radius: 32px 32px 0 0;
  padding: 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: iosSheetSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iosSheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Container da imagem encostado nas bordas superiores sem margens brancas */
.ios-clip-banner-container {
  width: 100%;
  position: relative;
  background: #F8FAFC;
  overflow: hidden;
  line-height: 0;
}

.ios-clip-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Botão transparente posicionado exatamente sobre o "X" da sua imagem */
.ios-clip-close-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* Fallback caso a imagem não seja encontrada */
.ios-clip-svg-fallback {
  width: 100%;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 55%, #DBEAFE 100%);
  position: relative;
  line-height: 1.3;
}

.clip-text-col {
  flex: 1.3;
  text-align: left;
  z-index: 2;
}

.clip-banner-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #6B1414;
  line-height: 1.12;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.clip-banner-title .gold-text {
  color: #C59B27;
}

.clip-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #1F2937;
  line-height: 1.3;
  margin-bottom: 8px;
}

.clip-bullet i {
  color: #D97706;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.clip-building-art {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 160px;
}

.clip-fallback-logo {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.clip-authnow-badge {
  background: #7F1D1D;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.clip-authnow-badge i {
  color: #22C55E;
}

/* Corpo branco inferior do Card App Clip */
.ios-clip-body-content {
  padding: 16px 20px 20px;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.ios-clip-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ios-clip-info {
  text-align: left;
}

.ios-clip-title {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.ios-clip-desc {
  font-size: 0.92rem;
  color: #6B7280;
  font-weight: 500;
}

.btn-ios-abrir {
  background-color: #1D82FF;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 11px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 130, 255, 0.3);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  flex-shrink: 0;
}

.btn-ios-abrir:active {
  transform: scale(0.96);
  background-color: #0062CC;
}

/* Barra de Loading Animada (13.5s) */
.ios-clip-loading-box {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.ios-clip-loading-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #6B7280;
  font-weight: 600;
}

.ios-clip-loading-label strong {
  color: #1D82FF;
  font-weight: 800;
}

.ios-clip-progress-track {
  width: 100%;
  height: 5px;
  background-color: #E5E7EB;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.ios-clip-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1D82FF 0%, #3B82F6 100%);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

/* Rodapé "Fornecido por AuthNow - Product Verification [L]" */
.ios-clip-meta-footer {
  border-top: 1px solid #E5E7EB;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clip-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clip-app-icon-blue {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, #60A5FA 0%, #2563EB 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.clip-provider-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.clip-provider-label {
  font-size: 0.72rem;
  color: #6B7280;
  font-weight: 500;
}

.clip-provider-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.clip-provider-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #111827;
}

.badge-rating-l {
  background-color: #22C55E;
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.clip-meta-right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9CA3AF;
  font-size: 0.82rem;
  font-weight: 700;
}

.appclip-symbol-a {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   1. TELAS FULLSCREEN AUTHNOW
   -------------------------------------------------------------------------- */
.auth-fullscreen-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  z-index: 100;
  background: linear-gradient(180deg, #1C1138 0%, #2A155E 40%, #170E30 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  color: #FFFFFF;
}

.auth-fullscreen-view:not(.active) {
  display: none;
}

.auth-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  flex-shrink: 0;
}

.icon-btn-round {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.icon-btn-round:active {
  background-color: rgba(255, 255, 255, 0.3);
}

.header-spacer {
  width: 44px;
}

.authnow-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.authnow-shield-mini {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.authnow-shield-mini .fa-shield {
  font-size: 2.1rem;
  color: #10B981;
}

.authnow-shield-mini .check-inner {
  position: absolute;
  font-size: 1.05rem;
  color: #FFFFFF;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.authnow-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
}

.authnow-brand-text .brand-auth {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.authnow-brand-text .brand-now {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #34D399;
}

/* --------------------------------------------------------------------------
   2. CARD DE ONBOARDING & TERMOS (4 SEGUNDOS)
   -------------------------------------------------------------------------- */
.onboarding-card-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px 24px;
}

.onboarding-white-card {
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 24px 20px 22px;
  color: #111827;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.guide-step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.guide-badge-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5B45E0;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-step-body {
  flex: 1;
  text-align: left;
}

.guide-step-heading {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
}

.guide-step-sub {
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.35;
}

.guide-qr-watermark {
  margin-top: 8px;
  color: #D1D5DB;
  font-size: 3.2rem;
  line-height: 1;
}

.terms-agreement-row {
  border-top: 1px solid #F3F4F6;
  padding-top: 16px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.terms-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom-box {
  width: 22px;
  height: 22px;
  border: 2px solid #9CA3AF;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.terms-checkbox:checked + .checkbox-custom-box {
  background-color: #3B82F6;
  border-color: #3B82F6;
}

.terms-checkbox:checked + .checkbox-custom-box::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: #FFFFFF;
}

.terms-checkbox:disabled + .checkbox-custom-box {
  background-color: #F3F4F6;
  border-color: #D1D5DB;
  cursor: not-allowed;
}

.terms-text-content {
  font-size: 0.78rem;
  color: #4B5563;
  line-height: 1.4;
  text-align: left;
}

.link-privacy-underline {
  color: #2563EB;
  text-decoration: underline;
  font-weight: 700;
}

.loading-terms-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-top: 4px;
}

.loading-terms-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
}

.loading-progress-track {
  width: 100%;
  height: 7px;
  background-color: #E5E7EB;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
}

.btn-purple-authenticate {
  width: 100%;
  background: #5B45E0;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(91, 69, 224, 0.4);
  transition: all var(--transition-fast);
}

.btn-purple-authenticate:disabled {
  background: #9CA3AF;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-purple-authenticate:not(:disabled):active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   3. VISOR DA CÂMERA DE LEITURA (SEM "SCANNER PAUSED" & CANVAS PRESERVADO)
   -------------------------------------------------------------------------- */
.camera-stream-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 18px 24px;
}

.camera-viewport-frame {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #000000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}

/* Container principal da câmera */
#html5qr-live-camera {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background-color: #000000;
}

/* APENAS a região de vídeo fica visível e expandida */
#html5qr-live-camera__scan_region {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* QUALQUER OUTRA DIV FILHA (como o aviso "Scanner paused") FICA 100% OCULTA */
#html5qr-live-camera > div:not(#html5qr-live-camera__scan_region),
#html5qr-live-camera__header_message,
#html5qr-live-camera__status_span,
#html5qr-live-camera__dashboard,
#html5qr-live-camera span,
#qr-shaded-region {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* IMPORTANTE PARA IOS: O canvas precisa manter sua largura e altura reais para ler os pixels, apenas oculto visualmente */
#html5qr-live-camera canvas {
  display: none !important;
}

/* Vídeo ao vivo ocupando 100% da moldura */
#html5qr-live-camera video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 20px;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
}

/* MIRA QUADRADA (220x220px) 100% CENTRALIZADA NA TELA */
.camera-target-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.reticle-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #22C55E;
  border-style: solid;
}

.reticle-corner.top-left {
  top: 0;
  left: 0;
  border-width: 4px 0 0 4px;
  border-top-left-radius: 12px;
}

.reticle-corner.top-right {
  top: 0;
  right: 0;
  border-width: 4px 4px 0 0;
  border-top-right-radius: 12px;
}

.reticle-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 4px 4px;
  border-bottom-left-radius: 12px;
}

.reticle-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 4px 4px 0;
  border-bottom-right-radius: 12px;
}

.reticle-center-guideline {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22C55E, transparent);
  box-shadow: 0 0 10px #22C55E;
  animation: scanLineAnim 2s infinite ease-in-out;
}

@keyframes scanLineAnim {
  0% { top: 10%; opacity: 0.2; }
  50% { top: 90%; opacity: 1; }
  100% { top: 10%; opacity: 0.2; }
}

.reticle-overlay-text {
  position: absolute;
  bottom: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.3px;
  z-index: 12;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.torch-floating-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all var(--transition-fast);
}

.flashlight-icon-svg {
  display: block;
}

.torch-floating-btn.active {
  background: #F59E0B;
  color: #111827;
  border-color: #FBBF24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
}

.scanner-indicator-pill {
  width: 100%;
  height: 6px;
  background-color: #FFFFFF;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.scanner-instructions-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 24px;
}

.scanner-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: #1E1B4B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
}

.scanner-instruction-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
  max-width: 280px;
}

.btn-green-stop {
  width: 100%;
  background: #22C55E;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
  transition: transform var(--transition-fast);
}

.btn-green-stop:active {
  transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   4. TELA DE RADAR BIOMÉTRICO (9 SEGUNDOS)
   -------------------------------------------------------------------------- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #0F0A0D;
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(184, 141, 52, 0.15) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.splash-brand-logo {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.radar-container {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
}

.radar-pulse-bg {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, rgba(79, 70, 229, 0.08) 70%, transparent 100%);
  animation: radarPulse 2.4s infinite ease-out;
}

.radar-outer {
  width: 180px;
  height: 180px;
  border: 2px solid rgba(160, 174, 192, 0.22);
  border-top-color: #6366F1;
  border-right-color: #8B5CF6;
  animation: radarSpin 1.6s linear infinite;
}

.radar-icon-main {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #1C1014;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: #9CA3AF;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
  z-index: 2;
  transition: all 0.4s ease;
}

.radar-icon-sub {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #1A1014;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #6B7280;
  z-index: 1;
  transition: all 0.3s ease;
}

.radar-icon-sub.left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.radar-icon-sub.right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.radar-icon-sub.highlight {
  border-color: #8B5CF6;
  color: #C4B5FD;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.25; }
  100% { transform: scale(0.85); opacity: 0.8; }
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  min-height: 32px;
}

.splash-subtitle {
  font-size: 0.88rem;
  color: #9CA3AF;
  line-height: 1.45;
  margin-bottom: 20px;
}

.splash-subtitle.hide {
  display: none;
}

.splash-redirect-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: #6B7280;
}

.splash-redirect-dots.hide {
  display: none;
}

.dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #6B7280;
  animation: pulseDot 1.4s infinite ease-in-out;
}

.dot-pulse:nth-child(2) { animation-delay: 0.2s; }
.dot-pulse:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseDot {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40% { transform: scale(1.3); opacity: 1; }
}

.splash-checklist {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-top: 10px;
}

.check-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #6B7280;
  transition: color 0.3s ease;
}

.check-step.completed {
  color: #FFFFFF;
}

.check-step.completed .step-icon {
  color: #60A5FA;
}

.check-step.active {
  color: #FFFFFF;
}

.check-step.active .step-icon {
  color: #A78BFA;
}

.check-step .step-icon {
  font-size: 1.15rem;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. MENU GAVETA (AUTHNOW)
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 330px;
  background-color: #F8F9FA;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.drawer-menu.active {
  transform: translateX(0);
}

.drawer-header-gradient {
  background: var(--color-authnow-gradient);
  padding: 24px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
}

.drawer-authnow-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.authnow-shield-logo {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.authnow-shield-logo .fa-shield {
  font-size: 1.5rem;
  color: #FFFFFF;
}

.authnow-shield-logo .auth-inner-check {
  position: absolute;
  font-size: 0.8rem;
  color: #10B981;
  font-weight: 900;
}

.authnow-text {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.authnow-text .auth-top {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.authnow-text .auth-bottom {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #A7F3D0;
}

.drawer-close-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

.drawer-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 0.5px;
  margin: 14px 4px 4px;
}

.drawer-item-box {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.drawer-item-box:active {
  transform: scale(0.98);
}

.drawer-item-icon {
  font-size: 1.15rem;
  color: #374151;
  width: 24px;
  display: flex;
  justify-content: center;
}

.drawer-item-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1F2937;
}

.admin-discreet-footer {
  margin-top: auto;
  padding: 20px 8px 10px;
  display: flex;
  justify-content: flex-end;
}

.btn-discreet-lock {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 0.95rem;
  padding: 8px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-discreet-lock:hover {
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   6. MODAL: PRODUTO FALSO (SIRENE VERMELHA)
   -------------------------------------------------------------------------- */
.modal-fake-alert {
  max-width: 330px;
}

.fake-alert-body {
  background-color: #FFFFFF;
  border-radius: 28px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fake-siren-wrapper {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.siren-icon-svg {
  filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.35));
}

.fake-alert-title {
  font-family: var(--font-primary);
  font-size: 1.45rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.fake-alert-desc {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.45;
  margin-bottom: 26px;
  font-weight: 400;
}

.btn-fake-compreendido {
  width: 100%;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 15px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.btn-fake-compreendido:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   7. MODAIS GERAIS (IDIOMAS, AUTENTICIDADE, TERMOS E SENHA ADMIN)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 420px;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog.modal-bottom-sheet {
  max-width: 440px;
  margin-top: auto;
  margin-bottom: 0;
  background-color: #374151;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.modal-lang-list {
  display: flex;
  flex-direction: column;
}

.lang-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.lang-radio {
  display: none;
}

.custom-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #9CA3AF;
  position: relative;
}

.lang-radio:checked + .custom-radio {
  border-color: #10B981;
}

.lang-radio:checked + .custom-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background-color: #10B981;
}

.modal-card-white {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal-close-round {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #1F2937;
  cursor: pointer;
  z-index: 10;
}

.modal-scroll-body {
  padding: 30px 22px 24px;
  overflow-y: auto;
}

.modal-bold-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.35;
}

.modal-paragraph {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 14px;
}

.modal-code-highlight {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  padding: 12px;
  background-color: #F3F4F6;
  border-radius: var(--radius-sm);
  margin: 16px 0 18px;
  letter-spacing: 1px;
}

.modal-warning-notice {
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  color: #92400E;
  margin-top: 20px;
  align-items: flex-start;
}

.modal-warning-notice i {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-top: 2px;
}

.link-blue-underline {
  color: #2563EB;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 4px;
  cursor: pointer;
}

.modal-admin-auth {
  max-width: 360px;
}

.admin-auth-header {
  text-align: center;
  margin-bottom: 18px;
}

.admin-lock-icon {
  font-size: 2.5rem;
  color: #4A1B12;
  margin-bottom: 12px;
}

.admin-password-box {
  margin-bottom: 12px;
}

.admin-error-msg {
  color: #DC2626;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.input-modern {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
}

.btn-primary-action {
  width: 100%;
  background: var(--color-authnow-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}