/* ============================================================
   BUSCA FACIAL — CSS (módulo ISOLADO)
   ============================================================
   Estética: dark / azul-preto / neon (compatível com o tema).
   Layout DESKTOP: [FOTO FIXA] | [TOP 10]  (esquerda fixa, direita rola).
   Layout MOBILE:  FOTO ↓ BUSCAR ↓ SCANNER ↓ TOP 10.
   Nenhuma regra global: tudo namespaced sob .bf- (Busca Facial).
   ============================================================ */

.bf-host {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
}
.bf-host.bf-open {
  display: block;
}

/* Fundo escuro com leve tom azulado */
.bf-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 18% 10%, rgba(0, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at 85% 90%, rgba(0, 240, 255, 0.10), transparent 55%),
    linear-gradient(160deg, #05070d 0%, #070b14 45%, #04060b 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bf-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 18px 90px;
  min-height: 100%;
  box-sizing: border-box;
}

/* ===== HEADER ===== */
.bf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.bf-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bf-title-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #6fe3ff;
  background: linear-gradient(160deg, rgba(0, 140, 255, 0.22), rgba(0, 240, 255, 0.08));
  border: 1px solid rgba(90, 200, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 170, 255, 0.35), inset 0 0 14px rgba(0, 170, 255, 0.18);
}
.bf-title-icon svg { width: 24px; height: 24px; }
.bf-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #eaf6ff;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 170, 255, 0.55);
}
.bf-title p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #7fa6c4;
  letter-spacing: 0.4px;
}
.bf-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(120, 170, 210, 0.3);
  background: rgba(10, 18, 30, 0.75);
  color: #cfe8ff;
  font-size: 20px;
  cursor: pointer;
  transition: all .18s ease;
}
.bf-close:hover {
  border-color: rgba(0, 200, 255, 0.7);
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.5);
  color: #fff;
}

/* ===== GRID PRINCIPAL ===== */
.bf-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 20px;
  align-items: start;
}

/* Coluna esquerda: FOTO FIXA (sticky no desktop) */
.bf-col-left {
  position: sticky;
  top: 12px;
}
.bf-panel {
  background: linear-gradient(180deg, rgba(11, 20, 33, 0.92), rgba(7, 13, 23, 0.92));
  border: 1px solid rgba(70, 130, 180, 0.28);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}
.bf-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bf-panel-title h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #bfe4ff;
}
.bf-panel-title .bf-step {
  font-size: 11px;
  color: #6fa0c0;
  border: 1px solid rgba(90, 160, 210, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===== DROPZONE ===== */
.bf-drop {
  position: relative;
  border: 2px dashed rgba(0, 190, 255, 0.45);
  border-radius: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 22px;
  cursor: pointer;
  transition: all .2s ease;
  background:
    repeating-linear-gradient(45deg, rgba(0, 150, 255, 0.045) 0 12px, transparent 12px 24px),
    radial-gradient(420px 320px at 50% 40%, rgba(0, 130, 255, 0.12), transparent 70%);
  overflow: hidden;
}
.bf-drop:hover, .bf-drop.bf-dragover {
  border-color: rgba(0, 230, 255, 0.95);
  box-shadow: 0 0 26px rgba(0, 190, 255, 0.4), inset 0 0 26px rgba(0, 170, 255, 0.16);
}
.bf-drop-inner-ico {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7fe0ff;
  border: 2px solid rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 22px rgba(0, 190, 255, 0.45), inset 0 0 18px rgba(0, 190, 255, 0.2);
  animation: bfPulse 2.4s ease-in-out infinite;
}
.bf-drop-inner-ico svg { width: 34px; height: 34px; }
.bf-drop strong {
  font-size: 15px;
  letter-spacing: 2px;
  color: #e6f6ff;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 180, 255, 0.5);
}
.bf-drop span {
  font-size: 12px;
  color: #7fa6c4;
  max-width: 260px;
}

/* Preview (foto FIXA) */
.bf-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 26px rgba(0, 190, 255, 0.35);
  background: #04070d;
  min-height: 300px;
  display: none;
}
.bf-preview.bf-has {
  display: block;
}
.bf-preview img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #04070d;
}
/* Linha de varredura sobre a foto (estilo vídeo) */
.bf-preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  top: 0;
  background: linear-gradient(90deg, transparent, #4fe4ff, transparent);
  box-shadow: 0 0 18px rgba(0, 220, 255, 0.9);
  opacity: 0;
}
.bf-preview.bf-scanning::after {
  opacity: 1;
  animation: bfScanLine 2s linear infinite;
}
.bf-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #031018;
  background: linear-gradient(90deg, #33e0ff, #7ef0ff);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0, 220, 255, 0.6);
}
.bf-clear {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 10, 16, 0.7);
  color: #ffd3d3;
  cursor: pointer;
  font-size: 16px;
  transition: all .18s ease;
}
.bf-clear:hover { background: rgba(255, 60, 60, 0.25); border-color: rgba(255, 90, 90, 0.8); }

