@font-face {
  font-family: "Amiri";
  src: url("../Fonts/AmiriQuran-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("../Fonts/NotoNastaliqUrdu-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("../Fonts/NotoNastaliqUrdu-Bold.ttf") format("truetype");
  font-weight: 700;
}

/* طبّق الخط بس على النصوص مش على الأيقونات */
:lang(ur) body,
:lang(ur) p,
:lang(ur) h1,
:lang(ur) h2,
:lang(ur) h3,
:lang(ur) h4,
:lang(ur)
  span:not(.fa):not([class*="fa-"]):not([class*="fab"]):not([class*="fas"]):not(
    [class*="far"]
  ),
:lang(ur) div,
:lang(ur) a,
:lang(ur) button,
:lang(ur) li {
  font-family: "Gulzar", serif !important;
}
/* تعريف الالوان المستخدمة في الصفحة */
:root {
  --gold: #c8972a;
  --gold-light: #e8c060;
  --dark: #0d1a12;
  --dark2: #0a1610;
  --dark3: #1a2e20;
  --green: #1b4d2e;
  --text: #f0ead6;
  --text-muted: #b0a882;
  --card-bg: rgba(26, 46, 32, 0.88);
  --card-border: rgba(200, 151, 42, 0.25);
  --radius: 18px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--dark3);
}
/* ══ سكرول الصفحة ══ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ══ سكرول قائمة السور ══ */
.modal-sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(0, 0, 0, 0.2);
}
.modal-sidebar::-webkit-scrollbar {
  width: 6px;
}
.modal-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.modal-sidebar::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}
.modal-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ══ سكرول المصحف ══ */
.modal-content-area {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(0, 0, 0, 0.2);
}
.modal-content-area::-webkit-scrollbar {
  width: 6px;
}
.modal-content-area::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.modal-content-area::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}
.modal-content-area::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

.icon-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--dark3);
}

/*  body  */
body {
  background: var(--dark);
  color: var(--text);
  font-family: "Amiri", "Georgia", serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 60px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(200, 151, 42, 0.08),
      transparent 60%
    ),
    radial-gradient(ellipse at 80% 80%, rgba(27, 77, 46, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(200, 151, 42, 0.015) 0,
      rgba(200, 151, 42, 0.015) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(200, 151, 42, 0.015) 0,
      rgba(200, 151, 42, 0.015) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
}

/* ══ NAVBAR ══ */

.navbar-custom {
  background: rgba(13, 26, 18, 0.97);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.navbar-brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.navbar-desktop-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.navbar-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-pill {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 5px 13px;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: "Amiri", serif;
  white-space: nowrap;
}
.nav-pill:hover,
.nav-pill.active {
  color: var(--gold-light);
  border-color: rgba(200, 151, 42, 0.5);
  background: rgba(200, 151, 42, 0.08);
}

/* ── Language Dropdown ── */
.lang-dropdown {
  position: relative;
}
.lang-current-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(200, 151, 42, 0.12);
  border: 1px solid var(--card-border);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Amiri", serif;
  white-space: nowrap;
}
.lang-current-btn:hover {
  background: rgba(200, 151, 42, 0.22);
  border-color: rgba(200, 151, 42, 0.5);
}
.lang-current-btn .flag {
  font-size: 1rem;
}
.lang-current-btn .chevron {
  font-size: 0.65rem;
  transition: transform 0.25s;
  color: var(--text-muted);
}
.lang-dropdown.open .lang-current-btn .chevron {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  /* right: 0; */
  right: -65px;
  background: #0f1f16;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 200;
}
.lang-dropdown.open .lang-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
[dir="ltr"] .lang-menu {
  right: auto;
  left: -72px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Amiri", serif;
  font-size: 0.9rem;
  transition: all 0.15s;
  text-align: right;
}
[dir="ltr"] .lang-option {
  text-align: left;
}
.lang-option:hover {
  background: rgba(200, 151, 42, 0.12);
  color: var(--gold-light);
}
.lang-option.active {
  color: var(--gold);
  background: rgba(200, 151, 42, 0.1);
}
.lang-option .lang-flag {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}
.lang-divider {
  height: 1px;
  background: var(--card-border);
  margin: 4px 0;
}

/* ── Hamburger ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Sidebar Overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1100;
  transition: background 0.4s ease;
}
.sidebar-overlay.open {
  background: rgba(0, 0, 0, 0.6);
}

/* ── Sidebar Drawer ── */
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 300px;
  height: 100%;
  background: #0a1610;
  border-left: 1px solid rgba(200, 151, 42, 0.2);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[dir="ltr"] .sidebar-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid rgba(200, 151, 42, 0.2);
  transform: translateX(-100%);
}
.sidebar-drawer.open {
  transform: translateX(0);
}

