/* ═══════════════════════════════════
   FITMATCH — components.css  v4
   트레이너 카드 풀 리디자인
   AI 히어로 (스코어 + 스캔 애니메이션)
   스크롤 등장 애니메이션
   팝업 / 플로팅 배너
═══════════════════════════════════ */

/* ════════════════════════════
   스크롤 등장 애니메이션
════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════
   트레이너 카드 (풀 리디자인)
════════════════════════════ */
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.t-card {
  background: var(--white);
  border: 1px solid var(--gray1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  cursor: pointer;
}
.t-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: var(--black);
}

/* 이미지 영역 */
.t-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.t-card-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.t-card:hover .t-card-img-inner {
  transform: scale(1.07);
}

/* 뱃지 (인기·추천·마감임박 등) */
.t-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

/* 찜 버튼 */
.t-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray2);
  transition:
    transform 0.18s,
    background 0.15s,
    color 0.15s;
  z-index: 2;
}
.t-fav:hover {
  transform: scale(1.2);
  background: var(--white);
}
.t-fav.liked {
  color: var(--coral);
}

/* AI 매칭 점수 오버레이 (이미지 하단) */
.t-match-score {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px 12px;
  z-index: 2;
}
.t-match-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
  align-self: center;
}
.t-match-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* 카드 본문 */
.t-card-body {
  padding: 1rem;
}

.t-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.t-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.t-spec {
  font-size: 12px;
  color: var(--gray3);
}
.t-card-meta {
  text-align: right;
  flex-shrink: 0;
}
.t-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
}
.t-price span {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray3);
}

/* 잔여 자리 */
.t-slots-warn {
  font-size: 11px;
  font-weight: 700;
  color: var(--coral);
  background: var(--coral-lt);
  padding: 2px 8px;
  border-radius: 10px;
}
.t-slots-ok {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray3);
}

/* 별점 행 */
.t-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.t-stars {
  color: #ef9f27;
  font-size: 11px;
  letter-spacing: 1px;
}
.t-rating-num {
  font-size: 13px;
  font-weight: 700;
}
.t-rev {
  font-size: 11px;
  color: var(--gray2);
}
.t-exp-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: var(--off);
  color: var(--gray3);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 태그 */
.t-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.t-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--off);
  color: var(--gray3);
}

/* ★ AI 추천 이유 박스 */
.t-reason-box {
  background: linear-gradient(135deg, #e6f1fb, #eaf3de);
  border: 1px solid #b5d4f4;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.t-reason-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #185fa5;
  display: block;
  margin-bottom: 4px;
}
.t-reason-text {
  font-size: 12px;
  color: #0c447c;
  line-height: 1.6;
  margin: 0;
}

/* 대표 후기 */
.t-review-quote {
  background: var(--off);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
}
.t-quote-mark {
  font-size: 20px;
  color: var(--coral);
  line-height: 1;
  font-weight: 900;
  flex-shrink: 0;
}
.t-quote-text {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.6;
  flex: 1;
  font-style: italic;
}
.t-quote-author {
  font-size: 11px;
  color: var(--gray3);
  width: 100%;
  padding-left: 20px;
}

/* 강점 태그 */
.t-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.t-strength-tag {
  font-size: 11px;
  font-weight: 600;
  color: #0f6e56;
  background: #e1f5ee;
  padding: 3px 9px;
  border-radius: 10px;
}

/* 예약 버튼 */
.t-book-btn {
  width: 100%;
  padding: 11px;
  border-radius: 40px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.18s,
    transform 0.15s;
}
.t-book-btn:hover {
  background: #333;
  transform: translateY(-1px);
}
.t-book-btn:active {
  transform: translateY(0);
}

/* 호버 오버레이 (예상 결과) */
.t-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  border-radius: var(--radius-lg);
}
.t-card:hover .t-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}

.t-hover-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}
.t-hover-result {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.t-hover-btn {
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Noto Sans KR", sans-serif;
  transition:
    background 0.15s,
    transform 0.15s;
}
.t-hover-btn:hover {
  background: var(--coral-dk);
  transform: translateY(-2px);
}

/* FILTER */
.filter-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray1);
  margin-bottom: 2rem;
}
.f-pill {
  padding: 9px 20px;
  border-radius: 40px;
  border: 1.5px solid var(--gray1);
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  color: var(--gray3);
  transition: all 0.16s;
}
.f-pill:hover {
  border-color: var(--black);
  color: var(--black);
}
.f-pill.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ════════════════════════════
   AI PAGE 히어로 (70vh + 스캔)
════════════════════════════ */
.ai-hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.ai-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1549060279-7e168fcee0c2?w=1400&q=85");
  background-size: cover;
  background-position: center 30%;
  transition: opacity 0.4s;
}
.ai-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(17, 17, 17, 0.15) 100%
  );
}

