/* ==========================================================================
   Utilix — Image Watermark Tool Page
   ========================================================================== */

:root {
    --imgwm-accent: #16a34a;
    --imgwm-accent-dark: #15803d;
    --imgwm-accent-light: #f0fdf4;
}

.imgwm-hero { padding-bottom: 40px; }

.imgwm-hero__grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
}

.imgwm-hero__main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.imgwm-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgwm-hero__demo {
    position: relative;
    width: 240px;
    height: 160px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.2);
    border: 1px solid #e0e7ff;
    isolation: isolate;
}

.imgwm-hero__photo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #4ade80 100%);
    color: rgba(255, 255, 255, 0.6);
}

.imgwm-hero__photo svg,
.imgwm-hero__photo [data-lucide] { width: 48px; height: 48px; }

.imgwm-hero__wm {
    position: absolute;
    bottom: 14px;
    right: 12px;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    z-index: 2;
}

.imgwm-hero__pin {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    z-index: 2;
}

.imgwm-hero__pin svg,
.imgwm-hero__pin [data-lucide] { width: 14px; height: 14px; }

/* Layout */
.imgwm-main { padding: 0 0 48px; }

.imgwm-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.imgwm-workspace { display: flex; flex-direction: column; gap: 20px; }

.imgwm-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);
}

.imgwm-step-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.imgwm-step-card__head--between { justify-content: space-between; }

.imgwm-step-card__head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.imgwm-step-card__head h2 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
}

.imgwm-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(--imgwm-accent);
    border-radius: 10px;
    flex-shrink: 0;
}

/* Dropzone */
.imgwm-dropzone {
    border: 2px dashed #bbf7d0;
    border-radius: 16px;
    background: #fafbff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.imgwm-dropzone:hover,
.imgwm-dropzone:focus-visible {
    border-color: var(--imgwm-accent);
    background: #f0fdf4;
    outline: none;
}

.imgwm-dropzone.is-dragover {
    border-color: var(--imgwm-accent);
    background: var(--imgwm-accent-light);
}

.imgwm-dropzone__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px;
    text-align: center;
}

.imgwm-dropzone__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: var(--imgwm-accent);
    background: var(--imgwm-accent-light);
    border-radius: 16px;
}

.imgwm-dropzone__icon svg,
.imgwm-dropzone__icon [data-lucide] { width: 28px; height: 28px; }

.imgwm-dropzone__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading);
}

.imgwm-dropzone__or {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.imgwm-dropzone__hint {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.imgwm-url-add { margin-top: 16px; }

.imgwm-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--imgwm-accent);
    background: none;
    border: none;
    cursor: pointer;
}

.imgwm-url-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.imgwm-url-form .imgwm-input { flex: 1; }

/* Editor split */
.imgwm-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.imgwm-editor__settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.imgwm-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
}

.imgwm-tab {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.imgwm-tab.is-active {
    color: var(--imgwm-accent);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.imgwm-tab-panel { display: flex; flex-direction: column; gap: 14px; }

.imgwm-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading);
}

.imgwm-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.imgwm-field__head label { margin-bottom: 0; }

.imgwm-field__value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--imgwm-accent);
}

.imgwm-select,
.imgwm-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--heading);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.imgwm-select:focus,
.imgwm-input:focus {
    outline: none;
    border-color: var(--imgwm-accent);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.imgwm-range {
    width: 100%;
    height: 6px;
    accent-color: var(--imgwm-accent);
    cursor: pointer;
}

.imgwm-style-btns {
    display: flex;
    gap: 8px;
}

.imgwm-style-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.15s;
}

.imgwm-style-btn.is-active,
.imgwm-style-btn:hover {
    color: #fff;
    background: var(--imgwm-accent);
    border-color: var(--imgwm-accent);
}

.imgwm-style-btn svg,
.imgwm-style-btn [data-lucide] { width: 18px; height: 18px; }

.imgwm-color-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.imgwm-color-wrap input[type="color"] {
    width: 48px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}

.imgwm-color-val {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    font-family: monospace;
}

