/**
 * AI Link - AI 솔루션 매칭 스타일
 * 버전: 1.0 MVP
 */

/* ========================================
   기본 설정
   ======================================== */
:root {
  --match-primary: #4f46e5;
  --match-primary-light: #e0e7ff;
  --match-accent: #f59e0b;
  --match-success: #10b981;
  --match-gold: #f59e0b;
  --match-silver: #94a3b8;
  --match-bronze: #d97706;
  --match-bg: #f8fafc;
  --match-card: #ffffff;
  --match-border: #e2e8f0;
  --match-text: #1e293b;
  --match-text-sub: #64748b;
  --match-radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--match-bg);
  color: var(--match-text);
  min-height: 100vh;
}

/* ========================================
   스텝 컨테이너
   ======================================== */
.matching-step {
  display: none;
  min-height: calc(100vh - 64px);
}
.matching-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   STEP 1: 니즈 파악
   ======================================== */
#step1 { position: relative; }

.step-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 480px;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 40%, #6366f1 100%);
  overflow: hidden;
  z-index: 0;
}
.step-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
                     radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%);
}

.step-container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 110px 24px 80px;
}

/* 헤더 */
.step-header {
  text-align: center;
  margin-bottom: 48px;
  color: #fff;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.badge-icon { font-size: 1.2rem; }

.step-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.step-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  font-weight: 400;
  margin-bottom: 32px;
}

/* 프로그레스 */
.step-progress {
  max-width: 400px;
  margin: 0 auto;
}
.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-fill {
  height: 100%;
  background: var(--match-accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.7;
}
.progress-dot {
  position: relative;
  padding-top: 14px;
}
.progress-dot::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.progress-dot.active::before,
.progress-dot.completed::before {
  background: var(--match-accent);
  box-shadow: 0 0 8px rgba(245,158,11,0.5);
}

/* ========================================
   질문 그룹
   ======================================== */
.question-group {
  display: none;
  margin-bottom: 40px;
  animation: slideUp 0.4s ease;
}
.question-group.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.q-number {
  background: var(--match-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}
.q-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--match-text);
}
.q-hint {
  font-size: 0.8rem;
  color: var(--match-text-sub);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 100px;
}

/* Q1 이후 배경 전환 */
#q1 .q-text, #q1 .q-hint { color: rgba(255,255,255,0.9); }
#q1 .q-hint { background: rgba(255,255,255,0.15); }

/* ========================================
   옵션 카드
   ======================================== */
.option-grid {
  display: grid;
  gap: 12px;
}
.category-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.org-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.budget-grid { grid-template-columns: 1fr; max-width: 520px; }

/* 세부분류 그리드 */
.subcategory-grid { 
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); 
  gap: 10px;
}
.subcategory-grid .option-card {
  padding: 14px 12px;
  min-height: auto;
}
.subcategory-grid .option-card .option-icon {
  font-size: 1.4rem;
}
.subcategory-grid .option-card .option-label {
  font-size: 0.85rem;
}
.subcategory-grid .skip-option {
  background: #f8fafc;
  border-style: dashed;
  border-color: #cbd5e1;
}
.subcategory-grid .skip-option:hover {
  border-style: solid;
}
.subcategory-grid .skip-option.selected {
  background: var(--match-primary-light);
  border-style: solid;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--match-card);
  border: 2px solid var(--match-border);
  border-radius: var(--match-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
  font-family: inherit;
  font-size: inherit;
  color: var(--match-text);
}
.option-card:hover {
  border-color: var(--match-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79,70,229,0.12);
}
.option-card.selected {
  border-color: var(--match-primary);
  background: var(--match-primary-light);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.option-card.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

.option-icon { font-size: 2rem; }
.option-label { font-weight: 700; font-size: 0.95rem; }
.option-desc { font-size: 0.78rem; color: var(--match-text-sub); }
.option-sub-count { font-size: 0.72rem; color: var(--match-text-sub); }
.option-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--match-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

/* 가로형 카드 (예산) */
.option-card.horizontal {
  flex-direction: row;
  text-align: left;
  padding: 18px 24px;
  gap: 16px;
}
.option-card.horizontal .option-icon { font-size: 1.6rem; min-width: 48px; text-align: center; }
.option-info { display: flex; flex-direction: column; gap: 4px; }

/* ========================================
   CTA 버튼
   ======================================== */
.matching-cta {
  text-align: center;
  margin-top: 40px;
  animation: slideUp 0.4s ease;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 48px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
  font-family: inherit;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(79,70,229,0.4);
}
.cta-button:active { transform: translateY(0); }
.cta-icon { font-size: 1.4rem; }
.cta-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--match-text-sub);
}

