/* Face Scan — Face ID–style overlay (zinc + optic yellow) */

.pp-facescan-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.pp-facescan-overlay[hidden] {
    display: none !important;
}

.pp-facescan-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.72);
    backdrop-filter: blur(6px);
}

.pp-facescan-sheet {
    position: relative;
    width: min(100%, 400px);
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    border-radius: 28px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 24px 64px rgba(9, 9, 11, 0.28);
    text-align: center;
}

.pp-facescan-close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    border: none;
    background: transparent;
    color: #71717A;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}

.pp-facescan-close:hover {
    color: #09090B;
}

.pp-facescan-title {
    margin: 0 0 0.35rem;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.85rem;
    letter-spacing: 0.04em;
    color: #09090B;
}

.pp-facescan-sub {
    margin: 0 0 1.25rem;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 0.9rem;
    color: #71717A;
}

.pp-facescan-id-wrap {
    text-align: left;
    margin: 0 0 1rem;
}

.pp-facescan-id-label {
    display: block;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #52525B;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pp-facescan-id-input {
    width: 100%;
    border: 1.5px solid #E4E4E7;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 0.9rem;
    color: #09090B;
    background: #FAFAFA;
}

.pp-facescan-id-input:focus {
    outline: none;
    border-color: #09090B;
    background: #fff;
}

.pp-facescan-stage {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 1rem;
}

.pp-facescan-circle {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    overflow: hidden;
    background: #09090B;
    border: 3px solid #09090B;
}

.pp-facescan-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.pp-facescan-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #E4E4E7;
    pointer-events: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pp-facescan-ring.is-scanning {
    border-color: #D9F114;
    box-shadow: 0 0 0 4px rgba(217, 241, 20, 0.25);
    animation: pp-facescan-pulse 1.4s ease-in-out infinite;
}

.pp-facescan-overlay.is-success .pp-facescan-ring {
    border-color: #0F9F6E;
    box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.2);
    animation: none;
}

.pp-facescan-check {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: rgba(15, 159, 110, 0.88);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    z-index: 2;
}

@keyframes pp-facescan-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-facescan-ring.is-scanning {
        animation: none;
    }
}

.pp-facescan-status {
    min-height: 1.25rem;
    margin: 0 0 0.75rem;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 0.85rem;
    color: #52525B;
}

.pp-facescan-status.is-error {
    color: #FF2D55;
}

.pp-facescan-consent {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #A1A1AA;
}

.pp-facescan-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pp-facescan-btn {
    font-family: Outfit, system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    border: 1.5px solid #E4E4E7;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pp-facescan-btn:disabled {
    opacity: 0.55;
    pointer-events: none;
}

.pp-facescan-btn--ghost {
    background: #fff;
    color: #09090B;
}

.pp-facescan-btn--ghost:hover {
    border-color: #09090B;
}

.pp-facescan-btn--primary {
    background: #09090B;
    border-color: #09090B;
    color: #fff;
}

.pp-facescan-btn--primary:hover {
    background: #D9F114;
    border-color: #D9F114;
    color: #09090B;
}

/* Profile card tweaks */
.pp-facescan-card .btn-dark:hover {
    background: #D9F114 !important;
    color: #09090B !important;
}