.sidebar-top {
  background: linear-gradient(
    160deg,
    rgba(200, 151, 42, 0.1),
    rgba(27, 77, 46, 0.2)
  );
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(200, 151, 42, 0.12);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-kaaba-bg {
  position: absolute;
  font-size: 6rem;
  opacity: 0.05;
  bottom: -14px;
  left: -10px;
  pointer-events: none;
}
.sidebar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.sidebar-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sidebar-links {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.2s,
    border-color 0.2s;
}
[dir="ltr"] .sidebar-item {
  transform: translateX(-20px);
}
.sidebar-drawer.open .sidebar-item {
  opacity: 1;
  transform: translateX(0);
}
.sidebar-drawer.open .sidebar-item:nth-child(1) {
  transition-delay: 0.08s;
}
.sidebar-drawer.open .sidebar-item:nth-child(2) {
  transition-delay: 0.14s;
}
.sidebar-drawer.open .sidebar-item:nth-child(3) {
  transition-delay: 0.2s;
}
.sidebar-drawer.open .sidebar-item:nth-child(5) {
  transition-delay: 0.26s;
}
.sidebar-item:hover {
  background: rgba(200, 151, 42, 0.09);
  border-color: rgba(200, 151, 42, 0.18);
}

.sidebar-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.si-quran {
  background: rgba(200, 151, 42, 0.14);
}
.si-dua {
  background: rgba(27, 100, 60, 0.4);
}
.si-athkar {
  background: rgba(200, 151, 42, 0.08);
}
.si-tasb {
  background: rgba(27, 70, 50, 0.35);
}
.sb-health {
  background: rgba(200, 151, 42, 0.1);
}

.sidebar-text .s-main {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: "Amiri", serif;
}
.sidebar-text .s-sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: "Amiri", serif;
}
.sidebar-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 151, 42, 0.15),
    transparent
  );
  margin: 4px 10px;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(200, 151, 42, 0.1);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease 0.32s,
    transform 0.3s ease 0.32s;
}
.sidebar-drawer.open .sidebar-footer {
  opacity: 1;
  transform: translateY(0);
}
.sidebar-dua-box {
  background: rgba(200, 151, 42, 0.06);
  border: 1px solid rgba(200, 151, 42, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: right;
  direction: rtl;
}
.sidebar-dua-box .dua-ar {
  font-size: 0.88rem;
  color: var(--gold-light);
  line-height: 1.9;
  font-family: "Amiri", serif;
}
.sidebar-dua-box .dua-ref {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Mobile / Tablet ── */
@media (max-width: 991px) {
  .navbar-desktop-links {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }
  .sidebar-overlay.open {
    pointer-events: all;
  }
  #currentLangName {
    display: none;
  }
  .lang-current-btn {
    padding: 6px 10px;
    gap: 4px;
  }
}

/* ══════ Landing Page ════════*/

/* ══ HERO ══ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  z-index: 1;
  overflow: hidden;
}
.hero-kaaba {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.06;
  font-size: min(58vw, 480px);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 151, 42, 0.15);
  border: 1px solid rgba(200, 151, 42, 0.4);
  color: var(--gold-light);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  animation: fadeDown 0.8s ease both;
}
.hero-title {
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(200, 151, 42, 0.3);
  margin-bottom: 45px;
  animation: fadeDown 0.9s ease 0.1s both;
}
.hero-ayah {
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
  animation: fadeDown 0.9s ease 0.2s both;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeDown 0.9s ease 0.3s both;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.9s ease 0.4s both;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}
.scroll-hint i {
  font-size: 1.2rem;
}

/* ══ BTNS ══ */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a07020);
  color: var(--dark);
  border: none;
  padding: 13px 34px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Amiri", serif;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(200, 151, 42, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 151, 42, 0.5);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
  padding: 11px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-family: "Amiri", serif;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-outline-gold:hover {
  background: rgba(200, 151, 42, 0.12);
}