/* ========================================
   STEP 2: 로딩
   ======================================== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 100px 24px 40px;
  text-align: center;
}

.loading-animation {
  position: relative;
  width: 120px; height: 120px;
  margin-bottom: 32px;
}
.loading-ring {
  position: absolute;
  inset: 0;
  border: 4px solid #e2e8f0;
  border-top-color: var(--match-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.loading-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--match-text);
}

.loading-status {
  margin-bottom: 24px;
}
.status-text {
  color: var(--match-text-sub);
  font-size: 0.95rem;
  animation: fadeInOut 2s ease infinite;
}
@keyframes fadeInOut {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.loading-progress {
  width: 300px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--match-primary) 0%, var(--match-accent) 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ========================================
   STEP 3: 결과 - AI 분석 리포트 (v3.0)
   ======================================== */
.result-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

/* 통계 대시보드 */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stats-card {
  background: #fff;
  border: 1px solid var(--match-border);
  border-radius: var(--match-radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--match-shadow);
}
.stats-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.stats-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--match-primary);
  line-height: 1.2;
}
.stats-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--match-text-sub);
  margin-left: 2px;
}
.stats-label {
  font-size: 0.85rem;
  color: var(--match-text-sub);
  margin-top: 4px;
}

/* AI 인사이트 카드 */
.insight-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--match-radius);
  padding: 24px;
  margin-bottom: 28px;
}
.insight-card.positive {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}
.insight-card.caution {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}
.insight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.insight-icon {
  font-size: 1.5rem;
}
.insight-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--match-text);
}
.insight-content {
  font-size: 0.95rem;
  color: var(--match-text);
  line-height: 1.7;
}
.insight-content strong {
  color: var(--match-primary);
}

/* 리포트 섹션 */
.report-section {
  margin-bottom: 32px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}
