body {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  background-color: #fcfcfc;
}

.touch-active:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.beautyinfra-text-gradient {
  background: linear-gradient(to right, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- mobile two-view (menu / preview) ---------- */
@media (max-width: 1023.98px) {
  /* 기본: 메뉴 뷰 — 사이드바 풀스크린, 메인 숨김 */
  #app:not(.mobile-view-preview) > #sidebar {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 100vh;
  }
  #app:not(.mobile-view-preview) > main { display: none; }
  #app:not(.mobile-view-preview) > #sidebar-backdrop { display: none; }

  /* 프리뷰 뷰: 메인 표시, 사이드바 숨김 */
  #app.mobile-view-preview > #sidebar { display: none; }
  #app.mobile-view-preview > #sidebar-backdrop { display: none; }

  /* 모바일 메뉴 뷰에선 사이드바의 X 닫기 버튼 숨김 (의미 없음) */
  #app:not(.mobile-view-preview) #sidebar-close { display: none; }
}

/* ---------- before / after compare toggle ---------- */
.compare-btn { color: #64748b; }
.compare-btn.is-active {
  background-color: #0f172a;
  color: #ffffff;
}

/* ---------- control panel fade/slide ---------- */
#control-panel,
#control-panel-expand {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}
#control-panel.is-hidden,
#control-panel-expand.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.mirror { transform: scaleX(-1); }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.animate-fade-in { animation: fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes modal-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.modal-slide-up { animation: modal-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ---------- mode selection buttons (sidebar) ---------- */
.mode-btn.is-active {
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 4px #fdf2f8;
}
.mode-btn.is-active .mode-btn__icon {
  background-color: #ec4899;
  color: #ffffff;
}
.mode-btn.is-active .mode-btn__label {
  color: #0f172a;
}
.mode-btn.is-active .mode-btn__check {
  opacity: 1;
}

/* ---------- preset model thumbnails ---------- */
.preset-model.is-active {
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 4px #fce7f3;
}

/* ---------- representative style chips ---------- */
.style-chip.is-active {
  background-color: #fdf2f8;
  border-color: #fbcfe8 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.style-chip.is-active .style-chip__name {
  color: #db2777;
}
.style-chip.is-active .style-chip__check {
  display: flex !important;
}

/* ---------- color chips ---------- */
.color-chip.is-active {
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 8px #fce7f3;
}
.color-chip.is-active .color-chip__check {
  display: inline-block !important;
}

/* ---------- synthesize button ---------- */
#synthesize-btn:not(:disabled) {
  background-color: #0f172a;
  color: #ffffff;
  cursor: pointer;
}
#synthesize-btn:not(:disabled):hover {
  background-color: #000;
}
#synthesize-btn:not(:disabled)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background-color: #ec4899;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ---------- modal category tabs ---------- */
.category-btn {
  background-color: #ffffff;
  color: #64748b;
}
.category-btn:hover { background-color: #f1f5f9; }
.category-btn.is-active {
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(203, 213, 225, 1);
  transform: scale(1.05);
}
.category-btn .fa-chevron-right { opacity: 0; transition: opacity .2s; }
.category-btn.is-active .fa-chevron-right { opacity: 1; }

/* ---------- modal gender tabs ---------- */
.gender-btn {
  background-color: #ffffff;
  color: #64748b;
}
.gender-btn:hover { background-color: #f1f5f9; }
.gender-btn .gender-btn__icon { background-color: #f1f5f9; }
.gender-btn.is-active {
  background-color: #ec4899;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px #fce7f3;
  transform: scale(1.05);
}
.gender-btn.is-active .gender-btn__icon { background-color: rgba(255, 255, 255, 0.2); }
