@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap');

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--green);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--green);
    color: #111;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 15px;
}

body.dashboard-page,
body.admin-dashboard-page,
body.profile-page {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

body, p, a, button, input, select, textarea, label, li, small, dt, dd {
    font-size: max(14px, 1rem);
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --green: #0a3663;
    --green-dark: #051d38;
    --lime: #ff3b30;
    --white: #ffffff;
    --soft: #f4f5f3;
    --gray: #737773;
    --black: #080808;
}


/* =========================================================
   PAGE LOADER
========================================================= */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: var(--green);
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: opacity .7s ease, visibility .7s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: auto !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    max-width: 90vw !important;
    animation: loaderPulse 1s infinite alternate;
}

.loader-logo img {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
}

@media (max-width: 600px) {
    .loader-logo {
        font-size: 16px !important;
        gap: 10px !important;
    }

    .loader-logo img {
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
    }
}

@keyframes loaderPulse {
    from {
        opacity: .4;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================================
   TEXT TYPE HEADINGS
========================================================= */

.text-type-heading {
    white-space: pre-line;
}

.text-type-heading .text-type__content {
    display: inline;
}

.text-type-heading .text-type__cursor {
    display: inline-block;
    margin-left: .08em;
    color: currentColor;
    font-weight: 400;
    line-height: inherit;
    animation: textTypeCursorBlink .5s steps(1, end) infinite;
}

@keyframes textTypeCursorBlink {
    50% { opacity: 0; }
}


/* =========================================================
   DONATION PAGE
========================================================= */

.donate-page {
    background: var(--soft);
}

.donation-shell {
    padding: 100px 7%;
    background: #f5f6f4;
}

.panel-eyebrow {
    display: inline-block;
    color: var(--lime);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.donation-wizard {
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .06);
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    border-bottom: 1px solid #e7eaed;
}

.wizard-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 21px 20px;
    color: #99a2aa;
    font-size: 13px;
}

.wizard-step:not(:last-child)::after {
    position: absolute;
    right: -1px;
    top: 20px;
    width: 1px;
    height: 25px;
    background: #e7eaed;
    content: "";
}

.wizard-step span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 400;
}

