/* ==========================================================================
   Utilix — Image Convert Tool Page
   ========================================================================== */

:root {
    --imgcv-accent: #16a34a;
    --imgcv-accent-dark: #15803d;
    --imgcv-accent-light: #f0fdf4;
}

.imgcv-hero { padding-bottom: 40px; }

.imgcv-hero__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: center;
}

.imgcv-hero__main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.imgcv-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgcv-hero__hub {
    position: relative;
    width: 280px;
    height: 200px;
    margin: 0 auto;
}

.imgcv-hero__hub-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: #fff;
    background: linear-gradient(135deg, var(--imgcv-accent) 0%, #22c55e 100%);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.35);
    z-index: 2;
}

.imgcv-hero__hub-icon svg,
.imgcv-hero__hub-icon [data-lucide] { width: 32px; height: 32px; }

.imgcv-hero__pill {
    position: absolute;
    padding: 6px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.imgcv-hero__pill--jpg  { top: 8px;  left: 20px;  background: #fef3c7; color: #b45309; }
.imgcv-hero__pill--png  { top: 4px;  right: 24px; background: #dbeafe; color: #1d4ed8; }
.imgcv-hero__pill--webp { top: 52px; right: 0;    background: #dcfce7; color: #15803d; }
.imgcv-hero__pill--gif  { bottom: 48px; right: 8px; background: #fce7f3; color: #be185d; }
.imgcv-hero__pill--bmp  { bottom: 12px; left: 40px; background: #f3e8ff; color: #7e22ce; }
.imgcv-hero__pill--tiff { bottom: 56px; left: 0;   background: #e0e7ff; color: #4338ca; }

/* Main layout */
.imgcv-main { padding: 0 0 48px; }

.imgcv-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.imgcv-workspace { display: flex; flex-direction: column; gap: 20px; }

.imgcv-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);
}

.imgcv-step-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.imgcv-step-card__head--between {
    justify-content: space-between;
}

.imgcv-step-card__head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.imgcv-step-card__head h2 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
}

.imgcv-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(--imgcv-accent);
    border-radius: 10px;
    flex-shrink: 0;
}

/* Dropzone */
.imgcv-dropzone {
    position: relative;
    border: 2px dashed #bbf7d0;
    border-radius: 16px;
    background: #fafbff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.imgcv-dropzone:hover,
.imgcv-dropzone:focus-visible {
    border-color: var(--imgcv-accent);
    background: #f0fdf4;
    outline: none;
}

.imgcv-dropzone.is-dragover {
    border-color: var(--imgcv-accent);
    background: var(--imgcv-accent-light);
}

.imgcv-dropzone__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
}

.imgcv-dropzone__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: var(--imgcv-accent);
    background: var(--imgcv-accent-light);
    border-radius: 16px;
}

.imgcv-dropzone__icon svg,
.imgcv-dropzone__icon [data-lucide] { width: 28px; height: 28px; }

.imgcv-dropzone__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading);
}

.imgcv-dropzone__or {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.imgcv-dropzone__actions { margin-bottom: 12px; }

.imgcv-dropzone__hint {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* URL add */
.imgcv-url-add { margin-top: 16px; }

.imgcv-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--imgcv-accent);
    background: none;
    border: none;
    cursor: pointer;
}

.imgcv-link-btn:hover { color: var(--imgcv-accent-dark); }
.imgcv-link-btn svg,
.imgcv-link-btn [data-lucide] { width: 16px; height: 16px; }

.imgcv-url-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.imgcv-url-form .imgcv-input { flex: 1; }

/* Settings */
.imgcv-settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.imgcv-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading);
}

.imgcv-field label svg,
.imgcv-field label [data-lucide] { width: 16px; height: 16px; color: var(--imgcv-accent); }

.imgcv-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.imgcv-field__head label { margin-bottom: 0; }

.imgcv-field__value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--imgcv-accent);
}

.imgcv-field__hint {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.imgcv-select,
.imgcv-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--heading);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.imgcv-select:focus,
.imgcv-input:focus {
    outline: none;
    border-color: var(--imgcv-accent);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.imgcv-range {
    width: 100%;
    height: 6px;
    accent-color: var(--imgcv-accent);
    cursor: pointer;
}

.imgcv-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.imgcv-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.imgcv-check input { position: absolute; opacity: 0; pointer-events: none; }

.imgcv-check__box {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.imgcv-check input:checked + .imgcv-check__box {
    background: var(--imgcv-accent);
    border-color: var(--imgcv-accent);
}

.imgcv-check input:checked + .imgcv-check__box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.imgcv-resize-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 30px;
}

.imgcv-resize-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.imgcv-resize-field .imgcv-input { max-width: 120px; }

/* Queue */
.imgcv-queue-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
}

.imgcv-queue-empty svg,
.imgcv-queue-empty [data-lucide] { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.5; }
.imgcv-queue-empty p { margin: 0; font-size: 0.875rem; }