/* ══ SECTIONS ══ */
section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}
.section-label::before,
.section-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 700;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 46px;
}
.gold-divider {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto 0;
  border-radius: 2px;
}
.sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-border),
    transparent
  );
}

/* ══ CARDS ══ */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px;
  backdrop-filter: blur(8px);
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 151, 42, 0.5);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}
.feature-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
  display: block;
  color: var(--gold-light);
}
.feature-card:hover .feature-icon {
  color: var(--gold);
}
.feature-title {
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 10px;
  font-weight: 700;
}
.feature-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ══ TABS ══ */
.lang-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 14px;
}
.ltab {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Amiri", serif;
}
.ltab:hover,
.ltab.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  font-weight: 700;
}
.subtabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stab {
  background: rgba(200, 151, 42, 0.08);
  border: 1px solid rgba(200, 151, 42, 0.2);
  color: var(--text-muted);
  padding: 6px 15px;
  border-radius: 10px;
  font-size: 0.83rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Amiri", serif;
}
.stab:hover,
.stab.active {
  background: rgba(200, 151, 42, 0.22);
  color: var(--gold-light);
  border-color: rgba(200, 151, 42, 0.5);
}

/* ══ QURAN ══ */
.bismillah-banner {
  background: linear-gradient(135deg, rgba(200, 151, 42, 0.1), transparent);
  border: 1px solid rgba(200, 151, 42, 0.2);
  border-radius: 12px;
  padding: 14px 22px;
  text-align: center;
  margin-bottom: 22px;
  font-family: "Amiri", serif;
  font-size: 1.35rem;
  color: var(--gold-light);
}
.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.surah-btn {
  background: rgba(200, 151, 42, 0.07);
  border: 1px solid rgba(200, 151, 42, 0.18);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: "Amiri", serif;
}
.surah-btn:hover,
.surah-btn.active {
  background: rgba(200, 151, 42, 0.25);
  color: var(--gold-light);
  border-color: rgba(200, 151, 42, 0.6);
}
.surah-num {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  margin-bottom: 2px;
}
.quran-display {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid rgba(200, 151, 42, 0.15);
}
.ayah-row {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ayah-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.ayah-ar {
  font-family: "Amiri", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 2.4;
  color: var(--gold-light);
  direction: rtl;
  text-align: right;
  margin-bottom: 8px;
}
.ayah-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(200, 151, 42, 0.2);
  border-radius: 50%;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 5px;
  vertical-align: middle;
}
.ayah-trans {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.85;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}
.quran-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(200, 151, 42, 0.15);
}
.quran-surah-name {
  font-size: 1.4rem;
  color: var(--gold-light);
  font-weight: 700;
}
.btn-full-quran {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 151, 42, 0.1);
  border: 2px dashed rgba(200, 151, 42, 0.4);
  color: var(--gold-light);
  padding: 16px 30px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-family: "Amiri", serif;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}
