/* ============================================================
   KODI — MZ 세대 타깃 재설계
   components.css: 전체 UI 컴포넌트
   Dark-first · 고채도 포인트 · Bebas Neue 헤드라인
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HEADER (52px)
══════════════════════════════════════════════════════════ */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  height: var(--header-height);
  background: var(--void);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  border-bottom: none;
}

.app-header.scrolled {
  background: rgba(244,243,239,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 헤더 로고 */
.header-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}

/* 헤더 중앙 — 트렌딩 태그 티커 */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--space-3);
}

.header-ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.header-ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: scrollTicker 12s linear infinite;
}

.header-ticker-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-right: 3rem;
}

.header-ticker-text span {
  color: var(--hot);
}

/* 헤더 우측 */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-temp-display {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.header-temp-display #header-temp {
  color: var(--text-1);
  font-weight: 500;
}

/* header-weather-chip 호환성 */
.weather-chip-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-2);
  white-space: nowrap;
  cursor: default;
}
.weather-chip-mini .temp {
  font-weight: 500;
  color: var(--text-1);
}

.icon-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: color var(--duration-fast) var(--ease-out);
  border-radius: var(--radius-sm);
}

.icon-btn:hover { color: var(--text-1); }
.icon-btn:active { opacity: 0.6; }

.icon-btn svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION — 텍스트만, 활성: --hot
══════════════════════════════════════════════════════════ */
/* ── 플로팅 캡슐 독 (Floating Capsule Dock) — Glassmorphism + Electric glow ── */
.bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 398px; /* 태블릿 등 넓은 뷰포트에서 가로로 길게 찢어지는 현상 차단 */
  height: 64px;
  background: rgba(247, 246, 243, 0.85); /* 샌드 베이지/오프화이트 계열 테마 85% 글래스모피즘 */
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  box-shadow: 
    0 16px 40px rgba(31, 81, 255, 0.08), 
    0 4px 16px rgba(0, 0, 0, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3);
  transition: 
    transform var(--duration-slow) var(--ease-out), 
    opacity var(--duration-slow) var(--ease-out),
    background var(--duration-base) var(--ease-out);
  will-change: transform, opacity;
}

/* 모달 또는 온보딩 등이 켜졌을 때 아래로 슬라이딩하며 은폐 */
.bottom-nav.hidden {
  transform: translate(-50%, calc(100% + 40px)) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

.nav-tabs {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-tab {
  flex: 1;
  height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink-3);
  background: transparent;
  border: none;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  position: relative;
  outline: none;
  border-radius: 20px;
}

@media (hover: hover) {
  .nav-tab:hover {
    color: var(--electric);
    background: rgba(31, 81, 255, 0.04);
  }
}

.nav-tab svg.tab-icon {
  display: block !important;
  width: 19px;
  height: 19px;
  color: var(--ink-3);
  stroke-width: 1.8;
  transition: all var(--duration-base) var(--ease-out);
}

.nav-tab .tab-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  transition: all var(--duration-base) var(--ease-out);
}

/* 활성 상태 팝-일렉트릭 캡슐 배경 효과 */
.nav-tab.active {
  color: var(--electric);
  background: rgba(31, 81, 255, 0.06); /* 활성 탭 뒤에 둥근 포인트 칩 */
  transform: translateY(-2px);
}

.nav-tab.active svg.tab-icon {
  color: var(--electric);
  stroke-width: 2.2;
  transform: scale(1.05);
  filter: drop-shadow(0 2px 8px rgba(31, 81, 255, 0.22));
}

.nav-tab.active .tab-label {
  color: var(--electric);
  font-weight: 700;
}

.nav-tab:active {
  transform: scale(0.95);
}

.nav-tab.active::after {
  display: none;
}

