/* Use the original icon in each lockup and tint the supplied lettering with the site's text color. */
:is(header,aside) a[href="/"]:has(img[src="/logo.png"]) > :is(span,h1):last-child,
a.absolute[href="/"]:has(img[src="/logo.png"]) > h1,
footer a[href="/"]:has(> img[src="/logo.png"]) > span,
a.lr-footer-wordmark:has(img[src="/logo.png"]) {
  --lumina-lettering: url("/brand/lumina-wordmark-mask.png") center / contain no-repeat;
  font-size: 0 !important;
  letter-spacing: 0;
}
:is(header,aside) a[href="/"]:has(img[src="/logo.png"]) > :is(span,h1):last-child::after,
a.absolute[href="/"]:has(img[src="/logo.png"]) > h1::after,
footer a[href="/"]:has(> img[src="/logo.png"]) > span::after,
a.lr-footer-wordmark:has(img[src="/logo.png"])::after {
  content: "";
  display: block;
  width: var(--lumina-word-width,110px);
  aspect-ratio: 1830 / 369;
  background: currentColor;
  mask: var(--lumina-lettering);
  -webkit-mask: var(--lumina-lettering);
}
a.lr-footer-wordmark, footer a:has(> img[src="/logo.png"]) { --lumina-word-width: 77px; }
a.absolute[href="/"]:has(img[src="/logo.png"]) { --lumina-word-width: 88px; }

/* React already marks the selected network and the matching preset, including manual entry. */
.space-y-4:has(#usdt-topup-amount) > .grid > button.border-foreground {
  position: relative;
  border-color: #ac8110 !important;
  background: #fff1bf !important;
  color: #392a04 !important;
  box-shadow: inset 0 0 0 1px #ac8110;
}
.dark .space-y-4:has(#usdt-topup-amount) > .grid > button.border-foreground {
  border-color: #f5cf50 !important;
  background: #382f19 !important;
  color: #ffedac !important;
  box-shadow: inset 0 0 0 1px #f5cf50;
}
.space-y-4:has(#usdt-topup-amount) > .grid > button.border-foreground .text-muted-foreground { color: inherit; }
.space-y-4:has(#usdt-topup-amount) > .grid > button.border-foreground::after {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 640px) {
  .space-y-4:has(#usdt-topup-amount) > .grid-cols-2 > button {
    white-space: normal;
    text-align: left;
    padding-inline: 10px;
  }
  .space-y-4:has(#usdt-topup-amount) > .grid-flow-col {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
