.mgr-home-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mgr-home-popup[hidden] {
  display: none !important;
}

.mgr-home-popup__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.mgr-home-popup__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: min(80vh, 560px);
  overflow: auto;
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  padding: 20px 20px 16px;
}

.mgr-home-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mgr-home-popup__body {
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.mgr-home-popup__body img {
  max-width: 100%;
  height: auto;
}

.mgr-home-popup__btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #e50914;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .mgr-home-popup__panel {
    background: #1e1e28;
    color: #f0f0f5;
  }
}