/* AI 비주얼 오버레이 (매칭 스코어 카드들) */
.ai-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 3rem;
  pointer-events: none;
}
.ai-scan-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 220px;
}
.ai-scan-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.5s,
    transform 0.5s,
    border-color 0.3s;
}
.ai-scan-card.scanned {
  opacity: 1;
  transform: translateX(0);
  border-color: rgba(255, 56, 92, 0.5);
}
.ai-scan-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.ai-scan-info {
  flex: 1;
  min-width: 0;
}
.ai-scan-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}
.ai-scan-spec {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.ai-scan-score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  color: var(--coral);
  line-height: 1;
  flex-shrink: 0;
}
.ai-scan-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}
.ai-match-bar-fill {
  height: 100%;
  background: var(--coral);
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* "AI ANALYZING" 레이블 */
.ai-analyzing-label {
  position: absolute;
  top: 1.5rem;
  right: 3rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 56, 92, 0.4);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
}
.ai-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* 히어로 텍스트 */
.ai-hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--px) 3rem;
}
.ai-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--coral);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1.1rem;
}
.ai-hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(58px, 9vw, 100px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.ai-hero-title em {
  color: var(--coral);
  font-style: normal;
}
.ai-hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.ai-hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ai-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-trust-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  color: var(--white);
  letter-spacing: 0.02em;
}
.ai-trust-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.ai-hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.ai-hero-cta-primary {
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 40px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Noto Sans KR", sans-serif;
  transition: all 0.18s;
  box-shadow: 0 6px 20px rgba(255, 56, 92, 0.4);
}
.ai-hero-cta-primary:hover {
  background: var(--coral-dk);
  transform: translateY(-2px);
}
.ai-hero-cta-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 40px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Noto Sans KR", sans-serif;
  transition: background 0.18s;
  backdrop-filter: blur(4px);
}
.ai-hero-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.ai-scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.08em;
  animation: bounceY 2s ease-in-out infinite;
}
.ai-scroll-hint-arrow {
  font-size: 18px;
}
@keyframes bounceY {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

/* AI 폼 섹션 */
.ai-form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--px) 4rem;
}
.ai-form-section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--black);
  margin-bottom: 0.25rem;
}
.ai-form-section-sub {
  font-size: 14px;
  color: var(--gray3);
  margin-bottom: 2rem;
}
.form-block {
  margin-bottom: 2rem;
}
.f-heading {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.f-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray1);
}
.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 9px 18px;
  border-radius: 40px;
  border: 1.5px solid var(--gray1);
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  color: var(--gray3);
  transition: all 0.16s;
}
.chip:hover {
  border-color: var(--black);
  color: var(--black);
}
.chip.on {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.budget-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--off);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.budget-display input[type="range"] {
  flex: 1;
  accent-color: var(--coral);
  height: 4px;
}
.budget-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  color: var(--coral);
  min-width: 44px;
  text-align: center;
}
.budget-unit {
  font-size: 12px;
  color: var(--gray3);
  font-weight: 600;
}
.ai-submit {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.18s;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ai-submit:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.ai-result-box {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--black);
  overflow: hidden;
  display: none;
  animation: fadeUp 0.3s ease;
}
.ai-result-box.show {
  display: block;
}
.ai-result-head {
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ai-result-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}
.ai-result-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px 20px;
}
.ai-r-btn {
  padding: 10px 20px;
  border-radius: 40px;
  background: var(--coral);
  color: var(--white);
  border: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
}
.ai-r-btn:hover {
  background: var(--coral-dk);
}

