html.tokenova-home header.sticky.top-0.z-50,
body.tokenova-home header.sticky.top-0.z-50 {
  background: rgba(13, 31, 48, 0.68) !important;
  border-bottom: 1px solid rgba(118, 211, 255, 0.18) !important;
  box-shadow: 0 8px 28px rgba(3, 12, 23, 0.16) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
}

/* New UI public header: style the inner nav, keeping the fixed wrapper clear. */
html.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50,
body.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

html.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 nav,
body.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 nav {
  margin-top: 8px !important;
  padding-left: 16px !important;
  padding-right: 8px !important;
  border: 1px solid rgba(118, 211, 255, 0.2) !important;
  border-radius: 14px !important;
  background: rgba(13, 31, 48, 0.68) !important;
  box-shadow: 0 8px 28px rgba(3, 12, 23, 0.16) !important;
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
}

html.tokenova-home header.sticky.top-0.z-50,
body.tokenova-home header.sticky.top-0.z-50,
html.tokenova-home header.sticky.top-0.z-50 *:not(img):not(svg):not(path),
body.tokenova-home header.sticky.top-0.z-50 *:not(img):not(svg):not(path),
html.tokenova-home header.sticky.top-0.z-50 .semi-typography,
body.tokenova-home header.sticky.top-0.z-50 .semi-typography,
html.tokenova-home header.sticky.top-0.z-50 .semi-button,
body.tokenova-home header.sticky.top-0.z-50 .semi-button,
html.tokenova-home header.sticky.top-0.z-50 .semi-button-content,
body.tokenova-home header.sticky.top-0.z-50 .semi-button-content,
html.tokenova-home header.sticky.top-0.z-50 .semi-button-content span,
body.tokenova-home header.sticky.top-0.z-50 .semi-button-content span,
html.tokenova-home header.sticky.top-0.z-50 a,
body.tokenova-home header.sticky.top-0.z-50 a,
html.tokenova-home header.sticky.top-0.z-50 button,
body.tokenova-home header.sticky.top-0.z-50 button {
  color: rgba(255, 255, 255, 0.94) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94) !important;
}

html.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 nav *:not(img):not(svg):not(path),
body.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 nav *:not(img):not(svg):not(path),
html.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 nav a,
body.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 nav a,
html.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 nav button,
body.tokenova-home header.pointer-events-none.fixed.inset-x-0.top-0.z-50 nav button {
  color: rgba(255, 255, 255, 0.94) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.94) !important;
}

html.tokenova-home header.sticky.top-0.z-50 button,
body.tokenova-home header.sticky.top-0.z-50 button,
html.tokenova-home header.sticky.top-0.z-50 .semi-button,
body.tokenova-home header.sticky.top-0.z-50 .semi-button {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

html.tokenova-home header.sticky.top-0.z-50 img,
body.tokenova-home header.sticky.top-0.z-50 img {
  background: rgba(2, 6, 23, 0.65);
}

html.tokenova-home header.sticky.top-0.z-50 a:hover,
body.tokenova-home header.sticky.top-0.z-50 a:hover,
html.tokenova-home header.sticky.top-0.z-50 button:hover,
body.tokenova-home header.sticky.top-0.z-50 button:hover,
html.tokenova-home header.sticky.top-0.z-50 .semi-button:hover,
body.tokenova-home header.sticky.top-0.z-50 .semi-button:hover,
html.tokenova-home header.sticky.top-0.z-50 .semi-button:hover *,
body.tokenova-home header.sticky.top-0.z-50 .semi-button:hover * {
  color: #00f0ff !important;
  -webkit-text-fill-color: #00f0ff !important;
}

html.tokenova-home body > #root footer,
body.tokenova-home #root footer,
html.tokenova-home body > #root [class*="footer_html"],
body.tokenova-home #root [class*="footer_html"] {
  display: none !important;
}

.tokenova-support-popup {
  display: none;
}

html.tokenova-home .tokenova-support-popup,
body.tokenova-home .tokenova-support-popup,
html.tokenova-console .tokenova-support-popup,
body.tokenova-console .tokenova-support-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: block;
  width: 272px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 16, 28, 0.92);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

html.tokenova-home .tokenova-support-popup__close,
body.tokenova-home .tokenova-support-popup__close,
html.tokenova-console .tokenova-support-popup__close,
body.tokenova-console .tokenova-support-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

