/* ============================================================================
   SINGLE DONATION PAGE — premium (Frontend Phase 8). Loaded on the Site engine.
   Uses the --sp-* palette from site.css. Scoped to .donate-* — no side effects.
   ============================================================================ */
.donate-hero { position: relative; color: #fff; padding: clamp(3rem, 7vw, 5rem) 0 clamp(4.5rem, 9vw, 6.5rem); background: var(--sp-gradient); isolation: isolate; overflow: hidden; }
.donate-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cover) center/cover no-repeat; opacity: .22; }
.donate-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(30, 20, 12, .92) 0%, rgba(30, 20, 12, .55) 70%); }
.donate-hero__inner { position: relative; max-width: 780px; }
.donate-hero__crumb { margin-bottom: 14px; padding: 0; background: transparent; }
.donate-hero__crumb, .donate-hero__crumb a { color: rgba(255, 255, 255, .82); }
.donate-hero__crumb .breadcrumb-item.active { color: #fff; }
.donate-hero__cat { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.donate-hero :is(h1, h2, h3), .donate-hero .donate-hero__title { color: #fff; }
.donate-hero .donate-hero__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.donate-hero__lead { color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 1.6vw, 1.2rem); margin: 14px 0 0; max-width: 62ch; }

.donate-body { margin-top: clamp(-3.5rem, -5vw, -4.5rem); position: relative; z-index: 2; padding-top: 0 !important; padding-bottom: clamp(3rem, 6vw, 5rem) !important; }
.donate-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
.donate-story { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); overflow: hidden; }
.donate-cover { aspect-ratio: 16/8; overflow: hidden; }
.donate-cover img { width: 100%; height: 100%; object-fit: cover; }
.donate-story > :not(.donate-cover) { margin-inline: clamp(1.25rem, 3vw, 2rem); }
.donate-impact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.donate-impact__item { display: inline-flex; align-items: center; gap: 6px; background: #E7F6EC; color: #166534; font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: 999px; }
.donate-desc { margin-top: 20px; font-size: 1.02rem; line-height: 1.75; color: var(--sp-body); }
.donate-share { display: flex; align-items: center; gap: 10px; margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--sp-line); }
.donate-share > span { font-weight: 700; color: var(--sp-ink); font-size: .9rem; margin-right: 4px; }
.donate-share__btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; transition: transform .2s var(--sp-ease); }
.donate-share__btn:hover { transform: translateY(-3px); color: #fff; }
.donate-share__btn.wa { background: #25D366; } .donate-share__btn.fb { background: #1877F2; } .donate-share__btn.tw { background: #111; }
.donate-recent__title { font-size: 1.1rem; font-weight: 800; color: var(--sp-ink); margin: 8px 0 6px; }
.donate-recent { list-style: none; padding: 0; margin: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem); }
.donate-recent li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--sp-line); font-size: .92rem; }
.donate-recent li i { color: var(--sp-saffron); }