/* ════════════════════════════
   BOOKING SHEET
════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  z-index: 800;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.overlay.open {
  display: flex;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sheet {
  background: var(--white);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  animation: sheetUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes sheetUp {
  from {
    transform: translateY(60px);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--gray1);
  border-radius: 2px;
  margin: 14px auto 0;
}
.sheet-head {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--gray1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.sheet-title {
  font-size: 18px;
  font-weight: 700;
}
.sheet-subtitle {
  font-size: 13px;
  color: var(--gray3);
  margin-top: 3px;
}
.sheet-close {
  background: var(--off);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--gray3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sheet-close:hover {
  background: var(--gray1);
}
.sheet-body {
  padding: 1.5rem;
}
.sheet-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray2);
  transition: color 0.2s;
}
.step-item.active {
  color: var(--black);
}
.step-item.done {
  color: var(--green);
}
.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray1);
  color: var(--gray3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  transition:
    background 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
.step-item.active .step-dot {
  background: var(--black);
  color: var(--white);
}
.step-item.done .step-dot {
  background: var(--green);
  color: var(--white);
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--gray1);
  margin: 0 6px;
}
.step-panel {
  display: none;
}
.step-panel.active {
  display: block;
  animation: fadeUp 0.22s ease;
}
.autofill-banner {
  display: none;
  align-items: center;
  gap: 10px;
  background: #eaf3de;
  border: 1px solid #c0dd97;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 1.25rem;
  font-size: 13px;
  color: #27500a;
}
.autofill-banner-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.autofill-banner-text {
  flex: 1;
  font-weight: 500;
}
.autofill-clear {
  background: none;
  border: none;
  font-size: 12px;
  color: #3b6d11;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}
.sh-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray3);
  margin-bottom: 8px;
  display: block;
}
.sh-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray1);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 1rem;
}
.sh-input:focus {
  border-color: var(--black);
}
.sh-input.error {
  border-color: var(--coral);
}
.sh-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sh-error {
  font-size: 11px;
  color: var(--coral);
  margin-top: -8px;
  margin-bottom: 10px;
  display: none;
}
.sh-error.show {
  display: block;
}
.save-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 13px;
  color: var(--gray3);
  cursor: pointer;
}
.save-info-row input[type="checkbox"] {
  accent-color: var(--black);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.sh-section-divider {
  border: none;
  border-top: 1px dashed var(--gray1);
  margin: 1.25rem 0;
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1.5rem;
}
.t-slot {
  padding: 10px 6px;
  text-align: center;
  border: 1.5px solid var(--gray1);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink);
  background: var(--white);
}
.t-slot:hover:not(.na) {
  border-color: var(--black);
  background: var(--off);
}
.t-slot.picked {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.t-slot.na {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--off);
}
.sheet-nav {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}
.sheet-btn-back {
  padding: 13px 24px;
  border-radius: var(--radius);
  background: var(--off);
  color: var(--gray3);
  border: 1.5px solid var(--gray1);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
}
.sheet-btn-back:hover {
  background: var(--gray1);
  color: var(--black);
}
.sheet-btn-next {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.18s;
}
.sheet-btn-next:hover {
  background: #333;
}
.confirm-summary {
  background: var(--off);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.cs-trainer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray1);
}
.cs-trainer-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.cs-trainer-name {
  font-size: 15px;
  font-weight: 700;
}
.cs-trainer-spec {
  font-size: 12px;
  color: var(--gray3);
  margin-top: 2px;
}
.cs-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.cs-label {
  color: var(--gray3);
}
.cs-val {
  font-weight: 700;
}
.cs-free {
  color: var(--green);
  font-weight: 700;
}
.cs-divider {
  border: none;
  border-top: 1px solid var(--gray1);
  margin: 8px 0;
}
.cs-total {
  font-size: 16px;
  font-weight: 800;
}
.cs-user {
  background: var(--white);
  border: 1.5px solid var(--gray1);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 1rem;
}
.cs-user-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.cs-user-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  padding: 3px 0;
}
.cs-user-key {
  color: var(--gray3);
  min-width: 52px;
}
.cs-user-v {
  font-weight: 600;
  word-break: break-all;
}
.confirm-btn {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius);
  background: var(--coral);
  color: var(--white);
  border: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.18s;
  box-shadow: 0 6px 16px rgba(255, 56, 92, 0.32);
}
.confirm-btn:hover {
  background: var(--coral-dk);
  transform: translateY(-1px);
}

/* ════════════════════════════
   예약 완료 화면
════════════════════════════ */
.booking-complete {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--white);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--px);
  animation: fadeIn 0.25s ease;
}
.booking-complete.open {
  display: flex;
}
.bc-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eaf3de;
  border: 3px solid #97c459;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 1.5rem;
}
.bc-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 42px;
  letter-spacing: 0.02em;
  color: var(--black);
  text-align: center;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.bc-sub {
  font-size: 15px;
  color: var(--gray3);
  text-align: center;
  margin-bottom: 2rem;
}
.bc-card {
  width: 100%;
  max-width: 400px;
  background: var(--off);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.bc-id-box {
  background: var(--black);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bc-id-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 4px;
}
.bc-id-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  color: var(--white);
  letter-spacing: 0.08em;
}
.bc-copy-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.bc-copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.bc-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
}
.bc-row-label {
  color: var(--gray3);
}
.bc-row-val {
  font-weight: 700;
}
.bc-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}
.bc-btn-home {
  flex: 1;
  padding: 14px;
  border-radius: 40px;
  background: var(--off);
  color: var(--black);
  border: 1.5px solid var(--gray1);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
}
.bc-btn-home:hover {
  background: var(--gray1);
}
.bc-btn-mypage {
  flex: 1;
  padding: 14px;
  border-radius: 40px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
}
.bc-btn-mypage:hover {
  background: #333;
}

