/* Milestone Celebration Styles */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.milestone-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.3s ease;
}

.milestone-modal {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 420px;
  width: 92%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emoji-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff8e1, #ffe082);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 30px rgba(197, 150, 44, 0.4);
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.milestone-modal h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.milestone-modal p {
  color: var(--slate);
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.badge-label {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.btn-celebrate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  background: #C5962C;
  color: #000;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.18s;
}

.btn-celebrate:hover {
  background: #d4a73a;
  transform: translateY(-1px);
}

/* Milestone Badge Grid (dashboard) */
.milestone-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--warm);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.milestone-badge.locked {
  opacity: 0.35;
  filter: grayscale(1);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}