/* Omni 0.2.65 — return Premium to a restrained centered window.
   It is only slightly wider than the original 0.2.63 modal. All content
   is balanced in the available area, without scrolling in desktop sizes. */

#nexoPremiumDialog {
  position:fixed;
  inset:0;
  display:block;
  width:min(1140px,calc(100vw - 56px));
  height:min(704px,calc(100dvh - 52px));
  max-width:calc(100vw - 26px);
  max-height:calc(100dvh - 26px);
  min-width:0;min-height:0;
  margin:auto;
  border:1px solid rgba(220,180,103,.45);
  border-radius:17px;
  box-shadow:0 30px 95px #000b,inset 0 1px #ffdda32a;
  background:#171619;
  overflow:hidden;
}
#nexoPremiumDialog:not([open]) {display:none!important}
#nexoPremiumDialog::backdrop {
  background:rgba(6,7,10,.64);
  backdrop-filter:blur(5px);
}
#nexoPremiumDialog .nexo-premium-shell {
  display:grid;
  grid-template-rows:53px minmax(0,1fr);
  width:100%;height:100%;min-height:0;
}
#nexoPremiumDialog .nexo-premium-header {
  gap:12px;
  padding-inline:clamp(17px,2.5vw,32px);
}
#nexoPremiumDialog .nexo-premium-top-preview {
  font-size:9px;
  letter-spacing:.04em;
}
#nexoPremiumDialog .nexo-premium-scroll {
  display:grid;
  grid-template-rows:clamp(139px,23%,164px) minmax(0,1fr) 41px;
  min-height:0;
  overflow:hidden;
  scrollbar-width:none;
}
#nexoPremiumDialog .nexo-premium-scroll::-webkit-scrollbar{display:none}
#nexoPremiumDialog .nexo-premium-hero {
  height:100%;min-height:0;
  grid-template-columns:minmax(0,1.45fr) minmax(170px,.55fr);
  gap:14px;
  padding:12px clamp(20px,3vw,35px);
  align-items:center;
}
#nexoPremiumDialog .nexo-premium-hero h2 {
  font-size:clamp(26px,2.65vw,37px);
  letter-spacing:-.042em;line-height:1.03;
  margin:0 0 5px;
}
#nexoPremiumDialog .nexo-premium-eyebrow {margin:0 0 7px}
#nexoPremiumDialog .nexo-premium-hero-copy>p {
  font-size:11px;line-height:1.36;
  margin:0 0 4px;max-width:600px;
}
#nexoPremiumDialog .nexo-premium-hero-note {
  display:none;
}
#nexoPremiumDialog .nexo-premium-hero-feature {
  font-size:9px;
  min-height:25px;
  padding:5px 10px;
  margin-top:5px;
  gap:7px;
}
#nexoPremiumDialog .nexo-premium-crown-scene {
  height:100%;min-height:0;
  max-height:150px;
}
#nexoPremiumDialog .nexo-premium-crown-scene>svg {
  height:clamp(104px,12.3dvh,133px);
  width:clamp(114px,13vw,148px);
}
#nexoPremiumDialog .nexo-premium-crown-platform {
  font-size:8px;
}
#nexoPremiumDialog .nexo-premium-body {
  min-width:0;min-height:0;overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(276px,28.5%,323px);
  gap:clamp(12px,1.7vw,22px);
  padding:11px clamp(17px,2.4vw,29px) 7px;
  align-items:stretch;
}
#nexoPremiumDialog .nexo-premium-benefits {
  min-height:0;min-width:0;
  display:flex;flex-direction:column;
}
#nexoPremiumDialog .nexo-premium-section-top {
  min-height:35px;
  margin:0 0 8px;
  gap:10px;
}
#nexoPremiumDialog .nexo-premium-section-top h3 {
  font-size:20px;margin:3px 0 0;
}
#nexoPremiumDialog .nexo-premium-section-kicker {
  font-size:8px;
}
#nexoPremiumDialog .nexo-premium-feature-grid {
  min-height:0;min-width:0;
  display:grid;flex:1;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));
  gap:7px;
}
#nexoPremiumDialog .nexo-premium-feature {
  display:flex;align-items:center;
  min-width:0;min-height:0;
  gap:9px;
  padding:9px 11px;
}
#nexoPremiumDialog .nexo-premium-feature-icon {
  flex:none;width:31px;height:31px;
  font-size:18px;border-radius:8px;
}
#nexoPremiumDialog .nexo-premium-feature h4 {
  font-size:11px;line-height:1.19;
  margin:0 0 3px;
}
#nexoPremiumDialog .nexo-premium-feature p {
  font-size:9.4px;line-height:1.3;
  margin:0 0 3px;
}
#nexoPremiumDialog .nexo-premium-feature small {
  font-size:8px;line-height:1.1;
}
#nexoPremiumDialog .nexo-premium-feature--stream {
  grid-column:span 2;
  gap:12px;
  padding:10px 15px;
}
#nexoPremiumDialog .nexo-premium-feature--stream h4 {
  font-size:17px;margin:0 0 3px;
}
#nexoPremiumDialog .nexo-premium-feature--stream p{
  max-width:590px;
  font-size:10px;line-height:1.28;
}
#nexoPremiumDialog .nexo-premium-stream-eyebrow{
  font-size:8px;margin:0 0 3px;
}
#nexoPremiumDialog .nexo-premium-stream-quality {
  min-width:82px;
  padding:6px 12px;
}
#nexoPremiumDialog .nexo-premium-stream-quality b{
  font-size:30px;
}
#nexoPremiumDialog .nexo-premium-foot-note {
  flex:none;
  margin:7px 0 0;
  padding:7px 10px;
  min-height:0;
}
#nexoPremiumDialog .nexo-premium-foot-note p{
  font-size:9.3px;line-height:1.35;
}
#nexoPremiumDialog .nexo-premium-checkout {
  min-width:0;min-height:0;
  max-height:100%;height:100%;
  align-self:stretch;
  display:flex;flex-direction:column;
  padding:13px 16px;
  border-radius:13px;
}
#nexoPremiumDialog .nexo-premium-checkout-top {font-size:9px}
#nexoPremiumDialog .nexo-premium-checkout h3 {
  margin:7px 0 2px;font-size:26px;
}
#nexoPremiumDialog .nexo-premium-checkout-subtitle {
  font-size:9.7px;line-height:1.35;
}
#nexoPremiumDialog .nexo-premium-price-row {
  margin:8px 0 2px;gap:7px;
}
#nexoPremiumDialog .nexo-premium-price-row strong {font-size:39px}
#nexoPremiumDialog .nexo-premium-billing {
  font-size:9.7px;line-height:1.35;
}
#nexoPremiumDialog .nexo-premium-divider {margin:10px 0}
#nexoPremiumDialog .nexo-premium-what-you-get {
  display:grid;gap:6px;
}
#nexoPremiumDialog .nexo-premium-what-you-get span{
  font-size:10px;line-height:1.25;
}
#nexoPremiumDialog .nexo-premium-membership{
  margin:12px 0 7px;padding:7px 9px;
  font-size:9.7px;line-height:1.3;
}
#nexoPremiumDialog .nexo-premium-buy {
  flex:none;height:42px;min-height:42px;
}
#nexoPremiumDialog .nexo-premium-feedback {
  margin:7px 0 0;
  font-size:9.4px;line-height:1.32;
}
#nexoPremiumDialog .nexo-premium-payment-note{
  margin:8px 0 0;
  font-size:9px;line-height:1.35;
}
#nexoPremiumDialog .nexo-premium-footer {
  min-height:0;
  margin:0 clamp(17px,2.4vw,29px);
  padding:6px 0;
  align-items:center;
}
#nexoPremiumDialog .nexo-premium-footer button {
  padding:7px 10px;
}
/* Desktop laptop heights, including 800x600: retain readability. */
@media(max-height:760px) and (min-width:761px){
  #nexoPremiumDialog .nexo-premium-shell {
    grid-template-rows:48px minmax(0,1fr);
  }
  #nexoPremiumDialog .nexo-premium-scroll {
    grid-template-rows:clamp(112px,22%,140px) minmax(0,1fr) 35px;
  }
  #nexoPremiumDialog .nexo-premium-hero {padding-block:7px}
  #nexoPremiumDialog .nexo-premium-hero h2 {
    font-size:clamp(25px,2.6vw,32px);
    margin:0 0 3px;
  }
  #nexoPremiumDialog .nexo-premium-hero h2 br {display:none}
  #nexoPremiumDialog .nexo-premium-eyebrow{margin-bottom:3px}
  #nexoPremiumDialog .nexo-premium-hero-copy>p{
    font-size:9.5px;line-height:1.26;margin-bottom:2px;
  }
  #nexoPremiumDialog .nexo-premium-hero-feature {
    margin-top:4px;padding:3px 8px;min-height:21px;font-size:9px;
  }
  #nexoPremiumDialog .nexo-premium-crown-scene>svg{
    height:clamp(85px,13dvh,115px);
  }
  #nexoPremiumDialog .nexo-premium-body {
    padding-block:8px 6px;
  }
  #nexoPremiumDialog .nexo-premium-section-top {
    min-height:29px;margin-bottom:6px;
  }
  #nexoPremiumDialog .nexo-premium-section-top h3{font-size:17px}
  #nexoPremiumDialog .nexo-premium-feature-grid{gap:5px}
  #nexoPremiumDialog .nexo-premium-feature{padding:7px 9px}
  #nexoPremiumDialog .nexo-premium-feature p{font-size:9px;line-height:1.25}
  #nexoPremiumDialog .nexo-premium-foot-note{
    margin-top:5px;padding:6px 8px;
  }
  #nexoPremiumDialog .nexo-premium-checkout{padding:9px 12px}
  #nexoPremiumDialog .nexo-premium-checkout h3{font-size:23px;margin:5px 0 0}
  #nexoPremiumDialog .nexo-premium-price-row{margin:5px 0 0}
  #nexoPremiumDialog .nexo-premium-price-row strong{font-size:34px}
  #nexoPremiumDialog .nexo-premium-divider{margin:7px 0}
  #nexoPremiumDialog .nexo-premium-what-you-get{gap:4px}
  #nexoPremiumDialog .nexo-premium-membership{
    margin:7px 0 5px;padding:6px 8px;
  }
  #nexoPremiumDialog .nexo-premium-buy{
    height:37px;min-height:37px;
  }
  #nexoPremiumDialog .nexo-premium-feedback{
    margin:5px 0 0;font-size:9px;
  }
  #nexoPremiumDialog .nexo-premium-payment-note{
    margin:6px 0 0;font-size:8.8px;line-height:1.3;
  }
  #nexoPremiumDialog .nexo-premium-footer{padding:4px 0}
}
/* Widescreen but somewhat narrow app windows. */
@media(min-width:761px) and (max-width:1040px){
  #nexoPremiumDialog .nexo-premium-body {
    grid-template-columns:minmax(0,1fr) 265px;
    gap:12px;padding-inline:17px;
  }
  #nexoPremiumDialog .nexo-premium-footer{margin-inline:17px}
  #nexoPremiumDialog .nexo-premium-hero {padding-inline:17px}
  #nexoPremiumDialog .nexo-premium-feature-icon:not(.nexo-premium-feature-icon--stream) {
    width:27px;height:27px;
  }
  #nexoPremiumDialog .nexo-premium-feature h4{font-size:10px}
  #nexoPremiumDialog .nexo-premium-feature p{font-size:9px}
  #nexoPremiumDialog .nexo-premium-stream-quality {
    min-width:75px;padding:5px 8px;
  }
}
/* Very small Omni window: keep centered dialog and permit internal scrolling
   only when essential for legibility, rather than hiding the purchase button. */
