/* ==========================================================================
   Image Tools — unified green accent + rounded buttons
   (compressor, resize, convert, crop, watermark, background-remover)
   ========================================================================== */

:root {
    --img-green: #16a34a;
    --img-green-hover: #15803d;
    --img-green-light: #f0fdf4;
    --img-green-mid: #dcfce7;
    --img-green-border: #bbf7d0;
    --img-green-shadow: rgba(22, 163, 74, 0.15);
}

/* Hero icons */
.imgc-hero .cat-hero__icon,
.imgr-hero .cat-hero__icon,
.imgcr-hero .cat-hero__icon,
.imgcv-hero .cat-hero__icon,
.imgwm-hero .cat-hero__icon,
.imgbg-hero .cat-hero__icon {
    background: var(--img-green-light) !important;
    color: var(--img-green) !important;
    border: 2px solid var(--img-green-border) !important;
    box-shadow: 0 2px 10px var(--img-green-shadow) !important;
}

[data-theme="dark"] .imgc-hero .cat-hero__icon,
[data-theme="dark"] .imgr-hero .cat-hero__icon,
[data-theme="dark"] .imgcr-hero .cat-hero__icon,
[data-theme="dark"] .imgcv-hero .cat-hero__icon,
[data-theme="dark"] .imgwm-hero .cat-hero__icon,
[data-theme="dark"] .imgbg-hero .cat-hero__icon {
    background: rgba(22, 163, 74, 0.15) !important;
    color: #4ade80 !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
    box-shadow: none !important;
}

/* Buttons — pill shape */
.imgc-btn,
.imgr-btn,
.imgcr-btn,
.imgcv-btn,
.imgwm-btn,
.imgbg-btn {
    border-radius: 9999px !important;
}

.imgc-btn--primary,
.imgr-btn--primary,
.imgcr-btn--primary,
.imgcv-btn--primary,
.imgwm-btn--primary,
.imgbg-btn--primary,
.imgc-btn--compress,
.imgr-btn--resize,
.imgcr-btn--crop,
.imgcv-btn--convert,
.imgwm-btn--apply,
.imgbg-btn--remove {
    background: var(--img-green) !important;
    border-color: var(--img-green) !important;
    color: #fff !important;
}

.imgc-btn--primary:hover,
.imgr-btn--primary:hover,
.imgcr-btn--primary:hover,
.imgcv-btn--primary:hover,
.imgwm-btn--primary:hover,
.imgbg-btn--primary:hover,
.imgc-btn--compress:hover:not(:disabled),
.imgr-btn--resize:hover:not(:disabled),
.imgcr-btn--crop:hover:not(:disabled),
.imgcv-btn--convert:hover:not(:disabled),
.imgwm-btn--apply:hover:not(:disabled),
.imgbg-btn--remove:hover:not(:disabled) {
    background: var(--img-green-hover) !important;
    border-color: var(--img-green-hover) !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
}

.imgc-btn--outline,
.imgr-btn--outline,
.imgcr-btn--outline,
.imgcv-btn--ghost,
.imgwm-btn--ghost,
.imgbg-btn--outline {
    color: var(--img-green) !important;
    border-color: var(--img-green-border) !important;
}

.imgc-btn--outline:hover,
.imgr-btn--outline:hover,
.imgcr-btn--outline:hover,
.imgcv-btn--ghost:hover,
.imgwm-btn--ghost:hover,
.imgbg-btn--outline:hover {
    background: var(--img-green-light) !important;
    border-color: var(--img-green) !important;
    color: var(--img-green) !important;
}

/* Dropzones */
.imgc-dropzone.is-dragover,
.imgc-dropzone:hover,
.imgr-dropzone.is-dragover,
.imgr-dropzone:hover,
.imgcr-dropzone.is-dragover,
.imgcr-dropzone:hover,
.imgcv-dropzone.is-dragover,
.imgcv-dropzone:hover,
.imgwm-dropzone.is-dragover,
.imgwm-dropzone:hover,
.imgbg-dropzone.is-dragover,
.imgbg-dropzone:hover {
    border-color: var(--img-green) !important;
    background: var(--img-green-light) !important;
}

