:root {
  --gradient-bg-start: #1a1a3d; 
  --gradient-bg-mid: #2a3c5a; 
  --gradient-bg-end: #3b5998; 
  --card-bg: rgba(255, 255, 255, 0.1); 
  --card-shadow: rgba(0, 0, 0, 0.5);
  --highlight-gradient: linear-gradient(45deg, #00f7ff, #ff4b91);
  --text-primary: #f0f4f8; 
  --text-accent: #00f7ff;
  --accent-shadow: rgba(0, 247, 255, 0.7);
  --step-inactive-bg: rgba(255, 255, 255, 0.2); 
  --step-active-bg: #ff4b91; 
  --button-hover-shadow: rgba(255, 75, 145, 0.7); 
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.3); 
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--gradient-bg-start) 0%,
    var(--gradient-bg-mid) 50%,
    var(--gradient-bg-end) 100%
  );
  color: var(--text-primary);
  font-family: "Poppins", system-ui, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
  animation: fadeInBG 2s ease-in-out;
}

@keyframes fadeInBG {
  from {
    filter: brightness(0.5) opacity(0);
  }
  to {
    filter: brightness(1) opacity(1);
  }
}

.card-container {
  width: 100%;
  max-width: 560px;
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: var(--card-bg);
  box-shadow: 0 16px 48px var(--card-shadow);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  animation: slideInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-container::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(0, 247, 255, 0.3), transparent 70%);
  border-radius: 50%;
  animation: rotateGlow 20s linear infinite;
  z-index: -1;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#title {
  color: var(--text-accent);
  font-size: 2.25rem;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
  animation: fadeInDown 1.2s ease;
  text-align: center;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
    .lang-container .dropdown-toggle {
      width: 40px;
      height: 40px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: linear-gradient(135deg, #6a11cb, #2575fc);
      color: white;
      border: none;
    }
    .lang-container .dropdown-toggle::after {
      display: none;
    }
    .lang-container .dropdown-menu {
      min-width: auto;
    }
    .lang-container .dropdown-item {
      font-size: 0.8rem;
      padding: 0.25rem 0.5rem;
    }
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.step-indicator .step {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--step-inactive-bg);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-indicator .step.active {
  background: var(--step-active-bg);
  color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 20px var(--button-hover-shadow);
  border-color: var(--step-active-bg);
  animation: pulseStep 1.5s infinite;
}

@keyframes pulseStep {
  0% { transform: scale(1.3); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.3); }
}

.btn-astro {
  border-radius: 3rem;
  font-size: 1.2rem;
  padding: 0.9rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.btn-primary.btn-astro {
  background: var(--highlight-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-shadow);
}

.btn-primary.btn-astro:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 20px 32px var(--button-hover-shadow);
  background: linear-gradient(45deg, #ff4b91, #00f7ff);
}

.btn-primary.btn-astro::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-30deg);
  transition: left 0.6s ease;
}

.btn-primary.btn-astro:hover::after {
  left: 150%;
}

.btn-outline-light.btn-astro {
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline-light.btn-astro:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.4);
}

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

input#acctInput {
  border-radius: 1rem;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1.15rem;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
}

input#acctInput:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-accent);
  box-shadow: 0 0 12px var(--accent-shadow);
}

.progress {
  height: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 1.5rem;
}

.progress-bar {
  transition: width 0.8s ease-in-out;
  background: var(--highlight-gradient);
  box-shadow: 0 0 15px var(--accent-shadow);
}

code {
  color: #111;
  background: var(--text-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1rem;
  word-break: break-all;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.hint-text {
  font-size: 1rem;
  color: var(--text-accent);
  margin: 1rem 0;
  min-height: 1.5rem;
  text-shadow: 0 0 6px var(--accent-shadow);
  animation: fadeInUp 1.2s ease;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2.5rem;
  text-align: center;
  line-height: 1.6;
  animation: fadeInUp 1.2s ease;
}

.footer-text a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.footer-text a:hover {
  color: #ff4b91;
  text-decoration: underline;
  transform: scale(1.05);
}

.social-links a {
  margin: 0 0.6rem;
  display: inline-block;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--highlight-gradient);
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 15px var(--button-hover-shadow);
}

#resultCard .alert {
  border-radius: 1.2rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  background: rgba(255, 75, 145, 0.2);
  color: var(--text-primary);
  animation: fadeInDown 1.2s ease;
  padding: 1.5rem;
}

#resultCard .alert h2 {
  font-size: 2rem;
  color: var(--text-accent);
  margin-bottom: 1rem;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-30deg);
  transition: left 0.7s ease;
}

.shine-effect:hover::after {
  left: 180%;
}

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

@media (max-width: 576px) {
  .card-container {
    padding: 1.5rem;
    margin: 1rem;
    max-width: 95%;
  }

  #title {
    font-size: 1.8rem;
  }

  .step-indicator .step {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  input#acctInput {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }

  .btn-astro {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
  }

  #resultCard .alert h2 {
    font-size: 1.6rem;
  }

  .hint-text {
    font-size: 0.9rem;
  }

  .footer-text {
    font-size: 0.75rem;
  }

  .social-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .card-container {
    padding: 1rem;
  }

  #title {
    font-size: 1.5rem;
  }

  .step-indicator .step {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }

  .btn-astro {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
}
