* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #FFF8F5;
  font-family: 'Nunito', sans-serif;
  color: #5A5A5A;
  overflow-x: hidden;
  min-height: 100vh;
}

#root {
  min-height: 100vh;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(80px) rotate(360deg); opacity: 0; }
}

@keyframes heartBurst {
  0% { transform: scale(0) translateY(0); opacity: 1; }
  50% { transform: scale(1.3) translateY(-30px); opacity: 0.8; }
  100% { transform: scale(0.8) translateY(-60px); opacity: 0; }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes envelopeSeal {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg) scale(0.95); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.45s ease-out forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulse 2.5s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUp 0.4s ease-out forwards;
}

.card-shadow {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.card-shadow-lg {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.gradient-border {
  background: linear-gradient(135deg, #FFB8D4, #B8E0D4, #D4C5F9);
  padding: 3px;
  border-radius: 24px;
}

.gradient-border-inner {
  background: #FFFFFF;
  border-radius: 22px;
}

.tab-bar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 248, 245, 0.92);
  border-top: 1px solid rgba(255, 184, 212, 0.2);
}

.btn-gradient-pink {
  background: linear-gradient(135deg, #FFB8D4, #D4C5F9);
  transition: all 0.3s ease;
}

.btn-gradient-pink:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 184, 212, 0.4);
}

.btn-gradient-pink:active {
  transform: translateY(0);
}

.btn-gradient-mint {
  background: linear-gradient(135deg, #B8E0D4, #D4C5F9);
  transition: all 0.3s ease;
}

.btn-gradient-mint:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(184, 224, 212, 0.4);
}

input, textarea {
  font-family: 'Nunito', sans-serif;
}

input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 184, 212, 0.3);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

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

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: confettiFall 1.2s ease-out forwards;
  pointer-events: none;
}

.heart-particle {
  position: absolute;
  animation: heartBurst 1s ease-out forwards;
  pointer-events: none;
  font-size: 20px;
}

.stagger-1 { animation-delay: 0.05s; opacity: 0; }
.stagger-2 { animation-delay: 0.1s; opacity: 0; }
.stagger-3 { animation-delay: 0.15s; opacity: 0; }
.stagger-4 { animation-delay: 0.2s; opacity: 0; }
.stagger-5 { animation-delay: 0.25s; opacity: 0; }
.stagger-6 { animation-delay: 0.3s; opacity: 0; }

/* Desktop wrapper */
@media (min-width: 520px) {
  #root {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
  }
}

.weekly-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.weekly-dot-filled {
  background: linear-gradient(135deg, #FFB8D4, #D4C5F9);
  color: white;
}

.weekly-dot-empty {
  background: #F5F0ED;
  color: #BFBFBF;
}

.weekly-dot-today {
  box-shadow: 0 0 0 2px #FFB8D4;
}