:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --gold: #f0c14b;
  --gold-dim: #c9a227;
  --text: #e8eef7;
  --muted: #8b9bb4;
  --doge: #c2a633;
  --radius: 14px;
  --font: "Comic Neue", "Comic Sans MS", cursive, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #1e2a3d 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--gold);
}
.brand:hover .brand__name {
  animation-play-state: paused;
  filter: brightness(1.08);
}
.brand:hover .brand__logo-spin-inner {
  animation-play-state: paused;
}
/* Logo + beta badge */
.brand__logo-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand__logo-badge {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: 1.05;
  padding: 3px 6px;
  border-radius: 5px;
  background: linear-gradient(
    145deg,
    #fde68a 0%,
    var(--gold) 42%,
    #fbbf24 100%
  );
  color: #1c1524;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(28, 21, 36, 0.12);
  white-space: nowrap;
  pointer-events: none;
}
/* 3D flip: PUPnode icon ⟷ Dogecoin coin */
.brand__logo-spin {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  perspective: 720px;
  perspective-origin: center center;
  transform-style: preserve-3d;
}
.brand__logo-spin::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.14) 0%, transparent 68%);
  opacity: 0.85;
  pointer-events: none;
  animation: brand-logo-halo 5.5s ease-in-out infinite;
  z-index: 0;
}
.brand__logo-spin::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(240, 193, 75, 0.35);
  box-shadow:
    0 0 12px rgba(103, 232, 249, 0.2),
    inset 0 0 10px rgba(240, 193, 75, 0.08);
  pointer-events: none;
  animation: brand-logo-ring 3.2s ease-in-out infinite;
  z-index: 0;
}
@keyframes brand-logo-halo {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}
@keyframes brand-logo-ring {
  0%,
  100% {
    border-color: rgba(240, 193, 75, 0.28);
    box-shadow: 0 0 10px rgba(103, 232, 249, 0.15);
  }
  50% {
    border-color: rgba(103, 232, 249, 0.45);
    box-shadow:
      0 0 18px rgba(103, 232, 249, 0.35),
      0 0 28px rgba(240, 193, 75, 0.12);
  }
}
.brand__logo-spin-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  z-index: 1;
  transform-style: preserve-3d;
  transform-origin: center center;
  animation: brand-logo-flip 14s cubic-bezier(0.52, 0.02, 0.48, 0.98) infinite;
}
@keyframes brand-logo-flip {
  0%,
  12% {
    transform: rotateY(0deg);
  }
  20% {
    transform: rotateY(180deg);
  }
  44%,
  50% {
    transform: rotateY(180deg);
  }
  58% {
    transform: rotateY(360deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
.brand__logo-face {
  position: absolute;
  inset: 0;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(240, 193, 75, 0.18);
  border: 1px solid rgba(240, 193, 75, 0.35);
}
/*
 * Same plane for both faces (only rotateY) so perspective does not shift the back face
 * sideways; 0.5px Z on each keeps stacking stable without the old “thick card” offset.
 */
.brand__logo-face--pup {
  transform: rotateY(0deg) translateZ(0.5px);
}
.brand__logo-face--doge {
  transform: rotateY(180deg) translateZ(0.5px);
}
.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}
.brand__name {
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 0.12rem;
  background: linear-gradient(
    92deg,
    #fff6d5 0%,
    var(--gold) 28%,
    #a5f3fc 52%,
    var(--gold) 72%,
    #fff6d5 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-shimmer 8s ease-in-out infinite;
  text-shadow: 0 0 18px rgba(240, 193, 75, 0.15);
}
@keyframes brand-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.brand__tagline {
  display: block;
  max-width: min(20rem, 52vw);
  font-size: 0.59rem;
  line-height: 1.28;
  min-height: 1.35em;
}
.brand__tagline-text {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  line-height: inherit;
  color: rgba(165, 243, 252, 0.88);
  text-shadow:
    0 0 12px rgba(79, 209, 250, 0.35),
    0 0 24px rgba(240, 193, 75, 0.12);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.brand__tagline-text--out {
  opacity: 0;
  transform: translateY(-5px);
  filter: blur(4px);
}
.brand__tagline-text--in {
  animation: brand-tagline-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes brand-tagline-in {
  from {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(5px);
    letter-spacing: 0.28em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: 0.14em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand__name {
    animation: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--gold);
  }
  .brand__tagline-text--in {
    animation: none;
  }
  .brand__logo-spin::before,
  .brand__logo-spin::after {
    animation: none;
    opacity: 0.5;
  }
  .brand__logo-spin-inner {
    animation: none;
    transform: rotateY(0deg);
  }
  .brand__logo-face--doge {
    display: none;
  }
  .brand__logo-face--pup {
    transform: rotateY(0deg) translateZ(0);
  }
  .brand__logo-face--doge {
    transform: rotateY(180deg) translateZ(0);
  }
  .btn-pupwizard__wand {
    animation: none;
  }
  .btn-pupwizard:hover .btn-pupwizard__wand {
    animation: none;
  }
  .btn-pupwizard__label--in {
    animation: none;
  }
}
@media (max-width: 520px) {
  .brand__tagline {
    max-width: min(17rem, 100%);
    font-size: 0.55rem;
  }
  .brand__tagline-text {
    letter-spacing: 0.1em;
  }
}

.nav-menu-toggle {
  display: none;
  flex-shrink: 0;
}
.nav-menu-toggle__icon-close {
  display: none;
}
body.is-nav-open .nav-menu-toggle .nav-menu-toggle__icon-open {
  display: none;
}
body.is-nav-open .nav-menu-toggle .nav-menu-toggle__icon-close {
  display: inline;
}
.nav-mobile-backdrop {
  display: none;
}
.nav-drawer-head,
.nav-drawer-foundation {
  display: none;
}
.nav-drawer-close {
  display: none;
}

.site-header .nav-actions {
  margin-left: auto;
}
.nav-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 767px) {
  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.65rem;
  }
  .site-header .brand {
    flex: 1;
    min-width: 0;
  }
  .site-header {
    position: relative;
    z-index: 1020;
  }
  .nav-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    margin: 0;
    border: 0;
    padding: 0;
    background: rgba(10, 14, 20, 0.58);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  body.is-nav-open .nav-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .site-header .nav-actions {
    margin-left: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(19.5rem, 88vw);
    z-index: 1010;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: flex-start;
    gap: 0.4rem;
    padding: calc(4.75rem + env(safe-area-inset-top, 0px)) 1rem
      calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-right: 1px solid var(--surface2);
    box-shadow: 10px 0 36px rgba(0, 0, 0, 0.4);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.is-nav-open .nav-actions {
    transform: translateX(0);
  }
  .nav-actions .nav-drawer-head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--surface2);
  }
  .nav-actions .nav-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
  }
  .nav-actions .nav-drawer-brand:hover {
    color: var(--gold);
    text-decoration: none;
  }
  .nav-actions .nav-drawer-brand img {
    border-radius: 50%;
    flex-shrink: 0;
  }
  .nav-actions .btn,
  .nav-actions form {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    box-sizing: border-box;
    border-radius: var(--radius);
  }
  .nav-actions form {
    display: block;
  }
  .nav-actions form button {
    width: 100%;
    box-sizing: border-box;
  }
  .nav-actions .btn-pupwizard {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-actions .nav-drawer-close {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    flex-shrink: 0;
  }
  .nav-actions .nav-drawer-close .material-icons {
    font-size: 1.2rem;
  }
  .nav-actions .nav-drawer-foundation {
    margin-top: auto;
    padding-top: 0.8rem;
    display: flex;
    justify-content: center;
    width: 100%;
    border-top: 1px solid var(--surface2);
    opacity: 0.95;
  }
  .nav-actions .nav-drawer-foundation img {
    height: 30px;
    width: auto;
    display: block;
    filter: invert(1) brightness(1.06);
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .nav-actions {
    transition: none;
  }
  .nav-mobile-backdrop {
    transition: none;
  }
}

@media (min-width: 768px) {
  .nav-menu-toggle {
    display: none !important;
  }
  .nav-mobile-backdrop {
    display: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn .material-icons {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: #1a1203;
  box-shadow: 0 4px 14px rgba(240, 193, 75, 0.28);
  font-weight: 700;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-pupwizard {
  box-sizing: border-box;
  width: 130px;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  font-size: 0.82rem;
  background: linear-gradient(
    135deg,
    rgba(103, 232, 249, 0.22) 0%,
    rgba(240, 193, 75, 0.35) 48%,
    rgba(167, 139, 250, 0.2) 100%
  );
  color: #f0fdf4;
  border: 1px solid rgba(103, 232, 249, 0.45);
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(240, 193, 75, 0.12),
    0 4px 16px rgba(45, 212, 191, 0.12);
}
.btn-pupwizard:hover {
  background: linear-gradient(
    135deg,
    rgba(125, 241, 255, 0.32) 0%,
    rgba(253, 224, 139, 0.42) 50%,
    rgba(196, 181, 253, 0.28) 100%
  );
  border-color: rgba(240, 193, 75, 0.55);
  color: #fff;
  box-shadow:
    0 0 20px rgba(103, 232, 249, 0.2),
    0 4px 18px rgba(240, 193, 75, 0.15);
}
.btn-pupwizard__wand {
  display: inline-block;
  color: #fef9c3;
  transform-origin: 28% 88%;
  animation: btn-pupwizard-wand 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(240, 193, 75, 0.45));
}
@keyframes btn-pupwizard-wand {
  0%,
  100% {
    transform: rotate(-6deg) translate(0, 0) scale(1);
    filter: drop-shadow(0 0 6px rgba(240, 193, 75, 0.45));
  }
  20% {
    transform: rotate(18deg) translate(3px, -4px) scale(1.12);
    filter: drop-shadow(0 0 12px rgba(103, 232, 249, 0.65));
  }
  40% {
    transform: rotate(-14deg) translate(-2px, 1px) scale(1.04);
    filter: drop-shadow(0 0 8px rgba(240, 193, 75, 0.55));
  }
  60% {
    transform: rotate(22deg) translate(4px, -5px) scale(1.1);
    filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.45));
  }
  80% {
    transform: rotate(-8deg) translate(0, 2px) scale(1.02);
    filter: drop-shadow(0 0 7px rgba(240, 193, 75, 0.5));
  }
}
.btn-pupwizard:hover .btn-pupwizard__wand {
  animation-duration: 1.35s;
}

.btn-pupwizard__label {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  transition:
    opacity 0.28s ease,
    filter 0.28s ease,
    transform 0.28s ease;
}
.btn-pupwizard__label--out {
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(3px);
}
.btn-pupwizard__label--in {
  animation: pupwizard-label-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes pupwizard-label-in {
  from {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface2);
}
.btn-ghost:hover {
  background: var(--surface2);
}

.hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.hero__title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 0.5rem;
  max-width: min(52rem, 100%);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
}
.hero__title-text {
  display: inline;
}
.hero__title-text a {
  font-weight: 700;
}
.hero__catalog-dogebox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.45);
  background: linear-gradient(
    145deg,
    rgba(103, 232, 249, 0.18) 0%,
    rgba(240, 193, 75, 0.22) 55%,
    rgba(167, 139, 250, 0.16) 100%
  );
  color: #fef9c3;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.12), 0 4px 14px rgba(0, 0, 0, 0.25);
}
.hero__catalog-dogebox-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 193, 75, 0.55);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.22), 0 6px 18px rgba(0, 0, 0, 0.3);
}
.hero__catalog-dogebox-btn .material-icons {
  font-size: 1.2rem;
}
.hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
  align-items: center;
}

