:root {
    --ink: #15212f;
    --muted: #607084;
    --blue: #39428e;
    --blue-dark: #222a66;
    --gold: #d9a441;
    --green: #2c7a62;
    --paper: #ffffff;
    --soft: #f4f7f6;
    --line: #d9e0e5;
    --shadow: 0 18px 42px rgba(20, 31, 44, 0.12);
    --page-x: clamp(18px, 5vw, 88px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

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

a {
    color: var(--blue);
}

.skip-link {
    position: absolute;
    left: -999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 20;
    background: var(--paper);
    padding: .5rem .75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    width: 100%;
    margin: 0;
    padding: 0 var(--page-x);
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-menu a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.site-menu a:hover,
.text-link:hover {
    color: var(--green);
}

.nav-donate {
    background: var(--gold);
    color: #1d2630 !important;
    padding: 10px 15px;
    border-radius: 6px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-menu a.is-active {
    color: var(--green);
}

.nav-account {
    color: var(--blue) !important;
}

.hero,
.donate-hero,
.page-top,
.section,
.mission-grid,
.contact-layout,
.site-footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--page-x);
    padding-right: var(--page-x);
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    align-items: center;
    gap: clamp(34px, 6vw, 94px);
    position: relative;
    overflow: hidden;
    padding-top: 68px;
    padding-bottom: 88px;
    background:
        radial-gradient(circle at 74% 47%, rgba(98, 211, 242, .34), transparent 28%),
        radial-gradient(circle at 82% 52%, rgba(255, 255, 255, .18), transparent 34%),
        radial-gradient(circle at 87% 20%, rgba(217, 164, 65, .22), transparent 22%),
        linear-gradient(115deg, #081424 0%, #102752 47%, #061a2a 100%);
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .72;
    background-image:
        linear-gradient(90deg, rgba(8, 20, 36, .18), rgba(8, 20, 36, .02) 58%, rgba(255, 255, 255, .08)),
        radial-gradient(circle at 72% 50%, rgba(255, 255, 255, .28), transparent 36%);
}

.hero-copy {
    max-width: 790px;
    animation: hero-copy-in .9s ease-out both;
}

.hero h1,
.page-top h1,
.donate-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(3.6rem, 9vw, 8.8rem);
    line-height: .91;
    color: #ffffff;
}

.hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, var(--blue), var(--green) 58%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle,
.page-top p,
.donate-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.16rem;
}

.hero-subtitle {
    max-width: 620px;
    margin-top: 26px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.hero-globe {
    position: relative;
    z-index: 3;
    width: min(50vw, 760px);
    min-width: 380px;
    margin: 0 auto;
    animation: earth-rotate 28s linear infinite;
    filter: drop-shadow(0 32px 42px rgba(26, 39, 62, 0.18));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 8px 12px;
    border: 1px solid rgba(44, 122, 98, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #a7f0d5;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    backdrop-filter: blur(14px);
}

.hero-badge span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(217, 164, 65, .16);
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-actions .button {
    min-height: 54px;
    padding-inline: 22px;
}

.hero-actions .primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 16px 30px rgba(57, 66, 142, .28);
}

.hero-actions .secondary {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
    backdrop-filter: blur(12px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 126px));
    gap: 12px;
    margin-top: 38px;
}

.hero-stats div {
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .15);
    backdrop-filter: blur(12px);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    color: #f1c768;
    font-size: 1.3rem;
    line-height: 1;
}

.hero-stats span {
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: .86rem;
    font-weight: 800;
}

.mission-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 640px;
    animation: hero-visual-in 1s .16s ease-out both;
    perspective: 1200px;
}

.mission-visual::before {
    content: "";
    position: absolute;
    width: min(51vw, 790px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 45% 42%, rgba(255, 255, 255, .46), rgba(255, 255, 255, .16) 38%, transparent 65%),
        radial-gradient(circle, rgba(98, 211, 242, .22), transparent 68%);
    filter: blur(.2px);
}

.orbit-ring {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    transform: rotate(-18deg) skewY(-8deg);
}

.ring-one {
    width: min(47vw, 720px);
    aspect-ratio: 1.48 / 1;
    animation: ring-drift 9s ease-in-out infinite;
}