@media (max-width: 360px) {
  .bottom-nav {
    bottom: 12px;
    width: calc(100% - 20px);
    height: 58px;
    border-radius: 20px;
    padding: 0 var(--space-1);
  }
  .nav-tab {
    gap: 2px;
  }
  .nav-tab svg.tab-icon {
    width: 17px;
    height: 17px;
  }
  .nav-tab .tab-label {
    font-size: 0.6rem;
  }
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  min-height: 44px;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { opacity: 0.7; transform: none; }

.btn-primary {
  background: var(--electric);
  color: #fff;
}
.btn-primary:hover {
  background: #6d28d9;
  box-shadow: var(--glow-electric);
}

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-2); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { color: var(--text-1); }

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  min-height: 34px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  min-height: 52px;
}

.btn-full { width: 100%; }

.btn svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   CHIPS — pill shape, 99px radius
══════════════════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  min-height: 32px;
  user-select: none;
  letter-spacing: 0.01em;
}

.chip:hover {
  border-color: var(--text-2);
  color: var(--text-1);
}

.chip:active { opacity: 0.7; }

.chip[data-active="true"],
.chip.active {
  background: var(--hot);
  border-color: var(--hot);
  color: #fff;
  box-shadow: var(--glow-hot);
}

.chip-sage[data-active="true"],
.chip-sage.active {
  background: var(--neon);
  border-color: var(--neon);
  color: #000;
}

.chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

/* ══════════════════════════════════════════════════════════
   IMAGE PLACEHOLDER
══════════════════════════════════════════════════════════ */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--surface-2) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.img-placeholder-icon {
  font-size: 1.5rem;
  opacity: 0.3;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--surface-2) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   HOME SCREEN
══════════════════════════════════════════════════════════ */

/* ── 히어로: "오늘의 코어" (65vh) ── */
.hero-section {
  position: relative;
  height: 65vh;
  min-height: 360px;
  overflow: hidden;
  width: 100%;
}

.hero-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 그라디언트: void → transparent (아래 → 위 방향) */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.2) 0%,
    rgba(8,8,8,0) 40%,
    rgba(8,8,8,0.7) 75%,
    rgba(8,8,8,0.95) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-category-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-2);
  display: block;
}

/* "GORPCORE" — Bebas Neue 52px */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 3.5rem);
  font-weight: 400;
  color: var(--text-1);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  animation: neonFlicker 8s ease-in-out infinite;
}

/* 서브 문구 */
.hero-sub {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
}

/* SHOP THE LOOK → 버튼 — 우하단, pill */
.hero-cta {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--electric);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.hero-cta:hover {
  background: #6d28d9;
  box-shadow: var(--glow-electric);
  transform: translateY(-1px);
}

/* 히어로 태그 */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgba(242,242,240,0.7);
  border: 1px solid rgba(242,242,240,0.2);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  background: rgba(8,8,8,0.3);
}

/* ── 트렌딩 코어 가로 스크롤 (120px) ── */
.core-scroll-section {
  padding: var(--space-4) 0 var(--space-3);
  border-bottom: 1px solid var(--border);
}

.core-scroll-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 var(--space-5) var(--space-3);
  display: block;
}

.core-scroll-row {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: 0 var(--space-5) var(--space-2);
  -webkit-overflow-scrolling: touch;
  align-items: center;
}

/* 각 코어 칩: 원형 썸네일 + 이름 */
.core-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
}

.core-chip:hover { transform: translateY(-2px); }

.core-chip-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  background: var(--surface);
  flex-shrink: 0;
}

.core-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 활성화: --hot 테두리 글로우 */
.core-chip.active .core-chip-thumb,
.core-chip[data-active="true"] .core-chip-thumb {
  border-color: var(--hot);
  box-shadow: 0 0 0 2px rgba(255,45,85,0.3), var(--glow-hot);
}

.core-chip-name {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.core-chip.active .core-chip-name,
.core-chip[data-active="true"] .core-chip-name {
  color: var(--hot);
}

/* ── Weather Strip ── */
.weather-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.weather-strip-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.weather-strip-temp {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-1);
}

.weather-strip-detail {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.weather-strip-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--electric);
  letter-spacing: 0.04em;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.weather-strip-link:hover { opacity: 0.7; }

