/* ========================================
🔐 TFA 2FA MODAL & TOGGLE STYLES
======================================== */
.tfa-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(12px);
    display: none; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; transition: opacity 0.3s ease;
}
.tfa-modal-overlay.active { display: flex; opacity: 1; }
.tfa-modal {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    width: 90%; max-width: 380px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(188, 19, 254, 0.2);
    text-align: center; position: relative;
    animation: tfaFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes tfaFadeIn { from { transform: translateY(20px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.tfa-modal h3 { margin: 0 0 10px; color: var(--neon-cyan); font-size: 20px; }
.tfa-modal p { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; line-height: 1.4; }
.tfa-code-inputs {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 20px;
}
.tfa-code-inputs input {
    width: 42px; height: 52px; text-align: center; font-size: 22px; font-weight: bold;
    background: var(--bg-secondary); border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px; color: var(--text-main); transition: all 0.2s;
}
.tfa-code-inputs input:focus {
    outline: none; border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}
.tfa-actions { display: flex; gap: 10px; margin-top: 15px; }
.tfa-btn { flex: 1; padding: 12px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all 0.25s; font-size: 14px; border: none; }
.tfa-btn-primary { background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple)); color: #fff; box-shadow: 0 4px 15px rgba(255, 42, 109, 0.3); }
.tfa-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5); background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue)); }
.tfa-btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.1); }
.tfa-btn-secondary:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.tfa-status { margin-top: 12px; font-size: 12px; min-height: 18px; }
.tfa-status.error { color: #e74c3c; }
.tfa-status.success { color: var(--neon-green); }

/* Переключатель в настройках */
.tfa-toggle-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; background: rgba(255, 255, 255, 0.03); border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08); margin-top: 20px;
}
.tfa-toggle-info h4 { margin: 0 0 4px; color: var(--text-main); font-size: 14px; }
.tfa-toggle-info span { color: var(--text-muted); font-size: 12px; }
.tfa-switch { position: relative; width: 52px; height: 28px; }
.tfa-switch input { opacity: 0; width: 0; height: 0; }
.tfa-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--bg-secondary); border-radius: 34px;
    transition: 0.4s; border: 1px solid rgba(255, 255, 255, 0.2);
}
.tfa-slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: 0.4s; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.tfa-switch input:checked + .tfa-slider { background: var(--neon-cyan); border-color: var(--neon-cyan); }
.tfa-switch input:checked + .tfa-slider:before { transform: translateX(24px); }
.tfa-switch input:disabled + .tfa-slider { opacity: 0.5; cursor: not-allowed; }