.donor-page { min-height: 100vh; background: #f7f3f1; }
.donor-page [hidden] { display: none !important; }
.donor-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.donor-topbar { height: 76px; padding: 0 clamp(24px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; }
.donor-brand img { width: 27px; height: 47px; }
.donor-back { color: var(--text); font-size: .84rem; font-weight: 600; }
.login-view { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: clamp(60px, 10vw, 150px); align-items: center; max-width: 1080px; margin: auto; padding: 50px 32px 100px; }
.login-intro { max-width: 520px; }
.login-intro h1 { font-size: clamp(2.7rem, 5.5vw, 4.8rem); letter-spacing: -.045em; line-height: 1.04; margin: 0 0 24px; }
.login-intro > p:not(.eyebrow) { max-width: 480px; font-size: 1.05rem; color: #66627a; }
.login-mark { width: 52px; height: 52px; display: grid; place-items: center; color: var(--red); background: #f4e3e3; border-radius: 50%; margin-bottom: 28px; }
.login-mark svg { width: 25px; }
.login-benefits { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; color: var(--navy); font-size: .9rem; font-weight: 600; }
.login-benefits span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border-radius: 50%; background: #e8f3eb; color: #34704a; font-size: .7rem; }
.login-card { background: #fff; border-radius: 22px; padding: clamp(30px, 5vw, 50px); box-shadow: 0 20px 55px rgba(45,42,74,.11); }
.login-card h2 { font-size: 1.75rem; margin-top: 18px; }
.login-card > div > p { font-size: .9rem; color: var(--muted); }
.secure-label { display: inline-flex; gap: 7px; align-items: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: #417653; }
.secure-label svg { width: 17px; }
.login-card label, .profile-card label { display: block; margin: 25px 0 7px; font-size: .8rem; font-weight: 600; color: var(--navy); }
.login-card input, .profile-card input { width: 100%; border: 1px solid #dedbe3; border-radius: 10px; padding: 13px 14px; font: inherit; font-size: .9rem; color: var(--navy); background: white; outline: none; }
.login-card input:focus, .profile-card input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(165,29,50,.09); }
.donor-submit { width: 100%; border: 0; cursor: pointer; margin-top: 15px; display: flex; align-items: center; justify-content: space-between; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0 !important; font-size: .72rem !important; }
.privacy-note svg { width: 17px; color: #578268; }
.login-sent { text-align: center; }
.login-sent .sent-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 20px; background: #e8f3eb; color: #34704a; border-radius: 50%; font-weight: 700; }
.login-sent .text-button { display: block; margin: 18px auto 8px; }
.login-sent small { color: var(--muted); font-size: .68rem; }
.text-button { appearance: none; border: 0; background: none; color: var(--red); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }

.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
.dashboard-sidebar { position: sticky; top: 0; height: 100vh; background: #fff; padding: 30px 22px; display: flex; flex-direction: column; border-right: 1px solid #ece9ee; }
.dashboard-sidebar .brand { padding: 0 10px 42px; }
.dashboard-sidebar nav { display: grid; gap: 7px; }
.dash-nav { border: 0; background: transparent; color: #716e80; border-radius: 9px; padding: 11px 12px; display: flex; gap: 11px; align-items: center; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; text-align: left; }
.dash-nav svg { width: 19px; height: 19px; }
.dash-nav:hover, .dash-nav.active { background: #f8eeee; color: var(--red); }
.dash-nav-donate { color: var(--red); }
.dashboard-donate-button { border: 0; cursor: pointer; white-space: nowrap; }
.logout-button { margin-top: auto; }
.dashboard-content { min-width: 0; padding: 68px clamp(28px, 6vw, 90px); }
.dash-panel { max-width: 1030px; margin: auto; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 36px; }
.dashboard-heading .eyebrow { margin: 0 0 7px; }
.dashboard-heading h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 8px; }
.dashboard-heading p:last-child { color: var(--muted); margin: 0; }
.summary-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.summary-card { position: relative; min-height: 166px; padding: 25px; border: 1px solid #e7e3e8; background: #fff; border-radius: 15px; display: flex; flex-direction: column; }
.summary-card > span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.summary-card strong { display: block; color: var(--navy); font-size: 1.75rem; letter-spacing: -.03em; margin-top: auto; }
.summary-card small { color: var(--muted); font-size: .72rem; }
.summary-card.primary { background: var(--navy); border-color: var(--navy); overflow: hidden; }
.summary-card.primary span, .summary-card.primary small { color: #c9c6d8; }
.summary-card.primary strong { color: white; font-size: 2rem; }
.summary-card.primary > svg { position: absolute; width: 92px; height: 92px; right: -20px; bottom: -17px; color: rgba(255,255,255,.08); stroke-width: 1.3; }
.status-live { color: #34704a !important; }.status-live i { display: inline-block; width: 6px; height: 6px; background: #4f9d6a; border-radius: 50%; margin-right: 5px; }
.impact-card { display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; min-height: 275px; margin: 20px 0 42px; border-radius: 17px; background: #eadfd9; }
.impact-card > div { padding: 37px; align-self: center; }.impact-card h2 { font-size: 1.75rem; }.impact-card p:not(.eyebrow) { max-width: 570px; font-size: .9rem; }.impact-card a { font-size: .82rem; font-weight: 700; }.impact-card img { width: 100%; height: 100%; min-height: 275px; object-fit: cover; }
.section-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }.section-row h2 { font-size: 1.2rem; margin: 0; }
.donation-list { background: #fff; border: 1px solid #e7e3e8; border-radius: 15px; overflow: hidden; }
.donation-row { display: grid; grid-template-columns: 42px 1fr auto 96px; align-items: center; gap: 14px; padding: 18px 21px; border-bottom: 1px solid #eeebef; }.donation-row:last-child { border-bottom: 0; }.donation-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--red); background: #f8eeee; font-size: .8rem; }.donation-row strong { display: block; color: var(--navy); font-size: .84rem; }.donation-row small { display: block; color: var(--muted); font-size: .7rem; }.donation-row b { color: var(--navy); font-size: .85rem; }.paid-badge { color: #34704a; background: #edf7f0; border-radius: 99px; padding: 4px 9px; font-size: .65rem; font-weight: 700; text-align: center; }
.profile-card { max-width: 720px; background: #fff; border: 1px solid #e7e3e8; border-radius: 15px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }.profile-card label { margin-top: 0; }.profile-card > div { margin-bottom: 21px; }.profile-card > div:nth-child(n+3) { grid-column: 1 / -1; }.profile-card input[readonly] { background: #f6f5f6; color: var(--muted); }.profile-card .btn { border: 0; cursor: pointer; justify-self: start; }
.profile-actions { display: flex; align-items: center; gap: 15px; grid-column: 1 / -1; margin-top: 5px; }
.profile-actions .btn { min-width: 150px; text-align: center; transition: background-color .2s ease, transform .1s ease; }
.profile-actions .btn.saved { background: #34704a !important; }
.save-status { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: #2e6943; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.save-status.show { opacity: 1; transform: translateY(0); }
.save-status-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #e7f5ec; color: #2e6943; font-size: .75rem; font-weight: bold; }
.autocomplete-wrap { position: relative; width: 100%; }
.autocomplete-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #dedbe3; border-radius: 10px; box-shadow: 0 10px 25px rgba(45,42,74,.12); list-style: none; margin: 0; padding: 6px 0; max-height: 220px; overflow-y: auto; z-index: 50; }
.autocomplete-list li { padding: 9px 14px; font-size: .85rem; color: var(--navy); cursor: pointer; transition: background .15s ease; }
.autocomplete-list li:hover, .autocomplete-list li.active { background: #f8eeee; color: var(--red); }
.give-heading { margin-bottom: 22px; }
.give-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.give-controls label { color: var(--navy); font-size: .78rem; font-weight: 700; }
.give-controls select { min-width: 280px; border: 1px solid #dedbe3; border-radius: 9px; padding: 10px 34px 10px 12px; background: white; color: var(--navy); font: inherit; font-size: .78rem; }
.give-frequency { display: flex; padding: 4px; margin-left: auto; background: #eee4e1; border-radius: 99px; }
.give-frequency button { border: 0; border-radius: 99px; padding: 8px 16px; background: transparent; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.give-frequency button.active { color: white; background: var(--red); }
.give-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.give-card { min-width: 0; overflow: hidden; border: 1px solid #e7e3e8; border-radius: 14px; background: white; display: flex; flex-direction: column; }
.give-icon { height: 78px; display: grid; place-items: center; background: #f8eeee; color: var(--red); font-size: 1.75rem; }
.give-icon.navy { color: var(--navy); }
.give-card > div { flex: 1; display: flex; flex-direction: column; padding: 18px 16px; }
.give-card h2 { font-size: 1.25rem; margin: 0 0 6px; }
.give-card p { flex: 1; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.give-card small { display: none; color: var(--muted); font-size: .63rem; margin-bottom: 8px; }
.give-card .btn { padding: .68em .6em; text-align: center; font-size: .72rem; }
.give-per-month { display: none; color: var(--muted); font-size: .65rem; font-style: normal; }
#panel-give.monthly .give-per-month { display: inline; }
#panel-give.monthly .give-grid { grid-template-columns: repeat(3, 1fr); }
#panel-give.monthly .give-card.unavailable { display: none; }
.give-alternatives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.give-alternatives article, .give-alternatives a { display: flex; flex-direction: column; padding: 15px 17px; border: 1px solid #e7e3e8; border-radius: 12px; background: white; color: var(--navy); }
.give-alternatives span { color: var(--muted); font-size: .68rem; }
.give-alternatives strong { font-size: .85rem; }
.give-alternatives small { color: var(--muted); font-size: .62rem; }
.mobile-dashbar, .mobile-dashnav { display: none; }

@media (max-width: 800px) {
  .login-view { grid-template-columns: 1fr; gap: 40px; max-width: 600px; padding-top: 35px; }.login-intro h1 { font-size: 2.8rem; }.login-benefits { display: none; }
  .dashboard-shell { display: block; }.dashboard-sidebar { display: none; }.dashboard-content { padding: 0 18px 50px; }.mobile-dashbar { display: flex; justify-content: space-between; margin: 0 -18px; padding: 18px; background: white; font-size: .85rem; font-weight: 700; }.mobile-dashbar button { border: 0; background: none; color: var(--red); font-weight: 600; }.mobile-dashnav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 -18px 32px; padding: 0 12px 12px; background: white; border-bottom: 1px solid #ece9ee; }.mobile-dashnav .dash-nav { justify-content: center; padding: 8px 5px; font-size: .72rem; }.dashboard-heading { align-items: flex-start; flex-direction: column; }.summary-grid { grid-template-columns: 1fr 1fr; }.summary-card.primary { grid-column: 1/-1; }.impact-card { grid-template-columns: 1fr; }.impact-card img { height: 220px; min-height: 0; }.donation-row { grid-template-columns: 38px 1fr auto; }.paid-badge { display: none; }
}
@media (max-width: 500px) {
  .donor-topbar { padding: 0 18px; }.login-view { padding: 25px 18px 60px; }.login-intro h1 { font-size: 2.35rem; }.login-card { padding: 28px 22px; }.summary-grid { grid-template-columns: 1fr; }.summary-card.primary { grid-column: auto; }.impact-card > div { padding: 28px 24px; }.profile-card { grid-template-columns: 1fr; padding: 22px; }.profile-card > div { grid-column: 1 !important; }.donation-row { padding: 15px 14px; gap: 10px; }.donation-row small { max-width: 170px; }.dashboard-heading .btn { width: 100%; text-align: center; }
}

@media (max-width: 800px) {
  .mobile-dashnav { grid-template-columns: repeat(4, 1fr); gap: 4px; padding-left: 8px; padding-right: 8px; }
  .mobile-dashnav .dash-nav { padding: 8px 3px; font-size: .68rem; }
  .give-controls { align-items: stretch; flex-direction: column; }
  .give-controls select { width: 100%; min-width: 0; }
  .give-frequency { width: 100%; margin: 2px 0 0; }
  .give-frequency button { flex: 1; }
  .give-grid { grid-template-columns: 1fr 1fr; }
  .give-alternatives { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .give-grid { grid-template-columns: 1fr; }
  .give-card { display: grid; grid-template-columns: 72px 1fr; }
  .give-icon { height: 100%; min-height: 150px; }
  .give-card > div { padding: 15px; }
}
