:root {
    --indigo: #26306f;
    --blue: #1e88c8;
    --green: #1fa77a;
    --aqua: #e7f7f4;
    --mist: #f4f8fb;
    --paper: #fbfcfa;
    --ink: #202433;
    --muted: #5d6475;
    --line: #dce6ea;
    --shadow: 0 18px 50px rgba(32, 36, 51, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--indigo);
    text-decoration: none;
}

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

img,
svg {
    max-width: 100%;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 32px));
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 10;
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
}

.skip-link:focus {
    left: 12px;
}

.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-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 252, 250, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
    font-size: 0.94rem;
}

.nav-links a:not(.nav-donate) {
    position: relative;
}

.nav-links a:not(.nav-donate)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-links a:not(.nav-donate):hover::after {
    transform: scaleX(1);
}

.nav-donate,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    padding: 0 18px;
    background: var(--indigo);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nav-donate:hover,
.btn:hover {
    color: #fff;
    background: #18225c;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(32, 36, 51, 0.16);
}

.btn.secondary {
    background: #fff;
    color: var(--indigo);
    border: 1px solid var(--line);
}

.btn.green {
    background: var(--green);
}

.btn.ghost {
    background: transparent;
    color: var(--indigo);
    border: 1px solid var(--line);
}

.btn.hero-white {
    background: #fff;
    color: var(--indigo);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.btn.hero-white:hover {
    background: var(--aqua);
    color: var(--indigo);
}

.btn.facebook {
    background: #1877f2;
}

.btn.instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af);
}

.btn i {
    margin-right: 8px;
}

.nav-toggle {
    display: none;
}

.nav-toggle i {
    margin: 0;
    font-size: 1.35rem;
}

.hero {
    background:
        linear-gradient(115deg, rgba(38, 48, 111, 0.96), rgba(30, 136, 200, 0.84)),
        radial-gradient(circle at 78% 24%, rgba(31, 167, 122, 0.42), transparent 34%);
    color: #fff;
    padding: 88px 0 72px;
}

.hero-grid,
.split,
.footer-grid,
.cards,
.stats,
.form-grid {
    display: grid;
    gap: 24px;
}

.hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
}

.eyebrow {
    color: var(--green);
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero .eyebrow {
    color: #baf4df;
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    margin: 0 0 16px;
}

.lead {
    font-size: 1.18rem;
    color: inherit;
    max-width: 720px;
}

.hero-actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius);
    padding: 24px;
}

.hero-panel strong {
    display: block;
    font-size: 2rem;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: var(--mist);
}

.section.aqua {
    background: var(--aqua);
}

.section-head {
    max-width: 780px;
    margin-bottom: 32px;
}

.section-head h2,
.page-hero h1 {
    background: linear-gradient(90deg, var(--indigo), var(--blue) 54%, var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero h1 {
    background-image: linear-gradient(90deg, #fff, #baf4df);
}

.section-head .eyebrow,
.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-head .eyebrow::after,
.page-hero .eyebrow::after {
    content: "";
    width: 42px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

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

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 8px 28px rgba(32, 36, 51, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover,
.team-card:hover,
.press-item:hover,
.form-card:hover,
.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(31, 167, 122, 0.42);
}

.card .icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: var(--green);
    font-weight: 900;
    margin-bottom: 16px;
}

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

.team-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(32, 36, 51, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.team-photo {
    aspect-ratio: 1 / 1;
    background: var(--aqua);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    padding: 22px;
}

.team-role {
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 850;
    margin-bottom: 8px;
    text-transform: uppercase;
}

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

.contact-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--indigo), var(--blue) 56%, var(--green));
    color: #fff;
    font-size: 1.35rem;
}

.contact-card h3 {
    margin-bottom: 6px;
}

.contact-card p {
    margin-bottom: 0;
}

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

.stat {
    padding: 22px;
    border-left: 4px solid var(--green);
    background: #fff;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.stat strong {
    display: block;
    color: var(--indigo);
    font-size: 2rem;
}

.split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.page-hero {
    background: linear-gradient(120deg, var(--indigo), var(--blue));
    color: #fff;
    padding: 70px 0;
}

.page-hero .eyebrow {
    color: #baf4df;
}

.check-list {
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.check-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.check-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 5px;
    border-radius: 50%;
    background: var(--green);
}

.donation-shell {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: stretch;
}

.donate-checkout-section {
    min-height: calc(100dvh - 78px);
    padding: 28px 0 118px;
}

.donate-checkout-wrap {
    width: min(1120px, calc(100% - 32px));
}

.compact-donate-form {
    min-height: calc(100dvh - 228px);
    padding: 22px 24px;
}

.compact-donate-form h2 {
    max-width: 780px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    background: linear-gradient(90deg, var(--indigo), var(--blue) 54%, var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

body:has(.donate-sticky-footer) .site-footer {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.donation-success-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.success-celebration {
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(38, 48, 111, 0.08), rgba(31, 167, 122, 0.12)),
        var(--paper);
}

.success-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
}

.success-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--indigo), var(--blue), var(--green));
}

