/* ════════════════════════════════════
   HOMEPAGE
════════════════════════════════════ */
.br-hero {
  background: linear-gradient(140deg, var(--green-dark) 0%, var(--green) 55%, var(--green-mid) 100%);
  color: white; padding: 7rem 2.5rem 6rem; position: relative; overflow: hidden;
}
.br-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='white' fill-opacity='0.05'/%3E%3C/svg%3E");
}
.br-hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px; background: var(--white); clip-path: ellipse(55% 100% at 50% 100%);
}
.br-hero-inner {
  max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 420px; gap: 4rem; align-items: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px; padding: .35rem 1rem; font-size: .78rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.5rem; color: rgba(255,255,255,.9);
}
.br-hero-left h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 700; line-height: 1.1;
  margin-bottom: 1.25rem; color: white;
}
.br-hero-left h1 em { color: var(--gold-light); font-style: normal; }
.br-hero-left p { font-size: 1.05rem; color: rgba(255,255,255,.82); margin-bottom: 2rem; max-width: 480px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.stat { text-align: center; }
.stat strong {
  display: block; font-size: 1.75rem; font-weight: 700;
  font-family: 'Cormorant Garamond', serif; color: white;
}
.stat span { font-size: .75rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }

/* How it works */
.bg-cream { background: var(--cream) !important; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 3rem; }
.step-card {
  background: white; border-radius: 16px; padding: 1.75rem;
  border: 1px solid var(--border); transition: box-shadow .2s, transform .2s;
}
.step-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: .9rem; margin-bottom: 1.25rem;
}
.step-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: .5rem; font-family: 'Outfit', sans-serif; letter-spacing: 0; }
.step-card p { font-size: .85rem; color: var(--muted); }

/* Trust */
.bg-green { background: var(--green) !important; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.trust-item {
  text-align: center; padding: 1.5rem; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .2s;
}
.trust-item:hover { background: rgba(255,255,255,.12); }
.trust-icon { font-size: 2.2rem; margin-bottom: .75rem; display: block; }
.trust-item h3 { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; color: white; font-family: 'Outfit', sans-serif; }
.trust-item p { font-size: .83rem; color: rgba(255,255,255,.72); }

/* Campaigns grid */
.campaigns-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }

