/* Hide the header version entry while retaining update controls in settings. */
header button:has(span.font-mono),
nav button:has(span.font-mono) {
  display: none !important;
}

/* Hide the upstream attribution sentence in both footer variants. */
footer span:has(> a[href="https://github.com/QuantumNous/new-api"]) {
  display: none !important;
}

/* Hide the documentation action in the homepage hero. */
section:has(h1) a:has(svg.lucide-book-open) {
  display: none !important;
}

/* Match the homepage backdrop on the password sign-in screen. */
div.relative.grid.h-svh.max-w-none:has(a[href="/forgot-password"]) {
  isolation: isolate;
  min-height: 100svh;
  height: auto;
}

div.relative.grid.h-svh.max-w-none:has(a[href="/forgot-password"])::before,
div.relative.grid.h-svh.max-w-none:has(a[href="/forgot-password"])::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

div.relative.grid.h-svh.max-w-none:has(a[href="/forgot-password"])::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, oklch(0.72 0.18 250 / 80%) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 15%, oklch(0.65 0.15 200 / 60%) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 40% 80%, oklch(0.70 0.12 280 / 40%) 0%, transparent 70%);
  opacity: 0.25;
}

div.relative.grid.h-svh.max-w-none:has(a[href="/forgot-password"])::after {
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 100%);
  opacity: 0.08;
}

.dark div.relative.grid.h-svh.max-w-none:has(a[href="/forgot-password"])::before {
  opacity: 0.12;
}
