/* ==========================================================================
   Utilix — Image Crop Tool Page
   ========================================================================== */

:root {
    --imgcr-accent: #16a34a;
    --imgcr-accent-dark: #15803d;
    --imgcr-accent-light: #f0fdf4;
}

.imgcr-hero { padding-bottom: 40px; }

.imgcr-hero__grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
}

.imgcr-hero__main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.imgcr-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgcr-hero__demo {
    position: relative;
    width: 220px;
    height: 140px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.18);
    border: 1px solid #e0e7ff;
    isolation: isolate;
}

.imgcr-hero__photo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 50%, #dcfce7 100%);
    color: #16a34a;
}

.imgcr-hero__photo svg,
.imgcr-hero__photo [data-lucide] { width: 40px; height: 40px; }

.imgcr-hero__crop-frame {
    position: absolute;
    top: 16px;
    left: 28px;
    right: 28px;
    bottom: 16px;
    border: 2px solid var(--imgcr-accent);
    border-radius: 4px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.28);
    z-index: 1;
}

.imgcr-hero__crop-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 33.33% 33.33%;
}

.imgcr-hero__handle {
    position: absolute;
    width: 10px; height: 10px;
    background: #fff;
    border: 2px solid var(--imgcr-accent);
    border-radius: 2px;
    z-index: 2;
}

.imgcr-hero__handle--tl { top: 11px; left: 23px; }
.imgcr-hero__handle--br { bottom: 11px; right: 23px; }

.imgcr-main { padding: 0 0 48px; }

.imgcr-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.imgcr-workspace { display: flex; flex-direction: column; gap: 20px; }

.imgcr-step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.imgcr-step-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.imgcr-step-card__head h2 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
}

.imgcr-step-card__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    font-size: 0.875rem;
    font-weight: 800;
    color: #fff;
    background: var(--imgcr-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Dropzone */
.imgcr-dropzone {
    border: 2px dashed #bbf7d0;
    border-radius: 16px;
    background: #fafbff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.imgcr-dropzone.is-dragover {
    border-color: var(--imgcr-accent);
    background: var(--imgcr-accent-light);
}

.imgcr-dropzone__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.imgcr-dropzone__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    margin-bottom: 16px;
    color: var(--imgcr-accent);
    background: var(--imgcr-accent-light);
    border-radius: 50%;
}

.imgcr-dropzone__icon svg,
.imgcr-dropzone__icon [data-lucide] { width: 28px; height: 28px; }

