
.mfa-wizard-modal .modal-content {
    border-radius: 0.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.mfa-wizard-modal .modal-header {
    border-bottom-color: #e3e8ee;
    padding: 1.25rem 1.5rem;
}
.mfa-wizard-modal .modal-title {
    font-size: 1.1rem;
    color: #32325d;
    font-weight: 600;
}
.mfa-wizard-modal .modal-body {
    padding: 1.5rem;
}
.mfa-wizard-modal .modal-footer {
    background: #f7f8fa;
    border-top-color: #e3e8ee;
    padding: 1rem 1.5rem;
}

/* Shake animation for non-dismissable modal */
@keyframes mfa-wizard-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.mfa-wizard-modal .modal-dialog.shake {
    animation: mfa-wizard-shake 0.4s ease-out;
}

/* Step indicator */
.mfa-wizard-modal .step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}
.mfa-wizard-modal .step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 500;
    white-space: nowrap;
}
.mfa-wizard-modal .step-item.active { color: #009dc9; }
.mfa-wizard-modal .step-item.done { color: #2dce89; }
.mfa-wizard-modal .step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: #eef0f3;
    color: #adb5bd;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.mfa-wizard-modal .step-item.active .step-circle {
    background: #009dc9;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 157, 201, 0.4);
}
.mfa-wizard-modal .step-item.done .step-circle {
    background: #2dce89;
    color: #fff;
}
.mfa-wizard-modal .step-line {
    width: 32px;
    height: 2px;
    background: #eef0f3;
    margin: 0 0.4rem;
    border-radius: 2px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}
.mfa-wizard-modal .step-line.done { background: #2dce89; }

/* Method card */
.mfa-wizard-modal .method-card {
    border: 2px solid #e3e8ee;
    border-radius: 0.625rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    position: relative;
}
.mfa-wizard-modal .method-card:hover {
    border-color: #009dc9;
    background: #f0fafe;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 157, 201, 0.1);
}
.mfa-wizard-modal .method-card.selected {
    border-color: #009dc9;
    background: #e6f6fb;
    box-shadow: 0 0 0 3px rgba(0, 157, 201, 0.15);
}
.mfa-wizard-modal .method-card .check-mark {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #009dc9;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.mfa-wizard-modal .method-card.selected .check-mark { display: flex; }
.mfa-wizard-modal .method-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.mfa-wizard-modal .method-icon.app-icon { background: #e6f6fb; color: #009dc9; }
.mfa-wizard-modal .method-icon.email-icon { background: #fef3e6; color: #fb6340; }
.mfa-wizard-modal .method-card h5 { font-size: 0.95rem; margin-bottom: 0.25rem; color: #32325d; }
.mfa-wizard-modal .method-card p { font-size: 0.82rem; color: #8898aa; margin-bottom: 0; line-height: 1.45; }
.mfa-wizard-modal .badge-rec {
    display: inline-block;
    font-size: 0.65rem;
    background: #009dc9;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.35rem;
    vertical-align: middle;
    font-weight: 600;
}

/* QR area */
.mfa-wizard-modal .qr-container {
    background: #fff;
    border: 2px solid #e3e8ee;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}
.mfa-wizard-modal .qr-placeholder {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    background: #fff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mfa-wizard-modal .qr-placeholder canvas,
.mfa-wizard-modal .qr-placeholder img {
    border-radius: 0.25rem;
}
.mfa-wizard-modal .secret-key-box {
    background: #f7f8fa;
    border: 1px solid #e3e8ee;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #32325d;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* OTP inputs */
.mfa-wizard-modal .otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.mfa-wizard-modal .otp-inputs input {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border: 2px solid #e3e8ee;
    border-radius: 0.5rem;
    color: #32325d;
    transition: all 0.2s ease;
    outline: none;
    background: #fff;
}
.mfa-wizard-modal .otp-inputs input:focus {
    border-color: #009dc9;
    box-shadow: 0 0 0 3px rgba(0, 157, 201, 0.15);
}
.mfa-wizard-modal .otp-inputs input.filled {
    border-color: #009dc9;
    background: #f0fafe;
}
.mfa-wizard-modal .otp-inputs input.error {
    border-color: #f5365c;
    background: #fff5f5;
    animation: mfaWizardShake 0.4s ease;
}
@keyframes mfaWizardShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Backup codes */
.mfa-wizard-modal .backup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}
.mfa-wizard-modal .backup-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    background: #f7f8fa;
    border: 1px solid #e3e8ee;
    padding: 0.4rem 0.6rem;
    border-radius: 0.35rem;
    text-align: center;
    letter-spacing: 0.06em;
    color: #32325d;
    font-weight: 500;
}

/* Success */
.mfa-wizard-modal .success-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dce89, #24a46d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(45, 206, 137, 0.35);
}

/* Email send area */
.mfa-wizard-modal .email-send-box {
    background: #f7f8fa;
    border: 1px solid #e3e8ee;
    border-radius: 0.625rem;
    padding: 1.5rem;
    text-align: center;
}
.mfa-wizard-modal .email-icon-big {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef3e6;
    color: #fb6340;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.4rem;
}

/* Timer */
.mfa-wizard-modal .resend-timer {
    font-size: 0.8rem;
    color: #8898aa;
}
.mfa-wizard-modal .resend-timer a {
    color: #009dc9;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.mfa-wizard-modal .resend-timer a:hover { text-decoration: underline; }
.mfa-wizard-modal .resend-timer a.disabled {
    color: #adb5bd;
    pointer-events: none;
}

/* Tooltip */
.mfa-wizard-modal .copied-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #32325d;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.mfa-wizard-modal .copied-tooltip.show { opacity: 1; }

/* Info/Warning tips */
.mfa-wizard-modal .info-tip, .mfa-wizard-modal .warning-tip, .mfa-wizard-modal .success-tip  {
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.mfa-wizard-modal .info-tip {
    background: #f0fafe;
    border: 1px solid rgba(0, 157, 201, 0.2);
    color: #0082a8;
}
.mfa-wizard-modal .warning-tip {
    background: #fef8e6;
    border: 1px solid rgba(251, 99, 64, 0.2);
    color: #d4550e;
}
.mfa-wizard-modal .success-tip {
    background: #f1fee6;
    border: 1px solid rgba(64, 251, 129, 0.2);
    color: #3c7a02;
}
.mfa-wizard-modal .info-tip svg, .mfa-wizard-modal .warning-tip svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.fade-in {
    opacity: 0;
    transform: translateY(-5px);
    animation: mfaWizardFadeIn 0.35s ease forwards;
}
/* Step transitions */
.mfa-wizard-modal .wizard-step { display: none; }
.mfa-wizard-modal .wizard-step.active {
    display: block;
    animation: mfaWizardFadeIn 0.3s ease;
}
@keyframes mfaWizardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spinner */
.mfa-wizard-modal .spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mfaWizardSpin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35rem;
}
@keyframes mfaWizardSpin { to { transform: rotate(360deg); } }

/* Divider */
.mfa-wizard-modal .divider-text {
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    color: #adb5bd;
    margin: 1rem 0;
}
.mfa-wizard-modal .divider-text::before, .mfa-wizard-modal .divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e3e8ee;
}
.mfa-wizard-modal .divider-text::before { margin-right: 0.75rem; }
.mfa-wizard-modal .divider-text::after { margin-left: 0.75rem; }

/* Copy button */
.mfa-wizard-modal .btn-copy {
    background: none;
    border: none;
    color: #009dc9;
    cursor: pointer;
    padding: 0.15rem;
    display: flex;
    align-items: center;
    position: relative;
}
.mfa-wizard-modal .btn-copy:hover { color: #0082a8; }
.mfa-wizard-modal .close, .mfa-wizard-modal .close:hover {
    top: 1rem !important;
    right: 1rem !important;
}

