:root {
  --pgp-logo-mark-url: url("/PostgeniusPro/assets/pg-logo-icon.png");
}

a[aria-label="Postgenius Pro Home"] {
  align-items: center;
}

a[aria-label="Postgenius Pro Home"] > svg.logo-glow {
  display: none !important;
}

a[aria-label="Postgenius Pro Home"]::before {
  content: "";
  display: block;
  width: clamp(2.35rem, 4vw, 2.95rem);
  height: clamp(2.35rem, 4vw, 2.95rem);
  flex: 0 0 auto;
  background: var(--pgp-logo-mark-url) center / contain no-repeat;
}

.pgp-mark-img,
.pgp-logo-cube img,
.pgp-brand-logo img,
img[data-pgp-brand-logo="mark"] {
  background: transparent !important;
  object-fit: contain;
}

.pgp-mark-img,
.pgp-brand-logo img,
img[data-pgp-brand-logo="mark"] {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pgp-tren-bridge {
  gap: 8px !important;
  color: #dff9ff !important;
  border-color: rgba(0, 243, 255, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(0, 243, 255, 0.12), rgba(255, 255, 255, 0.035)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pgp-tren-bridge::before {
  content: "<";
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  flex: 0 0 auto;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.pgp-tren-bridge:hover {
  color: #001014 !important;
  border-color: rgba(0, 243, 255, 0.78) !important;
  background: #00f3ff !important;
}

.pgp-tren-home-link {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 243, 255, 0.38);
}

.pgp-tren-home-link:hover {
  color: #00f3ff;
  border-bottom-color: currentColor;
}

.pgp-logo-cube {
  overflow: visible;
  will-change: auto;
}

.pgp-logo-cube img {
  filter: none;
}

.pgp-logo-orbit {
  position: relative;
  display: inline-grid;
  place-items: center;
  isolation: isolate;
}

.pgp-logo-orbit > img,
.pgp-logo-orbit .pgp-logo-core {
  position: relative;
  z-index: 3;
}

.pgp-logo-orbit::before,
.pgp-logo-orbit::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -20%;
  border: 1px solid rgba(0, 243, 255, 0.5);
  border-radius: 999px;
  pointer-events: none;
  transform: rotate(-18deg);
  transform-origin: 50% 50%;
  will-change: transform;
  animation: pgpBrandOrbitCw 24s linear infinite;
}

.pgp-logo-orbit::after {
  inset: -28%;
  opacity: 0.55;
  border-color: rgba(123, 241, 255, 0.35);
  transform: rotate(64deg);
  animation-name: pgpBrandOrbitCcw;
  animation-duration: 32s;
}

@keyframes pgpBrandOrbitCw {
  from { transform: rotate(-18deg) rotateZ(0deg); }
  to { transform: rotate(-18deg) rotateZ(360deg); }
}

@keyframes pgpBrandOrbitCcw {
  from { transform: rotate(64deg) rotateZ(0deg); }
  to { transform: rotate(64deg) rotateZ(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pgp-logo-orbit::before,
  .pgp-logo-orbit::after {
    animation: none;
  }
}

@media (max-width: 760px) {
  .pgp-tren-bridge {
    display: none !important;
  }
}
