/* ── SSF OTP Modal Styles ── */

#ssf-otp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    animation: ssfFadeIn 0.2s ease;
}
#ssf-otp-modal.ssf-modal-open {
    display: flex;
}
@keyframes ssfFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ssf-modal-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: ssfSlideUp 0.25s ease;
}
@keyframes ssfSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.ssf-modal-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}
.ssf-modal-box p {
    margin: 0 0 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}
.ssf-modal-box p strong {
    color: #1a1a1a;
}

/* OTP Input */
#ssf-otp-field {
    width: 100%;
    padding: 14px 16px;
    font-size: 22px;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
#ssf-otp-field:focus {
    border-color: #0066cc;
}

/* Error */
.ssf-otp-error {
    color: #d32f2f;
    font-size: 13px;
    margin: 8px 0 0;
    background: #fff3f3;
    border: 1px solid #f8c8c8;
    border-radius: 6px;
    padding: 8px 12px;
}

/* Actions */
.ssf-otp-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.ssf-btn {
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}
.ssf-btn-primary {
    background: #3dbaec !important;
    color: #fff !important;
    padding: 12px 28px;
    flex: 1;
    border: none !important;
    padding: 12px 28px;
    flex: 1;
    cursor: pointer !important;
}
.ssf-btn-primary:hover:not(:disabled) { background: #3dbaec !important; }
.ssf-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.ssf-btn-link {
    background: #3dbaec !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer !important;
}
.ssf-btn-link:disabled { color: #aaa; cursor: not-allowed; }
.ssf-btn-link:hover:not(:disabled) { text-decoration: underline; }

/* Close button */
.ssf-modal-close {
    background: none !important;
    border: 2px solid #3dbaec !important;
    color: #fff !important;
    position: absolute;
    top: 14px;
    right: 16px;
    transition: background 0.2s, color 0.2s !important;
    color: #3dbaec !important;
    border: none;
    font-size: 24px;
    cursor: pointer !important;
    line-height: 1;
    padding: 0;
}
.ssf-modal-close:hover { color: #3dbaec; }

/* Responsive */
@media (max-width: 480px) {
    .ssf-modal-box {
        margin: 16px;
        padding: 28px 20px 22px;
    }
    .ssf-otp-actions { flex-direction: column; }
    .ssf-btn-primary { width: 100%; }
}
