:root {
  /* Dark premium background */
  --bg-void: #050508;
  --bg-dark: #0a0b0f;
  --bg-card: rgba(15, 16, 20, 0.85);

  /* Accent colors */
  --accent-primary: #00F0FF;
  /* Cyan */
  --accent-secondary: #7B61FF;
  /* Purple */
  --accent-success: #00E676;
  /* Green */
  --accent-warning: #FFB800;
  /* Gold */

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.3);

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.2);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  background: var(--bg-void);
  line-height: 1.6;
}

/* Animated gradient background */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 25% 22%, rgba(0, 240, 255, 0.15), transparent 50%),
    radial-gradient(circle at 75% 18%, rgba(123, 97, 255, 0.12), transparent 50%),
    radial-gradient(circle at 50% 60%, rgba(0, 230, 118, 0.08), transparent 60%);
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1) rotate(5deg);
  }
}

/* Floating particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s linear infinite;
}

.particle:nth-child(2) {
  left: 20%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-delay: -10s;
  animation-duration: 18s;
}

.particle:nth-child(4) {
  left: 60%;
  animation-delay: -15s;
  animation-duration: 22s;
}

.particle:nth-child(5) {
  left: 80%;
  animation-delay: -8s;
  animation-duration: 28s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Container */
.container {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Brand header */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: var(--shadow-glow);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.brand-text .title {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text .subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease-out 0.2s both;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

/* Banner */
.banner {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(123, 97, 255, 0.08));
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  animation: pulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '🎁';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  opacity: 0.1;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(0, 240, 255, 0);
  }
}

/* Typography */
h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.muted {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.muted strong {
  color: var(--accent-success);
  font-weight: 700;
}

/* Progress indicator */
.progress-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.step {
  width: 40px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.step.active {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Buttons */
.btnRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 480px) {
  .btnRow {
    grid-template-columns: 1fr 1fr;
  }

  .btnRow.single {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border-medium);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover:not(:disabled)::before {
  transform: translateX(100%);
}

.btnLight {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #0a0b0f;
  border-color: rgba(255, 255, 255, 0.2);
}

.btnLight:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btnDark {
  background: linear-gradient(135deg, #1a1b1f, #0f1013);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btnDark:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.3);
}

.btnPrimary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #0a0b0f;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.btnPrimary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.3);
}

/* Form elements */
label {
  display: block;
  margin-top: 20px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

input,
select {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-medium);
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

input::placeholder {
  color: var(--text-muted);
}

/* Error message */
.error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 90, 95, 0.3);
  background: rgba(255, 90, 95, 0.08);
  color: #ff9999;
  font-size: 14px;
  font-weight: 500;
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

/* Success message */
.success {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--accent-success);
  background: rgba(0, 230, 118, 0.08);
  color: var(--accent-success);
  font-size: 14px;
  font-weight: 500;
}

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

/* How it Works */
.how-it-works {
  margin-top: 24px;
  animation-delay: 0.4s;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 22px;
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--border-glow);
  background: rgba(0, 240, 255, 0.03);
  transform: translateX(4px);
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #0a0b0f;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.step-content strong {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.step-content p strong {
  display: inline;
  color: var(--accent-success);
  font-size: inherit;
  margin-bottom: 0;
}

/* Footer */
.foot {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  animation: fadeIn 0.6s ease-out 0.4s both;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px 40px;
  }

  .card {
    padding: 24px 20px;
  }

  h2 {
    font-size: 24px;
  }

  .brand-text .title {
    font-size: 20px;
  }

  .logo {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}