.imgwm-logo-preview {
    position: relative;
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.imgwm-logo-preview img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.imgwm-logo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #94a3b8;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.imgwm-logo-remove:hover { color: #ef4444; }

/* Position grid */
.imgwm-pos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 140px;
}

.imgwm-pos-btn {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.imgwm-pos-btn:hover { background: var(--imgwm-accent-light); }

.imgwm-pos-btn.is-active {
    background: var(--imgwm-accent);
    border-color: var(--imgwm-accent-dark);
    box-shadow: 0 0 0 2px var(--imgwm-accent-light);
}

.imgwm-advanced {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.imgwm-advanced summary {
    padding: 12px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading);
    cursor: pointer;
    background: #f8fafc;
    list-style: none;
}

.imgwm-advanced summary::-webkit-details-marker { display: none; }

.imgwm-advanced__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.imgwm-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
}

.imgwm-check input { position: absolute; opacity: 0; pointer-events: none; }

.imgwm-check__box {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
}

.imgwm-check input:checked + .imgwm-check__box {
    background: var(--imgwm-accent);
    border-color: var(--imgwm-accent);
}

.imgwm-check input:checked + .imgwm-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);
}

/* Preview */
.imgwm-preview-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
}

.imgwm-preview-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.imgwm-preview-card__head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--heading);
}

.imgwm-preview-card__dims {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #16a34a;
}

.imgwm-preview-stage {
    padding: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-conic-gradient(#e2e8f0 0% 25%, #f8fafc 0% 50%) 50% / 16px 16px;
}

.imgwm-preview-viewport {
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.imgwm-preview-viewport canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.imgwm-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.imgwm-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.imgwm-tool-btn:hover {
    color: var(--imgwm-accent);
    border-color: var(--imgwm-accent);
    background: var(--imgwm-accent-light);
}

.imgwm-tool-btn svg,
.imgwm-tool-btn [data-lucide] { width: 18px; height: 18px; }

.imgwm-preview-zoom {
    min-width: 48px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

/* Queue */
.imgwm-queue-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
}

.imgwm-queue-empty svg,
.imgwm-queue-empty [data-lucide] { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.5; }

.imgwm-queue {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.imgwm-queue-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.imgwm-queue-item__thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.imgwm-queue-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.imgwm-queue-item__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imgwm-queue-item__meta { font-size: 0.6875rem; color: #94a3b8; }

.imgwm-queue-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.imgwm-queue-item__remove:hover { color: #ef4444; background: #fef2f2; }

/* Buttons */
.imgwm-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, transform 0.15s;
}

.imgwm-btn svg,
.imgwm-btn [data-lucide] { width: 18px; height: 18px; }

.imgwm-btn--primary {
    color: #fff;
    background: var(--imgwm-accent);
    border-color: var(--imgwm-accent);
}

.imgwm-btn--ghost {
    color: #475569;
    background: #fff;
    border-color: var(--border);
}

.imgwm-btn--apply {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--imgwm-accent) 0%, #22c55e 100%);
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}

.imgwm-btn--apply:hover:not(:disabled) { transform: translateY(-1px); }

.imgwm-btn--apply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.imgwm-btn--apply.is-loading { pointer-events: none; opacity: 0.7; }

.imgwm-btn--sm { padding: 8px 14px; font-size: 0.8125rem; }
.imgwm-btn--block { width: 100%; }

.imgwm-text-btn {
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

.imgwm-text-btn--danger { color: #ef4444; }

.imgwm-apply-hint {
    margin: 12px 0 0;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

/* Results */
.imgwm-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);
}

.imgwm-result-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.imgwm-result-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.imgwm-result-card__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
}

.imgwm-result-card__head h2 svg,
.imgwm-result-card__head h2 [data-lucide] { width: 20px; height: 20px; color: #16a34a; }

.imgwm-result-badge {
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--imgwm-accent);
    background: var(--imgwm-accent-light);
    border-radius: 100px;
}

.imgwm-result-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.imgwm-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.imgwm-result-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
}

.imgwm-result-item__preview {
    position: relative;
    aspect-ratio: 4/3;
    background: #e2e8f0;
}

.imgwm-result-item__preview img { width: 100%; height: 100%; object-fit: cover; }

.imgwm-result-item__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    background: var(--imgwm-accent);
    border-radius: 6px;
}

.imgwm-result-item__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.imgwm-result-item__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imgwm-result-item__meta { font-size: 0.6875rem; color: #94a3b8; }

.imgwm-result-item__dl { margin-top: 8px; width: 100%; }

/* Sidebar */
.imgwm-sidebar { display: flex; flex-direction: column; gap: 16px; }

.imgwm-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);
}

