/* Night Sky Background */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0a1128 0%, #1a2456 50%, #2d3e6f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Stars Background */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  opacity: 0.8;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.redeem-container {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10;
}

.gift-icon {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.code-input-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.code-input-group {
  display: flex;
  gap: 0.5rem;
}

.code-input {
  width: 3.5rem;
  height: 3.5rem;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0;
  transition: all 0.2s ease;
}

.code-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
  transform: scale(1.05);
}

.code-input:not(:placeholder-shown) {
  background-color: #f8f9fa;
  border-color: #28a745;
}

.code-separator {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: #6c757d;
}

/* Responsive design for mobile */
@media (max-width: 576px) {
  .code-input-container {
    gap: 0.5rem;
  }

  .code-input {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .code-input-group {
    gap: 0.3rem;
  }

  .code-separator {
    font-size: 1.5rem;
  }
}

.gift-details {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: none;
}

.gift-details.show {
  display: block;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

.detail-row:last-child {
  border-bottom: none;
}

.gift-message {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.hidden {
  display: none;
}
