/* ==========================================
   AI 퍼스널 컬러 분석 페이지 스타일
   ========================================== */

/* ---------- AI 히어로 섹션 ---------- */
.ai-hero {
  background: var(--bg-gradient);
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 160, 191, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.ai-hero-content {
  position: relative;
  z-index: 1;
}

.ai-hero h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* AI 특징 카드 */
.ai-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ai-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 18px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 160, 191, 0.2);
  text-align: left;
  min-width: 240px;
}

.ai-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ai-feature-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ai-feature-text span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* 시작 버튼 (강조 모션 + 빛나는 효과, 자주 반복) */
.btn-ai-start {
  width: 100%;
  max-width: 650px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 160, 191, 0.45);
  animation: btn-ai-glow 2.5s ease-in-out infinite;
  overflow: hidden;
  isolation: isolate;
  font-family: 'YeogiOttaeJalnan';
}

/* 빛나는(shimmer) 효과 - 약 3초마다 반복 */
.btn-ai-start::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: -50%;
  left: -120%;
  width: 70%;
  height: 200%;
  background: linear-gradient(100deg,
      transparent 0%,
      transparent 30%,
      rgba(255, 255, 255, 0.45) 45%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0.45) 55%,
      transparent 70%,
      transparent 100%);
  transform: skewX(-18deg);
  -webkit-animation: btn-shine-repeat 3.2s ease-in-out 0.6s infinite;
  animation: btn-shine-repeat 3.2s ease-in-out 0.6s infinite;
  pointer-events: none;
}

@-webkit-keyframes btn-shine-repeat {

  0%,
  15% {
    left: -120%;
  }

  45% {
    left: 150%;
  }

  55%,
  100% {
    left: 150%;
  }
}

@keyframes btn-shine-repeat {

  0%,
  15% {
    left: -120%;
  }

  45% {
    left: 150%;
  }

  55%,
  100% {
    left: 150%;
  }
}

@keyframes btn-ai-glow {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(232, 160, 191, 0.45);
  }

  50% {
    box-shadow: 0 6px 28px rgba(232, 160, 191, 0.6), 0 0 40px rgba(184, 136, 201, 0.25);
  }
}

.btn-ai-start:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 36px rgba(232, 160, 191, 0.55), 0 0 48px rgba(184, 136, 201, 0.3);
  animation: none;
}

.btn-ai-start:hover::after {
  -webkit-animation: none;
  animation: none;
  opacity: 0;
}

.btn-ai-start-bottom {
  margin-top: 32px;
}

/* 상세 안내 섹션 (가이드 ~ 디스클레이머 묶음) */
.ai-detail-section {
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 160, 191, 0.2);
  max-width: 640px;
  margin: 40px auto 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* AI 분석 프로세스 3단계 (구분 영역) */
.ai-process-wrap {
  margin-bottom: 32px;
  padding: 24px 20px;
  /* background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 160, 191, 0.3); */
}

.ai-process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ai-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 160, 191, 0.35);
  min-width: 200px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ai-process-step:first-child {
  border-left: 3px solid var(--primary);
}

.ai-process-step:nth-child(3) {
  border-left: 3px solid var(--secondary);
}

.ai-process-step:nth-child(5) {
  border-left: 3px solid var(--primary-dark);
}

.ai-process-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ai-process-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.35;
}

.ai-process-arrow {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* 어떤 사진이 좋은지 가이드 (좋은 사진 / 피해야 할 사진 구분) */
.ai-photo-guide {
  max-width: 520px;
  margin: 0 auto 50px;
}

.ai-photo-guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-align: center;
}

.ai-photo-guide-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ai-photo-guide-ok,
.ai-photo-guide-ng {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  flex-direction: column;
}

.ai-photo-guide-ok {
  background: rgba(76, 175, 80, 0.08);
  border-color: rgba(76, 175, 80, 0.25);
}

.ai-photo-guide-ng {
  background: rgba(244, 67, 54, 0.06);
  border-color: rgba(244, 67, 54, 0.2);
}

.ai-photo-guide-ok .ai-photo-guide-label,
.ai-photo-guide-ng .ai-photo-guide-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ai-photo-guide-ok .ai-photo-guide-label {
  color: #2e7d32;
}

.ai-photo-guide-ng .ai-photo-guide-label {
  color: #c62828;
}