/* hidden weather card — JS refs 유지 */
.weather-hero { display: none; }
#weather-hero { display: none; }

/* ── Greeting Section ── */
.greeting-section {
  padding: var(--space-4) var(--space-5) var(--space-2);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
}

.greeting-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.greeting-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.greeting-text em {
  font-style: normal;
  color: var(--hot);
}

/* ── Situation Chips ── */
.situation-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-4) var(--space-5) var(--space-3);
}

/* ── Editorial Card Layout ── */
.editorial-grid {
  padding: 0;
}

.editorial-grid .dress-card:nth-child(1) {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.editorial-grid .dress-card:nth-child(1) .dress-card-img {
  aspect-ratio: 4/5;
}

.editorial-pair {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border-bottom: 1px solid var(--border);
}

.editorial-pair .dress-card:nth-child(1) {
  border-right: 1px solid var(--border);
}

.editorial-pair .dress-card:nth-child(1) .dress-card-img {
  aspect-ratio: 2/3;
}

.editorial-pair .dress-card:nth-child(2) .dress-card-img {
  aspect-ratio: 1/1;
}

.editorial-grid .dress-card.full-card {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.editorial-grid .dress-card.full-card .dress-card-img {
  aspect-ratio: 16/9;
}

/* ── Dress Code Card ── */
.dress-card {
  background: var(--void);
  overflow: hidden;
  cursor: pointer;
  transition: opacity var(--duration-base) var(--ease-out);
  position: relative;
}

.dress-card:hover { opacity: 0.88; }
.dress-card:active { opacity: 0.65; }

.dress-card-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}

.dress-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
  will-change: transform;
}

.dress-card:hover .dress-card-img img {
  transform: scale(1.04);
}

.dress-card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--void);
}

.dress-card-category {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: var(--space-1);
  display: block;
}

.dress-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.dress-card-desc {
  font-size: var(--text-xs);
  color: var(--text-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-sans);
}

/* 코어 라벨: 좌상단 pill (이미지 위) */
.product-core-tag {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 3px 10px;
  background: rgba(8,8,8,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.1);
}

/* 저장 버튼 — 하트, 우상단 */
.dress-card-save,
.product-save {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 28px;
  height: 28px;
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 2;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.dress-card-save svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dress-card-save.saved,
.product-save.saved {
  background: var(--hot);
  border-color: var(--hot);
  color: #fff;
  box-shadow: var(--glow-hot);
}

.dress-card-save.saved svg { fill: currentColor; }

.dress-card-save:hover,
.product-save:hover {
  border-color: var(--hot);
  color: var(--hot);
}

/* ── 상품 카드 (product-card) ── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--electric);
  transform: translateY(-2px);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--surface-2);
}

.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: var(--space-3) var(--space-4);
}

.product-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-1);
  line-height: 1.4;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.product-price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-1);
  font-weight: 500;
}

.product-mall {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.product-buy-btn {
  display: block;
  width: 100%;
  padding: 6px var(--space-3);
  background: var(--electric);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  letter-spacing: 0.01em;
}

.product-buy-btn:hover {
  background: #6d28d9;
  box-shadow: var(--glow-electric);
}

/* ══════════════════════════════════════════════════════════
   EXPLORE SCREEN
══════════════════════════════════════════════════════════ */

/* 코어 필터 탭 — 상단 고정, 가로 스크롤 */
.explore-core-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  background: var(--void);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 var(--space-5);
  gap: 0;
}

.explore-core-tab {
  flex-shrink: 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  border: none;
  background: none;
  position: relative;
  letter-spacing: 0.02em;
}

/* 활성 탭: --hot 하단 밑줄 */
.explore-core-tab.active {
  color: var(--text-1);
}

.explore-core-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--hot);
  border-radius: var(--radius-full);
}

.explore-core-tab:hover:not(.active) {
  color: var(--text-2);
}

/* 필터 섹션 */
.filter-section {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 44px;
  z-index: 49;
  display: flex;
  gap: var(--space-3);
}

