/* Modal Base */
.Airdropmodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: flex-end;
  color: #fff;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

/* Show modal when active */
.Airdropmodal.active {
  display: flex;
}

/* Modal Content Box */
.Airdropmodal-content {
  width: 90%;
  max-width: 400px;
  height: 70vh;
  margin: -40px auto;
  padding: 30px;
  background-color: #003248;
  border-top: 0.6vw solid var(--score-border-color);
  border-radius: 10vw;
  color: var(--score-text-color);
  font-size: 1.3em;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(0, 255, 179, 0.5);
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: glowPulse 2.5s ease-in-out infinite;
  z-index: 10000;
  text-align: center;
  position: relative;
}

/* Slide Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Animation Triggers */
.Airdropmodal-content.slide-up {
  animation: slideUp 0.4s ease-out forwards;
}

.Airdropmodal-content.slide-down {
  animation: slideDown 0.4s ease-in forwards;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 8px #00ff99cc;
  }
  50% {
    box-shadow: 0 0 20px #00ff99ff;
  }
}

/* Close Button */
.closeBtnAirdrop {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #00ff99;
  cursor: pointer;
  transition: color 0.3s;
  touch-action: manipulation;
}
.closeBtnAirdrop:hover {
  color: #00cc77;
}

/* Claim Button */
.claim-button {
  background-color: #ffa500;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 24px;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 14px #ffa500aa;
  user-select: none;
}

.claim-button:hover,
.claim-button:focus {
  background-color: #e69500;
  box-shadow: 0 0 16px #e69500cc;
  outline: none;
}

/* Disabled state for claim button */
.claim-button:disabled {
  background-color: #555555;
  box-shadow: none;
  cursor: not-allowed;
  color: #bbbbbb;
}

/* Claim Message */
.claim-message {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: #ffcc00;
  text-shadow: 0 0 8px #ffcc0077;
  user-select: text;
  min-height: 24px; /* prevent layout shift */
}

/* Responsive tweak */
@media (max-width: 400px) {
  .Airdropmodal-content {
    width: 95%;
    padding: 20px 16px;
    font-size: 1.1em;
    margin-bottom: 60px;
  }

  .claim-button {
    padding: 12px 22px;
    font-size: 15px;
  }
}