/* ════════════════════════════
   MY PAGE
════════════════════════════ */
.mypage-hero {
  position: relative;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem var(--px) 2rem;
}
.mypage-hero-img {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1521805103424-d8f8430e8933?w=1200&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.mypage-hero h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 54px;
  color: var(--white);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.booking-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--px);
}
.b-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray1);
}
.b-item:last-child {
  border-bottom: none;
}
.b-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.b-info {
  flex: 1;
  min-width: 0;
}
.b-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.b-time {
  font-size: 13px;
  color: var(--gray3);
}
.b-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-top: 3px;
}
.b-user {
  font-size: 11px;
  color: var(--gray3);
  margin-top: 2px;
}
.b-booking-id {
  font-size: 11px;
  color: var(--gray2);
  margin-top: 1px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
}
.b-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.b-status {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}
.b-new {
  background: var(--coral-lt);
  color: var(--coral);
}
.b-upcoming {
  background: #f0faf5;
  color: var(--green);
}
.b-done {
  background: var(--off);
  color: var(--gray3);
}
.b-cancel-btn {
  background: none;
  border: 1px solid var(--gray1);
  color: var(--gray3);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.b-cancel-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-lt);
}
.empty-wrap {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 400px;
  margin: 0 auto;
}
.empty-big {
  font-family: "Bebas Neue", sans-serif;
  font-size: 58px;
  color: var(--gray1);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}
.empty-sub {
  font-size: 14px;
  color: var(--gray3);
  margin-bottom: 1.5rem;
}
.empty-cta {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.18s;
}
.empty-cta:hover {
  background: #333;
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem var(--px) 2rem;
  padding-bottom: 100px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 30px;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  display: block;
}
.footer-logo span {
  color: var(--coral);
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.soc-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.soc-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.soc-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.f-col-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1.25rem;
}
.f-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s;
}
.f-links a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.f-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
}
.f-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.f-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* ════════════════════════════
   팝업
════════════════════════════ */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}
.promo-overlay.hidden {
  display: none;
}
.promo-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  position: relative;
  animation: popIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.promo-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.promo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.promo-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
}
.promo-img-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1.25rem 1.5rem;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.promo-img-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.promo-img-title em {
  color: var(--coral);
  font-style: normal;
}
.promo-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.promo-desc {
  font-size: 14px;
  color: var(--gray3);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.promo-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 1rem;
}
.promo-timer-unit {
  background: var(--coral);
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}
.promo-timer-sep {
  color: var(--coral);
  font-size: 16px;
  font-weight: 800;
}
.promo-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--off);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.promo-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.promo-benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.promo-cta {
  width: 100%;
  padding: 14px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Noto Sans KR", sans-serif;
  transition: all 0.18s;
  box-shadow: 0 6px 18px rgba(255, 56, 92, 0.35);
  margin-bottom: 0.75rem;
}
.promo-cta:hover {
  background: var(--coral-dk);
  transform: translateY(-1px);
}
.promo-skip {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--gray2);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 4px;
  transition: color 0.15s;
}
.promo-skip:hover {
  color: var(--gray3);
}
.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: none;
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.promo-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* 플로팅 배너 */
.float-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: calc(100% - 3rem);
  max-width: 560px;
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUpBanner 0.5s cubic-bezier(0.32, 0.72, 0, 1) 2.5s both;
}
@keyframes slideUpBanner {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.float-banner.hidden {
  display: none;
}
.float-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.float-banner-text {
  flex: 1;
  min-width: 0;
}
.float-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.float-banner-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.float-banner-cta {
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Noto Sans KR", sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.float-banner-cta:hover {
  background: var(--coral-dk);
}
.float-banner-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.float-banner-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ════════════════════════════
   RESPONSIVE — 768px
════════════════════════════ */
@media (max-width: 768px) {
  .trainer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .t-hover-overlay {
    display: none;
  }
  .filter-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .filter-strip::-webkit-scrollbar {
    display: none;
  }
  .f-pill {
    flex-shrink: 0;
  }
  .ai-hero {
    height: 60vh;
    min-height: 440px;
  }
  .ai-hero-title {
    font-size: clamp(48px, 9vw, 70px);
  }
  .ai-visual-overlay {
    display: none;
  }
  .ai-analyzing-label {
    display: none;
  }
  .mypage-hero h2 {
    font-size: 42px;
  }
  .b-thumb {
    width: 60px;
    height: 60px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .float-banner {
    bottom: 16px;
    width: calc(100% - 2rem);
  }
  .float-banner-sub {
    display: none;
  }
  .promo-img-wrap {
    height: 170px;
  }
}
@media (max-width: 390px) {
  .trainer-grid {
    grid-template-columns: 1fr;
  }
  .ai-hero {
    height: 75vh;
    min-height: 480px;
  }
  .ai-hero-title {
    font-size: 48px;
  }
  .ai-hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sh-row {
    grid-template-columns: 1fr;
  }
  .time-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .t-slot {
    font-size: 11px;
    padding: 8px 4px;
  }
  .step-item span:not(.step-dot) {
    display: none;
  }
  .mypage-hero h2 {
    font-size: 36px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .bc-title {
    font-size: 34px;
  }
}

/* ════════════════════════════════
   AI 라이브 개인화 배너
════════════════════════════════ */
.ai-live-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off);
  border: 1.5px solid var(--gray1);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 1.75rem;
  transition:
    background 0.3s,
    border-color 0.3s;
  min-height: 48px;
}
.ai-live-banner.active {
  background: linear-gradient(135deg, #e6f1fb, #eaf3de);
  border-color: #b5d4f4;
}
.ai-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray2);
  flex-shrink: 0;
  transition: background 0.3s;
}
.ai-live-banner.active .ai-live-dot {
  background: var(--coral);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
.ai-live-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray3);
  line-height: 1.5;
  transition: color 0.3s;
}
.ai-live-banner.active .ai-live-text {
  color: #0c447c;
}

