/* OTP Popup Overlay */
#otp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
}

/* OTP Popup Container */
#otp-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 90%;
    max-width: 400px;
    z-index: 99999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Close Button */
#otp-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

#otp-popup-close:hover {
    color: #333;
}

/* Icon */
.otp-icon {
    margin-bottom: 16px;
}

/* Heading & Text */
#otp-popup h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

#otp-popup p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* OTP Input Group */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1a1a2e;
    background: #fafafa;
}

.otp-digit:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: #fff;
}

/* Verify Button */
#otp-verify-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 12px;
}

#otp-verify-btn:hover:not(:disabled) {
    background: #4338ca;
}

#otp-verify-btn:active:not(:disabled) {
    transform: scale(0.98);
}

#otp-verify-btn:disabled {
    background: #a5a3d9;
    cursor: not-allowed;
}

/* Resend Button */
#otp-send-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #4f46e5;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

#otp-send-btn:hover:not(:disabled) {
    color: #4338ca;
    text-decoration: underline;
}

#otp-send-btn:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Messages */
#otp-popup-message {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
}

.otp-msg-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.otp-msg-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mobile */
@media (max-width: 480px) {
    #otp-popup {
        padding: 32px 24px;
        width: 95%;
    }

    .otp-digit {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }

    .otp-inputs {
        gap: 6px;
    }
}