.imgcv-queue {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imgcv-queue-item {
    display: grid;
    grid-template-columns: 48px 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.imgcv-queue-item__thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.imgcv-queue-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imgcv-queue-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.imgcv-queue-item__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imgcv-queue-item__meta {
    font-size: 0.6875rem;
    color: #94a3b8;
}

.imgcv-queue-item__arrow {
    color: #cbd5e1;
}

.imgcv-queue-item__arrow svg,
.imgcv-queue-item__arrow [data-lucide] { width: 16px; height: 16px; }

.imgcv-queue-item__target {
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--imgcv-accent);
    background: var(--imgcv-accent-light);
    border-radius: 100px;
}

.imgcv-queue-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.imgcv-queue-item__remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.imgcv-queue-item__remove svg,
.imgcv-queue-item__remove [data-lucide] { width: 16px; height: 16px; }

/* Buttons */
.imgcv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.imgcv-btn svg,
.imgcv-btn [data-lucide] { width: 18px; height: 18px; }

.imgcv-btn--primary {
    color: #fff;
    background: var(--imgcv-accent);
    border-color: var(--imgcv-accent);
}

.imgcv-btn--primary:hover { background: var(--imgcv-accent-dark); }

.imgcv-btn--ghost {
    color: #475569;
    background: #fff;
    border-color: var(--border);
}

.imgcv-btn--ghost:hover { background: #f8fafc; }

.imgcv-btn--convert {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--imgcv-accent) 0%, #22c55e 100%);
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}

.imgcv-btn--convert:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
}

.imgcv-btn--convert:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.imgcv-btn--convert.is-loading { pointer-events: none; opacity: 0.7; }

.imgcv-btn--sm { padding: 8px 14px; font-size: 0.8125rem; }
.imgcv-btn--block { width: 100%; margin-top: 16px; }

.imgcv-text-btn {
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

.imgcv-text-btn--danger { color: #ef4444; }
.imgcv-text-btn--danger:hover { color: #dc2626; }

.imgcv-convert-hint {
    margin: 12px 0 0;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

/* Results */
.imgcv-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);
}

.imgcv-result-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.imgcv-result-card__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
}

.imgcv-result-card__head h2 svg,
.imgcv-result-card__head h2 [data-lucide] {
    width: 20px;
    height: 20px;
    color: #16a34a;
}

.imgcv-result-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.imgcv-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.imgcv-result-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
}

.imgcv-result-item__preview {
    position: relative;
    aspect-ratio: 4/3;
    background: #e2e8f0;
}

.imgcv-result-item__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imgcv-result-item__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    background: var(--imgcv-accent);
    border-radius: 6px;
}

.imgcv-result-item__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.imgcv-result-item__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imgcv-result-item__meta {
    font-size: 0.6875rem;
    color: #94a3b8;
}

.imgcv-saved-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 4px;
}

.imgcv-saved-badge--down { background: #dcfce7; color: #16a34a; }
.imgcv-saved-badge--up   { background: #fef9c3; color: #ca8a04; }

.imgcv-result-item__dl { margin-top: 8px; width: 100%; }

/* Sidebar */
.imgcv-sidebar { display: flex; flex-direction: column; gap: 16px; }

.imgcv-side-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.imgcv-side-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--heading);
}

.imgcv-side-card__title svg,
.imgcv-side-card__title [data-lucide] { width: 18px; height: 18px; color: var(--imgcv-accent); }

.imgcv-side-label {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.imgcv-side-label + .imgcv-format-tags { margin-bottom: 16px; }

.imgcv-format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.imgcv-format-tags span {
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 100px;
}

.imgcv-format-tags--out span {
    color: var(--imgcv-accent);
    background: var(--imgcv-accent-light);
}

.imgcv-why-list,
.imgcv-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.imgcv-why-list li,
.imgcv-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
}

.imgcv-why-list li svg,
.imgcv-why-list li [data-lucide],
.imgcv-tips-list li svg,
.imgcv-tips-list li [data-lucide] {
    width: 16px;
    height: 16px;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

.imgcv-how-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imgcv-how-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.8125rem;
    color: #475569;
}

.imgcv-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(--imgcv-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Features & steps */
.imgcv-features { padding: 48px 0; background: #f8fafc; }

.imgcv-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.imgcv-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);
}

.imgcv-feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
}

.imgcv-feature-card__icon svg,
.imgcv-feature-card__icon [data-lucide] { width: 24px; height: 24px; }

