.hs-hero {
  text-align: center;
  margin-bottom: 32px;
}
.hs-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.hs-subtitle {
  font-size: 15px;
  color: var(--text-dim);
}

.hs-steps-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.hs-step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface2);
  transition: all 0.2s;
}
.hs-step-indicator.active {
  background: var(--accent);
  color: #fff;
}
.hs-step-indicator.done {
  background: var(--success);
  color: #fff;
}
.hs-step-num {
  font-weight: 700;
}

.hs-section {
  margin-bottom: 28px;
}
.hs-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.hs-section-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.hs-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  background: var(--card-bg);
  transition: border-color 0.2s;
  cursor: pointer;
}
.hs-upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(108, 79, 255, 0.04);
}
.hs-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
}
.hs-upload-btns {
  display: flex;
  gap: 10px;
}
.hs-drag-text {
  font-size: 12px;
  color: var(--text-dim);
}
.hs-upload-preview {
  position: relative;
  display: inline-block;
}
.hs-upload-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  object-fit: contain;
}
.hs-change-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.hs-btn-primary {
  background: var(--accent);
  color: #fff;
}
.hs-btn-primary:hover {
  opacity: 0.9;
}
.hs-btn-secondary {
  background: var(--surface2);
  color: var(--text-bright);
}
.hs-btn-secondary:hover {
  background: var(--border);
}
.hs-btn-generate {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.hs-btn-generate:hover:not(:disabled) {
  opacity: 0.9;
}
.hs-btn-generate:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.hs-balance {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

.hs-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hs-style-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.15s;
}
.hs-style-btn:hover {
  border-color: var(--border-hover);
}
.hs-style-btn.selected {
  border-color: var(--accent);
  background: rgba(108, 79, 255, 0.06);
}
.hs-style-icon {
  font-size: 24px;
}
.hs-style-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-bright);
}

.hs-loading {
  text-align: center;
  padding: 60px 20px;
}
.hs-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: hs-spin 0.8s linear infinite;
}
@keyframes hs-spin {
  to { transform: rotate(360deg); }
}
.hs-loading-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.hs-loading-desc {
  font-size: 13px;
  color: var(--text-dim);
}

.hs-result {
  margin-bottom: 32px;
}
.hs-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}
.hs-compare-item {
  flex: 1;
  text-align: center;
  max-width: 260px;
}
.hs-compare-item img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.hs-compare-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.hs-compare-arrow {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}
.hs-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hs-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hs-history-header .hs-section-title {
  margin-bottom: 0;
}
.hs-btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.hs-history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hs-history-grid img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hs-history-grid img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1;
  position: relative;
}

.hs-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.hs-lightbox.active {
  display: flex;
}
.hs-lightbox-content {
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
}
.hs-lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
}
.hs-lightbox-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.hs-how {
  margin-top: 48px;
  margin-bottom: 32px;
}
.hs-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hs-how-card {
  text-align: center;
  padding: 20px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hs-how-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.hs-how-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.hs-how-card p {
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .hs-title { font-size: 22px; }
  .hs-steps-bar { gap: 4px; }
  .hs-step-indicator { padding: 5px 10px; font-size: 11px; }
  .hs-style-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hs-style-btn { padding: 10px 6px; }
  .hs-style-icon { font-size: 20px; }
  .hs-style-label { font-size: 11px; }
  .hs-compare { flex-direction: column; }
  .hs-compare-arrow { transform: rotate(90deg); }
  .hs-how-grid { grid-template-columns: 1fr; gap: 10px; }
  .hs-history-grid { grid-template-columns: repeat(3, 1fr); }
  .hs-upload-btns { flex-direction: column; gap: 8px; }
  .hs-lightbox-content img { max-height: 60vh; }
  .hs-history-header { flex-wrap: wrap; gap: 8px; }
}

/* === 실사 스타일 카드 + 결제 위저드 (2026-07-06 클로드 디자인 시안 이식) === */
.hs-style-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .hs-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hs-style-card { padding: 0 0 12px; overflow: hidden; text-align: center; }
.hs-style-img {
  /* height:auto 필수 — HTML height 속성이 살아남으면 aspect-ratio가 무시돼 세로 스트립이 됨 (07-06 실사고) */
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border-radius: 10px 10px 0 0; margin-bottom: 8px;
}
.hs-style-card .hs-style-label {
  font-size: 13px; padding: 0 8px; line-height: 1.3;
  min-height: 2.6em; display: flex; align-items: center; justify-content: center;
}
.hs-style-desc {
  font-size: 11px; color: var(--text-dim, #888); padding: 0 10px; line-height: 1.4;
  min-height: 3.1em;
}
.hs-style-card.selected { box-shadow: 0 0 0 3px rgba(108, 79, 255, 0.35); }
.hs-pay-back {
  background: none; border: none; color: var(--accent, #6c4fff);
  font-size: 0.85rem; cursor: pointer; padding: 0; margin-bottom: 10px;
}
.hs-pay-back:hover { text-decoration: underline; }
.hs-pay-sel {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 8px 10px; border-radius: 10px; background: rgba(108, 79, 255, 0.06);
}
.hs-pay-sel img { border-radius: 6px; object-fit: cover; }
.hs-pay-sel span { font-size: 0.9rem; font-weight: 600; color: var(--text-bright); }
@media (max-width: 560px) {
  .hs-style-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === 시안 정본 반영 (2026-07-06): 본문 폭 880px + 결제 2카드 선택식 === */
.hs-hero, .hs-steps-bar, .hs-section, .hs-loading, .hs-result, #hsResult {
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.hs-pay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.hs-pay-card {
  cursor: pointer; background: #fff; border: 1px solid #E8E8EE; border-radius: 16px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 1px 3px rgba(20,20,43,0.05); transition: border-color 0.15s, box-shadow 0.15s;
}
.hs-pay-card.selected {
  border: 2.5px solid var(--accent, #6c4fff);
  box-shadow: 0 8px 24px rgba(79,70,184,0.18);
  padding: 20.5px 18.5px;
}
.hs-pay-card-top { display: flex; align-items: center; justify-content: space-between; }
.hs-pay-card-title { font-size: 16px; font-weight: 800; color: var(--text-bright); }
.hs-badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.hs-badge-purple { color: #4F46B8; background: #ECEAFB; }
.hs-badge-green { color: #0E7A4A; background: #E3F4EB; }
.hs-pay-price { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }
.hs-pay-price b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-bright); }
.hs-pay-price span { font-size: 13px; color: #8A8A9E; }
.hs-pay-card-desc { margin: 0; font-size: 13px; color: #5A5A6E; line-height: 1.5; }
.hs-pay-bal { margin: 2px 0 0; font-size: 12px; color: #8A8A9E; }
.hs-pay-bal b { color: var(--text-bright); }
@media (max-width: 640px) { .hs-pay-cards { grid-template-columns: 1fr; } }