.imgcr-dropzone__title { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--heading); }
.imgcr-dropzone__or { margin: 0 0 12px; font-size: 0.8125rem; color: #94a3b8; }
.imgcr-dropzone__hint { margin: 12px 0 0; font-size: 0.75rem; color: #94a3b8; }

.imgcr-upload-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.imgcr-upload-preview img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.imgcr-upload-preview__meta { flex: 1; min-width: 0; }
.imgcr-upload-preview__meta strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.imgcr-upload-preview__meta span { font-size: 0.8125rem; color: #94a3b8; }

/* Editor */
.imgcr-editor { display: flex; gap: 16px; }

.imgcr-editor__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.imgcr-editor__toolbar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.imgcr-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.imgcr-tool-btn svg,
.imgcr-tool-btn [data-lucide] { width: 18px; height: 18px; }

.imgcr-tool-btn:hover { border-color: #bbf7d0; color: var(--imgcr-accent); }

.imgcr-tool-btn.is-active {
    color: #fff;
    background: var(--imgcr-accent);
    border-color: var(--imgcr-accent);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.imgcr-editor__stage {
    flex: 1;
    min-width: 0;
    background: #1e293b;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.imgcr-editor__viewport {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.imgcr-display-canvas {
    position: absolute;
    display: block;
    user-select: none;
    pointer-events: none;
}

.imgcr-crop-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.imgcr-crop-shade {
    position: absolute;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: none;
}

.imgcr-crop-box {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.8);
    cursor: move;
    z-index: 3;
}

.imgcr-crop-box__grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
    background-size: 33.33% 33.33%;
    pointer-events: none;
}

.imgcr-crop-handle {
    position: absolute;
    width: 10px; height: 10px;
    background: #fff;
    border: 2px solid var(--imgcr-accent);
    border-radius: 2px;
    z-index: 4;
}

.imgcr-crop-handle[data-handle="nw"] { top: -5px; left: -5px; cursor: nw-resize; }
.imgcr-crop-handle[data-handle="ne"] { top: -5px; right: -5px; cursor: ne-resize; }
.imgcr-crop-handle[data-handle="sw"] { bottom: -5px; left: -5px; cursor: sw-resize; }
.imgcr-crop-handle[data-handle="se"] { bottom: -5px; right: -5px; cursor: se-resize; }
.imgcr-crop-handle[data-handle="n"]  { top: -5px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.imgcr-crop-handle[data-handle="s"]  { bottom: -5px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.imgcr-crop-handle[data-handle="w"]  { left: -5px; top: 50%; transform: translateY(-50%); cursor: w-resize; }
.imgcr-crop-handle[data-handle="e"]  { right: -5px; top: 50%; transform: translateY(-50%); cursor: e-resize; }

.imgcr-ratio-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 14px 14px;
}

.imgcr-ratio-btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.imgcr-ratio-btn.is-active {
    color: #fff;
    background: var(--imgcr-accent);
    border-color: var(--imgcr-accent);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.imgcr-ratio-btn--custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 50%;
}

.imgcr-ratio-btn--custom svg,
.imgcr-ratio-btn--custom [data-lucide] { width: 16px; height: 16px; }

/* Options */
.imgcr-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.imgcr-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.imgcr-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: var(--heading);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.imgcr-field--quality { grid-column: 1 / -1; }

.imgcr-field__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.imgcr-field__value { font-size: 0.8125rem; font-weight: 700; color: var(--imgcr-accent); }
.imgcr-range { width: 100%; accent-color: var(--imgcr-accent); }

.imgcr-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--heading);
}

.imgcr-check input { display: none; }

.imgcr-check__box {
    width: 20px; height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.imgcr-check input:checked + .imgcr-check__box {
    background: var(--imgcr-accent);
    border-color: var(--imgcr-accent);
}

.imgcr-check input:checked + .imgcr-check__box::after {
    content: '';
    position: absolute;
    left: 5px; top: 2px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.imgcr-check--inline { grid-column: 1 / -1; }

/* Buttons */
.imgcr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.imgcr-btn svg,
.imgcr-btn [data-lucide] { width: 18px; height: 18px; }

.imgcr-btn--primary {
    color: #fff;
    background: var(--imgcr-accent);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}

.imgcr-btn--ghost {
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid var(--border);
}

.imgcr-btn--sm { padding: 8px 12px; font-size: 0.8125rem; }

.imgcr-btn--crop {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--imgcr-accent), var(--imgcr-accent-dark));
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.imgcr-btn--crop:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.imgcr-btn--crop.is-loading { opacity: 0.7; pointer-events: none; }

/* Result */
.imgcr-result-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.imgcr-result-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.imgcr-result-card__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
}

.imgcr-result-card__head h2 svg,
.imgcr-result-card__head h2 [data-lucide] { width: 20px; height: 20px; color: #16a34a; }

.imgcr-result-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.imgcr-result-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.imgcr-result-preview {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.imgcr-result-preview img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
    object-fit: contain;
}

.imgcr-result-info h3 { margin: 0 0 16px; font-size: 0.9375rem; font-weight: 700; color: var(--heading); }

.imgcr-info-table__row,
.imgcr-live-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.imgcr-info-table__row:last-child,
.imgcr-live-info__row:last-child { border-bottom: none; }

.imgcr-info-table__row dt,
.imgcr-live-info__row dt { color: #64748b; font-weight: 500; }

.imgcr-info-table__row dd,
.imgcr-live-info__row dd { margin: 0; font-weight: 600; color: var(--heading); text-align: right; }

.imgcr-savings-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 100px;
}

.imgcr-savings-badge--down { color: #15803d; background: #dcfce7; }
.imgcr-savings-badge--up { color: #b45309; background: #fef3c7; }

/* Sidebar */
.imgcr-sidebar { display: flex; flex-direction: column; gap: 20px; }

.imgcr-side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.imgcr-side-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--heading);
}

.imgcr-side-card__title svg,
.imgcr-side-card__title [data-lucide] { width: 18px; height: 18px; color: var(--imgcr-accent); }

.imgcr-preset-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.imgcr-preset-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading);
}

.imgcr-preset-btn:hover { border-color: #bbf7d0; background: var(--imgcr-accent-light); }

.imgcr-preset-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    color: var(--imgcr-accent);
    background: #fff;
    border-radius: 10px;
    flex-shrink: 0;
}

.imgcr-preset-btn__icon svg,
.imgcr-preset-btn__icon [data-lucide] { width: 18px; height: 18px; }

.imgcr-link-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--imgcr-accent);
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.imgcr-live-info { margin: 0; }

.imgcr-how-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imgcr-how-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: #475569;
}

.imgcr-how-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--imgcr-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.imgcr-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.imgcr-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
}

