:root {
  --bg: #fff6f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #3f3a46;
  --muted: #72697b;
  --line: #eadce6;
  --primary: #f06a8d;
  --primary-dark: #d45576;
  --secondary: #f3d5b5;
  --mint: #d8eee8;
  --success: #7aa889;
  --warning: #d8a14f;
  --shadow: 0 20px 40px rgba(188, 135, 152, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #fff1f5;
  background: linear-gradient(180deg, #fff1f5 0%, #fff6ef 100%);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  position: relative;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background-color: #fff1f5;
  background: linear-gradient(180deg, #fff1f5 0%, #fff6ef 100%);
  overscroll-behavior-y: none;
}

body.has-open-menu {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-color: rgba(232, 168, 187, 0.24);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='black'%3E%3Ctext x='16' y='52' font-size='42' transform='rotate(-10 16 52)'%3E🐾%3C/text%3E%3Ctext x='108' y='34' font-size='34' transform='rotate(8 108 34)'%3E🐾%3C/text%3E%3Ctext x='214' y='58' font-size='40' transform='rotate(-6 214 58)'%3E🐾%3C/text%3E%3Ctext x='52' y='116' font-size='30' transform='rotate(12 52 116)'%3E🐾%3C/text%3E%3Ctext x='156' y='106' font-size='44' transform='rotate(-9 156 106)'%3E🐾%3C/text%3E%3Ctext x='258' y='134' font-size='32' transform='rotate(10 258 134)'%3E🐾%3C/text%3E%3Ctext x='18' y='184' font-size='38' transform='rotate(7 18 184)'%3E🐾%3C/text%3E%3Ctext x='112' y='170' font-size='28' transform='rotate(-12 112 170)'%3E🐾%3C/text%3E%3Ctext x='206' y='194' font-size='42' transform='rotate(5 206 194)'%3E🐾%3C/text%3E%3Ctext x='70' y='256' font-size='38' transform='rotate(-8 70 256)'%3E🐾%3C/text%3E%3Ctext x='168' y='262' font-size='32' transform='rotate(11 168 262)'%3E🐾%3C/text%3E%3Ctext x='252' y='286' font-size='40' transform='rotate(-7 252 286)'%3E🐾%3C/text%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='black'%3E%3Ctext x='16' y='52' font-size='42' transform='rotate(-10 16 52)'%3E🐾%3C/text%3E%3Ctext x='108' y='34' font-size='34' transform='rotate(8 108 34)'%3E🐾%3C/text%3E%3Ctext x='214' y='58' font-size='40' transform='rotate(-6 214 58)'%3E🐾%3C/text%3E%3Ctext x='52' y='116' font-size='30' transform='rotate(12 52 116)'%3E🐾%3C/text%3E%3Ctext x='156' y='106' font-size='44' transform='rotate(-9 156 106)'%3E🐾%3C/text%3E%3Ctext x='258' y='134' font-size='32' transform='rotate(10 258 134)'%3E🐾%3C/text%3E%3Ctext x='18' y='184' font-size='38' transform='rotate(7 18 184)'%3E🐾%3C/text%3E%3Ctext x='112' y='170' font-size='28' transform='rotate(-12 112 170)'%3E🐾%3C/text%3E%3Ctext x='206' y='194' font-size='42' transform='rotate(5 206 194)'%3E🐾%3C/text%3E%3Ctext x='70' y='256' font-size='38' transform='rotate(-8 70 256)'%3E🐾%3C/text%3E%3Ctext x='168' y='262' font-size='32' transform='rotate(11 168 262)'%3E🐾%3C/text%3E%3Ctext x='252' y='286' font-size='40' transform='rotate(-7 252 286)'%3E🐾%3C/text%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 320px 320px;
  mask-size: 320px 320px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1rem 1rem 5.5rem;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.brand__copy {
  display: grid;
  gap: 0.1rem;
}

.brand__logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 10px 14px rgba(181, 137, 151, 0.16))
    drop-shadow(0 18px 24px rgba(130, 160, 148, 0.16));
  transition: transform 220ms ease;
}

.brand__name {
  font-family: "Patrick Hand", cursive;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand__tagline {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.brand:hover .brand__logo {
  transform: translateY(-1px);
}

.topbar__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 6.3rem;
  height: 3.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 34px rgba(188, 135, 152, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.topbar__menu-label {
  color: #7f6471;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar__menu-icon {
  display: inline-grid;
  gap: 0.28rem;
}

.topbar__menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 22px 40px rgba(188, 135, 152, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.topbar__menu-line {
  display: block;
  width: 1.15rem;
  height: 2.5px;
  border-radius: 999px;
  background: #8f6278;
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar.is-menu-open .topbar__menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.is-menu-open .topbar__menu-line:nth-child(2) {
  opacity: 0;
}

.topbar.is-menu-open .topbar__menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 28;
  border: 0;
  background:
    linear-gradient(180deg, rgba(84, 58, 68, 0.18), rgba(101, 74, 84, 0.24)),
    rgba(76, 56, 67, 0.12);
  backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity 260ms ease, backdrop-filter 260ms ease;
}

.menu-overlay[hidden],
.site-menu[hidden] {
  display: none;
}

.site-menu {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  width: min(23rem, calc(100vw - 2rem));
  transform: translateX(0);
  animation: siteMenuIn 260ms ease;
}

.site-menu__inner {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding: 1.45rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 239, 244, 0.95), transparent 32%),
    radial-gradient(circle at bottom right, rgba(247, 233, 222, 0.58), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 30px 70px rgba(123, 89, 103, 0.16),
    0 10px 28px rgba(188, 135, 152, 0.11);
  backdrop-filter: blur(24px);
}

.site-menu__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 42%);
}

.site-menu__header {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.3rem;
}

.site-menu__eyebrow {
  margin: 0;
  color: #c17f97;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-menu__title {
  color: #5d4955;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 0.98;
}

.site-menu__lead,
.site-menu__note {
  margin: 0;
  color: #85707d;
  font-size: 0.95rem;
  line-height: 1.65;
}

.site-menu__nav {
  display: grid;
  gap: 0.7rem;
}

.site-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.35rem;
  padding: 0.95rem 1.05rem;
  border-radius: 22px;
  color: #73636f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 252, 0.92));
  border: 1px solid rgba(244, 231, 236, 0.95);
  box-shadow:
    0 8px 20px rgba(188, 135, 152, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.site-menu__nav a::after {
  content: "→";
  color: #c893a5;
  font-size: 0.95rem;
  transition: transform 200ms ease, opacity 200ms ease;
  opacity: 0.6;
}

.site-menu__nav a:hover {
  transform: translateX(4px);
  color: #a4657e;
  background: linear-gradient(180deg, rgba(255, 247, 250, 0.98), rgba(255, 239, 244, 0.96));
  box-shadow:
    0 16px 28px rgba(188, 135, 152, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.site-menu__nav a:hover::after,
.site-menu__nav a.is-active::after {
  transform: translateX(2px);
  opacity: 1;
}

.site-menu__nav a.is-active {
  color: #a4657e;
  background: linear-gradient(180deg, rgba(250, 235, 241, 0.94), rgba(245, 227, 235, 0.9));
  box-shadow:
    0 14px 24px rgba(188, 135, 152, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.site-menu__footer {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(236, 224, 229, 0.94);
}

.site-menu__logout {
  width: 100%;
  margin-top: 0.8rem;
}

.is-active {
  background: rgba(240, 106, 141, 0.12);
  color: var(--primary-dark);
}

.main-content {
  display: grid;
  gap: 1.2rem;
}

.site-footer {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.preview-banner {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.preview-banner__eyebrow,
.preview-banner__copy {
  margin: 0;
}

.preview-banner__eyebrow {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card,
.section-block,
.form-card,
.info-card,
.admin-row,
.metric-card,
.article-card,
.login-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.section-block {
  padding: 1.3rem;
}

.login-shell {
  min-height: calc(100dvh - 8rem);
  display: grid;
  align-items: center;
}

.login-panel {
  display: grid;
  gap: 1.2rem;
  padding: 1.3rem;
  background:
    radial-gradient(circle at top left, rgba(255, 250, 252, 0.95), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 247, 0.82));
}

.login-panel__brand {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.login-panel__logo {
  width: min(11rem, 42vw);
  margin-inline: auto;
  filter:
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.7))
    drop-shadow(0 18px 28px rgba(188, 135, 152, 0.18));
}

.login-card {
  background: rgba(255, 255, 255, 0.9);
}

.login-card__form {
  display: grid;
  gap: 1rem;
}

.login-card__notice {
  margin: 0;
  color: #9b3052;
  background: rgba(255, 234, 240, 0.96);
}

.login-card__notice--config {
  color: #7b5b13;
  background: rgba(255, 246, 221, 0.96);
}

.login-card__submit {
  width: 100%;
}

.hero-card {
  display: grid;
  gap: 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(135deg, rgba(255, 250, 252, 0.92), rgba(255, 244, 247, 0.82));
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  max-width: 36rem;
  padding: 0 0 0.35rem;
}

.hero-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-logo-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0.1rem 0.5rem 0.05rem;
}

.hero-logo-arc {
  width: min(100%, 300px);
  height: auto;
  overflow: visible;
  margin-top: 0.7rem;
  margin-bottom: -5rem;
}

.hero-logo-arc text {
  fill: #b15d79;
  font-family: "Patrick Hand", cursive;
  font-size: 45px;
  letter-spacing: 0.06em;
  paint-order: stroke;
  stroke: rgba(255, 247, 251, 0.75);
  stroke-width: 1.8px;
}

.hero-logo-card__image {
  width: min(100%, 285px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 14px rgba(255, 255, 255, 0.72))
    drop-shadow(0 18px 26px rgba(188, 135, 152, 0.18));
}

.hero-logo-card__caption {
  margin: -0.65rem 0 0;
  color: #b15d79;
  font-family: "Patrick Hand", cursive;
  font-size: 1.8rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(255, 247, 251, 0.65);
  transition: opacity 320ms ease, transform 320ms ease;
}

@media (max-width: 767px) {
  .hero-logo-card__caption {
    font-size: 1.45rem;
  }
}

.hero-logo-card__caption.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

.hero-actions--aside {
  display: grid;
  gap: 0.7rem;
  justify-items: stretch;
}

.hero-actions--aside .button {
  width: 100%;
}

.floating-social {
  position: fixed;
  right: 1.1rem;
  bottom: 2.5rem;
  z-index: 12;
  display: grid;
  gap: 0.7rem;
}

.floating-social__link {
  display: grid;
  place-items: center;
  position: relative;
  width: 3.6rem;
  height: 3.3rem;
  background: linear-gradient(180deg, #d8abba, #c78da1);
  box-shadow:
    0 0 0 10px rgba(216, 171, 186, 0.14),
    0 0 20px rgba(216, 171, 186, 0.24),
    0 16px 32px rgba(216, 171, 186, 0.2),
    0 20px 36px rgba(188, 135, 152, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  clip-path: path("M 28 50 C 12 40 2 27 2 15 C 2 6 9 0 18 0 C 23 0 27 2 30 7 C 33 2 37 0 42 0 C 51 0 58 6 58 15 C 58 27 48 40 32 50 L 30 52 Z");
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.floating-social__link:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(180deg, #e0b7c4, #cf98ab);
  box-shadow:
    0 0 0 12px rgba(216, 171, 186, 0.16),
    0 0 22px rgba(216, 171, 186, 0.28),
    0 20px 38px rgba(216, 171, 186, 0.24),
    0 22px 38px rgba(188, 135, 152, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.floating-social__icon {
  position: relative;
  z-index: 1;
  width: 1.4rem;
  height: 1.4rem;
  fill: #ffffff;
}

.eyebrow,
.copy-muted,
.info-card__meta {
  color: var(--muted);
}

.eyebrow {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 4.6rem);
}

h2 {
  font-size: clamp(1.4rem, 5vw, 2rem);
}

p {
  line-height: 1.6;
}

.lead {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.6;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  color: #625765;
}

.hero-actions,
.card-actions,
.admin-actions,
.share-row,
.filter-bar,
.tag-row,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button,
button,
select,
input,
textarea {
  font: inherit;
}

.button,
button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.95);
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), #ff93af);
  color: #fff;
}

.button--secondary {
  background: var(--secondary);
  color: var(--text);
}

.button--ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-actions .button {
  min-height: 3.2rem;
  padding: 0.9rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  border: 0;
  box-shadow: 0 14px 26px rgba(195, 111, 35, 0.18);
}

.hero-actions .button:nth-child(1) {
  background: linear-gradient(135deg, #f97316, #fb8b3d);
}

.hero-actions .button:nth-child(2) {
  background: linear-gradient(135deg, #fb8430, #f79a45);
}

.hero-actions .button:nth-child(3) {
  background: linear-gradient(135deg, #fc9447, #f7a75b);
}

.hero-actions .button:hover {
  transform: scale(1.05);
  filter: saturate(1.08) brightness(1.03);
  box-shadow: 0 18px 34px rgba(195, 111, 35, 0.24);
}

.text-link {
  color: var(--primary-dark);
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading--cats h1 {
  font-size: clamp(1.55rem, 4.7vw, 2.6rem);
}

.section-block--adoptions-success {
  position: relative;
  overflow: hidden;
}

.section-block--adoptions-success .section-heading--cats {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 1.1rem;
}

.section-block--adoptions-success .section-heading--cats h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.02;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 120;
}

.confetti-piece {
  position: absolute;
  top: -12vh;
  width: 12px;
  height: 18px;
  border-radius: 999px;
  opacity: 0.9;
  animation: confetti-fall linear forwards;
  will-change: transform, opacity;
}

.confetti-piece--circle {
  border-radius: 999px;
}

.confetti-piece--rect {
  border-radius: 4px;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.95;
  }

  100% {
    transform: translate3d(var(--confetti-shift, 0), 112vh, 0) rotate(720deg);
    opacity: 0;
  }
}

.section-block--warm {
  background: linear-gradient(180deg, rgba(243, 213, 181, 0.55), rgba(255, 255, 255, 0.75));
}

.section-block--mission {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 250, 0.92));
}

.stats-grid,
.card-grid {
  display: grid;
  gap: 1rem;
}

.metric-card {
  position: relative;
  display: grid;
  gap: 0.28rem;
  min-height: 0;
  padding: 0.72rem 0.82rem 0.76rem 0.92rem;
  border-radius: 12px;
  background: #fdf1f4;
  border: 1px solid #f3dce3;
  box-shadow: 0 10px 24px rgba(188, 135, 152, 0.08);
}

.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
}

.metric-card--cats::before {
  background: #f3a8bc;
}

.metric-card--adoptions::before {
  background: #efc6a0;
}

.metric-card--posts::before {
  background: #d6c2d9;
}

.metric-card__label {
  display: block;
  margin-bottom: 0;
  padding-left: 0.18rem;
  color: #897685;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

.metric-card__value {
  padding-left: 0.18rem;
  color: #4a3e48;
  font-size: clamp(1.85rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  font-family: "Fraunces", serif;
}

.pet-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.pet-card__image,
.detail-gallery__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pet-card__body,
.article-card,
.info-card,
.admin-row {
  padding: 1rem;
}

.pet-card__body .tag-row {
  margin-bottom: 0.75rem;
}

.pet-card__body h2,
.pet-card__body h3 {
  margin-bottom: 0.55rem;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(216, 238, 232, 0.9);
  color: #4b6b63;
}

.tag--soft {
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
}

.tag--success {
  background: rgba(122, 168, 137, 0.18);
  color: #477255;
}

.tag--warning {
  background: rgba(216, 161, 79, 0.2);
  color: #8a5f17;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
}

.chip--active {
  background: rgba(240, 106, 141, 0.12);
  color: var(--primary-dark);
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.mission-grid {
  display: grid;
  gap: 1rem;
}

.info-card--mission,
.info-card--vision {
  position: relative;
  overflow: hidden;
}

.info-card--mission::before,
.info-card--vision::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  opacity: 0.9;
}

.info-card--mission::before {
  background: linear-gradient(90deg, rgba(240, 106, 141, 0.95), rgba(255, 177, 196, 0.6));
}

.info-card--vision::before {
  background: linear-gradient(90deg, rgba(216, 238, 232, 1), rgba(243, 213, 181, 0.8));
}

.detail-page {
  display: grid;
  gap: 1rem;
}

.detail-gallery {
  display: grid;
  gap: 0.8rem;
}

.detail-panel {
  padding: 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-stack {
  display: grid;
  gap: 1rem;
}

.application-shell {
  display: grid;
  gap: 1rem;
}

.donations-page {
  display: grid;
  gap: 1rem;
}

.donations-hero {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 240, 245, 0.88), transparent 32%),
    radial-gradient(circle at bottom right, rgba(248, 236, 216, 0.74), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 251, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 48px rgba(188, 135, 152, 0.12);
}

.donations-hero__copy,
.donations-hero__aside,
.donations-closing {
  display: grid;
  gap: 0.85rem;
}

.donations-hero__lead {
  margin: 0;
  max-width: 42rem;
  color: #6f616d;
  line-height: 1.7;
}

.donations-direct {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  margin-top: 0.35rem;
}

.donations-direct__button {
  display: grid;
  align-items: center;
  min-height: 3.35rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(240, 106, 141, 0.96), rgba(227, 140, 165, 0.94));
  color: #fff;
  box-shadow: 0 16px 28px rgba(188, 135, 152, 0.16);
}

.donations-direct__button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03) saturate(1.04);
  box-shadow: 0 20px 32px rgba(188, 135, 152, 0.2);
}

.donations-illustration {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1.15rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(243, 228, 234, 0.94);
  box-shadow:
    0 18px 30px rgba(188, 135, 152, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.donations-illustration__paw,
.donations-illustration__heart {
  position: absolute;
  pointer-events: none;
}

.donations-illustration__paw {
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  opacity: 0.22;
}

.donations-illustration__heart {
  bottom: 0.9rem;
  right: 1.1rem;
  font-size: 1.25rem;
  opacity: 0.28;
}

.donations-illustration__placeholder {
  position: relative;
  z-index: 1;
  font-size: 2.1rem;
  opacity: 0.45;
}

.donations-grid {
  display: grid;
  gap: 1rem;
}

.donation-item {
  position: relative;
  display: grid;
  gap: 0.72rem;
  align-content: start;
  min-height: 100%;
  padding: 1.35rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 248, 0.8), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 251, 0.96));
  border: 1px solid rgba(244, 231, 236, 0.95);
  box-shadow:
    0 18px 32px rgba(188, 135, 152, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.donation-item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, rgba(240, 106, 141, 0.75), rgba(243, 213, 181, 0.8));
  opacity: 0.9;
}

.donation-item__icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 239, 244, 1), rgba(255, 248, 251, 0.98));
  border: 1px solid rgba(246, 229, 236, 0.95);
  box-shadow:
    0 12px 22px rgba(188, 135, 152, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
}

.donation-item__eyebrow {
  color: #b77990;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.donation-item h2 {
  margin: 0;
  color: #5f4d57;
  font-size: 1.24rem;
  line-height: 1.12;
}

.donation-item p,
.donations-closing__text {
  margin: 0;
  color: #756671;
  line-height: 1.72;
}

.donations-closing {
  justify-items: center;
  padding: 1.25rem 1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(255, 245, 248, 0.92));
  border: 1px solid rgba(245, 231, 224, 0.95);
  box-shadow: 0 20px 34px rgba(188, 135, 152, 0.08);
  text-align: center;
}

.donations-closing__text {
  max-width: 40rem;
  font-family: "Fraunces", serif;
  font-size: 1.16rem;
  color: #8a6974;
}

.application-hero {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 243, 247, 0.88), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 249, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 48px rgba(188, 135, 152, 0.12);
}

.application-hero__copy,
.application-hero__aside,
.application-sidebar,
.application-form {
  display: grid;
  gap: 1rem;
}

.application-lead {
  margin-top: 0.35rem;
  max-width: 42rem;
}

.application-spotlight {
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 230, 236, 0.94);
  box-shadow:
    0 18px 30px rgba(188, 135, 152, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.application-spotlight__tag,
.application-selected__label {
  color: #b86f89;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.application-spotlight__title,
.application-form__title {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.application-spotlight__copy,
.application-selected__meta,
.application-form__intro,
.application-form__foot {
  margin: 0;
  color: #7f6f79;
}

.application-spotlight__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.application-spotlight__list li {
  padding-left: 1.2rem;
  position: relative;
}

.application-spotlight__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #c88aa0;
}

.application-layout {
  display: grid;
  gap: 1rem;
}

.application-sidebar,
.application-form {
  min-width: 0;
}

.application-note,
.application-selected {
  padding: 1.1rem;
}

.application-note h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.72rem);
  line-height: 1.08;
  white-space: normal;
  margin-bottom: 1rem;
}

.application-requirements {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.application-requirements li {
  position: relative;
  padding-left: 1.6rem;
  color: #6f616d;
  line-height: 1.6;
}

.application-requirements li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 0;
}

.application-selected {
  display: grid;
  gap: 0.35rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 250, 0.92));
  border: 1px solid rgba(244, 230, 236, 0.94);
  box-shadow: 0 18px 30px rgba(188, 135, 152, 0.08);
}