.btn-full-quran:hover {
  background: rgba(200, 151, 42, 0.18);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ══ MODAL ══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: #0f1f16;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}
.modal-title-text-el {
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 700;
}
.modal-close {
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--gold);
  color: var(--dark);
}
.modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.modal-sidebar {
  width: 230px;
  flex-shrink: 0;
  border-left: 1px solid var(--card-border);
  overflow-y: auto;
  padding: 12px;
}
.modal-sidebar::-webkit-scrollbar {
  width: 4px;
}
.modal-sidebar::-webkit-scrollbar-thumb {
  background: rgba(200, 151, 42, 0.25);
  border-radius: 4px;
}
[dir="ltr"] .modal-sidebar {
  border-left: none;
  border-right: 1px solid var(--card-border);
}
.modal-search {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 7px 12px;
  color: var(--text);
  font-family: "Amiri", serif;
  font-size: 0.88rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-search:focus {
  border-color: rgba(200, 151, 42, 0.5);
}
.modal-search::placeholder {
  color: var(--text-muted);
}
.modal-surah-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Amiri", serif;
  font-size: 0.86rem;
  text-align: right;
}
[dir="ltr"] .modal-surah-btn {
  text-align: left;
}
.modal-surah-btn:hover,
.modal-surah-btn.active {
  background: rgba(200, 151, 42, 0.15);
  color: var(--gold-light);
}
.modal-surah-num {
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(200, 151, 42, 0.15);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.modal-content-area::-webkit-scrollbar {
  width: 5px;
}
.modal-content-area::-webkit-scrollbar-thumb {
  background: rgba(200, 151, 42, 0.2);
  border-radius: 4px;
}
.modal-lang-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}
.modal-bismillah {
  text-align: center;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 18px;
  padding: 10px;
  background: rgba(200, 151, 42, 0.07);
  border-radius: 10px;
}
.ayah-flow {
  font-family: "Amiri", "Scheherazade New", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 2.8;
  color: var(--gold-light);
  direction: rtl !important;
  text-align: justify !important;
  unicode-bidi: isolate !important;
  padding: 16px 8px 8px;
  word-spacing: 0.12em;
  display: block;
  white-space: normal;
}
.bismillah-section {
  text-align: center;
  font-family: "Amiri", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--gold-light);
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(200, 151, 42, 0.2);
  margin-bottom: 10px;
  direction: rtl;
}
.trans-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(200, 151, 42, 0.15);
}
.trans-line {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid rgba(200, 151, 42, 0.06);
}
.trans-line:last-child {
  border-bottom: none;
}
.trans-num {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  margin-inline-end: 4px;
  opacity: 0.8;
}

