/* Modal dengan gambar <img> fullscreen */
.modern-modal-img {
  position: fixed;
  z-index: 9999;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-modal-img .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.modal-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.modal-content-box h1,
.modal-content-box h5,
.modal-content-box p {
  color: #fff;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,0.6);
  margin: 1.5rem 0;
}

.btn-invite {
  margin-top: 1.5rem;
  padding: 12px 40px;
  border-radius: 30px;
  border: none;
  background: #a67c52;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn-invite:hover {
  background: #8c6239;
}

/* Animasi tetap sama */
.fade-in {
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }

@keyframes fadeInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
  .modal-content-box h1 {
    font-size: 2.1rem;
  }

  .profile-img {
    width: 140px;
    height: 140px;
  }

  .btn-invite {
    width: 100%;
  }
}