.section-header.exact { border-bottom-color: var(--match-primary); }
.section-header.similar { border-bottom-color: #f59e0b; }
.section-header.salesrep { border-bottom-color: #10b981; }

.section-badge {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
}
.section-badge.exact { background: var(--match-primary-light); color: var(--match-primary); }
.section-badge.similar { background: #fef3c7; color: #92400e; }
.section-badge.salesrep { background: #d1fae5; color: #065f46; }

.section-count {
  font-size: 0.9rem;
  color: var(--match-text-sub);
}
.section-desc {
  font-size: 0.9rem;
  color: var(--match-text-sub);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* 제품 카드 그리드 */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--match-border);
  border-radius: var(--match-radius);
  padding: 20px;
  transition: all 0.2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--match-shadow-lg);
}
.product-card.exact { border-left: 4px solid var(--match-primary); }
.product-card.similar { border-left: 4px solid #f59e0b; }

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.product-cat {
  font-size: 0.82rem;
  color: var(--match-text-sub);
}
.product-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge.proc { background: #dbeafe; color: #1d4ed8; }
.badge.innovation { background: #fef3c7; color: #92400e; }
.badge.excellent { background: #d1fae5; color: #065f46; }

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--match-text);
  margin-bottom: 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.product-name:hover { color: var(--match-primary); }

.product-company {
  font-size: 0.88rem;
  color: var(--match-text-sub);
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--match-text-sub);
}
.meta-item { display: flex; align-items: center; gap: 4px; }
.product-refs { display: flex; align-items: center; gap: 4px; }

.product-match {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.match-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.match-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.match-fill.exact { background: linear-gradient(90deg, var(--match-primary), var(--match-success)); }
.match-fill.similar { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.match-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--match-primary);
  white-space: nowrap;
}

.match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.reason-tag {
  padding: 4px 10px;
  background: var(--match-primary-light);
  color: var(--match-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 제품 카드 - 담당 영업대표 */
.product-rep {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 14px;
}
.rep-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--match-primary), var(--match-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.rep-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rep-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--match-text);
}
.rep-badge {
  padding: 2px 6px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
.rep-contact-btn {
  padding: 6px 12px;
  background: var(--match-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.rep-contact-btn:hover { background: #4338ca; }

.product-actions {
  display: flex;
  gap: 10px;
}
.product-actions .btn-detail,
.product-actions .btn-inquiry {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.product-actions .btn-detail {
  background: #f1f5f9;
  color: var(--match-text);
  border: 1px solid var(--match-border);
}
.product-actions .btn-detail:hover { background: #e2e8f0; }
.product-actions .btn-inquiry {
  background: var(--match-primary);
  color: #fff;
  border: none;
}
.product-actions .btn-inquiry:hover { background: #4338ca; }

.view-more-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: #f8fafc;
  border: 1px dashed var(--match-border);
  border-radius: 10px;
  color: var(--match-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.view-more-btn:hover {
  background: var(--match-primary-light);
  border-style: solid;
}

/* 정확 매칭 없을 때 배너 */
.no-exact-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--match-radius);
  margin-bottom: 28px;
}
.no-exact-banner.highlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}
.no-exact-icon { font-size: 2rem; flex-shrink: 0; }
.no-exact-content { flex: 1; }
.no-exact-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--match-text);
  margin-bottom: 6px;
}
.no-exact-content p {
  font-size: 0.88rem;
  color: var(--match-text-sub);
  line-height: 1.5;
}

/* 대분류 카드 - 세부분류 개수 표시 */
.option-sub-count {
  font-size: 0.72rem;
  color: var(--match-text-sub);
  margin-top: 2px;
}

/* 세부분류 현황 칩 (잘 모르겠음 선택 시) */
.subcategory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}
.subcat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--match-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.subcat-chip:hover {
  border-color: var(--match-primary);
  background: var(--match-primary-light);
}
.subcat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--match-text);
}
.subcat-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--match-primary);
  background: var(--match-primary-light);
  padding: 2px 8px;
  border-radius: 100px;
}

/* 프로모션 섹션 스타일 */
.promo-section {
  margin-bottom: 28px;
}
.promo-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.promo-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--match-text);
}
.promo-count {
  font-size: 0.82rem;
  color: var(--match-text-sub);
}
.promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.promo-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--match-radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--match-shadow);
}
.promo-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.promo-type-badge.product { background: #dbeafe; color: #1d4ed8; }
.promo-type-badge.case { background: #d1fae5; color: #065f46; }
.promo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--match-text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.promo-desc {
  font-size: 0.82rem;
  color: var(--match-text-sub);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--match-text-sub);
}
.promo-targets {
  padding: 2px 8px;
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
  font-size: 0.72rem;
}

/* 영업대표 카드 그리드 */
.salesrep-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.salesrep-card {
  background: #fff;
  border: 1px solid var(--match-border);
  border-radius: var(--match-radius);
  padding: 20px;
  transition: all 0.2s;
}
.salesrep-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--match-shadow-lg);
}

.rep-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rep-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.rep-card-info { flex: 1; }
.rep-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--match-text);
  margin-bottom: 2px;
}
.rep-card-cat {
  font-size: 0.82rem;
  color: var(--match-text-sub);
}

.rep-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.rep-card-badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rep-card-badge.verified { background: #dbeafe; color: #1d4ed8; }
.rep-card-badge.procurement { background: #d1fae5; color: #065f46; }

.rep-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--match-text-sub);
}

