/* Settings Page Specific Styles */

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    box-shadow: 0 4px 12px rgba(94, 0, 255, 0.2);
}

.tab-btn svg {
    flex-shrink: 0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Settings Section */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Settings Card */
.settings-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.settings-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(94, 0, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.help-text {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Photo Upload */
.photo-upload {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.photo-preview {
    flex-shrink: 0;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Hours Grid */
.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-row {
    display: grid;
    grid-template-columns: 150px 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.day-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
}

.day-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--purple);
}

.time-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.time-separator {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Notification Items */
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--purple), var(--blue));
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Security Status */
.security-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    margin-top: 1rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.enabled {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.disabled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
}

.session-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 10px;
    color: var(--purple);
}

.session-info {
    flex: 1;
}

.session-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.session-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.session-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-top: 0.5rem;
}

.session-badge.current {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

.danger-actions {
    margin-top: 1rem;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.danger-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.danger-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* API Keys */
.api-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.api-keys-list {
    min-height: 200px;
}

.api-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.api-key-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.api-key-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.api-key-value {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

.api-key-actions {
    display: flex;
    gap: 0.5rem;
}

/* Documentation Links */
.docs-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-link:hover {
    background: var(--bg-secondary);
    border-color: var(--purple);
    transform: translateX(4px);
}

.doc-icon {
    font-size: 1.5rem;
}

.doc-link h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.doc-link p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.doc-link svg {
    margin-left: auto;
    color: var(--text-tertiary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state svg {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(94, 0, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 0, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--danger);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

/* Warning Box */
.warning-box {
    text-align: center;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.warning-box svg {
    margin-bottom: 1rem;
}

.warning-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--danger);
}

.warning-box p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.warning-box ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.warning-box li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Integrations */
.integration-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.integration-logo {
    flex-shrink: 0;
}

.integration-logo img {
    height: 40px;
    width: auto;
}

.integration-info {
    flex: 1;
}

.integration-info h3 {
    margin-bottom: 0.25rem;
}

.integration-state {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-badge.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-badge.connected {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.integration-features h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.integration-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.integration-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.integration-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sync-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.sync-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.sync-status.active::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.integration-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.integration-icon {
    font-size: 2rem;
}

.integration-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(94, 0, 255, 0.1);
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hours-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .photo-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .settings-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .settings-card {
        padding: 1.5rem;
    }

    .api-header,
    .danger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* ============================================ */
/* TWO-FACTOR AUTHENTICATION (2FA) STYLES      */
/* ============================================ */

.modal-medium {
    max-width: 550px;
}

.twofa-step {
    text-align: center;
}

.twofa-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.twofa-step p {
    color: var(--text-secondary);
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.authenticator-apps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    text-align: left;
}

.app-option {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.app-option:hover {
    border-color: var(--purple);
    box-shadow: 0 2px 8px rgba(94, 0, 255, 0.1);
}

.app-option strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

.app-link {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.app-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(94, 0, 255, 0.3);
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
    margin: 24px 0;
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--border);
}

#qrCodeDisplay {
    display: none;
}

#qrCodeDisplay img {
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 8px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.manual-entry {
    margin-top: 24px;
    text-align: left;
}

.manual-entry details {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px 16px;
}

.manual-entry summary {
    cursor: pointer;
    color: var(--purple);
    font-weight: 600;
    font-size: 0.875rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manual-entry summary::-webkit-details-marker {
    display: none;
}

.manual-entry summary::before {
    content: '▶';
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.manual-entry details[open] summary::before {
    transform: rotate(90deg);
}

.manual-entry summary:hover {
    color: var(--blue);
}

.manual-code {
    padding: 16px 0 0 0;
}

.manual-code label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.code-display code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.btn-icon {
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--purple);
    border-color: var(--purple);
}

.verification-code-input {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.verification-code-input input {
    width: 100%;
    max-width: 300px;
    padding: 18px 24px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 12px;
    font-family: 'Courier New', monospace;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.verification-code-input input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.5;
}

.verification-code-input input:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(94, 0, 255, 0.1);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert strong {
    font-weight: 600;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

.alert-info svg {
    color: #3b82f6;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
}

.alert-warning svg {
    color: #f59e0b;
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.recovery-codes-section {
    margin-top: 24px;
    text-align: left;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.recovery-codes-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.recovery-code {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.twofa-step button {
    margin-top: 12px;
}

.twofa-step .btn-secondary {
    margin-right: 8px;
}

/* 2FA Responsive */
@media (max-width: 768px) {
    .modal-medium {
        max-width: 95%;
    }

    .verification-code-input input {
        font-size: 1.75rem;
        padding: 14px 18px;
        letter-spacing: 8px;
    }

    .recovery-codes {
        grid-template-columns: 1fr;
    }

    .qr-code-container {
        min-height: 240px;
        padding: 16px;
    }

    #qrCodeDisplay img {
        width: 200px;
        height: 200px;
    }
}