/* ════════════════════════════════
   스크롤형 프로모 섹션 (팝업 대체)
════════════════════════════════ */
.promo-scroll-section {
  background: var(--black);
  margin: 0;
  overflow: hidden;
}
.promo-scroll-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* 왼쪽 텍스트 */
.promo-scroll-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.promo-scroll-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.promo-scroll-title em {
  color: var(--coral);
  font-style: normal;
}
.promo-scroll-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* 혜택 리스트 */
.promo-scroll-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.75rem;
}
.promo-scroll-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.promo-perk-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* 타이머 */
.promo-scroll-timer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.promo-scroll-timer-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  white-space: nowrap;
}
.promo-scroll-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pst-unit {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 48px;
  text-align: center;
  line-height: 1;
}
.pst-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  font-weight: 800;
}

/* CTA */
.promo-scroll-cta {
  display: inline-flex;
  align-items: center;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 40px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Noto Sans KR", sans-serif;
  transition: all 0.18s;
  box-shadow: 0 6px 20px rgba(255, 56, 92, 0.4);
}
.promo-scroll-cta:hover {
  background: var(--coral-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 56, 92, 0.45);
}

/* 오른쪽 이미지 */
.promo-scroll-right {
  position: relative;
}
.promo-scroll-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}
.promo-scroll-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.promo-scroll-img-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--coral);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 56, 92, 0.5);
}
.psib-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 30px;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}
.psib-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

/* 반응형 */
@media (max-width: 768px) {
  .promo-scroll-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem var(--px);
  }
  .promo-scroll-right {
    order: -1;
  }
  .promo-scroll-img-wrap {
    aspect-ratio: 16/9;
  }
  .promo-scroll-title {
    font-size: 48px;
  }
}
@media (max-width: 390px) {
  .promo-scroll-title {
    font-size: 40px;
  }
  .pst-unit {
    font-size: 22px;
    min-width: 38px;
    padding: 3px 8px;
  }
  .promo-scroll-cta {
    width: 100%;
    justify-content: center;
  }
  .ai-live-text {
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════
   AI 스크롤 위저드 (v5 개선)
═══════════════════════════════════════ */

/* 위저드 전체 래퍼 */
.ai-wizard-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem var(--px) 5rem;
}

/* ── 진행 표시바 ── */
.ai-wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  padding: 1.5rem 2rem;
  background: var(--off);
  border-radius: var(--radius-lg);
  position: sticky;
  top: 68px;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.ai-wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.ai-wiz-step.active,
.ai-wiz-step.done {
  opacity: 1;
}
.ai-wiz-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray1);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--gray2);
  transition: all 0.3s;
}
.ai-wiz-step.active .ai-wiz-dot {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.ai-wiz-step.done .ai-wiz-dot {
  background: #16a34a;
  border-color: #16a34a;
  color: var(--white);
}
.ai-wiz-step.done .ai-wiz-dot span::before {
  content: "✓";
}
.ai-wiz-step.done .ai-wiz-dot span {
  display: none;
}
.ai-wiz-step.done .ai-wiz-dot::after {
  content: "✓";
  font-size: 14px;
}
.ai-wiz-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray3);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.ai-wiz-step.active .ai-wiz-label {
  color: var(--black);
}
.ai-wiz-line {
  flex: 1;
  height: 2px;
  background: var(--gray1);
  margin: 0 12px;
  margin-bottom: 22px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.ai-wiz-line.done {
  background: #16a34a;
}
.ai-wiz-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--coral);
  transition: width 0.4s ease;
}
.ai-wiz-line.filling::after {
  width: 100%;
}

/* ── 패널 ── */
.ai-wiz-panel {
  display: none;
  animation: fadeUp 0.35s ease;
}
.ai-wiz-panel.active {
  display: block;
}

