/* QPLUS HOME WELCOME POPUP V1 */
.qplus-home-welcome-lock { overflow: hidden !important; }
.qplus-home-welcome-v1 {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  background: rgba(18, 8, 28, .72);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease;
  box-sizing: border-box;
}
.qplus-home-welcome-v1.is-open { opacity: 1; visibility: visible; }
.qplus-home-welcome-v1__panel {
  position: relative; width: min( min( min(100%, 390px), calc((100dvh - 32px) * .5625) ) );
  max-height: calc(100dvh - 24px); display: flex; justify-content: center;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.4));
}
.qplus-home-welcome-v1__register { display: block; width: 100%; max-height: calc(100dvh - 24px); }
.qplus-home-welcome-v1__register img {
  display: block; width: 100%; height: auto; max-height: calc(100dvh - 24px);
  object-fit: contain; border-radius: 12px;
}
.qplus-home-welcome-v1__close {
  position: absolute; z-index: 2; top: 7px; right: 7px;
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%; background: rgba(35,18,48,.86); color: #fff;
  font: 700 27px/30px Arial,sans-serif; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
@media (max-width: 480px) {
  .qplus-home-welcome-v1 { padding-left: 12px; padding-right: 12px; }
  .qplus-home-welcome-v1__panel { width: min(100%, calc((100dvh - 28px) * .5625)); }
  .qplus-home-welcome-v1__register img { border-radius: 10px; }
}

/* QPLUS HOME WELCOME POPUP SIZE V2
   Homepage popup only. Preserve image ratio and existing JS.
*/
.qplus-home-welcome-v1__panel {
  width: min(360px, 78vw, calc(78dvh * 0.5625)) !important;
  max-width: 78vw !important;
  max-height: 78dvh !important;
}

.qplus-home-welcome-v1__register {
  width: 100% !important;
  max-height: 78dvh !important;
}

.qplus-home-welcome-v1__register img {
  width: 100% !important;
  height: auto !important;
  max-height: 78dvh !important;
  object-fit: contain !important;
}

.qplus-home-welcome-v1__close {
  top: 6px !important;
  right: 6px !important;
}

@media (max-width: 480px) {
  .qplus-home-welcome-v1 {
    padding: max(10px, env(safe-area-inset-top))
             11px
             max(10px, env(safe-area-inset-bottom)) !important;
  }

  .qplus-home-welcome-v1__panel {
    width: min(78vw, 360px, calc(78dvh * 0.5625)) !important;
    max-height: 78dvh !important;
  }

  .qplus-home-welcome-v1__register img {
    max-height: 78dvh !important;
    border-radius: 10px;
  }
}