.imgcr-tips-list li svg,
.imgcr-tips-list li [data-lucide] {
    width: 16px; height: 16px;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Features & steps */
.imgcr-features { padding: 48px 0; background: #f8fafc; }

.imgcr-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.imgcr-feature-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.imgcr-feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
}

.imgcr-feature-card__icon svg,
.imgcr-feature-card__icon [data-lucide] { width: 24px; height: 24px; }

.imgcr-feature-card__icon--purple { background: #f0fdf4; color: #16a34a; }
.imgcr-feature-card__icon--green  { background: #dcfce7; color: #16a34a; }
.imgcr-feature-card__icon--blue   { background: #dbeafe; color: #2563eb; }
.imgcr-feature-card__icon--orange { background: #ffedd5; color: #ea580c; }

.imgcr-feature-card h3 { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 700; color: var(--heading); }
.imgcr-feature-card p { margin: 0; font-size: 0.8125rem; color: #64748b; line-height: 1.6; }

.imgcr-steps-section { padding: 72px 0; }
.imgcr-section-head { margin-bottom: 40px; }
.imgcr-section-head--center { text-align: center; }

.imgcr-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--imgcr-accent);
    background: var(--imgcr-accent-light);
    border-radius: 100px;
}

.imgcr-section-head h2 { margin: 0 0 8px; font-size: 1.75rem; font-weight: 800; color: var(--heading); }
.imgcr-section-head p { margin: 0; font-size: 1rem; color: #64748b; }

.imgcr-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.imgcr-step {
    position: relative;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.imgcr-step__num {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--imgcr-accent);
    border-radius: 50%;
}

.imgcr-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin: 8px auto 12px;
    color: var(--imgcr-accent);
    background: var(--imgcr-accent-light);
    border-radius: 14px;
}

.imgcr-step__icon svg,
.imgcr-step__icon [data-lucide] { width: 24px; height: 24px; }

.imgcr-step strong { display: block; margin-bottom: 6px; font-size: 0.9375rem; color: var(--heading); }
.imgcr-step p { margin: 0; font-size: 0.8125rem; color: #64748b; line-height: 1.5; }

.imgcr-faq { padding: 56px 0; border-top: 1px solid var(--border);}
.imgcr-faq__grid { margin-top: 32px; }

.imgcr-toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 9999;
    pointer-events: none;
}

.imgcr-toast--show { transform: translateX(-50%) translateY(0); opacity: 1; }

.imgcr-animate-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.imgcr-animate-in.is-visible { opacity: 1; transform: translateY(0); }
.imgcr-animate-in--delay  { transition-delay: 0.1s; }
.imgcr-animate-in--delay2 { transition-delay: 0.2s; }
.imgcr-animate-in--delay3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .imgcr-hero__grid { grid-template-columns: 1fr; }
    .imgcr-hero__visual { display: none; }
    .imgcr-layout { grid-template-columns: 1fr; }
    .imgcr-features__grid { grid-template-columns: repeat(2, 1fr); }
    .imgcr-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .imgcr-editor { flex-direction: column; }
    .imgcr-editor__toolbar { flex-direction: row; flex-wrap: wrap; }
    .imgcr-options-grid { grid-template-columns: 1fr; }
    .imgcr-result-body { grid-template-columns: 1fr; }
    .imgcr-features__grid { grid-template-columns: 1fr; }
    .imgcr-steps { grid-template-columns: 1fr; }
}

[data-theme="dark"] .imgcr-step-card,
[data-theme="dark"] .imgcr-result-card,
[data-theme="dark"] .imgcr-side-card,
[data-theme="dark"] .imgcr-feature-card,
[data-theme="dark"] .imgcr-step {
    background: var(--bg-section);
    border-color: var(--border);
}

[data-theme="dark"] .imgcr-dropzone { background: #1a2332; border-color: #334155; }
[data-theme="dark"] .imgcr-dropzone.is-dragover { background: rgba(22, 163, 74, 0.1); border-color: var(--imgcr-accent); }
[data-theme="dark"] .imgcr-select { background: var(--bg); color: var(--heading); border-color: var(--border); }
[data-theme="dark"] .imgcr-tool-btn { background: #1a2332; border-color: var(--border); color: #94a3b8; }
[data-theme="dark"] .imgcr-tool-btn.is-active { color: #fff; background: var(--imgcr-accent); }
[data-theme="dark"] .imgcr-ratio-btn { background: #1a2332; color: #94a3b8; }
[data-theme="dark"] .imgcr-ratio-btn.is-active { color: #fff; background: var(--imgcr-accent); }
[data-theme="dark"] .imgcr-editor__stage { background: #0f172a; }
[data-theme="dark"] .imgcr-ratio-bar { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .imgcr-preset-btn { background: #1a2332; border-color: var(--border); }
[data-theme="dark"] .imgcr-preset-btn:hover { background: rgba(22, 163, 74, 0.1); }
[data-theme="dark"] .imgcr-preset-btn__icon { background: var(--bg-section); }
[data-theme="dark"] .imgcr-result-preview { background: #1a2332; border-color: var(--border); }
[data-theme="dark"] .imgcr-features { background: var(--bg); }
[data-theme="dark"] .imgcr-btn--ghost { background: #1a2332; border-color: var(--border); color: #94a3b8; }
[data-theme="dark"] .imgcr-info-table__row,
[data-theme="dark"] .imgcr-live-info__row { border-color: var(--border); }
[data-theme="dark"] .imgcr-savings-badge--down { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
[data-theme="dark"] .imgcr-savings-badge--up { background: rgba(234, 179, 8, 0.15); color: #fbbf24; }
[data-theme="dark"] .imgcr-toast { background: #334155; }

[data-theme="dark"] .imgcr-hero__demo {
    border-color: #4338ca;
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.15);
}

[data-theme="dark"] .imgcr-hero__photo {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #312e81 100%);
    color: #4ade80;
}