@media(max-width:760px){
  #nexoPremiumDialog {
    width:calc(100vw - 26px);
    height:min(704px,calc(100dvh - 26px));
    border-radius:13px;
  }
  #nexoPremiumDialog .nexo-premium-shell {
    grid-template-rows:50px minmax(0,1fr);
  }
  #nexoPremiumDialog .nexo-premium-scroll {
    display:block;overflow-y:auto;
    scrollbar-width:thin;scrollbar-color:#6d5a3a transparent;
  }
  #nexoPremiumDialog .nexo-premium-hero {
    grid-template-columns:minmax(0,1fr);
    padding:16px 19px;height:auto;
  }
  #nexoPremiumDialog .nexo-premium-crown-scene {display:none}
  #nexoPremiumDialog .nexo-premium-body {
    grid-template-columns:1fr;
    padding:14px 18px;gap:12px;
  }
  #nexoPremiumDialog .nexo-premium-benefits{min-height:auto}
  #nexoPremiumDialog .nexo-premium-feature-grid {
    flex:none;grid-template-rows:repeat(3,minmax(96px,auto));
  }
  #nexoPremiumDialog .nexo-premium-feature {
    min-height:96px;height:auto;
  }
  #nexoPremiumDialog .nexo-premium-checkout{
    height:auto;max-height:none;
  }
  #nexoPremiumDialog .nexo-premium-footer {
    margin-inline:18px;
    min-height:45px;
  }
}
@media(max-width:500px){
  #nexoPremiumDialog .nexo-premium-feature-grid {
    grid-template-columns:1fr;grid-template-rows:none;
    grid-auto-rows:minmax(79px,auto);
  }
  #nexoPremiumDialog .nexo-premium-feature--stream{grid-column:auto}
  #nexoPremiumDialog .nexo-premium-feature{
    min-height:79px;
  }
  #nexoPremiumDialog .nexo-premium-hero-feature {
    white-space:normal;flex-wrap:wrap;
  }
}

