:root {
  --primary: #16a66a;
  --primary-dark: #087c4d;
  --primary-light: #e9f9f1;

  --secondary: #ffb703;
  --dark: #10231b;
  --dark-2: #1b3328;

  --text: #53645c;
  --muted: #829089;

  --background: #ffffff;
  --background-soft: #f7faf8;

  --border: #e4ebe7;

  --danger: #e85d5d;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 5px 20px rgba(16, 35, 27, 0.06);
  --shadow-md: 0 15px 40px rgba(16, 35, 27, 0.1);
  --shadow-lg: 0 30px 80px rgba(16, 35, 27, 0.14);

  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--dark);
  background: var(--background);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: auto;
}

/* =========================
           HEADER
        ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(228, 235, 231, 0.8);
}

.navbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.app-logo {
  border-radius: 6px;
}

.logo span {
  color: var(--primary);
}

.logo-text {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.logo.logo-sm {
  font-size: 16px;
  gap: 8px;
}

.logo.logo-sm .logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.logo.logo-lg {
  font-size: 28px;
  gap: 12px;
}

.logo.logo-lg .logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: #52625a;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.nav-links-actions form {
  display: contents;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s;
}

.btn.is-loading {
  cursor: default;
  opacity: 0.85;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
}

.btn-outline .spinner {
  border: 2px solid rgba(16, 35, 27, 0.15);
  border-top-color: currentColor;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(22, 166, 106, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  border: 1px solid var(--border);
  color: var(--dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 16px 26px;
  border-radius: 14px;
  font-size: 15px;
}

.mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--dark);
  cursor: pointer;
}

.mobile-menu .icon {
  width: 26px;
  height: 26px;
}

/* =========================
           HERO
        ========================= */

.hero {
  background: radial-gradient(circle at 10% 20%,
      rgba(22, 166, 106, 0.13),
      transparent 35%),
    radial-gradient(circle at 90% 30%,
      rgba(255, 183, 3, 0.13),
      transparent 30%),
    #f8fbf9;
  padding: 85px 0 75px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -2.8px;
  max-width: 700px;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-description {
  color: var(--text);
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #d9eee5;
  color: var(--primary-dark);
}

.avatar:first-child {
  margin-left: 0;
}

.hero-trust-text {
  font-size: 13px;
  color: var(--text);
}

.hero-trust-text strong {
  display: block;
  color: var(--dark);
}

/* Hero visual */

.hero-visual {
  position: relative;
}

.campaign-preview {
  background: white;
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.campaign-image {
  height: 250px;
  border-radius: 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)),
    url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1000&q=80") center/cover;
  position: relative;
}

.verified {
  position: absolute;
  top: 15px;
  left: 15px;
  background: white;
  color: var(--primary-dark);
  padding: 7px 11px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.campaign-category {
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px 11px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}

.campaign-body {
  padding: 20px 10px 10px;
}

.campaign-body h3 {
  font-size: 20px;
  margin-bottom: 7px;
}

.campaign-body p {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 18px;
}

.progress {
  height: 8px;
  background: #eaf0ed;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.campaign-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.campaign-stats strong {
  font-size: 16px;
}

.campaign-stats span {
  color: var(--muted);
}

.floating-card {
  position: absolute;
  z-index: 4;
  background: white;
  border-radius: 17px;
  padding: 14px 17px;
  box-shadow: var(--shadow-md);
}

.floating-card.donation {
  left: -45px;
  bottom: 55px;
}

.floating-card.users {
  right: -35px;
  top: 50px;
}

.floating-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  float: left;
  margin-right: 10px;
}

.floating-icon .icon {
  width: 18px;
  height: 18px;
}

.floating-card strong {
  font-size: 13px;
}

.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

/* =========================
           SEARCH
        ========================= */

.search-section {
  margin-top: -30px;
  position: relative;
  z-index: 5;
}

.search-box {
  background: white;
  box-shadow: var(--shadow-md);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  align-items: center;
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 15px;
  font-size: 15px;
  color: var(--dark);
}

.search-box button {
  padding: 14px 22px;
}

/* =========================
           STATS
        ========================= */

