/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0.95;
  animation: fadein 0.3s, fadeout 0.5s 3s forwards;
  z-index: 9999;
}
.toast.success { background: #2ecc71; }
.toast.error { background: #e74c3c; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeout {
  to { opacity: 0; transform: translateY(20px); }
}

/* Confetti */
.confetti {
  position: fixed;
  top: 0;
  width: 8px;
  height: 8px;
  background: hsl(calc(360 * var(--hue, 0.5)), 80%, 60%);
  animation: fall 4s linear infinite;
  z-index: 9998;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(100vh) rotate(720deg); }
}

/* ✨ Points sparkle animation */
.sparkle-points {
  position: absolute;
  right: 12px;
  top: 8px;
  font-weight: 700;
  color: #C5A46D;
  opacity: 0;
  transform: translateY(0);
  animation: sparkleRise 1.3s ease-out forwards;
}

@keyframes sparkleRise {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; transform: translateY(-4px); }
  60% { opacity: 1; transform: translateY(-16px); }
  100% { opacity: 0; transform: translateY(-26px); }
}

/* Prize Modal */
.prize-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 9997;
}
.prize-modal.active {
  opacity: 1;
  pointer-events: all;
}
.prize-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.prize-content h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}
.prize-content button {
  margin-top: 15px;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.prize-content button:hover {
  background: #333;
}

/* Basic Layout for Goals/Wins */
.goal-item, .win-item {
  padding: 10px;
  background: #f8f8f8;
  margin: 5px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.goal-item:hover, .win-item:hover {
  background: #ffe9f0;
}

/* Progress Bar */
progress {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #ddd;
}
progress::-webkit-progress-value {
  background: #f48fb1;
}
