/* ================= OTP Modal Overlay ================= */
#bp-otp-modal .bp-otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

/* ================= OTP Box ================= */
#bp-otp-modal .bp-otp-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 22px 22px;
    z-index: 9999;
    width: 380px;
    max-width: 95%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: otpFadeIn 0.35s ease forwards;
}

/* ================= Fade In ================= */
@keyframes otpFadeIn {
    from { opacity: 0; transform: translate(-50%, -55%) scale(0.9); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ================= Title ================= */
#bp-otp-modal h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

/* ================= Timer ================= */
#bp-otp-modal .bp-otp-timer {
    font-size: 15px;
    margin-bottom: 12px;
    color: #666;
    font-weight: 500;
}

/* ================= Status ================= */
#bp-otp-modal .bp-otp-status {
    font-size: 14px;
    margin-bottom: 14px;
    min-height: 18px;
    color: #333;
}

/* ================= OTP Inputs Container ================= */
#bp-otp-modal .bp-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    margin-bottom: 18px;
    background: #f6f7f9;
    border-radius: 14px;
    flex-wrap: nowrap;
}

/* ================= OTP Inputs ================= */
#bp-otp-modal .bp-otp-inputs input {
    width: calc((100% - 5*8px)/6); /* 6 input-uri + gap */
    max-width: 60px;
    height: 52px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111;
    outline: none;
    transition: 
        border 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

/* Focus (iOS banking style) */
#bp-otp-modal .bp-otp-inputs input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0,122,255,0.25);
    transform: scale(1.05);
}

/* ================= Shake Animation ================= */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* aplicat doar pe containerul input-urilor */
#bp-otp-modal .bp-otp-inputs.shake {
    animation: shake 0.25s;
}

/* ================= Actions ================= */
#bp-otp-modal .bp-otp-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* ================= Buttons ================= */
#bp-otp-modal .bp-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.2s ease;
}

/* Confirm */
.bp-btn-success {
    background: linear-gradient(180deg, #34c759, #28a745);
    color: #fff;
    box-shadow: 0 6px 16px rgba(52,199,89,0.4);
}

.bp-btn-success:hover { transform: translateY(-1px); }
.bp-btn-success:active { transform: scale(0.96); box-shadow: 0 3px 8px rgba(52,199,89,0.3); }

/* Cancel */
.bp-btn-danger { background: #f2f2f7; color: #111; }
.bp-btn-danger:hover { background: #e5e5ea; }
.bp-btn-danger:active { transform: scale(0.96); }

/* ================= Resend ================= */
.bp-btn-link { background: none; border: none; color: #007aff; font-size: 14px; font-weight: 500; cursor: pointer; }
.bp-btn-link:disabled { color: #aaa; cursor: not-allowed; }

/* ================= Mobile Fine-tuning ================= */
@media (max-width: 420px) {
    #bp-otp-modal .bp-otp-box { padding: 22px 18px; }
    #bp-otp-modal .bp-otp-inputs { gap: 6px; padding: 12px; }
    #bp-otp-modal .bp-otp-inputs input { height: 46px; font-size: 20px; }
}

/* ================= Emoji Pulse (optional) ================= */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

#bp-otp-modal .bp-otp-status span.emoji-pulse {
    display: inline-block;
    animation: pulse 0.6s ease;
}