/* Input de arquivo oculto */
.bf-file { display: none; }

/* Ações */
.bf-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.bf-btn {
  flex: 1;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .18s ease;
}
.bf-btn-primary {
  color: #02121a;
  background: linear-gradient(90deg, #21c7ff, #8af3ff);
  box-shadow: 0 0 22px rgba(0, 200, 255, 0.5);
}
.bf-btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 0 30px rgba(0, 220, 255, 0.75);
}
.bf-btn-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.bf-btn-ghost {
  flex: 0 0 auto;
  color: #bfe4ff;
  background: rgba(12, 22, 36, 0.85);
  border-color: rgba(90, 150, 200, 0.35);
}
.bf-btn-ghost:hover { border-color: rgba(0, 200, 255, 0.7); color: #fff; }

/* ===== COLUNA DIREITA ===== */
.bf-col-right { min-height: 420px; }
.bf-right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bf-right-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #bfe4ff;
}
.bf-count {
  font-size: 11px;
  color: #032430;
  background: linear-gradient(90deg, #33e0ff, #7ef0ff);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Estado vazio: moldura facial neon */
.bf-empty {
  border: 1px solid rgba(70, 130, 180, 0.25);
  border-radius: 18px;
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.7), rgba(6, 11, 19, 0.7));
}
.bf-empty-frame {
  width: 150px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 70px 70px 60px 60px;
  border: 2px solid rgba(0, 200, 255, 0.55);
  box-shadow: 0 0 30px rgba(0, 190, 255, 0.4), inset 0 0 30px rgba(0, 190, 255, 0.16);
  position: relative;
  overflow: hidden;
}
.bf-empty-frame::before {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 3px; top: 0;
  background: linear-gradient(90deg, transparent, #5ce8ff, transparent);
  box-shadow: 0 0 16px rgba(0, 220, 255, 0.9);
  animation: bfScanLine 2.6s linear infinite;
}
.bf-empty-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 200, 255, 0.35);
}
.bf-empty h4 {
  margin: 0 0 6px;
  color: #dff2ff;
  font-size: 15px;
  letter-spacing: 1.2px;
}
.bf-empty p {
  margin: 0;
  color: #7fa6c4;
  font-size: 12.5px;
  max-width: 320px;
  margin: 0 auto;
}

