/* ==========================================================================
   MASJID MIFTAHUL JANNAH - PARIT TENGAH BARU
   Master Ecosystem Stylesheet (Unified Landing Page & PWA Super App)
   ========================================================================== */

:root {
  --primary-950: #021a15;
  --primary-900: #042f27;
  --primary-800: #064e3b;
  --primary-700: #047857;
  --primary-600: #059669;
  --primary-500: #10b981;
  --primary-400: #34d399;
  --primary-300: #6ee7b7;
  --primary-100: #d1fae5;

  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-300: #fbbf24;
  --gold-200: #fde68a;
  --gold-100: #fef3c7;

  --neutral-950: #020617;
  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-400: #94a3b8;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --white: #ffffff;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 8px 24px rgba(245, 158, 11, 0.25);
  --shadow-emerald: 0 8px 24px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--primary-950);
  color: #e2e8f0;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 72px; /* Space for mobile bottom bar */
  overflow-x: hidden;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

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

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-tag.tag-white {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.35rem;
  }
}

.section-subtitle {
  font-size: 1rem;
  color: var(--neutral-400);
  line-height: 1.6;
}

.section-subtitle code {
  color: var(--gold-300);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */

.top-bar {
  background-color: #021612;
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  font-size: 0.8125rem;
  padding: 8px 0;
  position: relative;
  z-index: 50;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.top-info-item svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-400);
  flex-shrink: 0;
}

.top-info-item.highlight-gold {
  color: var(--gold-300);
  font-weight: 600;
}

.top-info-item.hijri-tag {
  color: #94a3b8;
}

.top-bar-pwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-600);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.top-bar-pwa-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.top-bar-pwa-btn:hover {
  background: var(--primary-500);
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: inline-flex;
  }
}

/* ==========================================================================
   SITE HEADER & UNIFIED NAVBAR
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 47, 39, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  transition: var(--transition-normal);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.brand-title-group h1 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-title-group p {
  font-size: 0.75rem;
  color: var(--primary-300);
  font-weight: 500;
  line-height: 1.2;
}

/* Desktop Navigation */
.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--gold-300);
  background: rgba(245, 158, 11, 0.1);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-400);
}

.nav-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.85;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-app-launcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-app-launcher:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
}

.dots-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.launcher-label {
  display: none;
}

@media (min-width: 640px) {
  .launcher-label {
    display: inline;
  }
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #042f27;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-fast);
}

.btn-header-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ==========================================================================
   APP LAUNCHER MODAL / 9-DOTS DRAWER
   ========================================================================== */

.launcher-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.launcher-modal {
  background: #062e26;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.launcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.launcher-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.launcher-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.launcher-header-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.launcher-header-title p {
  font-size: 0.8rem;
  color: var(--neutral-400);
}

.launcher-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--neutral-400);
  line-height: 1;
  padding: 4px;
  transition: var(--transition-fast);
}

.launcher-close-btn:hover {
  color: var(--white);
}

.launcher-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 20px;
}

@media (min-width: 520px) {
  .launcher-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.launcher-app-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  text-decoration: none;
}

.launcher-app-item:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.launcher-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.launcher-icon-box svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.bg-emerald { background: #059669; }
.bg-amber { background: #d97706; }
.bg-cyan { background: #0891b2; }
.bg-rose { background: #e11d48; }

.launcher-app-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.launcher-app-item p {
  font-size: 0.75rem;
  color: var(--neutral-400);
  margin-bottom: 8px;
}

.badge-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
}

.badge-status.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-300);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.launcher-footer {
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.launcher-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--neutral-400);
  flex-wrap: wrap;
  gap: 10px;
}

.btn-pwa-small {
  background: var(--gold-500);
  color: #042f27;
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

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

.hero-section {
  position: relative;
  padding: 60px 0 80px;
  background: radial-gradient(circle at 20% 30%, #064e3b 0%, #042f27 50%, #021a15 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

@media (min-width: 992px) {
  .hero-section {
    padding: 90px 0 110px;
  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 185, 129, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary-300);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--primary-400);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.85rem;
  }
}

.gold-gradient {
  background: linear-gradient(135deg, #fde68a, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-desc strong {
  color: var(--white);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #042f27;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-fast);
}

.btn-primary-hero svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-600);
  border: 1px solid var(--primary-500);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-emerald);
  transition: var(--transition-fast);
}