/* Loading */
.spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(200, 151, 42, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pagination */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.page-btn {
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid rgba(200, 151, 42, 0.22);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Amiri", serif;
  font-size: 0.85rem;
}
.page-btn:hover {
  background: rgba(200, 151, 42, 0.2);
  color: var(--gold-light);
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.page-info {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ══ DUA & ATHKAR ══ */
.arabic-text {
  font-family: "Amiri", serif;
  font-size: clamp(1.2rem, 2.7vw, 1.8rem);
  line-height: 2.2;
  color: var(--gold-light);
  text-align: right;
  direction: rtl;
  border-right: 3px solid var(--gold);
  padding-right: 18px;
  margin-bottom: 16px;
}
[dir="ltr"] .arabic-text {
  /* Arabic always RTL regardless of page direction */
  text-align: right !important;
  direction: rtl !important;
  border-right: 3px solid var(--gold) !important;
  border-left: none !important;
  padding-right: 18px !important;
  padding-left: 0 !important;
}
.trans-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.9;
  padding: 13px 17px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.athkar-item {
  margin-bottom: 22px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  border: 1px solid rgba(200, 151, 42, 0.1);
}
.athkar-repeat {
  background: rgba(200, 151, 42, 0.15);
  color: var(--gold);
  padding: 3px 11px;
  border-radius: 50px;
  font-size: 0.78rem;
  display: inline-block;
  margin-bottom: 12px;
}

/* ══ STATS ══ */
.stats-row {
  background: linear-gradient(
    135deg,
    rgba(27, 77, 46, 0.5),
    rgba(13, 26, 18, 0.8)
  );
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 46px 28px;
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ══ TASBEEH COUNTER ══ */
.tasbeeh-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.tasbeeh-card::before {
  content: "﷽";
  position: absolute;
  font-size: 200px;
  opacity: 0.04;
  color: var(--gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: "Amiri", serif;
}

/* Dhikr selector */
.dhikr-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.dhikr-opt {
  background: rgba(200, 151, 42, 0.07);
  border: 1px solid rgba(200, 151, 42, 0.18);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Amiri", serif;
  line-height: 1.5;
}
.dhikr-opt:hover,
.dhikr-opt.active {
  background: rgba(200, 151, 42, 0.22);
  color: var(--gold-light);
  border-color: rgba(200, 151, 42, 0.55);
}

/* Circle counter */
.counter-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 30px;
}
.counter-ring-svg {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(200, 151, 42, 0.12);
  stroke-width: 10;
}
.ring-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s ease;
}
.counter-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.counter-number {
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  font-family: "Amiri", serif;
}
.counter-goal {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.counter-dhikr-name {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 4px;
}

/* Tap button */
.tasbeeh-tap-btn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8a6010);
  border: none;
  color: var(--dark);
  font-family: "Amiri", serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 6px 30px rgba(200, 151, 42, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 22px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tasbeeh-tap-btn:active {
  transform: scale(0.93);
  box-shadow: 0 2px 12px rgba(200, 151, 42, 0.3);
}
.tasbeeh-tap-btn .tap-icon {
  font-size: 1.8rem;
}
.tasbeeh-tap-btn .tap-label {
  font-size: 0.82rem;
  opacity: 0.8;
}

/* Counter controls */
.counter-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ctrl-btn {
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid rgba(200, 151, 42, 0.25);
  color: var(--text-muted);
  padding: 9px 22px;
  border-radius: 10px;
  font-family: "Amiri", serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ctrl-btn:hover {
  background: rgba(200, 151, 42, 0.2);
  color: var(--gold-light);
}
.ctrl-btn.danger {
  border-color: rgba(200, 80, 80, 0.3);
  color: rgba(200, 120, 120, 0.8);
}
.ctrl-btn.danger:hover {
  background: rgba(200, 80, 80, 0.12);
  color: #e08080;
}

/* Goal selector */
.goal-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.goal-btn {
  background: rgba(200, 151, 42, 0.07);
  border: 1px solid rgba(200, 151, 42, 0.18);
  color: var(--text-muted);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.83rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Amiri", serif;
}
.goal-btn:hover,
.goal-btn.active {
  background: rgba(200, 151, 42, 0.2);
  color: var(--gold-light);
  border-color: rgba(200, 151, 42, 0.5);
}

/* Complete flash */
@keyframes completeFlash {
  0%,
  100% {
    box-shadow: 0 6px 30px rgba(200, 151, 42, 0.4);
  }
  50% {
    box-shadow:
      0 0 60px rgba(200, 151, 42, 0.9),
      0 0 100px rgba(200, 151, 42, 0.4);
  }
}
.tasbeeh-tap-btn.complete {
  animation: completeFlash 0.6s ease 3;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.footer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      60deg,
      var(--gold) 0px,
      var(--gold) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      -60deg,
      var(--gold) 0px,
      var(--gold) 1px,
      transparent 1px,
      transparent 30px
    );
}
.footer-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 32px;
}
.footer-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer-note {
  color: rgba(176, 168, 130, 0.45);
  font-size: 0.82rem;
  margin-bottom: 0;
}
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-border),
    transparent
  );
  margin: 36px 0;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover {
  color: var(--gold);
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(200, 151, 42, 0.25);
  color: var(--gold);
  border-color: var(--gold);
}
.footer-col-title {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}
.footer-list {
  list-style: none;
  padding: 0;
}
.footer-list li {
  margin-bottom: 10px;
}
.footer-list li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-list li a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid var(--card-border);
  color: rgba(176, 168, 130, 0.4);
  font-size: 0.8rem;
}
.footer-quran-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 151, 42, 0.08);
  border: 1px solid rgba(200, 151, 42, 0.2);
  color: var(--gold-light);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 1rem;
  font-family: "Amiri", serif;
  margin-top: 16px;
}

/* ══ ANIMATIONS ══ */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero {
    min-height: 86vh;
  }
  .content-card,
  .tasbeeh-card {
    padding: 18px 14px;
  }
  .modal-body {
    flex-direction: column;
  }
  .modal-sidebar {
    width: 100%;
    max-height: 180px;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }
  .counter-ring-wrap {
    width: 180px;
    height: 180px;
  }
  .counter-ring-svg {
    width: 180px;
    height: 180px;
  }
  .counter-number {
    font-size: 2.8rem;
  }
}