.wizard-step strong { font-weight: 700; }
.wizard-step.is-active { color: var(--green); }
.wizard-step.is-active span { border-color: var(--lime); background: var(--lime); color: #fff; }
.wizard-step.is-complete { color: var(--green); }
.wizard-step.is-complete span { border-color: var(--green); background: var(--green); color: #fff; }

.donation-panel { padding: 46px clamp(25px, 7vw, 72px) 30px; }
.donation-panel h2 { margin: 10px 0; color: var(--green); font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: -.055em; }
.panel-copy { max-width: 570px; color: #68737d; font-size: 15px; line-height: 1.6; }

.donation-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    margin: 30px 0 16px;
}

.donation-amount-grid button {
    min-height: 57px;
    border: 1px solid #d9dee3;
    border-radius: 13px;
    background: #fff;
    color: var(--green);
    font-size: 16px;
    font-weight: 400;
    transition: transform .2s, border-color .2s, background .2s, color .2s;
}

.donation-amount-grid button:hover { transform: translateY(-2px); border-color: var(--lime); }
.donation-amount-grid button.selected { border-color: var(--lime); background: var(--lime); color: #fff; }

.wizard-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.wizard-field { display: grid; gap: 8px; color: var(--green); font-size: 13px; font-weight: 400; }
.wizard-field-wide { grid-column: 1 / -1; }
.wizard-field > span { color: #8d979e; font-weight: 400; }
.wizard-field input {
    width: 100%;
    height: 53px;
    padding: 0 15px;
    border: 1px solid #d9dee3;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--green);
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.wizard-field input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(255, 59, 48, .12); }
.wizard-field input:invalid:not(:placeholder-shown) { border-color: #c7261f; }

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 22px clamp(25px, 7vw, 72px) 38px;
}

.wizard-actions button, .receipt-home {
    min-height: 49px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
}
.wizard-previous { border: 1px solid #d9dee3; background: #fff; color: var(--green); }
.wizard-next { margin-left: auto; border: 1px solid var(--lime); background: var(--lime); color: #fff; transition: transform .2s, box-shadow .2s; }
.wizard-next:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 59, 48, .2); }

.receipt-panel { padding-bottom: 10px; text-align: center; }
.receipt-check { display: grid; width: 64px; height: 64px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 32px; }
.receipt-panel .panel-copy { margin: auto; }
.receipt-details { display: grid; gap: 0; max-width: 500px; margin: 30px auto 0; text-align: left; border: 1px solid #e1e5e8; border-radius: 15px; overflow: hidden; }
.receipt-details div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 17px; border-bottom: 1px solid #e1e5e8; }
.receipt-details div:last-child { border-bottom: 0; }
.receipt-details dt { color: #76808a; font-size: 13px; }
.receipt-details dd { color: var(--green); font-size: 14px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.receipt-home { display: inline-flex; align-items: center; margin: 26px auto 10px; background: var(--green); color: #fff; }

.donation-footer { padding: 25px 7%; }
.donation-footer .footer-bottom { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
    .partners-track { animation-play-state: paused; }
    .menu-btn-dots span { animation-play-state: paused; }
    .text-type-heading .text-type__cursor { animation: none; }
    *, *::before, *::after { scroll-behavior: auto !important; }
}

@media (max-width: 850px) {
    .donation-shell { padding: 50px 16px; }
    .donation-wizard { border-radius: 21px; }
    .wizard-step { justify-content: center; padding: 16px 8px; }
    .wizard-step strong { display: none; }
}


/* =========================================================
   FOUNDATION DETAILS, TRUSTEES & RESPONSIVE REFINEMENTS
========================================================= */

/* Keep the loader as one stable, circular mark on small screens. */
.loader-logo {
    display: grid !important;
    place-items: center;
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    overflow: visible;
    line-height: 0;
    isolation: isolate;
}

.loader-logo img {
    display: block;
    width: 76px !important;
    height: 76px !important;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: translateZ(0);
}

/* Use the foundation’s navy-blue mark in the interactive folder. */
:root {
    --folder-color: #0a3663;
    --folder-back-color: #051d38;
}

.custom-folder-wrapper {
    margin-top: 28px;
    margin-left: auto;
    align-self: flex-end;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.folder-interactive-area {
    justify-content: flex-end;
    padding-right: 6px;
    padding-left: 0;
}

.folder__back,
.folder__back::after {
    background: var(--folder-back-color, #051d38);
}

.folder__back { box-shadow: none; }
.folder__front { background: var(--folder-color, #0a3663); box-shadow: none; }
.paper-icon { stroke: var(--folder-color, #0a3663); }
.folder:focus-visible { outline-color: var(--folder-color, #0a3663); }
.custom-folder-wrapper:hover .folder-hint { color: var(--folder-color, #0a3663); }

.trustees-section {
    padding: 88px 7% 96px;
    background: var(--green-dark);
    color: var(--white);
}

.trustees-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.trustees-heading > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.trustees-heading .pill { margin-bottom: 15px; }
.trustees-heading h2 { max-width: 600px; font-size: clamp(38px, 5vw, 58px); font-weight: 400; letter-spacing: -2.5px; line-height: .98; }
.trustees-heading p { max-width: 330px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.55; }

.trustee-gallery {
    display: flex;
    gap: 10px;
    width: 100%;
    height: 430px;
    perspective: 1400px;
    perspective-origin: 50% 50%;
}

.trustee-panel {
    position: relative;
    display: block;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #071523;
    cursor: pointer;
    outline: none;
    transform: rotateY(7deg);
    transform-origin: center;
    transition: flex-grow .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s ease;
    filter: grayscale(1);
    box-shadow: 0 10px 30px -18px rgba(0,0,0,.8);
    -webkit-tap-highlight-color: transparent;
}

.trustee-panel:nth-child(3) { transform: rotateY(-7deg); }
.trustee-panel.is-active { flex-grow: 2.8; transform: rotateY(0); filter: grayscale(0); }
.trustee-panel img { width: 118%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 20%; transform: translateX(-8%); transition: transform .6s cubic-bezier(.22, 1, .36, 1), object-position .6s ease; user-select: none; -webkit-user-drag: none; }
.trustee-panel.is-active img { transform: translateX(0) scale(1.02); object-position: 50% 22%; }
.trustee-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,29,56,.02) 35%, rgba(5,29,56,.9) 100%), rgba(5,29,56,.37); transition: background .6s ease; pointer-events: none; }
.trustee-panel.is-active .trustee-overlay { background: linear-gradient(180deg, rgba(5,29,56,.02) 35%, rgba(5,29,56,.88) 100%), rgba(5,29,56,0); }
.trustee-label { position: absolute; z-index: 1; left: 22px; right: 18px; bottom: 22px; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateX(-14px); transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.trustee-panel.is-active .trustee-label { opacity: 1; transform: translateX(0); transition-delay: .16s; }
.trustee-label > span { width: 3px; height: 38px; border-radius: 999px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.55); }
.trustee-label strong, .trustee-label small { display: block; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
/* BLUR TEXT HEADING ANIMATION */
.blur-text-element {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.22em;
}

.blur-word {
    display: inline-block;
    filter: blur(12px);
    opacity: 0;
    transform: translateY(-40px);
    transition: filter 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, filter, opacity;
}

.blur-text-animated .blur-word {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0);
}

/* TRUSTEES SPLIT CONTAINER & DETAILS CARD */
.trustees-container {
    display: grid;
    grid-template-columns: 52% 45%;
    gap: 3%;
    align-items: stretch;
    width: 100%;
    height: 430px;
}

.trustees-left-col {
    width: 100%;
    height: 430px;
}

.trustees-right-col {
    width: 100%;
    height: 430px;
    position: relative;
}

.trustee-details-card {
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    color: #1a1a1a;
    height: 430px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trustee-details-card::-webkit-scrollbar {
    width: 5px;
}
.trustee-details-card::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}
.trustee-details-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.trustee-details-card.is-active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transform: translateY(0);
}

.trustee-badge {
    display: inline-block;
    color: #01295c;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.trustee-name {
    font-size: 26px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.trustee-designation {
    font-size: 15px;
    color: #6b6b6b;
    font-weight: 400;
    margin-bottom: 16px;
}

.trustee-divider {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    margin-bottom: 16px;
}

.trustee-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 18px;
}

.trustee-tag {
    color: #3a3a3a;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
}

.trustee-vision-box {
    position: relative;
    padding: 0 0 0 16px;
    border-left: 2px solid #d1d1d1;
    margin-bottom: 18px;
}

.vision-quote-icon {
    display: none;
}

.trustee-vision-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    font-style: italic;
    font-weight: 400;
}

.trustee-responsibilities h4 {
    font-size: 13px;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trustee-responsibilities ul {
    margin: 0 0 0 18px;
    padding: 0;
}

.trustee-responsibilities li {
    font-size: 14px;
    line-height: 1.6;
    color: #3a3a3a;
    margin-bottom: 6px;
}

@media (max-width: 850px) {
    .trustees-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 24px;
    }

    .trustees-left-col, .trustees-right-col {
        height: auto;
    }

    .trustee-details-card {
        padding: 24px 20px;
        border-radius: 16px;
        height: auto;
        max-height: 480px;
    }

    .trustee-name {
        font-size: 22px;
    }
}

.legal-profile {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(34px, 7vw, 100px);
    margin: 30px 0 95px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 24px;
    background: #edf2f7;
    color: var(--green);
}

.legal-profile .pill { margin-bottom: 18px; background: var(--green); color: #fff; }
.legal-profile h2 { font-size: clamp(31px, 4vw, 50px); font-weight: 400; letter-spacing: -2px; line-height: 1; }
.legal-profile-copy p { color: #526474; font-size: 15px; line-height: 1.65; }
.legal-profile-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.legal-profile-tags span { padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--green); font-size: 12px; font-weight: 700; }

@media (max-width: 850px) {
    .custom-folder-wrapper { margin: 46px auto 0; align-items: center; }
    .folder-interactive-area { justify-content: center; padding-right: 0; }
    .trustees-section { padding: 64px 16px 70px; }
    .trustees-heading { display: block; margin-bottom: 28px; }
    .trustees-heading h2 { margin-top: 13px; }
    .trustees-heading p { margin-top: 17px; }
    .trustee-gallery { height: 390px; gap: 8px; }
    .trustee-panel { flex-grow: 1; transform: none !important; }
    .trustee-panel.is-active { flex-grow: 2.25; }
    .trustee-panel img { width: 132%; transform: translateX(-12%); }
    .trustee-label { left: 15px; bottom: 17px; gap: 9px; }
    .trustee-label > span { height: 31px; }
    .trustee-label strong { font-size: 15px; }
    .trustee-label small { font-size: 11px; }
    .legal-profile { grid-template-columns: 1fr; gap: 26px; margin: 24px 0 65px; border-radius: 20px; }
}

@media (max-width: 480px) {
    .trustee-gallery { height: 360px; gap: 7px; }
    .trustee-panel.is-active { flex-grow: 2.6; }
    .trustee-panel img { width: 150%; transform: translateX(-17%); }
    .trustee-panel.is-active img { transform: translateX(-8%) scale(1.02); }
    .trustee-label { left: 12px; right: 10px; bottom: 14px; }
    .trustee-label > span { width: 2px; height: 27px; }
    .trustee-label strong { font-size: 13px; }
    .trustee-label small { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .loader-logo, .trustee-panel, .trustee-panel img, .trustee-overlay, .trustee-label { animation: none !important; transition-duration: .01ms !important; }
}

@media (max-width: 480px) {
    .wizard-steps { overflow: hidden; }
    .wizard-step { padding: 13px 4px; }
    .wizard-step span { width: 24px; height: 24px; font-size: 9px; }
    .wizard-step:not(:last-child)::after { top: 12px; height: 24px; }
    .donation-panel { padding: 31px 20px 20px; }
    .donation-amount-grid { grid-template-columns: 1fr 1fr; margin-top: 24px; }
    .wizard-form-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 24px; }
    .wizard-field-wide { grid-column: auto; }
    .wizard-actions { padding: 18px 20px 28px; }
    .wizard-actions button { padding: 0 17px; }
}





/* =========================================================
   NAVBAR
========================================================= */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 500;

    padding: 12px 22px;

    transition:
        background .3s,
        backdrop-filter .3s;
}

.site-nav.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-inner {
    height: 64px;

    border: 1px solid rgba(255, 59, 48, .45);
    border-radius: 34px;

    padding: 0 10px 0 6px;

    display: flex;
    align-items: center;

    background: rgba(10, 54, 99, .25);
}

.nav-back-button {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    transition: background .25s, color .25s, transform .25s;
}

.nav-back-button:hover {
    background: var(--lime);
    color: #fff;
    transform: translateX(-2px);
}

.nav-back-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* A donation CTA is redundant once the visitor is already in the donation flow. */
.donate-page .site-nav .start-btn {
    display: none;
}


/* LOGO */

.logo {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #fff;

    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.logo img {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block;
}

.logo-mark {
    width: 27px;
    height: 29px;

    position: relative;
}

.logo-mark span {
    position: absolute;

    width: 10px;
    height: 20px;

    border: 2px solid var(--lime);

    border-radius: 50% 50% 50% 4px;
}

.logo-mark span:nth-child(1) {
    left: 2px;
    top: 6px;
    transform: rotate(-42deg);
}

.logo-mark span:nth-child(2) {
    left: 12px;
    top: 1px;
    transform: rotate(35deg);
}

.logo-mark span:nth-child(3) {
    left: 12px;
    top: 12px;
    transform: rotate(145deg);
}


/* NAV LINKS */

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;

    margin-left: auto;
    margin-right: 45px;
}

.nav-links button {
    background: transparent;
    border: 0;

    color: #fff;

    font-size: 15px;
    font-weight: 500;

    position: relative;
    padding: 6px 0;

    transition: color .3s;
}

.nav-links button::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--lime);

    transition: width .3s;
}

.nav-links button:hover,
.nav-links button.active {
    color: var(--lime);
}

.nav-links button:hover::after,
.nav-links button.active::after {
    width: 100%;
}


/* START BUTTON */

.start-btn {
    background: var(--lime);
    color: white;
    font-family: inherit;
    padding: 0.35em;
    padding-left: 1.2em;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0.9em;
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em var(--lime);
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3.3em;
}

.start-btn .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em rgba(255, 59, 48, 0.35);
    right: 0.3em;
    transition: all 0.3s;
}

.start-btn:hover .icon {
    width: calc(100% - 0.6em);
}

.start-btn.is-animating .icon {
    width: calc(100% - 0.6em);
}

.start-btn .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: var(--lime);
}

.start-btn:hover .icon svg {
    transform: translateX(0.1em);
}

.start-btn.is-animating .icon svg {
    transform: translateX(0.1em);
}

.start-btn:active .icon {
    transform: scale(0.95);
}

.start-btn:hover {
    background: #ff5148;
    transform: translateY(-1px);
}


/* MENU BUTTON FOR MOBILE */

.menu-btn {
    display: none;
    width: 44px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.menu-btn:active { transform: scale(.94); }
.menu-btn:hover { background: rgba(255, 255, 255, .2); }
.menu-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.menu-btn.is-open { background: var(--lime); border-color: var(--lime); box-shadow: none; }

.menu-btn-icon {
    display: grid;
    gap: 5px;
}

.menu-btn-icon span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-btn.is-open .menu-btn-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open .menu-btn-icon span:nth-child(2) { opacity: 0; }
.menu-btn.is-open .menu-btn-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobileMenu {
    position: fixed;
    top: 75px;
    left: 12px;
    right: 12px;
    z-index: 600;
    background: linear-gradient(145deg, rgba(16, 74, 128, .98), rgba(5, 29, 56, .98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 59, 48, 0.4);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

#mobileMenu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#mobileMenu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: #fff;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}

#mobileMenu button:hover,
#mobileMenu button:active {
    background: rgba(255, 59, 48, 0.15);
    color: var(--lime);
}


/* =========================================================
   PAGE SYSTEM
========================================================= */

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}


/* =========================================================
   HOME HERO
========================================================= */

.home-hero {
    padding: 105px 22px 18px;

    background: var(--green);

    color: #fff;

    display: flex;
    flex-direction: column;
}

.hero-frame {
    border: 1px solid rgba(255, 59, 48, .55);
    border-radius: 28px;

    padding: 40px 28px 18px;

    overflow: visible;

    display: flex;
    flex-direction: column;
}

.hero-grid {
    display: grid;
    grid-template-columns: 67% 33%;

    padding: 35px 10px 0;
}

.hero-title {
    font-size: clamp(62px, 7.4vw, 120px);

    font-weight: 400;

    line-height: .86;

    letter-spacing: -6px;

    max-width: 900px;

    animation: heroTitle 1s .2s both;
}

.hero-title:not(.text-type-heading) > span {
    display: block;
}

@keyframes heroTitle {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero-right {
    padding: 25px 0 0 20px;

    animation: heroRight 1s .45s both;
}

@keyframes heroRight {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero-right p {
    max-width: 340px;

    font-size: 16px;

    line-height: 1.4;

    color: rgba(255, 255, 255, .8);

    margin-bottom: 24px;
}

.hero-right p::before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    margin-bottom: 8px;
}

.donate-btn {
    min-width: 178px;
}


/* HERO IMAGE */

.hero-photo {
    flex: 1;
    min-height: 250px;

    margin-top: 48px;

    border-radius: 19px;

    overflow: hidden;

    position: relative;

    animation: imageReveal 1.1s .5s both;
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        clip-path: inset(15% 0 0 0);
    }

    to {
        opacity: 1;
        transform: none;
        clip-path: inset(0);
    }
}

.hero-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 1.2s ease;
}

.hero-photo:hover img {
    transform: scale(1.04);
}


/* DONATION CARD */

.donation-card {
    position: absolute;

    left: 22px;
    bottom: 20px;

    width: 210px;

    padding: 18px;

    background: rgba(50, 50, 50, .68);

    backdrop-filter: blur(12px);

    border-radius: 13px;

    z-index: 5;
}

.donation-label {
    font-size: 14px;

    color: rgba(255, 255, 255, .8);

    margin-bottom: 7px;
}

.donation-amount {
    font-size: 19px;

    margin-bottom: 13px;
}

.progress {
    width: 100%;
    height: 3px;

    background: rgba(255, 255, 255, .35);
}

.progress span {
    display: block;

    width: 86%;
    height: 100%;

    background: var(--lime);

    animation: progress 1.8s .8s both;
}

@keyframes progress {
    from {
        width: 0;
    }

    to {
        width: 86%;
    }
}

.donation-meta {
    display: flex;
    justify-content: space-between;

    font-size: 14px;

    margin-top: 8px;

    color: rgba(255, 255, 255, .7);
}

.donation-card-cta {
    width: 100%;
    min-height: 38px;
    margin-top: 14px;
    padding: 9px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 8px;
    background: var(--lime);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.donation-card-cta:hover {
    background: #e03126;
    transform: translateY(-1px);
}

.donation-card-cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.donation-card-cta svg {
    width: 14px;
    height: 14px;
}

.donation-purpose {
    margin-top: 8px;

    font-size: 14px;

    color: rgba(255, 255, 255, .7);
}


/* =========================================================
   PARTNER STRIP
========================================================= */

.partners {
    height: 110px;

    display: flex;
    align-items: center;
    padding: 0;

    background: #fff;

    overflow: hidden;
}

.partners-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: partnerScroll 26s linear infinite;
}

.partners-group {
    display: flex;
    align-items: center;
    gap: clamp(42px, 7vw, 120px);
    padding-right: clamp(42px, 7vw, 120px);
}

@keyframes partnerScroll {
    to { transform: translateX(-50%); }
}

.partners:hover .partners-track {
    animation-play-state: paused;
}

.partner {
    font-size: 18px;
    font-weight: 700;

    white-space: nowrap;

    opacity: .85;
}

.partner:nth-child(1) {
    color: #d8dddd;
}

.partner:nth-child(2) {
    color: #222;
}

.partner:nth-child(3) {
    letter-spacing: -1px;
}

.partner:nth-child(4) {
    font-size: 18px;
}

.partner:nth-child(5) {
    color: #d64e90;
}

.partner:nth-child(6) {
    color: #203a70;
    font-style: italic;
}

.partner:nth-child(7) {
    color: #d8dddd;
}


/* =========================================================
   ABOUT PREVIEW
========================================================= */

.about-preview {
    padding: 90px 7%;

    display: grid;
    grid-template-columns: 48% 52%;

    gap: 60px;

    background: #fff;
    align-items: start;
}

.about-card {
    background: #f4f4f4;

    border-radius: 23px;

    padding: 28px;

    overflow: hidden;

    align-self: start;

    transform: translateY(30px);
    opacity: 0;

    transition:
        transform .8s,
        opacity .8s;
}

.about-card.visible {
    transform: none;
    opacity: 1;
}

.pill {
    border: 1px solid #999;

    border-radius: 20px;

    display: inline-flex;

    padding: 7px 12px;

    font-size: 14px;
}

.about-card h2 {
    margin-top: 17px;

    font-size: 32px;

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -1.5px;
}

.about-card-image {
    height: 150px;

    margin-top: 48px;

    border-radius: 15px;

    overflow: hidden;

    position: relative;
}

.about-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .8s;
}

.about-card:hover img {
    transform: scale(1.06);
}

/* PIXEL SWAP */

.about-card .pixel-swap {
    height: 180px;
    margin-top: 48px;
    border-radius: 15px;
}

.pixel-swap {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    outline: none;
    cursor: pointer;
}

.pixel-swap__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.pixel-swap__layer[data-visible='false'] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pixel-swap__layer[data-visible='true'] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pixel-swap__grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.pixel-swap__pixel {
    position: absolute;
    overflow: hidden;
    opacity: 0;
    contain: paint;
}

.pixel-swap__pixel-content {
    position: absolute;
}

.tags {
    position: absolute;

    bottom: 10px;
    left: 12px;

    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    pointer-events: none;
    z-index: 10;
}

.tag {
    background: #fff;

    padding: 5px 9px;

    border-radius: 15px;

    font-size: 14px;
}

.tag.green {
    background: var(--lime);

    color: var(--green);

    font-weight: 700;
}

/* TEXT PRESSURE ANIMATED TITLE */

.text-pressure-container {
    position: relative;
    width: 100%;
    margin: 15px 0 20px;
    overflow: hidden;
}

.text-pressure-title {
    font-family: 'Roboto Flex', sans-serif;
    text-transform: uppercase;
    font-size: clamp(32px, 5.5vw, 76px);
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0;
    text-align: center;
    user-select: none;
    white-space: nowrap;
    font-weight: 100;
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: var(--green);
}

.page-heading .text-pressure-title {
    color: var(--white);
    font-size: clamp(38px, 8vw, 95px);
    margin-top: 15px;
}

.text-pressure-title span {
    display: inline-block;
    will-change: font-variation-settings;
}


/* ABOUT TEXT */

.about-text {
    padding: 50px 5% 0 0;

    opacity: 0;
    transform: translateX(30px);

    transition:
        opacity .8s,
        transform .8s;
}

.about-text.visible {
    opacity: 1;
    transform: none;
}

.about-text h2 {
    max-width: 550px;

    font-size: 32px;

    line-height: 1.05;

    font-weight: 400;

    letter-spacing: -1.2px;
}

.about-text p {
    max-width: 500px;

    margin-top: 25px;

    color: #777;

    font-size: 14px;

    line-height: 1.6;
}

.actions {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-top: 25px;
}

.black-btn {
    height: 40px;

    border: 0;
    border-radius: 25px;

    background: #000;
    color: #fff;

    padding: 0 7px 0 18px;

    display: flex;
    align-items: center;

    gap: 15px;

    font-size: 14px;
}

.black-arrow {
    width: 27px;
    height: 27px;

    background: #fff;
    color: #000;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.team-link {
    color: #111;

    font-size: 14px;
}


/* =========================================================
   PAGE HERO
========================================================= */

.inner-page {
    padding-top: 0;

    background: #fff;
}

.inner-page .page-heading {
    padding-top: 150px;
}

.page-heading {
    background: var(--green);

    color: #fff;

    min-height: 450px;

    padding: 80px 7%;

    position: relative;

    overflow: hidden;
}

.page-heading::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    border: 1px solid rgba(255, 59, 48, .2);

    right: -150px;
    top: -220px;

    animation: floatCircle 8s ease-in-out infinite;
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(30px);
    }
}

.page-label {
    color: var(--lime);

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 3px;
}

.page-heading h1 {
    font-size: clamp(55px, 8vw, 110px);

    font-weight: 400;

    letter-spacing: -5px;

    line-height: .88;

    margin-top: 20px;

    max-width: 950px;
}

.page-heading p {
    margin-top: 25px;

    max-width: 500px;

    color: rgba(255, 255, 255, .72);

    line-height: 1.5;

    font-size: 14px;
}


/* =========================================================
   CAMPAIGNS
========================================================= */

.campaigns-section {
    padding: 90px 7%;
    background: #ffffff;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 48px;

    font-weight: 400;

    letter-spacing: -2px;
}

.section-title p {
    max-width: 360px;

    color: #777;

    font-size: 14px;

    line-height: 1.5;
}

.campaign-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.campaign {
    background: #f5f5f3;

    border-radius: 20px;

    overflow: hidden;

    transition:
        transform .4s,
        box-shadow .4s;
}

.campaign:hover {
    transform: translateY(-10px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .1);
}

.campaign:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 4px;
}

.campaign-img {
    height: 220px;

    overflow: hidden;
}

.campaign-img img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .7s;
}

.campaign:hover img {
    transform: scale(1.08);
}

.campaign-body {
    padding: 22px;
}

.campaign-status {
    display: inline-block;

    background: var(--lime);

    color: var(--green);

    padding: 5px 10px;

    border-radius: 15px;

    font-size: 14px;

    font-weight: 700;
}

.campaign h3 {
    font-size: 21px;

    font-weight: 500;

    margin-top: 15px;
}

.campaign p {
    color: #777;

    font-size: 14px;

    line-height: 1.5;

    margin-top: 10px;
}

.campaign-progress {
    margin-top: 20px;

    height: 4px;

    background: #ddd;
}

.campaign-progress span {
    display: block;

    height: 100%;

    background: var(--green);
}

.campaign-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 12px;

    font-size: 14px;
}

.campaign-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    transition: background .25s, transform .25s;
}

.campaign-donation-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(10, 54, 99, 0.15);
    color: #0a3663;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.campaign-donation-label > span {
    color: #526474;
}

.campaign-explore span {
    transition: transform .25s;
}

.campaign-explore:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.campaign-explore:hover span,
.campaign-explore:focus-visible span {
    transform: translateX(4px);
}

.campaign-explore:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 4px;
}