.filter-group {
  margin-bottom: var(--space-3);
}
.filter-group:last-child { margin-bottom: 0; }

.filter-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: block;
}

/* 상황/날씨 드롭다운 버튼 */
.filter-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.filter-dropdown-btn:hover {
  border-color: var(--text-2);
  color: var(--text-1);
}

.explore-results {
  padding: 0;
}

.results-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
  background: var(--void);
}

.results-count strong {
  color: var(--text-1);
  font-weight: 500;
}

/* 결과 그리드: 2열, 2:3, 2px 간격 */
#explore-card-grid.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

#explore-card-grid .dress-card {
  background: var(--void);
  margin: 0;
}

#explore-card-grid .dress-card .dress-card-img {
  aspect-ratio: 2/3;
}

/* 빈 상태 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  animation: fadeIn var(--duration-slow) var(--ease-out);
}

.empty-state-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--text-3);
}

.empty-state-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: var(--space-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-3);
  line-height: 1.6;
  max-width: 220px;
  margin-bottom: var(--space-5);
  font-family: var(--font-sans);
}

/* ══════════════════════════════════════════════════════════
   PROFILE SCREEN — "MY STYLE DNA"
══════════════════════════════════════════════════════════ */

.profile-hero {
  padding: var(--space-8) var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
  background: linear-gradient(
    135deg,
    rgba(124,58,237,0.08) 0%,
    rgba(8,8,8,0) 60%
  );
}

.profile-avatar {
  display: none;
}

/* "MY STYLE DNA" 헤드라인 */
.profile-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 10vw, 3.2rem);
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--space-3);
}

.profile-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--electric);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

/* 퍼스낼리티 결과 */
.profile-dna-result {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-bottom: var(--space-5);
}

.profile-dna-result span {
  color: var(--neon);
  font-weight: 700;
}

/* 통계: 큰 mono 숫자 */
.profile-stats {
  display: flex;
  gap: 0;
  margin-top: var(--space-5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-left: calc(-1 * var(--space-5));
  margin-right: calc(-1 * var(--space-5));
}

.profile-stat {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; }

.profile-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 500;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -0.02em;
}

.profile-stat-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--space-1);
  font-weight: 400;
}

/* 프로필 카드 */
.profile-card {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
}

.profile-card-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.profile-card-title .card-icon { display: none; }

/* 스타일 태그 — 코어 유형 아이콘+이름 태그 클라우드 */
.style-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: default;
  letter-spacing: 0.01em;
}

.style-tag.highlight {
  background: var(--electric);
  border-color: var(--electric);
  color: #fff;
  box-shadow: var(--glow-electric);
}

.style-tag.sage {
  background: transparent;
  border-color: var(--neon);
  color: var(--neon);
}

/* 싱크 카드 */
.sync-card {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
}

.sync-code-display {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.sync-code-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: 0.2em;
  text-align: center;
}

.sync-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: 0.12em;
  text-align: center;
  transition: border-color var(--duration-fast) var(--ease-out);
  margin-bottom: var(--space-3);
}

.sync-input:focus {
  border-color: var(--electric);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.sync-input::placeholder {
  font-family: var(--font-sans);
  color: var(--text-3);
  font-size: var(--text-sm);
  letter-spacing: 0;
}

/* 위험 구역 */
.danger-zone {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.danger-zone-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--hot);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.danger-zone-desc {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-bottom: var(--space-4);
  line-height: 1.5;
  font-family: var(--font-sans);
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(255,45,85,0.4);
  color: var(--hot);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  min-height: 38px;
  transition: all var(--duration-base) var(--ease-out);
}

.btn-danger:hover {
  background: var(--hot);
  border-color: var(--hot);
  color: #fff;
  box-shadow: var(--glow-hot);
}

/* ══════════════════════════════════════════════════════════
   CHAT SCREEN
══════════════════════════════════════════════════════════ */

#screen-chat {
  background: var(--void);
}

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  -webkit-overflow-scrolling: touch;
  background: var(--void);
}