.search-input {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
}
.search-input input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
}
.search-input .material-icons {
  color: var(--muted);
  font-size: 1.35rem;
}

.select-cat {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 0.5rem 2.35rem 0.5rem 0.85rem;
  min-width: 160px;
  min-height: 2.75rem;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%238b9bb4'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 1.35rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  line-height: 1.35;
}
.select-cat:focus-visible {
  outline: none;
  border-color: rgba(240, 193, 75, 0.55);
  box-shadow: 0 0 0 2px rgba(240, 193, 75, 0.12);
}

.pup-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding: 1rem 0 3rem;
}

.pup-card {
  background: linear-gradient(165deg, rgba(36, 48, 68, 0.55) 0%, var(--surface) 42%);
  border: 1px solid var(--surface2);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
}
.pup-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

a.pup-card.pup-card-link,
a.pup-card.pup-card-link:hover,
a.pup-card.pup-card-link:focus {
  text-decoration: none;
  color: inherit;
}

.pup-card img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--surface2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pup-card h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.15s ease;
}
a.pup-card:hover h2 {
  color: var(--gold);
}
.pup-card .desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pup description subset Markdown (**bold**, `code`) */
.pup-md {
  line-height: 1.5;
}
.pup-md--short {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.pup-md--long {
  margin-top: 1rem;
  color: var(--text);
  font-size: 0.95rem;
}
.pup-card .pup-md {
  color: var(--muted);
}
.pup-md .pup-md-code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88em;
  font-weight: 500;
  padding: 0.1em 0.42em;
  border-radius: 6px;
  background: rgba(15, 20, 25, 0.65);
  border: 1px solid rgba(139, 155, 180, 0.28);
  color: #dbe7f7;
  white-space: nowrap;
}
.pup-card .pup-md .pup-md-code {
  background: var(--bg);
  color: var(--gold-dim);
  border-color: var(--surface2);
}
.pup-md .pup-md-strong,
.pup-md strong {
  font-weight: 700;
  color: var(--text);
}
.pup-card .pup-md .pup-md-strong,
.pup-card .pup-md strong {
  color: #eef2f8;
}

