:root {
  --green: #0b3d2e;
  --green2: #155739;
  --green3: #1f7048;
  --deep: #061a14;
  --gold: #c89b35;
  --gold2: #f3d37b;
  --cream: #f7f1e3;
  --paper: #fffaf0;
  --ink: #10231b;
  --muted: #67736e;
  --line: rgba(214, 170, 67, 0.26);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
  --soft: 0 16px 44px rgba(11, 61, 46, 0.11);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  direction: rtl;
  font-family: Cairo, Arial, sans-serif;
  background: var(--deep);
  color: var(--cream);
}
a {
  text-decoration: none;
  color: inherit;
}
.wrap {
  width: min(1180px, 92vw);
  margin: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    90deg,
    rgba(6, 26, 20, 0.94),
    rgba(11, 61, 46, 0.88)
  );
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(243, 211, 123, 0.45);
  background: #fff;
}
.brand b {
  font-size: 28px;
  line-height: 1;
}
.brand small {
  display: block;
  color: #d8d1bc;
  font-size: 13px;
}
.links {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}
.links a:not(.btn) {
  color: #f2ead6;
  opacity: 0.93;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 14px;
  width: 44px;
  height: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(214, 170, 67, 0.62);
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f4d67f, #b88325);
  color: #10231b;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(214, 170, 67, 0.18);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background:
    radial-gradient(
      circle at 82% 14%,
      rgba(243, 211, 123, 0.2),
      transparent 32%
    ),
    radial-gradient(
      circle at 8% 80%,
      rgba(255, 255, 255, 0.08),
      transparent 25%
    ),
    linear-gradient(135deg, #061a14, #0b3d2e 58%, #061a14);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/header.jpg") center top/cover no-repeat;
  opacity: 0.33;
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(transparent, var(--deep));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 70px 0 90px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold2);
  font-weight: 900;
  letter-spacing: 0.25px;
  margin-bottom: 12px;
}
.eyebrow:before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold2);
}
.hero h1,
.inner-hero h1 {
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1.13;
  margin: 0 0 18px;
  font-weight: 900;
}
.hero h1 span {
  color: var(--gold2);
}
.lead {
  font-size: 18px;
  line-height: 2;
  color: #f3ecd9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.metric-row span {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}
.metric-row b {
  display: block;
  color: var(--gold2);
  font-size: 24px;
}
.hero-visual {
  position: relative;
  border: 1px solid rgba(214, 170, 67, 0.38);
  border-radius: 34px;
  overflow: hidden;
  background: #eadfc6;
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-2deg);
}
.hero-visual:after {
  content: "إدارة متميزة.. أثر مستدام";
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: linear-gradient(
    135deg,
    rgba(6, 26, 20, 0.9),
    rgba(11, 61, 46, 0.88)
  );
  border: 1px solid rgba(243, 211, 123, 0.5);
  color: var(--gold2);
  border-radius: 18px;
  padding: 12px 18px;
  font-weight: 900;
}
.hero-visual img,
.split img,
.pwa-grid img {
  width: 100%;
  display: block;
}
.section {
  padding: 84px 0;
  background: var(--cream);
  color: var(--ink);
}
.section.alt {
  background: #fffaf1;
}
.section.dark,
.section.pwa {
  background: var(--deep);
  color: var(--cream);
  position: relative;
}
.section.dark:before,
.section.pwa:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 10% 0,
    rgba(243, 211, 123, 0.09),
    transparent 28%
  );
  pointer-events: none;
}
.section .wrap {
  position: relative;
}
.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 900;
}
.section p {
  line-height: 1.95;
  color: var(--muted);
}
.dark p,
.pwa p {
  color: #d8d1bc;
}
.split,
.pwa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split img,
.pwa-grid img {
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 170, 67, 0.25);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature,
.mosque,
.news,
.contact-form,
.cta,
.stat-card {
  border: 1px solid #eadfc6;
  background: #fff;
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--soft);
}
.dark .feature {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.045)
  );
  border-color: rgba(214, 170, 67, 0.23);
  color: var(--cream);
}
.feature i {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0b3d2e, #124c36);
  color: var(--gold2);
  font-size: 25px;
  font-style: normal;
  margin-bottom: 12px;
}
.feature h3,
.news h3 {
  margin: 0 0 8px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}