.chat-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  text-align: center;
  padding: var(--space-1) 0;
  letter-spacing: 0.06em;
}

.chat-msg {
  display: flex;
  gap: var(--space-3);
  animation: fadeSlideUp var(--duration-base) var(--ease-out) both;
}

.chat-msg.user {
  flex-direction: row-reverse;
}

/* KO 아바타: Bebas Neue 14px */
.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  flex-shrink: 0;
  align-self: flex-end;
  letter-spacing: 0.05em;
}

.chat-avatar.ai {
  background: var(--electric);
  color: #fff;
}

.chat-avatar.user {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.chat-avatar.ai::before  { content: 'KO'; }
.chat-avatar.user::before{ content: 'ME'; }

.chat-msg .chat-avatar { font-size: 0; }
.chat-msg .chat-avatar::before { font-size: 14px; }

/* AI 버블: --surface */
.chat-bubble {
  max-width: 78%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.6;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
}

.chat-msg.ai .chat-bubble {
  background: var(--surface);
  color: var(--text-1);
  border-bottom-left-radius: 2px;
}

/* 사용자 버블: --electric */
.chat-msg.user .chat-bubble {
  background: var(--electric);
  color: #fff;
  border-bottom-right-radius: 2px;
}

/* 빠른 답변 칩 */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.quick-reply {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  letter-spacing: 0.01em;
}

.quick-reply:hover {
  border-color: var(--hot);
  color: var(--hot);
  transform: translateY(-1px);
}

.quick-reply:active { opacity: 0.7; transform: none; }

/* 선택 시 --hot */
.quick-reply.selected {
  background: var(--hot);
  border-color: var(--hot);
  color: #fff;
  box-shadow: var(--glow-hot);
}

/* 채팅 입력창: 하단 고정, pill shape */
.chat-input-area {
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-1);
  transition: border-color var(--duration-fast) var(--ease-out);
  min-height: 40px;
  resize: none;
  max-height: 120px;
  line-height: 1.5;
}

.chat-input:focus {
  border-color: var(--electric);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.chat-input::placeholder {
  color: var(--text-3);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

/* 전송 버튼: #btn-send */
.chat-send-btn {
  width: 40px; height: 40px;
  background: var(--electric);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease-out);
}

.chat-send-btn:hover {
  background: #6d28d9;
  box-shadow: var(--glow-electric);
  transform: scale(1.05);
}

.chat-send-btn:active {
  opacity: 0.7;
  transform: none;
}

.chat-send-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-left: 2px;
}

/* id="btn-send" 호환 */
#btn-send { /* alias via chat-send-btn */ }

/* 타이핑 인디케이터 */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 2px;
  width: fit-content;
}

.typing-dot {
  width: 6px; height: 6px;
  background: var(--text-3);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════
   BOTTOM SHEET MODAL
══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  max-width: var(--app-max-width);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31,31,30,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  max-height: 92dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.modal-overlay.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px; height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: var(--space-3) auto var(--space-2);
  flex-shrink: 0;
}

.sheet-header {
  padding: var(--space-2) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.sheet-header-content {
  flex: 1;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#detail-title { font-family: var(--font-display); }
#detail-category {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sheet-close {
  width: 32px; height: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
  margin-top: 2px;
}

.sheet-close:hover {
  border-color: var(--hot);
  color: var(--hot);
}

.sheet-close svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-body .dress-card-img {
  aspect-ratio: 4/3;
  border-radius: 0;
}

.sheet-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface);
  display: block;
}

.sheet-content {
  padding: var(--space-5);
}

.sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.sheet-section-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.item-list {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-5);
  border-top: 1px solid var(--border);
}

.item-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.item-icon { display: none; }

.item-info {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex: 1;
}

.item-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  width: 48px;
  flex-shrink: 0;
}

.item-value {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-1);
  font-weight: 400;
}

