.dropzone {
  border: 2px dashed rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 18px 16px;
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease;
  cursor: pointer;
}
.dropzone.dragover {
  border-color: var(--green);
  background: rgba(57, 255, 110, 0.08);
}
.dropzone p { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; }

.compare-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 460px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #0b1221;
  background-image:
    linear-gradient(45deg, rgba(148, 163, 184, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  touch-action: pan-y;
  user-select: none;
}

.compare-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.compare-layer img,
.compare-layer svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(57, 255, 110, 0.7);
  pointer-events: none;
  z-index: 4;
}

.compare-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green);
  color: #052e16;
  font-weight: 900;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.compare-badge {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(2, 6, 23, 0.82);
  color: var(--text);
  border: 1px solid var(--border);
  z-index: 5;
  pointer-events: none;
}
.compare-badge.left { left: 10px; }
.compare-badge.right { right: 10px; color: var(--green); }

.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
}
.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex: 0 0 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  margin: 10px 0;
}
.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.craft-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.32);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.craft-callout p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 520px;
}
.craft-callout strong { color: var(--text); }

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--green);
}

.seo-section {
  margin: 28px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.seo-section h2 {
  font-family: 'Outfit', sans-serif;
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.seo-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.seo-card h3 { margin: 0 0 6px; font-size: 0.98rem; color: var(--accent); }
.seo-card p { margin: 0; font-size: 0.86rem; color: var(--muted); }