.pup-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.pup-meta__chev {
  flex-shrink: 0;
  font-size: 1.05rem !important;
  opacity: 0.85;
}

a.publisher-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 193, 75, 0.45);
  background: linear-gradient(165deg, rgba(36, 48, 68, 0.95) 0%, var(--surface) 100%);
  color: var(--gold);
  text-decoration: none;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
a.publisher-badge:hover {
  border-color: rgba(240, 193, 75, 0.75);
  color: #fce8b5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.publisher-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 155, 180, 0.38);
  background: rgba(15, 22, 32, 0.65);
}
.publisher-filter-banner__text {
  color: var(--muted);
  font-size: 0.92rem;
}
.publisher-filter-banner__clear {
  flex-shrink: 0;
}
.home-publisher-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.home-publisher-main {
  min-width: 0;
}
.home-publisher-side {
  min-width: 0;
}
@media (min-width: 900px) {
  .home-publisher-layout {
    grid-template-columns: 1fr 280px;
  }
}

.version-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 193, 75, 0.4);
  background: linear-gradient(165deg, rgba(36, 48, 68, 0.9) 0%, var(--surface) 100%);
  color: var(--gold);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.version-badge--sm {
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  letter-spacing: 0.03em;
  border-color: rgba(240, 193, 75, 0.28);
  color: #f3d98a;
}
.version-badge--muted {
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.74rem;
  color: var(--muted);
  border-color: rgba(139, 155, 180, 0.35);
  background: var(--bg);
}
.version-badge--pending {
  text-transform: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.pup-detail__h2 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}