.ring-two {
    width: min(38vw, 590px);
    aspect-ratio: 1.42 / 1;
    border-color: rgba(217, 164, 65, .34);
    animation: ring-drift 10s ease-in-out infinite reverse;
}

.route-line {
    position: absolute;
    z-index: 4;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform-origin: center;
    opacity: .82;
}

.route-one {
    width: min(35vw, 510px);
    transform: translate(-38px, -62px) rotate(-18deg);
    animation: route-flash 3.2s ease-in-out infinite;
}

.route-two {
    width: min(29vw, 430px);
    transform: translate(48px, 74px) rotate(19deg);
    animation: route-flash 3.2s 1.1s ease-in-out infinite;
}

.route-dot {
    position: absolute;
    z-index: 5;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 8px rgba(217, 164, 65, .16);
}

.dot-one {
    top: 24%;
    right: 28%;
    animation: pulse-dot 2.8s ease-in-out infinite;
}

.dot-two {
    left: 22%;
    bottom: 31%;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(44, 122, 98, .15);
    animation: pulse-dot 3s .4s ease-in-out infinite;
}

.dot-three {
    right: 20%;
    bottom: 21%;
    background: var(--blue);
    box-shadow: 0 0 0 8px rgba(57, 66, 142, .13);
    animation: pulse-dot 3.3s .8s ease-in-out infinite;
}

.mission-card {
    position: absolute;
    z-index: 6;
    min-width: 168px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.mission-card strong,
.mission-card span {
    display: block;
}

.mission-card strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.mission-card span {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
}

.card-us {
    left: 0;
    top: 22%;
    animation: card-float 6.4s ease-in-out infinite;
}

.card-global {
    right: 2%;
    bottom: 18%;
    animation: card-float 6.8s .45s ease-in-out infinite reverse;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green) !important;
    font-size: .8rem !important;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.button.primary {
    background: var(--blue);
    color: #fff;
}

.button.secondary {
    border-color: var(--blue);
    color: var(--blue);
    background: transparent;
}

.button.light {
    color: var(--ink);
    background: #fff;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.mission-grid article,
.form-card,
.contact-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 28px;
    box-shadow: var(--shadow);
}

.mission-grid h2,
.section h2,
.content h2,
.story-card h2,
.story-card h3 {
    margin-top: 0;
    line-height: 1.18;
}

.icon-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    flex-shrink: 0;
}

.icon-mark svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.image-band {
    min-height: 420px;
    margin: 0;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(18, 25, 35, .84), rgba(18, 25, 35, .34)),
        url("/assets/uploads/2024/11/IMG_0380-min.jpg") center / cover fixed;
    color: #fff;
}

.image-band > div {
    width: 100%;
    margin: 0;
    padding-left: var(--page-x);
    padding-right: var(--page-x);
}

.image-band h2 {
    max-width: 760px;
    margin: 0 0 26px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.section {
    padding-top: 76px;
    padding-bottom: 76px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-grid a {
    min-height: 138px;
    display: flex;
    align-items: end;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 8px;
    font-size: 1.12rem;
    font-weight: 800;
    text-decoration: none;
}

.split {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 42px;
    align-items: center;
}

.split img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.story-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.story-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.story-card div {
    padding: 22px;
}

.story-card a {
    color: var(--ink);
    text-decoration: none;
}

.story-card time {
    color: var(--green);
    font-size: .86rem;
    font-weight: 800;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--blue) !important;
    font-weight: 800;
}

.page-top {
    padding-top: 82px;
    padding-bottom: 34px;
}

.narrow {
    width: 100%;
    max-width: none;
}

.content {
    padding-left: var(--page-x);
    padding-right: var(--page-x);
    padding-bottom: 82px;
}

.content h2,
.content h3,
.content h4 {
    margin: 2rem 0 .75rem;
    line-height: 1.22;
}

.content p,
.content li {
    color: #304052;
}

.content img {
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content figure {
    margin: 24px 0;
}

.post-hero {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 82px var(--page-x) 24px;
}

.post-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4.8rem);
    line-height: 1.06;
}

.post-hero p {
    color: var(--muted);
    font-size: 1.1rem;
}

.post-hero img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    margin-top: 28px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-layout {
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 44px;
    padding-top: 82px;
    padding-bottom: 80px;
}

.contact-panel {
    margin-top: 28px;
}

.contact-panel a {
    display: block;
    margin-top: 8px;
    font-weight: 800;
}

