/* ===============================
   OVERLAY
================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   POPUP BOX
================================ */
.popup-box {
  background: #fff;
  overflow: visible;
  position: relative;
  width: 100%;
  max-width: min(520px,92vw);
  max-height: min(90vh,700px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transform: scale(.9);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.popup-overlay.active .popup-box {
  transform: scale(1);
  opacity: 1;
}

/* ===============================
   CLOSE BUTTON
================================ */
.popup-close {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 26px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  transform: scale(.8) rotate(-90deg);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.popup-close.show {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

.popup-close:hover {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  transform: scale(1.05) rotate(90deg);
}

/* ===============================
   VIDEO + CONTENT
================================ */
.popup-video { padding: 12px; }
.popup-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}

.popup-content {
  padding: 16px;
  text-align: center;
  overflow-y: auto;
  position: relative;
  z-index: 5;
}

.order-btn {
  margin-top: 20px;
  padding: 12px 28px;
  background: #000;
  color: #fff;
  border-radius: 50px;
  display: inline-block;
  position: relative;
  z-index: 20;
  transform: none !important;
  transition: none !important;
}

/* DISABLE ALL HOVER EFFECTS */
.order-btn:hover,
.order-btn:focus,
.order-btn:active {
  background: #000;
  color: #fff;
  transform: none;
  box-shadow: none;
  opacity: 1;
}


/* ===============================
   MOBILE ADDITIONS
================================ */
@media (max-width: 768px) {
  .popup-box {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 14px;
    flex-direction: column;
  }

  .popup-close {
    width: 40px;
    height: 40px;
    font-size: 22px;
    background: #000;
    color: #fff;
  }

  .popup-close:hover {
    background: #000;
    color: #fff;
    transform: none;
  }

  @media (orientation: landscape) {
    .popup-box {
      flex-direction: row;
      max-width: 90vw;
      max-height: 80vh;
    }

    .popup-video {
      width: 70%;
      padding: 12px;
    }

    .popup-video iframe {
      width: 100%;
      height: 100%;
    }

    .popup-content {
      width: 30%;
      padding: 16px;
      overflow-y: auto;
    }
  }
}