/* ============================================================================
   facescan.css  -  v6
   Verificacao de idade 18+ (estilo splove). Mobile-first, card central.
   Acento laranja (igual ao modal 18+ do site).
   ============================================================================ */

:root {
  --fs-accent: #ff7a13;
  --fs-accent-2: #e3640b;
  --fs-ok: #1ea672;
  --fs-err: #e23b3b;
  --fs-ink: #1f2430;
  --fs-muted: #6b7280;
  --fs-line: #e7e9ee;
  --fs-card: #ffffff;
}

/* ---- Overlay ---- */
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 12, 18, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  animation: fs-fade .2s ease;
}
.fs-overlay[hidden] { display: none; }
@keyframes fs-fade { from { opacity: 0 } to { opacity: 1 } }

body.fs-no-scroll { overflow: hidden; }

/* ---- Card ---- */
.fs-modal {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--fs-card);
  color: var(--fs-ink);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  padding: 30px 26px calc(26px + env(safe-area-inset-bottom));
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: center;
  animation: fs-pop .26s cubic-bezier(.2, .9, .3, 1.2);
  box-sizing: border-box;
}
@keyframes fs-pop { from { transform: translateY(14px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---- Botao fechar ---- */
.fs-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: #f1f2f5; color: #4b5160;
  font-size: 22px; line-height: 34px;
  cursor: pointer; transition: background .15s;
}
.fs-close:hover { background: #e4e6eb; }

/* ---- Badge 18+ ---- */
.fs-badge {
  width: 64px; height: 64px;
  margin: 4px auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--fs-accent), var(--fs-accent-2));
  box-shadow: 0 8px 20px rgba(227, 100, 11, .4);
  letter-spacing: -1px;
}
.fs-badge span { font-size: 14px; margin-top: -6px; }

/* ---- Tipografia ---- */
.fs-h2 {
  font-size: 21px; font-weight: 800; line-height: 1.25;
  margin: 0 0 10px; color: var(--fs-ink);
}
.fs-h2--sm { font-size: 18px; margin-bottom: 16px; }
.fs-lead {
  font-size: 14.5px; line-height: 1.55; color: var(--fs-muted);
  margin: 0 auto 18px; max-width: 34ch;
}
.fs-lead strong { color: var(--fs-ink); }

/* ---- Lista de beneficios ---- */
.fs-benefits {
  list-style: none; margin: 0 0 22px; padding: 0;
  text-align: left; display: grid; gap: 12px;
}
.fs-benefits li {
  display: flex; align-items: center; gap: 11px;
  font-size: 14.5px; color: var(--fs-ink); font-weight: 500;
}
.fs-benefits svg {
  flex: 0 0 22px; width: 22px; height: 22px;
  fill: none; stroke: var(--fs-ok); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Botoes ---- */
.fs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; border: 0; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  padding: 15px 18px; transition: transform .1s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.fs-btn:active { transform: translateY(1px); }
.fs-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--fs-accent), var(--fs-accent-2));
  box-shadow: 0 10px 24px rgba(227, 100, 11, .38);
}
.fs-btn-primary:hover { box-shadow: 0 12px 28px rgba(227, 100, 11, .5); }
.fs-btn-primary svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fs-btn-ghost {
  width: auto; background: #f1f2f5; color: #3a4150; font-weight: 600;
  padding: 11px 20px; font-size: 14px;
}
.fs-btn-ghost:hover { background: #e4e6eb; }

/* ---- Fineprint ---- */
.fs-fineprint {
  font-size: 12px; color: #9aa1ad; line-height: 1.5;
  margin: 14px auto 0; max-width: 36ch;
}

/* ---- Camera ---- */
.fs-camera {
  position: relative;
  width: 240px; height: 240px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: #0e1016;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .06);
}
.fs-camera video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scaleX(-1); /* espelhado */
  display: block;
}
.fs-reticle {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25);
  transition: box-shadow .25s;
  pointer-events: none;
}
.fs-reticle--searching { box-shadow: inset 0 0 0 3px rgba(255, 193, 7, .85); }
.fs-reticle--found { box-shadow: inset 0 0 0 3px rgba(30, 166, 114, .9); }
.fs-reticle--ok { box-shadow: inset 0 0 0 4px var(--fs-ok); }
.fs-reticle--err { box-shadow: inset 0 0 0 4px var(--fs-err); }

.fs-scanline {
  position: absolute; left: 8%; right: 8%; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--fs-accent), transparent);
  animation: fs-scan 2.2s linear infinite;
  pointer-events: none; opacity: .8;
}
@keyframes fs-scan { 0% { top: 6% } 50% { top: 92% } 100% { top: 6% } }

/* ---- Barra de progresso ---- */
.fs-progress {
  width: 80%; height: 7px; margin: 0 auto 12px;
  background: #edeff3; border-radius: 999px; overflow: hidden;
}
.fs-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--fs-accent), var(--fs-accent-2));
  border-radius: 999px; transition: width .3s ease;
}

/* ---- Status ---- */
.fs-status { font-size: 14px; color: var(--fs-muted); margin: 0 0 6px; min-height: 20px; }
.fs-status--warning { color: #b9770a; }
.fs-status--error { color: var(--fs-err); font-weight: 600; }

/* ---- Resultado ---- */
.fs-result {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin: 10px auto 4px; padding: 12px 14px; border-radius: 12px;
  font-size: 14px; max-width: 36ch; text-align: left;
}
.fs-result[hidden] { display: none; }
.fs-result-icon {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
.fs-result--ok { background: #e7f7f0; color: #14684a; }
.fs-result--ok .fs-result-icon { background: var(--fs-ok); }
.fs-result--err { background: #fdecec; color: #9b2a2a; }
.fs-result--err .fs-result-icon { background: var(--fs-err); }

/* ---- Acoes ---- */
.fs-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .fs-overlay { padding: 0; }
  .fs-modal {
    max-width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
    padding-top: calc(24px + env(safe-area-inset-top));
  }
  .fs-h2 { font-size: 22px; }
  .fs-camera { width: 220px; height: 220px; }
  .fs-btn-primary { padding: 16px; }
}

/* ---- Telas muito baixas (paisagem) ---- */
@media (max-height: 560px) and (min-width: 481px) {
  .fs-badge { width: 50px; height: 50px; margin-bottom: 10px; }
  .fs-benefits { gap: 8px; margin-bottom: 14px; }
}

/* ============================================================================
   Cadeado 18+ sobre fotos/videos explicitos (perfil publico)
   ============================================================================ */
.fs-locked {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  outline: none;
}
.fs-locked .fs-blur-img {
  width: 100%;
  display: block;
  filter: blur(8px);
  transform: scale(1.06); /* esconde bordas claras do blur */
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.fs-blur-fallback {
  width: 100%;
  min-height: 380px;
  background:
    radial-gradient(120% 120% at 50% 0%, #3a2a22 0%, #15110f 70%);
}
.fs-locked-video .fs-lock-badge,
.fs-locked-video { min-height: 220px; }

.fs-lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
  background: rgba(12, 12, 16, .42);
  color: #fff;
  box-sizing: border-box;
}
.fs-lock-18 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
  background: linear-gradient(135deg, var(--fs-accent), var(--fs-accent-2));
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.fs-lock-txt {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.fs-lock-cta {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 7px 14px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.fs-locked:hover .fs-lock-cta { background: rgba(255, 255, 255, .26); }
