:root {
  --green: #087a4a;
  --green2: #064d34;
  --dark: #06271c;
  --soft: #f3faf6;
  --gold: #d8aa4f;
  --muted: #718074;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef3f0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #10231b;
  padding-bottom: 94px;
}

.app {
  max-width: 480px;
  margin: auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 11px 16px;
}

.brand-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.header-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 0;
  background: #f3faf6;
  color: var(--green);
  display: grid;
  place-items: center;
}

/* HERO */
.hero {
  position: relative;
  color: #fff;
  padding: 26px 18px 38px;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(216, 170, 79, 0.34),
      transparent 32%
    ),
    linear-gradient(145deg, #05291d, #07814d);
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}

.hero p {
  position: relative;
  z-index: 2;
  font-size: 14px;
  opacity: 0.9;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-hero-light {
  background: #fff;
  color: var(--green);
  border: 0;
  border-radius: 17px;
  padding: 12px 15px;
  font-weight: 900;
}

.btn-hero-gold {
  background: linear-gradient(145deg, #f3cf7a, #d8aa4f);
  color: #38260a;
  border: 0;
  border-radius: 17px;
  padding: 12px 15px;
  font-weight: 900;
}

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  padding: 15px;
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  font-size: 18px;
}

/* SEARCH */
.search-floating {
  margin: -25px 16px 18px;
  position: relative;
  z-index: 4;
}

.search-card {
  background: #fff;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.11);
}

.search-input {
  position: relative;
}

.search-input i {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--muted);
}