/* ===== SCANNER CENTRAL (processamento) ===== */
.bf-scanwrap {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 46px 20px;
  border: 1px solid rgba(70, 130, 180, 0.25);
  border-radius: 18px;
  background: radial-gradient(500px 360px at 50% 42%, rgba(0, 130, 255, 0.16), transparent 70%);
}
.bf-scanwrap.bf-show { display: flex; }
.bf-radar {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 190, 255, 0.4), inset 0 0 30px rgba(0, 190, 255, 0.15);
  display: grid;
  place-items: center;
}
.bf-radar::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 210, 255, 0.4);
}
.bf-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 220, 255, 0.55), transparent 30%, transparent 100%);
  animation: bfSpin 1.6s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%);
          mask: radial-gradient(circle, transparent 56%, #000 57%);
}
.bf-radar-core {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9ff0ff;
  border: 2px solid rgba(0, 220, 255, 0.6);
  box-shadow: 0 0 26px rgba(0, 200, 255, 0.55), inset 0 0 20px rgba(0, 200, 255, 0.25);
  animation: bfPulse 1.8s ease-in-out infinite;
}
.bf-radar-core svg { width: 36px; height: 36px; }
.bf-scan-text {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #dff2ff;
  text-shadow: 0 0 12px rgba(0, 180, 255, 0.6);
  text-align: center;
}
.bf-progress {
  width: min(420px, 82vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 190, 255, 0.25);
}
.bf-progress-bar {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #21c7ff, #8af3ff);
  box-shadow: 0 0 16px rgba(0, 220, 255, 0.8);
  animation: bfIndet 1.35s ease-in-out infinite;
}
.bf-scan-sub { font-size: 12px; color: #7fa6c4; }

/* ===== RESULTADOS (TOP 10) ===== */
.bf-results { display: flex; flex-direction: column; gap: 12px; }
.bf-result {
  display: grid;
  grid-template-columns: 64px 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(70, 130, 180, 0.25);
  background: linear-gradient(180deg, rgba(12, 21, 34, 0.9), rgba(8, 14, 24, 0.9));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  animation: bfFadeUp .4s ease both;
}
.bf-result:hover {
  border-color: rgba(0, 200, 255, 0.55);
  box-shadow: 0 0 22px rgba(0, 160, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.45);
}
/* BLOCO C — MODO BLU: o desfoque PROTETOR já vem do SERVIDOR (irreversível,
   bicos-foto-blur.js). Aqui NÃO se aplica desfoque CSS — apenas uma leve
   redução de brilho/saturação (mesma linguagem do .bicos-card.is-locked),
   mantendo o rosto parcialmente visível antes do pagamento. */
.bf-result.bf-bloqueado .bf-result-photo img { filter: saturate(.96) brightness(.94); }
.bf-rank {
  text-align: center;
  font-weight: 900;
  letter-spacing: 1px;
}
.bf-rank .bf-rank-label { display: block; font-size: 9px; color: #6fa0c0; }
.bf-rank .bf-rank-num {
  display: block;
  font-size: 22px;
  color: #8af3ff;
  text-shadow: 0 0 12px rgba(0, 190, 255, 0.6);
}
.bf-result-photo {
  width: 92px; height: 92px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 200, 255, 0.4);
  background: #04070d;
}
.bf-result-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-result-info { min-width: 0; }
.bf-result-num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #eaf6ff;
  margin-bottom: 6px;
  word-break: break-word;
}
.bf-result-num small {
  display: block;
  font-size: 10px;
  color: #6fa0c0;
  letter-spacing: 1.4px;
  font-weight: 700;
  margin-bottom: 2px;
}
.bf-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 190, 255, 0.22);
}
.bf-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #21c7ff, #8af3ff);
  box-shadow: 0 0 14px rgba(0, 220, 255, 0.7);
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}
.bf-result-sim { text-align: center; }
.bf-ring {
  --bf-pct: 0;
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, #070d18 78%, transparent 79% 100%),
    conic-gradient(#21c7ff calc(var(--bf-pct) * 1%), rgba(255, 255, 255, 0.09) 0);
  border: 1px solid rgba(0, 200, 255, 0.25);
}
.bf-ring span {
  font-size: 13px;
  font-weight: 900;
  color: #dff2ff;
  text-shadow: 0 0 10px rgba(0, 190, 255, 0.6);
}
.bf-ring small {
  font-size: 8.5px;
  color: #6fa0c0;
  letter-spacing: 1px;
  display: block;
  text-align: center;
}

/* BLOCO B — Botão "⬇️ BAIXAR FOTO" (pós-liberação) por resultado */
.bf-dl {
  display: block;
  margin: 8px auto 0;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(90, 200, 255, 0.5);
  background: linear-gradient(160deg, rgba(0, 140, 255, 0.20), rgba(0, 240, 255, 0.08));
  color: #dff2ff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.bf-dl:hover {
  border-color: rgba(0, 220, 255, 0.9);
  box-shadow: 0 0 16px rgba(0, 190, 255, 0.5);
  color: #fff;
}

/* Mensagem / avisos */
.bf-msg {
  border: 1px solid rgba(70, 130, 180, 0.25);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  color: #9fc2da;
  font-size: 13px;
  background: rgba(9, 15, 25, 0.7);
}
.bf-msg.bf-warn { border-color: rgba(255, 180, 60, 0.5); color: #ffd79a; }

/* ===== ANIMAÇÕES ===== */
@keyframes bfScanLine {
  0% { top: 0; }
  100% { top: 100%; }
}
@keyframes bfSpin {
  to { transform: rotate(360deg); }
}
@keyframes bfPulse {
  0%, 100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes bfIndet {
  0% { margin-left: -42%; }
  100% { margin-left: 102%; }
}
@keyframes bfFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVO (MOBILE) ===== */
@media (max-width: 860px) {
  .bf-grid { grid-template-columns: 1fr; }
  .bf-col-left { position: static; }
  .bf-preview img { max-height: 360px; }
  .bf-result {
    grid-template-columns: 48px 72px 1fr;
    grid-template-areas:
      "rank photo info"
      "sim sim sim";
    row-gap: 10px;
  }
  .bf-rank { grid-area: rank; }
  .bf-result-photo { grid-area: photo; width: 72px; height: 72px; }
  .bf-result-info { grid-area: info; }
  .bf-result-sim { grid-area: sim; display: flex; align-items: center; justify-content: center; gap: 12px; }
  .bf-ring { width: 58px; height: 58px; }
}
@media (max-width: 480px) {
  .bf-shell { padding: 16px 12px 80px; }
  .bf-title h2 { font-size: 18px; letter-spacing: 1.4px; }
  .bf-drop { min-height: 230px; }
  .bf-result-photo { width: 64px; height: 64px; }
  .bf-dl { font-size: 10.5px; padding: 7px 10px; letter-spacing: 0.5px; }
}

/* ===== DESKTOP: FOTO FIXA | COLUNA DIREITA COM SCROLL INDEPENDENTE =====
   No desktop o overlay NÃO rola como um todo: a shell ocupa a altura da
   viewport, a ESQUERDA permanece FIXA e SOMENTE a coluna DIREITA
   (scanner/TOP 10) rola de forma independente — exatamente o fluxo do vídeo
   (§6, §8). Em telas <=860px vale o empilhamento mobile acima. */
@media (min-width: 861px) {
  .bf-overlay.bf-overlay { overflow: hidden; }
  .bf-shell.bf-shell {
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 22px;
  }
  .bf-header { flex: 0 0 auto; }
  .bf-grid.bf-grid {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }
  .bf-col-left.bf-col-left { position: static; }
  .bf-col-left.bf-col-left,
  .bf-col-right.bf-col-right {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
  }
  .bf-col-right.bf-col-right { min-height: 420px; }
  .bf-col-left::-webkit-scrollbar,
  .bf-col-right::-webkit-scrollbar { width: 8px; }
  .bf-col-left::-webkit-scrollbar-thumb,
  .bf-col-right::-webkit-scrollbar-thumb {
    background: rgba(0, 190, 255, 0.35);
    border-radius: 999px;
  }
}

/* ============================================================
   CHANGE 1 — PAINEL DE PAGAMENTO (SALDO / PIX)
   Exibe SOMENTE o valor informado pelo backend (nunca define preço).
   Namespaced sob .bf-pay*. Nenhuma regra global.

   BLOCO A (patch 2): o paywall virou um OVERLAY FIXO que cobre a tela
   inteira e fica POR CIMA dos resultados BLU (que permanecem renderizados
   atrás, escurecidos). Antes era um bloco em fluxo no FIM da coluna direita
   — por isso aparecia "abaixo" da lista. z-index 99999: acima do conteúdo do
   módulo (.bf-host = 99998) e abaixo do modal da foto (100000).
   ============================================================ */
.bf-pay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(2, 5, 10, 0.74);
  backdrop-filter: blur(5px);
  animation: bf-pay-in .18s ease both;
}
@keyframes bf-pay-in { from { opacity: 0; } to { opacity: 1; } }
.bf-pay-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(11, 20, 33, 0.94), rgba(7, 13, 23, 0.94));
  border: 1px solid rgba(90, 200, 255, 0.30);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}
