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

:root {
  /* Changed color scheme from purple/blue to red/white */
  --primary-gradient: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
  --secondary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff1744 100%);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --accent-cyan: #ffd700;
  --accent-purple: #ff6b6b;
  --success-color: #10b981;
  --error-color: #ef4444;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  background: var(--primary-gradient);
  min-height: 100vh;
  position: relative;
}

.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  z-index: -2;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Updated radial gradients to use red tones */
  background: radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
  z-index: -1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 30px);
  }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  animation: fadeIn 0.8s ease-in;
}

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

/* Header */
.header {
  text-align: center;
  margin-bottom: 60px;
  animation: slideDown 0.6s ease-out;
}

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

.header-content {
  position: relative;
}

.logo-badge {
  display: inline-block;
  /* Updated badge gradient to red and gold */
  background: linear-gradient(135deg, #ff1744, #ffd700);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffffff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  user-select: none;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  margin-bottom: 20px;
}

.header-accent {
  width: 60px;
  height: 4px;
  /* Updated accent line to red and gold gradient */
  background: linear-gradient(90deg, #ff1744, #ffd700);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Progress Indicator */
.progress-container {
  margin-bottom: 70px;
  animation: fadeIn 0.8s ease-in 0.2s both;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
  opacity: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  position: relative;
}

.progress-step.active .step-number {
  /* Updated active step to red gradient */
  background: linear-gradient(135deg, #dc143c, #ff1744);
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.6);
  transform: scale(1.1);
}

.progress-step.completed .step-number {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.progress-line {
  width: 50px;
  height: 3px;
  background: var(--card-border);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* Hidden sections */
.hidden {
  display: none !important;
}

/* Channels Section */
.channels-section {
  margin-bottom: 60px;
  animation: fadeIn 0.8s ease-in 0.2s both;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.channel-btn {
  /* Updated channel button gradient to red tones */
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(255, 107, 107, 0.1));
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.channel-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.3), transparent);
  transition: left 0.5s ease;
}

.channel-btn:hover {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.25), rgba(255, 107, 107, 0.2));
  border-color: #ffd700;
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 23, 68, 0.5);
}

.channel-btn:hover::before {
  left: 100%;
}

.channel-icon {
  font-size: 1.5rem;
}

/* Channels Status */
.channels-status {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
}

.status-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.status-fill {
  height: 100%;
  /* Updated status bar to red gradient */
  background: linear-gradient(90deg, #dc143c, #ff1744);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.status-text {
  text-align: center;
  color: #ffd700;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Reward Slider Section */
.reward-section {
  margin-bottom: 60px;
  animation: fadeIn 0.8s ease-in 0.4s both;
}

.slider-container {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.slider-wrapper {
  width: 100%;
  max-width: 450px;
}

.slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  /* Updated slider background to red gradient */
  background: linear-gradient(90deg, #dc143c, #ff1744);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 15px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  /* Updated slider thumb to red and gold gradient */
  background: linear-gradient(135deg, #ff1744, #ffd700);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.7);
  transition: all 0.3s ease;
  border: 3px solid white;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.9);
}

.slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff1744, #ffd700);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.7);
  transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.9);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.reward-display {
  display: flex;
  justify-content: center;
}

.reward-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* Updated reward box gradient to red tones */
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.15), rgba(255, 107, 107, 0.1));
  padding: 30px 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 23, 68, 0.4);
}

.reward-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.reward-amount {
  font-size: 3rem;
  font-weight: 800;
  /* Updated reward amount to red and gold gradient */
  background: linear-gradient(135deg, #ff1744, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: pulse 0.5s ease-in-out;
}

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

/* Form Section */
.form-section {
  margin-bottom: 60px;
  animation: fadeIn 0.8s ease-in 0.6s both;
}

.form {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.form-group label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.form-group input {
  padding: 16px 20px 16px 45px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
  outline: none;
  /* Updated input focus border to red */
  border-color: #ff1744;
  background: rgba(255, 23, 68, 0.1);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.3);
}

.form-icon {
  position: absolute;
  left: 15px;
  top: 42px;
  font-size: 1.2rem;
  pointer-events: none;
}

/* Step buttons styling */
.step-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-direction: column;
}

.next-btn,
.submit-btn {
  /* Updated button gradient to red and gold */
  background: linear-gradient(135deg, #dc143c 0%, #ff1744 50%, #ffd700 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 23, 68, 0.5);
  position: relative;
  overflow: hidden;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  width: 100%;
  min-height: 56px;
}

.next-btn::before,
.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.next-btn:hover:not(:disabled)::before,
.submit-btn:hover::before {
  left: 100%;
}

.next-btn:hover:not(:disabled),
.submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(255, 23, 68, 0.7);
  background: linear-gradient(135deg, #ff1744 0%, #ffd700 50%, #ff6b6b 100%);
}

.next-btn:active:not(:disabled),
.submit-btn:active {
  transform: translateY(-2px);
}

.back-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 107, 107, 0.1));
  color: var(--text-secondary);
  border: 2px solid var(--card-border);
  position: relative;
  overflow: hidden;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  width: 100%;
  min-height: 50px;
}

.back-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.2), transparent);
  transition: left 0.6s ease;
}

.back-btn:hover::before {
  left: 100%;
}

.back-btn:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 23, 68, 0.15));
  border-color: #ffd700;
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(255, 23, 68, 0.4);
  color: var(--text-primary);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px;
  margin-top: 60px;
  animation: fadeIn 0.8s ease-in 0.8s both;
}

.footer-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.shimmer-text {
  /* Updated shimmer text to red and gold */
  background: linear-gradient(90deg, #ff1744, #ffd700, #ff1744);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.popup.hidden {
  display: none;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.popup-content {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  max-width: 450px;
  animation: slideUp 0.4s ease;
  position: relative;
  z-index: 1;
}

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

.popup-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 0.6s ease;
  display: inline-block;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.popup-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--success-color);
  font-weight: 700;
}

.popup-content p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 1rem;
}

.withdrawal-info {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid var(--success-color);
  margin-bottom: 30px !important;
  font-weight: 500;
}

.popup-close-btn {
  padding: 14px 40px;
  /* Updated popup button to red and gold gradient */
  background: linear-gradient(135deg, #dc143c 0%, #ff1744 50%, #ffd700 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 8px 25px rgba(255, 23, 68, 0.5);
  position: relative;
  overflow: hidden;
}

.popup-close-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);
  transition: left 0.6s ease;
}

.popup-close-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 23, 68, 0.7);
  background: linear-gradient(135deg, #ff1744 0%, #ffd700 50%, #ff6b6b 100%);
}

.popup-close-btn:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 40px 15px;
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .channels-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .channel-btn {
    padding: 16px;
    font-size: 0.8rem;
  }

  .slider-container {
    padding: 40px 30px;
  }

  .reward-box {
    padding: 25px 40px;
  }

  .reward-amount {
    font-size: 2.5rem;
  }

  .form {
    padding: 40px 30px;
  }

  .popup-content {
    margin: 20px;
    padding: 40px 30px;
  }

  .step-buttons {
    flex-direction: column;
  }

  .progress-steps {
    gap: 15px;
  }

  .progress-line {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .channel-btn {
    padding: 12px;
    font-size: 0.75rem;
  }

  .reward-amount {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .progress-step {
    gap: 5px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .slider-container {
    padding: 30px 20px;
  }

  .form {
    padding: 30px 20px;
  }

  .form-group input {
    padding: 14px 16px 14px 40px;
  }

  .form-icon {
    top: 38px;
    left: 12px;
  }
}