.ai-photo-guide-ok ul,
.ai-photo-guide-ng ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
}

.ai-photo-guide-ok ul {
  color: #1b5e20;
}

.ai-photo-guide-ng ul {
  color: #b71c1c;
}

.ai-photo-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ai-photo-icon-ok {
  background: rgba(76, 175, 80, 0.25);
  color: #2e7d32;
}

.ai-photo-icon-ng {
  background: rgba(244, 67, 54, 0.2);
  color: #c62828;
}

/* 분석 시간 + 결과 제공 내용 (이렇게 나와요) */
.ai-result-preview-info {
  max-width: 520px;
  margin: 0 auto 50px;
}

.ai-result-preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  color: var(--text-primary);
  margin-bottom: 15px;
  text-align: center;
  /* padding-bottom: 12px; */
  /* border-bottom: 2px solid rgba(232, 160, 191, 0.3); */
}

.ai-result-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid rgba(232, 160, 191, 0.25);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.ai-result-preview-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  background: rgba(232, 160, 191, 0.06);
  border-radius: 10px;
  border-left: 3px solid rgba(232, 160, 191, 0.4);
  transition: background 0.2s ease;
}

.ai-result-preview-list li:last-child {
  margin-bottom: 0;
}

.ai-result-preview-list li:hover {
  background: rgba(232, 160, 191, 0.1);
}

.ai-result-preview-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* 결과 예시 미리보기 (결과 페이지와 동일한 형태) */
.ai-example-preview {
  max-width: 450px;
  margin: 0 auto 28px;
}

.ai-example-preview-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-align: center;
}

.ai-example-result {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(232, 160, 191, 0.2);
}

.ai-example-result-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-gradient);
}

.ai-example-result-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.ai-example-result-info {
  min-width: 0;
  text-align: left;
}

.ai-example-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.ai-example-result-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.ai-example-result-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.ai-example-result-body {
  padding: 24px;
}

