:root {
  --primary: #ec5c95;
  --primary-dark: #c94476;
  --primary-soft: #fff1f7;
  --primary-lighter: #fff8fb;

  --text: #262126;
  --muted: #756b72;
  --light-muted: #9b9097;

  --bg: #fffafb;
  --white: #ffffff;
  --border: #f0dfe7;
  --border-strong: #efbdd1;

  --shadow-sm: 0 8px 20px rgba(38, 28, 34, 0.045);
  --shadow-md: 0 16px 38px rgba(38, 28, 34, 0.07);
  --shadow-lg: 0 26px 70px rgba(38, 28, 34, 0.16);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
}

/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.donate-main {
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.d-none {
  display: none !important;
}

/* LOGIN REQUIRED BANNER */
.donate-main > .login-required-banner {
  width: min(1360px, calc(100% - 80px));
  margin: 22px auto 24px;
  display: flex !important;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 30px 16px 26px;
  background:
    radial-gradient(circle at 4% 50%, rgba(255, 213, 228, 0.9), transparent 58%),
    linear-gradient(90deg, #fff1f7 0%, #fffafd 100%);
  border: 1px solid #ffc4d9;
  border-left: 5px solid #ff8ab5;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(214, 84, 132, 0.08);
}

.login-required-banner-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffd8e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-required-banner-icon i {
  color: #c63f71;
}

.login-required-banner-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
  min-width: 0;
  flex: 1;
}

.login-required-banner-content strong {
  color: #8a234d;
  font-size: 1rem;
  font-weight: 800;
}

.login-required-banner-content span {
  color: #624653;
  font-size: 0.84rem;
}

.login-required-banner-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto !important;
  flex-shrink: 0;
}

.login-required-btn {
  width: 90px;
  min-width: 90px;
  height: 38px;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  text-decoration: none !important;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1;
  transition: 0.2s ease;
}

.login-required-btn:hover {
  transform: translateY(-1px);
}

.login-required-btn-primary {
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(236, 92, 149, 0.22);
}

.login-required-btn-primary:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

.login-required-btn-secondary {
  background: #fff9fc !important;
  border: 1px solid #f26fa2 !important;
  color: var(--primary) !important;
}

.login-required-btn-secondary:hover {
  background: #fff0f7 !important;
  color: var(--primary-dark) !important;
}

/* HERO */
.about-donation {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 90px 8%;
  position: relative;
  background:
    linear-gradient(90deg, rgba(28, 20, 25, 0.72), rgba(236, 92, 149, 0.2)),
    url("../img/CpssDonate.jpg") center/cover no-repeat;
}

.text-wrapper {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: #ffffff;
}

.text-wrapper h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.55rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -1px;
  color: #ffffff;
}

.text-wrapper p {
  margin: 0 0 30px;
  max-width: 590px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* BUTTONS */
.btn {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 0.96rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #f879aa);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(236, 92, 149, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(236, 92, 149, 0.34);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--primary-soft);
  border-color: #ef9cbe;
}

/* SECTION HEADINGS */
.donation-breakdown h2,
.impact-text h2,
.donor-testimonials h2,
.donate-header h2 {
  color: var(--text);
  font-weight: 850;
  letter-spacing: -0.03em;
}

/* DONATION BREAKDOWN */
.donation-breakdown {
  padding: 84px 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 228, 237, 0.75), transparent 32%),
    var(--bg);
}

.donation-breakdown h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.breakdown-paragraph {
  max-width: 960px;
  margin: 0 auto;
  padding: 34px 38px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: #3c3439;
  line-height: 1.85;
  font-size: 1rem;
}

/* IMPACT STORIES */
.impact-stories {
  padding: 90px 0;
  background: #ffffff;
}

