* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background-color: #000;
  color: #fff;
}

/* Modern Dark Theme Inspired by Shopify Editions */
.modern-dark {
  background-color: #000;
  color: #fff;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 64px;
  width: auto;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-accent {
  background: #fff;
  color: #000;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 20px;
  transition: transform 0.2s;
}

.btn-accent:hover {
  transform: scale(1.05);
}

.btn-icon {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
}

.hero-section {
  text-align: center;
  max-width: 800px;
  margin-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: #a0a0a0;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: #a0a0a0;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== NEW HERO DESIGN ===== */

.hero-section {
  text-align: left;
  max-width: 1200px;
  width: 100%;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
  padding: 40px 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-left {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(168, 255, 120, 0.08);
  border: 1px solid rgba(168, 255, 120, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
  color: #a8ff78;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8ff78;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-left .hero-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 20px;
  text-align: left;
}

.hero-left .hero-subtitle {
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
  color: #999;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
  color: #000;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(168, 255, 120, 0.25);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(168, 255, 120, 0.35);
}

.btn-hero-primary svg {
  flex-shrink: 0;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: 14px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero visual (right side) */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 720px;
  overflow: hidden;
}

.hero-visual-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 255, 120, 0.15), transparent, rgba(78, 205, 196, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero image container (right side) */
.hero-image-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
/* On-image labels */
.img-label {
  position: absolute;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.7);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
.img-label-left { left: 12px; }
.img-label-right { right: 12px; }
.img-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.img-label-dot.red { background: #ff5566; box-shadow: 0 0 6px #ff5566; }
.img-label-dot.green { background: #a8ff78; box-shadow: 0 0 6px #a8ff78; }

/* SVG animation classes */
.pixel-side rect {
  animation: pixel-flicker 3s ease-in-out infinite alternate;
}

.vector-path-red {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-vector 3s ease-out 0.5s forwards;
}

.anchor-dot {
  opacity: 0;
  animation: pop-in 0.3s ease-out forwards;
}

.anchor-dot:nth-child(1) { animation-delay: 1.5s; }
.anchor-dot:nth-child(2) { animation-delay: 1.7s; }
.anchor-dot:nth-child(3) { animation-delay: 1.9s; }
.anchor-dot:nth-child(4) { animation-delay: 2.1s; }
.anchor-dot:nth-child(5) { animation-delay: 2.3s; }
.anchor-dot:nth-child(6) { animation-delay: 2.5s; }
.anchor-dot:nth-child(7) { animation-delay: 2.7s; }

.handle-line, .handle-dot {
  opacity: 0;
  animation: fade-in 0.4s ease-out forwards;
  animation-delay: 2s;
}

@keyframes draw-vector {
  to { stroke-dashoffset: 0; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 0.5; }
}

@keyframes pixel-flicker {
  0% { opacity: var(--base-opacity, 0.7); }
  100% { opacity: calc(var(--base-opacity, 0.7) * 0.85); }
}

/* Hero background effects */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(168, 255, 120, 0.06) 0%, rgba(78, 205, 196, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glow-shift 8s ease-in-out infinite alternate;
}

@keyframes glow-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-40px, 20px); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left .hero-title {
    font-size: 48px;
    letter-spacing: -2px;
    text-align: center;
  }

  .hero-left .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual-frame {
    max-width: 480px;
    margin: 0 auto;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .preview-container {
    grid-template-columns: 1fr;
  }

  .top-nav {
    padding: 16px 20px;
  }

  .brand-logo {
    height: 40px;
  }

  .hero-title {
    font-size: 40px !important;
  }
}

@media (max-width: 600px) {
  .hero-left .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-value {
    font-size: 16px;
  }

  .btn-hero-primary {
    padding: 14px 24px;
    font-size: 15px;
  }

  .btn-hero-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .container {
    padding: 20px 16px;
  }

  .hero-visual {
    display: none;
  }
}

/* ===== END NEW HERO ===== */

/* App Container */
.app-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 100px;
}

.container {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: min(1200px, 100%);
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.upload-section {
  text-align: center;
  padding: 40px 0;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s;
}

.upload-section:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-upload {
  background: #fff;
  color: #000;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.btn-upload:hover {
  transform: translateY(-2px);
}

.file-info {
  margin-top: 12px;
  font-size: 13px;
  color: #888;
}

.preview-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 400px;
}

.preview-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
}

.preview-box h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.canvas-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.canvas-wrapper.panning {
  cursor: grabbing;
}

#originalCanvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#svgPreview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#svgPreview svg {
  max-width: 100%;
  max-height: 100%;
  will-change: transform;
  transition: transform 0.05s linear;
}

.controls-wrapper {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.section-header {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.control-group span {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.upscale-selector {
  width: 100%;
  padding: 8px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
}

.hint {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: 0.2s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: #43e97b;
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

.bw-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invert-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a0a0a0;
}

.invert-wrap.disabled {
  opacity: 0.5;
}

.palette-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.palette-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a0a0a0;
}

.detected-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.palette-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  min-height: 28px;
  color: #fff;
  font-size: 11px;
  background: #111;
}

.palette-swatch span {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  padding: 2px 6px;
}

.palette-empty {
  font-size: 12px;
  color: #777;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.action-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary, .btn-success {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-primary {
  background: #333;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
  color: #000;
}

.btn-primary:hover, .btn-success:hover {
  transform: translateY(-2px);
}

.status {
  font-size: 13px;
}
.processing { color: #a8ff78; }
.success { color: #78ffd6; }
.error { color: #ff6b6b; }

/* Features Section - Bento Grid */
.features-section {
  width: min(1200px, 100%);
  margin-top: 40px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: #a0a0a0;
  margin-bottom: 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  transition: border-color 0.3s;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.bento-wide {
  grid-column: span 3;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a, #000);
}

.bento-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bento-card p {
  color: #a0a0a0;
  font-size: 15px;
  line-height: 1.5;
}

.version-footer {
  padding: 40px 20px;
  text-align: center;
  color: #666;
  font-size: 13px;
  width: 100%;
}

/* Palette panel enhancements */
.palette-help {
  font-size: 11px;
  color: #777;
  margin-top: -6px;
}

.palette-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.palette-target-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a0a0a0;
}

.palette-target-control input[type="color"] {
  width: 28px;
  height: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: #000;
  padding: 1px;
  cursor: pointer;
}

.palette-action-btn {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 5px 12px;
  font-size: 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.palette-action-btn:hover {
  background: #2a2a2a;
  border-color: rgba(255,255,255,0.4);
}

.palette-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.palette-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  min-height: 28px;
  color: #fff;
  font-size: 11px;
  background: #111;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.palette-swatch span {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  padding: 2px 6px;
}

.palette-swatch.selected {
  border-color: #a8ff78;
  box-shadow: 0 0 0 2px rgba(168, 255, 120, 0.35);
}

.palette-swatch.mapped {
  border-color: #78ffd6;
  box-shadow: 0 0 0 2px rgba(78, 255, 214, 0.25);
}

.palette-swatch.removed {
  border-color: #ff6b6b;
  opacity: 0.6;
}

.palette-swatch.removed span {
  text-decoration: line-through;
  color: #ff6b6b;
}

.palette-rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.palette-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #a0a0a0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 6px 10px;
}

.palette-rule-removed {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #ff6b6b;
  background: rgba(255,107,107,0.05);
  border: 1px solid rgba(255,107,107,0.15);
  border-radius: 6px;
  padding: 6px 10px;
}

.palette-rule-target {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.palette-rule-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.palette-rule-chip {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
}

.palette-rule-remove {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #888;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}

.palette-rule-remove:hover {
  background: rgba(255,107,107,0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.zip-export-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
}

.zip-export-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #a8ff78;
  cursor: pointer;
}

.zip-export-option span {
  user-select: none;
}

/* Modal */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 24px;
  max-width: 400px;
  width: 90%;
  color: #fff;
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-content p {
  color: #a0a0a0;
  font-size: 14px;
  margin-bottom: 24px;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 12px;
  font-size: 14px;
}

.modal-content input:focus {
  border-color: #a8ff78;
  outline: none;
}

.modal-content button {
  width: 100%;
  margin-bottom: 12px;
}

.close-modal {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.close-modal:hover {
  color: #fff;
}

.license-badge {
  display: flex;
  align-items: center;
}

.upgrade-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.upgrade-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pro-badge {
  background: rgba(67, 233, 123, 0.2);
  color: #43e97b;
  border: 1px solid rgba(67, 233, 123, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.btn-auto-tune {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-auto-tune:hover {
  background: rgba(255, 255, 255, 0.1);
}