.form-card {
    display: grid;
    gap: 16px;
}

.form-card label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.notice {
    border-radius: 6px;
    padding: 12px;
    font-weight: 700;
}

.notice.success {
    background: #e7f7ef;
    color: #1d5e45;
}

.notice.error {
    background: #fff1ee;
    color: #9b2f1f;
}

.donate-hero {
    padding-top: 88px;
    padding-bottom: 88px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72)),
        url("/assets/uploads/2024/11/Chin-State.png") right center / contain no-repeat;
}

.site-footer {
    width: 100%;
    padding: 64px var(--page-x) 0;
    background: #0b1930;
    color: rgba(255, 255, 255, .82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-brand .brand {
    color: #fff;
    font-size: 1.05rem;
}

.footer-brand p {
    margin: 16px 0;
    max-width: 340px;
    color: rgba(255, 255, 255, .68);
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, .68);
}

.footer-contact a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-weight: 700;
}

.footer-heading {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .5);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-weight: 600;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 22px 0;
    color: rgba(255, 255, 255, .5);
    font-size: .85rem;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 880px) {
    .nav-toggle {
        display: block;
    }

    .site-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--paper);
        box-shadow: var(--shadow);
    }

    .site-menu.is-open {
        display: flex;
    }

    .hero,
    .split,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 16vw, 5.3rem);
    }

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

    .mission-visual {
        min-height: 380px;
    }

    .hero-globe {
        width: min(88vw, 500px);
        min-width: 260px;
    }

    .mission-visual::before {
        width: min(94vw, 560px);
    }

    .ring-one {
        width: min(88vw, 480px);
    }

    .ring-two {
        width: min(72vw, 380px);
    }

    .mission-card {
        min-width: 142px;
        padding: 12px 13px;
    }

    .card-us {
        left: 2%;
        top: 14%;
    }

    .card-global {
        right: 0;
        bottom: 7%;
    }

    .mission-grid,
    .service-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .image-band {
        background-attachment: scroll;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@keyframes hero-copy-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-visual-in {
    from {
        opacity: 0;
        transform: translateX(26px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes earth-rotate {
    0% {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(180deg) translateY(-6px);
    }
    100% {
        transform: rotate(360deg) translateY(0);
    }
}

@keyframes slow-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ring-drift {
    0%,
    100% {
        transform: rotate(-18deg) skewY(-8deg) translateY(0);
    }
    50% {
        transform: rotate(-14deg) skewY(-8deg) translateY(-10px);
    }
}

@keyframes route-flash {
    0%,
    100% {
        opacity: .28;
        filter: saturate(1);
    }
    45%,
    60% {
        opacity: 1;
        filter: saturate(1.35);
    }
}

@keyframes pulse-dot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.18);
        opacity: .72;
    }
}

@keyframes card-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
   Scroll reveal (progressive enhancement — see assets/js/site.js)
   ========================================================================== */

.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Shared type utilities
   ========================================================================== */

.lede {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.14rem;
}

.text-link.as-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: not-allowed;
}

.button.ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--muted);
}

.button[disabled],
.text-link[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero {
    padding-top: 88px;
    padding-bottom: 40px;
}

.stats-band {
    padding-top: 0;
    padding-bottom: 48px;
}

.stats-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    box-shadow: var(--shadow);
}

.stats-band-grid div {
    text-align: center;
}

.stats-band-grid strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #f1c768;
}

.stats-band-grid span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .78);
    font-size: .86rem;
    font-weight: 700;
}

.split.reverse {
    grid-template-columns: 1fr .85fr;
}

.split.reverse > div {
    order: 1;
}

.split.reverse > img {
    order: 2;
}

.band-copy {
    color: rgba(255, 255, 255, .8) !important;
}

.button.light-outline {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    background: transparent;
}

/* ==========================================================================
   Donate page
   ========================================================================== */

.give-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: start;
}

.give-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    padding: 32px;
    box-shadow: var(--shadow);
}

.give-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.give-card-head h2 {
    margin: 0;
}

.frequency-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.freq-option {
    border: none;
    background: none;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 800;
    color: var(--muted);
    cursor: pointer;
}

.freq-option.is-active {
    background: var(--blue);
    color: #fff;
}

