/* ============ INFO BANNER ============ */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 214, 10, 0.08);
  border: 1px solid rgba(255, 214, 10, 0.3);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.info-banner svg {
  flex-shrink: 0;
  stroke: var(--primary);
  margin-top: 2px;
}
.info-banner strong { color: var(--primary); }

/* ============ PROCESSING CARD ============ */
.processing-card {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.processing-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.processing-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0A;
  flex-shrink: 0;
}
.processing-icon .icon-modern {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.processing-title {
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}
.processing-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.processing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s;
}
.step-item .step-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}
.step-item.active {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(255, 214, 10, 0.08);
}
.step-item.active .step-icon {
  stroke: var(--primary);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
.step-item.done {
  border-color: var(--success);
  color: var(--success);
  background: rgba(16, 185, 129, 0.06);
}
.step-item.done .step-icon {
  stroke: var(--success);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ PREVIEW WRAPPER ============ */
.preview-wrapper {
  margin-top: 2rem;
}
.preview-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: var(--bg-alt);
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  width: fit-content;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  background: var(--primary);
  color: #0A0A0A;
}

/* ============ CHECKERBOARD BACKGROUND ============ */
.checker-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  z-index: 0;
}
[data-theme="dark"] .checker-bg {
  background-image:
    linear-gradient(45deg, #27272a 25%, transparent 25%),
    linear-gradient(-45deg, #27272a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #27272a 75%),
    linear-gradient(-45deg, transparent 75%, #27272a 75%);
}

/* ============ COMPARE SLIDER ============ */
.compare-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: ew-resize;
  user-select: none;
  box-shadow: var(--shadow);
}
.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}
.compare-img.result {
  clip-path: inset(0 0 0 50%);
  z-index: 2;
}
.compare-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 2px 10px rgba(0,0,0,0.3);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}
.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #0A0A0A;
}
.slider-handle svg {
  stroke: #0A0A0A;
}
.compare-label {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.label-before { left: 1rem; }
.label-after { right: 1rem; }

/* ============ RESULT ONLY VIEW ============ */
.result-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.result-only-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* ============ TIPS SECTION ============ */
.tips-section {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tips-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.tip {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.tip:nth-child(4) .tip-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}
.tip strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}
.tip p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .processing-steps {
    grid-template-columns: 1fr;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .compare-container, .result-container {
    aspect-ratio: 4 / 3;
  }
}