* {
  font-family: 'Noto Sans KR', 'Pretendard', ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a12;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(236, 72, 153, 0.08), transparent);
  min-height: 100vh;
  padding-bottom: 84px; /* bottom nav space */
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3a52; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a68; }

.glass-card {
  background: rgba(26, 26, 43, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Bottom nav active indicator */
.nav-item.active {
  color: #c4b5fd;
}
.nav-item.active .nav-icon-wrap {
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(236,72,153,0.15));
}

/* Loading skeleton shimmer */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #1a1a2b 0px, #242438 40px, #1a1a2b 80px);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

/* Chat bubble */
.chat-bubble-user {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}
.chat-bubble-ai {
  background: rgba(36, 36, 56, 0.9);
}

/* Card hover lift */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.3);
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  height: 4px;
  border-radius: 999px;
  background: #3a3a52;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a78bfa;
  cursor: pointer;
}

/* Toast */
#toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  animation: slideDownFade 0.3s ease-out;
}
@keyframes slideDownFade {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}