/* A single-line headline avoids an oversized empty hero and clipping the 2K chip. */
#nexoPremiumDialog .nexo-premium-hero h2 br{display:none}

/* Compact 576px-high desktop windows: remove unnecessary checkout gaps. */
@media(max-height:630px) and (min-width:761px){
  #nexoPremiumDialog .nexo-premium-checkout{padding:7px 10px}
  #nexoPremiumDialog .nexo-premium-mini-crown{width:23px;height:23px;font-size:15px}
  #nexoPremiumDialog .nexo-premium-checkout h3{
    font-size:19px;margin:0;line-height:1.1;
  }
  #nexoPremiumDialog .nexo-premium-price-row{margin:2px 0 0}
  #nexoPremiumDialog .nexo-premium-price-row strong{font-size:29px}
  #nexoPremiumDialog .nexo-premium-billing{font-size:9px;line-height:1.2}
  #nexoPremiumDialog .nexo-premium-divider{margin:4px 0}
  #nexoPremiumDialog .nexo-premium-what-you-get{gap:2px}
  #nexoPremiumDialog .nexo-premium-what-you-get span{font-size:9px}
  #nexoPremiumDialog .nexo-premium-membership{
    font-size:9px;margin:4px 0;padding:4px 7px;line-height:1.22;
  }
  #nexoPremiumDialog .nexo-premium-buy{height:34px;min-height:34px}
  #nexoPremiumDialog .nexo-premium-feedback{
    margin:3px 0 0;font-size:8.8px;line-height:1.2;
  }
  #nexoPremiumDialog .nexo-premium-payment-note{
    margin-top:4px;font-size:8.4px;line-height:1.22;
  }
}

/* Distribute the purchase information rather than leaving dead space below it. */
#nexoPremiumDialog .nexo-premium-checkout{
  justify-content:space-between;
}
@media(min-width:1041px){
  #nexoPremiumDialog .nexo-premium-feature h4{font-size:12px}
  #nexoPremiumDialog .nexo-premium-feature p{font-size:10px}
}
