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

.scx-popup-open body {
  overflow: hidden;
}

.scx-popup {
  color: #0b1020;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  position: fixed;
  z-index: 9998;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}

.scx-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scx-popup-center {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.scx-popup-bottom_right {
  right: 22px;
  bottom: 22px;
}

.scx-popup-bottom_left {
  left: 22px;
  bottom: 22px;
}

.scx-popup-top_right {
  right: 22px;
  top: 22px;
}

.scx-popup-top_left {
  left: 22px;
  top: 22px;
}

.scx-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 20, .72);
  backdrop-filter: blur(10px);
}

.scx-popup-card {
  position: relative;
  width: min(940px, calc(100vw - 44px));
  min-height: 360px;
  max-height: calc(100vh - 44px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr);
  gap: 22px;
  align-items: center;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, .62);
  background:
    radial-gradient(circle at 78% 20%, rgba(111, 82, 255, .26), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f8f7ff 47%, #c4bbff 100%);
  box-shadow: 0 28px 90px rgba(7, 10, 28, .48);
  padding: 40px;
}

.scx-popup:not(.scx-popup-center) .scx-popup-card {
  width: min(440px, calc(100vw - 32px));
  min-height: 0;
  max-height: calc(100vh - 44px);
  grid-template-columns: 1fr;
  padding: 26px;
  border-radius: 26px;
}

.scx-popup-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 16, 32, .1);
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.scx-popup-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(126, 70, 255, .12);
  color: #4d2ee8;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scx-popup-copy h2 {
  max-width: 560px;
  margin: 22px 0 14px;
  color: #080d2a;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 900;
}

.scx-popup:not(.scx-popup-center) .scx-popup-copy h2 {
  font-size: 30px;
  line-height: 1.05;
  margin-top: 16px;
}

.scx-popup-copy p {
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(15, 23, 42, .78);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
}

.scx-popup:not(.scx-popup-center) .scx-popup-copy p {
  font-size: 14px;
}

.scx-popup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3cff, #345cff);
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(79, 70, 229, .34);
}

.scx-popup-media {
  position: relative;
  min-height: 260px;
  border-radius: 28px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 22px 60px rgba(17, 24, 39, .32);
}

.scx-popup-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.scx-popup:not(.scx-popup-center) .scx-popup-media {
  min-height: 160px;
  order: -1;
}

.scx-popup:not(.scx-popup-center) .scx-popup-media img {
  min-height: 160px;
}

.scx-popup-visual {
  position: relative;
  height: 300px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 50%, rgba(111, 82, 255, .7), transparent 34%),
    linear-gradient(135deg, #090e2d, #17225d);
  box-shadow: 0 22px 60px rgba(17, 24, 39, .32);
}

.scx-popup-live {
  position: absolute;
  left: 28px;
  top: 28px;
  padding: 10px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #345cff, #7c3cff);
  color: #fff;
  font-weight: 900;
}

.scx-popup-orbit {
  position: absolute;
  right: -70px;
  top: 38px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, .46);
  box-shadow: inset 0 0 0 30px rgba(99, 102, 241, .08), 0 0 0 42px rgba(99, 102, 241, .06);
}

.scx-popup-lines {
  position: absolute;
  left: 80px;
  top: 100px;
  width: 220px;
  display: grid;
  gap: 18px;
}

.scx-popup-lines span {
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

@media (max-width: 760px) {
  .scx-popup-center {
    align-items: end;
    padding: 14px;
  }

  .scx-popup-card {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 26px;
    border-radius: 26px;
  }

  .scx-popup-copy h2 {
    font-size: 36px;
  }

  .scx-popup-copy p {
    font-size: 15px;
  }

  .scx-popup-media,
  .scx-popup-media img,
  .scx-popup-visual {
    min-height: 180px;
    height: 180px;
    order: -1;
  }

  .scx-popup-bottom_right,
  .scx-popup-bottom_left,
  .scx-popup-top_right,
  .scx-popup-top_left {
    left: 14px;
    right: 14px;
  }
}