.advice-box {
  background: rgba(31,81,255,0.05);
  border-left: 2px solid var(--electric);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.advice-quote {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  font-style: italic;
  color: var(--text-1);
  line-height: 1.6;
}

.advice-author {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--electric);
  margin-top: var(--space-2);
  letter-spacing: 0.04em;
}

.sheet-footer {
  padding: var(--space-4) var(--space-5) calc(var(--space-4) + var(--safe-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  background: var(--surface);
}

/* ══════════════════════════════════════════════════════════
   KODDI BUBBLE — pill shape, --electric
══════════════════════════════════════════════════════════ */

.koddi-bubble {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-4));
  right: var(--space-4);
  z-index: 150;
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) 1.5s both;
}

@media (min-width: 431px) and (max-width: 1199px) {
  .koddi-bubble {
    right: calc((100vw - var(--app-max-width)) / 2 + var(--space-4));
  }
}

@media (min-width: 1200px) {
  .koddi-bubble {
    right: var(--space-6);
    bottom: var(--space-6);
  }
}

/* pill shape: 넓고 얇은 */
.koddi-bubble-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-5);
  background: var(--electric);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  animation: floatBubble 4s ease-in-out infinite;
  position: relative;
  white-space: nowrap;
  box-shadow: var(--glow-electric);
}

/* "KODI · 지금 뭐 입어?" */
.koddi-bubble-btn::before {
  content: 'KODI';
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.1em;
}

.koddi-bubble-btn::after {
  content: '· 지금 뭐 입어?';
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}

/* Hide children set via JS */
.koddi-bubble-btn > * { display: none; }

.koddi-bubble-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(124,58,237,0.6);
}

.koddi-bubble-btn:active {
  opacity: 0.7;
  transform: none;
}

.koddi-pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(124,58,237,0.4);
  animation: koddiPulse 2.5s ease-out infinite;
}

/* koddi speech bubble */
.koddi-speech {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-bottom-right-radius: 2px;
  padding: var(--space-3) var(--space-4);
  width: 200px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-1);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transform-origin: bottom right;
  transition: all var(--duration-base) var(--ease-out);
}

.koddi-bubble.speech-visible .koddi-speech {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.koddi-speech-close {
  position: absolute;
  top: var(--space-2); right: var(--space-2);
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: var(--font-mono);
}

.koddi-speech-close:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: auto;
  max-width: calc(var(--app-max-width) - var(--space-8));
  pointer-events: none;
}

#toast-container {
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-4));
}

#toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  animation: toastIn var(--duration-base) var(--ease-out) both;
  pointer-events: all;
  white-space: nowrap;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toast.success {
  background: rgba(0,229,160,0.15);
  border-color: rgba(0,229,160,0.4);
  color: var(--neon);
}

.toast.error {
  background: rgba(255,45,85,0.15);
  border-color: rgba(255,45,85,0.4);
  color: var(--hot);
}

.toast.info {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  color: var(--electric);
}

.toast-icon { font-size: 0.8rem; }

.toast.out {
  animation: toastOut var(--duration-base) var(--ease-out) both;
}

/* ══════════════════════════════════════════════════════════
   ONBOARDING OVERLAY
══════════════════════════════════════════════════════════ */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  max-width: var(--app-max-width);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.onboarding-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.onboarding-card {
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: var(--space-8) var(--space-6) var(--space-6);
  width: 100%;
  transform: translateY(40px);
  transition: transform var(--duration-slow) var(--ease-out);
  padding-bottom: calc(var(--space-6) + var(--safe-bottom));
  border-top: 1px solid var(--border);
}

.onboarding-overlay.visible .onboarding-card {
  transform: translateY(0);
}

.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
  animation: fadeSlideUp var(--duration-base) var(--ease-out) both;
}

/* 인트로 마커 대신 전기색 블록 */
.onboarding-emoji {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  margin: 0 auto var(--space-5);
  font-size: 0;
  background: var(--electric);
  box-shadow: var(--glow-electric);
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-1);
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.onboarding-desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-3);
  text-align: center;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.onboarding-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.onboarding-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-1);
  text-align: left;
  background: var(--surface-2);
}

