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

html, body {
  width: 100%;
  min-height: 100dvh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 340px;
  height: 340px;
  background: #f43f5e;
  top: -100px;
  right: -80px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: #6366f1;
  bottom: 8%;
  left: -110px;
  animation-delay: -6s;
}

.orb-3 {
  width: 240px;
  height: 240px;
  background: #f59e0b;
  top: 42%;
  right: -90px;
  opacity: 0.16;
  animation-delay: -11s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-25px, 35px) scale(1.1); }
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Shared helper classes for repeated inline styles */
.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.badge-xs {
  padding: 2px 7px;
  font-size: 0.66rem;
}

.callout {
  border-radius: 14px;
  padding: 12px;
  font-size: 0.83rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.callout-danger {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}

.callout-warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde047;
}

.callout-info {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: #a5b4fc;
}
