/* LLC SERVCO — Crisp Light Fluid Wizard + Apple Face ID / Google Identity Biometric Camera CSS (2026-11-27)
 * Zero dark-on-dark or white-on-white contrast defects; preserves Document Camera (#doccam) 100% intact.
 */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --kyc-bg: #f4f7fb !important;
  --kyc-surface: #ffffff !important;
  --kyc-surface-soft: #f8fafc !important;
  --kyc-ink: #0f172a !important;
  --kyc-muted: #475569 !important;
  --kyc-border: #dbe3ee !important;
  --kyc-accent: #2563eb !important;
  --kyc-accent-hover: #1d4ed8 !important;
  --kyc-ok: #10b981 !important;
  --kyc-warn: #d97706 !important;
  --kyc-err: #dc2626 !important;
}

html, body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%) !important;
  color: #0f172a !important;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Remove dark background video / heavy dark backdrops on KYC & KYB light wizard pages */
body > .field, body > .dot-grid {
  opacity: 0.08 !important;
  pointer-events: none !important;
}
body > .field video { display: none !important; }

/* Clean, centered fluid card container (never stretched full-bleed) */
main, .wrap, .card, .box, .pp-main, #app {
  color: #0f172a !important;
}
.card, .box, main > section.pp-card, #app > .card, .shell > .card {
  background: #ffffff !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  padding: 24px 26px !important;
}