.donate-aside { position: sticky; top: 88px; }
.donate-box { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 1px solid var(--sp-line); }
.donate-progress { height: 10px; border-radius: 999px; background: var(--sp-line); overflow: hidden; }
.donate-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sp-primary), var(--sp-teal)); }
.donate-stats { display: flex; justify-content: space-between; gap: 8px; margin: 14px 0 18px; }
.donate-stats b { display: block; font-size: 1.2rem; font-weight: 800; color: var(--sp-primary); line-height: 1; }
.donate-stats span { font-size: .7rem; color: var(--sp-muted); }
.donate-stats__pct { text-align: center; } .donate-stats__end { text-align: right; }
.donate-label { display: block; font-weight: 700; font-size: .85rem; color: var(--sp-ink); margin: 6px 0 8px; }
.donate-cur { display: flex; gap: 6px; background: #F1F5FA; border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.donate-cur__btn { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 9px; font-weight: 700; color: var(--sp-muted); cursor: pointer; transition: all .2s var(--sp-ease); }
.donate-cur__btn.is-active { background: #fff; color: var(--sp-primary); box-shadow: 0 2px 8px -2px rgba(30, 20, 12, .28); }
.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.donate-amount { border: 1.5px solid var(--sp-line); background: #fff; border-radius: 12px; padding: 12px 4px; font-weight: 700; color: var(--sp-ink); cursor: pointer; transition: all .2s var(--sp-ease); }
.donate-amount:hover { border-color: var(--sp-primary); color: var(--sp-primary); }
.donate-amount.is-active { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }
.donate-custom { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--sp-line); border-radius: 12px; padding: 2px 14px; }
.donate-custom:focus-within { border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(30, 20, 12, .12); }
.donate-custom__sym { font-weight: 800; color: var(--sp-primary); font-size: 1.15rem; }
.donate-custom input { flex: 1; border: 0; outline: 0; font-size: 1.35rem; font-weight: 700; color: var(--sp-ink); padding: 11px 0; background: transparent; }
.donate-equiv { color: var(--sp-muted); font-size: .85rem; margin: 7px 2px 14px; min-height: 1em; }
.donate-freq { display: flex; gap: 8px; margin-bottom: 14px; }
.donate-freq label { flex: 1; text-align: center; border: 1.5px solid var(--sp-line); border-radius: 10px; padding: 9px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--sp-ink); transition: all .2s var(--sp-ease); }
.donate-freq input { display: none; }
.donate-freq label:has(input:checked) { border-color: var(--sp-primary); background: #EAF3FA; color: var(--sp-primary); }
.donate-fields { display: flex; flex-direction: column; gap: 10px; }
.donate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.donate-input { width: 100%; border: 1.5px solid var(--sp-line); border-radius: 12px; padding: 11px 14px; font-size: .92rem; color: var(--sp-ink); background: #fff; }
.donate-input:focus { outline: 0; border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(30, 20, 12, .12); }
.donate-more { margin: 14px 0; }
.donate-more summary { cursor: pointer; font-size: .85rem; color: var(--sp-primary); font-weight: 600; }
.donate-anon { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--sp-muted); margin: 12px 0; }
.donate-submit { margin-top: 6px; }
.donate-warn { background: #FFF6E5; color: #8F6100; border-radius: 12px; padding: 12px; font-size: .88rem; margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.donate-trust { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sp-line); }
.donate-trust span { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--sp-muted); font-weight: 600; }
.donate-trust i { color: var(--sp-success); }
.donate-note { text-align: center; font-size: .74rem; color: var(--sp-muted); margin: 10px 0 0; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } .donate-aside { position: static; } }

.donate-rate { font-size: .74rem; color: var(--sp-muted); margin: -8px 2px 14px; display: flex; align-items: center; gap: 5px; }
.donate-rate i { color: var(--sp-success); }

/* ================================================= DONATE LISTING (campaigns) */
.donate-list-hero { background: var(--sp-gradient); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.donate-list-hero__eyebrow { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 5px 15px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.donate-list-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.donate-list-hero p { color: rgba(255,255,255,.9); margin: 12px 0 0; max-width: 64ch; font-size: clamp(1rem,1.5vw,1.15rem); }
.donate-list { padding-bottom: clamp(3rem, 6vw, 5rem); }

.donate-filter { display: flex; gap: 12px; background: #fff; border: 1px solid var(--sp-line); border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(16,30,54,.05); margin-bottom: 28px; flex-wrap: wrap; align-items: center; }
.donate-filter__search { flex: 3; min-width: 220px; }
.donate-filter__select { flex: 1; min-width: 170px; }
.donate-filter input, .donate-filter select { border: 1.5px solid var(--sp-line); border-radius: 999px; padding: 11px 18px; font-size: .95rem; color: var(--sp-ink); background: #fff; }
.donate-filter input:focus, .donate-filter select:focus { outline: 0; border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(198,31,38,.12); }
.donate-filter .ssrf-btn { flex: 0 0 auto; padding: 11px 26px; }

.camp-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--sp-line); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,30,54,.06); transition: transform .4s var(--sp-ease), box-shadow .4s var(--sp-ease), border-color .4s; }
.camp-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow); border-color: transparent; }
.camp-card__media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--sp-gradient); }
.camp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sp-ease); }
.camp-card:hover .camp-card__media img { transform: scale(1.06); }
.camp-card__urgent { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; background: var(--sp-saffron); color: #3b2400; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(245,158,11,.6); }
.camp-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.camp-card__type { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-teal-700); }
.camp-card__title { font-size: 1.2rem; font-weight: 800; margin: 0; line-height: 1.25; letter-spacing: -.01em; }
.camp-card__title a { color: var(--sp-ink); text-decoration: none; }
.camp-card__title a:hover { color: var(--sp-primary); }
.camp-card__text { color: var(--sp-muted); font-size: .9rem; line-height: 1.5; margin: 0; }
.camp-card__progress { height: 8px; border-radius: 999px; background: var(--sp-line); overflow: hidden; margin-top: 6px; }
.camp-card__progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sp-primary), var(--sp-teal)); }
.camp-card__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--sp-muted); }
.camp-card__meta b { color: var(--sp-ink); }
.camp-card__cta { margin-top: 12px; }