/* CAMPAIGN DETAIL */

.campaign-detail {
    min-height: 100vh;
    padding: 155px 7% 95px;
    background: #fff;
}

.campaign-detail-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.campaign-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.campaign-detail-back:hover { color: var(--lime); }

.campaign-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.campaign-detail-image {
    position: relative;
    height: 520px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--green-dark);
}

.campaign-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: detailImageReveal .9s ease both;
}

@keyframes detailImageReveal {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

.campaign-detail-copy { animation: detailCopyReveal .7s .1s ease both; }

@keyframes detailCopyReveal {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

.campaign-detail-copy .campaign-status { margin-bottom: 20px; }

.campaign-detail-copy h1 {
    max-width: 620px;
    color: var(--green);
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 400;
    letter-spacing: -4px;
    line-height: .92;
}

.campaign-detail-copy > p {
    max-width: 520px;
    margin-top: 24px;
    color: #777;
    font-size: 16px;
    line-height: 1.65;
}

.campaign-detail-progress {
    max-width: 520px;
    margin-top: 32px;
}

.campaign-detail-progress-bar {
    height: 7px;
    background: #e2e2df;
}

.campaign-detail-progress-bar span {
    display: block;
    height: 100%;
    background: var(--lime);
}

.campaign-detail-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 11px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.campaign-detail-copy .start-btn {
    margin-top: 32px;
}

.campaign-detail-page .site-nav,
.campaign-detail-page .site-nav.scrolled {
    background: var(--green);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.campaign-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.campaign-back-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: 170px;
    height: 56px;
    padding: 0 16px 0 6px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: box-shadow .3s, transform .3s;
}

.campaign-back-button:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .12); transform: translateY(-2px); }

.campaign-back-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #86efac;
    transition: width .5s;
    flex-shrink: 0;
}

.campaign-back-button:hover .campaign-back-icon { width: 158px; }
.campaign-back-button.is-animating .campaign-back-icon { width: 158px; }
.campaign-back-icon svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 2.2; }

.campaign-donate-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 192px;
    height: 56px;
    margin-top: 0;
    padding: 0 8px 0 22px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow .3s, transform .3s;
}

.campaign-donate-button:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .12); transform: translateY(-2px); }

.campaign-donate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #86efac;
    transition: width .5s;
}