.give-label {
    margin: 20px 0 10px;
    font-weight: 800;
    font-size: .92rem;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-option {
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    cursor: pointer;
}

.amount-option.is-active {
    border-color: var(--blue);
    background: rgba(57, 66, 142, .08);
    color: var(--blue);
}

.amount-custom {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    color: var(--muted);
}

.amount-custom input {
    border: none;
    padding: 0;
    min-width: 0;
}

.amount-custom input:focus {
    outline: none;
}

.designation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.designation-option {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px 14px 38px;
    cursor: pointer;
}

.designation-option input {
    position: absolute;
    left: 14px;
    top: 16px;
    width: auto;
}

.designation-option.is-active {
    border-color: var(--green);
    background: rgba(44, 122, 98, .06);
}

.designation-label {
    display: block;
    font-weight: 800;
}

.designation-blurb {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .86rem;
}

.give-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 26px 0 18px;
    padding: 16px 18px;
    border-radius: 8px;
    background: var(--soft);
    font-weight: 800;
}

.give-summary strong {
    font-size: 1.2rem;
    color: var(--blue-dark);
}

.give-summary em {
    font-style: normal;
    color: var(--muted);
    font-weight: 700;
}

.give-submit {
    width: 100%;
}

.give-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: .9rem;
}

.give-aside {
    display: grid;
    gap: 20px;
}

.impact-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    padding: 24px;
}

.impact-card h3 {
    margin-top: 0;
}

.impact-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #304052;
}

.contact-address {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

/* ==========================================================================
   Admin / Donor dashboards
   ========================================================================== */

body.is-dashboard .site-header {
    position: static;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 76px);
}

.demo-banner {
    margin-bottom: 22px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff6e5;
    border: 1px solid rgba(217, 164, 65, .4);
    color: #6b4e14;
    font-size: .9rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 20px;
    background: #0b1930;
    color: rgba(255, 255, 255, .85);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
}

.dashboard-nav a:hover {
    background: rgba(255, 255, 255, .06);
}

.dashboard-nav a.is-active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}

.dashboard-exit {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
}

.dashboard-main {
    padding: 28px var(--page-x) 64px 32px;
    background: var(--soft);
}

.dashboard-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.dashboard-topbar h1 {
    margin: 4px 0 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-user strong {
    display: block;
    font-size: .92rem;
}

.dashboard-user span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.avatar-circle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.avatar-circle.small {
    width: 32px;
    height: 32px;
    font-size: .85rem;
    background: var(--green);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    padding: 20px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.stat-value {
    display: block;
    margin: 8px 0 4px;
    font-size: 1.7rem;
}

.stat-trend {
    display: inline-block;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.stat-trend.is-up {
    color: var(--green);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.panel {
    padding: 22px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.panel-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.panel-sub {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 180px;
    padding-top: 10px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
}

.bar {
    width: 100%;
    max-width: 34px;
    height: var(--bar-height, 10%);
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--blue), var(--blue-dark));
}

.bar-col span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.message-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.message-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
}

.message-list li.is-unread {
    background: rgba(57, 66, 142, .06);
}

.message-list li div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.message-list li strong {
    font-size: .9rem;
}

.message-list li span {
    color: var(--muted);
    font-size: .84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-list li time {
    color: var(--muted);
    font-size: .78rem;
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table th {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.status-completed {
    background: #e7f7ef;
    color: #1d5e45;
}

.status-pending {
    background: #fff6e5;
    color: #8a5e10;
}

.recurring-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.recurring-row strong {
    display: block;
    font-size: 1.1rem;
}

.recurring-row span {
    color: var(--muted);
    font-size: .88rem;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

@media (max-width: 1080px) {
    .give-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .split.reverse {
        grid-template-columns: 1fr;
    }

    .split.reverse > div,
    .split.reverse > img {
        order: initial;
    }

    .amount-grid,
    .designation-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .dashboard-nav {
        flex-direction: row;
        flex-wrap: wrap;
        flex: none;
        width: 100%;
        order: 3;
    }

    .dashboard-main {
        padding: 24px var(--page-x) 48px;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 560px) {
    .amount-grid,
    .designation-grid,
    .stats-band-grid,
    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.give-note.is-flash {
    animation: note-flash 1.6s ease;
    border-radius: 8px;
}

@keyframes note-flash {
    0% { background: rgba(217, 164, 65, .28); }
    100% { background: transparent; }
}
