* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #f5f7fa;
  --bg-secondary: #e8ecf2;
  --accent-gold: #d4a500;
  --accent-gold-light: #ffc933;
  --accent-green: #00b86b;
  --accent-green-dark: #00995a;
  --accent-orange: #e85a2c;
  --accent-red: #e5274e;
  --accent-purple: #7c3aed;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 50%, #f0f4f8 100%);
  min-height: 100vh;
  color: var(--text-primary);
  padding-bottom: 40px;
  overflow-x: hidden;
}

/* Animated background particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 184, 107, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(212, 165, 0, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Status Bar */
.status-bar {
  background: linear-gradient(135deg, rgba(0, 184, 107, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
  backdrop-filter: blur(15px);
  padding: 12px 20px;
  margin: 12px;
  border-radius: 25px;
  font-size: 12px;
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(0, 184, 107, 0.3);
  animation: statusPulse 3s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 184, 107, 0.15);
    border-color: rgba(0, 184, 107, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 184, 107, 0.25);
    border-color: rgba(0, 184, 107, 0.5);
  }
}

.status-icon {
  color: var(--accent-green);
  animation: iconPulse 1.5s ease-in-out infinite;
  font-size: 10px;
}

@keyframes iconPulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-green);
  }
  50% {
    opacity: 0.6;
    text-shadow: 0 0 20px var(--accent-green);
  }
}

/* Title Section */
.title-section {
  text-align: center;
  padding: 25px 0 15px;
  position: relative;
}

.main-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #1a1a2e 0%, #d4a500 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(212, 165, 0, 0.2);
  animation: titleShine 3s linear infinite;
  background-size: 200% auto;
}

@keyframes titleShine {
  to { background-position: 200% center; }
}

.subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.tag {
  background: linear-gradient(135deg, rgba(232, 90, 44, 0.15) 0%, rgba(229, 39, 78, 0.15) 100%);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  border: 1px solid rgba(232, 90, 44, 0.3);
  backdrop-filter: blur(10px);
  animation: tagGlow 2s ease-in-out infinite;
}

.tag:nth-child(2) {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(0, 184, 107, 0.15) 100%);
  border-color: rgba(124, 58, 237, 0.3);
  animation-delay: 0.3s;
}

.tag:nth-child(3) {
  background: linear-gradient(135deg, rgba(212, 165, 0, 0.15) 0%, rgba(232, 90, 44, 0.15) 100%);
  border-color: rgba(212, 165, 0, 0.4);
  animation-delay: 0.6s;
}

@keyframes tagGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Unified Info Card */
.info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 16px 20px;
  margin: 20px 0;
  border: 2px solid rgba(212, 165, 0, 0.4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: cardShine 3s linear infinite;
}

@keyframes cardShine {
  to { left: 100%; }
}

.info-card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 15px;
}

.info-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 11px;
  color: #6a6a8a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #d4a500 0%, #00b86b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spins-dots {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  margin-left: 38px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 165, 0, 0.5);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.dot.used {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
  animation: none;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.info-card-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15), transparent);
  margin: 0 15px;
}

.info-card-right {
  text-align: center;
  min-width: 100px;
}

.info-card-right .countdown-label {
  font-size: 11px;
  color: #6a6a8a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-card-right .countdown-time {
  font-size: 28px;
  font-weight: 900;
  color: #e5274e;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.info-card-right .countdown-hint {
  font-size: 10px;
  color: #8a8aaa;
  margin-top: 2px;
}

/* Wheel Section */
.wheel-section {
  text-align: center;
  padding: 25px 0;
  position: relative;
}

.wheel-hint {
  font-size: 16px;
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-weight: 700;
  animation: hintPulse 1.5s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(212, 165, 0, 0.4);
  }
  50% {
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(212, 165, 0, 0.6);
  }
}

#spin_the_wheel {
  display: inline-block;
  position: relative;
  margin: 0 auto;
}

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 30px solid var(--accent-gold);
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
  animation: pointerPulse 1s ease-in-out infinite;
}

@keyframes pointerPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(3px); }
}

#wheel {
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px var(--accent-gold),
    0 0 0 12px rgba(212, 165, 0, 0.25),
    0 0 40px rgba(212, 165, 0, 0.3),
    0 0 60px rgba(124, 58, 237, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.15);
}

#spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 0 25px rgba(0, 184, 107, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 2px 6px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: spinPulse 2s ease-in-out infinite;
}

@keyframes spinPulse {
  0%, 100% {
    box-shadow:
      0 0 25px rgba(0, 184, 107, 0.4),
      0 8px 25px rgba(0, 0, 0, 0.2),
      inset 0 2px 6px rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow:
      0 0 40px rgba(0, 184, 107, 0.5),
      0 8px 25px rgba(0, 0, 0, 0.2),
      inset 0 2px 6px rgba(255, 255, 255, 0.4);
  }
}