/* Mode / format / preset cards */
.imgc-level-card.is-selected,
.imgc-level-card:has(input:checked),
.imgr-preset-btn.is-active,
.imgr-preset-btn:has(input:checked),
.imgcr-ratio-btn.is-active,
.imgcr-tool-btn.is-active,
.imgcv-format-card:has(input:checked),
.imgcv-format-card.is-selected,
.imgwm-pos-btn.is-active {
    border-color: var(--img-green) !important;
    box-shadow: 0 0 0 3px var(--img-green-shadow) !important;
}

.imgc-level-card__radio::after,
.imgr-preset-btn.is-active,
.imgcr-ratio-btn.is-active,
.imgcr-tool-btn.is-active,
.imgcv-format-card input:checked ~ .imgcv-format-card__radio,
.imgwm-pos-btn.is-active {
    background: var(--img-green) !important;
    border-color: var(--img-green) !important;
}

/* Step numbers, eyebrows, progress */
.imgc-step-card__num,
.imgr-step-card__num,
.imgcr-step-card__num,
.imgcv-step-card__num,
.imgwm-step-card__num,
.imgbg-step-card__num,
.imgc-step__num,
.imgr-step__num,
.imgcr-step__num,
.imgcv-step__num,
.imgwm-step__num,
.imgbg-step__num,
.imgc-how-list li span,
.imgr-how-list li span,
.imgcr-how-list li span,
.imgcv-how-list li span,
.imgwm-how-list li span,
.imgbg-how-list li span {
    background: var(--img-green) !important;
}

.imgc-section-eyebrow,
.imgr-section-eyebrow,
.imgcr-section-eyebrow,
.imgcv-section-eyebrow,
.imgwm-section-eyebrow,
.imgbg-section-eyebrow {
    color: var(--img-green) !important;
    background: var(--img-green-light) !important;
}

.imgc-progress__bar,
.imgr-progress__bar,
.imgcr-progress__bar,
.imgcv-progress__bar,
.imgwm-progress__bar,
.imgbg-progress__bar {
    background: linear-gradient(90deg, var(--img-green), #22c55e) !important;
}

/* Accent CSS variables override */
.imgwm-layout,
.imgcv-layout,
.imgcr-layout,
.imgr-layout {
    --imgwm-accent: var(--img-green);
    --imgwm-accent-dark: var(--img-green-hover);
    --imgwm-accent-light: var(--img-green-light);
    --imgcv-accent: var(--img-green);
    --imgcv-accent-dark: var(--img-green-hover);
    --imgcv-accent-light: var(--img-green-light);
    --imgcr-accent: var(--img-green);
    --imgcr-accent-dark: var(--img-green-hover);
    --imgcr-accent-light: var(--img-green-light);
    --imgr-accent: var(--img-green);
    --imgr-accent-dark: var(--img-green-hover);
    --imgr-accent-light: var(--img-green-light);
}

/* Sidebar links */
.imgc-tools-link:hover,
.imgr-tools-link:hover,
.imgcr-tools-link:hover,
.imgcv-tools-link:hover,
.imgwm-tools-link:hover,
.imgbg-tools-link:hover {
    color: var(--img-green) !important;
    background: var(--img-green-light) !important;
}

.imgc-tools-link__icon,
.imgr-tools-link__icon,
.imgcr-tools-link__icon,
.imgcv-tools-link__icon,
.imgwm-tools-link__icon,
.imgbg-tools-link__icon {
    color: var(--img-green) !important;
}

/* Switches & ranges */
.imgc-switch input:checked + .imgc-switch__slider,
.imgr-switch input:checked + .imgr-switch__slider,
.imgbg-toggle input:checked + .imgbg-toggle__track {
    background: var(--img-green) !important;
}

.imgr-range,
.imgcr-range,
.imgbg-range,
.imgwm-opacity-range {
    accent-color: var(--img-green) !important;
}

[data-theme="dark"] .imgc-section-eyebrow,
[data-theme="dark"] .imgr-section-eyebrow,
[data-theme="dark"] .imgcr-section-eyebrow,
[data-theme="dark"] .imgcv-section-eyebrow,
[data-theme="dark"] .imgwm-section-eyebrow,
[data-theme="dark"] .imgbg-section-eyebrow {
    color: #4ade80 !important;
    background: rgba(22, 163, 74, 0.15) !important;
    border-color: rgba(74, 222, 128, 0.25) !important;
}

[data-theme="dark"] .imgbg-dropzone.is-dragover,
[data-theme="dark"] .imgbg-dropzone:hover {
    background: rgba(22, 163, 74, 0.1) !important;
    border-color: var(--img-green) !important;
}

[data-theme="dark"] .imgcr-tool-btn.is-active,
[data-theme="dark"] .imgcr-ratio-btn.is-active,
[data-theme="dark"] .imgwm-pos-btn.is-active {
    color: #fff !important;
    background: var(--img-green) !important;
}

/* About + Tips sections */
.imgc-about,
.imgr-about,
.imgcv-about,
.imgcr-about,
.imgwm-about,
.imgbg-about {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--border);
}

