/* Image Filter Editor — ife- */
.ife-upload-zone {
    border: 2px dashed rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.04);
    padding: 56px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.ife-upload-zone:hover,
.ife-upload-zone:focus,
.ife-upload-zone.ife-drag-over {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.08);
}

.ife-upload-icon {
    font-size: 3rem;
    color: #8B5CF6;
    opacity: 0.7;
    margin-bottom: 14px;
    display: block;
}

.ife-upload-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.ife-upload-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.ife-section {
    padding: 40px 0 60px;

}

.ife-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem
}

.ife-badge {
    width: 44px;
    height: 44px;
    background: rgba(139, 92, 246, .15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #8B5CF6;
    flex-shrink: 0
}

.ife-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 .2rem
}

.ife-subtitle {
    font-size: 0.9375rem;
    color: #64748B;
    margin: 0
}

.ife-controls {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #E2E8F0
}

.ife-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem
}

.ife-group {
    display: flex;
    flex-direction: column;
    gap: .4rem
}

.ife-label {
    font-size: 0.9375rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: .5rem
}

.ife-val-badge {
    background: #F1F5F9;
    border-radius: 4px;
    padding: .1rem .4rem;
    font-size: 0.8125rem;
    color: #8B5CF6;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center
}

.ife-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #F1F5F9;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    width: 100%
}

.ife-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8B5CF6;
    cursor: pointer
}

.ife-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem
}

.ife-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .1s
}

.ife-btn:active {
    transform: scale(.97)
}

.ife-btn--ghost {
    background: #F1F5F9;
    color: var(--text-secondary, #64748b);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.ife-btn--ghost:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.ife-btn--primary {
    background: #8B5CF6;
    color: #fff;
}

.ife-btn--primary:hover {
    filter: brightness(1.1);
}

.ife-btn--success {
    background: transparent;
    border: 1px solid #8B5CF6;
    color: #8B5CF6;
}

.ife-btn--success:hover {
    background: rgba(139, 92, 246, 0.08);
}

.ife-preview-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.ife-pane {
    background: #F8FAFC;
    border-radius: 8px;
    padding: .75rem;
    border: 1px solid #E2E8F0;
    text-align: center
}

.ife-pane-label {
    font-size: 0.8125rem;
    color: #64748B;
    display: block;
    margin-bottom: .5rem
}

.ife-pane canvas {
    max-width: 100%;
    height: auto;
    border-radius: 4px
}

@media(max-width:600px) {
    .ife-grid {
        grid-template-columns: 1fr
    }

    .ife-preview-wrap {
        grid-template-columns: 1fr
    }
}

/* ── Preset bar ───────────────────────────────────────────────────────────── */
.ife-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ife-preset-btn {
    padding: 5px 14px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    background: transparent;
    color: var(--tool-text-muted, #9ca3af);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ife-preset-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.ife-preset-btn--active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

.ife-preset-btn--active:hover {
    color: #fff;
}

/* ── Transforms row ──────────────────────────────────────────────────────── */
.ife-transforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ife-transform-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #64748b);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ife-transform-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.06);
}

/* ── Format select ───────────────────────────────────────────────────────── */
.ife-format-select {
    padding: 0.45rem 0.7rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--text-secondary, #64748b);
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
}