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

body {
  font-family: 'Poppins', sans-serif;
  background-image: url('https://images.rbxcdn.com/78413c0d5e05d6c36720ecc0c3013cbc-vignette.png'), url('https://images.rbxcdn.com/a19e4c27a0694a1d0fd5ceb17c978a7a-marketing_bg_05222025.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #ffffff;
  position: relative;
}

/* Dark overlay for readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.logo-wrapper {
  text-align: center;
  margin-bottom: 24px;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #00e676;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

/* Step transitions */
.step {
  display: none;
  opacity: 0;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.step.active {
  display: block;
}

.step.fade-out {
  animation: fadeOut 0.3s ease-in-out forwards;
}

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

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

/* STEP 1 - Hero/Landing Section */
.hero-title {
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.hero-subtitle {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-hero {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #000000;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.6), 0 0 20px rgba(0, 230, 118, 0.4);
}

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

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.username-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 17px;
  font-family: 'Poppins', sans-serif;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: #ffffff;
  transition: all 0.3s ease;
  outline: none;
  font-weight: 500;
}

.username-input:focus {
  border-color: #00e676;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
}

.username-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* STEP 2 - Scanning Animation */
.scanning-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: #00e676;
}

.username-display {
  text-align: center;
  font-size: 16px;
  color: #b0b0b0;
  margin-bottom: 32px;
}

.username-display span {
  color: #00e676;
  font-weight: 600;
}

.progress-container {
  margin-top: 40px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #0f0f0f;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00e676 0%, #00ffa3 100%);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

.status-text {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  min-height: 24px;
}

/* STEP 3 - Reward Selection */
.rewards-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: #00e676;
}

.rewards-subtitle {
  text-align: center;
  font-size: 16px;
  color: #b0b0b0;
  margin-bottom: 28px;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reward-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 2px solid #2a2a2a;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reward-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reward-card:hover::before {
  opacity: 1;
}

.reward-card:hover {
  border-color: #00e676;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.3), 0 0 15px rgba(0, 230, 118, 0.2);
}

.reward-card.popular {
  border-color: #00e676;
  background: linear-gradient(135deg, #1a2f1a 0%, #0f1f0f 100%);
}

.reward-card.premium {
  border-color: #ffd700;
}

.reward-card.premium:hover {
  border-color: #ffd700;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.popular-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #00e676;
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}

.robux-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.robux-amount {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.robux-label {
  font-size: 14px;
  font-weight: 600;
  color: #00e676;
}

/* STEP 3.5 - Generating Reward Screen */
.generating-container {
  text-align: center;
  padding: 40px 20px;
}

.spinner-large {
  margin: 0 auto 32px;
  width: 80px;
  height: 80px;
  border: 6px solid rgba(0, 230, 118, 0.15);
  border-top: 6px solid #00e676;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.generating-title {
  font-size: 30px;
  font-weight: 900;
  color: #00e676;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.generating-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  font-weight: 500;
}

.generating-subtitle span {
  color: #00e676;
  font-weight: 700;
}

.fast-progress-container {
  max-width: 400px;
  margin: 0 auto;
}

.fast-progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(0, 230, 118, 0.1);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 230, 118, 0.3);
  margin-bottom: 12px;
}

.fast-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00e676 0%, #00ffa3 100%);
  transition: width 0.1s linear;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

.fast-progress-text {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #00e676;
}

/* STEP 4 - Processing/Verification Screen */
.processing-container {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  margin: 0 auto 32px;
  width: 60px;
  height: 60px;
  border: 5px solid rgba(0, 230, 118, 0.2);
  border-top: 5px solid #00e676;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.processing-title {
  font-size: 28px;
  font-weight: 800;
  color: #00e676;
  margin-bottom: 16px;
}

.processing-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  line-height: 1.6;
}

.processing-subtitle span {
  color: #00e676;
  font-weight: 700;
}

.processing-username {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.processing-username span {
  color: #00e676;
  font-weight: 600;
}

.processing-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: 16px;
}

/* Mobile-First Optimizations */
@media (max-width: 480px) {
  .container {
    padding: 32px 20px;
  }
  
  .hero-title {
    font-size: 30px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .btn-hero {
    font-size: 18px;
    padding: 16px;
  }
  
  .rewards-title,
  .scanning-title,
  .generating-title,
  .processing-title {
    font-size: 24px;
  }
  
  .generating-subtitle {
    font-size: 15px;
  }
  
  .spinner-large {
    width: 60px;
    height: 60px;
  }
  
  .rewards-grid {
    gap: 12px;
  }
  
  .reward-card {
    padding: 20px 12px;
  }
  
  .robux-amount {
    font-size: 24px;
  }
  
  .robux-icon {
    font-size: 32px;
  }
}
}

@media (min-width: 481px) and (max-width: 768px) {
  .container {
    max-width: 540px;
  }
}

/* Glow effect for active elements */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.5);
  }
}

.reward-card.popular {
  animation: glow 2s infinite;
}

/* Live Activity Feed (Social Proof) */
.activity-feed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  width: 320px;
  max-width: calc(100vw - 40px);
}

.activity-notification {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-left: 4px solid #00e676;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateX(-120%);
  opacity: 0;
  transition: all 0.4s ease;
}

.activity-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.activity-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #00e676;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #000;
  font-weight: 900;
}

.activity-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.activity-text strong {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 480px) {
  .activity-feed {
    width: 280px;
    left: 10px;
    bottom: 10px;
  }
  
  .activity-notification {
    padding: 12px 14px;
  }
  
  .activity-text {
    font-size: 12px;
  }
}