/* ══════════════════════════════════════
   NEW STYLES — v2 (JSON + improved nav)
══════════════════════════════════════ */

/* ── Navbar health pill ── */
.nav-pill-health {
  border-color: rgba(200, 151, 42, 0.5) !important;
  color: var(--gold-light) !important;
}

/* ── Dua items from JSON ── */
.dua-item {
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(26, 46, 32, 0.5);
  margin-bottom: 16px;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.dua-item:last-child {
  margin-bottom: 0;
}
.dua-item:hover {
  border-color: rgba(200, 151, 42, 0.4);
  background: rgba(26, 46, 32, 0.75);
}
.dua-highlighted {
  border-color: rgba(200, 151, 42, 0.55) !important;
  background: rgba(200, 151, 42, 0.06) !important;
}
.dua-source {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.dua-note {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--gold-light);
  opacity: 0.85;
  font-style: italic;
}

/* ── Mini numbered tabs for dua items ── */
.subtabs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px 4px;
  border-bottom: 1px solid var(--card-border);
}
.stab-mini {
  background: rgba(200, 151, 42, 0.08);
  border: 1px solid rgba(200, 151, 42, 0.2);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Amiri", serif;
}
.stab-mini:hover {
  background: rgba(200, 151, 42, 0.15);
  color: var(--gold-light);
}
.stab-mini.active {
  background: rgba(200, 151, 42, 0.22);
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 700;
}

/* ── Athkar item source ── */
.athkar-item .dua-source {
  margin-top: 8px;
  font-size: 0.78rem;
}

/* ── Responsive: hide health nav text on small screens ── */
@media (max-width: 1100px) {
  .nav-pill-health .nav-h {
    display: none;
  }
}
@media (max-width: 900px) {
  .navbar-desktop-links .nav-pill span {
    display: none;
  }
  .navbar-desktop-links .nav-pill {
    padding: 7px 10px;
    font-size: 1rem;
  }
}

/* ── Hajj location sub-tabs (text labels) ── */
.subtabs-mini {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.subtabs-mini::-webkit-scrollbar {
  display: none;
}
.stab-mini {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* ── البسملة في المودال ── */
.bismillah-modal {
  text-align: center;
  font-family: "Amiri", "Scheherazade New", serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  padding: 18px 0 22px;
  border-bottom: 1px solid rgba(200, 151, 42, 0.25);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  direction: rtl;
}

/* ══ Health Guide page — Enhanced Visual Design ══ */

/* ── Animated Hero ── */
.hg-hero {
  background: linear-gradient(160deg, #060f09 0%, #0b2016 40%, #071410 100%);
  padding: 130px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Geometric star pattern overlay */
.hg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 55% at 50% 30%,
      rgba(200, 151, 42, 0.12) 0%,
      transparent 65%
    ),
    radial-gradient(
      circle 400px at 10% 80%,
      rgba(200, 151, 42, 0.04) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle 400px at 90% 20%,
      rgba(200, 151, 42, 0.05) 0%,
      transparent 70%
    );
  pointer-events: none;
}
/* Animated floating orbs */
.hg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle 2px at 20% 30%,
      rgba(200, 151, 42, 0.4) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1.5px at 75% 25%,
      rgba(200, 151, 42, 0.35) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1px at 50% 70%,
      rgba(200, 151, 42, 0.3) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 2px at 85% 60%,
      rgba(200, 151, 42, 0.25) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1.5px at 30% 80%,
      rgba(200, 151, 42, 0.3) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1px at 60% 15%,
      rgba(200, 151, 42, 0.4) 0%,
      transparent 100%
    );
  pointer-events: none;
  animation: starsPulse 6s ease-in-out infinite alternate;
}
@keyframes starsPulse {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

/* Islamic geometric decorative lines */
.hero-geo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-geo::before {
  content: "";
  position: absolute;
  left: -80px;
  top: 60px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(200, 151, 42, 0.07);
  border-radius: 50%;
  transform: rotate(45deg);
}
.hero-geo::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: 20px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(200, 151, 42, 0.07);
  border-radius: 50%;
  transform: rotate(-30deg);
}
.hero-hex-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hg-hero-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 28px rgba(200, 151, 42, 0.6));
  animation: iconFloat 4s ease-in-out infinite;
}
@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hg-hero h1 {
  font-family: "Amiri", serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--gold-light);
  margin-bottom: 16px;
  text-shadow: 0 0 60px rgba(200, 151, 42, 0.25);
  letter-spacing: 0.02em;
}
.hg-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.9;
}
.hg-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 151, 42, 0.08);
  border: 1px solid rgba(200, 151, 42, 0.22);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-decoration: none;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.hg-breadcrumb:hover {
  background: rgba(200, 151, 42, 0.16);
  color: var(--gold-light);
  border-color: rgba(200, 151, 42, 0.4);
  transform: translateY(-1px);
}
.hg-breadcrumb i {
  color: var(--gold);
}

