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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #fff200 0%, #ffd700 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

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

.header {
  background: linear-gradient(45deg, #fff200, #ffd700);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.content {
  padding: 40px 30px;
  text-align: center;
}

.offer-text {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.coupon-container {
  background: linear-gradient(135deg, #fff200, #ffd700);
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
  position: relative;
  border: 3px dashed #333;
  transition: all 0.3s ease;
}

.coupon-container:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 242, 0, 0.4);
}

.coupon-code {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.coupon-desc {
  color: #666;
  font-size: 1rem;
}

.copy-btn {
  background: #333;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copy-btn:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.success-message {
  display: none;
  background: #4caf50;
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.redirect-message {
  display: none;
  background: #2196f3;
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
}

.timer {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.footer-text {
  color: #888;
  font-size: 0.9rem;
  margin-top: 20px;
  line-height: 1.5;
}

.sparkle {
  position: absolute;
  color: #fff200;
  animation: sparkle 2s ease-in-out infinite;
}

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

@media (max-width: 480px) {
  .container {
    margin: 10px;
    border-radius: 15px;
  }

  .header {
    padding: 25px 15px;
  }

  .logo {
    font-size: 2rem;
  }

  .content {
    padding: 30px 20px;
  }

  .coupon-code {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .offer-text {
    font-size: 1.3rem;
  }

  .copy-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}
