@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --color-bg-start: #0a0a0a;
  --color-bg-mid: #1a0d00;
  --color-bg-deep: #2e1300;
  --color-bg-end: #000000;
  --color-glow-orange: #FF8C00;
  --color-glow-yellow: #FFD300;
  --color-white-soft: #fefefe;
  --border-radius-xl: 20px;
  --blur-glass: 20px;
}

body {
  background: radial-gradient(circle at center,
    var(--color-bg-start) 0%,
    var(--color-bg-mid) 40%,
    var(--color-bg-deep) 70%,
    var(--color-bg-end) 100%);
  color: var(--color-white-soft);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}
.glass-card {
  backdrop-filter: blur(var(--blur-glass));
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 140, 0, 0.4);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}
.glass-card:hover {
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.5);
}

.glow-button {
  background: linear-gradient(90deg, var(--color-glow-orange), var(--color-glow-yellow));
  border-radius: var(--border-radius-xl);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.7);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glow-button:hover {
  box-shadow: 0 0 25px rgba(255, 211, 0, 0.8);
  transform: scale(1.02);
}

.glow-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 5s infinite;
}

@keyframes shimmer {
  0%, 100% {
    left: -100%;
  }
  20%, 80% {
    left: 100%;
  }
}
.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  margin: -2.5rem auto 2rem;
}
.progress-bar .step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.progress-bar .step.active {
  background: var(--color-glow-orange);
  box-shadow: 0 0 10px var(--color-glow-orange);
}

.progress-bar .step .inner-glow {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
}
.progress-bar .step .text {
  position: absolute;
  bottom: -24px;
  font-size: 12px;
  color: var(--color-white-soft);
  opacity: 0.8;
  white-space: nowrap;
}
.progress-bar .connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.progress-bar .connector::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--color-glow-orange);
  transition: width 0.5s ease;
}

.progress-bar .step.active ~ .connector::after,
.progress-bar .step.active + .connector::after {
  width: 100%;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 140, 0, 0.2);
  color: var(--color-white-soft);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.payment-method.active {
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid var(--color-glow-orange);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
  opacity: 1;
}

.payment-method:hover {
  opacity: 1;
}

.input-glow {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.input-glow input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 10px;
  color: var(--color-white-soft);
  outline: none;
  transition: all 0.3s ease;
}

.input-glow input:focus {
  border-color: var(--color-glow-orange);
}

.glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 140, 0, 0.4), transparent 70%);
  transition: opacity 0.3s ease;
}

.input-glow input:focus ~ .glow-effect {
  opacity: 1;
}
/* Coin burst animation */
.coin-burst {
  width: 100px;
  height: 100px;
  position: fixed;
  pointer-events: none;
  animation: burst 1s ease-out forwards;
  z-index: 1000;
}

@keyframes burst {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.coin-burst::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--color-glow-yellow) 0%, var(--color-glow-orange) 100%);
  border-radius: 50%;
  filter: blur(5px);
}
/* Mobile specific styles */
@media (max-width: 768px) {
  .glass-card {
    border-radius: 16px;
  }
  
  .progress-bar {
    max-width: 80%;
  }
  
  .glow-button {
    padding: 12px;
    font-size: 16px;
  }
  
  .fixed-bottom {
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
  }
}