.pup-version-badges {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}
.pup-version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  background: var(--surface2);
  border: 1px solid var(--gold-dim);
}

.form-panel {
  max-width: 420px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface2);
}
.form-panel label {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-panel input:not([type="file"]),
.form-panel select,
.form-panel textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--surface2);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.form-panel select {
  padding-right: 2.35rem;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%238b9bb4'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 1.35rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  line-height: 1.4;
}

.form-panel input[type="file"] {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px dashed var(--surface2);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.92rem;
  cursor: pointer;
}

.form-panel input[type="file"]::file-selector-button,
.form-panel input[type="file"]::-webkit-file-upload-button {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--surface2);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.form-panel input[type="file"]::file-selector-button:hover,
.form-panel input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--surface);
  border-color: rgba(240, 193, 75, 0.35);
}

.form-panel input:not([type="file"]):focus-visible,
.form-panel select:focus-visible,
.form-panel textarea:focus-visible,
.form-panel input[type="file"]:focus-visible {
  outline: none;
  border-color: rgba(240, 193, 75, 0.55);
  box-shadow: 0 0 0 2px rgba(240, 193, 75, 0.12);
}

.pup-detail {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (min-width: 800px) {
  .pup-detail {
    grid-template-columns: 1fr 280px;
  }
}
.detail-main {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface2);
  padding: 1.5rem;
  min-width: 0;
}
.detail-side {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface2);
  padding: 1.25rem;
  height: fit-content;
}
.code-box {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  word-break: break-all;
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--surface2);
}

.pup-source-risk {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
}
.pup-source-risk__icon {
  flex-shrink: 0;
  font-size: 1.25rem !important;
  color: #fcd34d;
  margin: 0;
}
.pup-source-risk p {
  margin: 0;
}

