/* =========================================================
   SALAMAH PEDULI INDONESIA - PWA STYLESHEET (V2)
   Palette: Deep Forest Green (#1B432C), Warm Beige (#EAE0D5), Gold (#C4A468)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --green-dark: #1B432C;
  --green-mid: #25573A;
  --green-light: #E8F1EC;
  --beige: #EAE0D5;
  --beige-light: #F5EFEA;
  --paper-cream: #FAF6F0;
  --gold: #C4A468;
  --gold-dark: #A58549;
  --text-dark: #1A2E22;
  --text-muted: #5F6F65;
  --white: #FFFFFF;
  --shadow-sm: 0 4px 14px rgba(27, 67, 44, 0.08);
  --shadow-md: 0 10px 28px rgba(27, 67, 44, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: #FFFFFF;
  color: var(--text-dark);
  padding-bottom: 96px;
  overflow-x: hidden;
}

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

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

/* =========================================================
   1. SPLASH SCREEN
   ========================================================= */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: var(--green-dark);
  color: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-box {
  width: 96px;
  height: 96px;
  background-color: var(--beige);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: pulseLogo 1.8s infinite ease-in-out;
}

.splash-logo-box img {
  width: 74px;
  height: 74px;
}

.splash-hadith {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.55;
  max-width: 420px;
  margin-bottom: 14px;
  color: #F4EFEA;
}

.splash-source {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--beige);
  letter-spacing: 0.5px;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* =========================================================
   2. HEADERS (BERANDA & SUBPAGE)
   ========================================================= */
.top-hero-wrapper {
  background-color: var(--green-dark);
  color: var(--white);
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
  padding-top: 14px;
  padding-bottom: 58px;
  position: relative;
}

.subpage-header {
  background-color: var(--green-dark);
  color: var(--white);
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  padding: 14px 0 16px;
}

.breadcrumb-bar {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  padding-left: 2px;
}

.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-pill {
  background-color: var(--beige);
  color: var(--green-dark);
  padding: 6px 14px 6px 8px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.15;
}

.brand-pill img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.desktop-nav-links {
  display: none;
  gap: 20px;
  align-items: center;
}

.desktop-nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--beige);
  transition: color 0.2s;
}

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

@media (min-width: 900px) {
  .desktop-nav-links {
    display: flex;
  }
}

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

.icon-btn {
  background: transparent;
  border: none;
  color: var(--beige);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.badge-dot {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 8px;
  height: 8px;
  background-color: #E74C3C;
  border-radius: 50%;
}

.welcome-greeting {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-greeting small {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  color: var(--beige);
  text-transform: uppercase;
}

.welcome-greeting h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
}

.btn-install-pwa {
  background-color: var(--gold);
  color: var(--green-dark);
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Banner Carousel */
.hero-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.28);
  background: #122E1E;
}

.hero-slides {
  display: flex;
  transition: transform 0.45s ease;
}

.hero-slide {
  min-width: 100%;
}

.hero-slide img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .hero-slide img {
    height: 340px;
  }
}

.hero-caption {
  text-align: center;
  padding: 12px 16px 6px;
}

.hero-caption h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(234, 224, 213, 0.35);
  cursor: pointer;
}

.carousel-dots span.active {
  background: var(--gold);
  width: 20px;
  border-radius: 10px;
}

/* Floating Quick Menu Card */
.quick-menu-wrapper {
  margin-top: -42px;
  position: relative;
  z-index: 10;
}