.btn-secondary-hero svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.btn-outline-hero svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-300);
}

.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-features-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--neutral-400);
}

.feature-item svg {
  width: 15px;
  height: 15px;
  fill: var(--primary-400);
}

/* ==========================================================================
   PRAYER SCHEDULE GLASS WIDGET
   ========================================================================== */

.hero-widget-wrap {
  width: 100%;
}

.prayer-card-glass {
  background: rgba(6, 46, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

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

.prayer-badge-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--primary-300);
  font-weight: 600;
}

.prayer-badge-location svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.live-clock-text {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-300);
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.next-prayer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 78, 59, 0.4));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.next-prayer-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-400);
  display: block;
  margin-bottom: 2px;
}

.next-prayer-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.next-prayer-clock {
  font-size: 0.875rem;
  color: var(--gold-300);
  font-weight: 600;
}

.countdown-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-width: 90px;
}

.countdown-num {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-300);
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--neutral-400);
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 480px) {
  .prayer-times-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.time-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.time-slot.active-prayer {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-400);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.slot-name {
  font-size: 0.7rem;
  color: var(--neutral-400);
  font-weight: 600;
  margin-bottom: 2px;
}

.slot-time {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
}

.time-slot.active-prayer .slot-name {
  color: var(--gold-300);
}

.time-slot.active-prayer .slot-time {
  color: var(--gold-200);
}

.prayer-card-footer {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.link-full-calendar {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-300);
  transition: var(--transition-fast);
}

.link-full-calendar:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

/* ==========================================================================
   PWA INSTALL BANNER
   ========================================================================== */

.pwa-banner-bar {
  background: linear-gradient(135deg, #064e3b, #042f27);
  border-top: 1px solid var(--primary-500);
  border-bottom: 1px solid var(--primary-500);
  padding: 12px 0;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.pwa-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
}

.pwa-banner-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.pwa-banner-info p {
  font-size: 0.8rem;
  color: var(--neutral-300);
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-install-pwa {
  background: var(--gold-500);
  color: #042f27;
  border: none;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
  transition: var(--transition-fast);
}

.btn-install-pwa:hover {
  background: var(--gold-400);
}

.btn-dismiss-pwa {
  background: none;
  border: none;
  color: var(--neutral-400);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
}

.btn-dismiss-pwa:hover {
  color: var(--white);
}

/* ==========================================================================
   3 PILLAR ECOSYSTEM APPS SECTION
   ========================================================================== */

.ecosystem-section {
  background: #04241d;
}

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

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

.app-card {
  background: #062f26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.card-remas::before { background: linear-gradient(90deg, #10b981, #059669); }
.card-kalender::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.card-quran::before { background: linear-gradient(90deg, #06b6d4, #0891b2); }

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-remas:hover { border-color: rgba(16, 185, 129, 0.5); }
.card-kalender:hover { border-color: rgba(245, 158, 11, 0.5); }
.card-quran:hover { border-color: rgba(6, 182, 212, 0.5); }

.app-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--neutral-400);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  margin-bottom: 20px;
  font-family: monospace;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-400);
}

.app-card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.app-card-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.icon-emerald { background: linear-gradient(135deg, #10b981, #059669); box-shadow: var(--shadow-emerald); }
.icon-amber { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: var(--shadow-gold); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25); }

.app-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
}

.app-card-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.app-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.app-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--neutral-300);
}

.app-card-features li svg {
  width: 17px;
  height: 17px;
  fill: var(--primary-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.app-card-footer {
  margin-top: auto;
}

.btn-app-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-app-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.btn-app-action:hover svg {
  transform: translateX(4px);
}

.btn-remas {
  background: var(--primary-600);
  color: #fff;
}
.btn-remas:hover {
  background: var(--primary-500);
}

.btn-kalender {
  background: var(--gold-500);
  color: #042f27;
}
.btn-kalender:hover {
  background: var(--gold-400);
}

.btn-quran {
  background: #0891b2;
  color: #fff;
}
.btn-quran:hover {
  background: #06b6d4;
}

/* ==========================================================================
   DAILY QURAN VERSE WIDGET
   ========================================================================== */

.quran-daily-section {
  background: #021a15;
}

.quran-daily-card {
  background: radial-gradient(circle at 80% 20%, #064e3b 0%, #042f27 60%, #03201a 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .quran-daily-card {
    padding: 48px;
  }
}

.quran-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.quran-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-300);
}

.quran-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.surah-badge-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.arabic-display-box {
  text-align: right;
  direction: rtl;
  margin-bottom: 24px;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.85rem;
  line-height: 2.2;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .arabic-text {
    font-size: 2.35rem;
    line-height: 2.4;
  }
}

.latin-display-box {
  margin-bottom: 14px;
}

.latin-text {
  font-size: 1rem;
  color: var(--gold-200);
  font-style: italic;
  line-height: 1.6;
}

.translation-display-box {
  margin-bottom: 28px;
}

.translation-text {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.65;
}

.quran-audio-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-play-murottal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #042f27;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
  transition: var(--transition-fast);
}