.flex-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.impact-image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.impact-text {
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
  padding: 44px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.impact-text h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.impact-text p {
  margin: 0;
  color: #443a41;
  line-height: 1.8;
  font-size: 1rem;
}

/* TESTIMONIALS */
.donor-testimonials {
  padding: 88px 0;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 226, 237, 0.8), transparent 30%),
    var(--bg);
}

.donor-testimonials h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.donor-testimonials > .container > p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  line-height: 1.7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.testimonial-item {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: 0.22s ease;
}

.testimonial-item::before {
  content: "“";
  position: absolute;
  top: 14px;
  right: 22px;
  color: #ffe0eb;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #f3c5d7;
}

.testimonial-item blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #3e353b;
  line-height: 1.72;
  font-size: 0.98rem;
}

.testimonial-item span {
  color: var(--primary-dark);
  font-weight: 800;
}

/* MAIN MODAL OVERLAY */
.modal {
  position: fixed;
  inset: 0;
  padding: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(22, 16, 20, 0.58);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(1080px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 30px;
  border: 1px solid #f1e6eb;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.22s ease;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.donate-modal-simple {
  padding: 0;
}

.modal-body {
  padding: 34px;
}

.donate-modal-frame {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CLOSE BUTTON */
.close-modal {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #eadde3;
  color: #8c8086;
  font-size: 1.55rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(27, 21, 25, 0.055);
  cursor: pointer;
  transition: 0.2s ease;
  z-index: 3;
}

.close-modal:hover {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(90deg);
}

/* MODAL HEADER */
.donate-header {
  text-align: left;
  padding: 0 56px 0 4px;
  margin-bottom: 8px;
}

.donate-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.18rem);
  line-height: 1.1;
  color: var(--primary);
}

.donate-header p {
  margin: 8px 0 0;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.5;
}

/* STATUS */
.donation-form-status {
  padding: 13px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
}

.donation-form-status.error {
  background: #fff1f4;
  border: 1px solid #ffd3dd;
  color: #c44874;
}

.donation-form-status.success {
  background: #eefbf4;
  border: 1px solid #caefd8;
  color: #1d8a53;
}

/* MODAL GRID */
.modal-top-grid,
.modal-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.modal-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdfd 100%);
  border: 1px solid #f1e7ec;
  border-radius: 24px;
  padding: 23px;
  box-shadow: 0 10px 28px rgba(35, 25, 31, 0.04);
}

.modal.in-kind-mode .modal-content {
  width: min(860px, 100%);
}

.modal.in-kind-mode .modal-top-grid,
.modal.in-kind-mode .modal-bottom-grid {
  grid-template-columns: 1fr;
}

.modal.in-kind-mode .modal-card {
  padding: 24px 26px;
}

.modal.in-kind-mode .donor-identity-section {
  padding-top: 2px;
}

.modal.in-kind-mode .receipt-upload-card {
  min-height: 92px;
}

.modal.in-kind-mode .action-buttons {
  margin-top: 8px;
}

.donation-modal-section {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-heading h3,
.detail-card-header h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #282226;
}

.section-heading p,
.detail-card-header p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* WALLET TABS */
.wallet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
  justify-content: flex-start;
}

.wallet-empty {
  width: 100%;
  margin: 0;
  padding: 15px 16px;
  border-radius: 16px;
  background: #fff8fb;
  border: 1px dashed #f0c6d7;
  text-align: center;
  color: #876775;
  font-size: 0.88rem;
  font-weight: 600;
}

.wallet-tab {
  min-width: 0;
  width: calc(50% - 6px);
  min-height: 48px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  border: 1px solid #eedfe6;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
}

.wallet-tab span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #453c42;
}

.wallet-tab img {
  display: block;
  margin: 0;
  max-height: 30px;
  max-width: 96px;
  object-fit: contain;
}

.wallet-tab.active,
.wallet-tab:hover {
  background: var(--primary-soft);
  border-color: #f0a7c4;
  box-shadow: 0 10px 20px rgba(236, 79, 140, 0.08);
  transform: translateY(-2px);
}