.application-selected__value {
  color: #5f4a56;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.application-form {
  gap: 1.25rem;
  padding: 1.35rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 242, 246, 0.62), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 252, 0.94));
}

.application-form__header,
.application-form__section,
.application-form__section-head,
.application-form__actions {
  display: grid;
  gap: 0.6rem;
}

.application-form__section {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(243, 229, 235, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.application-form__section-head h3 {
  font-size: 1.12rem;
}

.application-form__actions {
  align-items: start;
}

.application-form__submit[disabled] {
  background: linear-gradient(135deg, #d6c4cb, #c9b8bf);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(142, 121, 131, 0.16);
  cursor: not-allowed;
  filter: grayscale(0.08);
}

.application-form__submit[disabled]:hover,
.application-form__submit[disabled]:active {
  transform: none;
  filter: grayscale(0.08);
  box-shadow: 0 10px 20px rgba(142, 121, 131, 0.16);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.inline-list li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.form-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group__legend {
  margin-bottom: 0.35rem;
  padding: 0;
  color: #4f434b;
  font-weight: 600;
}

.choice-group__help {
  margin: 0 0 0.75rem;
}

.choice-group__warning {
  margin: 0.1rem 0 0;
  color: #b85d77;
  font-size: 0.92rem;
  line-height: 1.5;
}

.choice-group__options {
  display: grid;
  gap: 0.7rem;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(233, 220, 227, 0.96);
}

.choice-option input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--primary);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #584b55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

textarea {
  resize: vertical;
}

input[readonly] {
  color: #8b7b86;
  background: rgba(248, 242, 245, 0.96);
}

.notice,
.empty-state {
  padding: 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.notice--success {
  background: rgba(216, 238, 232, 0.9);
}

.admin-row {
  display: grid;
  gap: 1rem;
}

.admin-row__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.admin-row__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.photo-admin-grid {
  display: grid;
  gap: 1rem;
}

.photo-admin-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(233, 220, 227, 0.96);
}

.photo-admin-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(142, 121, 131, 0.14);
}

.photo-admin-card__meta,
.photo-admin-card__cover {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #5a4f58;
}

.photo-admin-card input[type="checkbox"],
.photo-admin-card input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

@media (min-width: 768px) {
  .app-shell {
    padding-bottom: 2rem;
  }

  .login-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 28rem);
    align-items: center;
    padding: 1.7rem;
  }

  .donations-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
    align-items: stretch;
    padding: 1.55rem;
  }

  .donations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.95fr);
    align-items: start;
    padding: 1.55rem;
  }

  .application-layout {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
  }

  .brand__name {
    font-size: 1.9rem;
  }

  .brand__tagline {
    font-size: 0.96rem;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    align-items: start;
    gap: 2rem;
    padding: 1.9rem;
  }

  .stats-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-page {
    grid-template-columns: 1.2fr 1fr;
  }

  .detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .admin-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .photo-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-row__actions {
    justify-content: flex-end;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .app-shell {
    padding-bottom: 7.5rem;
  }

  .donations-hero,
  .donation-item,
  .donations-closing {
    padding: 1.1rem;
  }

  .donation-item__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 20px;
    font-size: 1.2rem;
  }

  .donations-direct__button {
    padding: 0.95rem 1rem;
  }

  .application-hero,
  .application-form {
    padding: 1.1rem;
  }

  .application-form__section {
    padding: 0.9rem;
  }

  .application-hero .eyebrow,
  .application-note h2 {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .application-hero .eyebrow {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .application-note h2 {
    font-size: 1.28rem;
    line-height: 1.1;
  }

  .application-hero__copy,
  .application-hero__aside,
  .application-sidebar,
  .application-form,
  .application-form__header,
  .application-form__section,
  .application-form__section-head {
    min-width: 0;
  }

  .application-spotlight__title,
  .application-form__title {
    font-size: 1.42rem;
    line-height: 1.08;
  }

  .application-spotlight__copy,
  .application-form__intro,
  .application-form__foot,
  .application-selected__meta,
  .application-requirements li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .application-selected__value {
    font-size: 1.18rem;
    line-height: 1.15;
  }

  .section-block--adoptions-success .section-heading--cats h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    gap: 0.22rem;
    white-space: nowrap;
  }

  .brand__name {
    font-size: 1.35rem;
  }

  .brand__tagline {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
  }

  .topbar {
    padding-top: 0.8rem;
  }

  .topbar__menu-toggle {
    min-width: 5.8rem;
    height: 3rem;
    padding: 0 0.9rem;
  }

  .site-menu {
    top: 0.8rem;
    right: 0.8rem;
    width: min(21rem, calc(100vw - 1.2rem));
  }

  .site-menu__inner {
    padding: 1.15rem;
    border-radius: 26px;
  }

  .hero-copy {
    order: 2;
    justify-items: center;
    text-align: center;
  }

  .hero-aside {
    order: 1;
  }

  .lead {
    text-align: center;
    line-height: 1.55;
  }

  .floating-social {
    left: 50%;
    right: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    gap: 0.95rem;
  }

  .floating-social__link {
    width: auto;
    height: auto;
    background: transparent;
    clip-path: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .floating-social__link:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px) scale(1.04);
  }

  .floating-social__icon {
    width: 1.7rem;
    height: 1.7rem;
    fill: #c78da1;
  }

  .hero-actions--aside {
    gap: 0.55rem;
  }
}

@keyframes siteMenuIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-row {
    grid-template-columns: 120px 1fr auto;
    align-items: center;
  }
}