/* How-to sections — subtle green tint after white About */
.imgc-steps-section,
.imgr-steps-section,
.imgcv-steps-section,
.imgcr-steps-section,
.imgwm-steps-section,
.imgbg-steps-section {
    padding: 72px 0;
    background: #f0fdf4;
    border-top: 1px solid #dcfce7;
}

.imgr-about__grid,
.imgcv-about__grid,
.imgcr-about__grid,
.imgwm-about__grid,
.imgbg-about__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: stretch;
}

.imgr-about__content h2,
.imgcv-about__content h2,
.imgcr-about__content h2,
.imgwm-about__content h2,
.imgbg-about__content h2 {
    margin: 0 0 20px;
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.imgr-about__lead,
.imgcv-about__lead,
.imgcr-about__lead,
.imgwm-about__lead,
.imgbg-about__lead {
    margin: 0 0 16px !important;
    font-size: 1.0625rem !important;
    line-height: 1.75 !important;
    color: var(--heading) !important;
}

.imgr-about__text,
.imgcv-about__text,
.imgcr-about__text,
.imgwm-about__text,
.imgbg-about__text {
    margin: 0 0 24px !important;
    font-size: 0.9375rem !important;
    line-height: 1.8 !important;
    color: #64748b !important;
}

.imgr-about__highlights,
.imgcv-about__highlights,
.imgcr-about__highlights,
.imgwm-about__highlights,
.imgbg-about__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.imgr-about__pill,
.imgcv-about__pill,
.imgcr-about__pill,
.imgwm-about__pill,
.imgbg-about__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 100px;
}

.imgr-about__pill svg,
.imgr-about__pill [data-lucide],
.imgcv-about__pill svg,
.imgcv-about__pill [data-lucide],
.imgcr-about__pill svg,
.imgcr-about__pill [data-lucide],
.imgwm-about__pill svg,
.imgwm-about__pill [data-lucide],
.imgbg-about__pill svg,
.imgbg-about__pill [data-lucide] {
    width: 15px;
    height: 15px;
}

.imgr-tips-card,
.imgcv-tips-card,
.imgcr-tips-card,
.imgwm-tips-card,
.imgbg-tips-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 16px 40px rgba(15, 23, 42, 0.07);
    height: 100%;
}

.imgr-tips-card__head,
.imgcv-tips-card__head,
.imgcr-tips-card__head,
.imgwm-tips-card__head,
.imgbg-tips-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.imgr-tips-card__icon,
.imgcv-tips-card__icon,
.imgcr-tips-card__icon,
.imgwm-tips-card__icon,
.imgbg-tips-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
}