.section-head a {
  color: var(--green);
  font-weight: 900;
}
.mosque-grid,
.news-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mosque b {
  display: block;
  color: var(--green);
  font-size: 19px;
}
.mosque span,
.news p {
  color: var(--muted);
  line-height: 1.85;
}
.mosque.big {
  min-height: 128px;
}
.inner-hero {
  padding: 92px 0 76px;
  background: linear-gradient(135deg, #061a14, #0b3d2e);
  position: relative;
  overflow: hidden;
}
.inner-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/header.jpg") center/cover no-repeat;
  opacity: 0.2;
}
.inner-hero .wrap {
  position: relative;
}
.prose {
  max-width: 980px;
}
.news span {
  color: var(--gold);
  font-weight: 900;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}
.contact-form label {
  display: block;
  font-weight: 900;
  margin: 12px 0 6px;
}
.contact-form input,
.contact-form textarea,
.input {
  width: 100%;
  border: 1px solid #dfd2b9;
  border-radius: 18px;
  padding: 15px 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #ecfff5;
  color: #0b3d2e;
  border: 1px solid #bfe8d0;
}
.footer {
  background: #061a14;
  color: #d8d1bc;
  border-top: 1px solid rgba(214, 170, 67, 0.18);
  padding: 42px 0 92px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 24px;
}
.footer a {
  display: block;
  margin: 8px 0;
}
.copyright {
  text-align: center;
  border-top: 1px solid rgba(214, 170, 67, 0.12);
  margin-top: 28px;
  padding-top: 20px;
}
.mobile-nav {
  display: none;
}
.install-strip {
  position: fixed;
  z-index: 90;
  left: 16px;
  right: 16px;
  bottom: 86px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(6, 26, 20, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.install-strip button {
  border: 0;
  border-radius: 16px;
  padding: 11px 14px;
  font-family: inherit;
  font-weight: 900;
  background: var(--gold2);
  color: #10231b;
}
.install-strip #notifyBtn {
  background: #fff;
}
.install-strip #installClose {
  background: transparent;
  color: #fff;
  font-size: 22px;
}
.staff-shell {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(243, 211, 123, 0.18),
      transparent 30%
    ),
    linear-gradient(180deg, #061a14, #0b3d2e);
  padding: 22px;
}
.phone-card {
  max-width: 460px;
  margin: auto;
  background: var(--cream);
  color: var(--ink);
  border-radius: 34px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 170, 67, 0.28);
}
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.notice {
  background: #fff6dc;
  border: 1px solid #ecd28b;
  color: #5f4510;
  border-radius: 18px;
  padding: 12px;
  margin: 14px 0;
  line-height: 1.7;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.app-tile {
  border: 1px solid #eadfc6;
  border-radius: 24px;
  background: #fff;
  padding: 18px;
  min-height: 132px;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(11, 61, 46, 0.08);
}
.app-tile strong {
  display: block;
  font-size: 32px;
}
.app-tile h3 {
  margin: 8px 0 4px;
}
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }
  .links {
    display: none;
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    background: rgba(6, 26, 20, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .links.open {
    display: flex;
  }
  .hero-grid,
  .split,
  .pwa-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding: 40px 0 96px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mosque-grid,
  .news-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-nav {
    display: grid;
    position: fixed;
    z-index: 80;
    bottom: 12px;
    left: 12px;
    right: 12px;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(6, 26, 20, 0.94);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(214, 170, 67, 0.28);
    border-radius: 24px;
    padding: 10px;
  }
  .mobile-nav a {
    text-align: center;
    font-size: 11px;
    color: #f2ead6;
  }
  .mobile-nav span {
    display: block;
    font-size: 18px;
  }
  .hero {
    min-height: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }
  .brand small {
    display: none;
  }
  .hero h1,
  .inner-hero h1 {
    font-size: 37px;
  }
  .lead {
    font-size: 16px;
  }
  .btn {
    width: 100%;
  }
  .metric-row,
  .feature-grid,
  .mosque-grid,
  .news-grid,
  .app-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual,
  .split img,
  .pwa-grid img {
    border-radius: 24px;
  }
  .section {
    padding: 56px 0;
  }
  .phone-card {
    border-radius: 28px;
  }
  .staff-shell {
    padding: 14px;
  }
  .hero-visual:after {
    font-size: 13px;
    left: 10px;
    bottom: 10px;
  }
}

/* PHASE M-15.C.2 — Visual Prestige Upgrade */
:root {
  --emerald: #0d4a35;
  --goldGlow: rgba(243, 211, 123, 0.34);
  --ivory: #fff8e9;
}
.topbar {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}
.topbar:after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(243, 211, 123, 0.75),
    transparent
  );
}
.brand img {
  box-shadow: 0 12px 26px rgba(200, 155, 53, 0.22);
}
.links a:not(.btn) {
  position: relative;
}
.links a:not(.btn):after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold2), transparent);
  transform: scaleX(0);
  transition: 0.25s;
}
.links a:not(.btn):hover:after {
  transform: scaleX(1);
}
.hero {
  background:
    radial-gradient(
      circle at 76% 8%,
      rgba(243, 211, 123, 0.28),
      transparent 31%
    ),
    radial-gradient(
      circle at 0 88%,
      rgba(255, 248, 233, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, #04130f, #0a3328 45%, #0d4a35 74%, #04130f);
}
.hero:before {
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.04);
}
.hero-copy {
  padding: 24px;
  border: 1px solid rgba(243, 211, 123, 0.13);
  border-radius: 34px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero h1 span {
  background: linear-gradient(90deg, #f7dd8b, #c5922e, #fff2b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.lead {
  max-width: 650px;
}
.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.btn:before {
  content: "";
  position: absolute;
  inset: -80% -35%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateX(-120%);
  transition: 0.55s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(214, 170, 67, 0.25);
}
.btn:hover:before {
  transform: translateX(120%);
}
.metric-row span,
.feature,
.mosque,
.news,
.contact-form,
.cta,
.stat-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.metric-row span:before,
.feature:before,
.mosque:before,
.news:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 0,
    rgba(243, 211, 123, 0.18),
    transparent 34%
  );
  opacity: 0.75;
  pointer-events: none;
}
.feature:hover,
.mosque:hover,
.news:hover,
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 155, 53, 0.42);
  box-shadow: 0 24px 60px rgba(11, 61, 46, 0.14);
}
.feature i {
  box-shadow:
    inset 0 0 0 1px rgba(243, 211, 123, 0.25),
    0 18px 30px rgba(11, 61, 46, 0.18);
}
.section h2 {
  letter-spacing: -0.6px;
}
.section.dark,
.section.pwa {
  background:
    radial-gradient(
      circle at 85% 0,
      rgba(243, 211, 123, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #061a14, #08291f 60%, #061a14);
}
.section.alt {
  background: linear-gradient(180deg, #fffaf1, #f4ead7);
}
.hero-visual {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(243, 211, 123, 0.18);
}
.hero-visual:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.22),
    transparent 32%,
    transparent 70%,
    rgba(243, 211, 123, 0.15)
  );
  z-index: 1;
  pointer-events: none;
}
.hero-visual:after {
  z-index: 2;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}