/* DONATION DETAILS */
.donate-details {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
  margin-bottom: 0;
}

.qr-box,
.account-box {
  border: 1px solid #f1e9ed;
  border-radius: 18px;
  padding: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #fffefe 100%);
  box-shadow: 0 10px 22px rgba(31, 24, 29, 0.025);
}

.qr-box {
  text-align: center;
}

.detail-card-header {
  margin-bottom: 14px;
}

.qr-box img {
  display: block;
  width: 100%;
  max-width: 128px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #f0e4ea;
  background: #ffffff;
  cursor: zoom-in;
}

.qr-hint,
.reference-hint,
.receipt-hint {
  margin: 10px 0 0;
  color: #8b8188;
  font-size: 0.83rem;
  line-height: 1.58;
}

.account-item {
  margin-bottom: 16px;
}

.account-item:last-child {
  margin-bottom: 0;
}

.account-item label,
.field-block label,
.anonymous-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #373037;
}

.field-block label span {
  color: #969096;
  font-weight: 500;
}

.donation-type-section {
  padding: 18px 20px;
}

.donation-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.donation-type-btn {
  min-height: 54px;
  border: 1px solid #f0d8e3;
  border-radius: 16px;
  background: #fff;
  color: #4d4249;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.donation-type-btn i {
  color: var(--primary);
}

