@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #04120e;
  --bg-surface: #0a231b;
  --bg-card: rgba(13, 44, 34, 0.65);
  --bg-card-hover: rgba(19, 61, 48, 0.8);
  --border-card: rgba(52, 211, 153, 0.18);
  --border-gold: rgba(245, 158, 11, 0.35);
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #047857;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Amiri', serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
  --shadow-gold-glow: 0 0 25px rgba(245, 158, 11, 0.3);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(4, 120, 87, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(52, 211, 153, 0.35);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 18, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.12);
  padding: 14px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--gold-light);
  display: block;
}

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

.btn-header-admin {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-header-admin:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Quran Verse / Hadith Carousel Banner */
.verse-banner {
  margin: 24px 0;
  padding: 24px 30px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(245, 158, 11, 0.08));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verse-banner::before {
  content: '﷽';
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: rgba(245, 158, 11, 0.4);
  display: block;
  margin-bottom: 8px;
}

.verse-arabic {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  line-height: 2.1;
  color: #fef08a;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  direction: rtl;
}

.verse-translation {
  font-size: 0.92rem;
  color: #e2e8f0;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 8px;
}

.verse-source {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 30px 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
}

/* Quota & Target Card (Core Highlight) */
.quota-card {
  padding: 30px;
  margin-bottom: 40px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(7, 34, 26, 0.85));
  border: 1px solid rgba(52, 211, 153, 0.3);
  position: relative;
  overflow: hidden;
}

.quota-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}

.quota-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.quota-date-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quota-status-badge {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-open {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--primary);
  color: #6ee7b7;
}

.badge-full {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold);
  color: #fde68a;
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.quota-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-value.highlight-green {
  color: #34d399;
}

.stat-value.highlight-gold {
  color: var(--gold-light);
}

/* Animated Progress Bar */
.progress-container {
  margin-bottom: 18px;
}

.progress-track {
  width: 100%;
  height: 22px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #10b981, #f59e0b);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: progressShimmer 2.5s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.quota-rollover-info {
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed var(--gold);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Two Column Layout for Menu & Form */
.grid-main {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  margin-bottom: 48px;
}

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

/* Menu Calendar Card */
.menu-card {
  padding: 26px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.menu-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.menu-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.menu-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.menu-preview-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.menu-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Donation Form Card */
.form-card {
  padding: 28px;
  background: linear-gradient(150deg, rgba(16, 44, 34, 0.8), rgba(6, 26, 20, 0.9));
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

@media (max-width: 500px) {
  .portion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portion-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 8px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #ffffff;
}

.portion-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
}

.portion-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(4, 120, 87, 0.5));
  border-color: var(--primary-light);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.portion-btn .num {
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
}

.portion-btn .price {
  font-size: 0.72rem;
  color: var(--gold-light);
}

.input-text, .input-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}

.input-text:focus, .input-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Payment & Total Box */
.payment-summary-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.summary-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* QRIS & Bank Display */
.qris-bank-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.qris-thumb {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
}

.qris-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-info {
  flex: 1;
}

.bank-name {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 700;
}

.bank-acc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.bank-acc-number {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--primary);
}

.btn-submit-donation {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-donation:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.55);
}

/* Wall of Prayers (Papan Doa) */
.prayers-section {
  margin-bottom: 48px;
}

.prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.prayer-card {
  padding: 20px;
  border-left: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prayer-donor {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.prayer-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prayer-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-style: italic;
  margin-bottom: 14px;
  flex-grow: 1;
}

.prayer-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-aamiin {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fef08a;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-aamiin:hover {
  background: var(--gold);
  color: #04120e;
  transform: scale(1.05);
}

/* Gallery Section */
.gallery-section {
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(4, 18, 14, 0.95), transparent);
}

.gallery-caption h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.gallery-caption p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Floating Serene Audio Player */
.floating-audio-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: rgba(6, 26, 20, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.25);
  animation: floatGentle 4s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.btn-audio-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b45309);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.audio-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
}

.audio-soundwaves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.audio-soundwaves span {
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  height: 6px;
  transition: height 0.2s ease;
}

.audio-soundwaves.playing span:nth-child(1) { animation: wave 0.8s infinite ease-in-out; }
.audio-soundwaves.playing span:nth-child(2) { animation: wave 1.1s infinite ease-in-out 0.2s; }
.audio-soundwaves.playing span:nth-child(3) { animation: wave 0.9s infinite ease-in-out 0.4s; }
.audio-soundwaves.playing span:nth-child(4) { animation: wave 1.2s infinite ease-in-out 0.1s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.btn-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(52, 211, 153, 0.12);
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
}
