/* ======= DARK ANIMATED BACKGROUND ======= */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  background: linear-gradient(135deg, #050505, #0a0a0a, #111, #0d0d0d);
  background-size: 200% 200%;
  animation: bgMove 12s ease infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ======= GLOW AURA ======= */
.bg-shape {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #1d9bf055, transparent 70%);
  filter: blur(120px);
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

/* ======= MAIN CARD ======= */
.container {
  position: relative;
  z-index: 5;

  padding: 40px;
  width: 360px;
  text-align: center;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(25px);

  box-shadow: 0 0 30px rgba(29, 155, 240, 0.25);
}

h1 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ======= INPUT / BUTTON ======= */
input {
  padding: 12px;
  width: 240px;
  border-radius: 12px;
  border: none;
  outline: none;

  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.95rem;
}

button {
  padding: 12px 22px;
  margin-top: 12px;
  border-radius: 12px;
  border: none;

  background: linear-gradient(135deg, #1d9bf0, #1476c8);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 0.95rem;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(29,155,240,0.45);
}

/* ======= RESULT BOX ======= */
#resultBox {
  margin-top: 30px;
  padding: 20px;
  border-radius: 16px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);

  display: none;
}

#verdict {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

#scoreText {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* ======= RISK BAR ======= */
.bar-wrapper {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