.rep-promo {
  margin-bottom: 14px;
}
.promo-tag {
  display: inline-block;
  padding: 6px 12px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.rep-card-actions {
  display: flex;
  gap: 10px;
}
.rep-card-actions .btn-profile,
.rep-card-actions .btn-consult {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-profile {
  background: #f1f5f9;
  color: var(--match-text);
  border: 1px solid var(--match-border);
}
.btn-profile:hover { background: #e2e8f0; }
.btn-consult {
  background: #10b981;
  color: #fff;
  border: none;
}
.btn-consult:hover { background: #059669; }

/* 상담 CTA */
.consultation-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: #f8fafc;
  border: 1px solid var(--match-border);
  border-radius: var(--match-radius);
  margin-top: 32px;
}
.consultation-cta.highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border-color: var(--match-primary);
}
.cta-icon { font-size: 2.5rem; flex-shrink: 0; }
.cta-content { flex: 1; }
.cta-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--match-text);
  margin-bottom: 6px;
}
.cta-content p {
  font-size: 0.9rem;
  color: var(--match-text-sub);
  line-height: 1.5;
}
.cta-btn {
  padding: 14px 28px;
  background: var(--match-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s;
}
.cta-btn:hover {
  background: #4338ca;
  transform: translateY(-2px);
}

/* 상담 모달 */
.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.consultation-modal .modal-content {
  position: relative;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--match-text-sub);
  transition: all 0.2s;
}
.modal-close:hover { background: #e2e8f0; }

.modal-header {
  padding: 32px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--match-border);
}
.modal-icon { font-size: 2.5rem; margin-bottom: 12px; }
.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--match-text);
  margin-bottom: 6px;
}
.modal-header p {
  font-size: 0.9rem;
  color: var(--match-text-sub);
}

.modal-body {
  padding: 24px;
}
.request-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.request-summary h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--match-text);
  margin-bottom: 12px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--match-text-sub); font-size: 0.88rem; }
.summary-value { font-weight: 600; color: var(--match-text); font-size: 0.88rem; }

.request-form .form-group {
  margin-bottom: 16px;
}
.request-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--match-text);
  margin-bottom: 8px;
}
.request-form textarea,
.request-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--match-border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.request-form textarea:focus,
.request-form input:focus {
  outline: none;
  border-color: var(--match-primary);
}