.bf-pay-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #6fe3ff;
  background: linear-gradient(160deg, rgba(0, 140, 255, 0.22), rgba(0, 240, 255, 0.08));
  border: 1px solid rgba(90, 200, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 170, 255, 0.35), inset 0 0 14px rgba(0, 170, 255, 0.18);
}
.bf-pay-ico svg { width: 28px; height: 28px; }
.bf-pay-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #eaf6ff;
  text-shadow: 0 0 14px rgba(0, 170, 255, 0.45);
}
.bf-pay-desc { font-size: 12.5px; color: #7fa6c4; line-height: 1.5; max-width: 340px; }
.bf-pay-valor {
  font-size: 30px;
  font-weight: 900;
  color: #6fe3ff;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(0, 190, 255, 0.55);
}
.bf-pay-btn {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .18s ease;
  border: 1px solid rgba(90, 200, 255, 0.40);
  background: rgba(10, 18, 30, 0.85);
  color: #cfe8ff;
}
.bf-pay-btn small { font-size: 11px; font-weight: 600; opacity: .8; }
.bf-pay-btn:hover {
  border-color: rgba(0, 200, 255, 0.85);
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.5);
  color: #fff;
}
.bf-pay-btn-saldo {
  background: linear-gradient(160deg, rgba(0, 180, 120, 0.20), rgba(0, 120, 90, 0.10));
  border-color: rgba(0, 220, 150, 0.45);
  color: #b8ffe0;
}
.bf-pay-btn-saldo:hover {
  border-color: rgba(0, 255, 170, 0.8);
  box-shadow: 0 0 16px rgba(0, 220, 150, 0.5);
}
.bf-pay-btn-pix {
  background: linear-gradient(160deg, rgba(0, 140, 255, 0.22), rgba(0, 240, 255, 0.10));
  border-color: rgba(90, 200, 255, 0.55);
  color: #eaf6ff;
}
.bf-pay-btn-copiar { margin-top: 4px; }
.bf-pay-aviso {
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  color: #ffd27f;
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.30);
  border-radius: 10px;
  padding: 9px 12px;
}
.bf-pay-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: #7fd8ff;
}
.bf-pay-qr {
  width: 200px;
  height: 200px;
  max-width: 70vw;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
  object-fit: contain;
}
.bf-pay-copia-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #7fa6c4;
  text-transform: uppercase;
}
.bf-pay-copia {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(6, 12, 20, 0.9);
  border: 1px solid rgba(70, 130, 180, 0.35);
  color: #cfe8ff;
  font-size: 11.5px;
  font-family: monospace;
}
.bf-pay-cancelar {
  margin-top: 2px;
  background: none;
  border: none;
  color: #7fa6c4;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  transition: color .18s ease;
}
.bf-pay-cancelar:hover { color: #cfe8ff; }

/* BLOCO A (patch 2): barra persistente "LIBERAR RESULTADOS — R$ 15".
   Surge quando o paywall é fechado sem pagar e reabre o OVERLAY (mesmo info)
   SEM disparar uma nova busca facial. Os resultados BLU continuam atrás. */
.bf-liberar { display: flex; justify-content: center; margin-top: 12px; }
.bf-liberar-btn {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(90, 200, 255, 0.45);
  background: linear-gradient(160deg, rgba(0, 140, 255, 0.22), rgba(0, 240, 255, 0.10));
  color: #eaf6ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .18s ease;
}
.bf-liberar-btn:hover {
  border-color: rgba(0, 220, 255, 0.9);
  box-shadow: 0 0 18px rgba(0, 190, 255, 0.6);
  color: #fff;
}

/* ============================================================
   CHANGE 3 — CPF COPIÁVEL (clique/toque → "COPIADO ✓")
   ============================================================ */
.bf-result-num-copiavel {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 8px;
  padding: 2px 6px;
  margin: -2px -6px;
  transition: all .15s ease;
}
.bf-result-num-copiavel:hover { background: rgba(0, 190, 255, 0.12); color: #d8f4ff; }
.bf-result-num-copiavel:focus-visible { outline: 2px solid rgba(0, 190, 255, 0.7); outline-offset: 2px; }
.bf-result-num-copiavel.bf-copiado {
  color: #7dffb0;
  background: rgba(0, 220, 120, 0.14);
  font-weight: 800;
  letter-spacing: 1px;
}

/* ============================================================
   CHANGE 3 — MODAL 1:1 DA FOTO (quadrado, object-fit: contain)
   NÃO abre página/fullscreen; SEM CPF/ranking dentro. Fecha por
   botão, clique fora ou ESC.
   ============================================================ */
.bf-fotomodal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(2, 5, 10, 0.86);
  backdrop-filter: blur(6px);
}
.bf-fotomodal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
  max-height: 92vh;
}
.bf-fotomodal-img {
  width: 420px;
  height: 420px;
  max-width: min(78vw, 420px);
  max-height: 70vh;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #04121f;
  border: 1px solid rgba(90, 200, 255, 0.45);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.45), 0 20px 60px rgba(0, 0, 0, 0.7);
  padding: 8px;
  box-sizing: border-box;
}
.bf-fotomodal-fechar {
  padding: 12px 34px;
  border-radius: 12px;
  border: 1px solid rgba(90, 200, 255, 0.55);
  background: linear-gradient(160deg, rgba(0, 140, 255, 0.22), rgba(0, 240, 255, 0.10));
  color: #eaf6ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s ease;
}
.bf-fotomodal-fechar:hover {
  border-color: rgba(0, 220, 255, 0.9);
  box-shadow: 0 0 18px rgba(0, 190, 255, 0.6);
  color: #fff;
}

