:root {
  /* Zohran Colors */
  --color-z-blue: #1e22aa;
  --color-z-yellow: #f7941d;
  --color-z-red: #e62e25;
  --color-z-dark: #0f1155;
  --color-z-light: #3a3fc4;
  --gradient-primary: linear-gradient(135deg, #1e22aa 0%, #3a3fc4 100%);
  --gradient-gold: linear-gradient(135deg, #f7941d 0%, #ffb347 100%);
  --gradient-red: linear-gradient(135deg, #e62e25 0%, #ff6b6b 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #0f1155 0%, #1e22aa 50%, #3a3fc4 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(247, 148, 29, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(230, 46, 37, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(58, 63, 196, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
}

/* Enhanced animations */
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  95% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) rotate(180deg);
    opacity: 0;
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes slideInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(247, 148, 29, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(247, 148, 29, 0.8), 0 0 60px rgba(247, 148, 29, 0.4);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Glass morphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(90deg, #f7941d, #ffb347, #f7941d);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Button styles */
.btn-primary {
  background: var(--gradient-red);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(230, 46, 37, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

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

/* Input styles */
.input-field {
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.input-field:focus {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--color-z-yellow);
  outline: none;
  transform: scale(1.01);
}

.input-field:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Radio button styles */
.radio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.radio-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.radio-card.selected {
  background: linear-gradient(90deg, rgba(247, 148, 29, 0.15) 0%, rgba(247, 148, 29, 0.05) 100%);
  border-color: var(--color-z-yellow);
  border-left-width: 4px;
  padding-left: calc(1.25rem - 2px);
}

/* Progress bar enhancement */
.progress-container {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-gold);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s linear infinite;
}

/* Savings display animation */
.savings-display {
  /* No pulsing animation */
}

.savings-amount {
  text-shadow: 0 0 20px rgba(247, 148, 29, 0.3);
  /* No glow animation */
}

/* Money particle effect enhancement */
.money-particle {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  animation: float 15s linear infinite;
}

.money-particle.sparkle {
  animation: float 12s linear infinite, spin 8s linear infinite;
}

/* Results card animation */
.results-card {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-item {
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.breakdown-item:nth-child(2) {
  animation-delay: 0.1s;
}

.breakdown-item:nth-child(3) {
  animation-delay: 0.2s;
}

/* Mobile touch feedback */
@media (hover: none) {
  .btn-primary:active,
  .btn-secondary:active,
  .radio-card:active {
    transform: scale(0.95);
  }
}

/* Loading dots animation */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-z-yellow);
  animation: bounce 2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Smooth transitions for all interactive elements */
* {
  -webkit-tap-highlight-color: transparent;
}

button, input, label {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Responsive typography */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
  .glass-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .btn-primary,
  .btn-secondary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}