*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

h1, h2, h3, h4, strong, .raised-amount, .campaign-title, .section-heading,
.supporters-section .section-heading, .btn-donate-now, .logo, .stat strong,
.donor-amount-right, .pay-title {
  font-family: 'Inter', 'Open Sans', sans-serif;
}

a { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 3px solid #02a95c;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: #02a95c; }

.back-link {
  font-size: 14px;
  color: #02a95c;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover { text-decoration: underline; }

/* HOME HERO */
.home-hero {
  background: #013220;
  color: #fff;
  padding: 56px 16px;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.home-hero p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

/* CAMPAIGNS GRID */
.campaigns-section {
  padding: 40px 0 64px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.campaign-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 580px) {
  .campaign-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  .campaign-grid { grid-template-columns: repeat(3, 1fr); }
}

/* CAMPAIGN CARD */
.campaign-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  text-decoration: none;
  color: #111;
  display: block;
}

.card-title:hover { color: #02a95c; }

.card-organizer {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}

/* PROGRESS BAR */
.progress-bar {
  background: #ebebeb;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  background: #02a95c;
  height: 100%;
  border-radius: 99px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
}

.progress-raised {
  color: #02a95c;
  font-weight: 700;
}

/* DONATE BUTTON */
.btn-donate {
  display: block;
  background: #02a95c;
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
  margin-top: auto;
  border: none;
  cursor: pointer;
}

.btn-donate:hover { background: #018a4a; }

/* CAMPAIGN PAGE */
.campaign-page {
  padding: 32px 0 72px;
  background: #fff;
}

.campaign-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 780px) {
  .campaign-layout {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

.campaign-hero-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 18px;
  max-height: 460px;
  object-fit: cover;
}

.campaign-tag {
  display: inline-block;
  background: #e6f7ef;
  color: #018a4a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

.campaign-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #111;
}

.campaign-organizer {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.campaign-organizer strong { color: #222; }

.story-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 18px;
}

/* DONATION WIDGET */
.donation-widget {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.10);
}

.raised-amount {
  font-size: 30px;
  font-weight: 900;
  color: #02a95c;
  display: block;
}

.raised-label {
  font-size: 14px;
  color: #555;
  display: block;
  margin-top: 3px;
  margin-bottom: 12px;
}

.widget-stats {
  display: flex;
  gap: 24px;
  margin: 14px 0 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #777;
}

.stat strong {
  font-size: 20px;
  color: #111;
  font-weight: 800;
}

.btn-donate-lg {
  font-size: 17px;
  padding: 15px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.secure-note {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
  margin-bottom: 22px;
}

.organizer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.organizer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #013220;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.organizer-name {
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.organizer-role {
  font-size: 12px;
  color: #999;
  margin-top: 1px;
}

/* DONORS CARD */
.donors-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.10);
  margin-top: 16px;
}

.donors-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111;
}

.donors-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.donors-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donors-loading {
  color: #aaa;
  font-size: 13px;
  padding: 8px 0;
}

.donor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e6f7ef;
  color: #02a95c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.donor-info {
  flex: 1;
  min-width: 0;
}

.donor-name {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline;
}

.donor-time {
  font-size: 12px;
  color: #999;
}

.donor-amount-right {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  flex-shrink: 0;
}

.supporter-count {
  font-weight: 400;
  color: #888;
  font-size: 15px;
}

/* SUPPORTERS SECTION (left column, below updates) */
.supporters-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #eee;
  background: #fff;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 24px;
}

.supporters-section .section-heading {
  font-size: 38px;
  font-weight: 900;
  color: #111;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.supporters-section .supporter-count {
  font-size: 38px;
  font-weight: 400;
  color: #555;
}

.supporters-section .donors-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.supporters-section .donors-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #efefef;
}

.supporters-section .donors-list li:last-child {
  border-bottom: none;
}

.supporters-section .donor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ddeef7;
  color: #5fa8cc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.supporters-section .donor-name {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.supporters-section .donor-time {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.supporters-section .donor-amount-right {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-left: auto;
}

/* FOOTER */
.site-footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
}

