/* v1.25.0 — Device Backup UI */

.device-backup-modal {
    max-width: 640px;
    width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.db-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
    margin-bottom: 12px;
}

.db-header h3 {
    margin: 0;
    font-size: 18px;
}

.db-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted, #8b949e);
    padding: 4px 8px;
}

.db-warning {
    background: rgba(79, 138, 255, 0.08);
    border-left: 3px solid var(--accent, #58a6ff);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

#db-content {
    flex: 1;
    overflow-y: auto;
}

.db-method {
    background: var(--bg-secondary, rgba(255,255,255,.02));
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.db-method-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.db-method-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.db-method-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.db-method-desc {
    font-size: 12px;
    color: var(--text-muted, #8b949e);
    line-height: 1.4;
}

.db-method-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.db-method-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

.db-method-status {
    font-size: 12px;
    color: var(--green, #3fb950);
    align-self: center;
}

.db-divider {
    border-top: 1px solid var(--border, rgba(255,255,255,.08));
    margin: 16px 0;
}

.db-restore-section {
    background: rgba(79, 138, 255, 0.05);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.db-restore-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.db-restore-desc {
    font-size: 12px;
    color: var(--text-muted, #8b949e);
    margin-bottom: 12px;
}

/* Restore wizard */

.db-restore-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.db-restore-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-secondary, rgba(255,255,255,.02));
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    transition: all 0.15s;
    font-family: inherit;
}

.db-restore-option:hover:not(.disabled):not(:disabled) {
    background: var(--bg-hover, rgba(255,255,255,.04));
    border-color: var(--accent, #58a6ff);
    transform: translateY(-1px);
}

.db-restore-option.disabled,
.db-restore-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.db-restore-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.db-restore-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.db-restore-desc {
    font-size: 12px;
    color: var(--text-muted, #8b949e);
}

/* Recovery code display */

.db-recovery-code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 18px;
    letter-spacing: 2px;
    background: var(--bg-secondary, rgba(0,0,0,0.3));
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin: 16px 0;
    border: 2px dashed var(--accent, #58a6ff);
    color: var(--accent, #58a6ff);
    font-weight: 600;
    word-break: break-all;
    user-select: all;
}

/* Cross-device fingerprint */

.db-cd-fingerprint {
    background: var(--bg-secondary, rgba(255,255,255,.03));
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin: 16px 0;
}

.db-cd-fp-label {
    font-size: 11px;
    color: var(--text-muted, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.db-cd-fp-code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent, #58a6ff);
}

.db-cd-meta {
    font-size: 12px;
    color: var(--text-muted, #8b949e);
    background: var(--bg-secondary, rgba(255,255,255,.02));
    padding: 10px 14px;
    border-radius: 6px;
    margin: 12px 0;
    line-height: 1.7;
}

.db-cd-status {
    text-align: center;
    padding: 12px;
    color: var(--text-muted, #8b949e);
    font-size: 13px;
}

@media (max-width: 640px) {
    .db-method-header {
        flex-wrap: wrap;
    }
    .db-method-actions {
        flex-direction: column;
        width: 100%;
    }
    .db-method-actions .btn {
        width: 100%;
    }
    .db-cd-fp-code {
        font-size: 24px;
        letter-spacing: 2px;
    }
}