.quick-menu-card {
  background-color: var(--beige);
  border-radius: 22px;
  padding: 18px 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  box-shadow: var(--shadow-md);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.quick-icon-box {
  width: 58px;
  height: 58px;
  background-color: var(--green-dark);
  color: var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}

.quick-item span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* =========================================================
   3. HALAMAN TENTANG KAMI (Gambar 1 & 2)
   ========================================================= */
.about-hero-wrap {
  position: relative;
  margin-bottom: 46px;
}

.about-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (min-width: 768px) {
  .about-hero-img {
    height: 320px;
  }
}

.about-floating-logo {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  background: var(--beige);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.about-floating-logo img {
  width: 58px;
  height: 58px;
}

.about-main-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.about-intro-box {
  border: 1.8px solid var(--gold);
  border-radius: 16px;
  padding: 18px;
  background: var(--white);
  margin-bottom: 20px;
}

.about-intro-box h2 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.about-intro-box p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-misi-box {
  background-color: var(--green-dark);
  color: var(--white);
  border-radius: 26px;
  padding: 24px 22px;
  margin-bottom: 28px;
}

.about-misi-box h2 {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.about-misi-box ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: center;
  list-style-position: inside;
}

/* Struktur Pengurus Org Chart (Gambar 2) */
.org-chart-section {
  text-align: center;
  margin: 24px 0 32px;
}

.org-badge-title {
  display: inline-block;
  background-color: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  font-size: 0.96rem;
  padding: 8px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}

.org-node {
  background-color: var(--beige);
  color: var(--green-dark);
  border-radius: 12px;
  padding: 10px 18px;
  min-width: 155px;
  box-shadow: var(--shadow-sm);
}

.org-node strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}

.org-node span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.org-connector-v {
  width: 2.5px;
  height: 16px;
  background-color: var(--green-dark);
}

.org-connector-v-sm {
  width: 2.5px;
  height: 12px;
  background-color: var(--green-dark);
  margin: 0 auto;
}

.org-connector-h {
  width: 56%;
  height: 2.5px;
  background-color: var(--green-dark);
}

.org-connector-h-sub {
  width: 58%;
  height: 2.5px;
  background-color: var(--green-dark);
  margin: 0 auto;
}

.org-level-2 {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 12px;
  width: 100%;
  align-items: start;
}

.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-level-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.org-branch-sub .org-node {
  min-width: 125px;
  padding: 9px 10px;
}

/* =========================================================
   4. HALAMAN DONASI & DETAIL PROGRAM (Gambar 3 - 8 & 10)
   ========================================================= */
.page-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.donation-main-wrapper {
  border: 1.6px solid var(--green-dark);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  max-width: 680px;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .donation-cover-img {
    height: 300px;
  }
}

.donation-inner-body {
  padding: 16px;
}

.donation-campaign-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 22px;
}

/* Progress Bar + Callout Pin Persentase */
.progress-callout-wrap {
  position: relative;
  padding-top: 12px;
}

.progress-badge-pin {
  position: absolute;
  top: -12px;
  background-color: var(--green-dark);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.progress-badge-pin::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: var(--green-dark) transparent transparent;
}

/* 4 Pill Tabs Bar (Gambar 3 & 10) */
.pill-tabs-bar {
  background-color: var(--green-dark);
  border-radius: 14px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 18px;
}

.pill-tab-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 9px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-tab-btn.active {
  background-color: var(--beige);
  color: var(--green-dark);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Nominal Donasi Besar (Gambar 3) */
.nominal-display-box {
  text-align: center;
  margin-bottom: 12px;
}

.nominal-label {
  font-size: 0.8rem;
  color: var(--green-dark);
  font-weight: 600;
}

.nominal-big-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 2px solid var(--green-dark);
  padding: 6px 0 8px;
  margin: 4px auto 14px;
  max-width: 310px;
}

.nominal-big-input-row span {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--green-dark);
}

.nominal-big-input-row input {
  border: none;
  outline: none;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--green-dark);
  width: 195px;
  text-align: left;
  background: transparent;
}

.nominal-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.preset-btn {
  background-color: var(--beige);
  color: var(--green-dark);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.preset-btn.active, .preset-btn:hover {
  border-color: var(--green-dark);
  background-color: #DFD1C2;
}

.dashed-divider {
  border: 0;
  border-top: 2px dashed var(--green-dark);
  margin: 18px 0;
}

.beige-input {
  background-color: var(--beige) !important;
  border: 1.5px solid var(--green-dark) !important;
  color: var(--green-dark) !important;
  font-weight: 600;
}

.checkbox-anonim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
  cursor: pointer;
}

.checkbox-anonim input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-dark);
}

.field-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* Metode Pembayaran Accordion (Gambar 4 - 7) */
.pay-accordion-item {
  margin-bottom: 10px;
}

.pay-acc-header {
  width: 100%;
  background-color: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.pay-acc-body {
  display: none;
  background-color: var(--beige);
  border: 1.5px solid var(--green-dark);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 10px;
  margin-top: -4px;
}

.pay-acc-body.open {
  display: block;
}

.bank-radio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--green-dark);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--beige-light);
  cursor: pointer;
}

.bank-radio-card:last-child {
  margin-bottom: 0;
}

.bank-radio-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-radio-left input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green-dark);
}

.bank-radio-left strong {
  display: block;
  font-size: 0.84rem;
  color: var(--green-dark);
}

