/* ── Distorcer Imagem ── */

.distorcer-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.distorcer-loading.active {
    display: flex;
}
.distorcer-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--ds-primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: distorcerSpin 0.8s linear infinite;
}
@keyframes distorcerSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.distorcer-loading-text {
    color: #fff;
    margin-top: 1rem;
    font-family: var(--ds-font-display);
    font-size: 0.95rem;
    font-weight: 600;
}

.distorcer-steps {
    counter-reset: step;
}
.distorcer-step {
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.distorcer-step h2 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.distorcer-step h2 .step-number {
    width: 28px;
    height: 28px;
    background: var(--ds-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.distorcer-preview {
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    padding: 1.5rem;
}
.distorcer-preview h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.distorcer-preview .preview-area {
    background: var(--ds-surface-alt);
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.distorcer-preview .preview-area img {
    max-height: 450px;
    max-width: 100%;
    object-fit: contain;
}
.distorcer-preview .preview-placeholder {
    text-align: center;
    color: var(--ds-muted);
}
.distorcer-preview .preview-placeholder i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}