.donation-type-btn.active,
.donation-type-btn:hover {
  border-color: #ee9fbe;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.in-kind-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.in-kind-fields select,
.in-kind-fields input,
.in-kind-notes {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid #ede6ea;
  background: linear-gradient(180deg, #fffefe 0%, #fffafb 100%);
  color: #3d373c;
  outline: none;
  font: inherit;
  font-size: 0.95rem;
}

.in-kind-notes {
  min-height: 96px;
  resize: vertical;
}

.copy-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid #efe7eb;
  background: #fffdfd;
  box-shadow: inset 0 1px 1px rgba(30, 22, 28, 0.015);
}

.copy-row span {
  min-width: 0;
  color: #3c353b;
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-word;
}

.copy-btn {
  flex-shrink: 0;
  width: auto;
  min-width: 58px;
  min-height: 31px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.77rem;
  font-weight: 750;
  cursor: pointer;
  transition: 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* AMOUNT */
.amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.amount-btn {
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid #efe0e7;
  background: linear-gradient(180deg, #fff9fb 0%, #fff4f7 100%);
  color: #795d67;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: 0.22s ease;
}

.amount-btn:hover,
.amount-btn:focus,
.amount-btn.active {
  background: linear-gradient(135deg, var(--primary), #f86ca0);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(239, 79, 141, 0.18);
  transform: translateY(-2px);
}

/* INPUTS */
.field-block {
  width: 100%;
}

.amount-input,
.reference-info input,
.donor-grid input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid #ede6ea;
  background: linear-gradient(180deg, #fffefe 0%, #fffafb 100%);
  color: #3d373c;
  outline: none;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(24, 19, 22, 0.012);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.amount-input::placeholder,
.reference-info input::placeholder,
.donor-grid input::placeholder {
  color: #aca3a9;
  font-weight: 400;
}

.amount-input:focus,
.reference-info input:focus,
.donor-grid input:focus {
  border-color: #edabc4;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(237, 79, 140, 0.08);
}

.amount-input-wrap {
  position: relative;
}

.amount-input-wrap .amount-input {
  padding-right: 44px;
}

.amount-currency {
  position: absolute;
  top: 16px;
  right: 15px;
  color: #a698a0;
  font-size: 0.86rem;
  font-weight: 750;
  pointer-events: none;
}

.field-error {
  margin: 8px 0 0;
  color: #d45a80;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

/* DONOR INFO */
.donor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.donor-identity-section.anonymous-active .donor-grid {
  opacity: 0.52;
}

.donor-grid input:disabled {
  cursor: not-allowed;
  background: #f7f2f4;
}

/* ANONYMOUS */
.anonymous-box {
  border: 1px solid #f1e8ec;
  border-radius: 17px;
  background: linear-gradient(180deg, #fffefe 0%, #fffafb 100%);
  box-shadow: 0 12px 24px rgba(29, 22, 28, 0.028);
}

.anonymous-toggle {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
  cursor: pointer;
}

.anonymous-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.anonymous-checkmark {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid #dccccf;
  background: #ffffff;
  position: relative;
  transition: 0.2s ease;
  box-shadow: inset 0 1px 1px rgba(31, 24, 29, 0.02);
}

.anonymous-toggle input:checked + .anonymous-checkmark {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #f471a4);
}

.anonymous-toggle input:checked + .anonymous-checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.anonymous-copy strong {
  margin-bottom: 2px;
}

.anonymous-copy small {
  display: block;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #877d84;
  font-weight: 400;
}

/* REQUIRED PILL */
.required-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff3f8;
  color: var(--primary);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* RECEIPT */
.receipt-section {
  margin-bottom: 0;
}

.receipt-upload-card {
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px dashed #f1bfd0;
  border-radius: 19px;
  background: linear-gradient(180deg, #fffefe 0%, #fff9fb 100%);
  cursor: pointer;
  transition: 0.2s ease;
}

.receipt-upload-card:hover {
  border-color: #ee9fbe;
  background: #fff6fa;
}

.receipt-upload-card.has-file {
  border-style: solid;
  border-color: #f0a7c4;
}

.receipt-upload-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #fff4f8;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.22rem;
  flex-shrink: 0;
}

.receipt-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #efc9d7;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 750;
  box-shadow: 0 6px 14px rgba(28, 22, 27, 0.04);
}

.receipt-file-name {
  min-width: 0;
  flex: 1;
  color: #7b7178;
  font-size: 0.9rem;
  font-weight: 550;
  word-break: break-word;
}

.receipt-input {
  display: none;
}

.receipt-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #f0e5eb;
  border-radius: 14px;
  background: #ffffff;
}

.receipt-extract-status {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.receipt-extract-status.loading {
  background: #f8fbff;
  border: 1px solid #d8e8ff;
  color: #44617f;
}

.receipt-extract-status.info,
.receipt-extract-status.warning {
  background: #fff8ed;
  border: 1px solid #ffe0a8;
  color: #9a6819;
}

.receipt-extract-status.success {
  background: #effbf4;
  border: 1px solid #ccefd9;
  color: #21764a;
}

.receipt-extracted-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.receipt-extracted-fields span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7fb;
  border: 1px solid #f2c9d9;
  color: #6f4a59;
  font-size: 0.77rem;
  font-weight: 650;
}

.receipt-extracted-fields strong {
  color: var(--primary-dark);
  font-weight: 850;
}

.receipt-preview img {
  display: block;
  max-width: min(100%, 260px);
  max-height: 150px;
  margin: 0 auto 12px;
  border-radius: 10px;
  object-fit: contain;
}

.btn-remove {
  border: none;
  background: #f4edf0;
  color: #5d5359;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-remove:hover {
  background: #eadfe5;
}

/* ACTION BUTTONS */
.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.action-buttons .btn {
  min-width: 0;
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.action-buttons .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* SECURITY NOTE */
.security-note {
  margin-top: 22px;
  text-align: center;
  color: #847a81;
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff6fa;
  color: var(--primary);
  border: 1px solid #f4d3df;
  vertical-align: middle;
}

.security-icon {
  font-size: 0;
}

.security-icon::before {
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
}

.security-note p {
  margin: 10px auto 0;
  max-width: 720px;
  line-height: 1.62;
  font-size: 0.89rem;
  color: #7f757c;
}

/* QR ZOOM MODAL */
.qr-zoom-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  z-index: 10000;
}

.qr-zoom-modal.active {
  display: flex;
}

.qr-zoom-content {
  padding: 24px;
  background: #ffffff;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.35);
}

.qr-zoom-content img {
  width: min(430px, 82vw);
  height: min(430px, 82vw);
  object-fit: contain;
}

.qr-zoom-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* SWEETALERT LOGIN REQUIRED */
.login-required-popup {
  border-radius: 20px !important;
  border: 1px solid rgba(204, 90, 132, 0.22) !important;
  background: #fffdfc !important;
  box-shadow: 0 20px 48px rgba(30, 24, 28, 0.22) !important;
  padding: 1.35rem 1.2rem 1.15rem !important;
}

.login-required-title {
  color: var(--text) !important;
  font-weight: 850 !important;
  font-size: 1.32rem !important;
}

.login-required-text {
  color: var(--muted) !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
}

.swal2-actions {
  gap: 10px;
}

.login-required-confirm,
.login-required-cancel {
  border: none;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 750;
  transition: all 0.2s ease;
}

.login-required-confirm {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(204, 90, 132, 0.24);
}

.login-required-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(204, 90, 132, 0.3);
}

.login-required-cancel {
  background: #f3edf0;
  color: #5f4f56;
  border: 1px solid #e9dde2;
}

.login-required-cancel:hover {
  background: #ece3e8;
}

/* SCROLLBAR */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f8f1f4;
  border-radius: 999px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #d8bdca;
  border-radius: 999px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .about-donation {
    min-height: 460px;
    padding: 80px 6%;
  }

  .flex-container {
    grid-template-columns: 1fr;
  }

  .impact-image img {
    height: 350px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 28px 24px 26px;
  }

  .donate-header {
    padding: 2px 48px 0 2px;
  }

  .modal-top-grid,
  .modal-bottom-grid,
  .donate-details {
    grid-template-columns: 1fr;
  }

  .donation-type-toggle {
    grid-template-columns: 1fr;
  }

  .qr-box img {
    max-width: 210px;
  }

  .donor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .donate-main > .login-required-banner {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px;
  }

  .login-required-banner-actions {
    width: 100%;
    margin-left: 62px !important;
  }

  .login-required-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .about-donation {
    min-height: 430px;
    padding: 74px 24px;
    text-align: center;
    justify-content: center;
  }

  .text-wrapper {
    max-width: 100%;
  }

  .text-wrapper p {
    font-size: 0.98rem;
  }

  .donation-breakdown,
  .impact-stories,
  .donor-testimonials {
    padding: 64px 0;
  }

  .breakdown-paragraph,
  .impact-text,
  .testimonial-item {
    padding: 24px;
  }

  .modal {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-content {
    max-height: 94vh;
    border-radius: 26px 26px 0 0;
  }

  .modal-body {
    padding: 28px 18px 24px;
  }

  .donate-header {
    padding: 0 42px 0 2px;
  }

  .wallet-tabs {
    justify-content: stretch;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .wallet-tab {
    width: 100%;
    min-width: 0;
  }

  .amount-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .receipt-upload-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }

  .qr-box img {
    max-width: 205px;
  }
}

@media (max-width: 480px) {
  .donate-main > .login-required-banner {
    width: calc(100% - 24px);
  }

  .login-required-banner-actions {
    margin-left: 0 !important;
  }

  .text-wrapper h1 {
    font-size: 2.25rem;
  }

  .breakdown-paragraph {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .impact-image img {
    height: 260px;
  }

  .modal-body {
    padding: 26px 16px 22px;
  }

  .close-modal {
    top: 14px;
    right: 14px;
  }

  .modal-card,
  .qr-box,
  .account-box {
    padding: 18px;
  }

  .amount-buttons {
    grid-template-columns: 1fr;
  }

  .amount-btn {
    padding: 12px 8px;
  }

  .anonymous-toggle {
    padding: 14px;
  }
}