.site-footer a {
  color: #02a95c;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* VERIFIED BADGE */
.verified-badge {
  display: inline-flex;
  align-items: center;
  background: #e6f7ef;
  color: #02a95c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

/* SHARE COUNT */
.share-count {
  color: #888;
  font-weight: 400;
}

/* LOAD MORE BUTTON */
.load-more-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.load-more-btn:hover {
  border-color: #02a95c;
  color: #02a95c;
}

/* DAYS ACTIVE */
.days-active {
  color: #888;
  font-weight: 400;
}

/* SECTION HEADINGS (gallery, updates) */
.section-heading {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

/* GALLERY */
.gallery-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.gallery-img:hover { opacity: 0.88; }

/* UPDATES */
.updates-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.update-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.update-item:last-child { border-bottom: none; }

.update-date {
  font-size: 12px;
  font-weight: 700;
  color: #02a95c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.update-body {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

/* AMOUNT SELECTION */
.amount-section {
  margin-bottom: 16px;
}

.amount-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.amount-btn {
  padding: 10px 6px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
}

.amount-btn:hover {
  border-color: #02a95c;
  color: #02a95c;
}

.amount-btn.active {
  border-color: #02a95c;
  background: #e6f7ef;
  color: #018a4a;
}

.custom-amount-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s;
}

.custom-amount-wrap:focus-within { border-color: #02a95c; }

.currency-sym {
  padding: 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #555;
  background: #f7f7f7;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 2px solid #e0e0e0;
}

.custom-amount-input {
  border: none;
  outline: none;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  width: 100%;
  background: transparent;
}

/* PAYMENT METHODS */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
  width: 100%;
}

.btn-payment:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-stripe {
  background: #635bff;
  color: #fff;
}

.btn-paypal {
  background: #003087;
  color: #fff;
}

.btn-usdt {
  background: #26a17b;
  color: #fff;
  position: relative;
}

.usdt-icon {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.usdt-arrow {
  margin-left: auto;
  transition: transform 0.2s;
}

/* USDT SECTION */
.usdt-section {
  display: none;
  background: #f0faf5;
  border: 1px solid #b2e4cc;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.usdt-section.open { display: block; }

.usdt-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.network-badge {
  display: inline-block;
  background: #26a17b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.wallet-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #cde8d9;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  word-break: break-all;
}

.wallet-address {
  font-size: 12px;
  color: #222;
  font-family: monospace;
  flex: 1;
  line-height: 1.5;
}

.copy-btn {
  padding: 6px 12px;
  background: #f0f0f0;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.copy-btn:hover { background: #e0e0e0; }

.usdt-warning {
  font-size: 11px;
  color: #c0392b;
  line-height: 1.5;
}

/* SHARE CARD */
.share-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.10);
  margin-top: 16px;
}

.share-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.share-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.btn-share:hover { opacity: 0.85; }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-twitter  { background: #000; color: #fff; }
.btn-copy     { background: #f0f0f0; color: #333; }

/* STICKY SIDEBAR */
.campaign-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
}

/* CARD 1: DONATION WIDGET */
.donation-widget {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.widget-progress-wrap {
  background: #e8e8e8;
  height: 13px;
  width: 100%;
}

.widget-progress-fill {
  background: #02a95c;
  height: 100%;
  transition: none;
}

.widget-body {
  padding: 22px 22px 24px;
  text-align: center;
}

.donation-widget .raised-amount {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: #02a95c;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.donation-widget .raised-label {
  display: block;
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.btn-donate-now {
  display: block;
  width: 100%;
  background: #e91e8c;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
}

.btn-donate-now:hover {
  background: #c91878;
  transform: translateY(-1px);
}

/* CARD 2: TRUST CARD */
.trust-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 24px 20px;
  margin-bottom: 16px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0;
  gap: 10px;
}

.trust-item p {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  max-width: 260px;
}

.trust-divider {
  border: none;
  border-top: 1px solid #efefef;
  margin: 10px 0;
}

/* PAYMENT MODAL */
.pay-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.pay-modal.open { display: flex; }

.pay-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.pay-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  margin: 16px;
}

.pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pay-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.pay-close {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  flex-shrink: 0;
}

.pay-close:hover { background: #e0e0e0; }

.pay-back {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  padding: 0;
}
.pay-back:hover { color: #111; }

.donor-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.donor-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: #222;
  outline: none;
  transition: border-color 0.15s;
}

.donor-input:focus { border-color: #02a95c; }

.anon-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.anon-toggle input { accent-color: #02a95c; width: 16px; height: 16px; cursor: pointer; }

.payment-message {
  background: #fff0f0;
  color: #c0392b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 12px;
}

.stripe-btn-wrap {
  width: 100%;
  margin-bottom: 4px;
}

.stripe-btn-wrap stripe-buy-button {
  width: 100%;
}

.pay-method-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin: 16px 0 10px;
}

/* THANK YOU PAGE */
.thankyou-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.thankyou-box {
  max-width: 480px;
}

.thankyou-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.thankyou-title {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  color: #111;
  margin-bottom: 14px;
  line-height: 1.2;
}

.thankyou-text {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
}

.thankyou-share {
  margin-bottom: 28px;
}

.thankyou-share p {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.thankyou-back {
  display: inline-block;
  color: #02a95c;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.thankyou-back:hover { text-decoration: underline; }