.campaign-donate-button:hover .campaign-donate-icon { width: 176px; }
.campaign-donate-button.is-animating .campaign-donate-icon { width: 176px; }
.campaign-donate-icon svg { width: 25px; height: 25px; fill: none; stroke: #000; stroke-width: 2; }

.campaign-detail-image.campaign-image-swap > img,
.campaign-detail-image.campaign-image-swap > .campaign-image-second {
    transition: opacity .8s ease, transform .8s ease;
}

.campaign-detail-image.campaign-image-swap > .campaign-image-second {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.campaign-detail-image.campaign-image-swap:hover > img { opacity: 0; transform: scale(1.06); }
.campaign-detail-image.campaign-image-swap:hover > .campaign-image-second { opacity: 1; transform: scale(1.06); }

.campaign-detail-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 90px;
    background: #dfe2df;
}

.campaign-detail-fact {
    padding: 25px;
    background: #f5f5f3;
}

.campaign-detail-fact strong {
    display: block;
    color: var(--green);
    font-size: 26px;
    font-weight: 500;
}

.campaign-detail-fact span {
    display: block;
    margin-top: 7px;
    color: #777;
    font-size: 13px;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.footer-brand-title img { object-fit: contain; display: block; }

@media (max-width: 850px) {
    .campaign-detail {
        padding: 125px 16px 60px;
    }

    .campaign-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
    }

    .campaign-detail-image {
        height: 360px;
        border-radius: 20px;
    }

    .campaign-detail-copy h1 {
        font-size: clamp(34px, 7vw, 54px);
        letter-spacing: -2px;
    }

    .campaign-detail-copy > p {
        max-width: none;
        font-size: 16px;
        line-height: 1.5;
    }

    .campaign-detail-actions {
        gap: 12px;
        margin-top: 32px;
    }

    .campaign-detail-facts {
        margin-top: 55px;
    }
}

@media (max-width: 480px) {
    .campaign-detail {
        padding: 105px 16px 45px;
    }

    .campaign-detail-image { height: 280px; }

    .campaign-detail-copy > p {
        font-size: 15px;
    }

    .campaign-detail-copy .start-btn {
        width: 100%;
        justify-content: center;
    }

    .campaign-detail-facts {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .campaign-detail-fact { padding: 18px 20px; }

    .footer-brand-title { font-size: 20px; }

    .campaign-back-button,
    .campaign-donate-button { width: 192px; }

    .campaign-back-button:hover .campaign-back-icon,
    .campaign-donate-button:hover .campaign-donate-icon { width: 48px; }
}


/* =========================================================
   ABOUT PAGE
========================================================= */

.about-page-content {
    padding: 90px 7%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.about-page-content h2 {
    font-size: 55px;

    font-weight: 400;

    line-height: .95;

    letter-spacing: -3px;
}

.about-page-content p {
    color: #666;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 20px;
}

.about-image {
    width: 100%;
    height: 500px;

    border-radius: 25px;

    overflow: hidden;
    position: relative;
}

.about-image .pixel-swap {
    height: 100%;
    width: 100%;
    border-radius: 25px;
}

.about-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 1s;
}

.about-image:hover img {
    transform: scale(1.05);
}


/* =========================================================
   HOW IT WORKS — STEPPER
========================================================= */

.stepper-section {
    padding: 100px 7%;

    background: #f5f6f4;
}

.stepper-wrap {
    max-width: 1000px;

    margin: auto;
}

.stepper-progress {
    display: flex;

    align-items: center;

    margin-bottom: 70px;
}

.step-line {
    flex: 1;

    height: 2px;

    background: #d5d8d4;

    position: relative;
}

.step-line.active {
    background: var(--green);
}

.step-circle {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    border: 1px solid #bbb;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    color: #777;

    font-size: 14px;

    transition: .4s;
}

.step-circle.active {
    background: var(--green);

    border-color: var(--green);

    color: var(--lime);

    transform: scale(1.1);
}

.step-content {
    min-height: 330px;

    background: #fff;

    border-radius: 25px;

    padding: 50px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, .06);

    text-align: center;

    animation: stepIn .5s ease;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.step-number {
    color: var(--green);

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 3px;
}

.step-content h2 {
    font-size: 44px;

    font-weight: 400;

    letter-spacing: -2px;

    margin-top: 15px;
}

.step-content p {
    max-width: 550px;

    margin: 20px auto;

    color: #777;

    font-size: 14px;

    line-height: 1.6;
}

.step-buttons {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;
}

.step-btn {
    padding: 13px 23px;

    border-radius: 25px;

    border: 1px solid #ddd;

    background: #fff;
}

.step-btn.next {
    background: var(--green);

    color: #fff;

    border-color: var(--green);
}


/* =========================================================
   RESOURCES
========================================================= */

.resources {
    padding: 90px 7%;
}

.resource-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.resource {
    border: 1px solid #e5e5e5;

    border-radius: 20px;

    padding: 28px;

    transition: .35s;
}

.resource:hover {
    background: var(--green);

    color: #fff;

    transform: translateY(-7px);
}

.resource-number {
    color: var(--green);

    font-size: 14px;
}

.resource:hover .resource-number {
    color: var(--lime);
}

.resource h3 {
    font-size: 23px;

    font-weight: 400;

    margin-top: 40px;
}

.resource p {
    color: #777;

    font-size: 14px;

    line-height: 1.6;

    margin-top: 15px;
}

.resource:hover p {
    color: rgba(255, 255, 255, .7);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: 90px 7%;

    display: grid;

    grid-template-columns: 45% 55%;

    gap: 70px;
}

.contact-section h2 {
    font-size: 65px;

    font-weight: 400;

    letter-spacing: -4px;

    line-height: .9;
}

.contact-section p {
    margin-top: 25px;

    color: #777;

    font-size: 14px;

    line-height: 1.6;
}

.contact-form {
    background: #f5f5f3;

    border-radius: 25px;

    padding: 35px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    font-size: 14px;

    margin-bottom: 8px;

    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 14px;

    outline: none;

    background: #fff;

    transition: .25s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);

    box-shadow: 0 0 0 3px rgba(10, 54, 99, .08);
}

.form-group textarea {
    height: 120px;

    resize: none;
}

.submit-btn {
    height: 45px;

    padding: 0 25px;

    border: 0;

    border-radius: 25px;

    background: var(--green);

    color: #fff;
}

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


/* =========================================================
   DONATION MODAL
========================================================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 9000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, .55);

    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition: .4s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 100%;
    max-width: 520px;

    background: #fff;

    border-radius: 25px;

    padding: 35px;

    transform: translateY(30px) scale(.97);

    transition: .4s;
}

.modal.open .modal-box {
    transform: none;
}

.modal-header {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.modal-header h2 {
    font-size: 30px;

    font-weight: 400;
}

.close-modal {
    width: 35px;
    height: 35px;

    border: 0;

    border-radius: 50%;

    background: #f1f1f1;

    font-size: 18px;
}

.amount-options {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;

    margin: 25px 0;
}

.amount {
    height: 45px;

    border: 1px solid #ddd;

    background: #fff;

    border-radius: 10px;
}

.amount.selected {
    background: var(--green);

    color: #fff;

    border-color: var(--green);
}

.donate-submit {
    width: 100%;

    height: 48px;

    border: 0;

    border-radius: 25px;

    background: var(--lime);

    color: var(--green);

    font-weight: 700;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #ffffff;

    color: #111111;

    padding: 70px 7% 30px;
}

.footer-top {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 40px;
}

.footer-brand {
    font-size: 27px;

    font-weight: 700;
}

.footer-brand p {
    max-width: 300px;

    margin-top: 15px;

    font-size: 14px;

    color: #111111;

    line-height: 1.6;
}

.footer-col h4 {
    color: #111111;

    font-size: 14px;

    margin-bottom: 18px;
}

.footer-col button {
    display: block;

    border: 0;
    background: none;

    color: #111111;

    margin-bottom: 12px;

    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(17, 17, 17, .18);

    margin-top: 60px;

    padding-top: 20px;

    color: #111111;

    font-size: 14px;
}

.admin-dashboard-page .footer {
    display: block;
    clear: both;
    margin-top: 0;
    padding: 28px 20px;
    background: var(--green-dark);
    color: #ffffff;
}

.admin-dashboard-page .footer .footer-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    color: rgba(255, 255, 255, .8);
    text-align: center;
}

.dashboard-page .footer,
.profile-page .footer {
    display: block;
    clear: both;
    margin-top: 0;
    padding: 28px 20px;
    background: var(--green-dark);
    color: #ffffff;
}

.dashboard-page .footer-top,
.profile-page .footer-top {
    display: none;
}

.dashboard-page .footer .footer-bottom,
.profile-page .footer .footer-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    color: rgba(255, 255, 255, .8);
    text-align: center;
}

.footer .footer-brand-title,
.footer .footer-brand [style*="color"] {
    color: #111111 !important;
}

.footer .footer-bottom a[style] {
    color: #111111 !important;
}

.footer-col button:hover,
.footer-col button:focus-visible,
.footer .footer-bottom a:hover,
.footer .footer-bottom a:focus-visible {
    color: var(--green) !important;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.show {
    opacity: 1;

    transform: none;
}


/* =========================================================
   SCROLL STACK CARDS (HERO ANIMATION)
========================================================= */

.scroll-stack-scroller {
    position: relative;
    width: 100%;
    margin-top: 25px;
    padding-bottom: 0;
}

.scroll-stack-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.scroll-stack-card {
    position: sticky;
    top: 100px;
    height: 420px;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: none;
    transform-origin: top center;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* The transform is driven by one rAF update per scroll frame. */
    transition: none;
    background: #051d38;
    isolation: isolate;
}

.scroll-stack-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.scroll-stack-card:hover .scroll-stack-card-bg {
    transform: scale(1.03);
}

.scroll-stack-card-overlay {
    display: none;
}

.scroll-stack-card-content {
    position: absolute;
    bottom: 32px;
    left: 35px;
    right: 35px;
    z-index: 3;
    color: #fff;
}

.scroll-stack-card-content h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.scroll-stack-card-content p {
    font-size: 15px;
    opacity: 0.95;
    max-width: 650px;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.scroll-stack-end {
    width: 100%;
    height: 1px;
}


/* =========================================================
   RESPONSIVE & MOBILE OPTIMIZATIONS
========================================================= */

@media(max-width:1024px) {
    .hero-title {
        font-size: clamp(52px, 7vw, 90px);
    }

    .nav-links {
        gap: 22px;
        margin-right: 25px;
    }

    .nav-links button {
        font-size: 14px;
    }

    @media(max-width:850px) {

        .site-nav {
            padding: 8px 12px;
        }

        .nav-inner {
            height: 56px;
            padding: 0 8px 0 6px;
        }

        .logo {
            font-size: 15px;
            gap: 8px;
        }

        .logo img {
            width: 42px;
            height: 42px;
        }

        .nav-links {
            display: none;
        }

        .menu-btn {
            display: grid;
            margin-left: auto;
            margin-right: 10px;
        }

        #mobileMenu {
            display: block;
        }

        .start-btn {
            height: 38px;
            padding: 0 16px;
            font-size: 14px;
            font-weight: 500;
        }

        .home-hero {
            padding: 82px 10px 14px;
        }

        .hero-frame {
            border-radius: 20px;
            padding: 22px 12px 14px;
        }

        .hero-grid {
            display: block;
            position: sticky;
            top: 82px;
            z-index: 20;
            align-self: flex-start;
            width: 100%;
            will-change: transform;
            background: var(--green);
            border-radius: 16px;
            padding: 15px 0 0;
        }

        .hero-title {
            font-size: clamp(52px, 12vw, 84px);
            letter-spacing: -3.5px;
            line-height: 0.9;
        }

        .hero-right {
            padding: 20px 0 0;
        }

        .hero-right p {
            font-size: 16px;
            line-height: 1.55;
            color: rgba(255, 255, 255, 0.9);
        }

        .donate-btn {
            width: 100%;
            justify-content: center;
            height: 48px;
            font-size: 15px;
            margin-top: 15px;
        }

        .scroll-stack-scroller {
            margin-top: 24px;
            padding-bottom: 0;
            /* Keep vertical gestures with the page, not an inner scroller. */
            touch-action: pan-y;
        }

        .scroll-stack-inner {
            gap: 16px;
        }

        .scroll-stack-card {
            height: clamp(240px, 52svh, 320px);
            top: 360px;
            border-radius: 18px;
            margin-bottom: 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .scroll-stack-card-content {
            bottom: 18px;
            left: 18px;
            right: 18px;
        }

        .scroll-stack-card-content h2 {
            font-size: 22px;
            margin-bottom: 6px;
        }

        .scroll-stack-card-content p {
            font-size: 14px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .donation-card {
            top: 12px;
            right: 12px;
            padding: 12px 14px;
            width: 150px;
        }

        .donation-amount {
            font-size: 18px;
        }

        .partners {
            justify-content: flex-start;
            gap: 30px;
            overflow: hidden;
            touch-action: pan-y;
            padding: 0 15px;
        }

        .about-preview {
            grid-template-columns: 1fr;
            padding: 50px 16px;
            gap: 30px;
        }

        .about-text {
            padding: 0;
        }

        .page-heading {
            padding: 85px 18px 45px;
            min-height: 320px;
        }

        .page-heading h1 {
            font-size: clamp(34px, 8vw, 56px);
            letter-spacing: -2px;
        }

        .campaigns-section,
        .resources,
        .stepper-section,
        .contact-section,
        .about-page-content {
            padding: 50px 16px;
        }

        .campaign-grid,
        .resource-grid,
        .team-grid {
            grid-template-columns: 1fr;
            gap: 25px;
        }

        .campaigns-section .campaign-grid {
            width: min(100%, 520px);
            margin-left: auto;
            margin-right: auto;
        }

        .section-title {
            display: block;
        }

        .section-title h2 {
            font-size: 34px;
        }

        .section-title p {
            margin-top: 12px;
            font-size: 14px;
        }

        .trustees-heading {
            align-items: flex-start;
            flex-direction: column;
            gap: 18px;
        }

        .trustees-heading > div {
            width: 100%;
        }

        .trustees-heading .pill {
            display: inline-flex;
            margin-bottom: 14px;
        }

        .trustees-heading h2 {
            max-width: 100%;
            font-size: clamp(36px, 10vw, 58px);
            letter-spacing: -2px;
            overflow-wrap: anywhere;
        }

        .trustees-heading p {
            max-width: 100%;
        }

        .about-page-content {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .about-page-content h2 {
            font-size: 36px;
        }

        .about-image {
            height: 280px;
        }

        .step-content {
            padding: 25px 16px;
        }

        .step-content h2 {
            font-size: 26px;
        }

        .contact-section {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .contact-section h2 {
            font-size: 38px;
        }

        .contact-form {
            padding: 24px 16px;
            border-radius: 18px;
        }

        .form-row {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .footer-top {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }

    @media(max-width:480px) {

        .site-nav {
            padding: 6px 8px;
        }

        .nav-inner {
            height: 52px;
            padding: 0 6px 0 4px;
        }

        .logo {
            font-size: 14px;
            gap: 6px;
        }

        .logo img {
            width: 38px;
            height: 38px;
        }

        .start-btn {
            height: 34px;
            padding: 0 12px;
            font-size: 14px;
        }

        .home-hero {
            padding: 76px 8px 12px;
        }

        .hero-frame {
            border-radius: 18px;
            padding: 18px 10px 10px;
        }

        .hero-title {
            font-size: clamp(44px, 11vw, 68px);
            letter-spacing: -3px;
            line-height: 0.92;
        }

        .hero-grid {
            top: 76px;
            border-radius: 14px;
            padding-top: 12px;
        }

        .scroll-stack-scroller {
            margin-top: 20px;
            padding-bottom: 0;
        }

        .scroll-stack-inner {
            gap: 12px;
        }

        .scroll-stack-card {
            height: clamp(230px, 62svh, 280px);
            top: 330px;
            border-radius: 16px;
            margin-bottom: 8px;
        }

        .scroll-stack-card-content {
            bottom: 14px;
            left: 14px;
            right: 14px;
        }

        .scroll-stack-card-content h2 {
            font-size: 19px;
            margin-bottom: 4px;
        }

        .donation-card {
            width: 135px;
            padding: 10px;
        }

        .donation-label {
            font-size: 14px;
        }

        .donation-amount {
            font-size: 16px;
        }

        .page-heading h1 {
            font-size: 38px;
        }

        .amount-options {
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

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

/* Preserve the original rounded navigation while keeping CTA text and icon visible. */
@media (max-width: 850px) {
    .site-nav,
    .site-nav.scrolled {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-nav .nav-inner {
        background: var(--green);
    }

    .site-nav .start-btn {
        padding: 0 43px 0 12px;
        font-size: 14px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .site-nav .start-btn .icon {
        display: flex;
        width: 32px;
        height: 32px;
        margin-left: 0;
        right: 3px;
    }

    .site-nav .start-btn:hover .icon,
    .site-nav .start-btn.is-animating .icon {
        width: calc(100% - 0.6em);
    }

    .site-nav .start-btn:hover .icon svg,
    .site-nav .start-btn.is-animating .icon svg {
        transform: translateX(0.1em);
    }

    .donate-btn.start-btn {
        padding-right: 3.3em;
        padding-left: 1.2em;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .site-nav .start-btn {
        padding: 0 39px 0 10px;
        font-size: 13px;
    }

    .site-nav .start-btn .icon {
        width: 28px;
        height: 28px;
    }

    .site-nav .start-btn:hover .icon,
    .site-nav .start-btn.is-animating .icon {
        width: calc(100% - 0.6em);
    }

    .donate-btn.start-btn {
        height: 48px;
        padding-right: 3.3em;
        padding-left: 1.2em;
        font-size: 15px;
    }
}

@media (max-width: 850px) {
    .site-nav .start-btn {
        flex: 0 0 auto;
        min-width: 132px;
        padding-right: 40px;
        white-space: nowrap;
    }

    .site-nav .start-btn:hover .icon,
    .site-nav .start-btn.is-animating .icon,
    .site-nav .start-btn:active .icon {
        width: calc(100% - 0.6em);
    }
}

@media (max-width: 480px) {
    .site-nav .start-btn {
        min-width: 132px;
        padding-right: 36px;
        font-size: 13px;
    }

    .site-nav .start-btn:hover .icon,
    .site-nav .start-btn.is-animating .icon,
    .site-nav .start-btn:active .icon {
        width: calc(100% - 0.6em);
    }
}

@media (hover: none) {
    .start-btn:active .icon {
        width: calc(100% - 0.6em);
    }

    .start-btn:active .icon svg {
        transform: translateX(0.1em);
    }
}

}


/* =========================================================
   INTERACTIVE FOLDER COMPONENT
========================================================= */

:root {
    --folder-color: #5227FF;
    --folder-back-color: #3b16d9;
    --paper-1: #e2e8f0;
    --paper-2: #f1f5f9;
    --paper-3: #ffffff;
}

.custom-folder-wrapper {
    margin-top: 24px;
    padding: 0;
    background: transparent;
    border: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: auto;
}

.folder-interactive-area {
    width: 140px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 0 4px 6px;
}

.folder {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    position: relative;
    user-select: none;
    outline: none;
    touch-action: manipulation;
}

.folder:not(.open):hover {
    transform: translateY(-8px);
}

.folder:not(.open):hover .paper {
    transform: translate(-50%, 0%);
}

.folder:not(.open):hover .folder__front:not(.right) {
    transform: skew(15deg) scaleY(0.6);
}

.folder:not(.open):hover .folder__front.right {
    transform: skew(-15deg) scaleY(0.6);
}

.folder.open {
    transform: translateY(-6px);
}

.folder.open .paper:nth-child(1) {
    transform: translate(calc(-125% + var(--magnet-x, 0px)), calc(-72% + var(--magnet-y, 0px))) rotateZ(-16deg);
}

.folder.open .paper:nth-child(1):hover {
    transform: translate(calc(-125% + var(--magnet-x, 0px)), calc(-72% + var(--magnet-y, 0px))) rotateZ(-16deg) scale(1.1);
    z-index: 12;
    box-shadow: 0 16px 30px rgba(82, 39, 255, 0.25);
    border-color: #5227FF;
}

.folder.open .paper:nth-child(2) {
    transform: translate(calc(25% + var(--magnet-x, 0px)), calc(-72% + var(--magnet-y, 0px))) rotateZ(16deg);
    height: 85%;
}

.folder.open .paper:nth-child(2):hover {
    transform: translate(calc(25% + var(--magnet-x, 0px)), calc(-72% + var(--magnet-y, 0px))) rotateZ(16deg) scale(1.1);
    z-index: 12;
    box-shadow: 0 16px 30px rgba(82, 39, 255, 0.25);
    border-color: #5227FF;
}

.folder.open .paper:nth-child(3) {
    transform: translate(calc(-50% + var(--magnet-x, 0px)), calc(-108% + var(--magnet-y, 0px))) rotateZ(3deg);
    height: 85%;
}

.folder.open .paper:nth-child(3):hover {
    transform: translate(calc(-50% + var(--magnet-x, 0px)), calc(-108% + var(--magnet-y, 0px))) rotateZ(3deg) scale(1.1);
    z-index: 12;
    box-shadow: 0 16px 30px rgba(82, 39, 255, 0.25);
    border-color: #5227FF;
}

.folder.open .folder__front:not(.right) {
    transform: skew(15deg) scaleY(0.6);
}

.folder.open .folder__front.right {
    transform: skew(-15deg) scaleY(0.6);
}

.folder__back {
    position: relative;
    width: 120px;
    height: 90px;
    background: var(--folder-back-color, #3b16d9);
    border-radius: 0px 14px 14px 14px;
    box-shadow: none;
}

.folder__back::after {
    position: absolute;
    z-index: 0;
    bottom: 98%;
    left: 0;
    content: '';
    width: 40px;
    height: 14px;
    background: var(--folder-back-color, #3b16d9);
    border-radius: 7px 7px 0 0;
}

.paper {
    position: absolute;
    z-index: 2;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 10%);
    width: 75%;
    height: 82%;
    background: var(--paper-1, #e2e8f0);
    border-radius: 12px;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    box-sizing: border-box;
}

.paper:nth-child(2) {
    background: var(--paper-2, #f1f5f9);
    width: 82%;
    height: 75%;
}

.paper:nth-child(3) {
    background: var(--paper-3, #ffffff);
    width: 88%;
    height: 68%;
}

.paper-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    width: 100%;
    pointer-events: none;
}

.paper-icon {
    width: 20px;
    height: 20px;
    stroke: var(--folder-color, #5227FF);
    stroke-width: 2;
    fill: none;
}

.paper-title {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.folder__front {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    background: var(--folder-color, #5227FF);
    border-radius: 6px 14px 14px 14px;
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    box-shadow: none;
}

.folder__front.right {
    z-index: 4;
}

.folder:focus-visible {
    outline: 3px solid #5227FF;
    outline-offset: 6px;
    border-radius: 12px;
}

.folder-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s ease;
    padding-left: 6px;
    text-align: left;
}

.custom-folder-wrapper:hover .folder-hint {
    color: #5227FF;
}

@media (max-width: 850px) {
    .custom-folder-wrapper {
        margin: 28px auto 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
        background: transparent;
        border: none;
        width: 100%;
    }

    .folder-interactive-area {
        height: 120px;
        width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .folder__back {
        width: 110px;
        height: 85px;
    }

    .paper-title {
        font-size: 9px;
    }

    .paper-icon {
        width: 18px;
        height: 18px;
    }

    .folder-hint {
        padding-left: 0;
        text-align: center;
        width: 100%;
    }
}

/* Keep the folder refinements after the component defaults above. */
:root { --folder-color: #01295c; --folder-back-color: #001738; }
.folder__back, .folder__back::after { background: var(--folder-back-color, #001738); }
.folder__back { box-shadow: none !important; }
.folder__front { background: var(--folder-color, #01295c); box-shadow: none !important; }
.paper-icon { stroke: var(--folder-color, #01295c); }
.folder:focus-visible { outline-color: var(--folder-color, #01295c); }
.custom-folder-wrapper:hover .folder-hint { color: #ffffff; }

.folder-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #0a3663;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
    text-align: center;
    width: 100%;
    display: block;
    padding-left: 0;
}

.custom-folder-wrapper:hover .folder-hint { color: #0a3663; }

@media (min-width: 851px) {
    .custom-folder-wrapper {
        margin-top: 28px;
        margin-left: 0;
        margin-right: 0;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }
    .folder-interactive-area {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 6px;
    }
    .folder-hint {
        text-align: center;
        width: 140px;
        margin-right: 0;
    }
}

@media (max-width: 850px) {
    .custom-folder-wrapper {
        display: flex;
        margin: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    .folder-interactive-area {
        height: 120px;
        width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }
    .folder-hint {
        text-align: center;
        width: 100%;
        margin-top: 14px;
    }
}

/* =========================================================
   LEGAL & COMPLIANCE STYLES
========================================================= */
.legal-container {
    padding: 70px 7% 100px;
    max-width: 1050px;
    margin: 0 auto;
}

.legal-content-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    color: #111;
}

.legal-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.legal-meta-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.legal-body section {
    margin-bottom: 40px;
}

.legal-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 16px;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--green-dark);
    margin: 20px 0 10px;
}

.legal-body p {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 14px;
}

.legal-body ul, .legal-body ol {
    margin: 14px 0 18px 24px;
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-highlight-box {
    background: #f8fafc;
    border-left: 4px solid var(--green);
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
}

.legal-highlight-box p {
    margin-bottom: 0;
    font-weight: 500;
}

.donation-consent-container {
    margin-top: 24px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.donation-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    font-weight: 500;
}

.donation-consent-label input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
}

.donation-disclaimer-text {
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.donation-disclaimer-text a, .donation-consent-label a {
    color: var(--green);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 850px) {
    .legal-container {
        padding: 40px 16px 60px;
    }
    .legal-content-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    .legal-body h2 {
        font-size: 19px;
    }
}

/* =========================================================
   AUTH MODALS, DASHBOARDS, ADMIN PORTAL & RECEIPT STYLES
========================================================= */

/* Auth Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 29, 56, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-modal-overlay.open .auth-card {
    transform: translateY(0);
}

.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.auth-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.auth-header {
    margin-bottom: 24px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-modal-overlay .auth-header h2,
.auth-modal-overlay .auth-field label,
.auth-modal-overlay .auth-link,
.auth-modal-overlay .auth-submit-btn,
.auth-modal-overlay .auth-switch-text,
.auth-modal-overlay .auth-checkbox-label,
.auth-modal-overlay .toggle-password {
    font-weight: 400 !important;
}

.auth-header p {
    font-size: 14px;
    color: #64748b;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrapper input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(10, 54, 99, 0.15);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}

.auth-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.auth-link {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    height: 48px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: var(--green-dark);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    display: none;
}

.auth-error-banner.show {
    display: block;
}

.auth-success-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    display: none;
}

.auth-success-banner.show {
    display: block;
}

.auth-switch-text {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 16px;
}

/* TEXT LOOP WAVE ANIMATION OVERLAY */
.text-loop-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-loop {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.text-loop-svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.text-loop-text {
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Roboto Flex', sans-serif;
    font-weight: 800;
}

.text-loop-measure {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 640px) {
    .text-loop {
        transform: scale(1.4);
        transform-origin: center center;
    }
}

/* Dashboard & Admin Core Layout */
.app-container {
    max-width: 1200px;
    margin: 135px auto 60px;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
}
.admin-dashboard-page .app-container {
    margin-top: 125px !important;
}

.admin-dashboard-page * {
    font-weight: 400 !important;
}

.dashboard-page *,
.profile-page * {
    font-weight: 400 !important;
}

.dashboard-header-card {
    background: #051d38;
    color: #ffffff;
    border-radius: 20px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(5, 29, 56, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.donor-info-group {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
}

.circular-profile {
    width: 112px;
    height: 112px;
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 112px;
}

.circular-text {
    --spin-duration: 20s;
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: circular-text-spin var(--spin-duration) linear infinite;
    pointer-events: none;
}

.circular-text span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    margin: -7px 0 0 -5.5px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 9px;
    font-weight: 800;
    line-height: 14px;
    letter-spacing: 0;
    text-align: center;
    transform: rotate(var(--angle)) translateY(-50px) rotate(calc(-1 * var(--angle)));
}

.circular-profile:hover .circular-text {
    --spin-duration: 5s;
}

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

.donor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.donor-avatar.has-image {
    overflow: hidden;
    background: #e2e8f0;
}

.donor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donor-details h1 {
    font-size: 26px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

/* Keep headings readable wherever they animate over a blurred dashboard header. */
.dashboard-header-card .blur-text-element,
.dashboard-header-card .blur-text-element .blur-word {
    color: #ffffff;
    font-weight: 400;
}

.donor-details p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

@media (max-width: 640px) {
    .dashboard-header-card {
        padding: 28px 24px;
    }

    .donor-info-group {
        gap: 20px;
    }

    .circular-profile {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .circular-text span {
        transform: rotate(var(--angle)) translateY(-43px) rotate(calc(-1 * var(--angle)));
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .circular-text {
        animation: none;
    }
}

/* Circular brand ring used by the shared page loader. */
.loader-logo {
    width: 138px !important;
    height: 138px !important;
    min-width: 138px !important;
    min-height: 138px !important;
    position: relative !important;
    margin: auto !important;
    color: transparent !important;
}

.loader-logo img {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1;
}

.loader-brand-ring {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    animation: loader-brand-ring-spin 4s linear infinite !important;
    will-change: transform;
    pointer-events: none;
}

.loader-brand-ring span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    margin: -7px 0 0 -6px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    transform: rotate(var(--angle)) translateY(-61px) rotate(calc(-1 * var(--angle)));
}

@keyframes loader-brand-ring-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* On mobile, use a clear photographic dashboard header instead of the moving ribbon. */
@media (max-width: 640px) {
    .loader-logo {
        width: 118px !important;
        height: 118px !important;
        min-width: 118px !important;
        min-height: 118px !important;
    }

    .loader-logo img {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    .loader-brand-ring span {
        transform: rotate(var(--angle)) translateY(-51px) rotate(calc(-1 * var(--angle)));
        font-size: 8px;
    }

    .dashboard-page .dashboard-header-card {
        background-image: linear-gradient(rgba(5, 29, 56, 0.83), rgba(10, 54, 99, 0.91)), url('../turbines.jpeg');
        background-position: center;
        background-size: cover;
    }

    .dashboard-page .dashboard-header-card .text-loop-container {
        display: none;
    }
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.btn-secondary {
    height: 42px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.btn-primary-action {
    height: 42px;
    padding: 0 20px;
    background: var(--lime);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary-action:hover {
    background: #e03126;
}

/* Stat Cards Grid */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.stat-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 500;
    color: var(--green);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.stat-card-sub {
    font-size: 13px;
    color: #94a3b8;
}

/* Section Header & Filters */
.section-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.section-panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.filter-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: #ffffff;
    color: var(--green);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Responsive Table Shell */
.table-card-shell {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
}

.custom-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.custom-data-table th {
    background: #f8fafc;
    padding: 16px 20px;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.custom-data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.custom-data-table tr:last-child td {
    border-bottom: none;
}

.custom-data-table tr:hover td {
    background: #f8fafc;
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pill.successful {
    background: #dcfce7;
    color: #15803d;
}

.status-pill.pending {
    background: #fef9c3;
    color: #a16207;
}

.status-pill.failed {
    background: #fee2e2;
    color: #b91c1c;
}

.status-pill.refunded {
    background: #e0f2fe;
    color: #0369a1;
}

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

/* Action Buttons inside Table */
.btn-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--green);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-icon-text svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.btn-icon-text:hover {
    background: #e2e8f0;
}

/* Empty State */
.table-empty-state {
    padding: 50px 20px;
    text-align: center;
    color: #64748b;
}

.table-empty-state svg {
    width: 48px;
    height: 48px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

/* Profile Form Card */
.profile-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    max-width: 700px;
    margin: 0 auto;
}

.profile-photo-upload {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.profile-photo-preview {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #0a3663;
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

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

.profile-photo-upload-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.profile-photo-upload-copy input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.profile-photo-select,
.profile-photo-remove {
    border: 0;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.profile-photo-select:hover,
.profile-photo-remove:hover {
    opacity: 0.9;
}

.profile-photo-upload .profile-photo-select {
    background: #0066ff;
    color: #ffffff !important;
}

.profile-photo-remove {
    background: #fee2e2;
    color: #b91c1c;
}

.profile-photo-upload-copy p {
    width: 100%;
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

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

.profile-form-grid .full-width {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    .profile-form-grid .full-width {
        grid-column: span 1;
    }

    .profile-photo-upload {
        align-items: flex-start;
    }
}

/* Admin Dashboard Specific */
.admin-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-search-box {
    position: relative;
    width: 300px;
}

.admin-search-box input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
}

.admin-search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.chart-card-shell {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 35px;
}
.admin-dashboard-page .chart-card-shell {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
.admin-dashboard-page .chart-card-shell h3,
.admin-dashboard-page .chart-card-shell p,
.admin-dashboard-page .chart-card-shell button {
    font-weight: 400 !important;
}

.admin-dashboard-page .section-panel-header > .filter-pills {
    display: flex !important;
    flex: 0 1 520px;
    width: 100%;
    max-width: 520px;
}

.admin-dashboard-page .section-panel-header > .filter-pills .filter-btn {
    flex: 1 1 0;
    text-align: center;
    white-space: nowrap;
}
.admin-chart-scroll {
    width: 100%;
    overflow: hidden;
}
.admin-chart-scroll .analytics-chart-svg {
    display: block;
    width: 100%;
    height: 220px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.status-pill.no-dot .status-dot {
    display: none;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* SVG Chart */
.analytics-chart-svg {
    width: 100%;
    height: 220px;
    overflow: visible;
}

@media (max-width: 640px) {
    .admin-dashboard-page .app-container,
    .profile-page .app-container,
    .dashboard-page .app-container {
        margin-top: 112px !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .admin-dashboard-page .chart-card-shell {
        padding: 20px 14px;
    }

    .admin-dashboard-page .section-panel-header > .filter-pills {
        flex: 0 0 auto;
        max-width: none;
    }

    .admin-dashboard-page .section-panel-header > .admin-search-box {
        width: 100% !important;
        max-width: none;
    }

    .admin-dashboard-page .chart-header {
        align-items: flex-start;
    }

    .admin-dashboard-page .chart-header h3 {
        font-size: 17px !important;
    }

    .admin-dashboard-page .chart-header p {
        line-height: 1.45;
    }

    .admin-dashboard-page .admin-chart-scroll .analytics-chart-svg {
        height: 220px;
    }

    .admin-login-page .site-nav .start-btn,
    .dashboard-page .site-nav .start-btn {
        display: none;
    }

    .admin-dashboard-page .site-nav .start-btn {
        display: inline-flex;
    }

    .admin-login-page .nav-inner,
    .admin-dashboard-page .nav-inner {
        gap: 8px;
        padding: 0 8px;
    }

    .admin-login-page .logo,
    .admin-dashboard-page .logo {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 12px;
        line-height: 1.1;
        gap: 5px;
    }

    .admin-login-page .logo img,
    .admin-dashboard-page .logo img {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .admin-login-page .nav-inner > .start-btn,
    .admin-dashboard-page .nav-inner > .start-btn {
        flex: 0 0 auto;
        max-width: 110px;
        min-width: 110px;
        padding: 0 9px;
        font-size: 10px;
        line-height: 1.1;
        white-space: normal;
        text-align: center;
    }

    .admin-dashboard-page .app-container,
    .dashboard-page .app-container,
    .profile-page .app-container {
        margin-top: 115px;
        padding: 0 12px;
    }

    .admin-dashboard-page .dashboard-header-card,
    .dashboard-page .dashboard-header-card {
        padding: 24px 18px;
        gap: 22px;
    }

    .admin-dashboard-page .dashboard-header-card .donor-info-group,
    .dashboard-page .dashboard-header-card .donor-info-group {
        width: 100%;
        gap: 16px;
    }

    .admin-dashboard-page .dashboard-header-card .donor-details h1,
    .dashboard-page .dashboard-header-card .donor-details h1 {
        font-size: 22px;
        line-height: 1.15;
    }

    .admin-dashboard-page .dashboard-header-card .donor-details p,
    .dashboard-page .dashboard-header-card .donor-details p {
        font-size: 13px;
        line-height: 1.4;
    }

    .admin-dashboard-page .dashboard-header-actions,
    .dashboard-page .dashboard-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-dashboard-page .dashboard-header-actions button,
    .dashboard-page .dashboard-header-actions button {
        flex: 1 1 130px;
        justify-content: center;
    }

    .admin-dashboard-page .stat-cards-grid,
    .dashboard-page .stat-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-dashboard-page .stat-card,
    .dashboard-page .stat-card {
        padding: 20px;
    }

    .admin-dashboard-page .chart-card-shell {
        padding: 20px 14px;
        margin-bottom: 24px;
    }

    .admin-dashboard-page .chart-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .admin-dashboard-page .chart-header p {
        max-width: 230px;
        line-height: 1.4;
    }

    .admin-dashboard-page .chart-header button {
        width: 100%;
        justify-content: center;
    }

    .admin-dashboard-page .analytics-chart-svg {
        height: 180px;
    }

    .admin-dashboard-page .section-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-dashboard-page .filter-pills {
        width: 100%;
        overflow-x: auto;
    }

    .admin-dashboard-page .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .admin-dashboard-page .admin-search-box {
        width: 100%;
    }
}

/* Mobile Navbar Dynamic Auth Buttons & Size Adjustments */
.mobile-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

.mobile-auth-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.25s ease;
}

.primary-mobile-btn {
    background: #ff3b30;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
}

.primary-mobile-btn:hover {
    background: #e03126;
}

.secondary-mobile-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.logout-mobile-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Dashboard & Cards Mobile Optimization */
.chart-card-shell {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.chart-card-shell .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.analytics-chart-svg {
    width: 100%;
    height: auto;
    max-height: 220px;
    overflow: visible;
    display: block;
}

@media (max-width: 768px) {
    .stat-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    
    .dashboard-header-card {
        padding: 24px 18px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 18px !important;
    }

    .dashboard-header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dashboard-header-actions button {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }

    .filter-pills {
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
}

/* Signed Legal Document & Tax Receipt Certificate Modal */
.legal-document-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 640px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(5, 29, 56, 0.22);
    border: 1px solid #cbd5e1;
    max-height: 90vh;
    overflow-y: auto;
}

.legal-doc-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.legal-doc-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.legal-trust-sub {
    font-size: 12px;
    font-weight: 700;
    color: #0a3663;
    margin-top: 2px;
}

.legal-trust-address {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.legal-doc-banner {
    background: linear-gradient(135deg, #0a3663 0%, #051d38 100%);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    color: #ffffff;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(10, 54, 99, 0.2);
}

.legal-badge-pill {
    display: inline-block;
    background: rgba(255, 59, 48, 0.9);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.legal-doc-banner h1 {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0;
    letter-spacing: -0.5px;
}

.legal-doc-banner p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.legal-terms-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.legal-terms-box h3 {
    font-size: 13px;
    font-weight: 700;
    color: #0a3663;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-terms-list li {
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
}

.legal-terms-list strong {
    color: #0f172a;
}

.legal-signatory-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px dashed #e2e8f0;
    margin-top: 20px;
    gap: 16px;
}

.trustee-sign-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trustee-photo-frame {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #0a3663;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.signature-handwritten {
    font-family: 'Georgia', 'Times New Roman', cursive;
    font-style: italic;
    font-size: 20px;
    font-weight: 700;
    color: #0a3663;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 4px;
}

.trustee-title-name {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.trustee-role-tag {
    font-size: 11px;
    font-weight: 700;
    color: #ff3b30;
}

.trustee-org {
    font-size: 10px;
    color: #64748b;
}

.seal-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px dashed #0a3663;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0a3663;
    padding: 4px;
    transform: rotate(-8deg);
    background: rgba(10, 54, 99, 0.04);
}

.seal-circle span {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.seal-circle strong {
    font-size: 9px;
    font-weight: 900;
    color: #ff3b30;
}

.seal-circle small {
    font-size: 7px;
    color: #475569;
}

/* Print Styling */
@media print {
    body * {
        visibility: hidden;
    }
    .receipt-modal-card, .receipt-modal-card * {
        visibility: visible;
    }
    .receipt-modal-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    .receipt-actions, .auth-close-btn {
        display: none !important;
    }
}

/* =========================================================
   3D WEBGL CIRCULAR GALLERY & CAMPAIGN CARDS REDESIGN
========================================================= */

.gallery-wrapper-shell {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #051d38;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.gallery-nav-btn svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

@media (max-width: 640px) {
    .gallery-nav-btn {
        width: 44px;
        height: 44px;
    }
    .gallery-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    .gallery-nav-prev {
        left: 8px;
    }
    .gallery-nav-next {
        right: 8px;
    }
}

.circular-gallery {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: default;
    user-select: none;
    touch-action: pan-y;
}

.circular-gallery canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.circular-gallery:focus-visible {
    outline: 2px solid #ff3b30;
    outline-offset: -4px;
}

/* Static Campaign Cards Design Upgrade for Campaigns Page */
.campaigns-section .campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.campaigns-section .campaign {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(5, 29, 56, 0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.campaigns-section .campaign:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(5, 29, 56, 0.14);
    border-color: rgba(10, 54, 99, 0.25);
}

.campaigns-section .campaign-img {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.campaigns-section .campaign-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.campaigns-section .campaign:hover .campaign-img img {
    transform: scale(1.06);
}

.campaigns-section .campaign-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.campaigns-section .campaign-status {
    display: inline-block;
    align-self: flex-start;
    background: #0a3663;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.campaigns-section .campaign h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0a3663;
    line-height: 1.35;
    margin-bottom: 8px;
}

.campaigns-section .campaign p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.campaigns-section .campaign-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.campaigns-section .campaign-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff3b30 0%, #ff6b63 100%);
    border-radius: 999px;
}

.campaigns-section .campaign-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #0a3663;
    margin-bottom: 18px;
}

.campaigns-section .campaign-explore {
    width: 100%;
    padding: 12px 18px;
    background: #0a3663;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.campaigns-section .campaign-explore:hover {
    background: #ff3b30;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.3);
}

/* =========================================================
   3D CURVED CYLINDER CAROUSEL & CARDS GALLERY
========================================================= */

.circular-3d-scene {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    perspective: 1400px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.circular-3d-scene.is-grabbing {
    cursor: grabbing;
}

.circular-3d-track {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

.circular-3d-card {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease;
}

.c3d-card-inner {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circular-3d-card.is-center-active .c3d-card-inner {
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.4);
}

.c3d-img-box {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #0a3663;
}

.c3d-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c3d-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff3b30;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.c3d-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.c3d-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0a3663;
    margin: 0 0 6px;
    line-height: 1.3;
}

.c3d-content p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px;
    flex-grow: 1;
}

.c3d-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.c3d-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff3b30 0%, #ff6b63 100%);
    border-radius: 999px;
}

.c3d-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #0a3663;
    margin-bottom: 12px;
}

.c3d-action-btn {
    width: 100%;
    padding: 10px 14px;
    background: #0a3663;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.c3d-action-btn:hover {
    background: #ff3b30;
    transform: translateY(-1px);
}

.circular-3d-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 5000;
}

.c3d-prev-btn, .c3d-next-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #0a3663;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.c3d-prev-btn:hover, .c3d-next-btn:hover {
    background: #ff3b30;
    color: #ffffff;
    transform: scale(1.08);
}

.c3d-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .circular-3d-scene {
        min-height: 460px;
    }
    .c3d-hint {
        display: none;
    }
}

/* =========================================================
   MOBILE PROFILE AVATAR SQUEEZE PREVENTION
========================================================= */

.donor-avatar,
.circular-profile,
.profile-photo-preview,
.trustee-photo-frame,
.donor-avatar img,
.circular-profile img,
.profile-photo-preview img,
.trustee-photo-frame img {
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.donor-avatar {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
}

.profile-photo-preview {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
}

/* =========================================================
   MONOCHROME A4 LEGAL CERTIFICATE & RECEIPT
========================================================= */

.monochrome-a4-doc {
    background: #ffffff !important;
    color: #000000 !important;
    max-width: 820px !important;
    width: 100% !important;
    padding: 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
    font-family: 'Times New Roman', Times, serif, system-ui !important;
}

.a4-certificate-inner {
    background: #ffffff;
    border: 2px solid #000000;
    outline: 1px solid #000000;
    outline-offset: -5px;
    padding: 24px 28px;
    position: relative;
}

.a4-header-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.a4-logo-box {
    flex-shrink: 0;
}

.a4-brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.a4-org-details {
    flex-grow: 1;
}

.a4-trust-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 2px;
    color: #000000;
}

.a4-trust-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #262626;
    margin: 0 0 4px;
}

.a4-trust-meta {
    font-size: 11px;
    color: #000000;
    margin: 0 0 2px;
    line-height: 1.4;
}

.a4-trust-address {
    font-size: 10px;
    color: #404040;
    margin: 0;
}

.a4-divider-double {
    border-top: 2px solid #000000;
    border-bottom: 1px solid #000000;
    height: 3px;
    margin: 12px 0 16px;
}

.a4-doc-title-box {
    text-align: center;
    margin-bottom: 16px;
}

.a4-doc-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding: 4px 16px;
    display: inline-block;
    color: #000000;
}

.a4-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 12px;
    color: #000000;
}

.a4-details-table td {
    padding: 6px 8px;
    border: 1px solid #737373;
    vertical-align: middle;
}

.a4-highlight-row {
    background: #f5f5f5;
}

.a4-amount-bold {
    font-size: 18px;
    font-weight: 900;
    color: #000000;
}

.a4-amount-words {
    font-size: 11px;
    color: #262626;
    font-style: italic;
}

.a4-terms-section {
    border: 1px solid #737373;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: #fafafa;
}

.a4-terms-heading {
    font-size: 11px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    color: #000000;
}

.a4-terms-list {
    margin: 0;
    padding-left: 16px;
    font-size: 10px;
    line-height: 1.45;
    color: #171717;
}

.a4-terms-list li {
    margin-bottom: 4px;
}

.a4-signatures-row {
    display: grid;
    grid-template-columns: 1fr 120px 1.2fr;
    gap: 16px;
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 10px;
}

.a4-sign-box {
    text-align: center;
}

.a4-sig-image-container {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.a4-uploaded-sig {
    max-height: 44px;
    max-width: 90%;
    object-fit: contain;
    filter: grayscale(100%) contrast(150%);
}

.a4-sig-verified-text {
    font-size: 9px;
    color: #525252;
    line-height: 1.2;
}

.a4-trustee-sig-text {
    font-family: 'Brush Script MT', cursive, serif;
    font-size: 22px;
    color: #000000;
}

.a4-sig-line {
    border-top: 1px solid #000000;
    margin: 4px 0;
}

.a4-sig-name {
    font-size: 11px;
    font-weight: 800;
    color: #000000;
}

.a4-sig-title {
    font-size: 9px;
    color: #404040;
}

.a4-sig-org {
    font-size: 8px;
    color: #525252;
}

.a4-seal-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.a4-stamp-circle {
    width: 80px;
    height: 80px;
    border: 2px dashed #000000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
}

.a4-stamp-circle span {
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #000000;
}

.a4-stamp-circle strong {
    font-size: 8px;
    font-weight: 900;
    color: #000000;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin: 2px 0;
    padding: 1px 0;
    width: 90%;
}

.a4-stamp-circle small {
    font-size: 6px;
    color: #262626;
}

.a4-footer-note {
    text-align: center;
    font-size: 9px;
    color: #525252;
    margin-top: 14px;
    border-top: 1px dashed #a3a3a3;
    padding-top: 6px;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }
    body * {
        visibility: hidden !important;
    }
    .auth-modal-overlay {
        background: transparent !important;
        position: static !important;
        display: block !important;
    }
    .monochrome-a4-doc, .monochrome-a4-doc * {
        visibility: visible !important;
    }
    .monochrome-a4-doc {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    .no-print, .auth-close-btn, .receipt-actions {
        display: none !important;
    }
}

/* =========================================================
   NAVBAR PROFILE DROPDOWN (Logged In State)
========================================================= */

.nav-profile-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
}

.nav-profile-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0a3663;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.15s ease, border-color 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.nav-profile-avatar-btn:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-profile-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
    animation: dropdownFadeIn 0.15s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-profile-container:hover .nav-profile-dropdown,
.nav-profile-container:focus-within .nav-profile-dropdown,
.nav-profile-dropdown.show {
    display: flex;
}

.nav-profile-user-info {
    padding: 6px 10px 10px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 4px;
}

.nav-profile-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.1px;
}

.nav-profile-email {
    font-size: 11.5px;
    font-weight: 400;
    color: #6b7280;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-profile-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.nav-profile-item {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 450;
    color: #374151;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.nav-profile-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-profile-item.logout {
    color: #e11d48;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
    margin-top: 4px;
}

.nav-profile-item.logout:hover {
    background: #fff1f2;
    color: #be123c;
}

/* =========================================================
   QUIXOTIC BLUE ADMIN DASHBOARD REDESIGN
========================================================= */

.admin-quixotic-body {
    background: #f1f4f9;
    min-height: 100vh;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    padding: 20px;
    margin: 0;
}

.admin-layout-wrapper {
    max-width: 1360px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    padding: 24px 32px 40px;
    border: 1px solid #e5e9f0;
}

/* Top App Header */
.admin-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.admin-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.admin-capsule-tabs {
    display: inline-flex;
    align-items: center;
    background: #f1f4f9;
    padding: 5px;
    border-radius: 999px;
    gap: 4px;
}

.admin-tab-link {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab-link.active {
    background: #ffffff;
    color: #0066ff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    font-weight: 700;
}

.admin-tab-link:hover:not(.active) {
    color: #0f172a;
}

.admin-header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-tool-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.admin-tool-icon-btn:hover {
    background: #f1f5f9;
    color: #0066ff;
}

.admin-notify-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #0066ff;
    border-radius: 50%;
}

.admin-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.admin-user-pill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-user-pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-pill-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Main Content with Left Dock */
.admin-body-layout {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 28px;
    align-items: start;
}

/* Left Icon Dock */
.admin-side-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 12px 8px;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.dock-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dock-icon-btn.active {
    background: #0066ff;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.dock-icon-btn:hover:not(.active) {
    background: #f1f5f9;
    color: #0066ff;
}

.dock-divider {
    width: 24px;
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Main Dashboard Column */
.admin-main-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Welcome Row */
.admin-welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-welcome-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

.admin-welcome-title span {
    font-weight: 500;
    color: #64748b;
}

.admin-welcome-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-date-picker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.admin-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    background: #0066ff;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35);
    transition: all 0.2s;
}

.admin-primary-btn:hover {
    background: #0052cc;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.45);
    transform: translateY(-1px);
}

/* Modern Card Grid */
.admin-grid-top {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 20px;
}

.admin-grid-bottom {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

/* Card Base */
.quixotic-card {
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
}

.quixotic-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.quixotic-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.quixotic-card-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0;
}

.quixotic-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.quixotic-card-arrow:hover {
    background: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
}

/* Blue Trust Credit Card */
.royal-trust-card {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    border-radius: 18px;
    padding: 20px;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 102, 255, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.royal-trust-card::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.royal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.royal-card-chip {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.royal-card-type {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.royal-card-balance {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 4px 0 14px;
}

.royal-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.9;
    font-family: monospace;
}

.card-metric-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
}

.metric-badge-blue {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #0066ff;
    border: 1px solid #bfdbfe;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* Pillar Bar Chart */
.quixotic-toggle-pill {
    display: inline-flex;
    background: #f1f4f9;
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.quixotic-toggle-btn {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.quixotic-toggle-btn.active {
    background: #0066ff;
    color: #ffffff;
}

.pillar-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 170px;
    padding: 10px 4px 0;
    gap: 8px;
}

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

.pillar-bar-track {
    width: 100%;
    max-width: 38px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.pillar-bar-fill {
    width: 100%;
    border-radius: 16px;
    background: #dbeafe;
    transition: height 0.8s ease, background 0.2s;
}

.pillar-bar-fill.highlight {
    background: #0066ff;
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4);
}

.pillar-peak-badge {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0066ff;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.pillar-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

/* Wave Line Chart Card */
.wave-big-total {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 4px 0 12px;
}

.wave-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.wave-action-btn-primary {
    flex: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0066ff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.wave-action-btn-secondary {
    flex: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

/* History Table Rows */
.history-row-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f8fafc;
    transition: background 0.15s;
}

.history-item-row:hover {
    background: #f1f5f9;
}

.history-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.history-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.history-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 1px 0 0;
}

.history-item-right {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.history-status-pill {
    font-size: 11px;
    font-weight: 600;
    color: #0066ff;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 999px;
}

.history-amount {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

/* Top Donors Avatar Stack */
.donors-avatar-stack {
    display: flex;
    align-items: center;
    margin-top: 14px;
}

.donor-stack-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -8px;
    object-fit: cover;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #0066ff;
}

.donor-stack-img:first-child {
    margin-left: 0;
}

.donor-stack-more {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0066ff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 2px solid #ffffff;
}

@media (max-width: 1024px) {
    .admin-grid-top {
        grid-template-columns: 1fr;
    }
    .admin-grid-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-quixotic-body {
        padding: 10px;
    }
    .admin-layout-wrapper {
        padding: 16px;
        border-radius: 20px;
    }
    .admin-body-layout {
        grid-template-columns: 1fr;
    }
    .admin-side-dock {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        justify-content: center;
    }
    .admin-capsule-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
}

