/* LUXEN88 Settings Slide Popup V1: isolated presentation, home only. */
#luxen88-slide-popup-v1 {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 9, 22, .82);
  box-sizing: border-box;
}
#luxen88-slide-popup-v1, #luxen88-slide-popup-v1 * { box-sizing: border-box; }
#luxen88-slide-popup-v1 .lxsp-panel {
  width: min(650px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  position: relative;
  background: transparent;
  text-align: center;
}
#luxen88-slide-popup-v1 .lxsp-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, .50);
}
#luxen88-slide-popup-v1 button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
#luxen88-slide-popup-v1 .lxsp-close {
  position: absolute;
  top: -17px;
  right: -13px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0a2347;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 4px 13px rgba(0,0,0,.45);
}
#luxen88-slide-popup-v1 .lxsp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 9px;
  padding: 0;
  background: rgba(0, 18, 42, .8);
  color: #fff;
  font-size: 33px;
  line-height: 1;
}
#luxen88-slide-popup-v1 .lxsp-prev { left: 7px; }
#luxen88-slide-popup-v1 .lxsp-next { right: 7px; }
#luxen88-slide-popup-v1 .lxsp-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding-top: 12px;
}
#luxen88-slide-popup-v1 .lxsp-dot {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.50);
}
#luxen88-slide-popup-v1 .lxsp-dot[aria-current="true"] { background: #23d6f5; }
#luxen88-slide-popup-v1 button:focus-visible {
  outline: 3px solid #25d9ff;
  outline-offset: 3px;
}
/* V1R1 Mobile controls: keep all controls inside the safe viewport. */
@media (max-width: 640px) {
  #luxen88-slide-popup-v1 {
    padding: 14px 20px 18px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }
  #luxen88-slide-popup-v1 .lxsp-panel {
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding-top: 40px; /* Reserve a dedicated row for the close control. */
  }
  #luxen88-slide-popup-v1 .lxsp-image {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }
  #luxen88-slide-popup-v1 .lxsp-close {
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  #luxen88-slide-popup-v1 .lxsp-arrow {
    top: auto;
    bottom: 5px;
    transform: none;
    width: 30px;
    height: 30px;
    font-size: 24px;
    border-radius: 50%;
    background: rgba(0, 18, 42, .84);
  }
  #luxen88-slide-popup-v1 .lxsp-prev { left: 4px; }
  #luxen88-slide-popup-v1 .lxsp-next { right: 4px; }
  #luxen88-slide-popup-v1 .lxsp-dots {
    min-height: 44px;
    padding: 12px 42px 8px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  #luxen88-slide-popup-v1 .lxsp-dot {
    width: 9px;
    height: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #luxen88-slide-popup-v1 * { animation: none !important; transition: none !important; }
}
