  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 2px;
}

.summary {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
}
.summary-item { display: flex; flex-direction: column; }
.summary-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.summary-value { font-size: 22px; font-weight: 700; color: var(--text); }
.summary-total .summary-value {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Render (2 modes) ===== */
.render-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.mode-card {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: var(--panel-2);
}
.mode-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(240, 147, 251, 0.15));
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}
.mode-icon { font-size: 40px; margin-bottom: 8px; }
.mode-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.mode-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.mode-meta {
  font-size: 12px;
  color: var(--primary);
  font-family: ui-monospace, monospace;
  font-weight: 600;
  padding: 6px 10px;
  background: var(--panel-2);
  border-radius: 6px;
  display: inline-block;
}

.render-area { text-align: center; }
.render-progress {
  margin-top: 24px;
  background: var(--panel-2);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.render-progress.hidden { display: none; }
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #f093fb, #43e97b);
  width: 0%;
  transition: width .3s;
  border-radius: 4px;
}
.progress-text { font-size: 14px; color: var(--muted); }
.progress-text::after { content: ''; display: inline-block; width: 8px; height: 8px; border: 2px solid var(--primary); border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.render-result { margin-top: 32px; animation: fadeIn .6s; }
.render-result.hidden { display: none; }
.render-result h3 { margin: 0 0 20px; font-size: 20px; }
.render-result video {
  width: 100%; max-width: 720px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: black;
  margin: 0 auto;
  display: block;
}
.result-actions, .result-images-toolbar {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.result-stats {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.result-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.result-img-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .15s;
}
.result-img-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.result-img-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: black;
}
.result-img-meta {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  background: var(--panel);
}
.result-img-num {
  background: linear-gradient(135deg, #667eea, #f093fb);
  color: white;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}
.result-img-size {
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.result-img-dl {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.75);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.result-img-card:hover .result-img-dl { opacity: 1; }
.result-img-dl:hover { background: var(--primary); }

/* ===== How section ===== */
.how-section {
  padding: 60px 0;
  text-align: center;
}
.how-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
}
.how-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform .2s;
}
.how-card:hover { transform: translateY(-4px); }
.how-icon { font-size: 36px; margin-bottom: 12px; }
.how-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.how-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

@media (max-width: 720px) {
  .step-header { flex-direction: column; gap: 12px; }
  .person-preview { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .hero-demo { gap: 8px; }
  .demo-step { min-width: 90px; padding: 12px 14px; }
  .demo-arrow { display: none; }
  .summary { flex-wrap: wrap; }
  .render-mode-grid { grid-template-columns: 1fr; }
  .result-images-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

