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

body {
  background: #0a0a16;
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(247, 147, 26, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(98, 126, 234, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(38, 161, 123, 0.03) 0%, transparent 60%);
  min-height: 100vh;
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card-strong {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-field {
  background: rgba(14, 14, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: rgba(247, 147, 26, 0.5);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1), 0 0 20px rgba(247, 147, 26, 0.05);
  outline: none;
}

.shimmer-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #f7931a, #627eea, #26a17b, transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

.result-animate {
  animation: fadeSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.badge-bounce {
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes pulse-warning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.pulse-warn {
  animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  top: 0;
  width: 10px;
  height: 10px;
  animation: confetti-fall 3s ease-in forwards;
  z-index: 999;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f7931a, #e8630a, #627eea);
  background-size: 200% 200%;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(247, 147, 26, 0.3);
}

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

.table-row-hover:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

/* Stacked bar chart */
.bar-segment {
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.error-shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}