.pup-detail__verify-lead {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.pup-detail__verify-lead--section {
  margin-top: 0;
}

.pup-verify-tabs {
  margin: 0 0 1.15rem;
  max-width: 100%;
}
.pup-verify-tabs__shell {
  border: 1px solid var(--surface2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22, 30, 44, 0.65) 0%, rgba(10, 14, 22, 0.4) 100%);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.pup-verify-tabs__tablist-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
  border-bottom: 1px solid rgba(36, 48, 68, 0.85);
  background: rgba(15, 20, 28, 0.65);
}
.pup-verify-tabs__tablist-wrap::-webkit-scrollbar {
  height: 6px;
}
.pup-verify-tabs__tablist-wrap::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 4px;
}
.pup-verify-tabs__tablist {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.55rem 0.5rem 0.6rem;
  min-height: 3.25rem;
}
.pup-verify-tabs__tab {
  flex: 0 0 auto;
  max-width: min(12.5rem, 78vw);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(26, 35, 50, 0.45);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pup-verify-tabs__tab--path {
  max-width: min(17.5rem, 88vw);
  align-items: center;
}
.pup-verify-tabs__tab-icon {
  font-size: 1.35rem !important;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  opacity: 0.82;
  color: var(--gold-dim);
  transition: color 0.15s ease, opacity 0.15s ease;
}
.pup-verify-tabs__tab-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  flex: 1;
}
.pup-verify-tabs__tab-primary {
  font-weight: 600;
  font-family: inherit;
  font-size: 0.84rem;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.pup-verify-tabs__tab--path .pup-verify-tabs__tab-primary {
  font-family: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  font-size: 0.77rem;
}
.pup-verify-tabs__tab-secondary {
  font-size: 0.65rem;
  font-weight: 400;
  font-family: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  color: rgba(139, 155, 180, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.pup-verify-tabs__tab:hover {
  color: var(--text);
  background: rgba(36, 48, 68, 0.72);
  border-color: rgba(139, 155, 180, 0.22);
}
.pup-verify-tabs__tab:hover .pup-verify-tabs__tab-icon {
  opacity: 1;
  color: var(--gold);
}
.pup-verify-tabs__tab--active,
.pup-verify-tabs__tab[aria-selected="true"] {
  color: var(--text);
  background: rgba(10, 14, 22, 0.92);
  border-color: rgba(240, 193, 75, 0.38);
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.12), 0 4px 14px rgba(0, 0, 0, 0.18);
}
.pup-verify-tabs__tab--active .pup-verify-tabs__tab-icon,
.pup-verify-tabs__tab[aria-selected="true"] .pup-verify-tabs__tab-icon {
  opacity: 1;
  color: var(--gold);
}
.pup-verify-tabs__tab:focus-visible {
  outline: 2px solid rgba(240, 193, 75, 0.55);
  outline-offset: 2px;
}
.pup-verify-tabs__body {
  padding: 0.85rem 1rem 1rem;
  min-width: 0;
  background: rgba(8, 11, 16, 0.35);
}
.pup-verify-tabs__panel {
  padding: 0;
  min-width: 0;
}
.pup-verify-tabs__panel .pup-detail__verify-lead {
  margin-top: 0;
  margin-bottom: 0.55rem;
}
.pup-verify-tabs__panel .pup-code-panel {
  margin-bottom: 0;
}
.pup-detail__empty-ver,
.pup-detail__trunc-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.pup-detail__trunc-note {
  color: #fcd34d;
}

/* Line-numbered code viewer (pup manifest / nix); bounded height, horizontal scroll on narrow screens */
.pup-code-panel {
  margin: 0 0 1.15rem;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--surface2);
  background: rgba(10, 14, 22, 0.96);
  overflow: hidden;
}
.pup-code-panel__scroll {
  display: flex;
  align-items: stretch;
  max-height: min(50vh, 380px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  outline: none;
}
.pup-code-panel__scroll:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(240, 193, 75, 0.35);
}
@media (max-width: 640px) {
  .pup-code-panel__scroll {
    max-height: min(40vh, 260px);
  }
}
.pup-code-panel__gutter {
  flex-shrink: 0;
  position: sticky;
  left: 0;
  z-index: 2;
  align-self: flex-start;
  min-width: 2.75rem;
  padding: 0.6rem 0.45rem 0.6rem 0.55rem;
  text-align: right;
  user-select: none;
  background: rgba(18, 24, 34, 0.98);
  border-right: 1px solid rgba(139, 155, 180, 0.28);
}
.pup-code-panel__gutter-pre {
  margin: 0;
  padding: 0;
  font-family: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.62rem, 3vw, 0.73rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(139, 155, 180, 0.88);
  white-space: pre;
  tab-size: 2;
}
.pup-code-panel__code {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.6rem 0.65rem 0.6rem 0.5rem;
  background: transparent;
  border: none;
  font-family: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.62rem, 3vw, 0.73rem);
  line-height: 1.5;
  color: #dbe7f7;
  white-space: pre;
  overflow: visible;
  tab-size: 2;
}
.pup-code-panel__code code {
  display: block;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}
footer.site-footer {
  border-top: 1px solid var(--surface2);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}
