﻿:root {
    color-scheme: light;
    --main-red: #e60000;
    --dark-red: #8f1111;
    --cream: #fff7ef;
    --card: #ffffff;
    --text-color: #222222;
    --surface-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    --site-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --brand-font: "Comic Sans MS", "Trebuchet MS", cursive;
    --card-radius: 24px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--site-font);
    color: var(--text-color);
    background: var(--cream);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: var(--main-red);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    font-family: var(--brand-font);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.header-logo-item {
    display: inline-flex;
    align-items: center;
}

.header-nav-logo {
    width: 48px;
    height: 48px;
    padding: 0.25rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 18px rgba(70, 0, 0, 0.22);
    object-fit: contain;
    vertical-align: middle;
}

.site-nav {
    flex: 0 1 auto;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.6rem, 2vw, 1.6rem);
    justify-content: center;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    color: white;
    padding: 0.75rem 0.25rem;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
    font-size: 0.94rem;
    font-weight: 800;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
    width: 100%;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
}

.donate-header {
    background: white;
    color: var(--main-red);
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.donate-header:hover,
.donate-header:focus-visible {
    background: #f8f8f8;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    background: white;
    border-radius: 999px;
}

main {
    flex: 1;
}

.placeholder-main {
    min-height: 55vh;
}

.construction-main {
    min-height: 62vh;
    display: grid;
    align-items: center;
    padding: 4rem 1rem;
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 210, 64, 0.2), transparent 13rem),
        radial-gradient(circle at 88% 68%, rgba(230, 0, 0, 0.08), transparent 12rem),
        var(--cream);
}

.construction-page {
    width: min(100%, 920px);
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4rem);
    border: 2px solid rgba(30, 30, 30, 0.08);
    border-radius: calc(var(--card-radius) + 8px);
    background: #fff;
    box-shadow: var(--surface-shadow);
    text-align: center;
}

.construction-tape {
    height: 54px;
    margin: -4rem -4rem 2rem;
    background:
        repeating-linear-gradient(
            135deg,
            #ffd23f 0 22px,
            #ffd23f 22px 44px,
            #222 44px 66px,
            #222 66px 88px
        );
    border-bottom: 5px solid rgba(0, 0, 0, 0.08);
}

.construction-icon {
    width: 92px;
    height: 80px;
    margin: 0 auto 1.4rem;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    color: #222;
    background: #ffd23f;
    font-size: 2.5rem;
    font-weight: 900;
}

.construction-page .eyebrow {
    background: #222;
    color: #ffd23f;
}

.construction-page h1 {
    margin: 0 auto 1rem;
    max-width: 720px;
    color: #2b2424;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1;
}

.construction-page p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto 1.8rem;
    color: #5f5656;
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 7rem 1.5rem 2rem;
    position: relative;
}

.hero-section .home-corner-logo {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: min(320px, 34vw);
    height: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--surface-shadow);
    z-index: 1;
}

.hero-copy {
    max-width: 560px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: calc(var(--card-radius) + 8px);
    box-shadow: var(--surface-shadow);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--main-red);
    color: white;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    margin-bottom: 1.2rem;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1.02;
}

.hero-copy p {
    margin: 0 0 1.8rem;
    color: #4a3c3a;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    border-radius: calc(var(--card-radius) + 8px);
    overflow: hidden;
    box-shadow: var(--surface-shadow);
    min-height: 420px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
}

/* Home page overhaul */
.home-main {
    position: relative;
    background: #fffaf4;
    overflow: hidden;
}

.home-main::before,
.home-main::after {
    content: "\1F43E\A\A\A\A\A\A\A\A\A\A\1F43E";
    white-space: pre;
    position: absolute;
    top: 2rem;
    color: rgba(230, 0, 0, 0.1);
    font-size: 4.8rem;
    line-height: 2.1;
    pointer-events: none;
}

.home-main::before {
    left: 2.2rem;
}

.home-main::after {
    right: 2.2rem;
}

.home-main .card-section {
    max-width: var(--content-width);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 1.25rem;
    padding-top: 1.5rem;
}

.home-hero-copy,
.home-logo-card,
.home-stat-card,
.home-donation-card,
.home-panel,
.testimonial-card,
.home-mission {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(230, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(80, 18, 18, 0.1);
}

.home-hero-copy {
    min-height: 265px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-copy .eyebrow {
    align-self: flex-start;
    margin-bottom: 0.85rem;
    font-weight: 900;
    letter-spacing: 0;
}

.home-hero-copy h1 {
    max-width: 560px;
    margin: 0 0 1rem;
    color: #2a2020;
    font-size: clamp(2.45rem, 5vw, 4.55rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.home-hero-copy p {
    margin: 0 0 1.25rem;
    color: #4b4444;
    line-height: 1.6;
}

.home-logo-card {
    min-height: 265px;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.home-logo-card > img {
    width: min(100%, 520px);
    max-height: 245px;
    object-fit: contain;
}

.home-promo-copy {
    display: none;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

.home-promo-copy span {
    display: inline-flex;
    width: fit-content;
    margin: 0 auto 0.55rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--main-red);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
}

.home-promo-copy strong {
    display: block;
    color: #2a2020;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    line-height: 1.05;
}

.home-promo-copy p {
    max-width: 44rem;
    margin: 0.55rem auto 0;
    color: #4b4444;
    line-height: 1.45;
}

.home-logo-card.has-promo-copy {
    align-content: center;
}

.home-logo-card.has-promo-copy .home-promo-copy {
    display: block;
}

.home-logo-card.has-event-image > img {
    width: 100%;
    max-height: 360px;
    border-radius: 12px;
    object-fit: cover;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 0;
}

.home-stat-card {
    min-height: 76px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffe4e4;
    color: var(--main-red);
    font-size: 1.25rem;
    font-weight: 900;
}

.home-stat-card .stat-value {
    margin: 0;
    font-size: clamp(1.65rem, 2.6vw, 2.3rem);
    line-height: 1;
}

.home-stat-card .stat-label {
    margin: 0.35rem 0 0;
    color: #4b4444;
    font-size: 0.92rem;
}

.home-qr-stat {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
}

.home-qr-stat img {
    width: min(100%, 104px);
    height: 104px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(230, 0, 0, 0.16);
    background: #fff;
    object-fit: contain;
}

.home-qr-stat .stat-label {
    margin-top: 0;
}

.home-donation {
    padding-top: 0;
}

.home-donation-card {
    padding: 1.2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.home-donation-card h2 {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
}

.home-donation-card p {
    margin: 0;
    color: #5f5656;
}

.home-progress-track {
    height: 14px;
    margin: 0.65rem 0 0.4rem;
    overflow: hidden;
    border-radius: 999px;
    background: #ffdada;
}

.home-progress-track span {
    display: block;
    width: 65%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--main-red), #ff5656);
}

.home-dashboard {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.1fr;
    gap: 1rem;
    padding-top: 0;
}

.home-panel {
    padding: 1.2rem;
}

.home-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-panel-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.home-panel-header a {
    color: var(--main-red);
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.featured-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.featured-cats a {
    min-width: 0;
    color: inherit;
}

.featured-cats img,
.adopted-list img {
    width: 100%;
    border-radius: 10px;
    background: #fff5f5;
    object-fit: cover;
}

.featured-cats img {
    aspect-ratio: 1 / 1.08;
}

.featured-cats h3,
.adopted-list h3 {
    margin: 0.65rem 0 0.15rem;
    color: #2a2020;
    font-size: 0.95rem;
}

.featured-cats p,
.adopted-list p {
    margin: 0;
    color: #5f5656;
    font-size: 0.78rem;
    line-height: 1.35;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.slider-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffd0d0;
}

.slider-dots .active {
    background: var(--main-red);
}

.calendar-panel {
    display: flex;
    flex-direction: column;
}

.calendar-panel .home-panel-header {
    margin-bottom: 0.75rem;
}

.calendar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: #fff3f3;
    border: 1px solid #f3d4d4;
}

.calendar-title button {
    width: 32px;
    height: 32px;
    border: 1px solid #f0c6c6;
    border-radius: 10px;
    background: white;
    color: var(--main-red);
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.calendar-title strong {
    display: block;
    color: #2a2020;
    font-size: 1rem;
    text-align: center;
}

.calendar-today-link {
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0.2rem auto 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--main-red);
    font-size: 0.72rem !important;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.home-calendar-toolbar {
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #f3d4d4;
    border-radius: 12px;
    background: #fff3f3;
}

.home-calendar-toolbar h3 {
    margin: 0;
    color: #2a2020;
    font-size: 1rem;
    text-align: center;
}

.home-calendar-toolbar .calendar-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.home-calendar-toolbar .calendar-nav,
.home-calendar-toolbar .calendar-today {
    border: 1px solid #f0c6c6;
    border-radius: 10px;
    background: white;
    color: var(--main-red);
    cursor: pointer;
    font-weight: 900;
}

.home-calendar-toolbar .calendar-nav {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1rem;
}

.home-calendar-toolbar .calendar-today {
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.28rem;
    padding: 0.45rem;
    border: 1px solid #efd8d8;
    border-radius: 14px;
    background: #fff8f8;
    min-height: 330px;
}

.mini-calendar > span,
.mini-calendar time {
    min-height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #efdede;
    border-radius: 8px;
    color: #3d3434;
    font-size: 0.78rem;
}

.mini-calendar > span {
    min-height: 26px;
    font-weight: 900;
    background: transparent;
    border-color: transparent;
    color: #8c7676;
}

.mini-calendar .event {
    color: #2a2020;
    font-weight: 900;
}

.mini-calendar time {
    align-content: start;
    justify-items: start;
    gap: 0.25rem;
    min-height: 48px;
    padding: 0.35rem;
    background: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.mini-calendar time > span {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
    padding-top: 0.28rem;
    font-weight: 900;
}

.mini-calendar time small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.18rem 0.35rem;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.1;
}

.mini-calendar .muted {
    color: #b8aaaa;
    background: #fffafa;
    opacity: 0.62;
}

.open-event {
    background: #dff7df !important;
    border-color: #90d090 !important;
    color: #176b28 !important;
}

.community-event {
    background: #dfeeff !important;
    border-color: #a9caff !important;
    color: #164f92 !important;
}

.adoption-event {
    background: #ffd8d8;
}

.vet-event {
    background: #dfeeff;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
    color: #5f5656;
    font-size: 0.74rem;
}

.calendar-legend i {
    width: 10px;
    height: 10px;
    display: inline-flex;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: -1px;
}

.adopted-list {
    display: grid;
    gap: 0.75rem;
}

.adopted-list a {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0dddd;
    color: inherit;
}

.adopted-list a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.adopted-list img {
    height: 62px;
}

.adopted-list span {
    color: var(--main-red);
    font-size: 1.4rem;
}

.home-testimonial {
    padding-top: 0;
}

.testimonial-card {
    padding: 1rem 1.4rem;
    display: grid;
    grid-template-columns: auto 1fr 160px 1.1fr auto;
    align-items: center;
    gap: 1.2rem;
    background: #ffe8e4;
}

.quote-mark {
    margin: 0;
    color: var(--main-red);
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1;
}

.testimonial-card blockquote,
.testimonial-card blockquote p,
.testimonial-card h2,
.testimonial-card div p {
    margin: 0;
}

.testimonial-card blockquote p {
    color: #3d3434;
    font-style: italic;
    line-height: 1.55;
}

.testimonial-card cite {
    display: block;
    margin-top: 0.5rem;
    color: #6b2020;
    font-style: normal;
    font-weight: 800;
}

.testimonial-card img {
    width: 150px;
    max-height: 86px;
    object-fit: contain;
}

.testimonial-card h2 {
    color: #7d1414;
    font-size: 1rem;
}

.testimonial-card div p {
    margin-top: 0.4rem;
    color: #5f5656;
    font-size: 0.86rem;
    line-height: 1.45;
}

.home-mission {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.home-mission article {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    border-right: 1px solid #f0d0ca;
}

.home-mission article:last-child {
    border-right: 0;
}

.home-mission span {
    color: var(--main-red);
    font-size: 1.65rem;
}

.home-mission h2 {
    margin: 0;
    color: var(--main-red);
    font-size: 0.98rem;
}

.home-mission p {
    margin: 0.25rem 0 0;
    color: #5f5656;
    font-size: 0.8rem;
}

@media (max-width: 1050px) {
    .event-full-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .event-full-hero > img {
        height: min(54vh, 460px);
        min-height: 280px;
        max-height: 460px;
    }

    .home-hero,
    .home-dashboard,
    .testimonial-card {
        grid-template-columns: 1fr;
    }

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

    .testimonial-card {
        justify-items: start;
    }

    .testimonial-card img {
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .event-full-copy {
        padding: 1.6rem;
    }

    .event-full-copy h1 {
        font-size: 2.5rem;
    }

    .event-full-hero > img {
        height: auto;
        max-height: 52vh;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .home-main .card-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-hero {
        padding-top: 1rem;
    }

    .home-hero-copy {
        min-height: auto;
    }

    .home-hero-copy h1 {
        font-size: 2.5rem;
    }

    .home-logo-card {
        min-height: 190px;
    }

    .home-stats,
    .home-donation-card,
    .featured-cats,
    .home-mission {
        grid-template-columns: 1fr;
    }

    .home-donation-card .button,
    .testimonial-card .button {
        width: 100%;
    }

    .home-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .adopted-list a {
        grid-template-columns: 64px 1fr auto;
    }

    .mini-calendar span,
    .mini-calendar time {
        min-height: 42px;
        font-size: 0.68rem;
    }

    .home-mission article {
        border-right: 0;
        border-bottom: 1px solid #f0d0ca;
    }

    .home-mission article:last-child {
        border-bottom: 0;
    }
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--card);
    border-radius: 24px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--surface-shadow);
}

.stat-value {
    font-size: 2.5rem;
    margin: 0;
    color: var(--main-red);
    font-weight: 800;
}

.stat-label {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    color: #4d4d4d;
}

.donation-card {
    background: var(--card);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--surface-shadow);
}

.donation-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding-top: 2rem;
}

.donation-hero .hero-copy {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: var(--surface-shadow);
}

.donation-hero .hero-image {
    min-height: 380px;
    border-radius: 32px;
    box-shadow: var(--surface-shadow);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.12), rgba(255, 255, 255, 0.75));
    overflow: hidden;
}

.donation-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donation-actions .donation-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
}

.donation-actions .donation-grid:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.donation-panel,
.donation-progress-card,
.other-ways-card,
.donation-info-card,
.help-card,
.wish-card,
.donation-follow-card {
    background: var(--card);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--surface-shadow);
}

.donation-panel .section-header,
.donation-progress-card .section-header,
.other-ways-card .section-header,
.donation-info-card .section-header,
.help-section .section-header,
.wish-card .section-header {
    margin-bottom: 1rem;
}

.quick-donate {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.quick-donate .button {
    padding: 0.9rem 0;
}

.custom-donate {
    display: grid;
    gap: 0.85rem;
}

.custom-donate label {
    font-weight: 700;
    color: var(--main-red);
}

.custom-donate input {
    width: 100%;
    border: 1px solid rgba(230, 0, 0, 0.2);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    font-size: 1rem;
}

.progress-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    color: #5d433f;
}

.donation-progress-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.donation-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(230, 0, 0, 0.05);
}