.success-badge {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
    box-shadow: 0 16px 34px rgba(31, 167, 122, 0.26);
}

.success-badge i {
    font-size: 1.5rem;
}

.success-impact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.success-impact-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(31, 167, 122, 0.28);
    border-radius: var(--radius);
    background: var(--aqua);
    color: var(--indigo);
    font-weight: 850;
    font-size: 0.9rem;
}

.success-impact-row i {
    color: var(--green);
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

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

.donation-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.donation-label-row label {
    margin: 0;
}

.donation-label-row span {
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 850;
}

.sleek-amount-grid {
    gap: 14px;
}

.compact-amount-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amount-option {
    position: relative;
}

.amount-option input {
    position: absolute;
    opacity: 0;
}

.amount-option span {
    display: grid;
    gap: 2px;
    place-items: center;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 850;
    cursor: pointer;
    background: linear-gradient(180deg, #fff, #f7fbfb);
    color: var(--indigo);
    font-size: 1.35rem;
    box-shadow: 0 8px 24px rgba(32, 36, 51, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.compact-amount-grid .amount-option span {
    min-height: 64px;
    font-size: 1.45rem;
}

.amount-option span small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
}

.amount-option:hover span {
    transform: translateY(-3px);
    border-color: rgba(30, 136, 200, 0.42);
    box-shadow: 0 16px 32px rgba(32, 36, 51, 0.12);
}

.amount-option input:checked + span {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    box-shadow: 0 18px 40px rgba(31, 167, 122, 0.18);
}

.amount-option input:checked + span small {
    color: rgba(255, 255, 255, 0.82);
}

.custom-amount-wrap {
    margin-top: 14px;
}

.custom-amount-field {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.custom-amount-field:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(31, 167, 122, 0.12);
}

.custom-amount-field span {
    display: grid;
    place-items: center;
    min-height: 52px;
    background: var(--aqua);
    color: var(--indigo);
    font-weight: 900;
}

.custom-amount-field input {
    border: 0;
    border-radius: 0;
}

.consent-card {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    transition: color 180ms ease;
}

.consent-card:hover {
    color: var(--ink);
}

.consent-card input {
    flex: 0 0 auto;
    width: 15px;
    min-height: 15px;
    margin: 0;
    accent-color: var(--green);
}

.consent-copy {
    display: inline;
}

.consent-copy a {
    font-weight: 750;
}

.donate-sticky-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 78px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(251, 252, 250, 0.96);
    box-shadow: 0 -14px 34px rgba(32, 36, 51, 0.12);
    backdrop-filter: blur(14px);
    transform: translateZ(0);
}

.donate-sticky-footer div {
    display: grid;
    line-height: 1.25;
}

.donate-sticky-footer span {
    color: var(--muted);
    font-size: 0.86rem;
}

.donate-sticky-footer .btn {
    min-width: min(320px, 52vw);
}

.donate-sticky-footer .btn i {
    margin-right: 0;
    margin-left: 8px;
}

.donate-side-pane {
    display: grid;
    gap: 18px;
    grid-template-rows: 1fr 1fr;
    align-content: stretch;
    position: sticky;
    top: 98px;
    height: 100%;
}

.donate-side-pane > .card,
.donate-side-pane > .notice {
    height: 100%;
}

.secure-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.secure-title-row i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--aqua);
    color: var(--green);
    font-size: 2rem;
}