.onboarding-option:hover {
  border-color: var(--electric);
}

.onboarding-option.selected {
  border-color: var(--electric);
  background: rgba(124,58,237,0.15);
  color: var(--text-1);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.2);
}

.onboarding-option .option-emoji { display: none; }

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.onboarding-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--duration-base) var(--ease-out);
}

.onboarding-dot.active {
  background: var(--electric);
  width: 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--glow-electric);
}

.onboarding-skip {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  padding: var(--space-3);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color var(--duration-fast) var(--ease-out);
}

.onboarding-skip:hover { color: var(--text-1); }

/* ══════════════════════════════════════════════════════════
   SIDEBAR — DESKTOP
══════════════════════════════════════════════════════════ */

.sidebar {
  display: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  line-height: 1;
}

.sidebar-weather {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.sidebar-weather-temp {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.sidebar-weather-desc {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.sidebar-nav-item {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-3);
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav-item:hover {
  color: var(--text-1);
  background: var(--surface-2);
}

.sidebar-nav-item.active {
  color: var(--hot);
  font-weight: 400;
  background: rgba(255,45,85,0.08);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.sidebar-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--electric);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 44px;
}

.sidebar-chat-btn:hover {
  background: #6d28d9;
  box-shadow: var(--glow-electric);
  transform: translateY(-1px);
}

.sidebar-chat-btn:active {
  opacity: 0.7;
  transform: none;
}

@media (min-width: 1200px) {
  .sidebar {
    display: flex;
  }
}

/* ══════════════════════════════════════════════════════════
   LEGACY 호환 / 기타 유틸리티
══════════════════════════════════════════════════════════ */

.accent-line {
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--electric);
  margin-bottom: var(--space-2);
}

#screen-profile .scroll-area {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#screen-home .chip-row {
  padding: 0 var(--space-5) var(--space-3);
}

#screen-explore {
  overflow-y: auto;
}

#screen-explore .filter-section {
  flex-shrink: 0;
}

#header-weather-icon { display: none; }

#style-pref-chips .chip::before { display: none; }

#frequent-situations .chip {
  cursor: default;
  pointer-events: none;
}

/* 헤더 스크롤 효과 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 탭바 경계선 제거 */
.nav-tabs li + li {
  border-left: none;
}

/* ── 노이즈 텍스처 오버레이 (히어로 위) ── */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.06;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ── 인기 섹션 레이블 (neon) ── */
.trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trending-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--neon);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── 지금 인기 가로 스크롤 카드 ── */
.hot-scroll-section {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.hot-scroll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5) var(--space-3);
}

.hot-scroll-row {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 0 var(--space-5) var(--space-2);
  -webkit-overflow-scrolling: touch;
}

/* 가로 스크롤 카드: 160px, 2:3 */
.hot-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.hot-card:hover {
  transform: translateY(-3px);
  border-color: var(--electric);
}

.hot-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--surface-2);
}

.hot-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.hot-card:hover .hot-card-img img {
  transform: scale(1.05);
}

.hot-card-info {
  padding: var(--space-2) var(--space-3);
}

.hot-card-core {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  display: block;
}

.hot-card-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.hot-card-price {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
}

/* ──────────────────────────────────────────────────────────
   실시간 쇼핑 인기 상품 스타일 (.detail__shop, .shop-card)
────────────────────────────────────────────────────────── */

.detail__shop {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.detail__shop-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.detail__shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.detail__shop-loader,
.detail__shop-empty,
.detail__shop-error {
  grid-column: span 2;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-3);
  padding: var(--space-6) 0;
}

.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
}

.shop-card:hover {
  transform: translateY(-2px);
  border-color: var(--electric);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.shop-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.shop-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.shop-card:hover .shop-card__img {
  transform: scale(1.04);
}

.shop-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.shop-card__brand {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--electric);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.8em;
}

.shop-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-1);
  margin-top: auto;
}

.bottom-sheet__panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 100%;
}
