.subscribe-float {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  background: #00000000;
  color: #fff;
  font-size: 1.25rem;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s ease, transform 0.3s ease;
}

.subscribe-float:hover {
  background: #222;
  transform: scale(1.05);
}

.subscribe-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.subscribe-modal.show {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.subscribe-modal.show .subscribe-box {
  animation: popup 0.35s ease-out forwards;
}

.subscribe-modal.hide .subscribe-box {
  animation: yeet 0.4s ease forwards;
}


.subscribe-box {
  background: #121212;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #f1f1f1;
  transform: translateY(30px);
  opacity: 0;
}

@keyframes popup {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes yeet {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-40px) scale(0.95) rotate(-3deg);
  }
  100% {
    opacity: 0;
    transform: translateY(120px) scale(0.8) rotate(6deg);
  }
}


.subscribe-modal.hide .subscribe-box {
  animation: yeet 0.4s ease forwards;
}

.subscribe-modal.hide {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.subscribe-box input {
  background: #1e1e1e;
  color: #f1f1f1;
  border: 1px solid #333;
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.subscribe-box input::placeholder {
  color: #888;
}

.subscribe-box button[type="submit"] {
  background: #fff;
  color: #000;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.subscribe-box button[type="submit"]:hover {
  background: #eaeaea;
}

.success-message {
  display: none;
  color: #4caf50;
  font-size: 0.9rem;
  margin-top: 1rem;
}

#subscribe-close {
  margin-top: 1rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.85rem;
}