/* ── 패널 헤더 ── */
.ai-wiz-panel-header {
  margin-bottom: 2.5rem;
}
.ai-wiz-step-tag {
  display: inline-flex;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.ai-wiz-step-tag--coral {
  background: var(--coral);
}
.ai-wiz-panel-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.ai-wiz-panel-desc {
  font-size: 14px;
  color: var(--gray3);
  line-height: 1.6;
}

/* ── 칩 (향상) ── */
.chip-lg {
  position: relative;
  padding: 10px 20px;
  font-size: 14px;
}

/* ── 목표 인사이트 ── */
.goal-insight {
  margin-top: 1rem;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff3f5, #fff8e1);
  border: 1px solid rgba(255, 56, 92, 0.2);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  display: none;
  animation: fadeUp 0.2s ease;
}
.goal-insight.show {
  display: block;
}
.goal-insight strong {
  color: var(--coral);
}

/* ── 수준 카드 ── */
.level-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.level-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray1);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
}
.level-card:hover {
  border-color: var(--black);
  background: var(--off);
}
.level-card.on {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.level-card-icon {
  font-size: 20px;
}
.level-card-name {
  font-size: 13px;
  font-weight: 700;
}
.level-card-desc {
  font-size: 11px;
  color: var(--gray3);
  line-height: 1.4;
}
.level-card.on .level-card-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* ── AI 인사이트 박스 ── */
.ai-insight-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0f7ff, #f0fff4);
  border: 1.5px solid #b5d4f4;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  transition: all 0.3s;
}
.ai-insight-box.hot {
  background: linear-gradient(135deg, #fff3f5, #fff8e1);
  border-color: rgba(255, 56, 92, 0.3);
}
.ai-insight-icon {
  font-size: 16px;
  color: #1565c0;
  flex-shrink: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
}
.ai-insight-content {
  flex: 1;
}
.ai-insight-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.ai-insight-sub {
  font-size: 12px;
  color: var(--gray3);
}
.ai-insight-badge {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  color: #1565c0;
  background: rgba(21, 101, 192, 0.08);
  padding: 4px 12px;
  border-radius: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ai-insight-box.hot .ai-insight-badge {
  color: var(--coral);
  background: rgba(255, 56, 92, 0.08);
}

/* ── 위저드 버튼 ── */
.ai-wiz-next {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.ai-wiz-next:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.ai-wiz-next:disabled {
  background: var(--gray1);
  color: var(--gray2);
  cursor: not-allowed;
}
.ai-wiz-back {
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray1);
  background: transparent;
  color: var(--gray3);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.ai-wiz-back:hover {
  border-color: var(--black);
  color: var(--black);
}
.ai-wiz-btn-row {
  display: flex;
  gap: 12px;
}
.ai-wiz-btn-row .flex-1 {
  flex: 1;
}
.ai-restart-btn {
  margin-top: 1.5rem;
}

/* ── 예산 v2 ── */
.budget-display-v2 {
  background: var(--off);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
}
.budget-track-wrap {
  position: relative;
  margin-bottom: 10px;
}
.budget-track-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  position: relative;
  z-index: 2;
}
.budget-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.budget-value-big {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.budget-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 44px;
  color: var(--coral);
  line-height: 1;
}
.budget-unit {
  font-size: 14px;
  color: var(--gray3);
  font-weight: 600;
}
.budget-range-labels {
  display: flex;
  gap: 0;
  font-size: 11px;
  color: var(--gray2);
  justify-content: space-between;
  width: 120px;
}
.budget-insight {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255, 56, 92, 0.06);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--gray3);
}
.bi-icon {
  font-size: 14px;
}

/* ── 성별 카드 ── */
.gender-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gender-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1.5px solid var(--gray1);
  border-radius: 40px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.18s;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray3);
}
.gender-card:hover {
  border-color: var(--black);
  color: var(--black);
}
.gender-card.on {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.gender-card-icon {
  font-size: 16px;
}

/* ── 선택 요약 ── */
.selection-summary {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 1.5rem;
}
.ss-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.ss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.ss-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ss-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ss-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.ss-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ss-match-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.ss-match-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  color: var(--coral);
}

/* ── AI 분석 로더 ── */
.ai-loader {
  margin-bottom: 2rem;
}
.ai-loader-bar {
  height: 6px;
  background: var(--gray1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.ai-loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), #ff8c42);
  border-radius: 3px;
  width: 0;
  transition: width 0.4s ease;
}
.ai-loader-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.als {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--gray1);
  color: var(--gray2);
  transition: all 0.3s;
}
.als.active {
  background: var(--black);
  color: var(--white);
}
.als.done {
  background: #dcfce7;
  color: #16a34a;
}

/* f-required */
.f-required {
  color: var(--coral);
  font-size: 12px;
}

/* 반응형 */
@media (max-width: 600px) {
  .level-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ai-wizard-progress {
    padding: 1rem;
    gap: 0;
  }
  .ai-wiz-label {
    font-size: 10px;
  }
  .ss-grid {
    grid-template-columns: 1fr 1fr;
  }
  .budget-num {
    font-size: 36px;
  }
}

/* ═══════════════════════════════════════
   ① AI 분석 로딩 화면 (DRAMATIC VERSION)
═══════════════════════════════════════ */
.ai-loading-screen {
  display: none;
  position: relative;
  padding: 2rem 0;
}
.ai-loading-screen.active {
  display: block;
}