.info-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--main-red);
    color: white;
    font-size: 1.25rem;
}

.info-label {
    margin: 0 0 0.25rem;
    font-weight: 700;
    color: var(--main-red);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.help-card {
    text-align: center;
    padding: 1.75rem;
}

.help-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(230, 0, 0, 0.15);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.wish-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.wish-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
    color: #4f3b38;
    line-height: 1.8;
}

.donation-follow-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.2rem;
    align-items: center;
}

.donation-follow-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.donation-follow-card h3 {
    margin: 0 0 0.75rem;
}

.donation-follow-card p {
    margin: 0;
    color: #493b39;
    line-height: 1.7;
}

.section-header h2 {
    margin: 0 0 0.5rem;
}

.section-header p {
    margin: 0;
    color: #5b4743;
    line-height: 1.75;
}

.section-header {
    margin-bottom: 1.4rem;
}

.donation-card h2 {
    margin: 0 0 0.5rem;
}

.donation-card p {
    margin: 0;
    color: #5f4a46;
}

.progress-frame {
    width: 100%;
    height: 20px;
    background: #f3d8cf;
    border-radius: 999px;
    margin: 1.5rem 0 0.9rem;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--main-red), var(--dark-red));
    transition: width 1.2s ease;
}

.progress-copy {
    margin: 0 0 1.5rem;
    color: #6b5751;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--card);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--surface-shadow);
    display: flex;
    flex-direction: column;
}

.feature-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-copy {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.card-copy h3 {
    margin: 0;
    font-size: 1.35rem;
}

.card-copy p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--surface-shadow);
    min-height: 380px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-copy {
    background: var(--card);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--surface-shadow);
}

.about-copy h2 {
    margin-top: 0;
}

.about-copy p {
    color: #5a4c47;
    line-height: 1.8;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--card-radius);
    border: none;
    padding: 0.95rem 1.5rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--main-red);
    color: white;
}

.button-secondary {
    background: #fff;
    color: var(--main-red);
    box-shadow: inset 0 0 0 1px rgba(230, 0, 0, 0.15);
}

.site-footer {
    background: var(--main-red);
    color: white;
    padding: 2rem 1.5rem;
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-brand {
    font-family: var(--brand-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-contact p,
.footer-contact a,
.footer-social p {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact a {
    color: white;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 999px;
}

.adoption-hero,
.contact-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding-top: 2rem;
}

.hero-copy {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: var(--surface-shadow);
}

.hero-copy h1 {
    margin: 0 0 1rem;
    color: #2f0606;
    font-size: clamp(2.75rem, 4vw, 4.25rem);
    line-height: 1.02;
}

.hero-copy p {
    margin: 0;
    color: #4a3c3a;
    line-height: 1.8;
    font-size: 1.05rem;
}

.adoption-image,
.contact-hero-image {
    overflow: hidden;
    border-radius: 32px;
    min-height: 380px;
    box-shadow: var(--surface-shadow);
}

.adoption-image img,
.contact-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adoption-content {
    padding-top: 0;
}

.adoption-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Force adoption page cat grid (CSS conflict protection) */
.adoption-content .cats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
    gap: 1.5rem !important;
    justify-content: stretch !important;
}

.adoption-content .cat {
    display: flex;
    flex-direction: column;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    background: var(--card);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--surface-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adoption-content .cat:hover,
.adoption-content .cat:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(80, 18, 18, 0.16);
}

.filter-pill {
    padding: 0.9rem 1.1rem;
    background: rgba(230, 0, 0, 0.1);
    color: var(--main-red);
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--main-red);
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}

.cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.cat {
    background: var(--card);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--surface-shadow);
    display: flex;
    flex-direction: column;
}

.cat img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.cat-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.cat h3 {
    margin: 0;
    color: var(--main-red);
    font-size: 1.5rem;
}

.cat-meta {
    margin: 0;
    color: #4a3c3a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cat p.desc {
    margin: 0;
    color: #5a4c47;
    line-height: 1.75;
    flex: 1;
}

.cat button {
    margin-top: 0.5rem;
    align-self: flex-start;
}

.adoption-content .cats.showing-cat-detail {
    display: block !important;
}

.adoption-detail {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    gap: 2rem;
    background: var(--card);
    border-radius: 28px;
    box-shadow: var(--surface-shadow);
    padding: 1.5rem;
}

.adoption-back {
    grid-column: 1 / -1;
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--main-red);
    cursor: pointer;
    font-weight: 900;
    padding: 0;
}

.adoption-detail-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    object-fit: cover;
}

.adoption-detail-info {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.adoption-detail-info h2 {
    color: var(--main-red);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
}

.adoption-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    margin: 0;
}

.adoption-detail-list dt {
    color: #76625c;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.adoption-detail-list dd {
    color: #2f0606;
    font-weight: 800;
    margin: 0.2rem 0 0;
}

.adoption-detail-desc {
    color: #5a4c47;
    line-height: 1.8;
    margin: 0;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: var(--surface-shadow);
}

@media (max-width: 900px) {
    .adoption-hero,
    .contact-hero,
    .contact-grid,
    .cats,
    .adoption-detail,
    .donation-hero,
    .donation-actions .donation-grid,
    .donation-secondary,
    .help-grid,
    .wish-grid,
    .donation-follow-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .adoption-controls {
        justify-content: flex-start;
    }

    .adoption-detail-list {
        grid-template-columns: 1fr;
    }

    .quick-donate {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-copy,
    .contact-copy,
    .contact-card,
    .donation-panel,
    .donation-progress-card,
    .other-ways-card,
    .donation-info-card,
    .help-card,
    .wish-card,
    .donation-follow-card {
        padding: 1.5rem;
    }

    .adoption-image,
    .contact-hero-image {
        min-height: 260px;
    }

    .quick-donate {
        grid-template-columns: 1fr;
    }
}


.contact-copy {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: var(--surface-shadow);
}

.contact-copy h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2.75rem, 4vw, 4.25rem);
    line-height: 1.02;
}

.contact-copy p {
    margin: 0;
    color: #4a3c3a;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-hero-image {
    overflow: hidden;
    border-radius: 32px;
    min-height: 420px;
    box-shadow: var(--surface-shadow);
}

.contact-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 1.5rem;
    align-items: stretch;
}