.site-footer__tagline {
  margin: 0;
  text-align: left;
  flex: 1;
  min-width: min(100%, 12rem);
  line-height: 1.45;
}
.site-footer__foundation {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.site-footer__foundation:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.35));
}
.site-footer__foundation-img {
  height: 32px;
  width: auto;
  max-width: min(120px, 40vw);
  display: block;
  filter: invert(1) brightness(1.06);
  object-fit: contain;
}
.site-footer__langs {
  margin: 0.55rem 0 0;
  text-align: center;
  width: 100%;
}
@media (max-width: 480px) {
  .site-footer__foundation-img {
    height: 28px;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--surface2);
  padding: 0.5rem 0.35rem;
  text-align: left;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.loading-more {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

/* Home infinite scroll: spinner only while fetching; hidden when no more pages */
.scroll-sentinel {
  min-height: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  box-sizing: border-box;
}
.scroll-sentinel--loading {
  padding: 1rem;
  color: var(--muted);
}
.scroll-sentinel--done {
  display: none !important;
}

.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--surface2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: sp 0.7s linear infinite;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}

/* —— Layout: page headers, cards, admin —— */
.page-head {
  padding: 0.5rem 0 1.25rem;
}
.page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: 0.02em;
}
.page-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.section-heading {
  margin: 2rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty-hint {
  margin: 0.5rem 0 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px dashed var(--surface2);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.card-form {
  max-width: 520px;
  margin-bottom: 1.5rem;
}
.card-form--narrow {
  max-width: 420px;
}
.card-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.stack-form .btn {
  margin-top: 0.5rem;
}

.collapsible-panel {
  margin-bottom: 1rem;
}
.collapsible-panel.is-hidden {
  display: none !important;
}

.field {
  display: block;
  margin-top: 1rem;
}
.stack-form > label.field:first-of-type {
  margin-top: 0;
}
.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.field input:not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--surface2);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}

.field select {
  padding-right: 2.5rem;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%238b9bb4'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1.35rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  line-height: 1.4;
  min-height: 2.85rem;
}

.field input[type="file"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px dashed var(--surface2);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button,
.field input[type="file"]::-webkit-file-upload-button {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--surface2);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.field input[type="file"]::file-selector-button:hover,
.field input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--surface);
  border-color: rgba(240, 193, 75, 0.35);
}

.field input:not([type="file"]):focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.field input[type="file"]:focus-visible {
  outline: none;
  border-color: rgba(240, 193, 75, 0.55);
  box-shadow: 0 0 0 2px rgba(240, 193, 75, 0.12);
}

.field-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field--grow {
  min-width: 0;
}

/* Toggle switches (checkbox) */
.switch {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.25rem;
  cursor: pointer;
  user-select: none;
}
.switch--block {
  align-items: center;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.switch input:focus-visible + .switch__track {
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.45);
}
.switch__track {
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid rgba(139, 155, 180, 0.35);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-top: 1px;
}
.switch__track::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.switch input:checked + .switch__track {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-color: transparent;
}
.switch input:checked + .switch__track::after {
  transform: translateX(20px);
  background: #1a1203;
}
.switch__text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  padding-top: 2px;
}
.switch--block .switch__track {
  margin-top: 0;
}

/* Admin dashboard */
.admin-dashboard {
  display: grid;
  gap: 1rem;
  padding: 0.5rem 0 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .admin-dashboard {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
.dash-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(155deg, var(--surface2) 0%, var(--surface) 55%);
  border: 1px solid var(--surface2);
  border-radius: calc(var(--radius) + 4px);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.dash-card:hover {
  text-decoration: none;
  border-color: rgba(240, 193, 75, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.dash-card__icon {
  font-size: 2rem !important;
  color: var(--gold);
  opacity: 0.95;
}
.dash-card__title {
  margin: 0;
  font-size: 1.2rem;
}
.dash-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
  line-height: 1.45;
}
.dash-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}
.dash-card__cta .material-icons {
  font-size: 1.1rem !important;
}

/* Settings page */
.settings-form {
  max-width: 560px;
  padding-bottom: 3rem;
}
.settings-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem 1.45rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.settings-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.settings-card__icon {
  font-size: 1.35rem !important;
  color: var(--gold);
}
.settings-card__hint {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.settings-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.smtp-test-hint {
  margin: 1rem 0 0 !important;
}
.smtp-test-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.smtp-test-result {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
  min-width: 12rem;
}
.smtp-test-result.is-ok {
  color: #86efac;
}
.smtp-test-result.is-err {
  color: #fca5a5;
}
.settings-actions {
  margin-top: 0.5rem;
}

/* Account sources */
.source-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.source-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.source-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.source-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--muted);
}
.source-pill--active {
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
}
.source-pill--error,
.source-pill--failed {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}
.source-pill--pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}
.source-pill--disabled {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}
.admin-table-wrap {
  overflow-x: auto;
  margin: 0 0 2rem;
}