.split img,
.pwa-grid img {
  filter: saturate(1.04);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.28);
}
.footer {
  padding-bottom: 118px;
  background:
    radial-gradient(circle at 50% 0, rgba(243, 211, 123, 0.1), transparent 38%),
    #04130f;
}
.mobile-nav {
  display: none;
}
.luxury-dock {
  position: fixed;
  z-index: 95;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(4, 19, 15, 0.78),
    rgba(13, 74, 53, 0.72)
  );
  border: 1px solid rgba(243, 211, 123, 0.42);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 34px rgba(243, 211, 123, 0.16);
  backdrop-filter: blur(22px) saturate(145%);
  transform: translateY(22px) scale(0.98);
  opacity: 0;
  transition: 0.26s ease;
}
.luxury-dock.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.luxury-dock:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #f3d37b,
    transparent,
    #c89b35,
    transparent
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.72;
  pointer-events: none;
}
.dock-orb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #fff4bf, #d2a23c 58%, #7a5515);
  color: #0b3d2e;
  font-size: 25px;
  font-weight: 900;
  box-shadow:
    0 13px 28px rgba(200, 155, 53, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: manaraFloat 3.6s ease-in-out infinite;
}
.dock-copy {
  min-width: 0;
  line-height: 1.45;
  color: #fff8e9;
}
.dock-copy b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}
.dock-copy span {
  display: block;
  font-size: 11px;
  color: #d8d1bc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-action {
  border: 0;
  border-radius: 18px;
  min-height: 46px;
  padding: 10px 13px;
  font-family: inherit;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s ease;
}
.dock-install {
  background: linear-gradient(135deg, #fff0aa, #c89b35);
  color: #09261d;
  box-shadow: 0 12px 26px rgba(200, 155, 53, 0.26);
}
.dock-notify {
  background: rgba(255, 248, 233, 0.13);
  border: 1px solid rgba(255, 248, 233, 0.22);
  color: #fff8e9;
}
.dock-action:active {
  transform: scale(0.96);
}
.dock-action.is-busy {
  opacity: 0.75;
}
.dock-notify.is-done {
  background: rgba(41, 132, 84, 0.28);
  border-color: rgba(126, 222, 165, 0.45);
}
.dock-close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.reveal-card {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal-card.in-view {
  opacity: 1;
  transform: none;
}
@keyframes manaraFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media (max-width: 980px) {
  .mobile-nav {
    display: grid;
    position: fixed;
    z-index: 82;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: linear-gradient(
      135deg,
      rgba(4, 19, 15, 0.82),
      rgba(13, 74, 53, 0.72)
    );
    backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(243, 211, 123, 0.34);
    border-radius: 28px;
    padding: 9px 10px;
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10.5px;
    color: #fff8e9;
    border-radius: 20px;
    padding: 8px 4px;
    min-height: 58px;
    transition: 0.2s ease;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.02)
    );
  }
  .mobile-nav a:first-child {
    background: linear-gradient(
      135deg,
      rgba(243, 211, 123, 0.24),
      rgba(255, 255, 255, 0.06)
    );
    color: #fff;
  }
  .mobile-nav span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: auto;
    border-radius: 12px;
    background: rgba(243, 211, 123, 0.14);
    color: #f3d37b;
    font-size: 17px;
  }
  .install-strip.luxury-dock {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .hero-copy {
    padding: 18px;
  }
  .hero-visual {
    transform: none;
  }
  .dock-copy {
    display: none;
  }
  .luxury-dock {
    justify-content: space-between;
  }
  .dock-action {
    flex: 1;
  }
}
@media (max-width: 560px) {
  .luxury-dock {
    border-radius: 24px;
    padding: 9px;
  }
  .dock-orb {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 16px;
  }
  .dock-action {
    font-size: 12px;
    min-height: 43px;
    padding: 8px 9px;
  }
  .dock-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .hero-copy {
    border-radius: 26px;
  }
  .hero h1,
  .inner-hero h1 {
    font-size: 34px;
  }
  .metric-row span {
    border-radius: 20px;
  }
  .section-head {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .footer {
    padding-bottom: 118px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* M-15.C.4 Dock Visibility Hotfix + Footer Credit Polish */
.install-strip[hidden] {
  display: none !important;
}
.install-strip.luxury-dock {
  display: flex !important;
  bottom: calc(74px + env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  max-width: 760px;
  margin: 0 auto;
  z-index: 120;
}
.install-strip.luxury-dock:not(.is-visible) {
  pointer-events: none;
}
.lbi-credit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 18px;
  border: 1px solid rgba(243, 211, 123, 0.42);
  border-radius: 999px;
  color: #f3d37b;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: 0.22s ease;
}
.lbi-credit:hover {
  transform: translateY(-2px);
  background: rgba(243, 211, 123, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
@media (max-width: 980px) {
  .install-strip.luxury-dock {
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 8px 9px;
    border-radius: 24px;
    gap: 7px;
  }
  .install-strip.luxury-dock .dock-copy {
    display: none;
  }
  .install-strip.luxury-dock .dock-orb {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 15px;
  }
  .install-strip.luxury-dock .dock-action {
    min-height: 40px;
    font-size: 12px;
    padding: 8px 9px;
  }
  .install-strip.luxury-dock .dock-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 12px;
  }
  .footer {
    padding-bottom: 132px;
  }
}
@media (max-width: 420px) {
  .install-strip.luxury-dock {
    left: 8px;
    right: 8px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    gap: 5px;
  }
  .install-strip.luxury-dock .dock-orb {
    display: none;
  }
  .install-strip.luxury-dock .dock-action {
    font-size: 11px;
    padding: 7px 8px;
  }
}

/* PHASE M-15.C.5 — Bottom Install Bar Final Forensic Recovery */
.install-strip[hidden] {
  display: none !important;
}
.install-strip.luxury-dock {
  position: fixed !important;
  display: flex !important;
  visibility: visible;
  left: max(10px, env(safe-area-inset-left)) !important;
  right: max(10px, env(safe-area-inset-right)) !important;
  bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  max-width: 780px;
  margin: 0 auto;
  z-index: 2147483000 !important;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 12% 0,
      rgba(255, 242, 184, 0.24),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(4, 19, 15, 0.93),
      rgba(13, 74, 53, 0.9) 62%,
      rgba(5, 28, 21, 0.94)
    );
  border: 1px solid rgba(243, 211, 123, 0.52);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 38px rgba(243, 211, 123, 0.17);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  transform: translate3d(0, 16px, 0) scale(0.985);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    box-shadow 0.28s ease;
}
.install-strip.luxury-dock.is-visible,
.install-strip.luxury-dock.is-forced-ready {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  pointer-events: auto !important;
}
.install-strip.luxury-dock:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 26%,
    transparent 46%
  );
  transform: translateX(-120%);
  animation: manaraDockShimmer 5.2s ease-in-out infinite;
}
.install-strip.luxury-dock .dock-copy b {
  font-size: 15px;
  color: #fff9e9;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.install-strip.luxury-dock .dock-copy span {
  font-size: 11.5px;
  color: #dfd7c6;
}
.install-strip.luxury-dock .dock-action {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  min-height: 44px;
  box-shadow: none;
}
.install-strip.luxury-dock .dock-install {
  background: linear-gradient(135deg, #fff4bd, #e4bd5b 52%, #bd8626);
  color: #08251d;
  box-shadow: 0 12px 24px rgba(200, 155, 53, 0.26);
}
.install-strip.luxury-dock .dock-install[data-fallback="1"] {
  background: linear-gradient(135deg, #fff8df, #d6aa43);
}
.install-strip.luxury-dock .dock-notify {
  background: linear-gradient(135deg, #fff4bd, #e4bd5b 52%, #bd8626);
  border: 1px solid rgba(255, 248, 233, 0.35);
  color: #08251d !important;
  font-weight: 900;
}
.install-strip.luxury-dock .dock-notify.is-disabled {
  opacity: 0.82;
  background: rgba(255, 255, 255, 0.08);
  color: #eadfc6;
}
.install-strip.luxury-dock .dock-notify.is-done {
  opacity: 1;
  background: rgba(50, 145, 91, 0.28);
  border-color: rgba(126, 222, 165, 0.48);
  color: #eafff1;
}
.install-strip.luxury-dock .dock-close {
  position: relative;
  z-index: 1;
}
@keyframes manaraDockShimmer {
  0%,
  62%,
  100% {
    transform: translateX(-125%);
  }
  78% {
    transform: translateX(125%);
  }
}
@media (max-width: 980px) {
  .install-strip.luxury-dock {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    padding: 8px 9px;
    gap: 7px;
    min-height: 58px;
    border-radius: 24px;
  }
  .install-strip.luxury-dock .dock-copy {
    display: none !important;
  }
  .install-strip.luxury-dock .dock-orb {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 15px;
  }
  .install-strip.luxury-dock .dock-action {
    flex: 1;
    min-height: 41px;
    font-size: 12px;
    padding: 8px 9px;
  }
  .install-strip.luxury-dock .dock-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 12px;
  }
}
@media (max-width: 420px) {
  .install-strip.luxury-dock {
    left: 7px !important;
    right: 7px !important;
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    gap: 5px;
    padding: 8px 7px;
  }
  .install-strip.luxury-dock .dock-orb {
    display: none !important;
  }
  .install-strip.luxury-dock .dock-action {
    font-size: 11px;
    padding: 7px 7px;
    letter-spacing: -0.15px;
  }
}

/* MANARA M-17.C PRIME — Media Engine Premium Layer */
.media-grid .media-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.media-card > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(7, 34, 25, 0.14);
  background: linear-gradient(135deg, #f8f5eb, #e9f1ec);
}
.media-card a {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 800;
  color: #0b3d2e;
  text-decoration: none;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-strip figure {
  margin: 0;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(6, 33, 24, 0.12);
  border: 1px solid rgba(206, 180, 104, 0.22);
}
.gallery-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  background: #f4f0e5;
}
.gallery-strip figcaption {
  padding: 10px 6px 2px;
  font-weight: 800;
  color: #244336;
  text-align: center;
}
@media (max-width: 640px) {
  .media-card > img {
    height: 190px;
    border-radius: 20px;
  }
  .gallery-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gallery-strip img {
    height: 230px;
  }
  .gallery-strip figure {
    border-radius: 22px;
  }
}

/* M-17.C.1 Final Media Hotfix */
.media-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(11, 61, 46, 0.16);
}
.media-card > img {
  aspect-ratio: 16/10;
  height: auto;
  min-height: 210px;
}
.premium-media-fallback {
  min-height: 210px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  background:
    radial-gradient(
      circle at 20% 18%,
      rgba(243, 211, 123, 0.35),
      transparent 24%
    ),
    linear-gradient(135deg, #063225, #0b3d2e 62%, #071f18);
  color: #f7f1e3;
  border: 1px solid rgba(214, 170, 67, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 45px rgba(7, 34, 25, 0.14);
}
.premium-media-fallback span {
  font-size: 46px;
  display: block;
  margin-bottom: 10px;
}
.premium-media-fallback b {
  font-size: 18px;
  line-height: 1.7;
  color: #f3d37b;
}
.premium-media-fallback.activity {
  background:
    radial-gradient(
      circle at 20% 18%,
      rgba(243, 211, 123, 0.33),
      transparent 24%
    ),
    linear-gradient(135deg, #10251e, #155739 60%, #061a14);
}
.premium-media-fallback.wide {
  min-height: 280px;
  grid-column: 1/-1;
}
.card-action {
  align-self: flex-start;
  border: 1px solid rgba(11, 61, 46, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  background: #f5efe0;
}
.details-card,
.notice-card {
  border: 1px solid #eadfc6;
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--soft);
}
.notice-card a {
  color: var(--green);
  font-weight: 900;
}
@media (max-width: 640px) {
  .media-card > img,
  .premium-media-fallback {
    min-height: 185px;
  }
  .card-action {
    width: 100%;
    justify-content: center;
  }
  .details-card,
  .notice-card {
    border-radius: 22px;
    padding: 18px;
  }
}

/* M-17.C.2 real mosque DB binding polish */
.mosque-profile {
  overflow: hidden;
}
.mosque-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.mosque-detail-grid > div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(196, 149, 63, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(19, 46, 39, 0.06);
}
.mosque-detail-grid span {
  display: block;
  font-size: 12px;
  color: #8a6b2e;
  margin-bottom: 6px;
}
.mosque-detail-grid b {
  display: block;
  color: #183b32;
  line-height: 1.8;
  font-weight: 800;
}
.notice-card {
  background: #fff;
  border: 1px solid rgba(196, 149, 63, 0.25);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(19, 46, 39, 0.08);
}

/* MANARA M-17.C.3 mosque media polish */
.mosque-detail-hero.has-image {
  background-size: cover;
  background-position: center;
  min-height: 430px;
  display: flex;
  align-items: end;
  position: relative;
  color: #fff;
}
.mosque-detail-hero.has-image .wrap {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 70px;
}
.mosque-detail-hero.has-image h1,
.mosque-detail-hero.has-image .lead {
  color: #fff;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}
.mosque-detail-hero.has-image .eyebrow {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(243, 211, 123, 0.34);
  color: #f3d37b;
}
.mosque-grid.media-grid {
  align-items: stretch;
}
.mosque.media-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 171, 93, 0.18);
  border-radius: 30px;
  padding: 14px;
  box-shadow: 0 22px 70px rgba(8, 40, 30, 0.1);
}
.mosque.media-card > div:last-child {
  padding: 4px 4px 8px;
}
.mosque.media-card b {
  display: block;
  color: #123d30;
  font-size: 18px;
  line-height: 1.7;
}
.mosque.media-card span {
  display: block;
  color: #6f7d75;
  font-weight: 700;
  margin-top: 4px;
}
.gallery-strip figure:first-child {
  border-color: rgba(196, 149, 63, 0.45);
  box-shadow: 0 26px 80px rgba(11, 61, 46, 0.16);
}
@media (max-width: 640px) {
  .mosque-detail-hero.has-image {
    min-height: 360px;
  }
  .mosque-detail-hero.has-image .wrap {
    padding-top: 96px;
    padding-bottom: 44px;
  }
  .mosque.media-card {
    border-radius: 24px;
    padding: 10px;
  }
}

/* MANARA M-18.B PRIME — Premium Brand Identity Lock */
.manara-brand-crop {
  display: inline-block;
  background-image: url("../images/brand-collection.png");
  background-repeat: no-repeat;
  background-size: 640px auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
}
.manara-brand-light {
  width: 156px;
  height: 72px;
  background-position: -238px -108px;
}
.brand .manara-brand-crop {
  width: 112px;
  height: 54px;
  background-size: 460px auto;
  background-position: -169px -77px;
  border-radius: 0;
  border: 0;
  background-color: transparent;
}
.topbar .brand {
  gap: 14px;
}
.topbar .brand b {
  color: #fff9e9;
  text-shadow: 0 2px 14px rgba(243, 211, 123, 0.18);
}
.topbar .brand small {
  color: #e8dec7;
}
.install-strip.luxury-dock {
  background:
    radial-gradient(
      circle at 15% 0,
      rgba(243, 211, 123, 0.28),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(4, 19, 15, 0.96),
      rgba(13, 74, 53, 0.93) 62%,
      rgba(5, 28, 21, 0.96)
    );
}
.dock-orb {
  background-image: url("../images/brand-collection.png") !important;
  background-size: 420px auto !important;
  background-position: -15px -138px !important;
  color: transparent !important;
  background-color: #0b3d2e !important;
  border: 1px solid rgba(243, 211, 123, 0.52);
}
@media (max-width: 640px) {
  .brand .manara-brand-crop {
    width: 92px;
    height: 44px;
    background-size: 378px auto;
    background-position: -139px -63px;
  }
  .topbar .brand small {
    display: none;
  }
  .topbar .brand b {
    font-size: 22px;
  }
}

/* M-18.B.2 Surgical Brand Precision Overrides */
.manara-brand-crop {
  display: inline-block !important;
  flex: 0 0 auto !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22)) !important;
}
.manara-brand-light {
  width: 186px !important;
  height: 92px !important;
  background-image: url("../images/logo.png") !important;
}
.brand .manara-brand-crop {
  width: 128px !important;
  height: 62px !important;
  background-image: url("../images/logo.png") !important;
}
.dock-orb {
  background-image: url("../images/manara-icon-master.png") !important;
  background-size: 70% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
}
@media (max-width: 640px) {
  .brand .manara-brand-crop {
    width: 108px !important;
    height: 52px !important;
  }
}

/* MANARA PHASE M-24 / V41 — Final Acceptance Luxury Polish */
.hero,
.inner-hero {
  position: relative;
  overflow: hidden;
}
.hero:after,
.inner-hero:after {
  content: "";
  position: absolute;
  inset: auto 8% -70px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(210, 159, 48, 0.18),
    transparent 68%
  );
  pointer-events: none;
}
.media-card,
.feature,
.stat-card,
.details-card,
.notice-card {
  backdrop-filter: saturate(120%) blur(2px);
}
.card-action,
.btn {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
.card-action:hover,
.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
}
.footer {
  border-top: 1px solid rgba(210, 159, 48, 0.22);
}
.mobile-nav {
  box-shadow: 0 -18px 44px rgba(5, 33, 25, 0.18);
}
@media (max-width: 640px) {
  .hero-actions .btn,
  .card-action {
    min-height: 46px;
  }
  .mobile-nav a {
    font-weight: 900;
  }
}