/* 메인 비주얼: 브레인 스캔 */
.ai-brain-visual {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
}
.ai-brain-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: brainSpin 2s linear infinite;
}
.ai-brain-ring:nth-child(1) {
  border-top-color: var(--coral);
  border-right-color: var(--coral);
  animation-duration: 1.5s;
}
.ai-brain-ring:nth-child(2) {
  inset: 16px;
  border-bottom-color: var(--black);
  border-left-color: var(--black);
  animation-duration: 2s;
  animation-direction: reverse;
}
.ai-brain-ring:nth-child(3) {
  inset: 32px;
  border-top-color: #666;
  border-right-color: #666;
  animation-duration: 3s;
}
.ai-brain-center {
  position: absolute;
  inset: 48px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.ai-brain-pct {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ai-brain-label {
  font-size: 9px;
  color: var(--coral);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
@keyframes brainSpin {
  to {
    transform: rotate(360deg);
  }
}

/* 스캔 라인 */
.ai-scan-line-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.ai-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  top: 0;
  animation: scanMove 1.2s ease-in-out infinite;
  opacity: 0.8;
}
@keyframes scanMove {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* 분석 단계 리스트 (NEW: 타임라인 스타일) */
.ai-analysis-stages {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ai-stage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  opacity: 0.35;
  position: relative;
}
.ai-stage-item::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 100%;
  width: 2px;
  height: 100%;
  background: var(--stroke);
}
.ai-stage-item:last-child::after {
  display: none;
}
.ai-stage-item.stage-active {
  opacity: 1;
  background: var(--off);
}
.ai-stage-item.stage-done {
  opacity: 1;
}
.ai-stage-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 1px;
  transition: all 0.3s;
  background: var(--white);
}
.ai-stage-item.stage-active .ai-stage-dot {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
  animation: pulseDot 0.8s ease infinite alternate;
}
@keyframes pulseDot {
  from {
    box-shadow: 0 0 0 0 rgba(255, 79, 79, 0.4);
  }
  to {
    box-shadow: 0 0 0 6px rgba(255, 79, 79, 0);
  }
}
.ai-stage-item.stage-done .ai-stage-dot {
  border-color: #16a34a;
  background: #16a34a;
  color: white;
}
.ai-stage-item.stage-done .ai-stage-dot::after {
  content: "✓";
  font-size: 11px;
}
.ai-stage-item.stage-active .ai-stage-dot::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
.ai-stage-num {
  display: none;
}
.ai-stage-text {
  flex: 1;
}
.ai-stage-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.ai-stage-desc {
  font-size: 12px;
  color: var(--gray3);
  margin-top: 2px;
  line-height: 1.4;
}
.ai-stage-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--black);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.ai-stage-item.stage-done .ai-stage-badge {
  opacity: 1;
}
.ai-stage-item.stage-active .ai-stage-badge {
  opacity: 0;
}

/* 실시간 로그 터미널 */
.ai-terminal {
  background: #0d0d0d;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 1.5rem;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #4ade80;
  line-height: 1.8;
  min-height: 80px;
  max-height: 80px;
  overflow: hidden;
  position: relative;
}
.ai-terminal-header {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #222;
}
.ai-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ai-terminal-dot:nth-child(1) {
  background: #ff5f57;
}
.ai-terminal-dot:nth-child(2) {
  background: #febc2e;
}
.ai-terminal-dot:nth-child(3) {
  background: #28c840;
}

.ai-log-line {
  animation: logFadeIn 0.3s ease;
}
.ai-log-line .log-time {
  color: #666;
  margin-right: 8px;
}
.ai-log-line .log-ok {
  color: #4ade80;
}
.ai-log-line .log-loading {
  color: #fbbf24;
}
@keyframes logFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ai-terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 12px;
  background: #4ade80;
  animation: blink 0.8s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ═══════════════════════════════════════
   ② 레벨/보상 시스템
═══════════════════════════════════════ */
.level-page-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem var(--px) 4rem;
}

/* 유저 프로필 카드 */
.user-profile-card {
  background: var(--black);
  color: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.user-profile-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.15;
}
.user-profile-card::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.08;
}
.upc-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.upc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.upc-info {
  flex: 1;
}
.upc-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.upc-since {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}
.upc-level-badge {
  background: var(--coral);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

/* XP 진행 바 */
.xp-bar-wrap {
  margin-bottom: 0.5rem;
}
.xp-bar-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.xp-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.xp-val {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--coral);
}
.xp-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), #ff8c00);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}
.xp-next-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 5px;
  text-align: right;
}