/* ════════════════════════════════════
   CAMPAIGN PAGE
════════════════════════════════════ */
.campaign-page-layout {
  max-width: 1140px; margin: 0 auto;
  padding: 2.5rem 2.5rem 5rem;
  display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start;
}
.campaign-hero-img {
  width: 100%; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16/9; background: linear-gradient(135deg,#b5e8c8,var(--green));
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
  position: relative; margin-bottom: 1.75rem;
}
.campaign-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-meta-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.campaign-location { color: var(--muted); font-size: .85rem; }
.campaign-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.2;
  color: var(--charcoal); margin-bottom: 1.5rem;
}
.organizer-bar {
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem;
  background: white; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 2rem;
}
.org-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.org-info small { color: var(--muted); font-size: .78rem; display: block; }
.org-info strong { font-size: .9rem; }
.org-verified { margin-left: auto; font-size: .8rem; color: var(--green); }
.campaign-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 2rem; }
.ctab {
  padding: .75rem 1.5rem; font-size: .9rem; font-weight: 500; cursor: pointer;
  border: none; background: none; color: var(--muted); font-family: 'Outfit', sans-serif;
  transition: all .2s; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.ctab.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.campaign-story { font-size: .95rem; color: var(--text); line-height: 1.85; }
.campaign-story p { margin-bottom: 1.25rem; }
.campaign-story h2, .campaign-story h3 { font-family: 'Cormorant Garamond', serif; margin: 1.5rem 0 .75rem; color: var(--charcoal); }

/* Donate sidebar */
.donate-sidebar-card {
  background: white; border-radius: 20px; border: 1px solid var(--border);
  padding: 2rem; position: sticky; top: 88px; box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.raised-amount { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; font-weight: 700; color: var(--charcoal); }
.raised-label { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; margin-top: .2rem; }
.progress-stats-row { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.pstat strong { display: block; font-size: .95rem; font-weight: 700; }
.pstat span { font-size: .75rem; color: var(--muted); }
.share-btns { display: flex; gap: .6rem; margin-bottom: 1.75rem; }
.share-btn {
  flex: 1; padding: .6rem; border-radius: 8px; border: 1.5px solid var(--border);
  background: white; font-family: 'Outfit', sans-serif; font-size: .8rem; font-weight: 500;
  cursor: pointer; transition: all .15s; color: var(--text); text-align: center; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.share-btn:hover { border-color: var(--green); color: var(--green); }
.btn-donate-big {
  width: 100%; background: var(--green); color: white; border: none; border-radius: 12px;
  padding: 1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none;
}
.btn-donate-big:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,107,60,.3); }
.secure-note { text-align: center; font-size: .75rem; color: var(--muted); margin-top: .75rem; }
.recent-donors-mini { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.recent-donors-mini h4 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1rem; }
.mini-donor { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.mini-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.mini-donor-info strong { font-size: .83rem; display: block; }
.mini-donor-info span { font-size: .75rem; color: var(--muted); }
.mini-amount { margin-left: auto; font-weight: 700; font-size: .83rem; color: var(--green); }
.donor-list { display: flex; flex-direction: column; gap: .75rem; }
.donor-item {
  display: flex; align-items: center; gap: .85rem; padding: 1rem 1.25rem;
  background: white; border-radius: 12px; border: 1px solid var(--border);
}
.donor-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.donor-info { flex: 1; }
.donor-info strong { font-size: .875rem; display: block; }
.donor-info small { font-size: .78rem; color: var(--muted); }
.donor-amount { font-weight: 700; color: var(--green); font-size: .9rem; }

/* ════════════════════════════════════
   CHECKOUT PAGE
════════════════════════════════════ */
.checkout-layout {
  max-width: 980px; margin: 2.5rem auto; padding: 0 2rem 5rem;
  display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start;
}
.checkout-card {
  background: white; border-radius: 18px; border: 1px solid var(--border);
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.checkout-card-header {
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); background: var(--cream);
}
.checkout-card-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: var(--charcoal); }
.checkout-card-header p { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.checkout-card-body { padding: 2rem; }
.field-group-label {
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .85rem; display: flex; align-items: center; gap: .5rem;
}
.field-group-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-bottom: 1rem; }
.amount-btn {
  padding: .75rem .5rem; border-radius: 10px; border: 2px solid var(--border); background: white;
  font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .15s; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hint { font-size: .68rem; font-weight: 400; color: var(--muted); }
.amount-btn:hover, .amount-btn.active { border-color: var(--green); background: var(--green-pale); color: var(--green); }
.amount-btn.active .hint { color: var(--green); }
.custom-amt-wrap { position: relative; margin-bottom: 1.5rem; }
.currency-sym { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; }
.custom-amount-input {
  width: 100%; padding: .75rem 1rem .75rem 2rem; border: 2px solid var(--border);
  border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: .95rem;
  outline: none; transition: border-color .2s; color: var(--text);
}
.custom-amount-input:focus { border-color: var(--green); }
.tip-row { display: flex; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.tip-btn {
  padding: .45rem .9rem; border-radius: 20px; border: 1.5px solid var(--border);
  background: white; font-family: 'Outfit', sans-serif; font-size: .8rem; font-weight: 500;
  cursor: pointer; transition: all .15s; color: var(--text);
}
.tip-btn:hover, .tip-btn.active { border-color: var(--gold); background: #fff8e6; color: var(--gold); }
.tip-note { font-size: .78rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.5; }
.check-row { display: flex; align-items: flex-start; gap: .65rem; font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.check-row input[type=checkbox] { margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.check-row label { cursor: pointer; }
.inline-summary {
  background: var(--cream); border-radius: 12px; padding: 1.25rem 1.5rem;
  border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.sum-row { display: flex; justify-content: space-between; font-size: .875rem; padding: .28rem 0; color: var(--muted); }
.sum-row strong { color: var(--charcoal); }
.sum-row.total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .35rem; color: var(--charcoal); }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; color: var(--charcoal); }
.form-field input, .form-field select {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: .9rem;
  outline: none; transition: border-color .2s; color: var(--text); background: white;
}
.form-field input:focus, .form-field select:focus { border-color: var(--green); }
.form-field input.error { border-color: #dc2626; }
.required { color: #dc2626; }
.field-error { display: none; color: #dc2626; font-size: .78rem; margin-top: .35rem; }
.field-error.show { display: block; }
.btn-continue-pay {
  width: 100%; background: var(--gold); color: var(--charcoal); border: none; border-radius: 12px;
  padding: 1rem; font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn-continue-pay:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,150,12,.3); }

/* Payment section */
.payment-section {
  display: none; border-top: 2px dashed var(--border);
  padding-top: 2rem; margin-top: 2rem;
  animation: slideDown .4s ease;
}
.payment-section.visible { display: block; }
@keyframes slideDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
.pay-method-tabs { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.pay-tab {
  flex: 1; padding: .65rem .5rem; border-radius: 10px; border: 2px solid var(--border);
  background: white; font-family: 'Outfit', sans-serif; font-size: .83rem; font-weight: 500;
  cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--text);
}
.pay-tab.active { border-color: var(--green); background: var(--green-pale); color: var(--green); font-weight: 600; }
.stripe-card-box { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 1.25rem; }
.stripe-card-box:focus-within { border-color: var(--green); }
.card-fallback .card-row-field {
  padding: .8rem 1rem; border-bottom: 1px solid var(--border); position: relative; display: flex; align-items: center;
}
.card-row-halves { display: grid; grid-template-columns: 1fr 1fr; }
.card-half { padding: .8rem 1rem; }
.card-half:first-child { border-right: 1px solid var(--border); }
.card-inp { width: 100%; border: none; outline: none; font-family: 'Outfit', sans-serif; font-size: .9rem; color: var(--text); background: transparent; }
.card-inp::placeholder { color: #9ca3af; }
.card-logos { display: flex; gap: 4px; margin-left: auto; }
.cl { font-size: .65rem; font-weight: 700; padding: .15rem .3rem; border-radius: 3px; }
.visa { background: #1434cb; color: white; }
.mc { background: #eb001b; color: white; }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.alt-pay-box {
  background: var(--cream); border-radius: 12px; padding: 2rem; text-align: center;
  margin-bottom: 1.25rem; border: 1.5px dashed var(--border);
}
.alt-pay-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
.alt-pay-box strong { display: block; margin-bottom: .4rem; }
.alt-pay-box p { color: var(--muted); font-size: .9rem; }
.pay-error { color: #dc2626; font-size: .82rem; margin-bottom: .75rem; min-height: 1.2rem; }
.btn-donate-submit {
  width: 100%; background: var(--green); color: white; border: none; border-radius: 12px;
  padding: 1.1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-donate-submit:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,107,60,.3); }
.btn-donate-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.secure-footer-note { text-align: center; font-size: .75rem; color: var(--muted); margin-top: .75rem; }
.loading-spin {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: white;
  border-radius: 50%; animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* Success */
.success-card { animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:scale(1); } }
.success-body { text-align: center; padding: 3rem 2rem; }
.success-check {
  width: 80px; height: 80px; background: var(--green-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  font-size: 2.2rem; color: var(--green); border: 3px solid var(--green);
}
.success-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--green); margin-bottom: .75rem; }
.success-body p { color: var(--muted); margin-bottom: 1rem; font-size: .95rem; }
.success-note { font-size: .85rem !important; margin-bottom: 2rem !important; }

/* Checkout sidebar */
.checkout-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1.25rem; }
.campaign-summary-card { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.camp-thumb { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; }
.camp-thumb-placeholder { width: 100%; height: 130px; background: linear-gradient(135deg,#b5e8c8,var(--green)); border-radius: 10px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.camp-tag { font-size: .73rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.camp-title { font-size: .95rem; font-weight: 600; line-height: 1.4; margin-bottom: 1rem; }
.camp-stats { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.camp-stats strong { color: var(--charcoal); }
.order-summary-card { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.order-summary-card h3 { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 1.1rem; font-family: 'Outfit', sans-serif; }
.order-row { display: flex; justify-content: space-between; font-size: .875rem; padding: .32rem 0; color: var(--muted); }
.order-total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .4rem; color: var(--charcoal); }
.tip-sidebar-note { font-size: .75rem; color: var(--muted); margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); line-height: 1.5; }
.trust-list { display: flex; flex-direction: column; gap: .5rem; }
.trust-badge { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); padding: .5rem .75rem; background: var(--cream); border-radius: 8px; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 960px) {
  .br-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats-card { max-width: 400px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .campaigns-grid { grid-template-columns: 1fr 1fr; }
  .campaign-page-layout { grid-template-columns: 1fr; padding: 1.5rem 1.25rem 4rem; }
  .donate-sidebar-card { position: static; }
  .checkout-layout { grid-template-columns: 1fr; padding: 0 1.25rem 4rem; }
  .checkout-sidebar { position: static; order: -1; }
}
@media (max-width: 600px) {
  .br-hero { padding: 4rem 1.25rem 3rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .campaigns-grid { grid-template-columns: 1fr; }
  .billing-grid { grid-template-columns: 1fr; }
  .card-row-halves { grid-template-columns: 1fr; }
  .card-half:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .pay-method-tabs { flex-wrap: wrap; }
}