.btn-play-murottal svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-play-murottal:hover {
  filter: brightness(1.08);
}

.btn-open-full-surah {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-300);
  transition: var(--transition-fast);
}

.btn-open-full-surah:hover {
  color: var(--white);
  text-decoration: underline;
}

.popular-surahs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.popular-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--neutral-400);
}

.surah-chips-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.surah-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.surah-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-200);
}

/* ==========================================================================
   MOSQUE INFO SECTION
   ========================================================================== */

.mosque-info-section {
  background: #03201a;
}

.mosque-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .mosque-info-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
  }
}

.mosque-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.mosque-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mosque-photo-wrap:hover .mosque-photo {
  transform: scale(1.03);
}

.photo-overlay-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(2, 26, 21, 0.95));
}

.photo-overlay-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.photo-overlay-card p {
  font-size: 0.8rem;
  color: var(--gold-300);
}

.mosque-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 28px;
}

.info-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.contact-card-item h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.contact-card-item p {
  font-size: 0.8125rem;
  color: var(--neutral-400);
}

.mosque-action-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.btn-location svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.btn-contact-remas {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-300);
  transition: var(--transition-fast);
}

.btn-contact-remas:hover {
  text-decoration: underline;
}

/* ==========================================================================
   DONATION & QRIS SECTION
   ========================================================================== */

.donation-summary-section {
  background: #021a15;
}

.donation-card-box {
  background: linear-gradient(135deg, #064e3b, #032e24);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

@media (min-width: 900px) {
  .donation-card-box {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 48px;
  }
}

.donation-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.donation-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 22px;
}

.donation-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.qris-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.btn-donate-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #042f27;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
  transition: var(--transition-fast);
}

.btn-donate-gold svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-donate-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.donation-qris-col {
  display: flex;
  justify-content: center;
}

.qris-frame {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  max-width: 280px;
  text-align: center;
}

.qris-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #064e3b;
}

.qris-logo {
  width: 22px;
  height: 22px;
}

.qris-img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.qris-footer-caption {
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1.3;
}

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

.site-footer {
  background: #01120e;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  padding: 60px 0 30px;
  font-size: 0.875rem;
  color: var(--neutral-400);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}

.footer-brand-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand-header p {
  font-size: 0.75rem;
  color: var(--primary-300);
}

.footer-about-text {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--neutral-400);
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.footer-tagline {
  color: var(--gold-300);
  font-weight: 600;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (UNIFIED APP EXPERIENCE)
   ========================================================================== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(4, 36, 29, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 12px;
  background: none;
  border: none;
  text-decoration: none;
  transition: var(--transition-fast);
  flex: 1;
}

.bnav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.15s ease;
}

.bnav-item:hover,
.bnav-item.active {
  color: var(--gold-300);
}

.bnav-item.active svg {
  transform: translateY(-2px);
  fill: var(--gold-400);
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-500);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 90vw;
  text-align: center;
  animation: toastFade 0.25s ease-out;
}

@media (min-width: 992px) {
  .toast-container {
    bottom: 30px;
  }
}

@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