.imgwm-side-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--heading);
}

.imgwm-side-card__title svg,
.imgwm-side-card__title [data-lucide] { width: 18px; height: 18px; color: var(--imgwm-accent); }

.imgwm-side-label {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.imgwm-format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.imgwm-format-tags span {
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 100px;
}

.imgwm-format-tags--out span {
    color: var(--imgwm-accent);
    background: var(--imgwm-accent-light);
}

.imgwm-why-list,
.imgwm-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.imgwm-why-list li,
.imgwm-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
}

.imgwm-why-list li svg,
.imgwm-why-list li [data-lucide],
.imgwm-tips-list li svg,
.imgwm-tips-list li [data-lucide] {
    width: 16px;
    height: 16px;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

.imgwm-preset-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.imgwm-preset-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.imgwm-preset-btn:hover {
    background: var(--imgwm-accent-light);
    border-color: #bbf7d0;
    color: var(--imgwm-accent);
}

.imgwm-preset-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--imgwm-accent);
    background: #fff;
    border-radius: 8px;
    flex-shrink: 0;
}

.imgwm-preset-btn__icon svg,
.imgwm-preset-btn__icon [data-lucide] { width: 16px; height: 16px; }

.imgwm-how-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imgwm-how-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.8125rem;
    color: #475569;
}

.imgwm-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(--imgwm-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Features & steps */
.imgwm-features { padding: 48px 0; background: #f8fafc; }

.imgwm-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.imgwm-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);
}

.imgwm-feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
}

.imgwm-feature-card__icon svg,
.imgwm-feature-card__icon [data-lucide] { width: 24px; height: 24px; }

.imgwm-feature-card__icon--purple { background: #f0fdf4; color: #16a34a; }
.imgwm-feature-card__icon--green  { background: #dcfce7; color: #16a34a; }
.imgwm-feature-card__icon--blue   { background: #dbeafe; color: #2563eb; }
.imgwm-feature-card__icon--orange { background: #ffedd5; color: #ea580c; }

.imgwm-feature-card h3 { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 700; color: var(--heading); }
.imgwm-feature-card p { margin: 0; font-size: 0.8125rem; color: #64748b; line-height: 1.6; }

.imgwm-steps-section { padding: 72px 0; }
.imgwm-section-head { margin-bottom: 40px; }
.imgwm-section-head--center { text-align: center; }

.imgwm-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(--imgwm-accent);
    background: var(--imgwm-accent-light);
    border-radius: 100px;
}

.imgwm-section-head h2 { margin: 0 0 8px; font-size: 1.75rem; font-weight: 800; color: var(--heading); }
.imgwm-section-head p { margin: 0; font-size: 1rem; color: #64748b; }

.imgwm-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.imgwm-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);
}

.imgwm-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(--imgwm-accent);
    border-radius: 50%;
}

.imgwm-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 8px auto 12px;
    color: var(--imgwm-accent);
    background: var(--imgwm-accent-light);
    border-radius: 14px;
}

.imgwm-step strong { display: block; margin-bottom: 6px; font-size: 0.9375rem; color: var(--heading); }
.imgwm-step p { margin: 0; font-size: 0.8125rem; color: #64748b; line-height: 1.5; }

.imgwm-faq { padding: 56px 0; border-top: 1px solid var(--border);}
.imgwm-faq__grid { margin-top: 32px; }

.imgwm-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;
}

.imgwm-toast--show { transform: translateX(-50%) translateY(0); opacity: 1; }

.imgwm-fullscreen-overlay[hidden] {
    display: none !important;
}

.imgwm-fullscreen-overlay:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.9);
}