.ai-example-summary {
  background: rgba(232, 160, 191, 0.08);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.ai-example-summary h5 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.ai-example-bars {
  margin-bottom: 10px;
}

.ai-example-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ai-example-bar-label {
  width: 40px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ai-example-bar-track {
  flex: 1;
  height: 8px;
  background: #f0e6ee;
  border-radius: 6px;
  overflow: hidden;
}

.ai-example-bar-fill {
  height: 100%;
  border-radius: 6px;
}

.ai-example-bar-fill.warm {
  background: linear-gradient(90deg, #ff8a65, #ffb74d);
}

.ai-example-bar-fill.cool {
  background: linear-gradient(90deg, #64b5f6, #90caf9);
}

.ai-example-bar-value {
  width: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.ai-example-skin-tone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-example-skin-tone span {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.ai-example-detected {
  display: flex;
  gap: 4px;
}

.ai-example-detected-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  border: 1px solid #fff;
}

.ai-example-palette,
.ai-example-products,
.ai-example-avoid {
  margin-bottom: 12px;
}

.ai-example-palette:last-child,
.ai-example-products:last-child,
.ai-example-avoid:last-child {
  margin-bottom: 0;
}

.ai-example-palette h5,
.ai-example-products h5,
.ai-example-avoid h5 {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.ai-example-palette-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ai-example-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
}

.ai-example-product-list,
.ai-example-avoid-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ai-example-product-item,
.ai-example-avoid-item {
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-example-avoid-item {
  background: rgba(100, 100, 100, 0.5);
}

.ai-photo-tip-below {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ai-disclaimers: 참고용·개인정보 안내 (가독성 강화) */
.ai-disclaimers {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(232, 160, 191, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.ai-disclaimer,
.ai-privacy {
  position: relative;
  padding-left: 20px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.ai-disclaimer {
  margin-bottom: 12px;
}

.ai-disclaimer::before {
  content: '※';
  position: absolute;
  left: 2px;
  top: -4px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.ai-privacy::before {
  content: '🔒';
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.ai-privacy {
  font-size: 0.84rem;
  padding-top: 2px;
}

/* FAQ 섹션 (부드러운 모션 + 질문/답변 구분) */
.ai-faq-section {
  padding: 40px 0 60px;
  background: rgba(255, 255, 255, 0.5);
  background: var(--primary-light);
  /* border-top: 1px solid rgba(232, 160, 191, 0.15); */
}

.ai-faq-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.ai-faq-list {
  max-width: 560px;
  margin: 0 auto;
}

.ai-faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  /* border: 1px solid rgba(232, 160, 191, 0.15); */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.ai-faq-q {
  margin: 0;
}

.ai-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(232, 160, 191, 0.06);
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s ease, border-left-color 0.3s ease;
}

.ai-faq-trigger:hover {
  background: rgba(232, 160, 191, 0.12);
}

.ai-faq-item.open .ai-faq-trigger {
  background: rgba(232, 160, 191, 0.1);
  /* background: var(--primary-light); */
  border-left-color: var(--primary);
}

.ai-faq-trigger::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ai-faq-item.open .ai-faq-trigger::after {
  transform: rotate(-135deg);
}

/* 답변 영역: 닫혀 있을 때 높이 0, 열릴 때 부드럽게 */
.ai-faq-a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  background: transparent;
}

.ai-faq-item.open .ai-faq-a {
  max-height: 500px;
  transition: max-height 1s ease-in;
}

.ai-faq-a-inner {
  display: block;
  padding: 16px 24px 20px 24px;
  border-left: 3px solid transparent;
  background: rgba(248, 248, 250, 0.8);
  transition: border-left-color 0.2s ease;
}

.ai-faq-item.open .ai-faq-a-inner {
  border-left-color: var(--primary);
}

/* ---------- 업로드 섹션 ---------- */
.ai-upload-section {
  padding: 60px 0 80px;
  background: var(--bg-main);
}

.upload-header {
  text-align: center;
  margin-bottom: 32px;
}

.upload-header .upload-icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.upload-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.upload-header p {
  color: var(--text-secondary);
}

.upload-privacy {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: rgba(232, 160, 191, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(232, 160, 191, 0.4);
}

/* 업로드 영역 */
.upload-area {
  max-width: 500px;
  margin: 0 auto 24px;
  background: var(--bg-card);
  border: 2px dashed rgba(232, 160, 191, 0.4);
  border-radius: var(--radius);
  padding: 48px 32px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-area.dragover {
  border-color: var(--primary-dark);
  background: var(--primary-light);
  transform: scale(1.02);
}

.upload-placeholder {
  text-align: center;
}

.upload-icon-large {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.upload-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.upload-formats {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* 업로드 미리보기 */
.upload-preview {
  position: relative;
  text-align: center;
}

.upload-preview-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.upload-preview img {
  max-width: 100%;
  max-height: 350px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.upload-preview-actions {
  margin-top: 16px;
}

.btn-reselect {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid rgba(232, 160, 191, 0.35);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reselect:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-light);
}

.upload-time-tip {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: -8px auto 20px;
  max-width: 500px;
}

/* 업로드 팁 */
.upload-tips {
  max-width: 500px;
  margin: 0 auto 32px;
  background: rgba(232, 160, 191, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.tips-header strong {
  color: var(--primary-dark);
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.tips-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.upload-photo-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.photo-guide-ok,
.photo-guide-ng {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.photo-guide-ok {
  background: rgba(76, 175, 80, 0.1);
  color: var(--text-primary);
}

.photo-guide-ng {
  background: rgba(244, 67, 54, 0.08);
  color: var(--text-secondary);
}

.photo-guide-icon {
  font-size: 1rem;
}

.sample-photos-wrap {
  max-width: 560px;
  margin: 0 auto 24px;
}

.sample-photos-wrap .sample-photos-title {
  margin-bottom: 12px;
}

.sample-drop-wrap+.sample-drop-wrap {
  margin-top: 16px;
}

.sample-drop-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--bg-card);
  border: 2px solid rgba(232, 160, 191, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sample-drop-trigger:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.sample-drop-trigger.open {
  border-color: var(--primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.sample-drop-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.sample-drop-trigger.open .sample-drop-arrow {
  transform: rotate(180deg);
}

.sample-drop-panel {
  max-height: 0;
  overflow: hidden;
  background: var(--bg-card);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: max-height 0.3s ease;
}

.sample-drop-panel.open {
  max-height: 360px;
  overflow-y: auto;
}

.sample-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 16px;
}

.sample-photo-item {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid rgba(232, 160, 191, 0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sample-photo-item:hover {
  border-color: var(--primary);
  transform: scale(1.03);
}

.sample-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 분석 버튼 (시작 버튼과 동일한 글로우·shimmer 효과) */
.btn-analyze {
  display: block;
  width: 100%;
  max-width: 650px;
  margin: 0 auto 32px;
  padding: 16px 48px;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 160, 191, 0.45);
  animation: btn-ai-glow 2.5s ease-in-out infinite;
  overflow: hidden;
  isolation: isolate;
  font-family: 'YeogiOttaeJalnan';
}

.btn-analyze::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: -50%;
  left: -120%;
  width: 70%;
  height: 200%;
  background: linear-gradient(100deg,
      transparent 0%,
      transparent 30%,
      rgba(255, 255, 255, 0.45) 45%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0.45) 55%,
      transparent 70%,
      transparent 100%);
  transform: skewX(-18deg);
  -webkit-animation: btn-shine-repeat 3.2s ease-in-out 0.6s infinite;
  animation: btn-shine-repeat 3.2s ease-in-out 0.6s infinite;
  pointer-events: none;
}

.btn-analyze:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 36px rgba(232, 160, 191, 0.55), 0 0 48px rgba(184, 136, 201, 0.3);
  animation: none;
}

.btn-analyze:hover::after {
  -webkit-animation: none;
  animation: none;
  opacity: 0;
}

.btn-analyze:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.btn-analyze:disabled::after {
  animation: none;
}

/* ---------- 분석 중 섹션 ---------- */
.ai-analyzing-section {
  padding: 80px 0;
  background: var(--bg-main);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.analyzing-content {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.analyzing-image-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(232, 160, 191, 0.3);
}

.analyzing-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analyzing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232, 160, 191, 0.1);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
  0% {
    top: 0;
  }

  50% {
    top: calc(100% - 4px);
  }

  100% {
    top: 0;
  }
}

.analyzing-status {
  text-align: center;
}

.analyzing-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.analyzing-status h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.analyzing-step {
  font-size: 0.95rem;
  color: var(--text-secondary);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ---------- AI 결과 섹션 ---------- */
.ai-result-section {
  padding: 60px 0 80px;
  background: var(--bg-main);
}

.ai-result-card {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ai-result-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-gradient);
}

.result-user-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
}

.result-user-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-season-info {
  text-align: left;
}

.ai-result-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.ai-result-badge.spring {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.ai-result-badge.summer {
  background: linear-gradient(135deg, #42a5f5, #90caf9);
}

.ai-result-badge.autumn {
  background: linear-gradient(135deg, #8d6e63, #a1887f);
}

.ai-result-badge.winter {
  background: linear-gradient(135deg, #5c6bc0, #7986cb);
}

.ai-result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ai-result-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  /* color: var(--text-secondary); */
}

.ai-result-body {
  padding: 32px;
  padding-bottom: 0;
}

/* 분석 요약 */
.analysis-summary {
  background: rgba(232, 160, 191, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
}

.analysis-summary h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.analysis-bars {
  margin: 16px 0;
}

.analysis-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bar-label {
  width: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bar-track {
  flex: 1;
  height: 12px;
  background: #f0e6ee;
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}

.bar-fill.warm {
  background: linear-gradient(90deg, #ff8a65, #ffb74d);
}

.bar-fill.cool {
  background: linear-gradient(90deg, #64b5f6, #90caf9);
}

.bar-value {
  width: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.skin-tone-detected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.skin-tone-detected span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.detected-colors {
  display: flex;
  gap: 6px;
}

.detected-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
}

/* 설명 */
.ai-result-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 28px;
  text-align: left;
  padding: 20px 22px;
  background: rgba(248, 248, 250, 0.9);
  border-radius: var(--radius-sm);
  border-left: 4px solid rgba(232, 160, 191, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ai-result-description p {
  margin: 0 0 0.75em;
}

.ai-result-description p:last-child {
  margin-bottom: 0;
}

.ai-result-description strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* 피해야 할 컬러 */
.avoid-colors-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.avoid-colors-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.avoid-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avoid-color-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 107, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
}

.avoid-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  position: relative;
}

.avoid-swatch::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.avoid-color-name {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.avoid-makeup-reason {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 세부 타입 */
.result-sub-type {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 어울리는 헤어 컬러 */
.result-hair-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.result-hair-section h5,
.result-jewelry-section h5,
.result-fashion-section h5,
.result-product-list-section h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.result-hair-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hair-color-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.88rem;
  background: var(--bg-card);
  border: 1px solid rgba(232, 160, 191, 0.3);
  border-radius: 20px;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hair-color-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 추천 주얼리 */
.result-jewelry-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.result-jewelry-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* 패션 코디 추천 */
.result-fashion-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.result-fashion-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fashion-coordi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid rgba(232, 160, 191, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fashion-coordi-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fashion-color-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.fashion-coordi-text {
  flex: 1;
  min-width: 0;
}

/* 추천 제품 리스트 */
.result-product-list-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.result-product-colors {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(248, 248, 250, 0.9);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 160, 191, 0.2);
}

.product-colors-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 12px 0;
}

.product-colors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-color-code-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid rgba(232, 160, 191, 0.2);
  font-size: 0.85rem;
}

.product-color-code-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.product-color-code-name {
  color: var(--text-primary);
  font-weight: 500;
}

.product-color-code-hex {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.product-category-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.product-category-row:last-child {
  border-bottom: none;
}

.product-category-name {
  min-width: 72px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-product-buttons {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-product-list {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(232, 160, 191, 0.4);
  border-radius: 24px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-product-list:hover {
  background: rgba(232, 160, 191, 0.25);
  border-color: var(--primary);
}

.btn-product-list-coupang {
  color: #c7511f;
  background: rgba(199, 81, 31, 0.08);
  border-color: rgba(199, 81, 31, 0.35);
}

.btn-product-list-coupang:hover {
  background: rgba(199, 81, 31, 0.15);
  border-color: #c7511f;
}

/* 결과 신뢰도 안내 */
.result-coupang-partner-notice {
  padding: 14px 0;
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.5;
}

.result-reliability-notice {
  margin: 0 0 24px 0;
  padding: 14px 20px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  background: rgba(248, 248, 250, 0.95);
  border: 1px solid rgba(232, 160, 191, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.result-reliability-notice::before {
  content: '💡';
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* ---------- 반응형 ---------- */
@media (max-width: 768px) {
  .ai-hero h2 {
    font-size: 2rem;
  }

  .ai-process-wrap {
    padding: 18px 14px;
  }

  .ai-process-flow {
    gap: 10px;
  }

  .ai-process-step {
    min-width: 100px;
    padding: 14px 16px;
  }

  .ai-process-label {
    font-size: 0.72rem;
  }

  .ai-photo-guide-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-photo-guide-ok,
  .ai-photo-guide-ng {
    max-width: none;
    min-width: 0;
  }

  .ai-features {
    flex-direction: column;
    align-items: center;
  }

  .ai-feature-item {
    width: 100%;
    max-width: 320px;
  }

  .ai-result-header {
    flex-direction: column;
    text-align: center;
  }

  .result-season-info {
    text-align: center;
  }

  .upload-area {
    padding: 32px 20px;
  }

  .sample-photos {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .result-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sample-photos {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .ai-hero {
    padding: 40px 0 60px;
  }

  .ai-hero h2 {
    font-size: 1.6rem;
  }

  .ai-hero-desc {
    font-size: 0.95rem;
  }

  .ai-process-arrow {
    display: none;
  }

  .ai-process-flow {
    flex-direction: column;
  }

  .ai-process-step {
    width: 100%;
    max-width: 260px;
  }

  .ai-photo-guide {
    padding: 14px 16px;
  }

  .ai-example-preview {
    max-width: 100%;
  }

  .ai-example-result-header {
    flex-wrap: wrap;
  }

  .ai-example-result-photo {
    width: 48px;
    height: 48px;
  }

  .ai-example-result-title {
    font-size: 0.88rem;
  }

  .ai-process-wrap {
    padding: 16px 12px;
  }

  .ai-detail-section {
    padding: 20px 16px 24px;
    margin-top: 24px;
  }

  .btn-ai-start {
    padding: 14px 36px;
    font-size: 1rem;
  }

  .analyzing-image-wrap {
    width: 150px;
    height: 150px;
  }

  .result-user-photo {
    width: 80px;
    height: 80px;
  }

  .ai-result-title {
    font-size: 1.2rem;
  }
}