:root {
    --experience-navy: #102d4b;
    --experience-blue: #0758a1;
    --experience-orange: #ff821b;
}
.auth-experience {
    background: #edf4fa;
}
.auth-header {
    max-width: 1240px;
    margin: auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.auth-scene {
    max-width: 1180px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 70px #16355512;
}
.auth-card {
    padding: 48px;
}
.auth-card h1 {
    font-size: 36px;
    line-height: 1.2;
    margin: 12px 0;
}
.auth-card > p {
    color: #52657b;
}
.role-tabs {
    display: flex;
    background: #edf3f8;
    border-radius: 12px;
    padding: 5px;
    margin: 28px 0;
    gap: 4px;
}
.role-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    padding: 12px 5px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
}
.role-tabs a[aria-current] {
    background: #0758a1;
    color: white;
    box-shadow: 0 3px 10px #0758a125;
}
.role-tabs svg {
    width: 18px;
    height: 18px;
}
.auth-card label {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    font-weight: 600;
}
.auth-input {
    position: relative;
    display: block;
}
.auth-input > svg {
    position: absolute;
    left: 14px;
    top: 15px;
    width: 20px;
    color: #60748d;
}
.auth-input input {
    padding-left: 44px;
}
.auth-help {
    font-size: 14px;
    margin: 18px 0;
    color: #52657b;
}
.auth-help summary {
    cursor: pointer;
    color: #0758a1;
}
.auth-demo {
    border-top: 1px solid #e0e8f0;
    padding-top: 20px;
    margin-top: 24px;
    font-size: 13px;
    color: #52657b;
}
.auth-demo strong {
    font-size: 11px;
    letter-spacing: 1.6px;
}
.auth-demo p {
    margin: 8px 0;
}
.auth-message {
    background: radial-gradient(ellipse at 100% 100%, #177aba, transparent 65%), #102d4b;
    color: white;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.auth-emblem {
    background: white;
    border-radius: 20px;
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    padding: 8px;
}
.auth-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.auth-message .eyebrow {
    color: #aecce6;
    font-size: 11px;
}
.auth-message h2 {
    font-size: 52px;
    line-height: 1.13;
    color: white;
    margin: 20px 0;
}
.auth-message em {
    font-style: normal;
    color: #ff9a40;
}
.auth-message p {
    color: #d8e8f5;
    line-height: 1.7;
}
.auth-trust {
    display: flex;
    justify-content: center;
    gap: 42px;
    padding: 22px;
    color: #52657b;
    font-size: 13px;
}
.auth-trust span {
    display: flex;
    align-items: center;
    gap: 9px;
}
.auth-trust svg {
    width: 20px;
    height: 20px;
    color: #0758a1;
}
.public-access {
    text-align: center;
    padding: 15px 0;
}
.public-access .icon-tile {
    margin: auto;
}
.donor-app {
    background: #f4f7fb;
    color: #17304d;
}
.portal-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 244px;
    background: linear-gradient(160deg, #123a62, #10283f 72%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 28px 16px;
    z-index: 40;
}
.rail-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 4px 38px;
    font-size: 18px;
    font-weight: 750;
}
.rail-brand img {
    width: 51px;
    height: 51px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 3px;
}
.rail-brand b {
    color: #ff9a40;
}
.rail-brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 5px;
    color: #bdd2e6;
}
.portal-rail nav {
    display: grid;
    gap: 8px;
}
.portal-rail nav a {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 14px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 550;
    color: #e4edf6;
}
.portal-rail nav svg {
    width: 19px;
    height: 19px;
}
.portal-rail nav a:hover {
    background: #ffffff12;
}
.portal-rail nav a[aria-current] {
    background: #ff821b;
    color: #fff;
    box-shadow: 0 6px 18px #0002;
}
.rail-bottom {
    margin-top: auto;
}
.rail-bottom form {
    border-top: 1px solid #ffffff22;
    padding-top: 18px;
}
.rail-bottom .logout {
    color: white;
}
.rail-motto {
    text-align: center;
    font-size: 12px;
    color: #c0d4e5;
    padding-top: 18px;
    line-height: 1.5;
}
.rail-motto svg {
    width: 29px;
    height: 29px;
    color: #ff9a40;
}
.portal-workspace {
    margin-left: 244px;
}
.portal-topbar {
    height: 83px;
    background: #fff;
    border-bottom: 1px solid #e3eaf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    gap: 20px;
}
.topbar-account,
.topbar-account > a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.topbar-account .avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
}
.demo-pill {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 30px;
    background: #fff2e5;
    color: #96500d;
}
.portal-page {
    max-width: 1400px;
    margin: auto;
    padding: 36px 38px 48px;
    min-height: calc(100vh - 140px);
}
.portal-heading h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
}
.portal-heading p {
    font-size: 14px;
    color: #586e84;
}
.portal-foot {
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: #65768b;
}
.donor-app .donor-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 26px 0;
}
.donor-app .donor-stats article {
    padding: 22px 16px;
    gap: 12px;
    box-shadow: none;
    border: 1px solid #e5edf4;
    border-radius: 12px;
    background: white;
}
.donor-app .donor-stats strong {
    font-size: 25px;
}
.donor-app .donor-stats small {
    font-size: 12px;
}
.donor-app .donor-welcome {
    margin: 0 0 28px;
    border-radius: 14px;
    padding: 30px;
    background: linear-gradient(115deg, #123b63, #0878b4);
    min-height: 210px;
}
.donor-app .donor-welcome h2 {
    font-size: 30px;
}
.donor-app .panel {
    border: 1px solid #e3eaf2;
    box-shadow: 0 5px 18px #17304d04;
}
.donor-app table {
    font-size: 14px;
}
.donor-app th {
    background: #f0f5fa;
    color: #425c77;
}
.receipt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.receipt-tile {
    padding: 25px;
}
.receipt-tile > .tag {
    float: right;
}
.receipt-tile h2 {
    font-size: 18px;
    line-height: 1.5;
    margin: 22px 0 10px;
}
.receipt-amount {
    font-size: 28px;
    color: #0758a1;
}
.receipt-tile p,
.document-note {
    color: #64758a;
    font-size: 13px;
    line-height: 1.7;
}
.document-note {
    margin-top: 22px;
}
.detail-panel {
    max-width: 830px;
    padding: 30px;
}
.detail-project {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 25px 0;
}
.detail-project h2 {
    font-size: 22px;
}
.detail-project p {
    font-size: 14px;
    color: #60748d;
}
.detail-actions {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.settings-panel {
    padding: 28px;
    max-width: 820px;
    margin-bottom: 24px;
}
.settings-panel h2 {
    font-size: 21px;
}
.settings-panel > p {
    color: #60748d;
    font-size: 14px;
}
.preference-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #e5edf4;
    gap: 20px;
}
.preference-row small {
    display: block;
    margin-top: 6px;
    color: #60748d;
    font-weight: 400;
}
.preference-row input {
    width: 21px;
    height: 21px;
    accent-color: #0758a1;
}
.payment-methods {
    border: 0;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.payment-methods legend {
    font-weight: 700;
    margin-bottom: 14px;
}
.payment-methods label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
}
.payment-methods label:has(input:checked) {
    background: #edf6ff;
    border-color: #0758a1;
}
.payment-methods input {
    width: 18px;
    height: 18px;
    accent-color: #0758a1;
}
.status-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0 24px;
}
.status-tabs button {
    border: 1px solid #dbe4ef;
    border-radius: 25px;
    padding: 9px 18px;
    background: white;
    color: #3e5773;
    cursor: pointer;
}
.status-tabs button[aria-pressed='true'] {
    background: #0758a1;
    color: white;
    border-color: #0758a1;
}
@media (min-width: 901px) {
    .portal-topbar .menu-button {
        display: none;
    }
}
@media (max-width: 1150px) {
    .donor-app .donor-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .receipt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .portal-page {
        padding: 28px;
    }
    .auth-scene {
        margin: 20px;
    }
    .auth-card,
    .auth-message {
        padding: 32px;
    }
}
@media (max-width: 900px) {
    .portal-rail {
        transform: translateX(-100%);
        transition: transform 0.2s;
        top: 72px;
        width: 244px;
        box-shadow: 10px 0 35px #10283f25;
    }
    .portal-rail.is-open {
        transform: translateX(0);
    }
    .portal-workspace {
        margin-left: 0;
    }
    .portal-topbar {
        height: 72px;
        padding: 0 22px;
        position: sticky;
        top: 0;
        z-index: 50;
    }
    .portal-topbar .menu-button {
        display: flex;
    }
    .portal-topbar > .text-link {
        margin-right: auto;
    }
    .auth-message h2 {
        font-size: 42px;
    }
    .auth-trust {
        gap: 20px;
        flex-wrap: wrap;
    }
    .topbar-account .demo-pill {
        display: none;
    }
}
@media (max-width: 620px) {
    .auth-header {
        padding: 15px;
    }
    .auth-header > .text-link {
        font-size: 12px;
    }
    .auth-header .site-brand {
        font-size: 17px;
    }
    .auth-scene {
        display: block;
        margin: 12px;
        border-radius: 16px;
    }
    .auth-card {
        padding: 26px 20px;
    }
    .auth-card h1 {
        font-size: 29px;
    }
    .auth-message {
        padding: 28px;
    }
    .auth-message h2 {
        font-size: 32px;
    }
    .auth-emblem {
        width: 100px;
        height: 100px;
        margin-bottom: 18px;
    }
    .auth-message h2 br {
        display: none;
    }
    .auth-message h2 em {
        display: block;
    }
    .auth-trust {
        padding: 16px;
        font-size: 11px;
        gap: 14px;
    }
    .portal-page {
        padding: 25px 16px;
    }
    .portal-heading h1 {
        font-size: 28px;
    }
    .portal-topbar {
        gap: 12px;
        padding: 0 16px;
    }
    .topbar-account strong {
        display: none;
    }
    .portal-topbar > .text-link {
        font-size: 13px;
    }
    .donor-app .donor-stats {
        gap: 10px;
    }
    .donor-app .donor-stats article {
        padding: 15px 12px;
        display: block;
    }
    .donor-app .donor-stats .icon-tile {
        margin-bottom: 12px;
        width: 36px;
        height: 36px;
    }
    .donor-app .donor-stats strong {
        font-size: 23px;
    }
    .receipt-grid {
        grid-template-columns: 1fr;
    }
    .detail-panel,
    .settings-panel {
        padding: 20px;
    }
    .detail-project {
        align-items: flex-start;
    }
    .detail-project h2 {
        font-size: 18px;
    }
    .payment-methods {
        gap: 8px;
    }
    .payment-methods label {
        padding: 12px;
    }
    .rail-motto {
        padding-top: 8px;
    }
    .donor-app .donor-welcome {
        padding: 24px;
    }
    .donor-app .donor-welcome h2 {
        font-size: 26px;
    }
}
@media print {
    .portal-rail,
    .portal-topbar,
    .portal-foot {
        display: none !important;
    }
    .portal-workspace {
        margin: 0;
    }
    .portal-page {
        padding: 0;
    }
    .donor-app {
        background: white;
    }
}