/* 스탯 그리드 */
.upc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.upc-stat {
  text-align: center;
}
.upc-stat-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.upc-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 레벨 로드맵 */
.level-roadmap-card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.lrc-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.level-road {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.level-road-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.level-road-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--stroke);
}
.level-road-item:first-child::before {
  top: 50%;
}
.level-road-item:last-child::before {
  bottom: 50%;
}
.level-road-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.level-road-item.lri-done .level-road-dot {
  background: var(--black);
  border-color: var(--black);
  color: white;
}
.level-road-item.lri-current .level-road-dot {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
  box-shadow: 0 0 0 5px rgba(255, 79, 79, 0.15);
}
.level-road-info {
  flex: 1;
}
.level-road-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.level-road-item.lri-locked .level-road-name {
  color: var(--gray3);
}
.level-road-reward {
  font-size: 11px;
  color: var(--gray3);
  margin-top: 2px;
}
.level-road-item.lri-current .level-road-reward {
  color: var(--coral);
  font-weight: 600;
}
.level-road-xp {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray3);
  white-space: nowrap;
}
.level-road-item.lri-done .level-road-xp {
  color: #16a34a;
}
.level-road-item.lri-current .level-road-xp {
  color: var(--coral);
}

/* 미션 카드 */
.missions-card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.mc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.mc-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mc-reset {
  font-size: 11px;
  color: var(--gray3);
}
.mission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--off);
  margin-bottom: 8px;
  transition: all 0.3s;
  cursor: pointer;
}
.mission-item:last-child {
  margin-bottom: 0;
}
.mission-item:hover {
  background: #eee;
}
.mission-item.mission-done {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.mission-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--stroke);
}
.mission-item.mission-done .mission-icon {
  background: #dcfce7;
  border-color: #bbf7d0;
}
.mission-info {
  flex: 1;
}
.mission-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.mission-item.mission-done .mission-title {
  text-decoration: line-through;
  color: var(--gray3);
}
.mission-progress-bar {
  height: 4px;
  background: var(--stroke);
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}
.mission-progress-fill {
  height: 100%;
  background: var(--coral);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.mission-item.mission-done .mission-progress-fill {
  background: #16a34a;
}
.mission-xp {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--coral);
  white-space: nowrap;
}
.mission-item.mission-done .mission-xp {
  color: #16a34a;
}

/* 뱃지 섹션 */
.badges-card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 1rem;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 12px;
  background: var(--off);
  text-align: center;
  transition: transform 0.2s;
  cursor: default;
}
.badge-item:hover {
  transform: translateY(-2px);
}
.badge-item.badge-locked {
  opacity: 0.4;
  filter: grayscale(1);
}
.badge-emoji {
  font-size: 26px;
  line-height: 1;
}
.badge-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.badge-item.badge-locked .badge-name {
  color: var(--gray3);
}

/* XP 획득 알림 토스트 */
.xp-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.xp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.xp-toast-xp {
  color: var(--coral);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
}

/* ═══════════════════════════════════════
   ③ AI 챗봇
═══════════════════════════════════════ */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  animation: fabPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}
@keyframes fabPop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}
.chatbot-fab.open {
  background: var(--coral);
}
.chatbot-notif {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--coral);
  border-radius: 50%;
  border: 2px solid var(--white);
  font-size: 9px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  animation: notifPulse 2s ease infinite;
}
@keyframes notifPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* 챗봇 패널 */
.chatbot-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.2);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--black);
  transform: scale(0.8) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chatbot-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background: var(--black);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.chatbot-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chatbot-header-info {
  flex: 1;
}
.chatbot-header-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.chatbot-header-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}
.chatbot-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: onlinePulse 2s ease infinite;
}
@keyframes onlinePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.chatbot-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.chatbot-close-btn:hover {
  color: white;
}

/* 메시지 영역 */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--stroke);
  border-radius: 2px;
}

.chat-msg {
  display: flex;
  gap: 8px;
  animation: msgSlide 0.3s ease;
}
@keyframes msgSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.chat-msg.user {
  flex-direction: row-reverse;
}
.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  align-self: flex-end;
}
.chat-msg.user .chat-msg-avatar {
  background: var(--coral);
}
.chat-bubble {
  max-width: 75%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--off);
  border-bottom-left-radius: 4px;
  word-break: break-word;
}
.chat-msg.user .chat-bubble {
  background: var(--black);
  color: var(--white);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}

/* 타이핑 인디케이터 */
.chat-typing {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-typing-bubble {
  background: var(--off);
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--gray3);
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

/* 퀵 리플라이 */
.chatbot-quick-replies {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid var(--stroke);
}
.chatbot-quick-replies::-webkit-scrollbar {
  display: none;
}
.quick-reply-btn {
  background: var(--off);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  color: var(--ink);
}
.quick-reply-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* 입력창 */
.chatbot-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--stroke);
  flex-shrink: 0;
  background: var(--white);
}
.chatbot-input {
  flex: 1;
  border: 1.5px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  resize: none;
  max-height: 80px;
  line-height: 1.4;
  transition: border-color 0.2s;
}
.chatbot-input:focus {
  border-color: var(--black);
}
.chatbot-send-btn {
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.2s;
  align-self: flex-end;
}
.chatbot-send-btn:hover {
  background: var(--coral);
}
.chatbot-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