.stats {
  padding: 65px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}

.stat {
  padding: 30px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat h3 {
  font-size: 32px;
  margin-bottom: 5px;
}

.stat p {
  color: var(--muted);
  font-size: 13px;
}

/* =========================
           SECTION
        ========================= */

section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.5px;
  margin-bottom: 13px;
}

.section-header p {
  color: var(--text);
  max-width: 600px;
  margin: auto;
}

.section-header .eyebrow {
  margin-bottom: 15px;
}

/* =========================
           SIMPLE PAGE HERO
           (Explore, Categories, About, Contact, Help Center, How it Works)
        ========================= */

.hero.center {
  text-align: center;
}

.hero.center .container {
  max-width: 760px;
}

.hero.center .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.hero.center .hero-description {
  margin-left: auto;
  margin-right: auto;
}

.hero.center .search-box {
  margin-top: 30px;
  text-align: left;
}

/* =========================
           SECTION HEAD (left-aligned title + action)
        ========================= */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--text);
  margin-top: 6px;
}

/* =========================
           FILTER PILLS
        ========================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}

.filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter.active {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

.no-results {
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  color: var(--text);
}

/* =========================
           CATEGORIES
        ========================= */

.categories {
  background: var(--background-soft);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.grid4 .category,
.grid3 .category {
  padding: 32px 20px;
}

.grid4 .category-icon .icon,
.grid3 .category-icon .icon {
  width: 32px;
  height: 32px;
}

.grid4 .category h4,
.grid3 .category h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.grid4 .category p,
.grid3 .category p {
  font-size: 13px;
}

.category-count {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.category {
  background: white;
  border: 1px solid var(--border);
  padding: 22px 15px;
  border-radius: 17px;
  text-align: center;
  transition: 0.25s;
  cursor: pointer;
}

.category:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.category-icon {
  margin-bottom: 10px;
  color: var(--primary);
}

.category-icon .icon {
  width: 28px;
  height: 28px;
}

.category h4 {
  font-size: 13px;
}

.category p {
  color: var(--muted);
  font-size: 11px;
}

/* =========================
           CAMPAIGNS
        ========================= */

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

.campaign-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: white;
  transition: 0.25s;
}

.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.campaign-card-image {
  height: 210px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.image-1 {
  background-image: url("https://images.unsplash.com/photo-1542810634-71277d95dcbb?auto=format&fit=crop&w=800&q=80");
}

.image-2 {
  background-image: url("https://images.unsplash.com/photo-1504159506876-f8338247a14a?auto=format&fit=crop&w=800&q=80");
}

.image-3 {
  background-image: url("https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?auto=format&fit=crop&w=800&q=80");
}

.card-category {
  position: absolute;
  left: 14px;
  top: 14px;
  background: white;
  padding: 7px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.heart {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  color: var(--dark);
}

.heart .icon {
  width: 18px;
  height: 18px;
}

.heart.liked {
  color: var(--danger);
}

.heart.liked .icon {
  fill: currentColor;
}

.campaign-card-content {
  padding: 20px;
}

.campaign-card-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.campaign-card-content p {
  color: var(--text);
  font-size: 13px;
  margin-bottom: 17px;
}

.creator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 11px;
}

.creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 700;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* =========================
           HOW IT WORKS
        ========================= */

.how {
  background: var(--background-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  position: relative;
}

.step {
  background: white;
  border-radius: 22px;
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 22px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step p {
  color: var(--text);
  font-size: 14px;
}

/* =========================
           CAMPAIGN DETAIL PAGE
        ========================= */

.campaign-detail {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.detail-image {
  height: 430px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  background-color: var(--background-soft);
}

.gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--background-soft);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.2s;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(16, 35, 27, 0.94);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 100%;
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-btn.close {
  top: 16px;
  right: 16px;
}

.lightbox-btn.prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-btn.next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 12px;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-circle.lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.avatar-circle.sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
  background: var(--background-soft);
  color: var(--text);
}

.organizing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 20px;
}

.secured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.secured-badge .icon {
  width: 14px;
  height: 14px;
}

.story-block {
  position: relative;
  margin-top: 20px;
}

.story-text {
  max-height: 220px;
  overflow: hidden;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
}

.story-text.expanded {
  max-height: none;
}

.story-fade {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 32px;
  height: 60px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--background));
}