.donate-empty { text-align: center; padding: clamp(3rem, 8vw, 5rem) 1rem; color: var(--sp-muted); }
.donate-empty i { font-size: 2.5rem; color: var(--sp-primary); }
.donate-empty h2 { font-weight: 800; color: var(--sp-ink); margin: 12px 0 4px; }
@media (max-width: 640px) { .donate-filter { flex-direction: column; align-items: stretch; } .donate-filter .ssrf-btn { width: 100%; justify-content: center; } }

/* ---------------------------------------------- NEFT / BANK TRANSFER POPUP */
.donate-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--sp-muted); font-size: .82rem; }
.donate-or::before, .donate-or::after { content: ""; flex: 1; height: 1px; background: var(--sp-line); }
.donate-bank-btn { gap: 8px; }
.neft-modal { border: 0; border-radius: 18px; overflow: hidden; }
.neft-modal .modal-header { background: var(--sp-gradient); color: #fff; border: 0; }
.neft-modal .modal-header .modal-title { color: #fff; }
.neft-modal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.neft-intro { color: var(--sp-muted); font-size: .92rem; line-height: 1.6; margin: 0 0 16px; }
.neft-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.neft-bank { border: 1px solid var(--sp-line); border-radius: 14px; overflow: hidden; background: #fff; }
.neft-bank__head { background: #FFF4E6; color: var(--sp-ink); font-weight: 800; font-size: .98rem; padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.neft-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--sp-line); }
.neft-row__k { flex: 0 0 82px; color: var(--sp-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.neft-row__v { flex: 1; min-width: 0; color: var(--sp-ink); font-weight: 600; font-size: .95rem; word-break: break-word; font-variant-numeric: tabular-nums; }
.neft-copy { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--sp-line); background: #fff; border-radius: 9px; color: var(--sp-primary); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.neft-copy:hover { background: var(--sp-primary); color: #fff; border-color: transparent; }
.neft-copy.is-copied { background: var(--sp-success); color: #fff; border-color: transparent; }
@media (max-width: 560px) { .neft-banks { grid-template-columns: 1fr; } }
.neft-empty { display: flex; gap: 10px; align-items: flex-start; color: var(--sp-body); background: #FFF4E6; border: 1px solid var(--sp-line); border-radius: 12px; padding: 14px 16px; font-size: .95rem; line-height: 1.6; }
.neft-empty i { color: var(--sp-saffron); margin-top: 2px; }

/* ---------------------------------------------- COUNTRY-DRIVEN DONATE FORM */
.donate-geo { display: flex; gap: 10px; margin-bottom: 16px; }
.donate-geo #donateCountry { flex: 1; }
.donate-geo #curPicker { flex: 0 0 130px; }
.donate-fcra-note { margin: 10px 0 0; font-size: .85rem; color: var(--sp-muted); line-height: 1.55; display: flex; gap: 8px; align-items: flex-start; }
.donate-fcra-note i { color: var(--sp-primary); margin-top: 2px; }

/* ---------------------------------------------- SEARCHABLE COUNTRY COMBOBOX */
.donate-geo .ssrf-combo { flex: 1; min-width: 0; }
.ssrf-combo { position: relative; }
.ssrf-combo__control { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; background: #fff; font-size: .92rem; color: var(--sp-ink); }
.ssrf-combo__control:focus { outline: 0; border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(30, 20, 12, .12); }
.ssrf-combo__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssrf-combo__control .bi-chevron-down { color: var(--sp-muted); font-size: .78rem; transition: transform .2s var(--sp-ease); }
.ssrf-combo.is-open .ssrf-combo__control .bi-chevron-down { transform: rotate(180deg); }
.ssrf-combo__panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--sp-line); border-radius: 12px; box-shadow: var(--sp-shadow); overflow: hidden; display: none; }
.ssrf-combo.is-open .ssrf-combo__panel { display: block; }
.ssrf-combo__searchwrap { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--sp-line); color: var(--sp-muted); }
.ssrf-combo__search { flex: 1; border: 0; outline: 0; background: transparent; font-size: .92rem; color: var(--sp-ink); }
.ssrf-combo__list { list-style: none; margin: 0; padding: 6px; max-height: 210px; overflow-y: auto; } /* ~5 rows, rest scroll */
.ssrf-combo__opt { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: .92rem; color: var(--sp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssrf-combo__opt:hover, .ssrf-combo__opt.is-active { background: #FFF4E6; }
.ssrf-combo__opt.is-selected { color: var(--sp-primary); font-weight: 700; }
.ssrf-combo__empty { padding: 14px; text-align: center; color: var(--sp-muted); font-size: .9rem; }
.ssrf-combo__list::-webkit-scrollbar { width: 8px; }
.ssrf-combo__list::-webkit-scrollbar-thumb { background: var(--sp-line); border-radius: 8px; }

/* ---------------------------------------------- LIVE campaign progress / viewers */
.donate-progress span { transition: width .8s var(--sp-ease); }
.donate-viewing { display: inline-flex; align-items: center; gap: 7px; font-size: .77rem; font-weight: 700; color: #167C3B; background: #E7F6EC; border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.donate-viewing__dot { width: 8px; height: 8px; border-radius: 50%; background: #21A366; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(33, 163, 102, .5); } 50% { box-shadow: 0 0 0 6px rgba(33, 163, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .donate-viewing__dot { animation: none; } .donate-progress span { transition: none; } }

/* ---------------------------------------------- SUCCESS CELEBRATION + SHARE */
.donate-celebrate__mark { width: 84px; height: 84px; border-radius: 50%; background: #21A366; color: #fff; display: inline-grid; place-items: center; font-size: 2.6rem; box-shadow: 0 16px 40px -12px rgba(33, 163, 102, .6); animation: markPop .6s var(--sp-ease) both; }
@keyframes markPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.donate-share-card { margin-top: 26px; background: #FFF4E6; border: 1px solid var(--sp-line); border-radius: 16px; padding: 20px; text-align: center; }
.donate-share-card__title { font-weight: 800; color: var(--sp-ink); margin: 0 0 14px; font-size: 1rem; }
.donate-share-card__title i { color: var(--sp-saffron); }
.donate-share-card__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.donate-sharebtn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; text-decoration: none; border: 0; cursor: pointer; color: #fff; transition: transform .2s var(--sp-ease); }
.donate-sharebtn:hover { transform: translateY(-2px); color: #fff; }
.donate-sharebtn.wa { background: #25D366; } .donate-sharebtn.fb { background: #1877F2; } .donate-sharebtn.tw { background: #111; }
.donate-sharebtn.copy { background: var(--sp-primary); } .donate-sharebtn.is-copied { background: #21A366; }
@media (prefers-reduced-motion: reduce) { .donate-celebrate__mark { animation: none; } }

/* ---------------------------------------------- IMPACT CALCULATOR line */
.donate-impact-calc { display: none; align-items: center; gap: 7px; font-size: .88rem; font-weight: 700; color: #167C3B; background: #E7F6EC; border-radius: 10px; padding: 8px 12px; margin: 8px 0 10px; }
.donate-impact-calc::before { content: "\F415"; font-family: "bootstrap-icons"; color: #21A366; }