/* BLOCO B — ações do modal 1:1 (download ao lado de fechar) */
.bf-fotomodal-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.bf-fotomodal-baixar {
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid rgba(90, 255, 170, 0.55);
  background: linear-gradient(160deg, rgba(0, 200, 120, 0.24), rgba(0, 255, 170, 0.10));
  color: #eafff3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s ease;
}
.bf-fotomodal-baixar:hover {
  border-color: rgba(0, 255, 170, 0.95);
  box-shadow: 0 0 18px rgba(0, 220, 140, 0.6);
  color: #fff;
}

/* Mobile: garante que o quadrado 1:1 caiba na viewport sem overflow. */
@media (max-width: 480px) {
  .bf-fotomodal { padding: 12px; }
  .bf-fotomodal-acoes { flex-direction: column-reverse; width: 100%; }
  .bf-fotomodal-acoes > button { width: 100%; }
  .bf-fotomodal-img {
    /* width e max-width com o MESMO limite (inclui 64vh) p/ vencer o
       max-width base de 78vw, que achatava a largura e quebrava o 1:1.
       height:auto deixa o aspect-ratio 1/1 calcular a altura == largura. */
    width: min(84vw, 340px, 64vh);
    max-width: min(84vw, 340px, 64vh);
    height: auto;
    max-height: 64vh;
    padding: 6px;
  }
  .bf-pay-valor { font-size: 26px; }
  .bf-pay-qr { width: 170px; height: 170px; }
}