.search-input input {
  height: 50px;
  border: 0;
  background: #f6faf8;
  border-radius: 18px;
  padding-left: 45px;
  font-size: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  background: #f1f7f4;
  color: #335347;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

/* GLOBAL */
.section {
  padding: 0 16px 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 950;
  margin: 0;
}

.see-all {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.btn-jm {
  background: linear-gradient(145deg, var(--green), var(--green2));
  color: #fff;
  border: 0;
  border-radius: 17px;
  padding: 12px 16px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(8, 122, 74, 0.22);
}

.btn-jm:hover {
  color: #fff;
}

.btn-soft {
  background: var(--soft);
  color: var(--green);
  border: 0;
  border-radius: 17px;
  padding: 12px 16px;
  font-weight: 900;
}

/* QUICK MENU */
.quick-menu-wrap {
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
  border: 1px solid #edf3ef;
  border-radius: 30px;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.055);
}

.quick-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.quick-card {
  position: relative;
  overflow: hidden;
  min-height: 105px;
  border-radius: 24px;
  padding: 13px 6px 11px;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(0, 0, 0, 0.065);
}

.quick-card:hover,
.quick-card:active {
  transform: translateY(-7px) scale(1.035);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.quick-card:after {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  right: -36px;
  top: -36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.quick-glow {
  position: absolute;
  width: 38px;
  height: 150px;
  top: -28px;
  left: -70px;
  background: rgba(255, 255, 255, 0.38);
  filter: blur(4px);
  transform: rotate(18deg);
  opacity: 0;
  transition: all 0.55s ease;
}

.quick-card:hover .quick-glow,
.quick-card:active .quick-glow {
  opacity: 1;
  transform: translateX(90px) rotate(18deg);
}

.quick-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  transition: transform 0.28s ease;
}

.quick-card:hover .quick-icon {
  transform: translateY(-4px) rotate(-4deg) scale(1.08);
}

.quick-card span,
.quick-card small {
  position: relative;
  z-index: 2;
  display: block;
  color: #fff;
}

.quick-card span {
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

.quick-card small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.78;
}

.green {
  background: linear-gradient(145deg, #0b8a55, #075034);
}
.gold {
  background: linear-gradient(145deg, #d8aa4f, #7b5417);
}
.dark {
  background: linear-gradient(145deg, #122b22, #061c14);
}
.blue {
  background: linear-gradient(145deg, #147a8a, #06404c);
}
.purple {
  background: linear-gradient(145deg, #7252d6, #34206e);
}
.red {
  background: linear-gradient(145deg, #d95d5d, #7a2424);
}
.teal {
  background: linear-gradient(145deg, #0e9b91, #064c48);
}
.black {
  background: linear-gradient(145deg, #202a25, #070d0a);
}

/* SLIDER */
.slider-card {
  min-height: 155px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  padding: 18px;
  position: relative;
}

.slider-card:after {
  content: "";
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  position: absolute;
  right: -52px;
  top: -45px;
}

.carousel-indicators {
  margin-bottom: 4px;
}

.carousel-indicators button {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50%;
}

/* CARDS */
.stat-card,
.trend-card,
.mosque-card {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.075);
  overflow: hidden;
}

.stat-card {
  padding: 15px;
}

.stat-number {
  font-size: 21px;
  font-weight: 950;
  color: var(--dark);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.trend-cover {
  height: 120px;
  background: linear-gradient(135deg, #0b7a4b, #06291c);
  position: relative;
}

.trend-cover .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.trend-body {
  padding: 15px;
}

.progress {
  height: 9px;
  border-radius: 999px;
}

.progress-bar {
  background: var(--green);
}

.mosque-cover {
  height: 145px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)),
    linear-gradient(135deg, #0b7a4b, #06291c);
  position: relative;
}

.badge-verified,
.badge-urgent {
  position: absolute;
  top: 14px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.badge-verified {
  left: 14px;
  background: #fff;
  color: var(--green);
}

.badge-urgent {
  right: 14px;
  background: #fff3cd;
  color: #8a5a00;
}

.mosque-body {
  padding: 16px;
}

/* TV */
.tv-card {
  background:
    radial-gradient(
      circle at bottom right,
      rgba(216, 170, 79, 0.22),
      transparent 35%
    ),
    linear-gradient(145deg, #061c14, #0a3b29);
  color: #fff;
  border-radius: 30px;
  padding: 18px;
}

.tv-screen {
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 13px;
  background: #05150f;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.tv-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
}

/* FOOTER NAV */
.footer-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid #e8eeeb;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px 10px;
  z-index: 2000;
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.08);
}

.footer-nav a {
  text-decoration: none;
  text-align: center;
  color: #7c877f;
  font-size: 11px;
  font-weight: 800;
}

.footer-nav i {
  display: block;
  font-size: 21px;
  margin-bottom: 2px;
}

.footer-nav .active {
  color: var(--green);
}

.donate-float {
  width: 60px;
  height: 60px;
  border-radius: 23px;
  background: linear-gradient(145deg, #0d8d59, #064d34);
  color: #fff !important;
  display: grid;
  place-items: center;
  margin: -31px auto 0;
  box-shadow: 0 12px 28px rgba(8, 122, 74, 0.38);
}

.donate-float i {
  font-size: 25px !important;
  margin: 0 !important;
}

/* LOGIN BOTTOM SHEET */
.modal-content {
  border: 0;
  border-radius: 30px 30px 0 0;
}

.login-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: auto;
  display: block;
}

.otp-input {
  height: 54px;
  border-radius: 16px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

@media (min-width: 576px) {
  .modal-content {
    border-radius: 30px;
  }
}

@media (max-width: 380px) {
  .quick-menu-wrap {
    padding: 11px;
  }
  .quick-card {
    min-height: 98px;
    border-radius: 21px;
  }
  .quick-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .quick-card span {
    font-size: 11px;
  }
  .quick-card small {
    font-size: 9px;
  }
}

.jm-toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 0 14px;
  z-index: 5000;
  pointer-events: none;
}

.jm-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 22px;
  padding: 14px 14px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  animation: jmToastIn 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
  backdrop-filter: blur(18px);
}

.jm-toast.success {
  background: linear-gradient(145deg, #0b8a55, #064d34);
}

.jm-toast.error {
  background: linear-gradient(145deg, #d9534f, #7a1f1f);
}

.jm-toast-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 20px;
}

.jm-toast-body {
  flex: 1;
  min-width: 0;
}

.jm-toast-title {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.jm-toast-text {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.9;
}

.jm-toast-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  display: grid;
  place-items: center;
}

.jm-toast.hide {
  animation: jmToastOut 0.28s ease forwards;
}

@keyframes jmToastIn {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes jmToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
}
.onboarding-info {
  background: linear-gradient(145deg, #f3faf6, #ffffff);
  border: 1px solid #dcefe6;
  color: #244b3a;
  border-radius: 20px;
  padding: 14px;
}