.secure-title-row h3 {
    margin: 0;
}

.compact-razorpay-seal {
    margin: 0;
}

label {
    display: block;
    font-weight: 800;
    margin: 14px 0 6px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

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

.notice {
    background: var(--aqua);
    border-left: 4px solid var(--green);
    padding: 16px;
    border-radius: var(--radius);
    color: var(--ink);
}

.support-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 800;
}

.support-line i {
    color: var(--green);
}

.trust-card {
    margin-top: 18px;
}

.razorpay-seal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
    padding: 14px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eef5ff, #e7f7f4);
    color: var(--indigo);
    font-weight: 900;
}

.razorpay-mark {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: #0b72e7;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
}

.security-seals {
    display: grid;
    gap: 10px;
}

.security-seals span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}

.security-seals i {
    color: var(--green);
    font-size: 1.1rem;
}

.muted {
    color: var(--muted);
}

.faq details {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 850;
}

.site-footer {
    background:
        linear-gradient(135deg, rgba(38, 48, 111, 0.98), rgba(20, 25, 50, 0.98)),
        #141932;
    color: #dce6ea;
    padding: 56px 0;
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}

.site-footer a {
    display: block;
    color: #eef7fb;
    margin-bottom: 8px;
}

.site-footer .footer-grid > div:not(:first-child):not(:last-child) a:not(.footer-donate-link)::before,
.site-footer .footer-grid > div:last-child > a::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    margin-right: 8px;
    color: #7ee0bd;
    font-size: 0.78rem;
}

.footer-donate-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius);
    background: var(--green);
    color: #fff !important;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(31, 167, 122, 0.28);
}

.footer-donate-link i {
    margin: 0;
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 800;
}

.footer-contact-line i {
    color: #7ee0bd;
    font-size: 1.15rem;
}

.footer-contact-line a {
    display: inline !important;
    margin: 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    transition: transform 180ms ease, filter 180ms ease;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.social-links a[aria-label="Facebook"] {
    background: #1877f2;
}

.social-links a[aria-label="Instagram"] {
    background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af);
}

.social-links a[aria-label="YouTube"] {
    background: #ff0000;
}

.social-links a[aria-label="LinkedIn"] {
    background: #0a66c2;
}

.media-social a {
    background: var(--indigo);
    border-color: transparent;
    color: #fff;
}

.media-social a:hover {
    background: var(--green);
}

.press-list {
    display: grid;
    gap: 18px;
}

.press-item {
    display: grid;
    gap: 10px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.press-meta {
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.site-footer h2 {
    font-size: 1rem;
}

.footer-social-title {
    margin-top: 20px;
}

.footer-brand {
    color: #fff;
    margin-bottom: 16px;
}

.status-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--mist);
}

.referral-box {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(31, 167, 122, 0.26);
    background: var(--aqua);
    color: var(--indigo);
}

.referral-box span {
    color: var(--muted);
    font-weight: 650;
}

.receipt-panel[hidden] {
    display: none;
}

.invite-panel[hidden] {
    display: none;
}

.certificate-panel[hidden] {
    display: none;
}

.certificate-panel {
    margin-top: 26px;
    padding: 20px;
    border: 1px solid rgba(31, 167, 122, 0.28);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(32, 36, 51, 0.08);
}

.certificate-panel h3 {
    background: linear-gradient(90deg, var(--indigo), var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.certificate-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--mist);
    box-shadow: 0 12px 28px rgba(32, 36, 51, 0.08);
}

.invite-panel {
    margin-top: 26px;
    padding: 20px;
    border: 1px solid rgba(30, 136, 200, 0.24);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(231, 247, 244, 0.95), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 34px rgba(32, 36, 51, 0.08);
}