.login-prompt {
  text-align: center;
  padding: 20px;
}
.login-prompt p {
  margin-bottom: 16px;
  color: var(--match-text-sub);
}
.btn-login {
  padding: 12px 28px;
  background: var(--match-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--match-border);
}
.btn-cancel {
  flex: 1;
  padding: 14px;
  background: #f1f5f9;
  color: var(--match-text);
  border: 1px solid var(--match-border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-submit {
  flex: 2;
  padding: 14px;
  background: var(--match-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover { background: #4338ca; }

/* 반응형 - 리포트 */
@media (max-width: 768px) {
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stats-card { padding: 16px; }
  .stats-value { font-size: 1.5rem; }
  
  .product-cards { grid-template-columns: 1fr; }
  .salesrep-cards { grid-template-columns: 1fr; }
  
  .consultation-cta {
    flex-direction: column;
    text-align: center;
  }
  .cta-btn { width: 100%; }
  
  .no-exact-banner {
    flex-direction: column;
    text-align: center;
  }
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.result-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-icon { font-size: 1.6rem; }
.result-subtitle { color: var(--match-text-sub); margin-top: 6px; font-size: 0.95rem; }

.result-actions { display: flex; gap: 8px; }
.result-action-btn {
  padding: 10px 18px;
  border: 1px solid var(--match-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--match-text);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.result-action-btn:hover { border-color: var(--match-primary); color: var(--match-primary); }
.result-action-btn.primary {
  background: var(--match-primary);
  color: #fff;
  border-color: var(--match-primary);
}
.result-action-btn.primary:hover { background: #4338ca; }

/* 조건 요약 */
.condition-summary { margin-bottom: 24px; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-chip {
  padding: 6px 14px;
  background: var(--match-primary-light);
  color: var(--match-primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========================================
   프로모션 배너
   ======================================== */
.promo-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--match-radius);
  padding: 20px;
  margin-bottom: 28px;
}
.promo-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.promo-label { font-weight: 700; font-size: 1rem; }
.promo-count { font-size: 0.82rem; color: var(--match-text-sub); }

.promo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

.promo-card {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.15);
}
.promo-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.promo-type-badge.product { background: #dbeafe; color: #2563eb; }
.promo-type-badge.case { background: #fef3c7; color: #d97706; }

.promo-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.promo-desc {
  font-size: 0.8rem;
  color: var(--match-text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.promo-author { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--match-text-sub); }

/* ========================================
   결과 섹션 구분 (v2.0)
   ======================================== */
.result-section { margin-bottom: 32px; }

.result-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}
.result-section-header.exact { border-bottom-color: var(--match-primary); }
.result-section-header.similar { border-bottom-color: #f59e0b; }

.section-badge {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.section-badge.exact {
  background: var(--match-primary-light);
  color: var(--match-primary);
}
.section-badge.similar {
  background: #fef3c7;
  color: #92400e;
}
.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--match-text-sub);
}

/* 정확 매칭 없을 때 안내 배너 */
.no-exact-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--match-radius);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.no-exact-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.no-exact-content {
  flex: 1;
  min-width: 200px;
}
.no-exact-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--match-text);
  margin-bottom: 6px;
}
.no-exact-content p {
  font-size: 0.88rem;
  color: var(--match-text-sub);
  line-height: 1.5;
}
.no-exact-cta {
  padding: 12px 24px;
  background: var(--match-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s;
}
.no-exact-cta:hover {
  background: #4338ca;
  transform: translateY(-2px);
}

/* 유사 추천 카드 스타일 차별화 */
.result-card.similar {
  border-left: 4px solid #f59e0b;
  opacity: 0.92;
}
.result-card.similar:hover { opacity: 1; }

.rank-circle.similar-rank {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

/* 점수 바 색상 분리 */
.score-fill.score-exact {
  background: linear-gradient(90deg, var(--match-primary), var(--match-success));
}
.score-fill.score-similar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.score-text.score-exact { color: var(--match-primary); }
.score-text.score-similar { color: #92400e; }

/* 매칭 이유 색상 분리 */
.match-reason.similar {
  background: #fef3c7;
  color: #92400e;
}

/* ========================================
   결과 카드
   ======================================== */
.result-list { display: flex; flex-direction: column; gap: 16px; }

.result-card {
  background: var(--match-card);
  border: 1px solid var(--match-border);
  border-radius: var(--match-radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.result-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 20px rgba(79,70,229,0.08);
}

/* 랭크별 강조 */
.result-card.gold { border-left: 4px solid var(--match-gold); }
.result-card.silver { border-left: 4px solid var(--match-silver); }
.result-card.bronze { border-left: 4px solid var(--match-bronze); }

/* 랭크 영역 */
.result-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 80px;
}
.rank-circle {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.2rem;
  font-weight: 800;
}
.rank-circle.gold { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.rank-circle.silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.rank-circle.bronze { background: linear-gradient(135deg, #fef3c7, #fed7aa); }

.match-score { text-align: center; width: 100%; }
.score-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--match-primary), var(--match-success));
  border-radius: 2px;
  transition: width 0.8s ease;
}
.score-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--match-primary);
}

/* 결과 본문 */
.result-body { flex: 1; min-width: 0; }

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.result-cat { font-size: 0.82rem; color: var(--match-text-sub); }
.result-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.result-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}
.result-badge.proc { background: #dcfce7; color: #16a34a; }
.result-badge.innovation { background: #fef3c7; color: #d97706; }
.result-badge.excellent { background: #dbeafe; color: #2563eb; }
.result-badge.venture { background: #ede9fe; color: #7c3aed; }

.result-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.result-name:hover { color: var(--match-primary); }

.result-company {
  font-size: 0.88rem;
  color: var(--match-text-sub);
  margin-bottom: 10px;
}

.result-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kw-tag {
  padding: 3px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--match-text-sub);
}

.result-criteria {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.criteria-item { color: var(--match-text-sub); }

.result-refs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ref-label { font-size: 0.8rem; color: var(--match-text-sub); font-weight: 600; }
.ref-item {
  padding: 2px 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #16a34a;
}
.ref-more { font-size: 0.75rem; color: var(--match-text-sub); }

/* AI 매칭 이유 */
.match-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #eef2ff;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--match-primary);
  margin-bottom: 10px;
}
.reason-icon { font-size: 1rem; }

/* 홍보 인라인 */
.result-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s;
}
.result-promo:hover {
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245,158,11,0.15);
}
.promo-badge-inline { font-size: 0.9rem; }
.promo-text-inline { color: #92400e; font-weight: 600; }

/* 결과 푸터 */
.result-footer {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.btn-detail, .btn-inquiry {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}
.btn-detail {
  background: #f1f5f9;
  color: var(--match-text);
}
.btn-detail:hover { background: #e2e8f0; }

.btn-inquiry {
  background: var(--match-primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-inquiry:hover { background: #4338ca; }

/* ========================================
   결과 없음
   ======================================== */
.result-empty {
  text-align: center;
  padding: 80px 24px;
}
.empty-icon { font-size: 4rem; margin-bottom: 20px; }
.result-empty h3 { font-size: 1.3rem; margin-bottom: 10px; }
.result-empty p { color: var(--match-text-sub); margin-bottom: 24px; }
.empty-actions { display: flex; justify-content: center; gap: 12px; }
.btn-retry, .btn-browse {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.btn-retry { background: var(--match-primary); color: #fff; }
.btn-browse { background: #f1f5f9; color: var(--match-text); }

/* ========================================
   하단 CTA
   ======================================== */
.bottom-cta { margin-top: 40px; }
.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  border-radius: var(--match-radius);
  color: #fff;
  flex-wrap: wrap;
}
.cta-content h3 { font-size: 1.15rem; margin-bottom: 6px; }
.cta-content p { opacity: 0.8; font-size: 0.9rem; }
.cta-register-btn {
  padding: 14px 28px;
  background: var(--match-accent);
  color: #1e293b;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s;
}
.cta-register-btn:hover { background: #eab308; transform: translateY(-2px); }

/* ========================================
   토스트
   ======================================== */
.matching-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 28px;
  background: #1e293b;
  color: #fff;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: bottom 0.3s ease;
  z-index: 9999;
}
.matching-toast.show { bottom: 40px; }

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
  .step-title { font-size: 1.6rem; }
  .step-subtitle { font-size: 0.92rem; }
  .step-container { padding: 90px 16px 60px; }
  
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .subcategory-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .subcategory-grid .option-card { padding: 12px 10px; }
  .org-grid { grid-template-columns: repeat(2, 1fr); }
  
  .result-card { flex-direction: column; padding: 18px; }
  .result-rank { flex-direction: row; min-width: auto; }
  .rank-circle { width: 40px; height: 40px; font-size: 1rem; }
  .match-score { text-align: left; width: auto; }
  
  .result-header { flex-direction: column; }
  .result-actions { width: 100%; }
  .result-action-btn { flex: 1; justify-content: center; }
  
  .result-footer { flex-direction: column; }
  .btn-detail, .btn-inquiry { text-align: center; justify-content: center; }
  
  .no-exact-banner { flex-direction: column; text-align: center; }
  .no-exact-cta { width: 100%; justify-content: center; }
  
  .cta-card { flex-direction: column; text-align: center; }
  .cta-register-btn { width: 100%; justify-content: center; }
  
  .subcategory-summary { padding: 12px; gap: 8px; }
  .subcat-chip { padding: 6px 12px; }
  .promo-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .option-card { padding: 14px 10px; }
  .option-icon { font-size: 1.6rem; }
  .option-label { font-size: 0.85rem; }
  
  .step-title { font-size: 1.35rem; }
  .cta-button { padding: 16px 32px; font-size: 1rem; }
  
  .result-criteria { flex-direction: column; gap: 6px; }
}