.bank-radio-left small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bank-logo-text {
  font-weight: 900;
  font-size: 0.92rem;
}

/* Kartu Target Pembayaran (QRIS / Rekening) */
.payment-target-card {
  border: 1.6px solid var(--green-dark);
  border-radius: 16px;
  padding: 16px;
  background: var(--white);
}

.qris-poster-box {
  max-width: 240px;
  margin: 0 auto 14px;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  padding: 12px;
  background: #FFF;
  box-shadow: var(--shadow-sm);
}

.qris-top-strip {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #D32F2F;
  margin-bottom: 6px;
}

.qris-merchant {
  font-weight: 800;
  font-size: 0.85rem;
  color: #111;
}

.rek-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.rek-number-row strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-dark);
}

.nominal-copy-box {
  background-color: var(--beige);
  border: 1.5px solid var(--green-dark);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.nominal-copy-box strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
}

.copy-icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--green-dark);
  cursor: pointer;
}

.payment-important-notes {
  font-size: 0.74rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.payment-important-notes ul {
  padding-left: 16px;
  margin-top: 3px;
}

.deadline-pill {
  background-color: var(--green-dark);
  color: var(--white);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
}

/* Cara Pembayaran Accordion (Gambar 5 - 8) */
.guide-acc-item {
  margin-bottom: 10px;
}

.guide-acc-header {
  width: 100%;
  background-color: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.guide-acc-body {
  display: none;
  background-color: var(--beige);
  border: 1.5px solid var(--green-dark);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 10px 14px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--green-dark);
}

.guide-acc-item.open .guide-acc-body {
  display: block;
}

.guide-acc-body ul {
  padding-left: 16px;
}

/* Dropzone Upload Bukti Transfer (Gambar 4 & 8) */
.upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 105px;
  background-color: var(--beige);
  border: 1.6px solid var(--green-dark);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
}

.btn-submit-donasi {
  display: block;
  width: 85%;
  max-width: 320px;
  margin: 14px auto 4px;
  background-color: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

/* Tab Detail Program (Gambar 10) */
.detail-video-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #111;
}

.detail-video-box img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  opacity: 0.85;
  display: block;
}

.detail-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0,0,0,0.32);
  text-align: center;
  padding: 12px;
}

.detail-video-overlay i {
  font-size: 2.6rem;
  color: var(--beige);
  margin-bottom: 4px;
}

.detail-video-overlay span {
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-story-text {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--green-dark);
}

.donatur-list-card {
  background: var(--beige-light);
  border: 1px solid #D8CFC4;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

/* =========================================================
   5. HALAMAN DONASI BERHASIL / STRUK KERTAS (Gambar 9)
   ========================================================= */
.receipt-scroll-wrapper {
  position: relative;
  width: 100%;
  max-width: 390px;
  padding-left: 34px;
}

.receipt-curl-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 105px;
  background-color: var(--beige);
  border: 5px solid var(--green-dark);
  border-top-left-radius: 36px;
  border-top-right-radius: 32px;
  border-bottom: none;
  z-index: 2;
}

.receipt-curl-top::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: -5px;
  width: 44px;
  height: 16px;
  background: var(--green-dark);
  clip-path: polygon(0 40%, 35% 100%, 70% 40%, 100% 90%, 100% 100%, 0 100%);
}

.receipt-paper-body {
  background-color: var(--paper-cream);
  border: 5px solid var(--green-dark);
  border-bottom: none;
  border-top-right-radius: 36px;
  padding: 28px 20px 22px 26px;
  position: relative;
  z-index: 1;
}

.receipt-title-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.receipt-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: 0.5px;
}

.receipt-title-underline {
  width: 185px;
  height: 5px;
  background-color: var(--green-dark);
  border-radius: 10px;
  margin: 5px auto 0;
}

.receipt-subtitle {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.receipt-detail-table {
  width: 100%;
  font-size: 0.8rem;
  color: var(--green-dark);
  border-collapse: collapse;
}

.receipt-detail-table td {
  padding: 3.5px 2px;
  vertical-align: top;
}

.receipt-detail-table td:first-child {
  width: 46%;
  font-weight: 600;
}

.receipt-message {
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 20px;
}

.receipt-sign {
  text-align: right;
  padding-right: 6px;
}

.receipt-sign strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--green-dark);
}

.receipt-sign-line {
  width: 120px;
  height: 4px;
  background-color: var(--green-dark);
  border-radius: 8px;
  margin-left: auto;
  margin-top: 4px;
}