/* ============================================================
   PREMIUM LOADING — overlay dedicado de espera da Busca Facial
   Frontend-only (SOMENTE visual). Sem percentual, sem contagem
   falsa de rostos: apenas scanner neon + barra INDETERMINADA +
   cronômetro real + textos alternando. Namespaced sob .bf-premium*.
   ============================================================ */
.bf-premium {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(900px 600px at 50% 8%, rgba(0, 170, 255, 0.16), transparent 60%),
    rgba(2, 5, 10, 0.82);
  backdrop-filter: blur(6px);
  animation: bfFadeUp .28s ease both;
}
.bf-premium.bf-premium-out {
  opacity: 0;
  transition: opacity .24s ease;
}
.bf-premium-card {
  width: 100%;
  max-width: 430px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 18px;
  box-sizing: border-box;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(11, 20, 33, 0.95), rgba(7, 13, 23, 0.95));
  border: 1px solid rgba(90, 200, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(90, 200, 255, 0.10), 0 0 42px rgba(0, 170, 255, 0.30), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.bf-premium-photo {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #04070d;
  border: 2px solid rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 26px rgba(0, 190, 255, 0.45), inset 0 0 26px rgba(0, 170, 255, 0.18);
  animation: bfPulse 2.6s ease-in-out infinite;
}
.bf-premium-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* sem corte — foto inteira */
  background: #04070d;
}
.bf-premium-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask: radial-gradient(circle at 50% 45%, #000 60%, transparent 100%);
          mask: radial-gradient(circle at 50% 45%, #000 60%, transparent 100%);
  opacity: .5;
  pointer-events: none;
}
.bf-premium-scan {
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  top: 0;
  background: linear-gradient(90deg, transparent, #66e9ff, transparent);
  box-shadow: 0 0 20px rgba(0, 220, 255, 0.95);
  animation: bfScanLine 2.1s linear infinite;
  pointer-events: none;
}
.bf-premium-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid rgba(120, 240, 255, 0.9);
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.8));
}
.bf-premium-corner.bf-tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.bf-premium-corner.bf-tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.bf-premium-corner.bf-bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.bf-premium-corner.bf-br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.bf-premium-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.bf-premium-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.bf-premium-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #66e9ff;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.9);
  animation: bfPulse 1.4s ease-in-out infinite;
}
.bf-premium-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #eaf6ff;
  text-shadow: 0 0 12px rgba(0, 170, 255, 0.6);
}
.bf-premium-text {
  font-size: 14px;
  letter-spacing: .4px;
  color: #bfe4ff;
  min-height: 20px;
  transition: opacity .2s ease;
}
.bf-premium-text.bf-premium-swap { opacity: 0; }
.bf-premium-progress {
  width: min(340px, 78vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 190, 255, 0.25);
  overflow: hidden;
}
.bf-premium-progress-bar {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #21c7ff, #8af3ff);
  box-shadow: 0 0 16px rgba(0, 220, 255, 0.8);
  animation: bfIndet 1.35s ease-in-out infinite;
}
.bf-premium-meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.bf-premium-meta-label {
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6fa0c0;
}
.bf-premium-timer {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #8af3ff;
  text-shadow: 0 0 12px rgba(0, 190, 255, 0.6);
}
.bf-premium-msg {
  font-size: 12px;
  color: #9fc2da;
  max-width: 320px;
}
@media (max-width: 480px) {
  .bf-premium { padding: 12px; }
  .bf-premium-photo { max-width: 240px; }
  .bf-premium-card { gap: 14px; padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-premium, .bf-premium-photo, .bf-premium-scan, .bf-premium-dot, .bf-premium-progress-bar { animation: none; }
}
