* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfb 40%, #e6faf6 100%);
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3bcbb8;
  border-radius: 4px;
}

/* Chip scroll container */
.chips-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips-scroll::-webkit-scrollbar {
  display: none;
}

/* Shimmer animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    #e0f7f4 25%,
    #d4c7f5 37%,
    #e0f7f4 63%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

/* Card entrance animation */
@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-enter {
  animation: cardEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Heart bounce */
@keyframes heartBounce {
  0% { transform: scale(1); }
  25% { transform: scale(1.35); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.heart-bounce {
  animation: heartBounce 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Gentle bounce for empty state */
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.gentle-bounce {
  animation: gentleBounce 2.5s ease-in-out infinite;
}

/* Generate button glow */
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(59, 203, 184, 0.3); }
  50% { box-shadow: 0 0 20px rgba(59, 203, 184, 0.6), 0 0 40px rgba(59, 203, 184, 0.2); }
}

.btn-glow:hover {
  animation: btnGlow 2s ease-in-out infinite;
}

/* Sparkle float */
@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-8px) rotate(15deg); opacity: 1; }
}

.sparkle-1 { animation: sparkleFloat 3s ease-in-out infinite; }
.sparkle-2 { animation: sparkleFloat 3s ease-in-out infinite 0.5s; }
.sparkle-3 { animation: sparkleFloat 3s ease-in-out infinite 1s; }

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spin {
  animation: spin 1s linear infinite;
}

/* Subtle bubble pattern on header */
.header-bg {
  position: relative;
  overflow: hidden;
}
.header-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(59, 203, 184, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(192, 126, 241, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(255, 205, 60, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Toast animation */
@keyframes toastIn {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

.toast-in { animation: toastIn 0.3s ease-out forwards; }
.toast-out { animation: toastOut 0.3s ease-in forwards; }

/* Chip hover */
.chip-hover {
  transition: all 0.2s ease;
}
.chip-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 203, 184, 0.25);
}
.chip-hover:active {
  transform: scale(0.97);
}

/* Card hover */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59, 203, 184, 0.2);
}

/* Image loading skeleton */
.img-skeleton {
  background: linear-gradient(110deg, #e0f7f4 8%, #d4c7f5 18%, #e0f7f4 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}