/* ── Phase Nav — pill tabs with glow ── */
.phase-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 56px;
  position: relative;
}
.phase-nav::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 151, 42, 0.3),
    transparent
  );
}
.phase-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 50px;
  border: 1.5px solid rgba(200, 151, 42, 0.25);
  background: rgba(15, 30, 20, 0.7);
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Amiri", serif;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.phase-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 151, 42, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.phase-btn:hover::before,
.phase-btn.active::before {
  opacity: 1;
}

.phase-btn.active,
.phase-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 700;
  box-shadow:
    0 4px 24px rgba(200, 151, 42, 0.25),
    inset 0 0 20px rgba(200, 151, 42, 0.05);
  transform: translateY(-2px);
}
.phase-btn.active {
  background: linear-gradient(
    135deg,
    rgba(200, 151, 42, 0.2),
    rgba(160, 112, 32, 0.1)
  );
  color: #e8c860;
  box-shadow:
    0 6px 28px rgba(200, 151, 42, 0.35),
    0 0 0 1px rgba(200, 151, 42, 0.3);
}
.phase-btn i {
  font-size: 0.95rem;
}

/* ── Section Titles ── */
.hg-section-title {
  font-family: "Amiri", serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--gold-light);
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(200, 151, 42, 0.15);
}
.hg-section-sub {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 38px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Cards — redesigned with gradient border & glow ── */
.hg-card {
  background: linear-gradient(
    145deg,
    rgba(18, 36, 24, 0.95),
    rgba(10, 22, 15, 0.98)
  );
  border: 1px solid rgba(200, 151, 42, 0.15);
  border-radius: 18px;
  padding: 26px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
/* Subtle left accent bar */
.hg-card::before {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(200, 151, 42, 0.5),
    transparent
  );
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.35s;
}
/* Shimmer on hover */
.hg-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 151, 42, 0.03) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.hg-card:hover {
  border-color: rgba(200, 151, 42, 0.45);
  transform: translateY(-4px) translateX(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(200, 151, 42, 0.15),
    4px 0 20px rgba(200, 151, 42, 0.08);
}
.hg-card:hover::before {
  opacity: 1;
}
.hg-card:hover::after {
  opacity: 1;
}

.hg-card-num {
  min-width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c8972a, #8a6018);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0d1a12;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(200, 151, 42, 0.35);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.hg-card:hover .hg-card-num {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(200, 151, 42, 0.5);
}
.hg-card-body {
  flex: 1;
}
.hg-card-title {
  font-family: "Amiri", serif;
  font-size: 1.13rem;
  color: var(--gold-light);
  margin-bottom: 7px;
  font-weight: 700;
  transition: color 0.3s;
}
.hg-card:hover .hg-card-title {
  color: #f0d878;
}
.hg-card-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}
.hg-card-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  opacity: 0.8;
  transition:
    transform 0.35s,
    opacity 0.35s;
  filter: drop-shadow(0 2px 8px rgba(200, 151, 42, 0.2));
}
.hg-card:hover .hg-card-icon {
  opacity: 1;
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(200, 151, 42, 0.4));
}

