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

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --bg-card: #2d2d2d;
  --bg-hover: #353535;
  --accent-gold: #c9a860;
  --accent-gold-dark: #b39350;
  --accent-gold-light: #d4b870;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --border-color: #3a3a3a;
  --success-color: #00d4aa;
  --gradient-gold: linear-gradient(135deg, #c9a860 0%, #d4b870 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effects */
.option-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 168, 96, 0.1) 0%, rgba(212, 184, 112, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.option-card:hover::before {
  opacity: 1;
}

.option-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 50px rgba(201, 168, 96, 0.3), 0 0 40px rgba(201, 168, 96, 0.15);
  border-color: var(--accent-gold);
}

.option-card.selected {
  background: linear-gradient(135deg, rgba(201, 168, 96, 0.2) 0%, rgba(212, 184, 112, 0.2) 100%);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 96, 0.3), 0 15px 40px rgba(201, 168, 96, 0.3);
}

/* Button styles */
.btn-primary {
  background: var(--gradient-gold);
  background-size: 200% 200%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(201, 168, 96, 0.3);
  animation: shimmer 3s ease-in-out infinite;
}

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

.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 ease;
}

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

.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 35px rgba(201, 168, 96, 0.5);
  background: linear-gradient(135deg, var(--accent-gold-dark) 0%, var(--accent-gold) 100%);
}

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

/* Input styles */
input[type="text"], input[type="number"] {
  transition: all 0.3s ease;
}

input[type="text"]::placeholder, input[type="number"]::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus, input[type="number"]:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 96, 0.3), 0 0 20px rgba(201, 168, 96, 0.2);
  border-color: var(--accent-gold-light);
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  background-size: 200% 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(201, 168, 96, 0.6);
  animation: progressShimmer 2s linear infinite;
}

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

/* Results animation */
.result-card {
  animation: fadeInUp 0.8s ease-out;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(201, 168, 96, 0.2);
  box-shadow: 0 0 60px rgba(201, 168, 96, 0.2), inset 0 0 40px rgba(201, 168, 96, 0.03);
}

.price-display {
  font-size: 5rem;
  font-weight: 900;
  background: var(--gradient-gold);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite, shimmer 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(201, 168, 96, 0.5));
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-gold-dark) 0%, var(--accent-gold) 100%);
}

/* Toast notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--success-color) 0%, #00b894 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
  z-index: 1000;
  animation: fadeInUp 0.5s ease-out;
}

/* Responsive design */
@media (max-width: 640px) {
  .price-display {
    font-size: 2.5rem;
  }
  
  .option-card {
    padding: 1rem;
  }
}