.invite-panel h3 {
    background: linear-gradient(90deg, var(--indigo), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.invite-link-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 18px 0 4px;
}

.invite-link-box input {
    font-size: 0.92rem;
    color: var(--indigo);
    background: #fff;
}

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.invite-hero {
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    padding: 72px 0;
    background:
        linear-gradient(135deg, rgba(38, 48, 111, 0.94), rgba(30, 136, 200, 0.82)),
        linear-gradient(45deg, rgba(31, 167, 122, 0.28), transparent 60%);
}

.invite-card {
    width: min(820px, calc(100% - 32px));
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(20, 25, 50, 0.22);
}

.invite-logo {
    width: 112px;
    height: auto;
    display: block;
    margin-bottom: 24px;
}

.invite-card h1 {
    background: linear-gradient(90deg, var(--indigo), var(--blue) 58%, var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.invite-share-card {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(31, 167, 122, 0.26);
    border-radius: var(--radius);
    background: var(--aqua);
}

@media (max-width: 860px) {
    .nav {
        align-items: flex-start;
        padding: 16px 0;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: var(--radius);
        padding: 0;
        font-weight: 800;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-links a:not(.nav-donate)::after {
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero-grid,
    .split,
    .donation-shell,
    .donation-success-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding-top: 44px;
    }

    .site-footer .footer-grid > div {
        padding: 22px 0;
        border-bottom: 1px solid rgba(238, 247, 251, 0.14);
    }

    .site-footer .footer-grid > div:first-child {
        padding-top: 0;
    }

    .site-footer .footer-grid > div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
        text-align: center;
    }

    .footer-contact-line {
        justify-content: center;
    }

    .footer-donate-link {
        min-width: 160px;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        gap: 16px;
    }

    .cards,
    .stats,
    .team-grid,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

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

    .compact-amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .compact-amount-grid .amount-option span {
        min-height: 58px;
        font-size: 1.22rem;
    }

    .hero {
        padding-top: 56px;
    }

    h1 {
        font-size: 2.45rem;
    }

    .card:hover,
    .team-card:hover,
    .press-item:hover,
    .form-card:hover,
    .stat:hover,
    .btn:hover,
    .social-links a:hover {
        transform: none;
    }

    .amount-option:hover span,
    .consent-card:hover {
        transform: none;
    }

    .success-card,
    .invite-card {
        padding: 24px;
    }

    .success-impact-row span {
        width: 100%;
    }

    .invite-link-box {
        grid-template-columns: 1fr;
    }

    .donate-side-pane {
        position: static;
        grid-template-rows: auto;
        height: auto;
    }

    .donate-side-pane > .card,
    .donate-side-pane > .notice {
        height: auto;
    }

    .donate-sticky-footer {
        justify-content: space-between;
    }

    .donate-sticky-footer .btn {
        min-height: 48px;
    }

    .donate-checkout-section {
        min-height: calc(100dvh - 74px);
        padding-top: 20px;
        padding-bottom: calc(116px + env(safe-area-inset-bottom));
    }

    .compact-donate-form {
        min-height: calc(100dvh - 190px);
        padding: 18px;
    }

    .custom-amount-field {
        grid-template-columns: 52px 1fr;
    }

    .custom-amount-field span {
        min-height: 48px;
    }

    .consent-card {
        align-items: flex-start;
        font-size: 0.78rem;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 24px, 1120px);
    }

    .donate-sticky-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: auto;
    }

    .donate-sticky-footer .btn {
        width: 100%;
        min-width: 0;
    }

    .donate-checkout-section {
        padding-bottom: calc(118px + env(safe-area-inset-bottom));
    }

    .compact-donate-form h2 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }

    .compact-donate-form > .muted {
        font-size: 0.92rem;
        margin-bottom: 10px;
    }

    .donation-label-row {
        align-items: flex-end;
        gap: 8px;
    }

    .donation-label-row span {
        font-size: 0.74rem;
    }

    .amount-option span small {
        font-size: 0.66rem;
    }

    .compact-amount-grid .amount-option span {
        min-height: 56px;
        font-size: 1.12rem;
    }

    .secure-title-row {
        gap: 10px;
        margin-bottom: 12px;
    }

    .secure-title-row i {
        width: 44px;
        height: 44px;
        font-size: 1.55rem;
    }

    .support-line {
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand strong {
        font-size: 0.95rem;
    }

    .brand small {
        font-size: 0.7rem;
    }

    .nav-links {
        top: 68px;
    }
}

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