.imgwm-fullscreen-overlay canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.imgwm-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.imgwm-animate-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.imgwm-animate-in.is-visible { opacity: 1; transform: translateY(0); }
.imgwm-animate-in--delay  { transition-delay: 0.1s; }
.imgwm-animate-in--delay2 { transition-delay: 0.2s; }
.imgwm-animate-in--delay3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .imgwm-hero__grid { grid-template-columns: 1fr; }
    .imgwm-hero__visual { display: none; }
    .imgwm-layout { grid-template-columns: 1fr; }
    .imgwm-editor { grid-template-columns: 1fr; }
    .imgwm-features__grid { grid-template-columns: repeat(2, 1fr); }
    .imgwm-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .imgwm-features__grid { grid-template-columns: 1fr; }
    .imgwm-steps { grid-template-columns: 1fr; }
    .imgwm-url-form { flex-direction: column; }
}

/* Dark mode */
[data-theme="dark"] .imgwm-step-card,
[data-theme="dark"] .imgwm-result-card,
[data-theme="dark"] .imgwm-side-card,
[data-theme="dark"] .imgwm-feature-card,
[data-theme="dark"] .imgwm-step,
[data-theme="dark"] .imgwm-preview-card,
[data-theme="dark"] .imgwm-preview-card__head,
[data-theme="dark"] .imgwm-preview-toolbar {
    background: var(--bg-section);
    border-color: var(--border);
}

[data-theme="dark"] .imgwm-dropzone {
    background: #1a2332;
    border-color: #334155;
}

[data-theme="dark"] .imgwm-dropzone:hover,
[data-theme="dark"] .imgwm-dropzone.is-dragover {
    background: rgba(22, 163, 74, 0.1);
    border-color: var(--imgwm-accent);
}

[data-theme="dark"] .imgwm-select,
[data-theme="dark"] .imgwm-input {
    background: var(--bg);
    color: var(--heading);
    border-color: var(--border);
}

[data-theme="dark"] .imgwm-tabs { background: #1a2332; }
[data-theme="dark"] .imgwm-tab.is-active { background: var(--bg-section); }

[data-theme="dark"] .imgwm-style-btn,
[data-theme="dark"] .imgwm-tool-btn,
[data-theme="dark"] .imgwm-preset-btn {
    background: #1a2332;
    border-color: var(--border);
    color: #94a3b8;
}

[data-theme="dark"] .imgwm-queue-item {
    background: #1a2332;
    border-color: var(--border);
}

[data-theme="dark"] .imgwm-pos-btn { background: #1a2332; }
[data-theme="dark"] .imgwm-pos-btn.is-active { background: var(--imgwm-accent); }

[data-theme="dark"] .imgwm-preview-stage {
    background: repeating-conic-gradient(#1a2332 0% 25%, #0f172a 0% 50%) 50% / 16px 16px;
}

[data-theme="dark"] .imgwm-advanced summary { background: #1a2332; }
[data-theme="dark"] .imgwm-btn--ghost { background: #1a2332; border-color: var(--border); color: #94a3b8; }

[data-theme="dark"] .imgwm-format-tags span { background: #1a2332; color: #94a3b8; }
[data-theme="dark"] .imgwm-format-tags--out span { background: rgba(22, 163, 74, 0.15); color: #4ade80; }

[data-theme="dark"] .imgwm-features { background: var(--bg); }
[data-theme="dark"] .imgwm-toast { background: #334155; }

[data-theme="dark"] .imgwm-hero__demo {
    border-color: #4338ca;
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.15);
}

[data-theme="dark"] .imgwm-hero__photo {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 50%, #4338ca 100%);
}

[data-theme="dark"] .imgwm-check__box { border-color: #475569; }
[data-theme="dark"] .imgwm-logo-preview { background: #1a2332; }
[data-theme="dark"] .imgwm-preset-btn__icon { background: var(--bg-section); }
[data-theme="dark"] .imgwm-result-item { background: #1a2332; border-color: var(--border); }