/* Admin users listing */
.admin-users-shell {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface2);
  background: linear-gradient(165deg, rgba(26, 35, 50, 0.55) 0%, var(--surface) 45%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-users-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}
.admin-users-table__th-actions {
  text-align: right;
  width: 7rem;
}
.admin-users-table thead tr {
  background: rgba(15, 20, 28, 0.75);
}
.admin-users-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--surface2);
  white-space: nowrap;
}
.admin-users-table tbody tr {
  transition: background 0.12s ease;
}
.admin-users-table tbody tr:hover {
  background: rgba(240, 193, 75, 0.04);
}
.admin-users-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-users-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(36, 48, 68, 0.75);
  vertical-align: middle;
}
.admin-users-table__user {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.admin-users-table__display {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.25;
}
.admin-users-table__email {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.02em;
}
.admin-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--surface2);
  background: rgba(15, 20, 28, 0.55);
  color: var(--muted);
}
.admin-role-pill--admin {
  color: var(--gold);
  border-color: rgba(240, 193, 75, 0.42);
  background: rgba(240, 193, 75, 0.1);
}
.admin-role-pill--user {
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.admin-users-table__stats {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.84rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 20, 28, 0.45);
  border: 1px solid rgba(36, 48, 68, 0.9);
  color: var(--text);
}
.admin-users-table__stat-sep {
  color: var(--muted);
  opacity: 0.7;
}
.admin-users-table__stat-n {
  font-weight: 600;
  color: #dbe7f7;
}
.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.admin-status-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
  border: 1px solid transparent;
}
.admin-status-chip--ok {
  color: #86efac;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.28);
}
.admin-status-chip--ok-soft {
  color: rgba(190, 242, 200, 0.92);
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.18);
}
.admin-status-chip--warn {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}
.admin-status-chip--off {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
}
.admin-users-table__cell--actions {
  text-align: right;
  vertical-align: middle;
}
.admin-users-table__action {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(240, 193, 75, 0.28);
  background: rgba(240, 193, 75, 0.06);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.admin-users-table__action .material-icons {
  font-size: 1.1rem !important;
  opacity: 0.9;
}
.admin-users-table__action:hover {
  background: rgba(240, 193, 75, 0.14);
  border-color: rgba(240, 193, 75, 0.45);
  text-decoration: none;
}
@media (max-width: 720px) {
  .admin-users-shell {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 1.5rem;
  }
  .admin-users-table {
    min-width: 0;
  }
  .admin-users-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .admin-users-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .admin-users-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
  }
  .admin-users-table tbody tr:hover {
    background: var(--surface);
  }
  .admin-users-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 32%) 1fr;
    gap: 0.5rem 0.75rem;
    align-items: start;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(36, 48, 68, 0.6);
  }
  .admin-users-table td::before {
    content: attr(data-label);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    padding-top: 0.2rem;
    line-height: 1.3;
  }
  .admin-users-table tbody tr td:last-child {
    border-bottom: none;
  }
  .admin-users-table__cell--actions {
    text-align: right;
    padding: 0.75rem 1rem 0.85rem;
    background: rgba(15, 20, 28, 0.35);
  }
  .admin-users-table__action {
    width: 100%;
    justify-content: center;
  }
}
.admin-moderation-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.admin-source-block {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.admin-source-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.admin-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-pup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--surface2);
  font-size: 0.9rem;
}
.admin-pup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}
.form-inline-admin {
  display: inline;
}
.source-type {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.source-url {
  margin: 0;
  font-size: 0.88rem;
  word-break: break-all;
  line-height: 1.45;
  color: var(--text);
}
.source-pup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.source-pup-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 193, 75, 0.35);
  background: rgba(240, 193, 75, 0.12);
  color: #f6d37a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-error {
  margin: 0;
  font-size: 0.85rem;
  color: #fca5a5;
  line-height: 1.4;
}
.source-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface2);
}
.form-inline {
  display: inline;
}
.replace-zip-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.replace-zip-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.replace-zip-picker__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px dashed rgba(103, 232, 249, 0.45);
  background: rgba(36, 48, 68, 0.68);
  color: #a5f3fc;
  padding: 0.38rem 0.6rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.replace-zip-picker:hover .replace-zip-picker__label {
  border-color: rgba(240, 193, 75, 0.6);
  color: var(--gold);
}
.btn-danger-outline {
  background: transparent;
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.45);
}
.btn-danger-outline:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