html.tokenova-home .tokenova-support-popup__eyebrow,
body.tokenova-home .tokenova-support-popup__eyebrow,
html.tokenova-console .tokenova-support-popup__eyebrow,
body.tokenova-console .tokenova-support-popup__eyebrow {
  font-size: 11px;
  letter-spacing: 0;
  color: rgba(150, 233, 255, 0.92);
  margin-bottom: 6px;
}

html.tokenova-home .tokenova-support-popup__title,
body.tokenova-home .tokenova-support-popup__title,
html.tokenova-console .tokenova-support-popup__title,
body.tokenova-console .tokenova-support-popup__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  padding-right: 26px;
}

html.tokenova-home .tokenova-support-popup__text,
body.tokenova-home .tokenova-support-popup__text,
html.tokenova-console .tokenova-support-popup__text,
body.tokenova-console .tokenova-support-popup__text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.9);
  margin: 0 0 12px;
}

html.tokenova-home .tokenova-support-popup__pay,
body.tokenova-home .tokenova-support-popup__pay,
html.tokenova-console .tokenova-support-popup__pay,
body.tokenova-console .tokenova-support-popup__pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00f0ff 0%, #0064fa 100%);
  color: #04111f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

html.tokenova-home .tokenova-support-popup__group,
body.tokenova-home .tokenova-support-popup__group,
html.tokenova-console .tokenova-support-popup__group,
body.tokenova-console .tokenova-support-popup__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.88);
  margin-bottom: 10px;
}

html.tokenova-home .tokenova-support-popup__community,
body.tokenova-home .tokenova-support-popup__community,
html.tokenova-console .tokenova-support-popup__community,
body.tokenova-console .tokenova-support-popup__community {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html.tokenova-home .tokenova-support-popup__qr,
body.tokenova-home .tokenova-support-popup__qr,
html.tokenova-console .tokenova-support-popup__qr,
body.tokenova-console .tokenova-support-popup__qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
}

html.tokenova-home .tokenova-support-popup__hint,
body.tokenova-home .tokenova-support-popup__hint,
html.tokenova-console .tokenova-support-popup__hint,
body.tokenova-console .tokenova-support-popup__hint {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: rgba(191, 219, 254, 0.92);
}

html.tokenova-home .tokenova-support-popup__promo,
body.tokenova-home .tokenova-support-popup__promo,
html.tokenova-console .tokenova-support-popup__promo,
body.tokenova-console .tokenova-support-popup__promo {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #ef4444;
}

/* Compact, readable layout for the new UI system notice popover. */
[data-slot="popover-content"] [data-slot="scroll-area"]:has(.prose.prose-sm) {
  height: auto !important;
  max-height: min(52vh, 28rem) !important;
}

[data-slot="popover-content"] .prose.prose-sm {
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.65;
}

[data-slot="popover-content"] .prose.prose-sm > p {
  margin: 0 0 14px !important;
}

[data-slot="popover-content"] .prose.prose-sm > p:first-child > strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

[data-slot="popover-content"] .prose.prose-sm blockquote {
  margin: 12px 0 18px !important;
  padding: 11px 13px !important;
  border-left: 3px solid #22c55e !important;
  border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, #22c55e 9%, var(--background));
  color: var(--foreground);
  font-style: normal;
}

[data-slot="popover-content"] .prose.prose-sm blockquote p {
  margin: 0 !important;
}

[data-slot="popover-content"] .prose.prose-sm hr {
  margin: 16px 0 !important;
  border-color: var(--border);
}

[data-slot="popover-content"] .prose.prose-sm p > strong:first-child {
  font-size: 15px;
}

[data-slot="popover-content"] .prose.prose-sm p > strong > a {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

[data-slot="popover-content"] .prose.prose-sm p > strong > a:hover {
  opacity: 0.88;
}

@media (max-width: 640px) {
  html.tokenova-home .tokenova-support-popup,
  body.tokenova-home .tokenova-support-popup,
  html.tokenova-console .tokenova-support-popup,
  body.tokenova-console .tokenova-support-popup {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 88px);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
  }

  html.tokenova-home .tokenova-support-popup__text,
  body.tokenova-home .tokenova-support-popup__text,
  html.tokenova-console .tokenova-support-popup__text,
  body.tokenova-console .tokenova-support-popup__text {
    overflow-wrap: anywhere;
  }

  html.tokenova-home .tokenova-support-popup__qr,
  body.tokenova-home .tokenova-support-popup__qr,
  html.tokenova-console .tokenova-support-popup__qr,
  body.tokenova-console .tokenova-support-popup__qr {
    width: 100%;
    max-height: 48vh;
    object-fit: contain;
  }
}