.rail-bottom .logout {
    background: transparent;
    border: 0;
    width: 100%;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}
.rail-bottom .logout:hover {
    background: #ffffff12;
}
.rail-bottom .logout svg {
    width: 19px;
    height: 19px;
}
.rail-motto p {
    color: #c0d4e5;
}
.donor-app td:last-child .text-link {
    display: flex;
    margin: 4px 0;
}
.settings-panel label:not(.preference-row) {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}
.project-directory {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
}
.category-rail {
    align-self: start;
    background: #f3f7fb;
    border: 1px solid #e2eaf2;
    border-radius: 12px;
    padding: 20px 14px;
}
.category-rail h2 {
    font-size: 16px;
    padding: 0 10px 16px;
}
.category-rail > button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #405a75;
    padding: 13px 10px;
    text-align: left;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
}
.category-rail > button[aria-pressed='true'] {
    background: #0758a1;
    color: white;
}
.category-message {
    margin-top: 28px;
    padding: 15px 10px;
    color: #0758a1;
}
.category-message svg {
    width: 30px;
    height: 30px;
    display: block;
    margin-bottom: 14px;
    color: #ee7f1a;
}
.category-message strong {
    font-size: 21px;
}
.category-message p {
    font-size: 13px;
    color: #60748d;
}
.directory-content .cause-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.directory-content .filter-bar {
    flex-wrap: wrap;
}
.directory-content .filter-bar select {
    max-width: 220px;
}
@media (max-width: 900px) {
    .project-directory {
        grid-template-columns: 1fr;
    }
    .category-rail {
        display: none;
    }
}
@media (max-width: 620px) {
    .directory-content .cause-grid {
        grid-template-columns: 1fr;
    }
}

