/* UGFOX site-specific changes requested on 2026-08-25. */
@media (min-width: 1280px) {
  header > div:first-child {
    min-height: 104px !important;
  }

  header nav a[href="/tc"],
  header nav a[data-ugphone-plan-link="true"],
  header nav a[data-ugphone-trial="true"] {
    padding: 14px 18px !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  header [data-ugphone-header-trial="true"] {
    min-width: 220px !important;
    min-height: 72px !important;
    padding: 18px 36px !important;
    border-radius: 16px !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    justify-content: center !important;
  }
}

[data-ugphone-hero-trial="true"] {
  min-height: 96px !important;
  padding: 22px 48px !important;
  border-radius: 20px !important;
  color: #fff !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
}

[data-ugphone-hero-trial="true"] * {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

[data-ugphone-plan-trial="true"] {
  min-width: 210px !important;
  min-height: 64px !important;
  padding: 14px 28px !important;
  border: 2px solid #4f46e5 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #6857f5 0%, #3947dc 100%) !important;
  box-shadow: 0 10px 24px rgba(65, 70, 220, 0.24) !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

[data-ugphone-plan-trial="true"] * {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

header nav a[href="/tc/news"],
header a[href*="shop.ugphone.com/pages/game-pass"],
header a[href*="shop.ugphone.com/products/roblox-robux"],
header button[aria-haspopup="menu"],
header button[data-ugfox-download-client="true"] {
  display: none !important;
}

/* The first four platform badges belong to the hero and are display-only. */
.hero .button-group [data-ugfox-display-only="true"] {
  cursor: default !important;
  pointer-events: none !important;
}

/* Remove the floating customer-service controls and their pop-up. */
#s-chat-plugin,
#s-chat-popup,
#sspWidget,
ssp-widget,
.ugfox-hidden-widget,
.ugfox-hidden-trial-dialog,
.ugphone-hidden-platform-buttons {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ugphone-trial-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(4px);
}

.ugphone-trial-modal.is-open {
  display: flex;
}

.ugphone-trial-card {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.ugphone-trial-title {
  margin: 0 36px 18px;
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.ugphone-trial-qr {
  display: block;
  width: min(340px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.ugphone-trial-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef4ff;
  color: #286fe8;
  font-size: 26px;
  line-height: 36px;
  cursor: pointer;
}

@media (max-width: 768px) {
  [data-ugphone-hero-trial="true"] {
    width: 100% !important;
    min-height: 76px !important;
    padding: 18px 20px !important;
    font-size: 28px !important;
    white-space: normal !important;
  }

  [data-ugphone-plan-trial="true"] {
    min-width: 184px !important;
    min-height: 56px !important;
    padding: 12px 22px !important;
    font-size: 22px !important;
  }

  .ugphone-trial-card {
    padding: 24px 18px 20px;
  }

  .ugphone-trial-title {
    font-size: 21px;
  }
}
