:root {
  --zagrix-midnight: #07152f;
  --zagrix-cyan: #00e5ff;
  --zagrix-blue: #2563eb;
  --zagrix-violet: #8b5cf6;
  --zagrix-gold: #f7b955;
}

/* Replace every inline upstream header wordmark with ZagrixCrypto. */
.header__logo {
  display: none !important;
}

.zagrixcrypto-header-logo {
  display: inline-flex;
  align-items: center;
  min-width: 142px;
  height: 32px;
  padding-left: 38px;
  color: var(--zagrix-midnight);
  background-position: left center;
  background-size: 32px 32px;
  background-repeat: no-repeat;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

/* Remove the account-management plate requested for the branded UI. */
.account-management.navigation__plate {
  display: none !important;
}

/* Remove the payment promotional banner and its complete wrapper. */
.block.wrapper-block:has(.banner) {
  display: none !important;
}

/* Replace the old inline SVG embedded in the payment QR code. */
.zagrixcrypto-qr-logo {
  display: block;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  padding: 5px;
  object-fit: contain;
  background: #fff;
}

#loader {
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 229, 255, 0.16), transparent 34%),
    linear-gradient(145deg, #f8fbff, #eef2ff) !important;
}

#loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader-container img {
  width: min(280px, 66vw);
  height: auto;
  filter: drop-shadow(0 24px 52px rgba(37, 99, 235, 0.28));
  animation: zagrix-pulse 1.8s ease-in-out infinite;
}

/* The upstream bundle's MainLogoLoader contains the old animated mark. */
.animation {
  min-height: 180px;
  background: url("./zagrixcrypto-mark.png") center / contain no-repeat !important;
}

.animation > * {
  visibility: hidden !important;
}

@keyframes zagrix-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.88; }
  50% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #loader-container img { animation: none; }
}