.imgcv-feature-card__icon--purple { background: #f0fdf4; color: #16a34a; }
.imgcv-feature-card__icon--green  { background: #dcfce7; color: #16a34a; }
.imgcv-feature-card__icon--blue   { background: #dbeafe; color: #2563eb; }
.imgcv-feature-card__icon--orange { background: #ffedd5; color: #ea580c; }

.imgcv-feature-card h3 { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 700; color: var(--heading); }
.imgcv-feature-card p { margin: 0; font-size: 0.8125rem; color: #64748b; line-height: 1.6; }

.imgcv-steps-section { padding: 72px 0; }
.imgcv-section-head { margin-bottom: 40px; }
.imgcv-section-head--center { text-align: center; }

.imgcv-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(--imgcv-accent);
    background: var(--imgcv-accent-light);
    border-radius: 100px;
}

.imgcv-section-head h2 { margin: 0 0 8px; font-size: 1.75rem; font-weight: 800; color: var(--heading); }
.imgcv-section-head p { margin: 0; font-size: 1rem; color: #64748b; }

.imgcv-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.imgcv-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);
}

.imgcv-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(--imgcv-accent);
    border-radius: 50%;
}

.imgcv-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 8px auto 12px;
    color: var(--imgcv-accent);
    background: var(--imgcv-accent-light);
    border-radius: 14px;
}

.imgcv-step__icon svg,
.imgcv-step__icon [data-lucide] { width: 24px; height: 24px; }

.imgcv-step strong { display: block; margin-bottom: 6px; font-size: 0.9375rem; color: var(--heading); }
.imgcv-step p { margin: 0; font-size: 0.8125rem; color: #64748b; line-height: 1.5; }

.imgcv-faq { padding: 56px 0; border-top: 1px solid var(--border);}
.imgcv-faq__grid { margin-top: 32px; }

.imgcv-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;
}

.imgcv-toast--show { transform: translateX(-50%) translateY(0); opacity: 1; }

.imgcv-animate-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.imgcv-animate-in.is-visible { opacity: 1; transform: translateY(0); }
.imgcv-animate-in--delay  { transition-delay: 0.1s; }
.imgcv-animate-in--delay2 { transition-delay: 0.2s; }
.imgcv-animate-in--delay3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .imgcv-hero__grid { grid-template-columns: 1fr; }
    .imgcv-hero__visual { display: none; }
    .imgcv-layout { grid-template-columns: 1fr; }
    .imgcv-features__grid { grid-template-columns: repeat(2, 1fr); }
    .imgcv-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .imgcv-queue-item {
        grid-template-columns: 40px 1fr auto;
        grid-template-rows: auto auto;
    }
    .imgcv-queue-item__arrow { display: none; }
    .imgcv-queue-item__target { grid-column: 2; }
    .imgcv-queue-item__remove { grid-row: 1 / 3; grid-column: 3; }
    .imgcv-features__grid { grid-template-columns: 1fr; }
    .imgcv-steps { grid-template-columns: 1fr; }
    .imgcv-url-form { flex-direction: column; }
}

/* Dark mode */
[data-theme="dark"] .imgcv-step-card,
[data-theme="dark"] .imgcv-result-card,
[data-theme="dark"] .imgcv-side-card,
[data-theme="dark"] .imgcv-feature-card,
[data-theme="dark"] .imgcv-step {
    background: var(--bg-section);
    border-color: var(--border);
}

[data-theme="dark"] .imgcv-dropzone {
    background: #1a2332;
    border-color: #334155;
}

[data-theme="dark"] .imgcv-dropzone:hover,
[data-theme="dark"] .imgcv-dropzone:focus-visible,
[data-theme="dark"] .imgcv-dropzone.is-dragover {
    background: rgba(22, 163, 74, 0.1);
    border-color: var(--imgcv-accent);
}

[data-theme="dark"] .imgcv-select,
[data-theme="dark"] .imgcv-input {
    background: var(--bg);
    color: var(--heading);
    border-color: var(--border);
}

[data-theme="dark"] .imgcv-queue-item {
    background: #1a2332;
    border-color: var(--border);
}

[data-theme="dark"] .imgcv-queue-item__thumb {
    background: #0f172a;
}

[data-theme="dark"] .imgcv-result-item {
    background: #1a2332;
    border-color: var(--border);
}

[data-theme="dark"] .imgcv-result-item__preview {
    background: #0f172a;
}

[data-theme="dark"] .imgcv-btn--ghost {
    background: #1a2332;
    border-color: var(--border);
    color: #94a3b8;
}

[data-theme="dark"] .imgcv-format-tags span {
    background: #1a2332;
    color: #94a3b8;
}

[data-theme="dark"] .imgcv-format-tags--out span {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .imgcv-features {
    background: var(--bg);
}

[data-theme="dark"] .imgcv-saved-badge--down {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .imgcv-saved-badge--up {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .imgcv-toast {
    background: #334155;
}

[data-theme="dark"] .imgcv-hero__hub-icon {
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.25);
}

[data-theme="dark"] .imgcv-hero__pill--jpg  { background: rgba(180, 83, 9, 0.2);  color: #fbbf24; }
[data-theme="dark"] .imgcv-hero__pill--png  { background: rgba(29, 78, 216, 0.2); color: #93c5fd; }
[data-theme="dark"] .imgcv-hero__pill--webp { background: rgba(21, 128, 61, 0.2); color: #86efac; }
[data-theme="dark"] .imgcv-hero__pill--gif  { background: rgba(190, 24, 93, 0.2); color: #f9a8d4; }
[data-theme="dark"] .imgcv-hero__pill--bmp  { background: rgba(126, 34, 206, 0.2); color: #d8b4fe; }
[data-theme="dark"] .imgcv-hero__pill--tiff { background: rgba(67, 56, 202, 0.2); color: #4ade80; }

[data-theme="dark"] .imgcv-check__box {
    border-color: #475569;
}

[data-theme="dark"] .imgcv-queue-item__remove:hover {
    background: rgba(239, 68, 68, 0.15);
}
