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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #e0eafc, #cfdef3);
  font-family: 'Lato', sans-serif;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #e74c3c;
  margin-bottom: 30px;
  font-size: 2.2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#spin_the_wheel {
  position: relative;
  width: 90vw;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin-bottom: 30px;
}

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#spin {
  font: bold 1rem 'Lato', sans-serif;
  user-select: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20%;
  height: 20%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #333;
  box-shadow: 0 0 0 6px #fff, 0 0px 12px 4px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

#spin::after {
  content: "";
  position: absolute;
  top: -12px;
  border: 8px solid transparent;
  border-bottom-color: #e74c3c;
  border-top: none;
}


#result {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 15px 25px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  color: #27ae60;
  min-width: 70%;
}

.ewallet-text {
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInOut 5s ease-in-out infinite;
  z-index: 999;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .popup {
    font-size: 12px;
    padding: 8px 12px;
  }
}

.popup span {
  font-weight: bold;
  color: #007aff;
}

.winner-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.winner-form-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.winner-form h3 {
  color: #000;
  margin-bottom: 15px;
}

.winner-form p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.winner-form button {
  background: #27ae60;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  transition: background 0.3s;
}

.winner-form button:hover {
  background: #2ecc71;
}

/* Gaya header */
.header-text h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #e74c3c; /* atau gradien */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.persuasive-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #000;
}

.highlight {
  color: #e74c3c;
  font-weight: bold;
}

.timer-text {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #555;
}

.countdown {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.7);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}

.countdown {
  animation: pulse 2s infinite;
}

.countdown span {
  display: inline-block;
  min-width: 30px;
  text-align: center;
}

@keyframes fadeInOut {
  0% {opacity: 0; transform: translate(-50%, 20px);}
  10%, 90% {opacity: 1; transform: translate(-50%, 0);}
  100% {opacity: 0; transform: translate(-50%, 20px);}
}

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