#spin:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 0 40px rgba(0, 184, 107, 0.5),
    0 12px 35px rgba(0, 0, 0, 0.25),
    inset 0 2px 6px rgba(255, 255, 255, 0.5);
}

#spin:active {
  transform: translate(-50%, -50%) scale(0.95);
}

#spin.disabled {
  background: linear-gradient(135deg, #444 0%, #333 100%);
  cursor: not-allowed;
  pointer-events: none;
  animation: none;
}

.spin-status {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Prize Section */
.prize-section {
  margin: 35px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-green));
  border-radius: 2px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.prize-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.prize-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.prize-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 165, 0, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Social Proof */
.social-proof {
  margin: 30px 0;
}

.proof-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-left: 4px solid var(--accent-gold);
  padding: 14px 18px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 0 14px 14px 0;
  backdrop-filter: blur(10px);
  position: relative;
  animation: proofSlide 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.proof-item:nth-child(1) { animation-delay: 0.1s; }
.proof-item:nth-child(2) { animation-delay: 0.2s; }
.proof-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes proofSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.proof-item::before {
  content: '✓';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-green);
  font-weight: bold;
  font-size: 14px;
}

/* Disclaimer */
.disclaimer {
  text-align: center;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.4);
  line-height: 1.7;
  margin-top: 35px;
  padding: 0 15px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  padding: 35px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 2px solid rgba(212, 165, 0, 0.4);
  box-shadow:
    0 0 60px rgba(212, 165, 0, 0.2),
    0 30px 80px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 165, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(0, 184, 107, 0.4);
  animation: iconBounce 0.6s ease-out;
  color: white;
}

@keyframes iconBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.modal-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #1a1a2e 0%, #d4a500 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.prize-display {
  background: linear-gradient(135deg, rgba(212, 165, 0, 0.15) 0%, rgba(232, 90, 44, 0.1) 100%);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  border: 2px solid rgba(212, 165, 0, 0.4);
  position: relative;
}

.prize-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.prize-name {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(212, 165, 0, 0.3);
}

.modal-countdown {
  margin-bottom: 24px;
  background: rgba(232, 90, 44, 0.1);
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(232, 90, 44, 0.2);
}

.modal-countdown-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-countdown-time {
  font-size: 38px;
  font-weight: 900;
  color: var(--accent-orange);
  text-shadow: 0 0 20px rgba(232, 90, 44, 0.4);
  animation: urgentPulse 0.5s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.claim-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow:
    0 0 25px rgba(0, 184, 107, 0.35),
    0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow:
      0 0 25px rgba(0, 184, 107, 0.35),
      0 8px 25px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow:
      0 0 40px rgba(0, 184, 107, 0.5),
      0 8px 25px rgba(0, 0, 0, 0.15);
  }
}

.claim-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: btnShine 2s linear infinite;
}

@keyframes btnShine {
  to { left: 100%; }
}

.claim-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 40px rgba(0, 184, 107, 0.5),
    0 12px 35px rgba(0, 0, 0, 0.2);
}

.claim-btn:active {
  transform: translateY(0);
}

.modal-hint {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 18px;
}

/* Toast Notifications */
.toast {
  animation: toastSlideIn 0.4s ease forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Flash effect for countdown */
@keyframes flashRed {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 51, 102, 0);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 51, 102, 1), inset 0 0 30px rgba(255, 51, 102, 0.4);
    border-color: #ff3366;
  }
}

/* Minus one text animation */
.minus-one-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 56px;
  font-weight: 900;
  color: #e5274e;
  text-shadow: 0 0 30px rgba(229, 39, 78, 0.5), 0 0 60px rgba(229, 39, 78, 0.3);
  animation: minusOnePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

@keyframes minusOnePop {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Pulse red for countdown time */
@keyframes pulseRed {
  0%, 100% {
    transform: scale(1);
    color: #1a1a2e;
  }
  50% {
    transform: scale(1.15);
    color: #e5274e;
    text-shadow: 0 0 30px rgba(229, 39, 78, 0.5);
  }
}

/* Time particle glow */
.time-particle {
  filter: drop-shadow(0 0 20px rgba(212, 165, 0, 0.6));
}

/* Confetti animation */
@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* Toast animations */
@keyframes toastIn {
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  to {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 390px) {
  .main-title {
    font-size: 24px;
  }

  .countdown-time {
    font-size: 44px;
  }

  #wheel {
    width: 280px;
    height: 280px;
  }

  #spin {
    width: 85px;
    height: 85px;
    font-size: 13px;
  }

  .modal-title {
    font-size: 28px;
  }

  .prize-name {
    font-size: 22px;
  }
}
