/* =========================================================
   DONATION PAGE — JA‘FARI SHIA
   Sacred · Trustworthy · Timeless · Premium
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
  --bg-main: #f9fafb;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --bg-elevated-strong: rgba(255, 255, 255, 0.96);

  --border-soft: rgba(0, 0, 0, 0.08);
  --border-gold: rgba(181, 155, 58, 0.35);

  --text-main: #111827;
  --text-soft: #4b5563;
  --text-muted: #6b7280;

  --gold-main: #b59b3a;
  --gold-soft: rgba(181, 155, 58, 0.18);

  --radius-lg: 1.25rem;
  --radius-md: 0.85rem;

  --blur-lg: blur(16px);
}


/* =========================================================
   DIM MODE
   ========================================================= */

body.dim {
  --bg-main: #0f172a;
  --bg-elevated: rgba(31, 41, 55, 0.85);
  --bg-elevated-strong: rgba(31, 41, 55, 0.95);

  --border-soft: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(250, 204, 21, 0.35);

  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #9ca3af;

  --gold-main: #facc15;
  --gold-soft: rgba(250, 204, 21, 0.18);
}


/* =========================================================
   DARK MODE — NIGHT SERENITY
   ========================================================= */

body.dark {
  --bg-main: #020617;
  --bg-elevated: rgba(2, 6, 23, 0.92);
  --bg-elevated-strong: rgba(2, 6, 23, 0.97);

  --border-soft: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 175, 55, 0.35);

  --text-main: #e5e7eb;
  --text-soft: rgba(229, 231, 235, 0.65);
  --text-muted: rgba(229, 231, 235, 0.45);

  --gold-main: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.18);
}


/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, var(--gold-soft), transparent 60%),
    var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

.no-copy {
  user-select: none;
}


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

.app-header {
  background: var(--bg-elevated);
  backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gold {
  color: var(--gold-main);
}

.desktop-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-soft);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-main);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-main);
  border-radius: 2px;
}

.btn_dongl {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.app-main {
  max-width: 1100px;
  margin: auto;
  padding: 2.4rem 1.25rem 5.5rem;
}


/* =========================================================
   CARD BASE
   ========================================================= */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-lg);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}


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

.donation-hero {
  padding: 3.5rem 2rem;
  margin-bottom: 2.8rem;
  border: 1px solid var(--border-gold);
}

.arabic-calligraphy {
  font-family: "Amiri Quran", serif;
  text-align: center;
  line-height: 1.6;
}

.bismillah {
  font-size: 2.3rem;
  color: var(--gold-main);
  text-shadow: 0 0 20px var(--gold-soft);
}

.ayah {
  margin-top: 1.1rem;
  font-size: 1.4rem;
  color: var(--text-soft);
}


.ayah_bismillah {
  margin-top: 1.1rem;
  font-size: 1.3rem;
  color: var(--gold-main);
}

.translation {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.translation .source {
  font-size: 0.7rem;
}


/* =========================================================
   PURPOSE
   ========================================================= */

.donation-purpose {
  padding: 2.4rem 2rem;
  margin-bottom: 2.6rem;
  text-align: center;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.donation-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.donation-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem auto;
  max-width: 520px;
  text-align: left;
  font-size: 0.9rem;
}

.donation-list li {
  padding: 0.45rem 0;
}

.donation-note {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* =========================================================
   METHODS GRID
   ========================================================= */

.donation-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.donation-method {
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-method:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.method-title {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.method-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.qr-wrapper {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.qr-wrapper img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.bank-details {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-soft);
}

.iban {
  margin-top: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.method-note {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}




.crescent {
  margin-top: 2rem;
  font-size: 2.2rem;
  color: var(--gold-main);
  animation: glow 3s ease-in-out infinite;
}



/* =========================================================
   DU‘A
   ========================================================= */

.donation-dua {
  padding: 2.6rem 2rem;
  text-align: center;
  background:
    radial-gradient(circle at top, var(--gold-soft), transparent 70%),
    var(--bg-elevated);
}

.dua-text {
  font-size: 1.6rem;
  color: var(--gold-main);
  text-shadow: 0 0 18px var(--gold-soft);
}

.attribution {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}


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

.app-footer {
  text-align: center;
  padding: 2rem 1rem 4.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* =========================================================
   MOBILE NAV
   ========================================================= */

.mobile-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--bg-elevated-strong);
  backdrop-filter: var(--blur-lg);
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-around;
  padding: 0.65rem 0;
}

.nav-item {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav-item.gold {
  color: var(--gold-main);
}


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

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

  .bismillah {
    font-size: 1.3rem;
  }

  .ayah {
    font-size: 1.2rem;
  }

  .crescent {
    margin-top: 1.4rem;
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .donation-hero {
    padding: 2.6rem 1.4rem;
  }

  
  .bismillah {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .qr-wrapper img {
    width: 150px;
    height: 150px;
  }

  .crescent {
    margin-top: 1.4rem;
    font-size: 1.9rem;
  }
}



/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-elevated-strong);
  border: 1px solid var(--border-soft);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* QR Overlay */
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: grid;
  place-items: center;
  z-index: 9999;
}
.qr-modal img {
  width: 260px;
  border-radius: 1rem;
}
.qr-hint {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: #ccc;
  text-align: center;
}