/* =========================================================
   6. SECTIONS & CARDS BERANDA + DRAWER + BOTTOM NAV + DASHBOARD
   ========================================================= */
.section-block { margin-top: 28px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-header h3 { font-size: 1.02rem; font-weight: 800; color: var(--green-dark); }
.section-header a { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }

.horizontal-scroll-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

@media (min-width: 900px) {
  .horizontal-scroll-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow-x: visible; }
  .grid-2-desktop { grid-template-columns: repeat(2, 1fr); }
}

.campaign-card {
  min-width: 295px;
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--green-dark);
  border-radius: 18px;
  padding: 12px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.campaign-card img { width: 100%; height: 175px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.campaign-card h4 { font-size: 0.98rem; font-weight: 800; color: var(--green-dark); margin-bottom: 6px; }
.donor-count { font-size: 0.76rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.progress-track { width: 100%; height: 9px; background-color: var(--beige); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background-color: var(--green-dark); border-radius: 10px; }
.fund-row { display: flex; justify-content: space-between; font-size: 0.74rem; margin-bottom: 12px; }
.fund-row strong { color: var(--green-dark); font-weight: 800; }

.btn-primary-green {
  width: 100%;
  background-color: var(--green-dark);
  color: var(--white);
  border: none;
  padding: 10px 14px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

.event-card { min-width: 245px; background: var(--white); border: 1.5px solid #D3DDD7; border-radius: 18px; padding: 10px; position: relative; scroll-snap-align: start; }
.event-badge { position: absolute; top: 10px; left: 10px; background-color: var(--gold); color: var(--green-dark); font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 8px 0 10px 0; }
.event-card img { width: 100%; height: 215px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.event-card h4 { font-size: 0.95rem; font-weight: 800; color: var(--green-dark); margin-bottom: 8px; }
.event-meta { list-style: none; font-size: 0.76rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }

.merch-card { min-width: 210px; background: var(--white); border: 1.5px solid #D3DDD7; border-radius: 18px; overflow: hidden; scroll-snap-align: start; }
.merch-card img { width: 100%; height: 170px; object-fit: cover; }
.merch-body { padding: 12px; }
.merch-cat { font-size: 0.72rem; color: var(--text-muted); }
.merch-title { font-size: 0.94rem; font-weight: 800; color: var(--green-dark); margin: 3px 0 8px; }
.merch-price { font-size: 1.02rem; font-weight: 800; color: var(--green-dark); }

.article-card { min-width: 265px; background: var(--white); border: 1.5px solid var(--gold); border-radius: 18px; overflow: hidden; scroll-snap-align: start; }
.article-card img { width: 100%; height: 155px; object-fit: cover; }
.article-body { padding: 12px; }
.article-date { font-size: 0.72rem; color: var(--gold-dark); font-weight: 600; }
.article-body h4 { font-size: 0.92rem; font-weight: 800; color: var(--green-dark); margin: 5px 0; }
.article-body p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.45; }

.tokoh-card { min-width: 295px; background: var(--white); border: 1.5px solid var(--green-dark); border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 12px; scroll-snap-align: start; }
.tokoh-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.tokoh-info h5 { font-size: 0.88rem; font-weight: 800; color: var(--green-dark); }
.tokoh-info small { display: block; font-size: 0.72rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 4px; }
.tokoh-info p { font-size: 0.74rem; font-style: italic; color: var(--text-dark); }

.mitra-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.mitra-box { min-width: 68px; height: 68px; background-color: var(--beige); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.mitra-box img { width: 48px; height: 48px; }

.footer-card { background-color: var(--green-dark); color: var(--white); border-radius: 28px; padding: 28px 20px; text-align: center; margin-top: 30px; }
.footer-desc { max-width: 560px; margin: 14px auto 18px; font-size: 0.82rem; line-height: 1.6; color: var(--beige); }
.footer-socials { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.footer-socials a { width: 38px; height: 38px; background-color: var(--beige); color: var(--green-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.footer-divider { border: 0; border-top: 1px solid rgba(234, 224, 213, 0.3); margin: 14px auto; max-width: 420px; }

/* Drawer & Bottom Nav & Modal */
.drawer-overlay { position: fixed; inset: 0; background: rgba(12, 32, 20, 0.65); z-index: 1050; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.drawer-overlay.active { opacity: 1; visibility: visible; }
.sidebar-drawer { position: fixed; top: 0; left: -320px; width: 285px; height: 100vh; background-color: var(--beige); z-index: 1060; transition: left 0.32s ease; overflow-y: auto; box-shadow: 6px 0 28px rgba(0,0,0,0.3); }
.sidebar-drawer.active { left: 0; }
.drawer-header { background-color: var(--green-dark); color: var(--white); padding: 28px 20px 24px; text-align: center; }
.drawer-avatar { width: 82px; height: 82px; background-color: var(--beige); border-radius: 18px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.drawer-avatar img { width: 64px; height: 64px; }
.drawer-menu-list { list-style: none; padding: 18px 22px 40px; color: var(--green-dark); }
.drawer-menu-list > li { margin-bottom: 12px; }
.drawer-link-title { font-weight: 800; font-size: 0.96rem; display: block; padding: 4px 0; }
.drawer-sublist { list-style: none; padding-left: 14px; margin-top: 4px; }
.drawer-sublist li a { display: block; padding: 4px 0; font-size: 0.88rem; font-weight: 600; color: var(--green-mid); }
.drawer-sublist li a::before { content: "> "; font-weight: 800; }

.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 680px; background-color: var(--beige);
  border-top-left-radius: 24px; border-top-right-radius: 24px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 8px 6px 10px; box-shadow: 0 -6px 24px rgba(27, 67, 44, 0.14); z-index: 990;
}
.bnav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--green-dark); font-size: 0.74rem; font-weight: 700; }
.bnav-center-wrap { display: flex; flex-direction: column; align-items: center; margin-top: -28px; }
.bnav-center-btn { width: 58px; height: 58px; background-color: var(--green-dark); color: var(--beige); border-radius: 16px; border: 3px solid var(--beige); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; }

.menu-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 38, 25, 0.72); z-index: 1100; display: none; align-items: center; justify-content: center; padding: 18px; }
.menu-modal-backdrop.active { display: flex; }
.menu-modal-card { background-color: var(--beige); width: 100%; max-width: 400px; border-radius: 28px; padding: 22px 20px 26px; }
.menu-modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.menu-modal-top h3 { font-size: 1.25rem; font-weight: 800; color: var(--green-dark); }
.auth-banner-box { background-color: var(--gold); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.auth-banner-text small { display: block; font-size: 0.7rem; font-weight: 700; color: var(--white); }
.auth-banner-text strong { font-size: 0.85rem; color: var(--green-dark); line-height: 1.25; display: block; }
.auth-banner-btns { display: flex; gap: 6px; }
.btn-masuk-dark { background: var(--green-dark); color: var(--white); padding: 6px 12px; border-radius: 9px; font-size: 0.76rem; font-weight: 700; }
.btn-daftar-light { background: var(--beige); color: var(--green-dark); border: 1.5px solid var(--green-dark); padding: 5px 11px; border-radius: 9px; font-size: 0.76rem; font-weight: 700; }
.menu-grid-9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.menu-grid-item { background-color: var(--green-dark); color: var(--white); border-radius: 18px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.menu-grid-item i { font-size: 1.55rem; color: var(--beige); }
.menu-grid-item span { font-size: 0.76rem; font-weight: 700; }

/* Dashboard User & Admin */
.dashboard-layout { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .dashboard-layout { grid-template-columns: 260px 1fr; } }
.dash-sidebar { background: var(--green-dark); color: var(--white); border-radius: 22px; padding: 20px; height: fit-content; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--beige); font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.dash-nav a.active, .dash-nav a:hover { background: var(--gold); color: var(--green-dark); font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--white); border: 1.5px solid #DCE5DF; border-radius: 18px; padding: 16px; }
.stat-card small { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; }
.stat-card h3 { color: var(--green-dark); font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.panel-box { background: var(--white); border-radius: 20px; padding: 20px; border: 1.5px solid #DCE5DF; margin-bottom: 20px; }
.table-responsive { overflow-x: auto; }
table.clean-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.clean-table th { background: var(--beige); color: var(--green-dark); text-align: left; padding: 11px 12px; font-weight: 800; }
table.clean-table td { padding: 11px 12px; border-bottom: 1px solid #EEF2EF; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 13px; border: 1.5px solid #CBD6CF; border-radius: 12px; font-size: 0.9rem; }
.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; }
.badge-paid { background: #D4EDDA; color: #155724; }
.badge-pending { background: #FFF3CD; color: #856404; }
