.welcome-popup {
  position: fixed;
  top: 0; left: 0;
  width: 90%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
  animation: fadeIn 0.4s ease;
  padding: 20px;
  overflow-y: auto; /* ✅ przewijanie całego popupu */
}

.popup-inner {
  background: #0b0b0b;
  border: 1px solid #5af5a0;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(90,245,160,0.2);
  color: #1fad63;
  max-width: 700px;
  width: 90%;
  padding: 35px 40px;
  position: relative;
  text-align: center;
  line-height: 1.7;
  transform: scale(0.95);
  animation: zoomIn 0.4s ease forwards;
  scrollbar-width: thin;
  scrollbar-color: #5af5a0 #0b0b0b;
}

/* Scrollbar dla WebKit */
.popup-inner::-webkit-scrollbar {
  width: 6px;
}
.popup-inner::-webkit-scrollbar-track {
  background: #0b0b0b;
}
.popup-inner::-webkit-scrollbar-thumb {
  background-color: #5af5a0;
  border-radius: 10px;
}

.popup-inner h2 {
  color: #5af5a0;
  margin-bottom: 15px;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.popup-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #5af5a0;
  transition: 0.3s;
}
.popup-close:hover { color: #fff; }

.popup-btn {
  background: #5af5a0;
  color: #0b0b0b;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  cursor: pointer;
  margin-top: 25px;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.3s;
  position: sticky;
  bottom: 30px; /* ✅ przycisk wyżej */
}
.popup-btn:hover {
  background: #48d98d;
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoomIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .welcome-popup {
    align-items: flex-start;
    padding-top: 40px;
  }

  .popup-inner {
    width: 90%;
    padding: 25px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .popup-inner h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .popup-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    bottom: 40px; /* ✅ wyżej na tabletach */
  }

  .popup-close {
    right: 10px;
    top: 5px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .popup-inner {
    width: 90%;
    padding: 20px 15px;
    border-radius: 10px;
  }

  .popup-inner h2 {
    font-size: 1.2rem;
  }

  .popup-btn {
    font-size: 0.95rem;
    bottom: 50px; /* ✅ idealna pozycja dla telefonów */
  }
}