.portal-rail {
    overflow-y: auto;
}
.rail-bottom {
    padding-top: 20px;
}
.donor-app .art-words {
    z-index: 1;
}
.donor-app .art-icon {
    opacity: 0.4;
}
@media (max-width: 620px) {
    .donor-app .art-icon {
        opacity: 0.2;
    }
}

.cause-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 40%}.cause-art:has(.cause-photo) .art-orbit,.cause-art:has(.cause-photo) .art-icon,.cause-art:has(.cause-photo) .art-words{display:none}.cause-art:has(.cause-photo) .art-badge{z-index:1}

.password-change-form{display:grid;gap:18px;max-width:560px}.password-change-form label{display:grid;gap:8px}.password-change-form input{width:100%;padding:12px;border:1px solid #cdd9e6;border-radius:8px}

/* Shared Athulyam Vidur reference palette: blue workspace, orange actions. */
.donor-app .portal-rail{background:linear-gradient(180deg,#075ba4 0%,#075ba4 74%,#064d8c 100%)}
.donor-app .rail-brand{padding-bottom:18px;border-bottom:1px solid #ffffff26}
.donor-app .rail-brand img{background:#fff;border-radius:8px;padding:3px}
.donor-app .portal-rail nav a{border-radius:5px;margin:3px 10px;padding:11px 12px}
.donor-app .portal-rail nav a[aria-current]{background:#ff881b;border-radius:5px;box-shadow:inset 0 0 0 1px #ffac53,0 4px 10px #00315c35}
.donor-app .portal-topbar{min-height:64px}
.donor-app .portal-page{background:#f5f9fe}
.donor-app .donor-welcome{background:linear-gradient(115deg,#075ba4,#0b78ba)}
.auth-experience{background:linear-gradient(135deg,#eef7ff 0%,#f8fbff 52%,#fff7ed 100%)}
.auth-experience .auth-card{border:1px solid #dce9f5;box-shadow:0 22px 65px #074d8d18}
.auth-experience .auth-message{background:linear-gradient(145deg,#075ba4,#064b86)}
.auth-experience .role-tabs a[aria-current]{background:#075ba4;box-shadow:inset 0 -3px 0 #ff881b}
.role-user .public-access{border:1px solid #dce9f5;background:linear-gradient(135deg,#f4f9ff,#fffaf4);border-radius:10px;padding:22px}
.role-user .public-access .icon-tile{background:#e8f3ff;color:#075ba4}
.user-app .portal-rail{background:linear-gradient(180deg,#075ba4 0%,#075ba4 74%,#064d8c 100%)}
.user-welcome{margin-top:26px}
.user-account-card{display:flex;align-items:center;gap:18px;padding:24px;margin:26px 0;border:1px solid #dce9f5;border-radius:12px;background:#fff;box-shadow:0 5px 18px #17304d08}
.user-account-card h2{margin:0 0 5px;color:#123b63;font-size:20px}.user-account-card p{margin:0;color:#526e88}.user-account-card small{display:block;margin-top:8px;color:#ff821b;font-weight:700}