.imgr-tips-card__icon svg,
.imgr-tips-card__icon [data-lucide],
.imgcv-tips-card__icon svg,
.imgcv-tips-card__icon [data-lucide],
.imgcr-tips-card__icon svg,
.imgcr-tips-card__icon [data-lucide],
.imgwm-tips-card__icon svg,
.imgwm-tips-card__icon [data-lucide],
.imgbg-tips-card__icon svg,
.imgbg-tips-card__icon [data-lucide] {
    width: 24px;
    height: 24px;
}

.imgr-tips-card h3,
.imgcv-tips-card h3,
.imgcr-tips-card h3,
.imgwm-tips-card h3,
.imgbg-tips-card h3 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--heading);
}

.imgr-tips-card__sub,
.imgcv-tips-card__sub,
.imgcr-tips-card__sub,
.imgwm-tips-card__sub,
.imgbg-tips-card__sub {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.imgr-tips-list,
.imgcv-tips-list,
.imgcr-tips-list,
.imgwm-tips-list,
.imgbg-tips-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.imgr-tips-list li,
.imgcv-tips-list li,
.imgcr-tips-list li,
.imgwm-tips-list li,
.imgbg-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    border-bottom: 1px solid #f8fafc;
}

.imgr-tips-list li:last-child,
.imgcv-tips-list li:last-child,
.imgcr-tips-list li:last-child,
.imgwm-tips-list li:last-child,
.imgbg-tips-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.imgr-tips-list__check,
.imgcv-tips-list__check,
.imgcr-tips-list__check,
.imgwm-tips-list__check,
.imgbg-tips-list__check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 50%;
}

.imgr-tips-list__check svg,
.imgr-tips-list__check [data-lucide],
.imgcv-tips-list__check svg,
.imgcv-tips-list__check [data-lucide],
.imgcr-tips-list__check svg,
.imgcr-tips-list__check [data-lucide],
.imgwm-tips-list__check svg,
.imgwm-tips-list__check [data-lucide],
.imgbg-tips-list__check svg,
.imgbg-tips-list__check [data-lucide] {
    width: 13px;
    height: 13px;
}

@media (max-width: 900px) {
    .imgc-about__grid,
    .imgr-about__grid,
    .imgcv-about__grid,
    .imgcr-about__grid,
    .imgwm-about__grid,
    .imgbg-about__grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .imgc-about,
[data-theme="dark"] .imgr-about,
[data-theme="dark"] .imgcv-about,
[data-theme="dark"] .imgcr-about,
[data-theme="dark"] .imgwm-about,
[data-theme="dark"] .imgbg-about {
    background: #111827;
}

[data-theme="dark"] .imgc-steps-section,
[data-theme="dark"] .imgr-steps-section,
[data-theme="dark"] .imgcv-steps-section,
[data-theme="dark"] .imgcr-steps-section,
[data-theme="dark"] .imgwm-steps-section,
[data-theme="dark"] .imgbg-steps-section {
    background: rgba(22, 163, 74, 0.08);
    border-top-color: rgba(74, 222, 128, 0.15);
}

[data-theme="dark"] .imgc-tips-card,
[data-theme="dark"] .imgr-tips-card,
[data-theme="dark"] .imgcv-tips-card,
[data-theme="dark"] .imgcr-tips-card,
[data-theme="dark"] .imgwm-tips-card,
[data-theme="dark"] .imgbg-tips-card {
    background: #1a2332;
    border-color: var(--border);
}

[data-theme="dark"] .imgc-about__pill,
[data-theme="dark"] .imgr-about__pill,
[data-theme="dark"] .imgcv-about__pill,
[data-theme="dark"] .imgcr-about__pill,
[data-theme="dark"] .imgwm-about__pill,
[data-theme="dark"] .imgbg-about__pill {
    color: #4ade80;
    background: rgba(22, 163, 74, 0.15);
    border-color: rgba(74, 222, 128, 0.25);
}

[data-theme="dark"] .imgc-tips-list li,
[data-theme="dark"] .imgr-tips-list li,
[data-theme="dark"] .imgcv-tips-list li,
[data-theme="dark"] .imgcr-tips-list li,
[data-theme="dark"] .imgwm-tips-list li,
[data-theme="dark"] .imgbg-tips-list li {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.05);
}
