/* ── MFA Setup Modal (Premium Design) ── */
.mfa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mfa-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mfa-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 40px 100px rgba(11, 31, 58, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.mfa-overlay.active .mfa-modal {
    transform: translateY(0) scale(1);
}

.mfa-shield {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3e4095, #1a56db);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(62, 64, 149, 0.3);
    color: white;
}

.mfa-modal h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0B1F3A;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.mfa-modal p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 32px;
}

.mfa-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.mfa-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mfa-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
}

.mfa-benefits li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14.5px;
    color: #334155;
    padding: 12px 0;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.mfa-benefits li:last-child {
    border-bottom: none;
}

.mfa-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: #1a56db;
}

.mfa-btn-row {
    display: flex;
    gap: 16px;
}

.mfa-btn-enable {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3e4095, #1a56db);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 16px rgba(62, 64, 149, 0.25);
    letter-spacing: 0.3px;
}

.mfa-btn-enable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(62, 64, 149, 0.4);
    background: linear-gradient(135deg, #323489, #174cbd);
}

.mfa-btn-enable:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(62, 64, 149, 0.2);
}

.mfa-btn-enable:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mfa-btn-skip {
    flex: 1;
    padding: 14px 20px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mfa-btn-skip:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.mfa-otp-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 28px 0;
}

.mfa-otp-digit {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0B1F3A;
    transition: all 0.2s ease;
    outline: none;
}

.mfa-otp-digit:focus {
    border-color: #1a56db;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.15);
    transform: translateY(-2px);
}

.mfa-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
    text-align: left;
}

.mfa-alert.danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.mfa-alert.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

.mfa-progress {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.mfa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.4s ease;
}

.mfa-dot.active {
    background: #1a56db;
    transform: scale(1.2);
}

/* Success Step specific */
.mfa-success-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.mfa-btn-gotit {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 540px) {
    .mfa-modal {
        padding: 40px 24px;
        border-radius: 20px;
    }
    .mfa-otp-digit {
        width: 42px;
        height: 52px;
        font-size: 20px;
    }
    .mfa-btn-row {
        flex-direction: column;
    }
    .mfa-btn-enable, .mfa-btn-skip {
        width: 100%;
    }
}