/* ── First Aid Steps ── */
.fa-step {
  background: rgba(200, 151, 42, 0.05);
  border: 1px solid rgba(200, 151, 42, 0.15);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.fa-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 151, 42, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.fa-step:hover {
  background: rgba(200, 151, 42, 0.09);
  border-color: rgba(200, 151, 42, 0.35);
  transform: translateX(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.fa-step:hover::before {
  opacity: 1;
}

.fa-step-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(200, 151, 42, 0.6);
  background: rgba(200, 151, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.3s;
}
.fa-step:hover .fa-step-num {
  background: rgba(200, 151, 42, 0.2);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(200, 151, 42, 0.4);
}
.fa-step-text {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.8;
  padding-top: 5px;
}

/* ── Attention Box — warning stripe ── */
.attention-box {
  background: linear-gradient(
    135deg,
    rgba(200, 151, 42, 0.08),
    rgba(160, 112, 32, 0.04)
  );
  border: 1.5px solid rgba(200, 151, 42, 0.28);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.attention-box::before {
  content: "⚠";
  position: absolute;
  left: -10px;
  top: -10px;
  font-size: 6rem;
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
}
.attention-box::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #c8972a, #8a6018, #c8972a);
  border-radius: 0 18px 18px 0;
}
.attention-box p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 2;
  font-family: "Amiri", serif;
  margin: 0;
}
.attention-box strong {
  color: #f0c840;
}

/* ── Divider ── */
.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 32px;
  border-radius: 2px;
  position: relative;
}
.gold-divider::before {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: var(--gold);
  background: inherit;
}

/* ── SDEA Block ── */
.sdea-block {
  background: linear-gradient(
    135deg,
    rgba(20, 42, 28, 0.95) 0%,
    rgba(10, 22, 16, 0.98) 100%
  );
  border: 1px solid rgba(200, 151, 42, 0.22);
  border-radius: 22px;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(200, 151, 42, 0.1);
  position: relative;
  overflow: hidden;
}
.sdea-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 151, 42, 0.5),
    transparent
  );
}
.sdea-logo-box img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 4px 16px rgba(200, 151, 42, 0.2));
}
.sdea-qr-box img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  border: 2px solid rgba(200, 151, 42, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.sdea-info {
  flex: 1;
  min-width: 200px;
}
.sdea-name {
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 8px;
  font-weight: 700;
}
.sdea-contact {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 2.2;
}
.sdea-contact a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.sdea-contact a:hover {
  color: var(--gold-light);
}

/* ── Back Button ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    135deg,
    rgba(200, 151, 42, 0.12),
    rgba(200, 151, 42, 0.06)
  );
  border: 1px solid rgba(200, 151, 42, 0.28);
  color: var(--gold-light);
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-family: "Amiri", serif;
  backdrop-filter: blur(6px);
}
.back-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(200, 151, 42, 0.25),
    rgba(200, 151, 42, 0.12)
  );
  color: #f0d060;
  border-color: rgba(200, 151, 42, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200, 151, 42, 0.2);
}
.back-btn i {
  transition: transform 0.3s;
}
.back-btn:hover i {
  transform: translateX(-4px);
}

/* ── Phase panels ── */
.phase-panel {
  display: none;
}
.phase-panel.active {
  display: block;
  animation: panelFadeIn 0.4s ease both;
}
@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .hg-card {
    flex-direction: column;
    gap: 14px;
  }
  .sdea-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
  .hg-hero {
    padding: 100px 0 60px;
  }
  .phase-btn {
    padding: 10px 18px;
    font-size: 0.86rem;
  }
}

.syringe {
  background: linear-gradient(45deg, #3498db, #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ══ FINAL OVERRIDE: Arabic text always RTL ══ */
.arabic-text,
.ayah-ar,
#quranDisplay .ayah-ar,
#duaDisplay .arabic-text,
#athkarDisplay .arabic-text {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: isolate !important;
  border-right: 3px solid var(--gold) !important;
  border-left: none !important;
  padding-right: 18px !important;
  padding-left: 0 !important;
}