.story-fade.hidden {
  display: none;
}

.story-toggle {
  display: none;
  margin-top: 8px;
  background: none;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  color: var(--dark);
}

.story-toggle.visible {
  display: inline-block;
}

.detail-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.detail-section h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.detail-section ul {
  list-style: none;
  font-size: 14px;
  color: var(--text);
}

.detail-section li {
  margin-bottom: 6px;
}

.detail-section a {
  color: var(--primary-dark);
  font-weight: 600;
}

.detail-section a:hover {
  text-decoration: underline;
}

.detail-section .message {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.detail-section .message:last-child {
  border-bottom: 0;
}

.detail-section .message .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}

.detail-section .message p {
  color: var(--text);
  font-size: 13px;
  margin-top: 4px;
}

.detail-section .message time {
  font-size: 10px;
  color: var(--muted);
}

.organizer-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.meta-line {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.donate-box {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
  background: var(--background);
}

.donate-box-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.progress-ring svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.progress-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.donate-box .raised-amount {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.donate-box .raised-of,
.donate-box .donation-count {
  font-size: 13px;
  color: var(--muted);
}

.donate-box .btn {
  width: 100%;
  margin-top: 18px;
}

.not-accepting {
  margin-top: 18px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

/* =========================
   DONATION FORM
   ========================= */

.donation-page {
  width: min(640px, calc(100% - 40px));
  margin: 40px auto 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--dark);
}

.back-link .icon {
  width: 16px;
  height: 16px;
}

.donation-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.donation-card .donate-box-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.donation-card .donate-box-head h1 {
  font-size: 19px;
  line-height: 1.3;
}

.donation-card .donate-box-head p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.donation-section {
  margin-top: 26px;
}

.donation-section:first-child {
  margin-top: 0;
}

.donation-section h2 {
  font-size: 14px;
  margin-bottom: 12px;
}

.currency-toggle {
  display: flex;
  gap: 10px;
}

.currency-toggle-btn {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  cursor: pointer;
  transition: 0.2s;
}

.currency-toggle-btn:hover {
  border-color: var(--dark);
}

.currency-toggle-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

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

.quick-amount {
  position: relative;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  cursor: pointer;
  transition: 0.2s;
}

.quick-amount:hover {
  border-color: var(--dark);
}

.quick-amount.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.quick-amount .badge {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.amount-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.amount-input-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.amount-input-row .currency-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.amount-input-row input {
  flex: 1;
  border: 0;
  text-align: right;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  background: none;
  width: 100px;
}

.amount-input-row input:focus {
  outline: none;
}

.amount-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.payment-method-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.payment-method-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.payment-method-list label:first-child {
  border-top: 0;
}

.payment-method-list label:hover {
  background: var(--background-soft);
}

.payment-method-list label.disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: 0.6;
}

.payment-method-list label.disabled:hover {
  background: none;
}

.payment-method-list .badge {
  margin-left: auto;
  white-space: nowrap;
  background: var(--background-soft);
  color: var(--muted);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  cursor: pointer;
}

.checkbox-field input {
  margin-top: 3px;
}

.checkbox-field .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.checkbox-field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.donation-summary {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.donation-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.donation-summary-row.total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
}

.donation-protection-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.donation-protection-note .icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Processing panel: swapped in for the form after submit, one state at a time. */
.donation-processing {
  text-align: center;
  padding: 20px 0;
}

.donation-processing .state {
  display: none;
}

.donation-processing .state.active {
  display: block;
}

.donation-processing .state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.donation-processing .state-icon.waiting {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.donation-processing .state-icon.error {
  background: #fff0ef;
  color: var(--danger);
}

.donation-processing .state-icon.success {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.donation-processing .state-icon .icon {
  width: 32px;
  height: 32px;
}

.donation-processing .state-icon .spinner {
  width: 26px;
  height: 26px;
  border-width: 3px;
  border-color: rgba(16, 122, 76, 0.25);
  border-top-color: var(--primary-dark);
}

.donation-processing h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.donation-processing p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

.donation-processing .btn {
  margin-top: 24px;
}

.donation-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.donation-item .name {
  font-size: 14px;
  color: var(--dark);
}

.donation-item .meta {
  font-size: 13px;
  color: var(--muted);
}

.donation-item .meta strong {
  color: var(--dark);
}

.donation-item .msg {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.donations-more {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.mobile-donate-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 500;
  gap: 10px;
  padding: 12px 16px;
  background: var(--background);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(16, 35, 27, 0.08);
}

@media (max-width: 900px) {
  .campaign-detail {
    grid-template-columns: 1fr;
  }

  .detail-image {
    height: 300px;
  }

  .donate-box {
    position: static;
  }

  .mobile-donate-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-donate-spacer {
    height: 76px;
  }
}

/* =========================
           MOBILE MONEY
        ========================= */

.payment-section {
  background: var(--dark);
  color: white;
  border-radius: 30px;
  width: min(var(--container), calc(100% - 40px));
  margin: 90px auto;
  overflow: hidden;
}

.payment-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 70px;
}

.payment-section h2 {
  font-size: 40px;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}

.payment-section p {
  color: #b5c4bd;
  margin-bottom: 25px;
}

.payment-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.phone {
  width: 280px;
  margin: auto;
  background: #f7faf8;
  border: 8px solid #263d32;
  border-radius: 35px;
  padding: 18px;
  color: var(--dark);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.phone-notch {
  width: 80px;
  height: 7px;
  background: #263d32;
  border-radius: 20px;
  margin: -5px auto 20px;
}

.phone-header {
  font-size: 12px;
  color: var(--muted);
}

.phone-amount {
  font-size: 31px;
  font-weight: 800;
  margin: 10px 0 20px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
}

.payment-option .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* =========================
           TRUST
        ========================= */

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

.trust-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.trust-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 15px;
  margin-bottom: 20px;
}

.trust-icon .icon {
  width: 24px;
  height: 24px;
}

.trust-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.trust-card p {
  color: var(--text);
  font-size: 13px;
}

/* =========================
           TWO-COLUMN (image + copy)
           Used by About and How it Works
        ========================= */

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.imagebox {
  height: 420px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  background-color: var(--background-soft);
}

.copy h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -1px;
  margin: 10px 0 14px;
}

.copy>p {
  color: var(--text);
}

.list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list>div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.list .check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 13px;
}

.list .check .icon {
  width: 16px;
  height: 16px;
}

/* =========================
           CONTACT
        ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
}

.info-row .check {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.info-row .check .icon {
  width: 20px;
  height: 20px;
}

.info-row strong {
  display: block;
  font-size: 14px;
}

.info-row p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.form {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form h2 {
  margin-bottom: 6px;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--dark);
  background: white;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form .btn {
  margin-top: 20px;
  width: 100%;
}

.form-success {
  margin-top: -10px;
  margin-bottom: 24px;
}

/* =========================
           TESTIMONIAL
        ========================= */

.testimonial {
  background: var(--background-soft);
}

.testimonial-box {
  max-width: 850px;
  margin: auto;
  text-align: center;
}

.quote {
  font-size: 55px;
  color: var(--primary);
  font-family: Georgia, serif;
  line-height: 0.7;
}

.testimonial-box blockquote {
  font-size: 26px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  margin: 25px 0;
  letter-spacing: -0.5px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.person-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d8eee4;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 800;
}

.person-info {
  text-align: left;
}

.person-info strong {
  display: block;
  font-size: 13px;
}

.person-info span {
  color: var(--muted);
  font-size: 11px;
}

/* =========================
           FAQ
        ========================= */

.faq {
  max-width: 800px;
  margin: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  border: 0;
  background: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  color: var(--dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  color: var(--text);
  font-size: 14px;
}

.faq-answer-inner {
  padding-bottom: 20px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-plus {
  transform: rotate(45deg);
}

.faq-plus {
  font-size: 24px;
  color: var(--primary);
  transition: 0.3s;
}

/* =========================
           CTA
        ========================= */

.cta {
  padding-top: 20px;
}

.cta-box {
  background: radial-gradient(circle at 10% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 30%),
    radial-gradient(circle at 90% 80%,
      rgba(255, 183, 3, 0.18),
      transparent 30%),
    var(--primary);
  color: white;
  border-radius: 30px;
  padding: 65px;
  text-align: center;
}

.cta-box h2 {
  font-size: 42px;
  max-width: 700px;
  margin: auto auto 15px;
}

.cta-box p {
  max-width: 580px;
  margin: auto auto 25px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-box .btn {
  background: white;
  color: var(--primary-dark);
}

/* =========================
           FOOTER
        ========================= */

footer {
  margin-top: 90px;
  border-top: 1px solid var(--border);
  padding: 65px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 50px;
  margin-bottom: 55px;
}

.footer-brand p {
  color: var(--text);
  font-size: 13px;
  max-width: 280px;
  margin: 17px 0;
}

.socials {
  display: flex;
  gap: 8px;
}

.social {
  /* width: 35px; */
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.footer-col h4 {
  font-size: 13px;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-bottom: 11px;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

/* =========================
           TOAST
        ========================= */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--dark);
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transform: translateY(100px);
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
  font-size: 13px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* =========================
           RESPONSIVE
        ========================= */

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .nav-links-actions {
    flex-wrap: wrap;
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  .mobile-menu {
    display: block;
  }

  .two,
  .contact-grid,
  .campaign-detail {
    grid-template-columns: 1fr;
  }

  .imagebox {
    height: 300px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 600px;
    width: 100%;
    margin: auto;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid4,
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .campaign-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .payment-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 30px;
  }

  .payment-badges {
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1/-1;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .navbar {
    height: 68px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -1.8px;
  }

  .hero-description {
    font-size: 15px;
  }

  .floating-card {
    display: none;
  }

  .search-box {
    padding: 7px;
  }

  .search-box input {
    min-width: 0;
    padding: 12px;
  }

  .search-box button {
    padding: 12px 14px;
  }

  section {
    padding: 65px 0;
  }

  .stats {
    padding: 45px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 22px 10px;
  }

  .stat h3 {
    font-size: 25px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid4,
  .grid3 {
    grid-template-columns: 1fr;
  }

  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .payment-section {
    margin: 65px 14px;
    width: calc(100% - 28px);
  }

  .payment-section h2 {
    font-size: 31px;
  }

  .cta-box {
    padding: 45px 22px;
    border-radius: 22px;
  }

  .cta-box h2 {
    font-size: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================
           LANG SWITCH & FLASH
           (additions for the live app, not present in the original template)
        ========================= */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--primary);
}

.flash {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
}

.flash-message {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(22, 166, 106, 0.25);
}

.flash-error {
  background: #fdecec;
  color: #b3261e;
  border: 1px solid rgba(232, 93, 93, 0.3);
}

/* ==========================================================================
   ALERT MODAL + TOAST (public/assets/public/js/app.js's `Alert` component)
   ========================================================================== */

.alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 35, 27, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.alert-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.alert-modal {
  background: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.15s ease;
}

.alert-backdrop.open .alert-modal {
  transform: scale(1);
}

.alert-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.alert-modal-icon.danger {
  background: #fdecec;
  color: var(--danger);
}

.alert-modal-icon.neutral {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.alert-modal-icon .icon {
  width: 24px;
  height: 24px;
}

.alert-modal h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--dark);
}

.alert-modal p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 22px;
}

.alert-modal-actions {
  display: flex;
  gap: 10px;
}

.alert-modal-actions .btn {
  flex: 1;
}

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(22, 166, 106, 0.25);
}

.toast.error {
  background: #fdecec;
  color: #b3261e;
  border: 1px solid rgba(232, 93, 93, 0.3);
}

.toast .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  display: flex;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

.toast-close .icon {
  width: 14px;
  height: 14px;
  margin-top: 0;
}

@media (max-width: 480px) {
  .toast-stack {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}