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

body {
  background: #080c14;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(20, 184, 166, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(239, 68, 68, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
  min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Slider styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, #14b8a6, #6ee7b7, #f59e0b, #ef4444);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.5), 0 2px 8px rgba(0,0,0,0.4);
  border: 3px solid #14b8a6;
  transition: box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.7), 0 2px 12px rgba(0,0,0,0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.5), 0 2px 8px rgba(0,0,0,0.4);
  border: 3px solid #14b8a6;
}

/* Glass card */
.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.glass-card.selected {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.1);
}

/* Pulse animation */
@keyframes gentlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.pulse-slow {
  animation: gentlePulse 3s ease-in-out infinite;
}

/* Heartbeat */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

.heartbeat {
  animation: heartbeat 2s ease-in-out infinite;
}

/* Number transition */
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.number-animate {
  animation: countUp 0.3s ease-out;
}

/* Fade in stagger */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

/* Risk bar fill */
@keyframes fillBar {
  from { width: 0; }
}

.risk-bar-fill {
  animation: fillBar 0.8s ease-out;
}

/* Sticky bottom sheet mobile */
.sticky-tally {
  position: sticky;
  bottom: 0;
  z-index: 50;
}

/* Chart tooltip */
.chart-dot {
  transition: r 0.2s ease;
}

.chart-dot:hover {
  r: 8;
}

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

.text-shimmer {
  background: linear-gradient(90deg, #e2e8f0 0%, #14b8a6 25%, #6ee7b7 50%, #14b8a6 75%, #e2e8f0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Category pills */
.cat-pill {
  transition: all 0.2s ease;
  cursor: pointer;
}

.cat-pill:hover {
  transform: scale(1.05);
}

.cat-pill.active {
  background: rgba(20, 184, 166, 0.25);
  border-color: #14b8a6;
  color: #6ee7b7;
}