.contact-card {
    background: var(--card);
    border-radius: 32px;
    box-shadow: var(--surface-shadow);
    padding: 2rem;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.field-label {
    font-weight: 700;
    color: var(--main-red);
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    border: 1px solid rgba(230, 0, 0, 0.2);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    background: #fff;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: var(--main-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.12);
}

.field-group textarea {
    min-height: 160px;
    resize: vertical;
}

.full-width {
    grid-column: 1 / -1;
}

.form-submit {
    width: 100%;
    justify-self: stretch;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.info-card .section-header {
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(230, 0, 0, 0.12);
}

.detail-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(230, 0, 0, 0.12);
    font-size: 1.35rem;
}

.detail-label {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.contact-detail a,
.contact-detail p {
    margin: 0;
    color: #4a3c3a;
}

.follow-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    background: rgba(230, 0, 0, 0.05);
    border-radius: 24px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.follow-card img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
}

.follow-card h3 {
    margin: 0 0 0.5rem;
    color: var(--main-red);
}

.follow-card p {
    margin: 0;
    color: #4a3c3a;
    line-height: 1.7;
}

.follow-card .social-links {
    padding-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.follow-card .social-links a {
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
}

@media (max-width: 900px) {
    .contact-hero,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero {
        padding-top: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-copy,
    .contact-card {
        padding: 1.5rem;
    }

    .contact-hero-image {
        min-height: 260px;
    }

    .follow-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .hero-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 2rem;
    }

    .hero-section .home-corner-logo {
        position: static;
        width: min(100%, 320px);
        justify-self: end;
        margin-bottom: -0.5rem;
    }

    .stats-section,
    .cards-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .site-nav {
        flex: 1 1 100%;
        order: 3;
        width: 100%;
        display: none;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 24px;
    }

    .site-nav a {
        padding: 0.85rem 1rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .donate-header {
        order: 2;
        flex: 1 1 auto;
        justify-content: center;
    }

    .header-inner {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .card-section,
    .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-copy {
        padding: 1.75rem;
        border-radius: 28px;
    }

    .hero-image {
        min-height: 300px;
    }

    .hero-section .home-corner-logo {
        position: static;
        width: min(100%, 320px);
        justify-self: end;
        margin-bottom: -0.5rem;
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .adoption-controls {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .adoption-controls .filter-pill {
        width: fit-content;
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    /* Make cats list easier to browse */
    .cats {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .cat img {
        height: 220px;
    }

    .cat h3 {
        font-size: 1.25rem;
    }
}

/* Shared responsive sizing so every page adapts to the visitor's screen. */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.header-inner,
.hero-section,
.card-section,
.footer-inner,
.admin-main,
.application-main {
    width: min(100%, 1180px);
}

.site-nav ul,
.hero-actions,
.social-links,
.adoption-controls {
    min-width: 0;
}

.button,
.filter-pill,
input,
select,
textarea {
    max-width: 100%;
}

.adoption-content .cats,
.cats,
.cards-grid,
.stats-section,
.wish-grid,
.help-grid,
.donation-grid,
.admin-stats-grid,
.admin-form-grid,
.application-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.hero-image,
.adoption-image,
.contact-hero-image {
    min-height: clamp(260px, 42vh, 420px);
}

.cat img {
    height: auto;
    aspect-ratio: 4 / 3;
}

.footer-contact,
.footer-social,
.footer-brand,
.cat-content,
.contact-detail,
.application-card,
.admin-card,
.admin-panel {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
    .hero-section,
    .card-section {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 760px) {
    .adoption-hero,
    .contact-hero,
    .donation-hero,
    .hero-section,
    .about-section,
    .contact-grid,
    .donation-secondary,
    .donation-follow-card,
    .adoption-detail,
    .application-hero,
    .admin-top-card,
    .admin-login-card,
    .admin-two-col,
    .admin-lower-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-copy h1,
    .contact-copy h1,
    .application-hero h1 {
        font-size: 2.25rem;
    }

    .hero-section,
    .adoption-hero,
    .contact-hero,
    .donation-hero,
    .application-main,
    .admin-main {
        padding-top: 1.25rem;
    }

    .adoption-content .cats {
        grid-template-columns: 1fr !important;
    }

    .footer-inner {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .header-inner,
    .card-section,
    .hero-section,
    .site-footer,
    .admin-main,
    .application-main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-copy,
    .contact-copy,
    .contact-card,
    .donation-panel,
    .donation-progress-card,
    .other-ways-card,
    .donation-info-card,
    .help-card,
    .wish-card,
    .application-card,
    .admin-card,
    .admin-panel-body {
        border-radius: 20px;
        padding: 1.15rem;
    }

    .hero-copy h1,
    .contact-copy h1,
    .application-hero h1 {
        font-size: 1.9rem;
    }
}

details summary {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    outline: none;
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.attributes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-section hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 1rem 0;
}

#inquiry-count {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#inquiry-filter,
#search-cat,
#inquiry-type,
#facebook-link,
#cat-name,
#cat-age,
#cat-breed,
#cat-desc,
#message,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#adoption-form {
    max-width: 600px;
    margin: 0 auto;
}

#adoption-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#selected-cat {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#selected-cat img {
    display: block;
    margin: 1rem auto;
}

.application-main {
    display: grid;
    gap: 1.5rem;
}

.application-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: stretch;
}

.application-kicker,
.selected-cat-label {
    color: var(--main-red);
    font-weight: 900;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

.application-hero h1 {
    color: #2f0606;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.application-hero p {
    color: #4a3c3a;
    line-height: 1.75;
    margin: 0;
}

#selected-cat {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(230, 0, 0, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
}

#selected-cat img {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    object-fit: cover;
    margin: 0;
}

#selected-cat h2 {
    color: var(--main-red);
    margin: 0 0 0.35rem;
}

#selected-cat p {
    margin: 0.2rem 0;
}

.application-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: var(--surface-shadow);
    padding: 1.5rem;
}

.application-progress {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.application-progress span {
    border: 1px solid rgba(230, 0, 0, 0.14);
    border-radius: 999px;
    color: #7a625d;
    font-weight: 900;
    padding: 0.7rem 1rem;
}

.application-progress span.active,
.application-progress span.complete {
    background: var(--main-red);
    color: #fff;
}

#adoption-form {
    max-width: none;
    margin: 0;
}

.application-step {
    display: none;
}

.application-step.active {
    display: block;
}

.application-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.application-form-grid label {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    font-weight: 800;
}

.application-form-grid span {
    color: var(--main-red);
    font-size: 0.9rem;
}

.application-form-grid input,
.application-form-grid select,
.application-form-grid textarea {
    border: 1px solid rgba(230, 0, 0, 0.18);
    border-radius: 14px;
    font: inherit;
    margin: 0;
    padding: 0.9rem 1rem;
}

.application-form-grid textarea {
    min-height: 110px;
    resize: vertical;
}

.application-wide {
    grid-column: 1 / -1;
}

.application-subsection {
    margin-top: 2rem;
}

.application-continue {
    margin-top: 1.5rem;
}

.application-placeholder {
    border: 1px solid rgba(230, 0, 0, 0.12);
    border-radius: 22px;
    background: rgba(230, 0, 0, 0.04);
    padding: 1.5rem;
}

.application-placeholder h3 {
    color: var(--main-red);
    margin: 0 0 0.5rem;
}

.application-placeholder p {
    color: #4a3c3a;
    line-height: 1.75;
    margin: 0;
}

.contract-card {
    display: grid;
    gap: 1.25rem;
}

.contract-summary {
    border: 1px solid rgba(230, 0, 0, 0.12);
    border-radius: 18px;
    background: rgba(230, 0, 0, 0.04);
    padding: 1rem;
}

.contract-summary h3 {
    color: var(--main-red);
    margin: 0 0 0.5rem;
}

.contract-summary p {
    color: #4a3c3a;
    margin: 0.35rem 0;
}

.contract-text {
    display: grid;
    gap: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: #fff;
    padding: 1.25rem;
}

.contract-text p {
    color: #4a3c3a;
    line-height: 1.75;
    margin: 0;
}

.contract-check {
    display: flex !important;
    align-items: center;
    gap: 0.75rem !important;
}

.contract-check input {
    width: auto;
}

@media (max-width: 900px) {
    .application-hero,
    .application-form-grid {
        grid-template-columns: 1fr;
    }

    .application-wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    #selected-cat {
        grid-template-columns: 1fr;
    }

    #selected-cat img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
#about {
    padding: 2rem;
    text-align: center;
}

#about img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
}

.cat-item {
    border: 1px solid #ddd;
    padding: 1rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cat-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}


body > main button:not(.button),
.admin-section button,
#admin-controls button,
.inquiry-actions button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}

body > main button:not(.button):hover,
.admin-section button:hover,
#admin-controls button:hover,
.inquiry-actions button:hover {
    background-color: #e68900;
}

body > main > form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

body > main > form label,
.admin-section label {
    margin-top: 1rem;
}

body > main > form input,
body > main > form textarea,
.admin-section input,
.admin-section textarea {
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}/* =========================
   ADMIN PAGE REDESIGN
   Paste at end of style.css
   ========================= */