h1, h2, h3, .pp-h1, .pp-sec-h, .pp-brand {
  color: #0f172a !important;
  letter-spacing: -0.015em;
}
h1 { font-size: 22px !important; line-height: 1.35 !important; margin-bottom: 8px !important; }
p, li, label, .lead, .pp-lead, .sub, .hintbox, .revcard {
  color: #334155 !important;
}
.opt, .hintbox, .revcard {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  color: #0f172a !important;
}
.opt b, .rev-h { color: #0f172a !important; }
.opt span { color: #475569 !important; }

/* Light-Theme Selfie Coach Override (eliminates legacy dark navy #132438 box & contrast clash) */
.selfie-coach {
  --sc-ink: #0f172a !important;
  --sc-muted: #475569 !important;
  --sc-accent: #2563eb !important;
  background: #f8fafc !important;
  border: 1.5px solid #dbe3ee !important;
  border-radius: 18px !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  padding: 14px 16px !important;
}
.selfie-coach .sc-eyebrow { color: #2563eb !important; font-weight: 700 !important; }
.selfie-coach .sc-title { color: #0f172a !important; font-size: 16.5px !important; font-weight: 750 !important; }
.selfie-coach .sc-detail, .selfie-coach .sc-label, .selfie-coach .sc-progress { color: #475569 !important; }
.selfie-coach .sc-value { color: #0f172a !important; }
.selfie-coach .sc-checks { border-top: 1px solid #e2e8f0 !important; }
.selfie-coach .sc-check[data-state="ok"] .sc-mark {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}
.selfie-coach .sc-check[data-state="fix"] .sc-mark {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #b45309 !important;
}
.selfie-coach[data-tone="attention"] {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
}
.selfie-coach[data-tone="attention"] .sc-title { color: #b45309 !important; }
.selfie-coach[data-code="captured"] {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
}
.selfie-coach[data-code="captured"] .sc-title { color: #047857 !important; }

/* Fluid Sequential Stepper */
.llc-fluid-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 18px 0;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.llc-fstep {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  padding: 5px 10px;
  border-radius: 999px;
  transition: all .22s ease;
}
.llc-fstep .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e2e8f0; color: #475569; font-size: 11.5px; font-weight: 700;
}
.llc-fstep.active { background: #eff6ff; color: #1d4ed8; }
.llc-fstep.active .num { background: #2563eb; color: #ffffff; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32); }
.llc-fstep.done { color: #047857; }
.llc-fstep.done .num { background: #10b981; color: #ffffff; }

/* Inputs & Buttons */
input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="search"], select, textarea {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  min-height: 44px;
  padding: 10px 13px !important;
}
input:focus, select:focus, textarea:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
  outline: none !important;
}
button, .btn, .pp-cta {
  min-height: 44px;
  border-radius: 12px !important;
  font-weight: 600 !important;
}
button[type="submit"], .btn.pri, #go, #b1, #b2, #b4, #go1, #go2, #go3, .pp-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22) !important;
}
.btn.ghost, .pp-cta-2, .voice-toggle {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

/* KYB Fluid Step Panels */
.kyb-wstep { display: none; animation: kybFadeIn .24s ease both; }
.kyb-wstep.on { display: block; }
@keyframes kybFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.kyb-nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
@media(max-width: 560px) { .cats { grid-template-columns: 1fr; } }
.cat {
  background: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px !important;
  cursor: pointer;
}
.cat.on {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * APPLE iPHONE FACE ID / GOOGLE IDENTITY VERIFICATION UNIFIED BIOMETRIC STAGE
 * Applies ONLY to Face Stages (#camwrap, #cam, #stage) — NEVER to #doccam!
 * ═══════════════════════════════════════════════════════════════════════════ */
.llc-faceid-host {
  position: relative !important;
  width: min(304px, 80vw) !important;
  height: min(304px, 80vw) !important;
  aspect-ratio: 1 / 1 !important;
  margin: 14px auto 12px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 50% 42%, #f8fafc 0%, #e2e8f0 100%) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12), 0 0 0 6px #ffffff, 0 0 0 7px #dbe3ee !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.llc-faceid-host > video,
.llc-faceid-host > canvas#mesh,
.llc-faceid-host > canvas#cvs {
  position: absolute !important;
  inset: 14px !important;
  width: calc(100% - 28px) !important;
  height: calc(100% - 28px) !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  transform: scaleX(-1);
}

/* Hide legacy dark rectangular mask/oval clutter inside Face ID host while keeping DOM elements intact */
.llc-faceid-host > .oval,
.llc-faceid-host > .faceguide {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 60-Tick Biometric Ring Overlay */
.llc-faceid-overlay {
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.llc-faceid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.llc-fid-bezel {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.2;
}

.llc-fid-tick {
  stroke: #cbd5e1;
  stroke-width: 3.1;
  stroke-linecap: round;
  transition: stroke 0.18s ease, stroke-width 0.18s ease, opacity 0.18s ease;
}
.llc-fid-tick.scan {
  stroke: #3b82f6;
  stroke-width: 3.8;
}
.llc-fid-tick.lit {
  stroke: #10b981;
  stroke-width: 3.8;
}
.llc-fid-tick.warn {
  stroke: #f59e0b;
}

.llc-faceid-overlay.done .llc-fid-tick {
  stroke: #10b981 !important;
  stroke-width: 4 !important;
}
.llc-faceid-overlay.done .llc-fid-bezel {
  stroke: #10b981;
  stroke-width: 3;
}

/* Unified REC (Selfie + Liveness + Video Clip) Top Pill */
.llc-fid-rec-pill {
  position: relative;
  top: -12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: #0f172a !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.llc-fid-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  animation: llcRecPulse 1.3s ease-in-out infinite;
}
.llc-faceid-overlay.done .llc-fid-rec-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.24);
  animation: none;
}
@keyframes llcRecPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.84); }
}

/* Bottom Live Framing / Anti-Spoof Guidance Pill */
.llc-fid-cue-pill {
  position: relative;
  bottom: -16px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
  text-align: center;
  max-width: 310px;
  transition: background 0.2s ease;
}
.llc-fid-cue-pill.warn {
  background: #b45309 !important;
  color: #ffffff !important;
}
.llc-fid-cue-pill.ok {
  background: #059669 !important;
  color: #ffffff !important;
}

.steps .s { background: #e2e8f0 !important; height: 7px !important; border-radius: 999px !important; }
.steps .s.on { background: #2563eb !important; }


/* ── Modern Document Camera & "Best Photo Frame" (قاب بهترین عکس) Header + Single-Slot Retry ── */
.llc-best-frame-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.42), 0 0 0 2px rgba(255, 255, 255, 0.85);
  pointer-events: none;
  white-space: nowrap;
}
.llc-best-frame-badge .llc-bf-dot {
  color: #fde68a;
  font-size: 14px;
}
.doccam .cw {
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45) !important;
}
.shot.llc-slot-focus {
  outline: 3px solid #f59e0b !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18) !important;
}
.llc-replace-one-btn {
  margin-top: 6px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  min-height: 34px !important;
  width: 100%;
}


/* ── Graphical Illustrated KYB Small vs Large Enterprise Cards ── */
.kyb-graphic-cats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 18px 0 !important;
}
@media (max-width: 680px) {
  .kyb-graphic-cats { grid-template-columns: 1fr !important; }
}
.kyb-gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 18px !important;
  padding: 16px !important;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.kyb-gcard:hover {
  transform: translateY(-2px);
  border-color: #38bdf8 !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
}
.kyb-gcard.on {
  border-color: #0284c7 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.16), 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
}
.kyb-gart {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.kyb-gtag {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  margin-bottom: 8px;
}
.kyb-gtag.corp {
  background: #e0e7ff;
  color: #1e40af;
}
.kyb-glist {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed #e2e8f0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #334155;
}
.kyb-glist li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.kyb-glist li span {
  color: #059669;
  font-weight: 800;
}

/* KYB Language Pills Contrast + Small vs Large Company Email UI (2026-11-27) */
.langs { gap: 8px !important; margin-bottom: 14px !important; }
.langs a {
  color: #334155 !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 999px !important;
  padding: 5px 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all .15s ease;
}
.langs a:hover { background: #e0f2fe !important; border-color: #7dd3fc !important; color: #0369a1 !important; }
.langs a.cur {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}
.kyb-small-email-note {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}
.kyb-corp-email-wrap {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #bae6fd;
}
.kyb-corp-email-wrap label {
  margin-top: 0 !important;
  color: #0c4a6e !important;
  font-weight: 700 !important;
}
.kyb-corp-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}
.msg.err {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
  font-weight: 600;
}
.msg.ok {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 600;
}