/* Catalog-wide DogeBox source modal (home hero) */
.catalog-dogebox-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}
.catalog-dogebox-modal[hidden] {
  display: none !important;
}
.catalog-dogebox-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.62);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.catalog-dogebox-modal__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(88vh, 32rem);
  overflow: auto;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--surface2);
  background: linear-gradient(165deg, rgba(26, 35, 50, 0.98) 0%, var(--surface) 55%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.catalog-dogebox-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(36, 48, 68, 0.85);
}
.catalog-dogebox-modal__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.catalog-dogebox-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.catalog-dogebox-modal__body {
  padding: 1rem 1.1rem 1.15rem;
}
.catalog-url-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.catalog-url-row__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  word-break: break-all;
  font-size: 0.78rem;
  line-height: 1.45;
}
.catalog-url-row__copy-icon {
  flex-shrink: 0;
  width: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  align-self: stretch;
}
.catalog-url-row__copy-icon .material-icons {
  font-size: 1.2rem;
}

.sync-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 25, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.sync-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sync-overlay__box {
  text-align: center;
  padding: 2rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  max-width: min(90vw, 320px);
}
.sync-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 3px solid var(--surface2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: sp 0.75s linear infinite;
}
.sync-overlay__text {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

/* Responsive data lists (categories, etc.) */
.data-card-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.data-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
}
@media (min-width: 540px) {
  .data-card {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.data-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}
@media (min-width: 540px) {
  .data-card__info {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
.data-card__main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.data-card__primary {
  font-weight: 700;
  font-size: 1.05rem;
}
.data-card__mono {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
}
.data-card__meta {
  flex-shrink: 0;
}
.data-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  flex-shrink: 0;
}
.data-card-list--categories .data-card--category {
  flex-wrap: wrap;
}
.data-card-list--categories .data-card__actions:has(.cat-edit[open]) {
  flex: 1 1 100%;
  width: 100%;
}
.data-card-list--categories .cat-edit[open] {
  width: 100%;
  max-width: 100%;
}
.cat-edit {
  min-width: 0;
}
.cat-edit summary.cat-edit__summary {
  list-style: none;
}
.cat-edit summary.cat-edit__summary::-webkit-details-marker {
  display: none;
}
.cat-edit__form {
  padding-top: 0.75rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--surface2);
  max-width: 28rem;
}
.cat-edit__fixed-slug {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.cat-edit__fixed-slug code {
  font-size: 0.9em;
}
.data-pill {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--surface2);
  color: var(--muted);
}

/* Pup detail aside */
.detail-side__heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.detail-side__heading--spaced {
  margin-top: 1.35rem;
}
.detail-side__publisher-name {
  margin: 0 0 0.5rem;
}
.detail-side__note {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.detail-side__address-fallback {
  margin: 0.35rem 0 0;
  word-break: break-all;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.detail-copy-btn {
  width: 100%;
  margin-top: 0.65rem;
  justify-content: center;
}

.pup-tip-card {
  margin-top: 0.65rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 193, 75, 0.22);
  background: linear-gradient(165deg, rgba(240, 193, 75, 0.06) 0%, rgba(10, 14, 22, 0.55) 55%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}
.pup-tip-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.pup-tip-card__lead {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.pup-tip-card__address-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pup-tip-card__address {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-all;
}
.pup-tip-card__copy {
  width: 100%;
  justify-content: center;
}
.pup-qr-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.85rem 0;
  padding: 0.85rem;
  border-radius: 14px;
  background: #fafafa;
  border: 3px solid rgba(240, 193, 75, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    0 4px 18px rgba(0, 0, 0, 0.12);
}
.pup-qr-frame #qrcode {
  line-height: 0;
}
.pup-qr-frame #qrcode canvas,
.pup-qr-frame #qrcode img {
  display: block;
  border-radius: 6px;
}
.pup-tip-card__wallet {
  width: 100%;
  margin-top: 0.15rem;
  justify-content: center;
  gap: 0.35rem;
}
.pup-tip-card__wallet .material-icons {
  font-size: 1.15rem !important;
}