.admin-page {
    background: linear-gradient(180deg, #fff7ef 0%, #fff3ec 100%);
}

.admin-page .site-header {
    background: linear-gradient(135deg, #d90000, #f00000);
}

.admin-site-header .header-inner {
    max-width: 1320px;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.admin-brand .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: rgba(255,255,255,0.14);
    border-radius: 18px;
    font-size: 1.65rem;
}

.admin-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.admin-page form {
    max-width: none;
    margin: 0;
}

.admin-page input,
.admin-page textarea,
.admin-page select {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.admin-top-card,
.admin-login-card,
.admin-card,
.admin-stat-card,
.admin-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(230, 0, 0, 0.08);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(31, 8, 8, 0.08);
}

.admin-top-card {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.admin-top-copy {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.admin-badge {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(230, 0, 0, 0.08);
    color: var(--main-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    flex-shrink: 0;
}

.admin-top-copy h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(2rem, 3vw, 3.1rem);
    color: #1f1f1f;
}

.admin-top-copy p {
    margin: 0;
    color: #5f4a46;
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 520px;
}

.admin-top-photo {
    justify-self: end;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--surface-shadow);
    background: #f7e8e0;
}

.admin-top-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-login-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.admin-login-copy h2 {
    margin: 0 0 0.35rem;
    color: #222;
}

.admin-login-copy p {
    margin: 0;
    color: #6b5550;
}

.admin-login-form {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    width: min(100%, 520px);
}

.admin-login-form input {
    border: 1px solid rgba(230,0,0,0.15);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background: #fff;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem;
}

.admin-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(230,0,0,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.admin-stat-number {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--main-red);
    line-height: 1;
}

.admin-stat-label {
    margin: 0.4rem 0;
    color: #403331;
    font-weight: 600;
}

.admin-stat-link {
    color: var(--main-red);
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.admin-card-header h2,
.admin-card-header h3 {
    margin: 0 0 0.25rem;
    color: var(--main-red);
}

.admin-card-header p {
    margin: 0;
    color: #6b5550;
    line-height: 1.6;
}

.admin-calendar-card {
    padding: 1.5rem;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-toolbar h3 {
    text-align: center;
    margin: 0;
    font-size: 1.8rem;
    color: #1f1f1f;
}

.calendar-toolbar-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.calendar-nav,
.calendar-today {
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    min-width: 52px;
    cursor: pointer;
    font-weight: 700;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 22px;
    overflow: hidden;
}

.calendar-day-head {
    background: #fff;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.calendar-cell {
    min-height: 122px;
    padding: 0.85rem;
    border-right: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-weight: 600;
    color: #3a3331;
    position: relative;
    background: rgba(255,255,255,0.75);
}

.calendar-cell:nth-child(7n) {
    border-right: none;
}

.calendar-cell.muted {
    color: #b2a8a5;
}

.calendar-cell.today {
    color: #3a3331;
    font-weight: 800;
    background: rgba(255,255,255,0.75);
}

.calendar-date-number {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    position: relative;
    z-index: 1;
    border-radius: 50%;
}

.calendar-cell.today .calendar-date-number {
    color: #fff;
    background: #e60000;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.calendar-event-chip {
    display: inline-block;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    width: 100%;
    color: #2a2120;
    background: #fff5de;
}

.calendar-event-chip.adoption {
    background: #eaf8ec;
    color: #2c7a3c;
}

.calendar-event-chip.open {
    background: #dff7df;
    color: #176b28;
}

.calendar-event-chip.community {
    background: #dfeeff;
    color: #164f92;
}

.calendar-event-chip.vet {
    background: #f2eafa;
    color: #7a42a8;
}

.calendar-event-chip.volunteer {
    background: #e8f1ff;
    color: #2a63ae;
}

.calendar-event-chip.donation {
    background: #fff5de;
    color: #9b6b00;
}

.calendar-event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(230,0,0,0.12);
}

.calendar-event-row span {
    color: #6b5550;
}

.calendar-delete-event {
    flex-shrink: 0;
}

.admin-panel {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.admin-panel summary {
    list-style: none;
    cursor: pointer;
    padding: 1.35rem 1.5rem;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--main-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-panel summary::-webkit-details-marker {
    display: none;
}

.admin-panel summary::after {
    content: "⌄";
    font-size: 1.25rem;
    color: var(--main-red);
}

.admin-panel[open] summary::after {
    transform: rotate(180deg);
}

.admin-panel-body {
    padding: 0 1.5rem 1.5rem;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-lower-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.admin-right-stack {
    display: grid;
    gap: 1rem;
}

.admin-inline-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    align-items: center;
}

.admin-inline-row .inline-label {
    font-weight: 700;
    color: var(--main-red);
}

.admin-inline-row > input,
.admin-inline-row > select {
    min-width: 0;
}

.admin-inline-row.donation-row {
    grid-template-columns: 1fr auto auto;
}

.admin-inline-row.social-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.calendar-event-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 180px minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
}

.calendar-event-form textarea {
    grid-column: 1 / -1;
    min-height: 96px;
    resize: vertical;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.security-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.security-check-grid article {
    background: #f8f1e8;
    border: 1px solid rgba(89, 61, 43, 0.16);
    border-radius: 8px;
    padding: 1rem;
}

.security-check-grid strong,
.security-check-grid span {
    display: block;
}

.security-check-grid strong {
    color: #2a1d16;
    margin-bottom: 0.5rem;
}

.security-check-grid span {
    color: #6c5a4f;
    line-height: 1.5;
}

.compact-grid {
    margin-top: 0.75rem;
}

.admin-page .admin-card input,
.admin-page .admin-card textarea,
.admin-page .admin-card select,
.admin-page .admin-panel input,
.admin-page .admin-panel textarea,
.admin-page .admin-panel select,
.admin-page .admin-login-form input {
    border: 1px solid rgba(230,0,0,0.15);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    background: #fff;
    color: #222;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-page .admin-card input:focus,
.admin-page .admin-card textarea:focus,
.admin-page .admin-card select:focus,
.admin-page .admin-panel input:focus,
.admin-page .admin-panel textarea:focus,
.admin-page .admin-panel select:focus,
.admin-page .admin-login-form input:focus {
    outline: none;
    border-color: var(--main-red);
    box-shadow: 0 0 0 4px rgba(230,0,0,0.1);
}

.admin-page .admin-card textarea,
.admin-page .admin-panel textarea {
    min-height: 110px;
    resize: vertical;
    margin-bottom: 1rem;
}

.admin-page .button,
.admin-page button {
    border-radius: 14px;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
}

.admin-page .button-primary,
.admin-page button.button-primary {
    background: linear-gradient(180deg, #ea0000, #c70000);
    color: #fff;
    border: none;
}

.admin-page .button-secondary {
    background: #fff;
    color: var(--main-red);
    border: 1px solid rgba(230,0,0,0.2);
}

.admin-full-btn {
    width: 100%;
}

.admin-list-block {
    min-height: 80px;
}

.admin-help-text {
    margin-top: 0.9rem;
    color: #6b5550;
    line-height: 1.6;
    font-size: 0.95rem;
}

.admin-donation-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #2a2120;
}

.admin-signout-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.legacy-panel summary {
    font-size: 1.25rem;
}

.admin-page #cat-list .cat-item,
.admin-page #cat-list .cat {
    border: 1px solid rgba(230,0,0,0.12);
    background: #fff;
    border-radius: 18px;
    box-shadow: none;
}

.admin-page #cat-list img,
.admin-page .cat-item img {
    border-radius: 14px;
}

@media (max-width: 1100px) {
    .admin-top-card,
    .admin-login-card,
    .admin-stats-grid,
    .admin-two-col,
    .admin-lower-grid {
        grid-template-columns: 1fr;
    }

    .admin-top-photo {
        justify-self: start;
    }

    .admin-inline-row,
    .admin-inline-row.social-row,
    .admin-inline-row.donation-row,
    .admin-form-grid,
    .security-check-grid,
    .calendar-event-form {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        overflow-x: auto;
    }
}

@media (max-width: 800px) {
    .admin-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admin-top-card,
    .admin-login-card,
    .admin-card,
    .admin-panel summary,
    .admin-panel-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admin-login-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(110px, 1fr));
        overflow-x: auto;
    }

    .calendar-cell {
        min-height: 110px;
    }

    .admin-page .button,
    .admin-page button {
        width: 100%;
    }

    .admin-signout-wrap {
        justify-content: stretch;
    }
}.site-nav .admin-menu-link {
    background: #ffffff;
    color: var(--main-red);
    font-weight: 800;
    padding: 0.75rem 1rem;
    border-radius: 999px;
}

.site-nav .admin-menu-link:hover,
.site-nav .admin-menu-link:focus-visible {
    background: #fff3ec;
    color: var(--dark-red);
}

/* Shelter-style admin workspace */
.admin-page {
    background: #fbfaf8;
}

.admin-page .site-header {
    background: #ffffff;
    color: #221f1f;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.admin-page .site-nav a,
.admin-page .brand {
    color: #221f1f;
}

.admin-page .site-nav a::after {
    background: var(--main-red);
}

.admin-page .menu-toggle span {
    background: var(--main-red);
}

.admin-page .admin-brand .brand-icon {
    background: var(--main-red);
    color: #fff;
}

.admin-main {
    max-width: 1380px;
    padding-top: 1.25rem;
}

.admin-top-card {
    display: none;
}

.shelter-module-nav {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.module-tab {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #4a4745;
    font-weight: 800;
    padding: 1rem 0.5rem;
    border-bottom: 3px solid transparent;
}

.module-tab.active,
.module-tab:hover,
.module-tab:focus-visible {
    color: var(--main-red);
    border-bottom-color: var(--main-red);
}

.admin-stats-grid {
    display: none;
}

.admin-stat-card {
    border-radius: 14px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 1rem;
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.admin-stat-number {
    font-size: 1.55rem;
}

.admin-calendar-card,
.admin-card,
.admin-panel,
.shelter-table-panel,
.animal-editor-card {
    border-radius: 14px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.shelter-table-panel {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.admin-module-section {
    display: none;
}

.admin-module-section.active {
    display: block;
}

.admin-calendar-card.admin-module-section.active {
    display: block;
}

.admin-lower-grid,
.admin-right-stack {
    display: contents;
}

.shelter-view-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.25rem;
}

.view-tab {
    border: 0;
    background: transparent;
    color: #504c49;
    cursor: pointer;
    font-weight: 800;
    padding: 0.95rem 0.5rem;
    border-bottom: 3px solid transparent;
}

.view-tab.active {
    color: var(--main-red);
    border-bottom-color: var(--main-red);
}

.shelter-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.shelter-search-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    background: #fff;
}

.search-symbol {
    color: var(--main-red);
    font-weight: 800;
    font-size: 0.9rem;
}

.shelter-search-wrap input {
    border: 0;
    padding: 0.8rem 0.25rem;
    margin: 0;
    font-size: 1rem;
}

.shelter-search-wrap input:focus {
    outline: none;
    box-shadow: none;
}

.shelter-table-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.shelter-table-actions p {
    margin: 0;
    color: #4b4745;
    font-weight: 700;
}

.shelter-table-actions > div {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.shelter-table-wrap {
    overflow-x: auto;
    min-height: 220px;
}

.animal-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.animal-table th {
    text-align: left;
    color: #3f3a38;
    font-weight: 900;
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.animal-table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: middle;
    color: #302d2c;
}

.animal-table tbody tr:hover {
    background: rgba(230, 0, 0, 0.035);
}

.animal-table tbody tr {
    cursor: pointer;
}

.select-col {
    width: 42px;
}

.animal-name-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 170px;
    font-weight: 900;
}

.animal-record-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0;
    text-align: left;
}

.animal-record-trigger:hover span,
.animal-record-trigger:focus-visible span {
    color: var(--main-red);
    text-decoration: underline;
}

.animal-name-cell img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    background: #f4efec;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(230, 0, 0, 0.08);
    color: var(--main-red);
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 900;
}

.animal-status-select {
    min-width: 120px;
    border: 1px solid rgba(230, 0, 0, 0.18);
    border-radius: 10px;
    background: #fff;
    color: var(--text-color);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.5rem 0.65rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions button {
    border: 1px solid rgba(230, 0, 0, 0.18);
    background: #fff;
    color: var(--main-red);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    padding: 0.55rem 0.75rem;
}

.animal-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.animal-editor-card {
    padding: 1.25rem;
}

.cat-photo-editor {
    display: grid;
    gap: 0.75rem;
}

.cat-photo-editor img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(143, 17, 17, 0.16);
    background: #fff7ef;
}

.cat-record-view {
    margin-top: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    scroll-margin-top: 1rem;
}

.cat-record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cat-record-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cat-record-identity img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 8px;
    background: #f4efec;
}

.cat-record-kicker {
    margin: 0 0 0.2rem;
    color: var(--main-red);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.cat-record-identity h3 {
    margin: 0;
    color: #292423;
    font-size: 1.45rem;
}

.cat-record-identity p:last-child {
    margin: 0.25rem 0 0;
    color: #625c58;
    font-weight: 700;
}

.cat-record-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cat-record-tabs {
    display: flex;
    gap: 1.25rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

.cat-record-tabs button {
    border: 0;
    background: transparent;
    color: #4b4745;
    cursor: pointer;
    font-weight: 900;
    padding: 0.85rem 0.25rem;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.cat-record-tabs button.active,
.cat-record-tabs button:hover,
.cat-record-tabs button:focus-visible {
    color: var(--main-red);
    border-bottom-color: var(--main-red);
}

.cat-record-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1rem;
    padding: 1rem;
    background: #faf8f7;
}

.cat-record-main {
    display: grid;
    gap: 1rem;
}

.record-tab-panel {
    display: none;
}

.record-tab-panel.active {
    display: grid;
    gap: 1rem;
}

.record-panel-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.medical-subtabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 0 0.75rem;
}

.medical-subtabs button {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #4b4745;
    cursor: pointer;
    font-weight: 800;
    padding: 0.75rem 0.15rem;
    white-space: nowrap;
}

.medical-subtabs button.active {
    color: var(--main-red);
    border-bottom-color: var(--main-red);
}

.medical-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.medical-edit-header h4 {
    margin: 0;
}

.medical-edit-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.medical-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.medical-edit-grid label {
    display: grid;
    gap: 0.3rem;
}

.medical-edit-grid span {
    color: #746c68;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.medical-edit-grid input,
.medical-edit-grid select,
.medical-edit-grid textarea {
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    font: inherit;
    padding: 0.75rem;
    width: 100%;
}

.medical-edit-grid textarea {
    min-height: 92px;
    resize: vertical;
}

.medical-edit-wide {
    grid-column: 1 / -1;
}

.cat-record-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
}

.cat-record-card h4 {
    margin: 0 0 0.85rem;
    color: #2c2826;
    font-size: 1rem;
}

.cat-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.25rem;
    margin: 0;
}

.cat-record-grid.single {
    grid-template-columns: 1fr;
}

.cat-record-wide-block {
    scroll-margin-top: 1rem;
}

.cat-record-field {
    min-width: 0;
}

.cat-record-field dt {
    color: #746c68;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 0.18rem;
}

.cat-record-field dd {
    color: #272321;
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.cat-record-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.cat-record-wide {
    grid-column: 1 / -1;
}

.cat-record-card p {
    color: #423d3a;
    line-height: 1.65;
    margin: 0;
}

.record-action {
    display: block;
    width: 100%;
    border: 1px solid rgba(230, 0, 0, 0.18);
    border-radius: 8px;
    background: #fff;
    color: var(--main-red);
    cursor: pointer;
    font-weight: 900;
    margin-bottom: 0.55rem;
    padding: 0.7rem 0.75rem;
    text-align: left;
}

.record-action:hover,
.record-action:focus-visible {
    background: rgba(230, 0, 0, 0.06);
}

.cat-record-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.cat-record-badges span {
    border-radius: 999px;
    background: rgba(230, 0, 0, 0.08);
    color: var(--main-red);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 0.35rem 0.6rem;
}

.cat-record-timeline {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-record-timeline li {
    border-left: 3px solid rgba(230, 0, 0, 0.25);
    padding-left: 0.75rem;
}

.cat-record-timeline strong,
.cat-record-timeline span {
    display: block;
}

.cat-record-timeline strong {
    color: var(--main-red);
    font-size: 0.85rem;
}

.cat-record-timeline span {
    color: #423d3a;
    font-weight: 700;
    margin-top: 0.15rem;
}

.record-history-table {
    display: grid;
    gap: 0.75rem;
    overflow-x: auto;
}

.record-history-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.record-history-table th,
.record-history-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
    text-align: left;
}

.record-history-table th {
    color: #5a5350;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.vaccine-builder,
.weight-builder {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.2fr auto;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.vaccine-builder label,
.weight-builder label,
.vaccine-edit-grid label {
    display: grid;
    gap: 0.25rem;
}

.vaccine-builder label span,
.weight-builder label span,
.vaccine-edit-grid label span {
    color: #746c68;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.vaccine-builder select,
.vaccine-builder input,
.weight-builder select,
.weight-builder input,
.vaccine-edit-grid input {
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
}

.vaccine-list {
    display: grid;
    gap: 0.75rem;
}

.vaccine-card {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 6px solid #7c858d;
    border-radius: 10px;
    background: #fff;
    padding: 0.9rem;
}

.vaccine-card.complete {
    border-left-color: #178a45;
}

.vaccine-card.overdue {
    border-left-color: #d90000;
    background: rgba(230, 0, 0, 0.035);
}

.vaccine-card.scheduled {
    border-left-color: #496a8f;
}

.vaccine-card h5 {
    color: #242120;
    font-size: 1rem;
    margin: 0;
}

.vaccine-card p {
    color: #625c58;
    font-weight: 700;
    margin: 0.15rem 0 0;
}

.vaccine-edit-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.vaccine-status {
    align-self: start;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.35rem 0.65rem;
}

.vaccine-status.complete {
    background: rgba(23, 138, 69, 0.12);
    color: #126f39;
}

.vaccine-status.overdue {
    background: rgba(230, 0, 0, 0.12);
    color: #d90000;
}

.vaccine-status.scheduled {
    background: rgba(73, 106, 143, 0.12);
    color: #355270;
}

.vaccine-actions {
    display: flex;
    gap: 0.5rem;
    grid-column: 1 / -1;
    flex-wrap: wrap;
}

.empty-state.compact {
    min-height: auto;
    padding: 1rem;
}

.customize-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.customize-group {
    display: grid;
    gap: 0.65rem;
    align-content: start;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 1rem;
    background: #faf8f7;
}

.customize-group h3 {
    margin: 0 0 0.35rem;
    color: #282321;
}

.customize-group label {
    color: #5a5350;
    font-size: 0.82rem;
    font-weight: 900;
}

.customize-color-row {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 0.75rem;
    align-items: center;
}

.customize-color-row input[type="color"] {
    height: 44px;
    padding: 0.2rem;
}

.customize-preview {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    border-radius: var(--card-radius);
    background: var(--cream);
    padding: 1rem;
}

.customize-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: var(--card-radius);
    background: var(--main-red);
    color: #fff;
    padding: 1rem;
}

.customize-preview-header img {
    width: 48px;
    height: 48px;
    padding: 0.25rem;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.customize-preview-header span {
    font-family: var(--brand-font);
    font-size: 1.25rem;
    font-weight: 900;
}

.customize-preview-card {
    border-radius: var(--card-radius);
    background: var(--card);
    color: var(--text-color);
    padding: 1rem;
}

.customize-preview-card h3,
.customize-preview-card p {
    margin: 0;
}

.customize-preview-card p {
    margin-top: 0.45rem;
    color: #5a5350;
}

.customize-home-preview {
    display: grid;
    gap: 1rem;
}

.customize-home-preview .home-logo-card {
    min-height: 250px;
}

.customize-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.customize-preview-stats span {
    min-height: 76px;
    padding: 0.85rem;
    border-radius: 10px;
    background: var(--card);
    color: #5a5350;
    display: grid;
    align-content: center;
    gap: 0.25rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.customize-preview-stats strong {
    color: var(--main-red);
    font-size: 1.45rem;
    line-height: 1;
}

.customize-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-editor-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1rem;
}

.page-picker {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.page-picker-button {
    border: 1px solid rgba(230, 0, 0, 0.14);
    border-radius: 10px;
    background: #fff;
    color: #282321;
    cursor: pointer;
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    text-align: left;
}

.page-picker-button span {
    font-weight: 900;
}

.page-picker-button small {
    color: #6b5550;
    font-size: 0.78rem;
}

.page-picker-button.active,
.page-picker-button:focus-visible,
.page-picker-button:hover {
    border-color: var(--main-red);
    box-shadow: inset 4px 0 0 var(--main-red);
}

.page-editor-form {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.page-editor-topline,
.page-sections-toolbar,
.page-section-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-editor-topline h3,
.page-editor-topline p,
.page-sections-toolbar h3 {
    margin: 0;
}

.page-editor-topline p {
    color: #6b5550;
    margin-top: 0.25rem;
}

.page-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.page-editor-grid label,
.page-section-editor label,
.page-button-editor label,
.page-block-toggle {
    display: grid;
    gap: 0.45rem;
    color: #5a5350;
    font-size: 0.86rem;
    font-weight: 900;
}

.page-editor-wide {
    grid-column: 1 / -1;
}

.page-editor-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 260px);
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(230, 0, 0, 0.1);
    border-radius: 12px;
    background: #fffaf8;
    padding: 1rem;
}

.page-editor-preview h3,
.page-editor-preview p {
    margin: 0;
}

.page-editor-preview span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.55rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--main-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
}

.page-editor-preview p {
    margin-top: 0.5rem;
    color: #5a5350;
    line-height: 1.5;
}

.page-editor-preview img {
    width: 100%;
    max-height: 180px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.page-section-list {
    display: grid;
    gap: 0.85rem;
}

.page-builder-panel {
    display: grid;
    gap: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}

.page-button-list,
.page-block-list {
    display: grid;
    gap: 0.65rem;
}

.page-button-editor {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.3fr) minmax(105px, 0.6fr) auto auto;
    gap: 0.65rem;
    align-items: end;
    border: 1px solid rgba(230, 0, 0, 0.08);
    border-radius: 10px;
    background: #faf8f7;
    padding: 0.75rem;
}

.page-block-toggle {
    grid-template-columns: auto 1fr;
    align-items: center;
    border: 1px solid rgba(230, 0, 0, 0.08);
    border-radius: 10px;
    background: #faf8f7;
    padding: 0.75rem;
}

.page-section-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #faf8f7;
    padding: 1rem;
}

.page-section-editor-header strong {
    color: #282321;
}

.page-section-editor-header {
    grid-column: 1 / -1;
}

.page-custom-sections {
    display: grid;
    gap: 1rem;
    padding-top: 0;
}

.page-custom-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(230, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(80, 18, 18, 0.1);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.page-custom-section.has-image {
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
}

.page-custom-section.image-right img {
    order: 2;
}

.page-custom-section.image-top.has-image {
    grid-template-columns: 1fr;
}

.page-custom-section.text-only img {
    display: none;
}

.page-custom-section img {
    width: 100%;
    max-height: 320px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.page-custom-section h2,
.page-custom-section p {
    margin: 0;
}

.page-custom-section p {
    margin-top: 0.65rem;
    color: #4b4444;
    line-height: 1.65;
}

.page-custom-section .button {
    margin-top: 1rem;
    width: fit-content;
}

.stat-card,
.donation-card,
.donation-panel,
.donation-progress-card,
.other-ways-card,
.donation-info-card,
.help-card,
.wish-card,
.donation-follow-card,
.admin-card,
.admin-panel,
.shelter-table-panel,
.animal-editor-card,
.cat,
.cat-card,
.contact-card,
.about-copy {
    border-radius: var(--card-radius);
}

@media (max-width: 1100px) {
    .customize-grid {
        grid-template-columns: 1fr;
    }

    .customize-preview-stats {
        grid-template-columns: 1fr;
    }

    .page-editor-shell,
    .page-editor-grid,
    .page-editor-preview,
    .page-button-editor,
    .page-section-editor,
    .page-custom-section.has-image {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .shelter-module-nav,
    .shelter-view-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 1.5rem;
    }

    .animal-editor-grid,
    .shelter-toolbar {
        grid-template-columns: 1fr;
    }

    .shelter-table-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .cat-record-body {
        grid-template-columns: 1fr;
    }

    .cat-record-side,
    .cat-record-wide {
        grid-column: auto;
    }

    .vaccine-builder {
        grid-template-columns: 1fr 1fr;
    }

    .weight-builder {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 680px) {
    .cat-record-header,
    .cat-record-identity {
        align-items: stretch;
        flex-direction: column;
    }

    .cat-record-actions {
        justify-content: flex-start;
    }

    .cat-record-grid {
        grid-template-columns: 1fr;
    }

    .cat-record-identity img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .vaccine-builder,
    .weight-builder,
    .vaccine-card,
    .vaccine-edit-grid,
    .medical-edit-grid {
        grid-template-columns: 1fr;
    }

    .medical-edit-header {
        align-items: stretch;
        flex-direction: column;
    }

    .medical-edit-actions {
        justify-content: flex-start;
    }
}

/* Published pop homepage */
.pop-page-shell {
    --pop-red: #eb2844;
    --pop-red-dark: #cc1630;
    --pop-ink: #37272b;
    --pop-muted: #675458;
    --pop-cream: #f8ecdf;
    --pop-paper: #fbf0e5;
    --pop-pink: #ffe1dc;
    --pop-line: rgba(235, 40, 68, 0.14);
    --pop-shadow: 0 16px 38px rgba(138, 45, 55, 0.13);
    --pop-gutter: clamp(24px, 3.5vw, 72px);
    --pop-content-width: min(1520px, calc(100vw - var(--pop-gutter) - var(--pop-gutter)));
    min-height: 100vh;
    background:
        radial-gradient(circle at 3% 36%, rgba(235, 40, 68, 0.08), transparent 12rem),
        radial-gradient(circle at 98% 48%, rgba(235, 40, 68, 0.08), transparent 13rem),
        linear-gradient(180deg, #f8ecdf 0%, #f6e6dc 54%, #fbf0e5 100%);
    color: var(--pop-ink);
    overflow-x: hidden;
}

.pop-header {
    min-height: 76px;
    color: #fff;
    background: linear-gradient(135deg, #ed2844, #d71935);
    box-shadow: 0 12px 30px rgba(190, 20, 43, 0.24);
}

.pop-header-inner {
    width: 100%;
    max-width: none;
    min-height: 76px;
    margin: 0;
    padding: 0 clamp(24px, 3vw, 56px);
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
}

.pop-brand {
    min-width: 295px;
    font-family: var(--brand-font);
    font-size: 28px;
    font-weight: 900;
    gap: 12px;
    letter-spacing: 0;
    color: #fff;
}

.pop-cat-mark {
    width: 88px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 88px;
}

.pop-cat-mark img {
    width: 88px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) contrast(1.25) drop-shadow(0.6px 0 #2f2025) drop-shadow(0 0.6px #2f2025);
}

.pop-nav {
    flex: 1;
}

.pop-nav ul {
    align-items: stretch;
    justify-content: center;
    gap: clamp(22px, 2.4vw, 36px);
}

.pop-nav a {
    min-height: 76px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
    background: transparent;
}

.pop-nav a::after {
    bottom: 12px;
}

.pop-nav a:hover,
.pop-nav a:focus-visible,
.pop-nav a[aria-current="page"] {
    background: transparent;
}

.pop-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.pop-signin::before {
    content: "\25CF";
    margin-right: 7px;
    font-size: 12px;
}

.pop-main {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 4% 28%, rgba(235, 40, 68, 0.07), transparent 10rem),
        radial-gradient(circle at 96% 42%, rgba(235, 40, 68, 0.07), transparent 12rem),
        linear-gradient(180deg, #f8ecdf 0%, #fbf0e5 100%);
}

.pop-main::before,
.pop-main::after {
    content: "";
    position: absolute;
    width: 78px;
    height: 78px;
    background:
        radial-gradient(circle at 50% 65%, rgba(235, 40, 68, 0.11) 0 25%, transparent 26%),
        radial-gradient(circle at 25% 34%, rgba(235, 40, 68, 0.11) 0 11%, transparent 12%),
        radial-gradient(circle at 43% 20%, rgba(235, 40, 68, 0.11) 0 11%, transparent 12%),
        radial-gradient(circle at 62% 21%, rgba(235, 40, 68, 0.11) 0 11%, transparent 12%),
        radial-gradient(circle at 78% 35%, rgba(235, 40, 68, 0.11) 0 11%, transparent 12%);
    pointer-events: none;
    z-index: 0;
}

.pop-main::before {
    left: 22px;
    top: 305px;
    transform: rotate(-20deg);
}

.pop-main::after {
    right: 28px;
    top: 705px;
    transform: rotate(18deg);
}

.pop-main .card-section {
    width: var(--pop-content-width);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    position: relative;
    z-index: 1;
}

.pop-hero.card-section {
    width: 100%;
    max-width: none;
    min-height: 432px;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(590px, 53%) 1fr;
    gap: 0;
    overflow: hidden;
    border-bottom-left-radius: 44px;
    border-bottom-right-radius: 44px;
    background: #f5dfcd;
}

.pop-hero-copy,
.pop-hero-image,
.pop-stats .home-stat-card,
.pop-card,
.pop-testimonial,
.pop-newsletter {
    border: 1px solid rgba(235, 40, 68, 0.1);
    border-radius: 15px;
    background: rgba(253, 244, 235, 0.94);
    box-shadow: var(--pop-shadow);
}

.pop-hero-copy {
    min-height: 432px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px clamp(64px, 6vw, 118px) 48px clamp(72px, 7vw, 136px);
    background:
        radial-gradient(circle at 10% 18%, rgba(235, 40, 68, 0.07), transparent 12px),
        radial-gradient(circle at 9% 70%, rgba(235, 40, 68, 0.08), transparent 15px),
        #fff5e8;
    position: relative;
    z-index: 2;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.pop-hero-copy::after {
    content: "";
    position: absolute;
    right: -58px;
    top: -28px;
    width: 168px;
    height: 506px;
    border-radius: 50%;
    background: #fff5e8;
    z-index: -1;
}

.pop-hero .eyebrow {
    display: none;
}

.soft-paw {
    width: 44px;
    height: 44px;
    position: absolute;
    opacity: 0.55;
    background:
        radial-gradient(circle at 50% 65%, rgba(235, 40, 68, 0.16) 0 25%, transparent 26%),
        radial-gradient(circle at 25% 34%, rgba(235, 40, 68, 0.16) 0 11%, transparent 12%),
        radial-gradient(circle at 43% 20%, rgba(235, 40, 68, 0.16) 0 11%, transparent 12%),
        radial-gradient(circle at 62% 21%, rgba(235, 40, 68, 0.16) 0 11%, transparent 12%),
        radial-gradient(circle at 78% 35%, rgba(235, 40, 68, 0.16) 0 11%, transparent 12%);
}

.paw-one {
    left: 42px;
    top: 94px;
    transform: rotate(-18deg);
}

.paw-two {
    left: 52px;
    bottom: 88px;
    width: 35px;
    height: 35px;
    transform: rotate(18deg);
}

.pop-hero h1 {
    width: 520px;
    max-width: 100%;
    margin: 0;
    color: #3a2a2e;
    font-size: 58px;
    line-height: 0.97;
    letter-spacing: 0;
}

.pop-hero-copy > p {
    width: 490px;
    max-width: 100%;
    margin: 14px 0 0;
    color: #5f5053;
    font-size: 16px;
    line-height: 1.5;
}

.pop-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 27px;
}

.pop-button,
.pop-cat-copy > a,
.pop-card-action,
.pop-help-row a,
.pop-newsletter button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pop-button:hover,
.pop-cat-copy > a:hover,
.featured-cat-card:hover .pop-card-action,
.pop-help-row a:hover,
.pop-newsletter button:hover {
    transform: translateY(-1px);
}

.pop-button {
    gap: 7px;
    padding: 0 17px;
}

.pop-button.primary,
.pop-cat-copy > a,
.pop-card-action,
.pop-newsletter button {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--pop-red), var(--pop-red-dark));
    box-shadow: 0 10px 22px rgba(221, 26, 54, 0.25);
}

.pop-button.ghost,
.pop-help-row a {
    color: var(--pop-red);
    border: 1px solid rgba(235, 40, 68, 0.45);
    background: rgba(255, 255, 255, 0.75);
}

.pop-social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.pop-face-stack {
    display: flex;
}

.pop-face-stack span {
    width: 31px;
    height: 31px;
    margin-left: -8px;
    border: 2px solid #fff7ef;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 38%, #654 0 5%, transparent 6%),
        radial-gradient(circle at 65% 38%, #654 0 5%, transparent 6%),
        linear-gradient(135deg, #f7bd96, #b46f5f);
}

.pop-face-stack span:first-child {
    margin-left: 0;
}

.pop-face-stack span:nth-child(2) {
    background: linear-gradient(135deg, #ffd0b4, #8f5a4c);
}

.pop-face-stack span:nth-child(3) {
    background: linear-gradient(135deg, #f0a886, #d9c5b8);
}

.pop-social-proof p {
    margin: 0;
    color: var(--pop-muted);
    font-size: 13px;
}

.pop-hero-image {
    min-height: 432px;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.pop-hero-image > img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 58% 50%;
}

.pop-hero-image::after {
    content: "\2661";
    position: absolute;
    right: 95px;
    top: 178px;
    color: #fff;
    font-family: var(--brand-font);
    font-size: 58px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(90, 32, 38, 0.25);
}

.pop-hero-note {
    display: grid !important;
    gap: 2px;
    width: 190px;
    position: absolute;
    right: 32px;
    top: 234px;
    margin: 0;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 12px rgba(90, 32, 38, 0.38);
    transform: rotate(-12deg);
}

.pop-hero-note span,
.pop-hero-note strong,
.pop-hero-note p {
    margin: 0;
    color: #fff;
    font-family: var(--brand-font);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.18;
}

.pop-hero-note strong {
    font-size: 20px;
}

.pop-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: -42px;
    padding-top: 0;
    z-index: 3;
}

.pop-stats .home-stat-card {
    min-height: 118px;
    padding: 22px 20px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
}

.pop-stats .stat-icon {
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pop-red);
    background: #ffe0d9;
    font-size: 32px;
    font-weight: 900;
}

.pop-stats .stat-value {
    display: block;
    margin: 0;
    color: var(--pop-red);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.pop-stats h2,
.pop-stats .stat-label {
    margin: 0;
}

.pop-stats h2 {
    margin-top: 4px;
    color: var(--pop-ink);
    font-size: 14px;
}

.pop-stats .stat-label {
    margin-top: 5px;
    color: var(--pop-muted);
    font-size: 12px;
    line-height: 1.35;
}

.pop-stats .home-qr-stat {
    position: relative;
    text-align: left;
}

.pop-stats .home-qr-stat img {
    width: 64px;
    height: 64px;
    position: absolute;
    right: 14px;
    bottom: 14px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.pop-card {
    padding: 24px;
}

.pop-featured,
.pop-two-col,
.pop-bottom-grid,
.pop-newsletter {
    margin-top: 18px;
}

.pop-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pop-section-title h2,
.pop-donation h2,
.pop-newsletter h2 {
    margin: 0;
    color: var(--pop-ink);
    font-size: 23px;
    line-height: 1.2;
}

.pop-section-title span,
.pop-donation h2 span {
    color: #ff8792;
}

.pop-section-title a {
    color: var(--pop-red);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.pop-cat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.featured-cat-card.pop-cat-card {
    overflow: hidden;
    border: 1px solid rgba(235, 40, 68, 0.12);
    border-radius: 13px;
    color: inherit;
    background: #fff;
    box-shadow: 0 8px 24px rgba(97, 30, 43, 0.09);
}

.pop-photo-wrap {
    position: relative;
    aspect-ratio: 1.75 / 1;
}

.pop-photo-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.pop-photo-wrap span {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #fff;
    background: var(--pop-red);
    font-size: 12px;
    font-weight: 900;
}

.pop-cat-copy {
    padding: 14px 16px 16px;
}

.pop-cat-copy h3 {
    margin: 0;
    color: var(--pop-ink);
    font-size: 18px;
}

.pop-cat-copy small {
    color: var(--pop-red);
}

.pop-cat-copy p {
    margin: 5px 0 0;
    color: var(--pop-muted);
    font-size: 13px;
    line-height: 1.4;
}

.pop-cat-copy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin: 12px 0 14px;
    padding: 0;
    color: #83686c;
    font-size: 12px;
    font-weight: 800;
}

.pop-cat-copy li::before {
    content: "\2661";
    color: var(--pop-red);
    margin-right: 4px;
}

.pop-cat-copy > .pop-card-action {
    width: 100%;
    gap: 8px;
}

.pop-two-col {
    display: grid;
    grid-template-columns: 1fr 0.94fr;
    gap: 20px;
}

.pop-help-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    text-align: center;
}

.home-help.pop-card {
    border-color: rgba(235, 40, 68, 0.16);
    background: linear-gradient(135deg, #ffe2df, #fff2ef);
}

.adoption-process-list {
    display: grid;
    gap: 12px;
}

.adoption-process-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px;
    border: 1px solid rgba(235, 40, 68, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 24px rgba(138, 45, 55, 0.06);
}

.adoption-process-list span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--pop-red);
    box-shadow: 0 8px 18px rgba(235, 40, 68, 0.22);
    font-weight: 900;
}

.adoption-process-list h3 {
    margin: 0 0 4px;
    color: var(--pop-ink);
    font-size: 16px;
}

.adoption-process-list p {
    margin: 0;
    color: var(--pop-muted);
    font-size: 13px;
    line-height: 1.42;
}

.process-application-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 0 18px;
    border-radius: 10px;
    color: #fff;
    background: var(--pop-red);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(235, 40, 68, 0.22);
}

.pop-help-row img {
    width: 128px;
    height: 105px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.pop-help-row h3 {
    margin: 0;
    color: var(--pop-ink);
    font-size: 18px;
}

.pop-help-row p {
    min-height: 45px;
    margin: 5px 0 9px;
    color: var(--pop-muted);
    font-size: 13px;
    line-height: 1.25;
}

.pop-help-row a {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.pop-donation p {
    margin: 8px 0 0;
    color: var(--pop-muted);
    font-size: 14px;
}

.pop-donation p i {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 8px 2px;
    border-radius: 50%;
    background: var(--pop-red);
}

.pop-main-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 13px 0 15px;
}

.pop-main-progress > span {
    height: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: #f6d6cf;
}

.pop-main-progress > span > b {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pop-red), #ff6578);
}

.pop-main-progress strong {
    font-size: 15px;
}

.pop-donation h3 {
    margin: 0 0 10px;
    color: var(--pop-ink);
    font-size: 14px;
}

.pop-donation-lines {
    display: grid;
    gap: 12px;
}

.pop-donation-lines p {
    display: grid;
    grid-template-columns: 1fr 1.2fr 36px;
    gap: 10px;
    align-items: center;
    margin: 0;
    font-size: 12px;
}

.pop-donation-lines i {
    width: auto !important;
    height: 8px !important;
    margin: 0 !important;
    display: block !important;
    overflow: hidden;
    border-radius: 999px !important;
    background: #f6d6cf !important;
}

.pop-donation-lines b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--pop-red);
}

.pop-donation-lines strong {
    text-align: right;
}

.pop-bottom-grid {
    display: grid;
    grid-template-columns: 0.94fr 1.11fr;
    gap: 20px;
}

.pop-events {
    display: grid;
    gap: 12px;
}

.pop-events-list {
    display: grid;
    gap: 12px;
}

.pop-event {
    display: grid;
    grid-template-columns: 72px 1fr 152px;
    align-items: center;
    gap: 16px;
    min-height: 108px;
    padding: 11px;
    border: 1px solid rgba(235, 40, 68, 0.12);
    border-radius: 10px;
    color: inherit;
    background: #fff;
}

.pop-event time {
    min-height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(235, 40, 68, 0.26);
    border-radius: 8px;
    color: var(--pop-red);
}

.pop-event time strong {
    font-size: 14px;
    line-height: 1;
}

.pop-event time span {
    margin-top: -12px;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.pop-event h3,
.pop-event p {
    margin: 0;
}

.pop-event h3 {
    color: var(--pop-ink);
    font-size: 15px;
}

.pop-event p {
    margin-top: 4px;
    color: var(--pop-muted);
    font-size: 12px;
    line-height: 1.25;
}

.pop-event img {
    width: 152px;
    height: 88px;
    border-radius: 8px;
    object-fit: cover;
}

.event-full-main {
    min-height: calc(100vh - 160px);
    background: #fff7f3;
}

.event-full-hero {
    min-height: calc(100vh - 160px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1rem, 3vw, 2.5rem);
}

.event-full-hero > img {
    width: 100%;
    height: min(68vh, 620px);
    max-height: 620px;
    border-radius: 16px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 18px 46px rgba(92, 42, 42, 0.14);
}

.event-full-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
    padding: clamp(1.6rem, 4vw, 3.6rem);
    color: #38282b;
    background: #fff8f4;
}

.event-full-copy h1 {
    margin: 0;
    color: var(--pop-ink, #322327);
    font-size: clamp(2.4rem, 5vw, 5.6rem);
    line-height: 0.98;
}

.event-full-date {
    margin: 0;
    color: var(--pop-red, #eb2844);
    font-size: 1.2rem;
    font-weight: 900;
}

.event-full-details {
    max-width: 62ch;
    color: #514346;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.7;
}

.event-full-empty {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 6rem;
    text-align: center;
}

.pop-testimonial {
    min-height: 198px;
    display: grid;
    grid-template-columns: 1fr 310px;
    align-items: center;
    gap: 24px;
    padding: 24px 30px;
    background: linear-gradient(135deg, #ffe2df, #fff2ef);
    position: relative;
    overflow: hidden;
}

.pop-testimonial strong {
    display: block;
    height: 42px;
    color: var(--pop-red);
    font-size: 78px;
    line-height: 0.7;
}

.pop-testimonial p {
    margin: 0;
    color: #4f3e42;
    font-size: 16px;
    line-height: 1.48;
}

.pop-testimonial cite {
    display: block;
    margin-top: 12px;
    color: var(--pop-muted);
    font-size: 13px;
    font-style: normal;
}

.pop-testimonial img {
    width: 310px;
    height: 164px;
    border-radius: 50px 20px 50px 20px;
    object-fit: cover;
}

.pop-outline-heart {
    position: absolute;
    right: 26px;
    bottom: 28px;
    color: var(--pop-red);
    font-family: var(--brand-font);
    font-size: 60px;
    transform: rotate(-12deg);
}

.pop-newsletter {
    min-height: 82px;
    display: grid;
    grid-template-columns: 124px 1fr minmax(430px, 560px) 80px;
    align-items: center;
    gap: 22px;
    padding: 17px 28px;
    background: linear-gradient(135deg, #ffc0ba, #ffd8d2);
    position: relative;
    overflow: hidden;
}

.pop-envelope {
    width: 88px;
    height: 60px;
    margin-left: 10px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--pop-red);
    background: #fff;
    font-size: 28px;
    box-shadow: 0 10px 22px rgba(138, 45, 55, 0.12);
}

.pop-newsletter h2,
.pop-newsletter p {
    margin: 0;
}

.pop-newsletter h2 {
    font-size: 17px;
}

.pop-newsletter p {
    margin-top: 4px;
    color: var(--pop-muted);
    font-size: 13px;
    line-height: 1.35;
}

.pop-newsletter form {
    display: grid;
    grid-template-columns: 1fr 158px;
    gap: 12px;
}

.pop-newsletter input {
    min-height: 44px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    color: var(--pop-ink);
    font-size: 14px;
}

.pop-newsletter button {
    border: 0;
    color: #fff;
    cursor: pointer;
}

.pop-peek-cat {
    width: 80px;
    height: 62px;
    align-self: end;
    border-radius: 999px 999px 0 0;
    background:
        radial-gradient(circle at 35% 45%, #4d3134 0 4%, transparent 5%),
        radial-gradient(circle at 65% 45%, #4d3134 0 4%, transparent 5%),
        radial-gradient(circle at 50% 60%, #ff9eaa 0 5%, transparent 6%),
        #fff;
    position: relative;
}

.pop-peek-cat::before,
.pop-peek-cat::after {
    content: "";
    position: absolute;
    top: -5px;
    width: 25px;
    height: 25px;
    background: #fff;
    transform: rotate(45deg);
}

.pop-peek-cat::before {
    left: 8px;
}

.pop-peek-cat::after {
    right: 8px;
}

.pop-footer {
    min-height: 117px;
    margin-top: 0;
    padding: 18px 72px;
    color: #fff;
    background: linear-gradient(135deg, #ec2844, #d71935);
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
}

.pop-footer-inner {
    width: var(--pop-content-width);
    max-width: none;
    display: grid;
    grid-template-columns: 1.12fr 1.15fr 0.7fr 0.78fr;
    gap: 28px;
    align-items: center;
}

.pop-footer-brand img {
    width: 68px;
    height: 43px;
    object-fit: contain;
    filter: brightness(0) contrast(1.25) drop-shadow(0.6px 0 #2f2025) drop-shadow(0 0.6px #2f2025);
}

.pop-footer .footer-brand {
    margin-top: 4px;
    font-family: var(--brand-font);
    font-size: 20px;
    font-weight: 900;
}

.pop-footer p,
.pop-footer a {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.93);
    font-size: 12px;
    line-height: 1.35;
}

.pop-footer .social-links a {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0;
}

.pop-footer .social-links a::first-letter {
    font-size: 13px;
}

.pop-donation-badge {
    min-height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.adoption-pop-page {
    background: #fff7f2;
}

.adoption-main.pop-main {
    padding-bottom: 0;
}

.adoption-pop-hero.card-section {
    width: var(--pop-content-width);
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
    gap: 0;
    align-items: stretch;
    padding-top: 28px;
}

.adoption-pop-copy,
.adoption-pop-image,
.adoption-pop-content {
    border: 1px solid rgba(235, 40, 68, 0.1);
    border-radius: 16px;
    box-shadow: var(--pop-shadow);
}

.adoption-pop-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
    padding: clamp(34px, 5vw, 70px);
    background: #fff9f3;
}

.adoption-pop-copy .eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--pop-red);
    background: #ffe4df;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.adoption-pop-copy h1 {
    max-width: 720px;
    margin: 0;
    color: var(--pop-ink);
    font-size: clamp(42px, 6vw, 84px);
    line-height: 0.96;
}

.adoption-pop-copy > p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--pop-muted);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.6;
}

.adoption-pop-image {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #fff;
}

.adoption-pop-image img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.adoption-pop-note {
    position: absolute;
    right: 22px;
    bottom: 22px;
    max-width: 260px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    color: #fff;
    background: rgba(235, 40, 68, 0.86);
    box-shadow: 0 18px 44px rgba(92, 25, 34, 0.24);
}

.adoption-pop-note strong,
.adoption-pop-note p {
    margin: 0;
}

.adoption-pop-note strong {
    display: block;
    font-size: 1.05rem;
}

.adoption-pop-note p {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.adoption-pop-content.card-section {
    width: var(--pop-content-width);
    margin-top: 24px;
    padding: clamp(18px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
}

.adoption-pop-content .adoption-controls {
    margin: 0 0 22px;
    gap: 10px;
}

.adoption-pop-content .filter-pill {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(235, 40, 68, 0.18);
    border-radius: 999px;
    color: var(--pop-red);
    background: #fff8f4;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(138, 45, 55, 0.06);
}

.adoption-pop-content .filter-pill:hover,
.adoption-pop-content .filter-pill.active {
    color: #fff;
    background: linear-gradient(135deg, var(--pop-red), var(--pop-red-dark));
}

.adoption-pop-content .cats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
    gap: 18px !important;
}

.adoption-pop-content .cat {
    border: 1px solid rgba(235, 40, 68, 0.1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(138, 45, 55, 0.1);
}

.adoption-pop-content .cat img {
    height: 230px;
    border-bottom: 1px solid rgba(235, 40, 68, 0.1);
}

.adoption-pop-content .cat-content {
    padding: 16px;
    gap: 8px;
}

.adoption-pop-content .cat h3 {
    color: var(--pop-ink);
    font-size: 1.3rem;
}

.adoption-pop-content .cat-meta {
    color: var(--pop-muted);
    font-weight: 800;
}

.adoption-pop-content .cat-meta:last-child {
    width: fit-content;
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--pop-red);
    background: #ffe7e2;
    font-size: 0.82rem;
}

.adoption-pop-content .adoption-detail {
    border: 1px solid rgba(235, 40, 68, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--pop-shadow);
}

.adoption-pop-content .adoption-back {
    color: var(--pop-red);
}

.adoption-pop-content .adoption-detail-media img {
    border-radius: 14px;
}

.adoption-pop-content .adoption-detail-info h2 {
    color: var(--pop-ink);
}

.adoption-pop-content .adoption-detail-desc {
    color: var(--pop-muted);
}

.adoption-pop-content .empty-state {
    border: 1px solid rgba(235, 40, 68, 0.1);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(138, 45, 55, 0.08);
}

.donation-pop-page,
.contact-pop-page {
    background: #fff7f2;
}

.donation-main.pop-main,
.contact-main.pop-main {
    padding-bottom: 0;
}

.donation-pop-hero.card-section,
.contact-pop-hero.card-section {
    width: var(--pop-content-width);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 0;
    align-items: stretch;
    padding-top: 28px;
}

.donation-pop-copy,
.contact-pop-copy,
.donation-pop-image,
.contact-pop-image,
.donation-pop-actions,
.donation-pop-secondary,
.donation-pop-help,
.donation-pop-wish .wish-card,
.contact-pop-grid,
.contact-pop-form,
.contact-pop-info {
    border: 1px solid rgba(235, 40, 68, 0.1);
    border-radius: 16px;
    box-shadow: var(--pop-shadow);
}

.donation-pop-copy,
.contact-pop-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
    padding: clamp(34px, 5vw, 70px);
    background: #fff9f3;
}

.donation-pop-copy .eyebrow,
.contact-pop-copy .eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--pop-red);
    background: #ffe4df;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.donation-pop-copy h1,
.contact-pop-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--pop-ink);
    font-size: clamp(42px, 6vw, 84px);
    line-height: 0.96;
}

.donation-pop-copy > p,
.contact-pop-copy > p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--pop-muted);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.6;
}

.donation-pop-image,
.contact-pop-image {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #fff;
}

.donation-pop-image img,
.contact-pop-image img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.donation-pop-note,
.contact-pop-note {
    position: absolute;
    right: 22px;
    bottom: 22px;
    max-width: 290px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    color: #fff;
    background: rgba(235, 40, 68, 0.86);
    box-shadow: 0 18px 44px rgba(92, 25, 34, 0.24);
}

.donation-pop-note strong,
.donation-pop-note p,
.contact-pop-note strong,
.contact-pop-note p {
    margin: 0;
}

.donation-pop-note strong,
.contact-pop-note strong {
    display: block;
    font-size: 1.05rem;
}

.donation-pop-note p,
.contact-pop-note p {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.donation-pop-actions.card-section,
.donation-pop-secondary.card-section,
.donation-pop-help.card-section,
.donation-pop-wish.card-section,
.contact-pop-grid.card-section {
    width: var(--pop-content-width);
    margin-top: 24px;
}

.donation-pop-actions {
    padding: clamp(18px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
}

.donation-pop-actions .donation-grid {
    grid-template-columns: 1fr;
}

.donation-pop-actions .donation-progress-card,
.donation-pop-secondary > *,
.donation-pop-help .help-card,
.donation-pop-wish .wish-card,
.contact-pop-form,
.contact-pop-info {
    border: 1px solid rgba(235, 40, 68, 0.1);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(138, 45, 55, 0.09);
}

.donation-pop-actions .donation-progress-card {
    padding: clamp(20px, 3vw, 34px);
}

.donation-pop-secondary {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.donation-pop-secondary > *,
.donation-pop-wish .wish-card {
    padding: clamp(20px, 3vw, 30px);
}

.donation-qr-box {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px dashed rgba(235, 40, 68, 0.26);
    border-radius: 14px;
    background: #fff8f4;
    text-align: center;
}

.donation-qr-box img {
    width: min(260px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

#donation-page-qr-empty {
    margin: 0;
    color: var(--pop-muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.donation-pop-help .help-grid {
    gap: 20px;
}

.donation-pop-help .help-card {
    padding: 22px;
}

.donation-pop-help .help-icon,
.donation-pop-secondary .info-icon {
    color: var(--pop-red);
    background: #ffe7e2;
}

.donation-pop-wish .wish-list {
    columns: 2;
    column-gap: 28px;
}

.donation-pop-wish .wish-list li {
    break-inside: avoid;
}

.wishlist-button {
    margin-top: 16px;
}

.contact-pop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 20px;
    padding: clamp(18px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
}

.contact-pop-grid .contact-card {
    padding: clamp(20px, 3vw, 30px);
}

.contact-pop-grid input,
.contact-pop-grid select,
.contact-pop-grid textarea {
    border-color: rgba(235, 40, 68, 0.16);
    background: #fffaf5;
}

.contact-pop-grid .contact-detail {
    border: 1px solid rgba(235, 40, 68, 0.1);
    border-radius: 12px;
    background: #fff8f4;
}

.contact-pop-grid .detail-icon {
    color: var(--pop-red);
    background: #ffe7e2;
}

.contact-pop-grid .follow-card {
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe2df, #fff8f4);
}

.contact-pop-grid .follow-card img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: brightness(0) contrast(1.2);
}

.contact-shell-match > main {
    padding-top: 1.5rem;
    background: #fff7f2;
}

.empty-state.compact {
    margin: 0;
    padding: 1rem;
    border-radius: 10px;
    color: var(--pop-muted);
    background: rgba(255, 246, 236, 0.82);
}

@media (max-width: 1180px) {
    .pop-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .pop-nav ul,
    .pop-header-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pop-nav a {
        min-height: auto;
    }
}

@media (max-width: 980px) {
    .adoption-pop-hero.card-section {
        width: var(--pop-content-width);
        grid-template-columns: 1fr;
    }

    .donation-pop-hero.card-section,
    .contact-pop-hero.card-section,
    .donation-pop-secondary,
    .contact-pop-grid {
        width: var(--pop-content-width);
        grid-template-columns: 1fr;
    }

    .adoption-pop-copy,
    .adoption-pop-image,
    .donation-pop-copy,
    .contact-pop-copy,
    .donation-pop-image,
    .contact-pop-image {
        min-height: 0;
    }

    .adoption-pop-image img,
    .donation-pop-image img,
    .contact-pop-image img {
        min-height: 340px;
    }

    .pop-page-shell {
        --pop-gutter: 16px;
        --pop-content-width: calc(100vw - 32px);
    }

    .pop-main .card-section {
        width: var(--pop-content-width);
    }

    .pop-hero.card-section {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .pop-hero-copy {
        padding: 46px 26px;
    }

    .pop-hero-image {
        min-height: 340px;
        height: 340px;
    }

    .pop-hero-image > img {
        object-position: 50% 50%;
    }

    .pop-hero-copy::after {
        display: none;
    }

    .pop-stats,
    .pop-cat-row,
    .pop-two-col,
    .pop-bottom-grid,
    .pop-newsletter,
    .pop-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .pop-testimonial {
        grid-template-columns: 1fr;
    }

    .pop-testimonial img {
        width: 100%;
        height: 220px;
    }

    .pop-newsletter form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .adoption-pop-copy {
        padding: 32px 22px;
    }

    .donation-pop-copy,
    .contact-pop-copy {
        padding: 32px 22px;
    }

    .adoption-pop-copy h1,
    .donation-pop-copy h1,
    .contact-pop-copy h1 {
        font-size: 38px;
    }

    .adoption-pop-copy > p,
    .donation-pop-copy > p,
    .contact-pop-copy > p {
        font-size: 15px;
    }

    .adoption-pop-image img,
    .donation-pop-image img,
    .contact-pop-image img {
        min-height: 280px;
    }

    .adoption-pop-note,
    .donation-pop-note,
    .contact-pop-note {
        position: static;
        max-width: none;
        margin: 12px;
        color: var(--pop-ink);
        background: #fff6ee;
        box-shadow: none;
    }

    .donation-pop-wish .wish-list {
        columns: 1;
    }

    .contact-pop-grid {
        padding: 14px;
    }

    .adoption-pop-content .adoption-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adoption-pop-content .filter-pill {
        justify-content: center;
        padding: 0 10px;
        text-align: center;
    }

    .adoption-pop-content .cat img {
        height: 220px;
    }

    .pop-page-shell {
        --pop-gutter: 12px;
        --pop-content-width: calc(100vw - 24px);
    }

    .pop-header {
        min-height: auto;
        position: relative;
    }

    .pop-header-inner {
        min-height: 0;
        padding: 12px;
        gap: 12px;
    }

    .pop-brand {
        width: 100%;
        min-width: 0;
        font-size: 22px;
        justify-content: center;
    }

    .pop-cat-mark,
    .pop-cat-mark img {
        width: 62px;
        height: 36px;
    }

    .pop-cat-mark {
        flex-basis: 62px;
    }

    .pop-nav {
        width: 100%;
    }

    .pop-nav ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .pop-nav a {
        min-height: 38px;
        justify-content: center;
        padding: 0 6px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        font-size: 12px;
        text-align: center;
        white-space: normal;
    }

    .pop-nav a::after {
        display: none;
    }

    .pop-header-actions {
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }

    .pop-main .card-section {
        width: var(--pop-content-width);
    }

    .pop-hero.card-section {
        width: 100%;
        min-height: 0;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .pop-hero-copy {
        min-height: 0;
        padding: 34px 18px 28px;
        text-align: center;
    }

    .soft-paw {
        display: none;
    }

    .pop-hero h1 {
        width: auto;
        margin: 0 auto;
        font-size: 34px;
        line-height: 1.03;
    }

    .pop-hero-copy > p {
        width: auto;
        margin-right: auto;
        margin-left: auto;
        font-size: 15px;
    }

    .pop-hero-image {
        min-height: 300px;
        height: 300px;
    }

    .pop-hero-image::after,
    .pop-hero-note {
        display: none !important;
    }

    .pop-hero-buttons,
    .pop-social-proof {
        align-items: stretch;
        flex-direction: column;
    }

    .pop-button {
        width: 100%;
        min-height: 46px;
    }

    .pop-card {
        padding: 18px;
    }

    .pop-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .pop-stats,
    .pop-cat-row,
    .pop-two-col,
    .pop-bottom-grid,
    .pop-help-row,
    .pop-newsletter,
    .pop-footer-inner {
        grid-template-columns: 1fr;
    }

    .pop-stats {
        margin-top: 16px;
    }

    .pop-stats .home-stat-card {
        min-height: 0;
        grid-template-columns: 56px 1fr;
        padding: 16px;
    }

    .pop-stats .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .pop-help-row img {
        width: 104px;
        height: 84px;
    }

    .pop-help-row p {
        min-height: 0;
    }

    .pop-donation-lines p {
        grid-template-columns: 1fr 52px;
        gap: 8px;
    }

    .pop-donation-lines i {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .pop-event {
        grid-template-columns: 58px 1fr;
    }

    .pop-event img {
        grid-column: 1 / -1;
        width: 100%;
        height: 170px;
    }

    .pop-newsletter form {
        grid-template-columns: 1fr;
    }

    .pop-envelope,
    .pop-peek-cat {
        display: none;
    }

    .pop-newsletter {
        gap: 14px;
        padding: 18px;
    }

    .pop-testimonial {
        padding: 20px;
    }

    .pop-testimonial img {
        height: 180px;
    }

    .pop-outline-heart {
        display: none;
    }

    .pop-footer {
        padding: 24px;
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
    }

    .pop-footer-inner {
        width: 100%;
    }

    .pop-donation-badge {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .pop-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pop-hero h1 {
        font-size: 30px;
    }

    .pop-hero-image {
        min-height: 260px;
        height: 260px;
    }
}

