/* =============================================================================
 *  NOOR AL-QURAN — STYLES
 *  Design direction: "quiet editorial" — mihrab arch, emerald & gold leaf on
 *  deep night blue / warm parchment. Disciplined whitespace, hairline rules.
 * ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&family=Inter:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');
/* ---- Design tokens ---------------------------------------------------- */
:root {
  --display: "Noto Sans Bengali", "Inter", sans-serif;
  --body: "Noto Sans Bengali", "Inter", sans-serif;
  --arabic: "Amiri Quran", "Noto Naskh Arabic", serif;
  --bangla: "Noto Sans Bengali", sans-serif;

  --r: 16px;
  --r-sm: 10px;
  --maxw: 1180px;
  --side-w: 264px;
  --gap: clamp(16px, 2.4vw, 28px);
}

[data-theme="dark"] {
  --bg: #090909;
  --bg-2: #111111;

  --surface: #151515;
  --surface-2: #1c1c1c;

  --ink: #ffffff;
  --muted: #a9a9a9;

  --emerald: #ffffff;
  --emerald-soft: #d9d9d9;

  --gold: #ffffff;
  --gold-soft: rgba(255,255,255,.12);

  --line: rgba(255,255,255,.14);
  --line-2: rgba(255,255,255,.08);

  --shadow: 0 18px 44px rgba(0,0,0,.45);
}
[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f7f7f7;

  --surface: #ffffff;
  --surface-2: #f1f1f1;

  --ink: #111111;
  --muted: #666666;

  --emerald: #111111;
  --emerald-soft: #444444;

  --gold: #111111;
  --gold-soft: rgba(0,0,0,.08);

  --line: rgba(0,0,0,.14);
  --line-2: rgba(0,0,0,.08);

  --shadow: 0 18px 44px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html { font-size: calc(16px * var(--font-scale)); scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* ---- App frame -------------------------------------------------------- */
#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--side-w); flex: 0 0 var(--side-w); background: var(--bg-2);
  border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; z-index: 40;
}
.side-head { display: flex; align-items: center; gap: 8px; padding: 20px 18px 14px; }
.side-close { display: none; margin-left: auto; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.logo-svg, .logo-img { width: 38px; height: 38px; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: .2px; }
.brand-text i { font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; overflow-y: auto; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: var(--r-sm);
  color: var(--muted); font-size: .92rem; font-weight: 500; transition: .18s; position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link.active { color: var(--ink); background: var(--surface); }
.nav-link.active::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
  background: var(--gold); border-radius: 3px;
}
.nav-link .ic { color: var(--emerald); }
.side-foot { padding: 14px 18px; font-size: .72rem; color: var(--muted); border-top: 1px solid var(--line-2); }

.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 39; }

/* Main column */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 12px clamp(16px, 3vw, 32px); background: var(--bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: transparent; border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; transition: .15s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line); }
#menuBtn { display: none; }
.topsearch { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 9px;
  padding: 0 14px; height: 42px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; color: var(--muted); }
.topsearch:focus-within { border-color: var(--emerald); }
.topsearch input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 10px clamp(16px, 3vw, 32px);

  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;

  padding: 7px 12px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--surface);
  color: var(--ink);

  font-weight: 700;
  text-decoration: none;

  transition: 0.18s ease;
}

.breadcrumb a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.breadcrumb .sep {
  opacity: 0.55;
}

.view { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(16px,3vw,32px) 60px; outline: none; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  border-radius: 120px 120px var(--r) var(--r); background:
    radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--emerald) 22%, var(--surface)) 0%, var(--surface) 55%);
  padding: clamp(40px, 7vw, 84px) clamp(22px, 5vw, 60px) clamp(34px, 5vw, 56px);
  box-shadow: var(--shadow); margin-bottom: var(--gap);
}
.hero::after { content:""; position:absolute; inset:6px; border:1px solid var(--gold-soft);
  border-radius: 116px 116px 12px 12px; pointer-events:none; }
.hero-arch { position: relative; z-index: 2; max-width: 640px; }
.eyebrow { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
  font-weight: 600; margin: 0 0 14px; }
.hero-title { font-family: var(--display); font-weight: 500; line-height: 1.04;
  font-size: clamp(2rem, 5.4vw, 3.5rem); margin: 0 0 16px; letter-spacing: -.01em; }
.hero-sub { color: var(--muted); font-size: clamp(.95rem,1.6vw,1.08rem); max-width: 50ch; margin: 0 0 26px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 14px; padding: 7px 7px 7px 16px; max-width: 560px;
  color: var(--muted); }
.hero-search:focus-within { border-color: var(--emerald); }
.hero-search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; height: 38px; }
.hero-pattern { position: absolute; right: -6%; top: 0; bottom: 0; width: 46%; color: var(--gold);
  opacity: .5; z-index: 1; mask-image: linear-gradient(to left, #000 30%, transparent); }
.hero-pattern svg { width: 100%; height: 100%; }

/* ---- Quick grid ------------------------------------------------------- */
.quickgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px,1fr)); gap: 12px; margin-bottom: var(--gap); }
.quick { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 600;
  font-size: .92rem; transition: .18s; }
.quick:hover { border-color: var(--gold); transform: translateY(-2px); }
.quick .ic { width: 1.5em; height: 1.5em; color: var(--emerald); }

/* ---- Blocks ----------------------------------------------------------- */
.block { margin-bottom: calc(var(--gap) * 1.3); }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.block h2, .block-head h2 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 0 0 14px; }
.block-head h2 { margin: 0; }
.link { color: var(--emerald); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 5px; }
.link:hover { color: var(--gold); }
.link .ic { width: 1em; height: 1em; }

.continue { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--r); padding: 18px 22px; }
.continue h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 500; }

.about-strip { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 26px clamp(20px,3vw,34px); }
.about-strip p { color: var(--muted); max-width: 68ch; margin: 10px 0 14px; }

/* ---- Surah cards ------------------------------------------------------ */
.surah-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.surah-card { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); overflow: hidden; transition: .18s; }
.surah-card:hover { border-color: var(--gold); }
.sc-main { display: flex; align-items: center; gap: 14px; padding: 14px 8px 14px 16px; flex: 1; min-width: 0; }
.sc-num { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
  font-family: var(--display); font-size: .95rem; color: var(--gold);
  border: 1px solid var(--gold-soft); border-radius: 10px; transform: rotate(45deg); }
.sc-num { position: relative; }
.sc-names { display: flex; flex-direction: column; min-width: 0; }
.sc-names b { font-size: .98rem; font-weight: 600; }
.sc-bn { font-style: normal; font-family: var(--bangla); font-size: .85rem; color: var(--emerald); }
.sc-names small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ar { font-family: var(--arabic); font-size: 1.35rem; color: var(--ink); margin-left: auto; padding-left: 8px; }
.sc-tools { display: flex; gap: 2px; padding: 8px; border-left: 1px solid var(--line-2); }

/* ===== ALL SURAHS CARD POLISH ===== */

.surah-card {
  min-height: 116px;
  border-radius: 14px;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.surah-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 228, 99, 0.45);
  box-shadow:
    0 12px 28px rgba(0,0,0,.22),
    0 0 18px rgba(34,197,94,.08);
}

.sc-main {
  gap: 14px;
  padding: 16px;
}

.sc-num {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
}

.sc-names {
  gap: 3px;
}

.sc-names b {
  font-size: .95rem;
  line-height: 1.2;
}

.sc-bn {
  font-size: .76rem;
  line-height: 1.3;
}

.sc-names small {
  font-size: .68rem;
  line-height: 1.2;
  opacity: .65;
}

.sc-ar {
  font-size: 1.22rem;
  line-height: 1.45;
  min-width: 78px;
  text-align: right;
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
}

.sc-tools {
  padding: 6px;
  gap: 3px;
}

.sc-tools .mini {
  width: 30px;
  height: 30px;
}

.mini { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: .15s; }
.mini:hover { color: var(--ink); background: var(--surface-2); }
.mini.on { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--muted); font-size: .84rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--emerald-soft); border-color: transparent; color: #fff; }

/* ---- Surah detail ----------------------------------------------------- */
.page-head { margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.page-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem,3.4vw,2.4rem); margin: 0; }
.page-head p { color: var(--muted); margin: 0; flex: 1 1 240px; }

.surah-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px,3vw,32px); margin-bottom: 18px; box-shadow: var(--shadow); }
.sh-top { display: flex; align-items: center; gap: 18px; }
.sh-num { font-family: var(--display); font-size: 1.4rem; color: var(--gold);
  width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--gold-soft);
  border-radius: 14px; flex: 0 0 auto; }
.sh-titles { flex: 1; min-width: 0; }
.sh-titles h1 { font-family: var(--display); font-weight: 500; font-size: 1.7rem; margin: 0; }
.sh-bn { font-family: var(--bangla); color: var(--emerald); margin: 2px 0 0; }
.sh-meaning { color: var(--muted); margin: 2px 0 0; font-size: .9rem; }
.sh-ar { font-family: var(--arabic); font-size: 2.4rem; color: var(--ink); }
.sh-info { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0; padding: 16px 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sh-info span { display: flex; flex-direction: column; }
.sh-info i { font-style: normal; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sh-info b { font-weight: 600; font-size: .96rem; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 11px;
  background: var(--emerald-soft); color: #fff; border: 0; font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: .16s; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.ghost.on { color: var(--gold); border-color: var(--gold); }
.sel, .block-sel { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
select { font: inherit; font-size: .88rem; padding: 8px 12px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; }
.block-sel { display: flex; margin-bottom: 14px; }

.reader-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tchip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--muted); font-size: .8rem; cursor: pointer; }
.tchip.on { color: var(--ink); border-color: var(--gold); }

.bismillah { font-family: var(--arabic); text-align: center; font-size: 2rem; color: var(--gold);
  padding: 14px 0 24px; }

/* Ayah */
.ayah-list { display: flex; flex-direction: column; gap: 14px; }
.ayah { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 20px clamp(16px,2.4vw,26px); }
.ayah-rail { flex: 0 0 auto; }
.ayah-no { display: grid; place-items: center; min-width: 44px; height: 30px; padding: 0 8px;
  font-size: .76rem; font-weight: 600; color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 8px; }
.ayah-body { flex: 1; min-width: 0; }
.ayah .ar { font-family: var(--arabic); font-size: 1.85rem; line-height: 2; text-align: right; margin: 0 0 14px; }
.ayah .tr { color: var(--emerald); font-size: .95rem; margin: 0 0 8px; }
.ayah .bn { font-family: var(--bangla); font-size: 1.02rem; margin: 0 0 8px; }
.ayah .en { color: var(--muted); margin: 0 0 8px; }
.lbl { display: inline-block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; margin-right: 8px;
  vertical-align: middle; font-family: var(--body); }
.ayah-tools { display: flex; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }

/* ---- Audio hub -------------------------------------------------------- */
.audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 10px; }
.audio-row { display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; }
.ar-num { font-family: var(--display); color: var(--gold); width: 30px; text-align: center; }
.ar-name { flex: 1; display: flex; flex-direction: column; }
.ar-name small { color: var(--muted); font-size: .74rem; }

/* ---- Download cards --------------------------------------------------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-bottom: 18px; }
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; }
.dl-card .ic { width: 1.8em; height: 1.8em; color: var(--emerald); }
.dl-card b { font-size: 1rem; }

/* ---- Lectures --------------------------------------------------------- */
.lec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; margin-top: 16px; }
.lec-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; transition: .18s; }
.lec-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.lec-thumb { aspect-ratio: 16/9; background: var(--surface-2) center/cover; display: grid; place-items: center; color: #fff; }
.lec-thumb .ic { width: 2.4em; height: 2.4em; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.lec-meta { padding: 14px 16px; }
.lec-meta small { display: block; color: var(--muted); font-size: .76rem; margin-top: 4px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---- Namaz / tables --------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); }
table.rakat { width: 100%; border-collapse: collapse; min-width: 480px; }
table.rakat th, table.rakat td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
table.rakat th { background: var(--surface-2); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.rakat td:first-child, table.rakat th:first-child { text-align: left; }
.steps { padding-left: 20px; line-height: 1.9; }
.steps li { margin-bottom: 6px; }
.namaz-step { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 12px; }
.namaz-step h4 { margin: 0 0 8px; font-family: var(--display); font-weight: 500; }
.namaz-step .ar { font-family: var(--arabic); font-size: 1.5rem; text-align: right; margin: 0 0 6px; }

/* ---- Collection (dua / hadith) --------------------------------------- */
.col-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.entry { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 22px; }
.entry-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.entry-head b { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.tag { font-size: .7rem; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.entry .ar { font-family: var(--arabic); font-size: 1.7rem; text-align: right; line-height: 1.9; margin: 0 0 10px; }
.entry .tr { color: var(--emerald); margin: 0 0 8px; }
.entry .bn { font-family: var(--bangla); margin: 0 0 8px; }
.entry .en { color: var(--muted); margin: 0 0 8px; }
.entry .src { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 10px; margin: 8px 0 0; }

/* ---- Favorites -------------------------------------------------------- */
.fav-list { display: flex; flex-direction: column; gap: 8px; }
.fav-row { display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; }
.fav-row a { flex: 1; display: flex; flex-direction: column; }
.fav-row small { color: var(--muted); font-size: .76rem; }

/* ---- Search ----------------------------------------------------------- */
.search-inline { display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; height: 44px; color: var(--muted); margin-bottom: 16px; }
.search-inline.big { height: 52px; }
.search-inline:focus-within { border-color: var(--emerald); }
.search-inline input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.list-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.list-controls .search-inline { flex: 1; min-width: 240px; margin: 0; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg-b { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 8px; font: inherit; font-size: .82rem; cursor: pointer; }
.seg-b.active { background: var(--emerald-soft); color: #fff; }
.font-val { padding: 7px 6px; font-size: .82rem; color: var(--ink); align-self: center; }
.kw-hit { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 8px; }
.kw-hit:hover { border-color: var(--gold); }
.kw-ref { font-size: .76rem; color: var(--gold); font-weight: 600; }

/* ---- Settings --------------------------------------------------------- */
.settings { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 22px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.set-row:last-child { border-bottom: 0; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.track { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; transition: .18s; }
.track::before { content: ""; position: absolute; left: 3px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: .18s; }
.switch input:checked + .track { background: var(--emerald-soft); border-color: transparent; }
.switch input:checked + .track::before { transform: translateX(20px); background: #fff; }

/* ---- Misc ------------------------------------------------------------- */
.prose { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px clamp(20px,3vw,34px); max-width: 76ch; }
.prose h3 { font-family: var(--display); font-weight: 500; margin: 22px 0 8px; }
.prose p { color: var(--muted); }
.prose a { color: var(--emerald); }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.notice { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px; color: var(--muted); }
.notice.info { border-color: var(--gold-soft); }
.notice.err { border-color: #c2553f; }
.notice code, .prose code, .empty code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: .85em; color: var(--gold); }
.empty { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.empty-mark { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--emerald); }
.empty .ic { width: 1.6em; height: 1.6em; }
.empty h3 { font-family: var(--display); font-weight: 500; margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 auto; max-width: 44ch; }

/* Skeleton + toast */
.skel-wrap { display: flex; flex-direction: column; gap: 12px; }
.skel { height: 64px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 80;
  background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Player bar ------------------------------------------------------- */
.player { position: fixed; left: 0; right: 0; bottom: -100px; z-index: 70; display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(12px,3vw,28px); background: var(--bg-2); border-top: 1px solid var(--line);
  transition: bottom .25s; box-shadow: 0 -14px 40px -30px rgba(0,0,0,.8); }
.player.show { bottom: 0; }
.pp-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--emerald-soft); color: #fff; border: 0; cursor: pointer; flex: 0 0 auto; }
.pp-btn[id="pp-close"], .pp-btn[id="pp-dl"] { background: transparent; color: var(--muted); border: 1px solid var(--line-2); width: 38px; height: 38px; }
.pp-meta { min-width: 0; max-width: 220px; }
.pp-title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-sub { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-seekwrap { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 80px; }
.pp-time { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-seek, .pp-volrange { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; background: var(--surface-2); cursor: pointer; }
.pp-seek { flex: 1; }
.pp-volrange { width: 80px; }
.pp-seek::-webkit-slider-thumb, .pp-volrange::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
.pp-seek::-moz-range-thumb, .pp-volrange::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--gold); }
.pp-rate { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); }
.pp-vol { display: flex; align-items: center; gap: 6px; color: var(--muted); }

/* ---- Bottom nav (mobile) --------------------------------------------- */
.bottomnav { display: none; }

/* ---- Footer ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-2); margin-top: auto; padding: 34px clamp(16px,3vw,32px) 30px; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot-grid b { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.foot-grid p { color: var(--muted); margin: 6px 0 0; font-size: .85rem; }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--muted); }
.foot-links a:hover, .foot-grid a:hover { color: var(--emerald); }
.foot-grid > div:last-child { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--muted); }
.foot-bottom { max-width: var(--maxw); margin: 24px auto 0; padding-top: 18px; border-top: 1px solid var(--line-2);
  font-size: .78rem; color: var(--muted); }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  .side-close { display: inline-grid; }
  #menuBtn { display: inline-grid; }
  .scrim.show { display: block; }
  .sh-ar { font-size: 1.8rem; }
}
@media (max-width: 640px) {
  html { font-size: calc(15px * var(--font-scale)); }
  .topsearch { display: none; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--bg-2); border-top: 1px solid var(--line); padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0; color: var(--muted); font-size: .64rem; font-weight: 600; }
  .bottomnav a.active { color: var(--gold); }
  .bottomnav .ic { width: 1.35em; height: 1.35em; }
  .view { padding-bottom: 90px; }
  .player.show { bottom: 60px; }
  .sh-top { flex-wrap: wrap; }
  .sh-ar { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .pp-rate, .pp-vol { display: none; }
  .pp-meta { max-width: 120px; }
}

/* ---- Accessibility & print ------------------------------------------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }
@media print {
  .sidebar, .topbar, .breadcrumb, .footer, .bottomnav, .player, .reader-toolbar, .sh-actions, .ayah-tools, .scrim { display: none !important; }
  body, .ayah, .surah-hero { background: #fff; color: #000; }
  .ayah { break-inside: avoid; border-color: #ddd; }
}

.pdf-extra-section {
  margin-top: 28px;
}

.pdf-extra-section .section-head {
  margin-bottom: 16px;
}

.pdf-extra-section .section-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.popular-surah-grid {
  grid-template-columns: repeat(3, 1fr);
}

.popular-surah-card {
  text-decoration: none;
  color: var(--ink);
}

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

@media (max-width: 600px) {
  .popular-surah-grid {
    grid-template-columns: 1fr;
  }
}

/* new code from chatgpt */
.juz-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.juz-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: 0.2s ease;
}

.juz-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}

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

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


/* new 3  */
.juz-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.juz-navigation .btn {
  min-width: 110px;
  text-align: center;
}

@media (max-width: 600px) {
  .juz-navigation .btn {
    min-width: auto;
  }
}


/* Islamic Lecture   start */
  /* ===== Featured Islamic Lecture ===== */

.featured-lecture {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0 26px;
}

.featured-lecture-thumb {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: #071722;
}

.featured-lecture-thumb img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.featured-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 26, 37, 0.88);
  color: #fff;
  font-size: 20px;
  padding-left: 3px;
}

.featured-lecture-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.featured-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.featured-lecture-content h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.25;
}

.featured-lecture-content p {
  line-height: 1.65;
}

.featured-lecture-content .btn {
  margin-top: 12px;
}

@media (max-width: 850px) {
  .featured-lecture {
    grid-template-columns: 1fr;
  }

  .featured-lecture-thumb,
  .featured-lecture-thumb img {
    min-height: 220px;
  }

  .featured-lecture-content {
    padding: 22px;
  }
}

/* ===== Islamic Learning Library - Featured Section Upgrade ===== */

.featured-lecture {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  min-height: 360px;
  margin: 18px 0 22px;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.035),
      rgba(255, 255, 255, 0.01)
    ),
    var(--surface);
}

.featured-lecture-thumb {
  min-height: 360px;
  border-right: 1px solid var(--line-2);
}

.featured-lecture-thumb img {
  min-height: 360px;
  max-height: 420px;
  object-fit: cover;
}

.featured-lecture-content {
  padding: clamp(28px, 4vw, 48px);
  justify-content: center;
}

.featured-label {
  margin-bottom: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.featured-lecture-content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.featured-lecture-content p {
  max-width: 52ch;
  margin: 0 0 10px;
  line-height: 1.7;
}

.featured-lecture-content .btn {
  margin-top: 14px;
  width: fit-content;
}

/* subtle library hover */
.featured-lecture {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.featured-lecture:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(16, 185, 129, 0.08);
}

/* Tablet */
@media (max-width: 850px) {
  .featured-lecture {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .featured-lecture-thumb {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line-2);
  }

  .featured-lecture-thumb img {
    min-height: 240px;
    max-height: 320px;
  }

  .featured-lecture-content {
    padding: 24px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .featured-lecture {
    margin: 14px 0 18px;
    border-radius: 14px;
  }

  .featured-lecture-thumb,
  .featured-lecture-thumb img {
    min-height: 200px;
  }

  .featured-lecture-thumb img {
    max-height: 240px;
  }

  .featured-lecture-content {
    padding: 18px;
  }

  .featured-lecture-content h2 {
    font-size: 1.35rem;
  }

  .featured-play {
    width: 50px;
    height: 50px;
  }
}



/* ===== Lecture List Heading ===== */

.lecture-list-head {
  margin: 24px 0 16px;
}

.lecture-list-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.lecture-list-head p {
  margin: 0;
}

/* ===== Islamic Lecture Cards ===== */

.lec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lec-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lec-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald);
}

.lec-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.lec-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lec-play svg {
  width: 20px;
  height: 20px;
}

.lec-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  min-width: 0;
}

.lec-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lec-title {
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.lec-speaker {
  color: var(--muted);
  line-height: 1.4;
}

.lec-source {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.lec-watch {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald);
}

/* Tablet */
@media (max-width: 900px) {
  .lec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .lec-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lec-meta {
    padding: 14px;
  }

  .lec-title {
    font-size: 0.96rem;
  }
}


/* ===== Mobile Lecture Category Chips ===== */

@media (max-width: 600px) {
  #lecCats {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #lecCats::-webkit-scrollbar {
    display: none;
  }

  #lecCats .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

  /* ===== Lecture Detail Info ===== */

.lecture-info {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
  gap: 16px;
  margin: 20px 0;
}

.lecture-info-block,
.lecture-source-box {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 18px;
}

.lecture-info-block h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.lecture-info-block p {
  margin: 0;
  line-height: 1.7;
}

.lecture-source-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.lecture-source-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
}

.lecture-source-box strong {
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Tablet + Mobile */
@media (max-width: 760px) {
  .lecture-info {
    grid-template-columns: 1fr;
  }

  .lecture-info-block,
  .lecture-source-box {
    padding: 16px;
  }
}

/* ===== Related Lectures ===== */

.related-lectures {
  margin-top: 32px;
}

.related-lectures-head {
  margin-bottom: 16px;
}

.related-lectures-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.related-lectures-head p {
  margin: 0;
}

.related-lecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-lecture-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-lecture-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald);
}

.related-lecture-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.related-lecture-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
}

.related-lecture-content strong {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.related-lecture-content small {
  color: var(--muted);
}

/* Tablet */
@media (max-width: 900px) {
  .related-lecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .related-lectures {
    margin-top: 26px;
  }

  .related-lecture-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .related-lecture-content {
    padding: 14px;
  }
}

/* ===== Lecture Detail Actions ===== */

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.row-actions .btn {
  min-width: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .row-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 380px) {
  .row-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile Bottom Navigation Safe Space ===== */

@media (max-width: 600px) {
  #view {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}


/* ===== Verified Source Link ===== */

.lecture-source-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--emerald);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.lecture-source-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .lecture-source-link {
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }
}

/* mobile responsive thik kora */

/* ===== Home Hero Mobile Responsive Fix ===== */

@media (max-width: 600px) {
  .hero {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 28px 16px 24px;
    border-radius: 36px 36px 18px 18px;
  }

  .hero::after {
    border-radius: 32px 32px 14px 14px;
  }

  .hero-arch {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 2.75rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 6px;
    padding: 6px 6px 6px 12px;
  }

  .hero-search input {
    min-width: 0;
    width: 100%;
    height: 40px;
    font-size: 16px;
  }

  .hero-search button,
  .hero-search .btn {
    flex: 0 0 auto;
  }

  .hero-pattern {
    right: -18%;
    width: 60%;
  }
}


/* ===== Extra Small Mobile Hero ===== */

@media (max-width: 380px) {
  .hero {
    padding: 24px 14px 20px;
    border-radius: 30px 30px 16px 16px;
  }

  .hero::after {
    border-radius: 26px 26px 12px 12px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 10.5vw, 2.35rem);
    line-height: 1.02;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-search {
    margin-top: 0;
  }
}

@media (max-width: 340px) {
  .hero-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    padding: 8px;
  }

  .hero-search input {
    width: 100%;
    min-width: 0;
    height: 40px;
  }

  .hero-search button,
  .hero-search .btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}
/* ===== Mobile Quick Grid Balance ===== */

@media (max-width: 600px) {
  .quickgrid > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ===== Tablet Quick Grid ===== */

@media (min-width: 601px) and (max-width: 900px) {
  .quickgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .quickgrid > * {
    min-width: 0;
  }
}

/* ===== Featured Surahs Responsive ===== */

@media (min-width: 601px) and (max-width: 900px) {
  .surah-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .surah-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===== Featured Surah Card Mobile ===== */

@media (max-width: 600px) {

  .surah-card {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .surah-card .sc-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "num names"
      "arabic arabic";
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
    padding: 16px;
    box-sizing: border-box;
  }

  .surah-card .sc-num {
    grid-area: num;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-self: start;
  }

  .surah-card .sc-names {
    grid-area: names;
    display: block;
    min-width: 0;
  }

  .surah-card .sc-names b {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .surah-card .sc-bn {
    display: block;
    margin-top: 4px;
    white-space: normal;
  }

  .surah-card .sc-names small {
    display: block;
    margin-top: 4px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .surah-card .sc-ar {
    grid-area: arabic;
    display: block;
    width: 100%;
    min-width: 0;
    padding-top: 10px;
    border-left: 0;
    text-align: right;
    font-size: 1.55rem;
    line-height: 1.6;
  }

  .surah-card .sc-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    padding: 10px 14px 14px;
    box-sizing: border-box;
  }

  .surah-card .sc-tools .mini {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== Mobile Footer Safe Space ===== */

@media (max-width: 600px) {
  #footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .foot-bottom {
    position: relative;
    z-index: 1;
  }
}

/* ===== Small Desktop / Tablet Landscape Surah Grid ===== */

@media (min-width: 901px) and (max-width: 1100px) {
  .surah-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ===== All Surahs Mobile Compact Cards ===== */

@media (max-width: 600px) {

  #surahList .surah-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #surahList .surah-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  #surahList .surah-card .sc-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas: "num names arabic";
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 13px 14px 8px;
    box-sizing: border-box;
  }

  #surahList .surah-card .sc-num {
    grid-area: num;
    width: 40px;
    height: 40px;
  }

  #surahList .surah-card .sc-names {
    grid-area: names;
    min-width: 0;
  }

  #surahList .surah-card .sc-names b {
    font-size: 0.95rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  #surahList .surah-card .sc-bn {
    margin-top: 2px;
    font-size: 0.78rem;
  }

  #surahList .surah-card .sc-names small {
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  #surahList .surah-card .sc-ar {
    grid-area: arabic;
    width: auto;
    padding: 0;
    border-left: 0;
    font-size: 1.25rem;
    line-height: 1.4;
    white-space: nowrap;
    text-align: right;
  }

  #surahList .surah-card .sc-tools {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
    padding: 0 10px 10px;
    box-sizing: border-box;
  }

  #surahList .surah-card .sc-tools .mini {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}

/* ===== All Surahs Tablet Grid ===== */

@media (min-width: 601px) and (max-width: 900px) {
  #surahList .surah-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #surahList .surah-card {
    min-width: 0;
  }

  #surahList .surah-card .sc-main {
    min-width: 0;
  }

  #surahList .surah-card .sc-names {
    min-width: 0;
  }
}

/* ===== Global Audio Player Mobile Responsive ===== */

@media (max-width: 600px) {

  #player {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 40px 40px;
    grid-template-areas:
      "toggle meta download close"
      "seek   seek seek     seek"
      "rate   vol  vol      vol";
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  #pp-toggle {
    grid-area: toggle;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #player .pp-meta {
    grid-area: meta;
    min-width: 0;
    overflow: hidden;
  }

  #player .pp-title {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #player .pp-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #player .pp-seekwrap {
    grid-area: seek;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  #player .pp-seek {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  #player .pp-time {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  #player .pp-rate {
    grid-area: rate;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  #player #pp-rate {
    width: 76px;
    max-width: 76px;
    height: 36px;
    font-size: 0.75rem;
  }

  #player .pp-vol {
    grid-area: vol;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
  }

  #player .pp-volrange {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  #pp-dl {
    grid-area: download;
  }

  #pp-close {
    grid-area: close;
  }

  #pp-dl,
  #pp-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== Audio Player Mobile Bottom Controls FINAL ===== */

@media (max-width: 600px) {

  #player {
    grid-template-areas:
      "toggle meta download close"
      "seek   seek seek     seek"
      "rate   rate rate     rate"
      "vol    vol  vol      vol";
  }

  #player .pp-rate {
    grid-area: rate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  #player #pp-rate {
    width: 90px !important;
    min-width: 90px;
    height: 36px;
    flex: 0 0 90px;
  }

  #player .pp-vol {
    grid-area: vol;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  #player .pp-volrange {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
}

/* ===== Islamic Lectures Mobile Categories ===== */

@media (max-width: 600px) {

  #lecCats {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #lecCats::-webkit-scrollbar {
    display: none;
  }

  #lecCats .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* ===== Islamic Lectures Featured Thumbnail Mobile Fix ===== */

@media (max-width: 600px) {

  .featured-lecture-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .featured-lecture-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .featured-lecture-thumb .featured-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
  }
}

/* ===== Islamic Lectures Small Desktop / Tablet Fix ===== */

@media (min-width: 901px) and (max-width: 1100px) {

  .featured-lecture {
    display: grid;
    grid-template-columns: 1fr;
  }

  .featured-lecture-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .featured-lecture-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .featured-lecture-content {
    width: 100%;
    padding: 28px;
  }
}

/* ===== Lecture Detail Mobile Final Stack ===== */

@media (max-width: 600px) {

  #view .row-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }

  #view .lecture-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #view .lecture-info-block,
  #view .lecture-source-box {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  #view .row-actions .btn {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* Namaj Sikha page */
/* =========================================
   NAMAZ SHIKHA - LIVE PRAYER CARD
========================================= */

.next-prayer-panel {
  background: linear-gradient(
    135deg,
    rgba(24, 74, 91, 0.95),
    rgba(12, 39, 54, 0.98)
  );
  border: 1px solid rgba(48, 199, 164, 0.18);
  border-radius: 18px;
  padding: 24px;
  margin: 18px 0 20px;
  position: relative;
  overflow: hidden;
}

.next-prayer-panel::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(35, 190, 151, 0.08);
  right: -60px;
  top: -80px;
  pointer-events: none;
}

.next-prayer-panel .eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d9b84f;
}

#currentPrayerName {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.1;
  color: #ffffff;
}

.next-prayer-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.next-prayer-info > div {
  background: rgba(5, 25, 38, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
}

.next-prayer-info .muted {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  color: #8eb2bd;
}

.next-prayer-info strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
}

#prayerCountdown {
  color: #38c7a4;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}


/* Tablet */
@media (max-width: 900px) {
  .next-prayer-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Mobile */
@media (max-width: 520px) {
  .next-prayer-panel {
    padding: 18px;
    border-radius: 15px;
  }

  #currentPrayerName {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .next-prayer-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .next-prayer-info > div {
    padding: 12px;
  }

  .next-prayer-info strong {
    font-size: 14px;
  }

  #prayerCountdown {
    font-size: 17px;
  }
}
.prayer-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;

  margin-top: 14px;
  padding-top: 12px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: #86a8b6;
  font-size: 11px;
  line-height: 1.4;
}

.prayer-hero-meta span {
  position: relative;
}

.prayer-hero-meta span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -11px;
  color: rgba(134, 168, 182, 0.45);
}

.prayer-hero-meta-location {
  color: #d9edf3;
  font-weight: 600;
}

@media (max-width: 520px) {
  .prayer-hero-meta {
    gap: 6px 14px;
    font-size: 10px;
  }

  .prayer-hero-meta span:not(:last-child)::after {
    right: -10px;
  }
}
.prayer-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #86a8b6;
  font-size: 11px;
  line-height: 1.4;
}

.prayer-hero-meta span {
  position: relative;
}

.prayer-hero-meta span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -11px;
  color: rgba(134, 168, 182, 0.45);
}

.prayer-hero-meta-location {
  color: #d9edf3;
  font-weight: 600;
}

@media (max-width: 520px) {
  .prayer-hero-meta {
    gap: 6px 14px;
    font-size: 10px;
  }

  .prayer-hero-meta span:not(:last-child)::after {
    right: -10px;
  }
}

/* =========================================
   NAMAZ - LOCATION & DATE BAR
========================================= */

.prayer-location {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;

  background: rgba(18, 48, 65, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;

  padding: 14px 18px;
  margin: 0 0 18px;
}

.prayer-location strong {
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}

.prayer-location .muted {
  margin: 0;
  font-size: 13px;
  color: #8fb4c1;
}

.prayer-location .muted:first-of-type {
  color: #31c5a3;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 520px) {
  .prayer-location {
    display: block;
    padding: 14px;
  }

  .prayer-location strong {
    display: block;
    margin-bottom: 7px;
  }

  .prayer-location .muted {
    margin-top: 4px;
  }
}

/* =========================================
   NAMAZ - DAILY PRAYER CARDS
========================================= */

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.prayer-time-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;

  min-height: 88px;
  padding: 16px;

  background: #102c3d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;

  transition: 0.2s ease;
}

.prayer-time-card:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 195, 158, 0.3);
}

.prayer-card-label {
  font-size: 12px;
  color: #8fb4c1;
}

.prayer-time-card strong {
  font-size: 18px;
  line-height: 1.2;
  color: #ffffff;
}

/* Current Prayer */
.prayer-time-card.is-current {
  background: linear-gradient(
    145deg,
    rgba(27, 113, 105, 0.95),
    rgba(17, 73, 77, 0.95)
  );

  border-color: rgba(55, 211, 171, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}

.prayer-time-card.is-current::after {
  content: "CURRENT";
  position: absolute;
  top: 10px;
  right: 10px;

  padding: 3px 6px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.prayer-time-card.is-current .prayer-card-label {
  color: #b8f6e6;
}

.prayer-time-card.is-current strong {
  color: #ffffff;
}


/* Sunrise */
.sunrise-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 10px;
  padding: 11px 16px;

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;

  background: rgba(16, 44, 61, 0.45);
}

.sunrise-info span {
  color: #8fb4c1;
  font-size: 12px;
}

.sunrise-info strong {
  color: #d9b84f;
  font-size: 14px;
}


/* Tablet */
@media (max-width: 900px) {
  .prayer-times-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Mobile */
@media (max-width: 520px) {
  .prayer-times-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .prayer-time-card {
    min-height: 78px;
    padding: 13px;
  }

  .prayer-time-card strong {
    font-size: 16px;
  }

  .prayer-time-card:last-child {
    grid-column: 1 / -1;
  }

  .sunrise-info {
    padding: 10px 13px;
  }
}

/* Namaz - detected place */
.prayer-place-name {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .prayer-place-name {
    margin: 6px 0 4px;
    font-size: 15px;
  }
}

/* =========================================
   NAMAZ - RAK'AH CARDS
========================================= */

.rakat-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.rakat-card {
  overflow: hidden;
  background: #0f2a3b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.rakat-card-head {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  background: rgba(27, 70, 94, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rakat-prayer-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.rakat-fardh-badge {
  flex-shrink: 0;
  padding: 4px 7px;
  border-radius: 20px;

  background: rgba(48, 197, 158, 0.12);
  color: #35c79e;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.rakat-card-body {
  padding: 10px;
  display: grid;
  gap: 7px;
}

.rakat-stat {
  min-height: 55px;
  padding: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  background: rgba(7, 28, 41, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
}

.rakat-stat span {
  color: #8fb4c1;
  font-size: 10px;
  line-height: 1.3;
}

.rakat-stat strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.rakat-stat-main {
  border-color: rgba(48, 197, 158, 0.18);
}

.rakat-stat-main strong {
  color: #35c79e;
}

.rakat-witr {
  border-color: rgba(219, 187, 76, 0.18);
}

.rakat-witr strong {
  color: #e3c55b;
}


/* Tablet */
@media (max-width: 900px) {
  .rakat-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Mobile */
@media (max-width: 520px) {
  .rakat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rakat-card-head {
    padding: 12px;
  }

  .rakat-prayer-name {
    font-size: 15px;
  }

  .rakat-card-body {
    padding: 8px;
  }

  .rakat-stat {
    min-height: 50px;
    padding: 9px;
  }

  .rakat-stat strong {
    font-size: 16px;
  }

  .rakat-card:last-child {
    grid-column: 1 / -1;
  }
}


/* =========================================
   NAMAZ - WUDU STEP CARDS
========================================= */

.wudu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.wudu-step-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;

  padding: 16px;

  background: #0f2a3b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;

  transition: 0.2s ease;
}

.wudu-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(48, 197, 158, 0.3);
}

.wudu-step-number {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: rgba(48, 197, 158, 0.12);
  border: 1px solid rgba(48, 197, 158, 0.2);

  color: #35c79e;
  font-size: 15px;
  font-weight: 700;
}

.wudu-step-content {
  min-width: 0;
}

.wudu-step-label {
  display: block;
  margin-bottom: 5px;

  color: #8fb4c1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.wudu-step-content p {
  margin: 0;

  color: #ffffff;
  font-size: 13px;
  line-height: 1.6;
}


/* Tablet */
@media (max-width: 900px) {
  .wudu-grid {
    grid-template-columns: 1fr;
  }
}


/* Mobile */
@media (max-width: 520px) {
  .wudu-grid {
    gap: 9px;
  }

  .wudu-step-card {
    padding: 13px;
    gap: 11px;
    border-radius: 12px;
  }

  .wudu-step-number {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
  }

  .wudu-step-content p {
    font-size: 12px;
    line-height: 1.55;
  }
}


/* =========================================
   NAMAZ - STEP BY STEP PRAYER
========================================= */

.prayer-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.namaz-step {
  position: relative;
  overflow: hidden;
  padding: 18px;

  background: #0f2a3b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;

  transition: transform 0.2s ease, border-color 0.2s ease;
}

.namaz-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 3px;
  height: 100%;

  background: #35c79e;
  opacity: 0.75;
}

.namaz-step:hover {
  transform: translateY(-2px);
  border-color: rgba(48, 197, 158, 0.28);
}

.namaz-step h4 {
  margin: 0 0 11px;

  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.namaz-step .bn {
  margin: 0 0 9px;

  color: #ffffff;
  font-size: 13px;
  line-height: 1.75;
}

.namaz-step .en {
  margin: 0;

  color: #9bb8c5;
  font-size: 12px;
  line-height: 1.65;
}

.namaz-step .tr {
  margin: 7px 0;

  color: #35c79e;
  font-size: 12px;
  line-height: 1.6;
}

.namaz-step .ar {
  margin: 10px 0;

  color: #ffffff;
  font-size: 20px;
  line-height: 1.9;
  text-align: right;
}

.namaz-step-note {
  margin-top: 12px !important;
  padding-top: 10px;

  border-top: 1px solid rgba(255, 255, 255, 0.07);

  color: #7fa1af;
  font-size: 10px !important;
  line-height: 1.5 !important;
}


/* Tablet */
@media (max-width: 900px) {
  .prayer-steps-grid {
    grid-template-columns: 1fr;
  }
}


/* Mobile */
@media (max-width: 520px) {
  .prayer-steps-grid {
    gap: 9px;
  }

  .namaz-step {
    padding: 14px;
    border-radius: 12px;
  }

  .namaz-step h4 {
    font-size: 14px;
    margin-bottom: 9px;
  }

  .namaz-step .bn {
    font-size: 12px;
    line-height: 1.7;
  }

  .namaz-step .en {
    font-size: 11px;
    line-height: 1.6;
  }

  .namaz-step .ar {
    font-size: 18px;
  }

  .namaz-step-note {
    font-size: 9px !important;
  }
}


/* =========================================
   NAMAZ - SALAH LEARNING GUIDE
========================================= */

.salah-learning-section {
  margin-top: 28px;
}

.salah-learning-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 26px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(48, 197, 158, 0.12),
      transparent 32%
    ),
    #0f2a3b;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.salah-learning-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.salah-learning-content .eyebrow {
  margin-bottom: 8px;

  color: #e3c55b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.salah-learning-content h2 {
  margin: 0 0 10px;

  color: #ffffff;
  font-size: 25px;
  line-height: 1.25;
}

.salah-learning-content > p {
  max-width: 540px;
  margin: 0 0 18px;

  color: #9bb8c5;
  font-size: 13px;
  line-height: 1.7;
}

.salah-learning-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.salah-learning-features span {
  padding: 7px 10px;

  background: rgba(48, 197, 158, 0.08);
  border: 1px solid rgba(48, 197, 158, 0.15);
  border-radius: 30px;

  color: #a9c8d2;
  font-size: 10px;
  font-weight: 600;
}

.salah-learning-content .btn {
  margin-top: auto;
}


/* Right visual */
.salah-learning-visual {
  display: grid;
  gap: 8px;
}

.salah-visual-step {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;

  background: rgba(5, 24, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
}

.salah-visual-step span {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  background: rgba(48, 197, 158, 0.12);
  border-radius: 9px;

  color: #35c79e;
  font-size: 10px;
  font-weight: 700;
}

.salah-visual-step strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}


/* Tablet */
@media (max-width: 900px) {
  .salah-learning-card {
    grid-template-columns: 1fr;
  }

  .salah-learning-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .salah-visual-step:last-child {
    grid-column: 1 / -1;
  }
}


/* Mobile */
@media (max-width: 520px) {
  .salah-learning-section {
    margin-top: 20px;
  }

  .salah-learning-card {
    padding: 17px;
    gap: 18px;
    border-radius: 14px;
  }

  .salah-learning-content h2 {
    font-size: 21px;
  }

  .salah-learning-content > p {
    font-size: 12px;
  }

  .salah-learning-features {
    gap: 6px;
  }

  .salah-learning-features span {
    padding: 6px 8px;
    font-size: 9px;
  }

  .salah-learning-visual {
    grid-template-columns: 1fr;
  }

  .salah-visual-step:last-child {
    grid-column: auto;
  }

  .salah-visual-step {
    padding: 10px 12px;
  }
}

/* =========================================
   NAMAZ - QIBLAH COMPASS
========================================= */

.qiblah-card {
  margin-top: 14px;
  padding: 18px 20px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(48, 197, 158, 0.12),
      transparent 42%
    ),
    #0f2a3b;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
}

.qiblah-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.qiblah-copy .eyebrow {
  display: block;
  margin-bottom: 7px;

  color: #e3c55b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.qiblah-result {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qiblah-degree {
  color: #35c79e;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.qiblah-direction-name {
  display: block;
  margin-bottom: 3px;

  color: #ffffff;
  font-size: 14px;
}

.qiblah-result p {
  margin: 0;

  color: #8fb4c1;
  font-size: 10px;
}


/* Compass */

.qiblah-compass {
  position: relative;

  width: 105px;
  height: 105px;
  flex: 0 0 105px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(48, 197, 158, 0.08) 0 33%,
      transparent 34%
    ),
    #0b2231;

  border: 1px solid rgba(48, 197, 158, 0.25);
}

.qiblah-compass::before {
  content: "";
  position: absolute;
  inset: 11px;

  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.compass-point {
  position: absolute;

  color: #789dab;
  font-size: 8px;
  font-weight: 700;
}

.compass-n {
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  color: #e3c55b;
}

.compass-s {
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-e {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-w {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.qiblah-arrow-wrap {
  position: absolute;
  inset: 0;

  transition: transform 0.5s ease;
}

.qiblah-arrow {
  position: absolute;
  top: 18px;
  left: 50%;

  transform: translateX(-50%);

  color: #35c79e;
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
}

.qiblah-compass-center {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 10px;
  height: 10px;

  transform: translate(-50%, -50%);

  background: #35c79e;
  border: 3px solid #0b2231;
  border-radius: 50%;

  box-shadow: 0 0 0 1px rgba(48, 197, 158, 0.35);
}


/* Mobile */

@media (max-width: 520px) {
  .qiblah-card {
    padding: 15px;
  }

  .qiblah-content {
    gap: 15px;
  }

  .qiblah-result {
    display: block;
  }

  .qiblah-degree {
    display: block;
    margin-bottom: 6px;
    font-size: 25px;
  }

  .qiblah-compass {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .qiblah-arrow {
    top: 14px;
    font-size: 27px;
  }
}


/* =========================================
   NAMAZ - FINAL MOBILE RESPONSIVE
========================================= */

@media (max-width: 520px) {

  /* Page heading */
  .page-head {
    display: block;
  }

  .page-head h1 {
    margin-bottom: 6px;
    font-size: 27px;
    line-height: 1.2;
  }

  .page-head > p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
  }


  /* Prayer main card */
  .next-prayer-panel {
    padding: 16px;
    border-radius: 14px;
  }

  #currentPrayerName {
    font-size: 24px;
  }

  .next-prayer-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .next-prayer-info > div {
    min-width: 0;
    padding: 11px;
  }

  .next-prayer-info .muted {
    font-size: 9px;
  }

  .next-prayer-info strong {
    font-size: 13px;
  }

  #prayerCountdown {
    font-size: 16px;
  }


  /* Detected location */
  .prayer-location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;

    padding: 12px 13px;
  }

  .prayer-location strong {
    width: 100%;
    margin: 0;
    font-size: 11px;
  }

  .prayer-place-name {
    margin: 0;
    font-size: 13px;
    white-space: normal;
  }

  .prayer-location .muted {
    margin: 0;
    font-size: 10px;
  }


  /* Prayer time cards */
  .prayer-times-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .prayer-time-card {
    min-height: 72px;
    padding: 11px;
  }

  .prayer-time-card:last-child {
    grid-column: 1 / -1;
  }

  .prayer-card-label {
    font-size: 10px;
  }

  .prayer-time-card strong {
    font-size: 16px;
  }

  .sunrise-info {
    margin-top: 8px;
    padding: 10px 12px;
  }


  /* Qiblah */
  .qiblah-card {
    padding: 14px;
    border-radius: 13px;
  }

  .qiblah-content {
    gap: 12px;
  }

  .qiblah-degree {
    font-size: 25px;
  }

  .qiblah-direction-name {
    font-size: 12px;
  }

  .qiblah-result p {
    font-size: 9px;
  }

  .qiblah-compass {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
  }


  /* Rak'ah */
  .rakat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rakat-card {
    border-radius: 12px;
  }

  .rakat-card:last-child {
    grid-column: 1 / -1;
  }

  .rakat-card-head {
    padding: 11px;
  }

  .rakat-prayer-name {
    font-size: 14px;
  }

  .rakat-fardh-badge {
    font-size: 8px;
  }

  .rakat-card-body {
    padding: 8px;
    gap: 6px;
  }

  .rakat-stat {
    min-height: 46px;
    padding: 8px;
  }

  .rakat-stat span {
    font-size: 9px;
  }

  .rakat-stat strong {
    font-size: 15px;
  }


  /* Wudu */
  .wudu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wudu-step-card {
    padding: 12px;
  }

  .wudu-step-number {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .wudu-step-content p {
    font-size: 11px;
    line-height: 1.55;
  }


  /* Prayer steps */
  .prayer-steps-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .namaz-step {
    padding: 14px;
  }

  .namaz-step h4 {
    font-size: 14px;
  }

  .namaz-step .bn {
    font-size: 12px;
    line-height: 1.7;
  }

  .namaz-step .en {
    font-size: 10px;
    line-height: 1.6;
  }


  /* Learn Salah */
  .salah-learning-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 18px;
  }

  .salah-learning-content h2 {
    font-size: 21px;
  }

  .salah-learning-content > p {
    font-size: 11px;
  }

  .salah-learning-features {
    gap: 6px;
  }

  .salah-learning-features span {
    font-size: 8px;
  }

  .salah-learning-visual {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .salah-visual-step {
    padding: 10px;
  }
}


/* Extra small phones */
@media (max-width: 380px) {

  .next-prayer-info {
    grid-template-columns: 1fr;
  }

  .prayer-times-grid {
    grid-template-columns: 1fr;
  }

  .prayer-time-card:last-child {
    grid-column: auto;
  }

  .qiblah-compass {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
}

/* =========================================
   NAMAZ - FINAL TABLET RESPONSIVE
   600px - 900px
========================================= */

@media (min-width: 600px) and (max-width: 900px) {

  /* Wudu - keep 2 columns on tablet */
  .wudu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wudu-step-card {
    padding: 13px;
    gap: 11px;
  }

  .wudu-step-number {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  .wudu-step-content p {
    font-size: 11px;
    line-height: 1.55;
  }


  /* Step-by-step prayer - 2 columns */
  .prayer-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .namaz-step {
    padding: 14px;
  }

  .namaz-step h4 {
    font-size: 13px;
  }

  .namaz-step .bn {
    font-size: 11px;
    line-height: 1.65;
  }

  .namaz-step .en {
    font-size: 10px;
    line-height: 1.55;
  }


  /* Learn Salah - side by side */
  .salah-learning-card {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    padding: 20px;
  }

  .salah-learning-content h2 {
    font-size: 22px;
  }

  .salah-learning-content > p {
    font-size: 11px;
  }

  .salah-learning-visual {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .salah-visual-step:last-child {
    grid-column: auto;
  }

  .salah-visual-step {
    padding: 9px 11px;
  }

  /* Qiblah */
  .qiblah-card {
    padding: 16px 18px;
  }

  .qiblah-compass {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {

  .rakat-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .rakat-card {
    grid-column: span 2;
  }

  /* Maghrib + Isha second row evenly fill করবে */
  .rakat-card:nth-child(4),
  .rakat-card:nth-child(5) {
    grid-column: span 3;
  }
}

/* =========================================
   NAMAZ - PRAYER SETTINGS BAR
========================================= */

.prayer-settings-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;

  margin-top: 10px;
  padding: 12px 14px;

  background: #0f2a3b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.prayer-setting-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.prayer-setting-field label {
  flex-shrink: 0;

  color: #9bb8c5;
  font-size: 10px;
  font-weight: 600;
}

.prayer-setting-field select {
  width: 100%;
  min-width: 0;
  height: 34px;

  padding: 0 30px 0 10px;

  background: #0a2231;
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;

  font-size: 10px;
  font-family: inherit;

  outline: none;
  cursor: pointer;
}

.prayer-setting-field select:hover {
  border-color: rgba(48, 197, 158, 0.3);
}

.prayer-setting-field select:focus {
  border-color: #35c79e;
  box-shadow: 0 0 0 2px rgba(53, 199, 158, 0.08);
}

.prayer-setting-field select option {
  background: #0a2231;
  color: #ffffff;
}


/* Tablet */
@media (max-width: 900px) {
  .prayer-settings-bar {
    grid-template-columns: 1fr 1fr;
  }

  .prayer-setting-field {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .prayer-setting-field select {
    width: 100%;
  }
}


/* Mobile */
@media (max-width: 520px) {
  .prayer-settings-bar {
    grid-template-columns: 1fr;
    gap: 9px;

    padding: 11px;
    border-radius: 11px;
  }

  .prayer-setting-field {
    width: 100%;
  }

  .prayer-setting-field label {
    font-size: 9px;
  }

  .prayer-setting-field select {
    height: 36px;
    font-size: 11px;
  }
}


/* =========================================
   NAMAZ - PRAYER REMINDER
========================================= */

.prayer-reminder-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-top: 10px;
  padding: 13px 14px;

  background: #0f2a3b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.prayer-reminder-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.prayer-reminder-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(48, 197, 158, 0.11);
  border: 1px solid rgba(48, 197, 158, 0.18);
  border-radius: 9px;

  color: #35c79e;
  font-size: 18px;
}

.prayer-reminder-info > div {
  min-width: 0;
}

.prayer-reminder-info strong {
  display: block;
  margin-bottom: 2px;

  color: #ffffff;
  font-size: 11px;
}

.prayer-reminder-info div > span {
  display: block;

  color: #8fb4c1;
  font-size: 9px;
}

.prayer-reminder-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}


/* Toggle */

.prayer-reminder-toggle {
  display: flex;
  align-items: center;
  gap: 7px;

  color: #9bb8c5;
  font-size: 10px;
  cursor: pointer;
  user-select: none;
}

.prayer-reminder-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prayer-toggle-ui {
  position: relative;

  width: 34px;
  height: 19px;

  background: #081d2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;

  transition: 0.2s ease;
}

.prayer-toggle-ui::after {
  content: "";

  position: absolute;
  top: 3px;
  left: 3px;

  width: 11px;
  height: 11px;

  background: #789ba8;
  border-radius: 50%;

  transition: 0.2s ease;
}

.prayer-reminder-toggle input:checked + .prayer-toggle-ui {
  background: rgba(48, 197, 158, 0.18);
  border-color: rgba(48, 197, 158, 0.45);
}

.prayer-reminder-toggle input:checked + .prayer-toggle-ui::after {
  left: 18px;
  background: #35c79e;
}


/* Minutes dropdown */

#prayerReminderMinutes {
  min-width: 120px;
  height: 34px;

  padding: 0 28px 0 10px;

  background: #0a2231;
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;

  font-family: inherit;
  font-size: 10px;

  outline: none;
  cursor: pointer;
}

#prayerReminderMinutes:hover {
  border-color: rgba(48, 197, 158, 0.3);
}

#prayerReminderMinutes:focus {
  border-color: #35c79e;
  box-shadow: 0 0 0 2px rgba(53, 199, 158, 0.08);
}

#prayerReminderMinutes option {
  background: #0a2231;
  color: #ffffff;
}


/* Tablet */
@media (max-width: 900px) {
  .prayer-reminder-bar {
    gap: 12px;
  }

  .prayer-reminder-controls {
    gap: 8px;
  }
}


/* Mobile */
@media (max-width: 520px) {
  .prayer-reminder-bar {
    flex-direction: column;
    align-items: stretch;

    gap: 12px;
    padding: 12px;
  }

  .prayer-reminder-controls {
    width: 100%;
    justify-content: space-between;
  }

  #prayerReminderMinutes {
    flex: 1;
    min-width: 0;
  }

  .prayer-reminder-info strong {
    font-size: 11px;
  }

  .prayer-reminder-info div > span {
    font-size: 9px;
  }
}

.test-reminder-btn {
  height: 34px;
  padding: 0 13px;

  background: rgba(48, 197, 158, 0.14);
  color: #35c79e;

  border: 1px solid rgba(48, 197, 158, 0.25);
  border-radius: 8px;

  font-family: inherit;
  font-size: 10px;
  font-weight: 600;

  cursor: pointer;
}

.test-reminder-btn:hover {
  background: rgba(48, 197, 158, 0.22);
}

@media (max-width: 520px) {
  .test-reminder-btn {
    height: 36px;
    padding: 0 14px;
  }
} 

/* =========================================
   DAILY PRAYER TRACKER
========================================= */

.prayer-tracker-section {
  margin-top: 22px;
}

.prayer-tracker-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.prayer-tracker-head h2 {
  margin: 4px 0 4px;
}

.prayer-tracker-head p {
  margin: 0;
  color: #86a8b6;
  font-size: 11px;
}

.prayer-tracker-progress {
  min-width: 82px;
  padding: 10px 14px;

  text-align: center;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.prayer-tracker-progress strong {
  display: block;
  color: #35c79e;
  font-size: 20px;
  line-height: 1.1;
}

.prayer-tracker-progress span {
  display: block;
  margin-top: 3px;

  color: #7fa4b2;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}


/* Prayer buttons */

.prayer-tracker-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.prayer-track-item {
  min-width: 0;
  height: 58px;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 10px 12px;

  background: #0f2d3e;
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;

  font-family: inherit;
  font-size: 11px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.2s ease;
}

.prayer-track-item:hover {
  border-color: rgba(53, 199, 158, 0.28);
  background: #123447;
}

.prayer-track-check {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: #0a2231;
  border: 1px solid rgba(53, 199, 158, 0.18);

  color: #537984;
  font-size: 12px;
}


/* Completed state */

.prayer-track-item.is-completed {
  background: rgba(35, 145, 122, 0.16);
  border-color: rgba(53, 199, 158, 0.42);
}

.prayer-track-item.is-completed .prayer-track-check {
  background: #16977c;
  border-color: #35c79e;
  color: #ffffff;
}

.prayer-track-item.is-completed > span:last-child {
  color: #35c79e;
}


/* Tablet */

@media (max-width: 900px) {
  .prayer-tracker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Mobile */

@media (max-width: 520px) {
  .prayer-tracker-section {
    margin-top: 18px;
  }

  .prayer-tracker-head {
    align-items: center;
    gap: 10px;
  }

  .prayer-tracker-head p {
    font-size: 9px;
  }

  .prayer-tracker-progress {
    min-width: 67px;
    padding: 9px 10px;
  }

  .prayer-tracker-progress strong {
    font-size: 17px;
  }

  .prayer-tracker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .prayer-track-item {
    height: 52px;
    padding: 9px 10px;
    font-size: 10px;
  }

  .prayer-track-item:last-child {
    grid-column: 1 / -1;
  }
}

/* Prayer Tracker Stats */
.prayer-tracker-stats {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.prayer-tracker-streak {
  min-width: 88px;
  padding: 10px 14px;
  text-align: center;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.prayer-tracker-streak strong {
  display: block;
  color: #35c79e;
  font-size: 20px;
  line-height: 1.1;
}

.prayer-tracker-streak span {
  display: block;
  margin-top: 3px;

  color: #7fa4b2;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

@media (max-width: 520px) {
  .prayer-tracker-stats {
    gap: 6px;
  }

  .prayer-tracker-progress,
  .prayer-tracker-streak {
    min-width: 64px;
    padding: 8px;
  }

  .prayer-tracker-streak strong {
    font-size: 17px;
  }
}

/* =========================================
   7 DAY PRAYER HISTORY
========================================= */

.prayer-history-section {
  margin-top: 22px;
}

.prayer-history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.prayer-history-head h2 {
  margin: 4px 0 4px;
}

.prayer-history-head p {
  margin: 0;
  color: #86a8b6;
  font-size: 11px;
}


/* Summary */

.prayer-history-summary {
  min-width: 82px;
  padding: 10px 14px;

  text-align: center;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.prayer-history-summary strong {
  display: block;

  color: #35c79e;
  font-size: 20px;
  line-height: 1.1;
}

.prayer-history-summary span {
  display: block;
  margin-top: 3px;

  color: #7fa4b2;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}


/* History grid */

.prayer-history-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.prayer-history-item {
  position: relative;

  padding: 12px;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;

  overflow: hidden;
}

.prayer-history-day strong {
  display: block;

  color: #ffffff;
  font-size: 11px;
}

.prayer-history-day span {
  display: block;
  margin-top: 2px;

  color: #7599a7;
  font-size: 8px;
}


/* Count */

.prayer-history-count {
  margin-top: 16px;
}

.prayer-history-count strong {
  display: block;

  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.prayer-history-count span {
  display: block;
  margin-top: 4px;

  color: #779ba8;
  font-size: 8px;
}


/* Progress bar */

.prayer-history-progress {
  width: 100%;
  height: 4px;

  margin-top: 12px;

  background: #081d2a;
  border-radius: 20px;

  overflow: hidden;
}

.prayer-history-progress span {
  display: block;
  height: 100%;

  background: #35c79e;
  border-radius: inherit;

  transition: width 0.25s ease;
}


/* Today */

.prayer-history-item.is-today {
  border-color: rgba(53, 199, 158, 0.45);
  background: rgba(25, 115, 100, 0.14);
}

.prayer-history-item.is-today .prayer-history-day strong {
  color: #35c79e;
}


/* Full completed day */

.prayer-history-item.is-full {
  border-color: rgba(53, 199, 158, 0.32);
}

.prayer-history-item.is-full .prayer-history-count strong {
  color: #35c79e;
}


/* Tablet */

@media (max-width: 1000px) {
  .prayer-history-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Mobile */

@media (max-width: 520px) {
  .prayer-history-section {
    margin-top: 18px;
  }

  .prayer-history-head {
    align-items: center;
    gap: 10px;
  }

  .prayer-history-head p {
    font-size: 9px;
  }

  .prayer-history-summary {
    min-width: 66px;
    padding: 8px 10px;
  }

  .prayer-history-summary strong {
    font-size: 17px;
  }

  .prayer-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .prayer-history-item {
    padding: 10px;
  }

  .prayer-history-item:last-child {
    grid-column: 1 / -1;
  }

  .prayer-history-count {
    margin-top: 12px;
  }

  .prayer-history-count strong {
    font-size: 16px;
  }
}

/* =========================================
   SALAH MODE SWITCH
========================================= */

.salah-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  width: 100%;
  max-width: 520px;

  margin: 20px 0 24px;
  padding: 5px;

  background: #0b2635;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.salah-mode-tab {
  position: relative;

  width: 100%;
  padding: 11px 18px;

  border: 0;
  border-radius: 10px;

  background: transparent;
  color: #7f9eaa;

  font-size: 12px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.salah-mode-tab:hover {
  color: #d8f4ee;
}

.salah-mode-tab.is-active {
  background: #123c48;
  color: #44d3aa;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(68, 211, 170, 0.14);
}

.salah-mode-tab.is-active::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 5px;

  width: 18px;
  height: 2px;

  background: #44d3aa;
  border-radius: 999px;

  transform: translateX(-50%);
}


/* Panels */

.salah-mode-panel {
  animation: salahPanelFade 0.22s ease;
}

.salah-mode-panel[hidden] {
  display: none !important;
}

@keyframes salahPanelFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile */

@media (max-width: 520px) {
  .salah-mode-tabs {
    max-width: none;
    margin: 16px 0 20px;
    padding: 4px;
  }

  .salah-mode-tab {
    padding: 10px 8px;
    font-size: 10px;
  }
}


/* =========================================
   MY ACTIVITY - DAILY SUMMARY
========================================= */

.activity-summary-section {
  margin-top: 4px;
}

.activity-summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.activity-summary-head h2 {
  margin: 4px 0;
}

.activity-summary-head p {
  margin: 0;
  color: #7f9eaa;
  font-size: 11px;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.activity-stat-card {
  position: relative;
  min-width: 0;
  padding: 15px;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;

  overflow: hidden;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.activity-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 199, 158, 0.28);
}

.activity-stat-card span {
  display: block;

  color: #789aa7;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-stat-card strong {
  display: block;
  margin-top: 8px;

  color: #f1fbff;
  font-size: 22px;
  line-height: 1;
}

.activity-stat-card:first-child strong {
  color: #35c79e;
}


/* Tablet */

@media (max-width: 900px) {
  .activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Mobile */

@media (max-width: 520px) {
  .activity-summary-head {
    align-items: flex-start;
  }

  .activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .activity-stat-card {
    padding: 12px;
  }

  .activity-stat-card span {
    font-size: 8px;
  }

  .activity-stat-card strong {
    margin-top: 7px;
    font-size: 18px;
  }
} 


/* =========================================
   7 DAY QURAN HISTORY
========================================= */

.quran-history-section {
  margin-top: 22px;
}

.quran-history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.quran-history-head h2 {
  margin: 4px 0;
}

.quran-history-head p {
  margin: 0;
  color: #7f9eaa;
  font-size: 11px;
}


/* Total */

.quran-history-total {
  min-width: 85px;
  padding: 10px 14px;

  text-align: center;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.quran-history-total strong {
  display: block;

  color: #35c79e;
  font-size: 20px;
  line-height: 1;
}

.quran-history-total span {
  display: block;
  margin-top: 5px;

  color: #7fa4b2;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}


/* Grid */

.quran-history-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.quran-history-item {
  min-width: 0;
  padding: 12px;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.quran-history-item:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 199, 158, 0.26);
}


/* Day */

.quran-history-day strong {
  display: block;

  color: #f3fbff;
  font-size: 10px;
}

.quran-history-day span {
  display: block;
  margin-top: 2px;

  color: #7297a5;
  font-size: 8px;
}


/* Stats */

.quran-history-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 6px;
  margin-top: 14px;
}

.quran-history-stats div {
  min-width: 0;

  padding: 7px 5px;

  text-align: center;

  background: #111111;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.quran-history-stats strong {
  display: block;

  color: #35c79e;
  font-size: 14px;
  line-height: 1;
}

.quran-history-stats span {
  display: block;
  margin-top: 4px;

  color: #7295a2;
  font-size: 7px;
  text-transform: uppercase;
}


/* Today */

.quran-history-item.is-today {
  background: rgba(35, 145, 122, 0.12);
  border-color: rgba(53, 199, 158, 0.5);
}

.quran-history-item.is-today .quran-history-day strong {
  color: #35c79e;
}


/* Tablet */

@media (max-width: 1000px) {
  .quran-history-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Mobile */

@media (max-width: 520px) {
  .quran-history-section {
    margin-top: 18px;
  }

  .quran-history-head {
    align-items: center;
    gap: 10px;
  }

  .quran-history-head p {
    font-size: 9px;
  }

  .quran-history-total {
    min-width: 68px;
    padding: 8px 9px;
  }

  .quran-history-total strong {
    font-size: 17px;
  }

  .quran-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .quran-history-item {
    padding: 10px;
  }

  .quran-history-item:last-child {
    grid-column: 1 / -1;
  }

  .quran-history-stats {
    margin-top: 11px;
  }
}

/* =========================================
   RECENT ACTIVITY
========================================= */

.recent-activity-section {
  margin-top: 20px;
}

.recent-activity-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.recent-activity-head h2 {
  margin: 4px 0;
}

.recent-activity-head p {
  margin: 0;
  color: #7f9eaa;
  font-size: 11px;
}


/* Count */

.recent-activity-count {
  min-width: 82px;
  padding: 10px 13px;

  text-align: center;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.recent-activity-count strong {
  display: block;

  color: #35c79e;
  font-size: 20px;
  line-height: 1;
}

.recent-activity-count span {
  display: block;
  margin-top: 5px;

  color: #789aa7;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* List */

.recent-activity-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.recent-activity-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;

  padding: 10px 12px;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.recent-activity-item:hover {
  border-color: rgba(53, 199, 158, 0.24);
}


/* Icon */

.recent-activity-icon {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: rgba(53, 199, 158, 0.12);
  color: #35c79e;

  font-size: 10px;
  font-weight: 700;
}

.recent-activity-quran .recent-activity-icon {
  background: rgba(71, 164, 210, 0.12);
  color: #67bce3;
}


/* Information */

.recent-activity-info {
  min-width: 0;
}

.recent-activity-info strong {
  display: block;

  color: #eaf7fb;
  font-size: 11px;
  font-weight: 600;
}

.recent-activity-info span {
  display: block;
  margin-top: 3px;

  color: #7194a1;
  font-size: 8px;
  text-transform: uppercase;
}


/* Time */

.recent-activity-item time {
  color: #7295a2;
  font-size: 9px;
  white-space: nowrap;
}


/* Empty */

.recent-activity-empty {
  padding: 18px;

  text-align: center;

  color: #718f9b;
  font-size: 10px;

  background: #0f2d3e;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}


/* Mobile */

@media (max-width: 520px) {
  .recent-activity-head {
    align-items: center;
    gap: 10px;
  }

  .recent-activity-count {
    min-width: 68px;
    padding: 8px 9px;
  }

  .recent-activity-count strong {
    font-size: 17px;
  }

  .recent-activity-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .recent-activity-icon {
    width: 27px;
    height: 27px;
  }

  .recent-activity-info strong {
    font-size: 10px;
  }

  .recent-activity-item time {
    font-size: 8px;
  }
}

/* =========================================
   QURAN / HADITH SOURCE DETAIL PAGE
========================================= */

.source-detail-page {
  max-width: 900px;
  margin: 0 auto;
}


/* Back button */

.source-back-btn {
  display: inline-flex;
  align-items: center;

  margin: 0 0 16px;
  padding: 0;

  background: transparent;
  border: 0;

  color: #83a4b0;
  font-size: 10px;

  cursor: pointer;

  transition: color 0.2s ease;
}

.source-back-btn:hover {
  color: #35c79e;
}


/* Loading */

.source-loading {
  padding: 28px;
  text-align: center;
}

.source-loading p {
  margin: 0;
  color: #7f9eaa;
}


/* Hero */

.source-detail-hero {
  margin-bottom: 15px;
}

.source-detail-hero h1 {
  margin: 6px 0 7px;

  color: #f1fbff;
  font-size: 27px;
  line-height: 1.2;
}

.source-detail-hero > p {
  max-width: 650px;
  margin: 0;

  color: #7f9eaa;
  font-size: 10px;
  line-height: 1.65;
}


/* Quran Card */

.source-quran-card {
  position: relative;
  overflow: hidden;

  padding: 22px;

  background: #0f2d3e;
  border: 1px solid rgba(53, 199, 158, 0.2);
  border-radius: 14px;
}

.source-reference {
  display: inline-flex;

  padding: 6px 9px;
  margin-bottom: 20px;

  background: rgba(53, 199, 158, 0.1);
  border: 1px solid rgba(53, 199, 158, 0.15);
  border-radius: 999px;

  color: #35c79e;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}


/* Arabic */

.source-arabic {
  padding: 20px 5px 24px;

  color: #f5fcff;

  font-size: 28px;
  line-height: 2;
  text-align: right;

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


/* Translation */

.source-language-block {
  padding: 18px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.source-language-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.source-language-block > span {
  display: block;
  margin-bottom: 8px;

  color: #35c79e;

  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.source-language-block p {
  max-width: 760px;
  margin: 0;

  color: #b7cdd5;

  font-size: 11px;
  line-height: 1.8;
}

.source-language-block[lang="bn"] p {
  font-size: 12px;
  line-height: 1.9;
}


/* Source information */

.source-note {
  margin-top: 15px;
}

.source-note h2 {
  margin: 5px 0 7px;

  color: #eef9fc;
  font-size: 17px;
}

.source-note p {
  max-width: 720px;
  margin: 0;

  color: #7f9eaa;

  font-size: 10px;
  line-height: 1.7;
}


/* Tablet */

@media (max-width: 800px) {
  .source-detail-page {
    max-width: none;
  }

  .source-detail-hero h1 {
    font-size: 24px;
  }

  .source-arabic {
    font-size: 24px;
  }
}


/* Mobile */

@media (max-width: 520px) {
  .source-detail-hero h1 {
    font-size: 21px;
  }

  .source-quran-card {
    padding: 15px;
  }

  .source-arabic {
    padding: 14px 0 18px;

    font-size: 21px;
    line-height: 1.9;
  }

  .source-language-block {
    padding: 14px 0;
  }

  .source-language-block p {
    font-size: 10px;
  }

  .source-language-block[lang="bn"] p {
    font-size: 11px;
  }
}


/* =========================================
   HADITH SOURCE DETAIL
========================================= */

.hadith-source-page {
  max-width: 900px;
  margin: 0 auto;
}


/* Hadith main card */

.source-hadith-card {
  padding: 22px;

  background: #0f2d3e;
  border: 1px solid rgba(103, 188, 227, 0.2);
  border-radius: 14px;
}


/* Narrator */

.source-hadith-narrator {
  margin: 4px 0 16px;
  padding-bottom: 14px;

  color: #67bce3;

  font-size: 10px;
  font-weight: 600;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


/* Hadith explanation */

.source-hadith-summary {
  color: #b6ccd4;

  font-size: 11px;
  line-height: 1.85;
}

.source-hadith-summary[lang="bn"] {
  font-size: 12px;
  line-height: 1.95;
}


/* Original Source button */

.source-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 14px;

  text-decoration: none;
}


/* Hadith source badge */

.hadith-source-page .source-reference {
  background: rgba(103, 188, 227, 0.1);
  border-color: rgba(103, 188, 227, 0.18);

  color: #67bce3;
}


/* Source note */

.hadith-source-page .source-note {
  margin-top: 15px;
}


/* Mobile */

@media (max-width: 520px) {
  .source-hadith-card {
    padding: 15px;
  }

  .source-hadith-narrator {
    font-size: 9px;
  }

  .source-hadith-summary {
    font-size: 10px;
  }

  .source-hadith-summary[lang="bn"] {
    font-size: 11px;
  }

  .source-external-link {
    width: 100%;
    justify-content: center;
  }
} 
.topic-reference-link {
  text-decoration: none;
  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.topic-reference-link:hover {
  color: #35c79e;
  border-color: rgba(53, 199, 158, 0.3);
  background: rgba(53, 199, 158, 0.08);
  transform: translateY(-1px);
}



/* =========================================
   RELATED AUTHENTIC REFERENCES
========================================= */

.related-authentic-sources {
  margin-top: 18px;
}

.related-sources-head {
  margin-bottom: 16px;
}

.related-sources-head h2 {
  margin: 5px 0 6px;

  color: #eef9fc;
  font-size: 18px;
}

.related-sources-head p {
  max-width: 680px;
  margin: 0;

  color: #7f9eaa;
  font-size: 10px;
  line-height: 1.7;
}


/* Group */

.related-source-group {
  margin-top: 18px;
}

.related-source-group > h3 {
  margin: 0 0 9px;

  color: #9bb5be;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}


/* Grid */

.related-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}


/* Card */

.related-source-card {
  position: relative;

  min-width: 0;
  padding: 14px 40px 14px 14px;

  background: #0f2d3e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.related-source-card:hover {
  transform: translateY(-2px);

  background: #123446;
  border-color: rgba(53, 199, 158, 0.3);
}


/* Card top */

.related-source-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;
  margin-bottom: 8px;
}

.related-source-type {
  display: inline-flex;

  padding: 4px 7px;

  border-radius: 999px;

  background: rgba(53, 199, 158, 0.1);
  color: #35c79e;

  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.related-source-card-top strong {
  color: #89a8b3;

  font-size: 8px;
  font-weight: 600;
}


/* Content */

.related-source-card h3 {
  margin: 0 0 5px;

  color: #edf9fc;
  font-size: 11px;
  line-height: 1.45;
}

.related-source-card p {
  margin: 0;

  color: #7697a4;
  font-size: 9px;
  line-height: 1.5;
}


/* Arrow */

.related-source-arrow {
  position: absolute;

  top: 50%;
  right: 14px;

  transform: translateY(-50%);

  color: #35c79e;
  font-size: 14px;

  transition: transform 0.2s ease;
}

.related-source-card:hover .related-source-arrow {
  transform: translate(3px, -50%);
}


/* Tablet */

@media (max-width: 800px) {
  .related-source-grid {
    grid-template-columns: 1fr;
  }
}


/* Mobile */

@media (max-width: 520px) {
  .related-authentic-sources {
    margin-top: 14px;
  }

  .related-source-card {
    padding: 12px 36px 12px 12px;
  }

  .related-source-card-top {
    align-items: flex-start;
  }

  .related-source-card h3 {
    font-size: 10px;
  }

  .related-source-card p {
    font-size: 8px;
  }
}

.source-reference-modal-btn {
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

/* =========================================
   SOURCE REFERENCE MODAL - FINAL FIX
========================================= */

.source-reference-modal[hidden] {
  display: none !important;
}

.source-reference-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.source-reference-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(2, 14, 22, 0.88);
  backdrop-filter: blur(6px);
}

.source-reference-modal-dialog {
  position: relative;
  z-index: 2;

  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;

  padding: 22px;

  background: #0f2d3e;

  border: 1px solid rgba(53, 199, 158, 0.28);
  border-radius: 14px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.source-reference-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 16px;

  padding-bottom: 14px;
  margin-bottom: 16px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.source-reference-modal-head h2 {
  margin: 5px 0 0;

  color: #f3fbff;
  font-size: 20px;
}

.source-reference-modal-close {
  width: 34px;
  height: 34px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;

  background: #082532;
  color: #ffffff;

  font-size: 20px;
  line-height: 1;

  cursor: pointer;
}

.source-reference-modal-body {
  padding: 0;
}


/* Quran inside modal */

.modal-quran-arabic {
  padding: 18px 0 22px;

  color: #ffffff;

  font-size: 25px;
  line-height: 2;
  text-align: right;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-reference-language {
  padding: 15px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-reference-language:last-child {
  border-bottom: 0;
}

.modal-reference-language > span {
  display: block;

  margin-bottom: 7px;

  color: #35c79e;
  font-size: 9px;
  font-weight: 700;
}

.modal-reference-language p {
  margin: 0;

  color: #b7cdd5;

  font-size: 11px;
  line-height: 1.8;
}


/* Related reference buttons */

.source-related-link {
  appearance: none;
  -webkit-appearance: none;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  padding: 11px 13px;

  background: #0f2d3e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9px;

  color: #dcecf1 !important;

  font-family: inherit;
  font-size: 10px;
  font-weight: 600;

  text-align: left;

  cursor: pointer;
}

.source-related-link:hover {
  background: #123446 !important;
  border-color: rgba(53, 199, 158, 0.32) !important;
}

.source-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.source-modal-open {
  overflow: hidden;
}


@media (max-width: 600px) {
  .source-reference-modal {
    padding: 12px;
  }

  .source-reference-modal-dialog {
    max-height: 90vh;
    padding: 16px;
  }

  .source-related-links {
    grid-template-columns: 1fr;
  }

  .modal-quran-arabic {
    font-size: 21px;
  }
}


/* =========================================
   HADITH MODAL CONTENT
========================================= */

.modal-hadith-reference {
  display: grid;
  gap: 16px;
}

.modal-hadith-collection {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 12px 14px;

  background: rgba(53, 199, 158, 0.07);
  border: 1px solid rgba(53, 199, 158, 0.15);
  border-radius: 10px;
}

.modal-hadith-collection strong {
  color: #eef9fc;
  font-size: 13px;
}

.modal-hadith-collection span {
  color: #7fa3af;
  font-size: 10px;
}


/* Narrator */

.modal-hadith-narrator {
  padding: 12px 0;

  border-bottom: 1px solid
    rgba(255, 255, 255, 0.07);
}

.modal-hadith-narrator > span {
  display: block;

  margin-bottom: 6px;

  color: #35c79e;
  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-hadith-narrator p {
  margin: 0;

  color: #b7cdd5;
  font-size: 11px;
  line-height: 1.7;
}


/* Bangla / English explanation */

.modal-hadith-reference
.modal-reference-language h3 {
  margin: 0 0 7px;

  color: #eef9fc;
  font-size: 13px;
  line-height: 1.5;
}

.modal-hadith-reference
.modal-reference-language p {
  color: #a9c1ca;
  line-height: 1.8;
}


/* Reference footer */

.modal-hadith-reference-note {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 11px 13px;

  background: #092633;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
}

.modal-hadith-reference-note span {
  color: #708f9a;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.modal-hadith-reference-note strong {
  color: #35c79e;
  font-size: 10px;
}


/* Mobile */

@media (max-width: 520px) {
  .modal-hadith-collection {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-hadith-reference-note {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================
   TAFSIR MODAL CONTENT
========================================= */

.modal-tafsir-reference {
  display: grid;
  gap: 16px;
}

.modal-tafsir-reference .source-reference {
  display: inline-flex;
  width: fit-content;

  padding: 6px 10px;

  background: rgba(53, 199, 158, 0.08);
  border: 1px solid rgba(53, 199, 158, 0.18);
  border-radius: 999px;

  color: #35c79e;
  font-size: 9px;
  font-weight: 700;
}

.modal-tafsir-reference
.modal-reference-language {
  padding: 15px;

  background: rgba(7, 31, 44, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.modal-tafsir-reference
.modal-reference-language > span {
  display: block;

  margin-bottom: 8px;

  color: #35c79e;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.modal-tafsir-reference
.modal-reference-language h3 {
  margin: 0 0 8px;

  color: #eef9fc;
  font-size: 14px;
  line-height: 1.5;
}

.modal-tafsir-reference
.modal-reference-language p {
  margin: 0;

  color: #abc3cc;
  font-size: 11px;
  line-height: 1.85;
}

@media (max-width: 520px) {
  .modal-tafsir-reference
  .modal-reference-language {
    padding: 12px;
  }
}



/* ==================================================
   PRAYER DASHBOARD - TODAY'S SALAH
================================================== */

.prayer-tracker-section {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(15, 45, 62, 0.96),
    rgba(10, 35, 49, 0.98)
  );
  border: 1px solid rgba(53, 199, 158, 0.16);
  border-radius: 14px;
}


/* Header */

.prayer-tracker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.prayer-tracker-title {
  min-width: 0;
}

.prayer-tracker-title .eyebrow {
  display: block;
  margin-bottom: 5px;
}

.prayer-tracker-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.prayer-tracker-title p {
  margin: 5px 0 0;
  color: #86a8b6;
  font-size: 10px;
}


/* Streak */

.prayer-tracker-streak {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 9px 12px;
  text-align: center;

  background: rgba(53, 199, 158, 0.07);
  border: 1px solid rgba(53, 199, 158, 0.18);
  border-radius: 10px;
}

.prayer-tracker-streak strong {
  display: block;
  color: #35c79e;
  font-size: 19px;
  line-height: 1;
}

.prayer-tracker-streak span {
  display: block;
  margin-top: 5px;

  color: #779eab;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* Progress overview */

.prayer-tracker-overview {
  margin-bottom: 16px;
}

.prayer-tracker-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 8px;
}

.prayer-tracker-overview-top > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

#prayerTrackerCount {
  color: #f1f8fa;
  font-size: 15px;
  line-height: 1;
}

.prayer-tracker-overview-top span {
  color: #789ca9;
  font-size: 9px;
}

#prayerTrackerPercent {
  color: #35c79e;
  font-size: 12px;
  font-weight: 700;
}


/* Progress bar */

.prayer-tracker-bar {
  width: 100%;
  height: 6px;
  overflow: hidden;

  background: rgba(4, 24, 34, 0.75);
  border-radius: 999px;
}

#prayerTrackerBar {
  display: block;
  width: 0%;
  height: 100%;

  background: linear-gradient(
    90deg,
    #35c79e,
    #59dfba
  );

  border-radius: inherit;
  transition: width 0.3s ease;
}


/* Five prayers */

.prayer-tracker-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.prayer-track-item {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 11px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  color: #a9c4cd;
  background: rgba(8, 36, 50, 0.72);

  border: 1px solid rgba(111, 158, 175, 0.18);
  border-radius: 9px;

  font: inherit;
  font-size: 10px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.prayer-track-item:hover {
  border-color: rgba(53, 199, 158, 0.35);
  background: rgba(20, 64, 73, 0.75);
}

.prayer-track-item:active {
  transform: scale(0.98);
}


/* Check icon */

.prayer-track-check {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;

  display: grid;
  place-items: center;

  color: transparent;

  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(121, 164, 178, 0.3);
  border-radius: 6px;

  font-size: 10px;
  font-weight: 800;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}


/* Completed prayer */

.prayer-track-item.is-completed {
  color: #dffcf3;

  background: rgba(53, 199, 158, 0.09);
  border-color: rgba(53, 199, 158, 0.38);
}

.prayer-track-item.is-completed .prayer-track-check {
  color: #062d27;
  background: #35c79e;
  border-color: #35c79e;
}


/* Tablet */

@media (max-width: 900px) {
  .prayer-tracker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Mobile */

@media (max-width: 520px) {
  .prayer-tracker-section {
    padding: 16px;
  }

  .prayer-tracker-head {
    gap: 12px;
  }

  .prayer-tracker-title h2 {
    font-size: 16px;
  }

  .prayer-tracker-streak {
    min-width: 68px;
    padding: 8px 10px;
  }

  .prayer-tracker-streak strong {
    font-size: 17px;
  }

  .prayer-tracker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .prayer-track-item {
    height: 42px;
  }

  .prayer-track-item:last-child {
    grid-column: 1 / -1;
  }
}

/* ==================================================
   PRAYER DASHBOARD - QUICK TOOLS
================================================== */

.dashboard-quick-tools {
  margin-top: 20px;
}

.dashboard-quick-tools-head {
  margin-bottom: 10px;
}

.dashboard-quick-tools-head .eyebrow {
  display: block;
  margin-bottom: 4px;
}

.dashboard-quick-tools-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}


/* Two column layout */

.dashboard-quick-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
  align-items: stretch;
}


/* =========================
   Prayer Reminder
========================= */

.dashboard-quick-tools .prayer-reminder-bar {
  margin: 0;
  min-width: 0;
  min-height: 112px;
  padding: 15px;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;

  background: rgba(14, 48, 64, 0.78);
  border: 1px solid rgba(89, 150, 167, 0.18);
  border-radius: 12px;
}

.dashboard-quick-tools .prayer-reminder-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-quick-tools .prayer-reminder-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;

  display: grid;
  place-items: center;

  color: #35c79e;
  background: rgba(53, 199, 158, 0.09);
  border: 1px solid rgba(53, 199, 158, 0.18);
  border-radius: 9px;
}

.dashboard-quick-tools .prayer-reminder-info > div {
  min-width: 0;
}

.dashboard-quick-tools .prayer-reminder-info strong {
  display: block;
  color: #edf8fb;
  font-size: 11px;
}

.dashboard-quick-tools .prayer-reminder-info span {
  display: block;
  margin-top: 3px;
  color: #7f9fab;
  font-size: 9px;
}


/* Reminder controls */

.dashboard-quick-tools .prayer-reminder-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.dashboard-quick-tools .prayer-reminder-toggle {
  margin-right: auto;
}

.dashboard-quick-tools #prayerReminderMinutes {
  height: 32px;
  min-width: 112px;
  padding: 0 28px 0 10px;

  color: #bcd2d9;
  background-color: rgba(7, 31, 43, 0.78);

  border: 1px solid rgba(107, 151, 165, 0.2);
  border-radius: 8px;

  font-size: 9px;
}

.dashboard-quick-tools .test-reminder-btn {
  height: 32px;
  padding: 0 12px;

  color: #9cebd2;
  background: rgba(53, 199, 158, 0.08);

  border: 1px solid rgba(53, 199, 158, 0.25);
  border-radius: 8px;

  font-size: 9px;
  font-weight: 700;
  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.dashboard-quick-tools .test-reminder-btn:hover {
  background: rgba(53, 199, 158, 0.14);
  border-color: rgba(53, 199, 158, 0.42);
}


/* =========================
   Qiblah Card
========================= */

.dashboard-quick-tools .qiblah-card {
  margin: 0;
  min-width: 0;
  min-height: 112px;
  padding: 15px;

  background: linear-gradient(
    135deg,
    rgba(15, 52, 68, 0.92),
    rgba(11, 43, 56, 0.98)
  );

  border: 1px solid rgba(53, 199, 158, 0.17);
  border-radius: 12px;
}

.dashboard-quick-tools .qiblah-card .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.dashboard-quick-tools .qiblah-card strong {
  color: #35c79e;
}


/* Tablet */

@media (max-width: 820px) {
  .dashboard-quick-tools-grid {
    grid-template-columns: 1fr;
  }
}


/* Mobile */

@media (max-width: 520px) {
  .dashboard-quick-tools {
    margin-top: 16px;
  }

  .dashboard-quick-tools-head h2 {
    font-size: 16px;
  }

  .dashboard-quick-tools .prayer-reminder-bar,
  .dashboard-quick-tools .qiblah-card {
    padding: 13px;
  }

  .dashboard-quick-tools .prayer-reminder-controls {
    align-items: stretch;
  }

  .dashboard-quick-tools .prayer-reminder-toggle {
    margin-right: 0;
  }

  .dashboard-quick-tools #prayerReminderMinutes {
    flex: 1;
    min-width: 0;
  }
}

/* Prayer hero - between prayers state */

.next-prayer-info.is-between-prayers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .next-prayer-info,
  .next-prayer-info.is-between-prayers {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   PRAYER TIME CARD - NEXT PRAYER
================================================== */

.prayer-time-card {
  position: relative;
}

.prayer-time-card.is-next {
  background: rgba(53, 199, 158, 0.07);
  border-color: rgba(53, 199, 158, 0.42);

  box-shadow:
    inset 0 0 0 1px rgba(53, 199, 158, 0.04);
}

.prayer-time-card.is-next .prayer-card-label {
  color: #5be0bb;
}

.prayer-time-card.is-next::after {
  content: "NEXT";

  position: absolute;
  top: 8px;
  right: 8px;

  padding: 3px 6px;

  color: #7ce9ca;
  background: rgba(53, 199, 158, 0.1);

  border: 1px solid rgba(53, 199, 158, 0.24);
  border-radius: 999px;

  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
}

@media (max-width: 520px) {
  .prayer-time-card.is-next::after {
    top: 7px;
    right: 7px;
    font-size: 6px;
  }
}

/* ==================================================
   PRAYER TIME CARD - PAST PRAYER
================================================== */

.prayer-time-card.is-past {
  opacity: 0.58;

  background: rgba(9, 33, 45, 0.55);
  border-color: rgba(110, 145, 158, 0.1);
}

.prayer-time-card.is-past .prayer-card-label {
  color: #7896a2;
}

.prayer-time-card.is-past strong {
  color: #8da6af;
}

.prayer-time-card.is-past:hover {
  opacity: 0.78;
}

/* NEXT prayer - breathing attention effect */

.prayer-time-card.is-next {
  overflow: hidden;
  transform-origin: center center;

  animation:
    nextPrayerBreathing 3s ease-in-out infinite;
}

/* Large breathing heart inside NEXT prayer card */

.prayer-time-card.is-next {
  overflow: hidden;
  isolation: isolate;
}

.prayer-time-card.is-next::before {
  content: "♥";

  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #35c79e;

  font-size: 145px;
  line-height: 1;

  opacity: 0.055;

  pointer-events: none;
  z-index: 0;

  transform-origin: center center;

  animation:
    nextPrayerHeartBreathing
    3.2s
    ease-in-out
    infinite;
}

/* Keep prayer text above the heart */

.prayer-time-card.is-next > * {
  position: relative;
  z-index: 1;
}

/* Human-breath style animation */

@keyframes nextPrayerHeartBreathing {
  0%,
  100% {
    transform:
      translate(-50%, -50%)
      scale(0.88);

    opacity: 0.04;
  }

  45% {
    transform:
      translate(-50%, -50%)
      scale(1.08);

    opacity: 0.09;
  }

  60% {
    transform:
      translate(-50%, -50%)
      scale(1.04);

    opacity: 0.075;
  }
}

/* Card stays in same position */
@keyframes nextPrayerBreathing {
  0%,
  100% {
    transform: scale(1);

    box-shadow:
      0 0 0 rgba(53, 199, 158, 0);
  }

  50% {
    transform: scale(1.018);

    box-shadow:
      0 0 24px rgba(53, 199, 158, 0.12);
  }
}

@keyframes nextPrayerHeartBreathing {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.035;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.09;
  }
}

/* ==================================================
   PRAYER TRACKER - UPCOMING PRAYER
================================================== */

.prayer-track-item.is-upcoming {
  position: relative;

  color: #dffcf3;
  background: rgba(53, 199, 158, 0.07);

  border-color: rgba(53, 199, 158, 0.34);

  box-shadow:
    inset 0 0 0 1px rgba(53, 199, 158, 0.03);
}

.prayer-track-item.is-upcoming::after {
  content: "NEXT";

  margin-left: auto;

  padding: 2px 5px;

  color: #72e8c7;
  background: rgba(53, 199, 158, 0.1);

  border: 1px solid rgba(53, 199, 158, 0.22);
  border-radius: 999px;

  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
}

/* ==================================================
   PRAYER TRACKER - CURRENT PRAYER
================================================== */

.prayer-track-item.is-current-prayer {
  position: relative;

  color: #ffffff;
  background: rgba(53, 199, 158, 0.13);

  border-color: rgba(53, 199, 158, 0.55);

  box-shadow:
    0 0 16px rgba(53, 199, 158, 0.08),
    inset 0 0 0 1px rgba(53, 199, 158, 0.06);
}

.prayer-track-item.is-current-prayer .prayer-track-check {
  border-color: rgba(53, 199, 158, 0.55);
}

.prayer-track-item.is-current-prayer::after {
  content: "NOW";

  margin-left: auto;

  padding: 2px 5px;

  color: #062d27;
  background: #5be0bb;

  border-radius: 999px;

  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
}

/* ==================================================
   CURRENT PRAYER CARD - SOFT LIVE PULSE
================================================== */

.prayer-time-card.is-current {
  position: relative;

  border-color: rgba(255, 255, 255, 0.42);

  box-shadow:
    0 0 0 rgba(255, 255, 255, 0);

  animation:
    currentPrayerPulse
    2.8s
    ease-in-out
    infinite;
}

@keyframes currentPrayerPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow:
      0 0 20px rgba(255, 255, 255, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prayer-time-card.is-current {
    animation: none;
  }
}

/* ==================================================
   CURRENT PRAYER CARD - BADGE
================================================== */

.prayer-time-card.is-current::after {
  content: "CURRENT";

  position: absolute;
  top: 8px;
  right: 8px;

  padding: 3px 6px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;

  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
}

/* ==================================================
   PRAYER TRACKER - COMPLETED SUCCESS EFFECT
================================================== */

.prayer-track-item.is-completed .prayer-track-check {
  animation:
    prayerCheckSuccess
    0.38s
    ease-out;
}

@keyframes prayerCheckSuccess {
  0% {
    transform: scale(0.65);
  }

  60% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

/* ==================================================
   PRAYER TIME CARD - COMPLETED
================================================== */

.prayer-time-card.is-tracked-complete {
  border-color: rgba(53, 199, 158, 0.18);
}

/* Show DONE only when the card is not CURRENT or NEXT */
.prayer-time-card.is-tracked-complete:not(.is-current):not(.is-next)::after {
  content: "✓ DONE";

  position: absolute;
  top: 8px;
  right: 8px;

  padding: 3px 6px;

  color: #9cebd2;
  background: rgba(53, 199, 158, 0.08);

  border: 1px solid rgba(53, 199, 158, 0.2);
  border-radius: 999px;

  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* ==================================================
   PRAYER TRACKER - FUTURE PRAYER LOCK
================================================== */

.prayer-track-item.is-locked {
  cursor: not-allowed;
  opacity: 0.48;

  background: rgba(7, 27, 38, 0.48);
  border-color: rgba(111, 158, 175, 0.1);
}

.prayer-track-item.is-locked:hover {
  background: rgba(7, 27, 38, 0.48);
  border-color: rgba(111, 158, 175, 0.1);
}

/* Normal future prayers */
.prayer-track-item.is-locked:not(.is-upcoming)::after {
  content: "LOCKED";

  margin-left: auto;

  padding: 2px 5px;

  color: #789aa6;
  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;

  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* NEXT prayer is also locked until its time begins */
.prayer-track-item.is-upcoming.is-locked {
  opacity: 1;
  cursor: not-allowed;
}

.prayer-track-item.is-upcoming.is-locked::after {
  content: "NEXT · LOCKED";
}


/* ==================================================
   MY ACTIVITY - SUMMARY GRID
================================================== */

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.activity-summary-grid .activity-stat-card {
  min-width: 0;
}

@media (max-width: 620px) {
  .activity-summary-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   NEW GLOBAL TOP HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(7, 53, 43, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  width: calc(100% - 40px);
  max-width: none;
  margin: 0 auto;
  min-height: 78px;

  display: flex;
  align-items: center;
  gap: 24px;
}
@media (max-width: 768px) {
  .site-header-inner {
    width: calc(100% - 24px);
  }
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand .logo-svg,
.site-brand .logo-img {
  width: 40px;
  height: 40px;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-brand-text b {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.site-brand-text i {
  margin-top: 4px;
  font-size: 0.7rem;
  font-style: normal;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;

  flex: 1;
  min-width: 0;

  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  flex: 0 0 auto;

  padding: 10px 12px;
  border-radius: 8px;

  color: rgba(255,255,255,.86);
  background: transparent;

  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;

  white-space: nowrap;
}

.site-nav .nav-link::before {
  display: none;
}

.site-nav .nav-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,.08);
}

.site-nav .nav-link.active {
  color: #f2d58a;
  background: transparent;
}

.site-header-actions {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 8px;

  flex-shrink: 0;
}

.site-header-actions .icon-btn {
  color: #ffffff;
  border-color: rgba(255,255,255,.16);
}

.site-menu-btn {
  display: none;
}

/* Old sidebar layout no longer controls page width */
.main {
  width: 100%;
  min-width: 0;
}

/* Temporary: old topbar stays functional,
   but does not act as the primary navigation */
.topbar {
  position: relative;
  top: auto;
}

/* =========================================
   FULL-WIDTH GLOBAL PAGE CONTENT
========================================= */

.view {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 64px;
  padding-right: 64px;
}

.view > * {
  width: 100%;
  max-width: none;
}

.breadcrumb {
  width: 100%;
  max-width: none;
  padding-left: 64px;
  padding-right: 64px;
  margin-left: 0;
  margin-right: 0;
}

/* Common centered page wrappers */
.page,
.page-wrap,
.page-content,
.home,
.home-wrap,
.content-wrap,
.section-wrap {
  width: 100%;
  max-width: none;
}

/* Keep large sections readable but much wider */
.hero,
.home-hero,
.section,
.content-section {
  width: 100%;
}



/* =========================================
   REFERENCE STYLE HOME HERO
========================================= */

.home-ref-hero {
  position: relative;
  min-height: 520px;
  margin: 0 -24px 34px;
  padding: 58px 64px 0;
  overflow: visible;

  background:
    linear-gradient(
      90deg,
      rgba(4, 48, 39, 0.96) 0%,
      rgba(4, 48, 39, 0.84) 38%,
      rgba(4, 48, 39, 0.26) 67%,
      rgba(4, 48, 39, 0.12) 100%
    ),
    url("../../Image/mosque-hero.png") center center / cover no-repeat;

  border-radius: 0;
}

.home-ref-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 12% 30%,
      rgba(211, 177, 95, 0.08),
      transparent 34%
    );
}

.home-ref-hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 56%);
}

.home-ref-kicker {
  margin: 0 0 16px;
  color: #e3bd68;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.home-ref-hero h1 {
  margin: 0;
  max-width: 600px;

  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.3rem);
  line-height: 0.98;
  font-weight: 600;
  color: #fff;
}

.home-ref-hero h1 span {
  color: #e8c678;
}

.home-ref-sub {
  max-width: 520px;
  margin: 24px 0 28px;

  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-ref-search {
  width: min(620px, 100%);
  height: 58px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 8px 0 18px;

  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}

.home-ref-search > svg,
.home-ref-search > .ic {
  color: #26463e;
  flex: 0 0 auto;
}

.home-ref-search input {
  flex: 1;
  min-width: 0;
  height: 100%;

  border: 0;
  outline: 0;
  background: transparent;

  color: #1e2b27;
  font: inherit;
}

.home-ref-search input::placeholder {
  color: #7c8580;
}

.home-ref-search button {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;
  background: #0c5b46;
  color: #fff;
  cursor: pointer;
}

.home-ref-popular {
  margin-top: 16px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  color: rgba(255,255,255,.88);
  font-size: 0.78rem;
}

.home-ref-popular > span {
  margin-right: 3px;
  font-weight: 600;
}

.home-ref-popular button {
  padding: 7px 12px;

  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;

  background: rgba(255,255,255,.05);
  color: #fff;

  font: inherit;
  cursor: pointer;
}

.home-ref-popular button:hover {
  background: rgba(255,255,255,.12);
}

.home-ref-suggestions {
  position: absolute;
  z-index: 20;

  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);

  width: calc(100% - 96px);
  min-height: 68px;

  display: flex;
  align-items: center;
  gap: 22px;

  padding: 12px 20px;

  background: rgba(5, 64, 51, 0.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;

  box-shadow: 0 16px 32px rgba(0,0,0,.18);
  color: #fff;
}

.home-ref-suggestions strong {
  display: block;
  margin-bottom: 9px;

  font-size: 0.82rem;
}

.home-ref-suggestion-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-ref-suggestion-list::-webkit-scrollbar {
  display: none;
}

.home-ref-suggestion-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  flex: 0 0 auto;

  padding: 7px 10px;

  border: 0;
  background: transparent;
  color: rgba(255,255,255,.9);

  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.home-ref-suggestion-list button:hover {
  color: #e8c678;
}


/* give room for floating suggestion bar */
.home-ref-hero + * {
  margin-top: 48px;
}


@media (max-width: 900px) {
  .home-ref-hero {
    min-height: 500px;
    padding: 48px 28px 0;

    background-position: 68% center;
  }

  .home-ref-hero-content {
    width: 100%;
    max-width: 620px;
  }

  .home-ref-suggestions {
    width: calc(100% - 56px);
  }
}


@media (max-width: 600px) {
  .home-ref-hero {
    margin-left: -16px;
    margin-right: -16px;
    padding: 42px 20px 0;
  }

  .home-ref-hero h1 {
    font-size: 3rem;
  }

  .home-ref-sub {
    font-size: 0.95rem;
  }

  .home-ref-suggestions {
    width: calc(100% - 32px);
  }
}
/* =========================================
   HOME CATEGORY ROW
========================================= */

.home-category-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 26px 0 34px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;

  box-shadow: var(--shadow);
}

.home-category-item {
  min-height: 122px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 18px 12px;

  color: var(--ink);
  text-decoration: none;
  text-align: center;

  border-right: 1px solid var(--line-2);
  background: transparent;

  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.home-category-item:last-child {
  border-right: 0;
}

.home-category-item:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.home-category-icon {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  margin-bottom: 8px;

  color: #176b55;
}

.home-category-icon svg {
  width: 28px;
  height: 28px;
}

.home-category-item strong {
  display: block;

  color: #193b31;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-category-item small {
  display: block;
  margin-top: 3px;

  color: #64756f;
  font-size: 0.76rem;
}


@media (max-width: 1000px) {
  .home-category-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-category-item {
    border-bottom: 1px solid rgba(18, 74, 58, 0.1);
  }
}


@media (max-width: 600px) {
  .home-category-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-category-item {
    min-height: 105px;
  }
}

/* =========================================
   HOME EXPLORE SECTION
========================================= */

.home-explore-section {
  margin: 36px 0 42px;
}

.home-explore-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.home-explore-head h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--ink);
}

.home-explore-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.home-explore-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;

  display: flex;
  align-items: flex-end;

  padding: 18px;

  border-radius: 14px;
  text-decoration: none;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.06) 25%,
      rgba(1,24,19,.88) 100%
    ),
    var(--surface);

  border: 1px solid var(--line-2);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.home-explore-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.home-explore-badge {
  position: absolute;
  top: 14px;
  left: 14px;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(8, 92, 68, .92);
  color: #fff;

  font-size: .72rem;
  font-weight: 700;
}

.home-explore-card-content {
  position: relative;
  z-index: 2;
}

.home-explore-card h3 {
  margin: 0 0 7px;

  color: #fff;
  font-size: 1.05rem;
  line-height: 1.3;
}

.home-explore-card p {
  margin: 0;

  color: rgba(255,255,255,.75);
  font-size: .78rem;
  line-height: 1.45;
}

/* subtle different visual backgrounds */
.card-quran {
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(1,24,19,.9)),
    radial-gradient(circle at 70% 20%, rgba(221,184,92,.28), transparent 40%),
    #163b31;
}

.card-prayer {
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(1,24,19,.9)),
    radial-gradient(circle at 50% 20%, rgba(215,170,88,.24), transparent 42%),
    #19352e;
}

.card-learn {
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(1,24,19,.9)),
    radial-gradient(circle at 75% 15%, rgba(183,146,73,.26), transparent 40%),
    #183b33;
}

.card-hadith {
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(1,24,19,.9)),
    radial-gradient(circle at 40% 15%, rgba(207,170,88,.22), transparent 42%),
    #1b3830;
}

.card-lecture {
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(1,24,19,.9)),
    radial-gradient(circle at 65% 18%, rgba(220,178,86,.24), transparent 42%),
    #15372e;
}

@media (max-width: 1100px) {
  .home-explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .home-explore-grid {
    grid-template-columns: 1fr;
  }

  .home-explore-card {
    min-height: 190px;
  }
}

/* =========================================
   HOME FEATURE / INSPIRATION STRIP
========================================= */

.home-feature-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  margin: 0 0 38px;
}

.home-feature-box {
  position: relative;
  min-height: 170px;
  padding: 24px;
  overflow: hidden;

  display: flex;
  align-items: center;

  border: 1px solid rgba(220, 200, 160, .18);
  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.018)
    ),
    #102b27;

  color: var(--ink);
  text-decoration: none;
}

.home-feature-box h3 {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.home-feature-box p {
  max-width: 310px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.home-feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 8px 12px;
  border-radius: 8px;

  background: #0b7255;
  color: #fff;

  font-size: .78rem;
  font-weight: 700;
}

.home-feature-big-icon {
  position: absolute;
  right: 22px;
  bottom: 18px;

  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  color: rgba(219, 181, 91, .32);
}

.home-feature-big-icon svg {
  width: 64px;
  height: 64px;
}

.home-feature-ayah {
  text-align: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(211,177,95,.13),
      transparent 48%
    ),
    #102b27;
}

.home-feature-ayah-inner {
  width: 100%;
}

.home-feature-arabic {
  margin: 12px 0 7px;

  color: #e6d3a1;

  font-family: serif;
  font-size: 2rem;
  line-height: 1.4;
  direction: rtl;
}

.home-feature-ayah p {
  max-width: none;
  margin: 0 0 4px;
}

.home-feature-ayah small {
  color: var(--muted);
  font-size: .72rem;
}

.home-feature-box:hover {
  border-color: rgba(211,177,95,.35);
}


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

.card-quran {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,20,16,.88) 100%),
    url("../../Image/quran-bg.png") center / cover no-repeat;
}

.card-prayer {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,20,16,.88) 100%),
    url("../../Image/salah-bg.png") center / cover no-repeat;
}

.card-learn {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,20,16,.88) 100%),
    url("../../Image/learn-bg.png") center / cover no-repeat;
}

.card-hadith {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,20,16,.88) 100%),
    url("../../Image/hadith-bg.png") center / cover no-repeat;
}

.card-lecture {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,20,16,.88) 100%),
    url("../../Image/lectures-bg.png") center / cover no-repeat;
}

/* HOME HERO SUGGESTIONS FIX */

.home-ref-suggestions {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);

  width: calc(100% - 96px);
  min-height: 72px;

  display: flex;
  align-items: center;
  gap: 24px;

  padding: 14px 22px;

  background: rgba(5, 69, 54, 0.98);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;

  box-sizing: border-box;
  overflow: hidden;

  z-index: 20;
}

.home-ref-suggestions strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-ref-suggestion-list {
  display: flex;
  align-items: center;
  gap: 18px;

  flex: 1;
  overflow-x: auto;

  scrollbar-width: none;
}

.home-ref-suggestion-list::-webkit-scrollbar {
  display: none;
}

.home-ref-suggestion-list button {
  flex: 0 0 auto;

  border: 0;
  padding: 6px 2px;

  background: transparent;
  color: rgba(255,255,255,.9);

  font: inherit;
  font-size: 0.78rem;

  cursor: pointer;
}

.home-ref-suggestion-list button:hover {
  color: #e8c76a;
}

/* If there are no suggestion buttons, hide the entire bar */
.home-ref-suggestions:not(:has(button)) {
  display: none;
}
.home-category-row {
  margin-top: 60px !important;
}



/* =========================================
   GLOBAL BLACK / WHITE THEME OVERRIDE
========================================= */

/* DARK MODE */
[data-theme="dark"] body,
[data-theme="dark"] #app,
[data-theme="dark"] .main,
[data-theme="dark"] .view,
[data-theme="dark"] .topbar,
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .footer {
  background: #090909 !important;
  color: #ffffff !important;
}

[data-theme="dark"] section,
[data-theme="dark"] .block,
[data-theme="dark"] .card,
[data-theme="dark"] .hero,
[data-theme="dark"] .home-ref-hero,
[data-theme="dark"] .home-ref-suggestions,
[data-theme="dark"] .home-explore-card,
[data-theme="dark"] .about-strip,
[data-theme="dark"] .surah-card {
  background-color: #151515 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.14) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] small,
[data-theme="dark"] strong,
[data-theme="dark"] a,
[data-theme="dark"] button {
  color: #ffffff;
}

[data-theme="dark"] .muted,
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .home-ref-sub,
[data-theme="dark"] small {
  color: #b8b8b8 !important;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #151515 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.16) !important;
}

[data-theme="dark"] .chip,
[data-theme="dark"] .btn,
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .nav-link {
  background-color: #151515 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.14) !important;
}


/* LIGHT MODE */
[data-theme="light"] body,
[data-theme="light"] #app,
[data-theme="light"] .main,
[data-theme="light"] .view,
[data-theme="light"] .topbar,
[data-theme="light"] .breadcrumb,
[data-theme="light"] .footer {
  background: #ffffff !important;
  color: #111111 !important;
}

[data-theme="light"] section,
[data-theme="light"] .block,
[data-theme="light"] .card,
[data-theme="light"] .hero,
[data-theme="light"] .home-ref-hero,
[data-theme="light"] .home-ref-suggestions,
[data-theme="light"] .home-explore-card,
[data-theme="light"] .about-strip,
[data-theme="light"] .surah-card {
  background-color: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,.12) !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] small,
[data-theme="light"] strong,
[data-theme="light"] a,
[data-theme="light"] button {
  color: #111111;
}

[data-theme="light"] .muted,
[data-theme="light"] .hero-sub,
[data-theme="light"] .home-ref-sub,
[data-theme="light"] small {
  color: #666666 !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,.14) !important;
}

[data-theme="light"] .chip,
[data-theme="light"] .btn,
[data-theme="light"] .icon-btn,
[data-theme="light"] .nav-link {
  background-color: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,.12) !important;
}

/* =========================================
   FINAL BLACK / WHITE THEME CLEANUP
========================================= */

/* ---------- DARK MODE ---------- */

[data-theme="dark"] .topbar {
  background: #090909 !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Hero colored UI elements */
[data-theme="dark"] .home-ref-kicker,
[data-theme="dark"] .eyebrow {
  color: #ffffff !important;
}

[data-theme="dark"] .home-ref-hero h1 span,
[data-theme="dark"] .home-ref-title span {
  color: #ffffff !important;
}

/* Hero search button */
[data-theme="dark"] .home-ref-search button,
[data-theme="dark"] .hero-search button {
  background: #ffffff !important;
  color: #090909 !important;
  border-color: #ffffff !important;
}

/* Suggested bar */
[data-theme="dark"] .home-ref-suggestions {
  background: #151515 !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* Explore badges */
[data-theme="dark"] .home-explore-badge {
  background: #ffffff !important;
  color: #090909 !important;
}

/* Explore cards overlay */
[data-theme="dark"] .home-explore-card::after {
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.04) 15%,
      rgba(0,0,0,.88) 100%
    ) !important;
}

/* Three promotional cards */
[data-theme="dark"] .-card,
[data-theme="dark"] .home-quran-card,
[data-theme="dark"] .home-quote-card,
[data-theme="dark"] .home-inspiration-card {
  background: #151515 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* Buttons */
[data-theme="dark"] .home-info-card .btn,
[data-theme="dark"] .home-quran-card .btn,
[data-theme="dark"] .home-inspiration-card .btn {
  background: #ffffff !important;
  color: #090909 !important;
  border-color: #ffffff !important;
}

/* Remove green/gold icon colors */
[data-theme="dark"] .home-category-item .ic,
[data-theme="dark"] .home-info-card .ic,
[data-theme="dark"] .home-ref-popular,
[data-theme="dark"] .link {
  color: #ffffff !important;
}


/* ---------- LIGHT MODE ---------- */

[data-theme="light"] .topbar {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.12) !important;
}

/* Hero title stays visible over image */
[data-theme="light"] .home-ref-hero h1,
[data-theme="light"] .home-ref-title {
  color: #ffffff !important;
}

[data-theme="light"] .home-ref-hero h1 span,
[data-theme="light"] .home-ref-title span {
  color: #ffffff !important;
}

[data-theme="light"] .home-ref-sub {
  color: rgba(255,255,255,.90) !important;
}

[data-theme="light"] .home-ref-kicker {
  color: #ffffff !important;
}

/* Hero search */
[data-theme="light"] .home-ref-search button,
[data-theme="light"] .hero-search button {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

/* Suggested */
[data-theme="light"] .home-ref-suggestions {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,.12) !important;
}

[data-theme="light"] .home-ref-suggestions * {
  color: #111111 !important;
}

/* Explore card text must remain white */
[data-theme="light"] .home-explore-card,
[data-theme="light"] .home-explore-card h3,
[data-theme="light"] .home-explore-card p {
  color: #ffffff !important;
}

[data-theme="light"] .home-explore-badge {
  background: #ffffff !important;
  color: #111111 !important;
}

/* Image card overlay */
[data-theme="light"] .home-explore-card::after {
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.04) 15%,
      rgba(0,0,0,.82) 100%
    ) !important;
}

/* Three promotional cards */
[data-theme="light"] .home-info-card,
[data-theme="light"] .home-quran-card,
[data-theme="light"] .home-quote-card,
[data-theme="light"] .home-inspiration-card {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,.12) !important;
}

/* Buttons */
[data-theme="light"] .home-info-card .btn,
[data-theme="light"] .home-quran-card .btn,
[data-theme="light"] .home-inspiration-card .btn {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

/* =========================================
   HOME FEATURE 3 CARDS - THEME FIX
========================================= */

/* DARK MODE */
[data-theme="dark"] .home-feature-box,
[data-theme="dark"] .home-feature-quran,
[data-theme="dark"] .home-feature-ayah,
[data-theme="dark"] .home-feature-inspiration {
  background: #151515 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.14) !important;
}

[data-theme="dark"] .home-feature-box h3,
[data-theme="dark"] .home-feature-box p,
[data-theme="dark"] .home-feature-box small,
[data-theme="dark"] .home-feature-box .eyebrow,
[data-theme="dark"] .home-feature-arabic,
[data-theme="dark"] .home-feature-big-icon {
  color: #ffffff !important;
}

[data-theme="dark"] .home-feature-btn {
  background: #ffffff !important;
  color: #090909 !important;
  border-color: #ffffff !important;
}


/* LIGHT MODE */
[data-theme="light"] .home-feature-box,
[data-theme="light"] .home-feature-quran,
[data-theme="light"] .home-feature-ayah,
[data-theme="light"] .home-feature-inspiration {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,.12) !important;
}

[data-theme="light"] .home-feature-box h3,
[data-theme="light"] .home-feature-box p,
[data-theme="light"] .home-feature-box small,
[data-theme="light"] .home-feature-box .eyebrow,
[data-theme="light"] .home-feature-arabic,
[data-theme="light"] .home-feature-big-icon {
  color: #111111 !important;
}

[data-theme="light"] .home-feature-btn {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}


/* =========================================
   FINAL BLACK / WHITE COLOR CLEANUP
========================================= */

/* ---------- NAVBAR ---------- */

[data-theme="dark"] .topbar {
  background: #090909 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

[data-theme="dark"] .topbar .nav-link,
[data-theme="dark"] .topbar .brand,
[data-theme="dark"] .topbar .brand-text,
[data-theme="dark"] .topbar .icon-btn {
  color: #ffffff !important;
}

[data-theme="light"] .topbar {
  background: #ffffff !important;
  color: #111111 !important;
  border-bottom: 1px solid rgba(0,0,0,.10) !important;
}

[data-theme="light"] .topbar .nav-link,
[data-theme="light"] .topbar .brand,
[data-theme="light"] .topbar .brand-text,
[data-theme="light"] .topbar .icon-btn {
  color: #111111 !important;
}


/* ---------- HERO OVERLAY ---------- */

/* Hero image দুই theme-এই থাকবে,
   শুধু green tint বাদ দিয়ে neutral black overlay */

.home-ref-hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.82) 0%,
      rgba(0,0,0,.58) 34%,
      rgba(0,0,0,.18) 65%,
      rgba(0,0,0,.04) 100%
    ) !important;
}


/* Hero text always readable over image */

[data-theme="dark"] .home-ref-hero-content,
[data-theme="dark"] .home-ref-hero-content h1,
[data-theme="dark"] .home-ref-hero-content p,
[data-theme="dark"] .home-ref-kicker {
  color: #ffffff !important;
}

[data-theme="light"] .home-ref-hero-content,
[data-theme="light"] .home-ref-hero-content h1,
[data-theme="light"] .home-ref-hero-content p,
[data-theme="light"] .home-ref-kicker {
  color: #ffffff !important;
}


/* =========================================
   PRIMARY SITE HEADER THEME FIX
========================================= */

/* DARK */
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-header-inner {
  background: #090909 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.12) !important;
}

[data-theme="dark"] .site-header .site-brand,
[data-theme="dark"] .site-header .site-brand-text,
[data-theme="dark"] .site-header .nav-link,
[data-theme="dark"] .site-header .icon-btn {
  color: #ffffff !important;
}

/* LIGHT */
[data-theme="light"] .site-header,
[data-theme="light"] .site-header-inner {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,.10) !important;
}

[data-theme="light"] .site-header .site-brand,
[data-theme="light"] .site-header .site-brand-text,
[data-theme="light"] .site-header .nav-link,
[data-theme="light"] .site-header .icon-btn {
  color: #111111 !important;
}

/* =========================================
   NAV BUTTON STYLE + HOVER
========================================= */

/* COMMON */
.site-nav .nav-link {
  border: 1px solid transparent;
  border-radius: 9px;
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] .site-nav .nav-link {
  background: #151515 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.10) !important;
}

[data-theme="dark"] .site-nav .nav-link:hover {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .site-nav .nav-link:hover .ic {
  color: #111111 !important;
}


/* ---------- LIGHT MODE ---------- */
[data-theme="light"] .site-nav .nav-link {
  background: #f4f4f4 !important;
  color: #111111 !important;
  border-color: #dddddd !important;
}

[data-theme="light"] .site-nav .nav-link:hover {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  transform: translateY(-1px);
}

[data-theme="light"] .site-nav .nav-link:hover .ic {
  color: #ffffff !important;
}


/* ---------- ACTIVE PAGE ---------- */
[data-theme="dark"] .site-nav .nav-link.active {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
}

[data-theme="light"] .site-nav .nav-link.active {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

/* active icon */
[data-theme="dark"] .site-nav .nav-link.active .ic {
  color: #111111 !important;
}

[data-theme="light"] .site-nav .nav-link.active .ic {
  color: #ffffff !important;
}

/* =========================================
   FINAL NAV BUTTON FIX
========================================= */

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid transparent;

  white-space: nowrap;

  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

/* VERY IMPORTANT:
   icon + text always follow parent color */
.site-nav .nav-link span,
.site-nav .nav-link .ic,
.site-nav .nav-link svg {
  color: inherit !important;
}

/* =========================
   LIGHT MODE
========================= */

[data-theme="light"] .site-nav .nav-link {
  background: #f7f7f7 !important;
  color: #111111 !important;
  border-color: #dedede !important;
}

[data-theme="light"] .site-nav .nav-link:hover {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  transform: translateY(-1px);
}

[data-theme="light"] .site-nav .nav-link.active {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

/* =========================
   DARK MODE
========================= */

[data-theme="dark"] .site-nav .nav-link {
  background: #151515 !important;
  color: #ffffff !important;
  border-color: #292929 !important;
}

[data-theme="dark"] .site-nav .nav-link:hover {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .site-nav .nav-link.active {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
}

/* =========================================
   HOME CATEGORY CARDS HOVER
========================================= */

.home-category-item {
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

/* icon + text follow parent color */
.home-category-item *,
.home-category-item .ic,
.home-category-item svg {
  color: inherit !important;
}

/* LIGHT MODE */
[data-theme="light"] .home-category-item {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #dddddd !important;
}

[data-theme="light"] .home-category-item:hover {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  transform: translateY(-3px);
}

/* DARK MODE */
[data-theme="dark"] .home-category-item {
  background: #151515 !important;
  color: #ffffff !important;
  border-color: #292929 !important;
}

[data-theme="dark"] .home-category-item:hover {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
}

/* =========================================
   HERO SEARCH BAR FINAL FIX
========================================= */

.home-ref-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid transparent;
}

/* LEFT SEARCH ICON */
.home-ref-search > .ic,
.home-ref-search > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 16px;
  margin-right: 10px;

  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* INPUT */
.home-ref-search input {
  flex: 1;
  min-width: 0;
  height: 48px;

  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  padding: 0 10px 0 0 !important;

  font: inherit;
}

/* RIGHT SEARCH BUTTON */
.home-ref-search .submit {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;

  margin-right: 4px;
  padding: 0 !important;

  display: grid;
  place-items: center;

  border-radius: 10px !important;
  transition:
    background-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

/* =====================
   DARK MODE
===================== */

[data-theme="dark"] .home-ref-search {
  background: #151515 !important;
  border-color: #303030 !important;
}

[data-theme="dark"] .home-ref-search input {
  color: #ffffff !important;
}

[data-theme="dark"] .home-ref-search input::placeholder {
  color: #8f8f8f !important;
}

[data-theme="dark"] .home-ref-search > .ic,
[data-theme="dark"] .home-ref-search > svg {
  color: #ffffff !important;
}

[data-theme="dark"] .home-ref-search .submit {
  background: #ffffff !important;
  color: #111111 !important;
  border: 0 !important;
}

[data-theme="dark"] .home-ref-search .submit:hover {
  background: #dcdcdc !important;
  transform: scale(1.04);
}


/* =====================
   LIGHT MODE
===================== */

[data-theme="light"] .home-ref-search {
  background: #ffffff !important;
  border-color: #dddddd !important;
}

[data-theme="light"] .home-ref-search input {
  color: #111111 !important;
}

[data-theme="light"] .home-ref-search input::placeholder {
  color: #777777 !important;
}

[data-theme="light"] .home-ref-search > .ic,
[data-theme="light"] .home-ref-search > svg {
  color: #555555 !important;
}

[data-theme="light"] .home-ref-search .submit {
  background: #111111 !important;
  color: #ffffff !important;
  border: 0 !important;
}

[data-theme="light"] .home-ref-search .submit:hover {
  background: #333333 !important;
  transform: scale(1.04);
}

/* button SVG follows button color */
.home-ref-search .submit .ic,
.home-ref-search .submit svg {
  color: inherit !important;
}

/* =====================================================
   REFERENCE STYLE MOVING NEON BORDER
   ===================================================== */

.home-feature-box,
.about-strip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px !important;

  transition:
    transform .25s ease,
    box-shadow .3s ease;
}

/* ---------------------------------
   DARK MODE BASE
---------------------------------- */

[data-theme="dark"] .home-feature-box,
[data-theme="dark"] .about-strip {
  border: 1px solid rgba(65, 255, 135, .28) !important;
}

/* ---------------------------------
   LIGHT MODE BASE
---------------------------------- */

[data-theme="light"] .home-feature-box,
[data-theme="light"] .about-strip {
  border: 1px solid rgba(20, 180, 90, .22) !important;
}


/* =====================================================
   STATIC SOFT BORDER GLOW
===================================================== */

.home-feature-box::before,
.about-strip::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  pointer-events: none;

  border: 1px solid rgba(65, 255, 135, .18);

  box-shadow:
    inset 0 0 8px rgba(0, 255, 150, .04);

  z-index: 5;
}


/* =====================================================
   MOVING LIGHT RAYS
===================================================== */

.home-feature-box::after,
.about-strip::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  pointer-events: none;
  z-index: 6;

  background:

    /* TOP MOVING LIGHT */
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0,255,160,0) 10%,
      rgba(0,255,160,.45) 35%,
      rgba(70,255,170,1) 48%,
      rgba(70,235,255,1) 52%,
      rgba(170,255,70,.8) 60%,
      rgba(0,255,160,0) 90%,
      transparent 100%
    )
    0 0 / 180px 2px no-repeat,

    /* BOTTOM MOVING LIGHT */
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0,255,160,0) 10%,
      rgba(0,255,160,.4) 35%,
      rgba(90,255,180,1) 48%,
      rgba(50,230,255,1) 52%,
      rgba(180,255,60,.75) 60%,
      rgba(0,255,160,0) 90%,
      transparent 100%
    )
    100% 100% / 200px 2px no-repeat,

    /* LEFT LIGHT */
    linear-gradient(
      180deg,
      transparent,
      rgba(0,255,160,.85),
      rgba(60,230,255,.9),
      transparent
    )
    0 100% / 2px 100px no-repeat,

    /* RIGHT LIGHT */
    linear-gradient(
      180deg,
      transparent,
      rgba(170,255,70,.8),
      rgba(0,255,180,.9),
      transparent
    )
    100% 0 / 2px 100px no-repeat;

  opacity: 0;

  filter:
    drop-shadow(0 0 4px rgba(0,255,160,.8))
    drop-shadow(0 0 8px rgba(0,220,255,.4));
}


/* =====================================================
   HOVER
===================================================== */

.home-feature-box:hover,
.about-strip:hover {
  transform: translateY(-3px);
}

.home-feature-box:hover::after,
.about-strip:hover::after {
  opacity: 1;
  animation: referenceBorderMove 2.8s linear infinite;
}


/* DARK MODE GLOW */

[data-theme="dark"] .home-feature-box:hover,
[data-theme="dark"] .about-strip:hover {
  box-shadow:
    0 0 12px rgba(0,255,160,.10),
    0 0 28px rgba(0,255,160,.07),
    0 14px 36px rgba(0,0,0,.32);
}


/* LIGHT MODE GLOW */

[data-theme="light"] .home-feature-box::before,
[data-theme="light"] .about-strip::before {
  border-color: rgba(30,190,90,.20);
}

[data-theme="light"] .home-feature-box::after,
[data-theme="light"] .about-strip::after {
  filter:
    drop-shadow(0 0 3px rgba(20,210,100,.55))
    drop-shadow(0 0 7px rgba(0,200,150,.20));
}

[data-theme="light"] .home-feature-box:hover,
[data-theme="light"] .about-strip:hover {
  box-shadow:
    0 0 10px rgba(20,210,100,.10),
    0 0 22px rgba(0,200,150,.07),
    0 14px 30px rgba(0,0,0,.08);
}


/* =====================================================
   MOVEMENT
===================================================== */

@keyframes referenceBorderMove {

  0% {
    background-position:
      -180px 0,
      calc(100% + 200px) 100%,
      0 calc(100% + 100px),
      100% -100px;
  }

  50% {
    background-position:
      calc(100% + 180px) 0,
      -200px 100%,
      0 -100px,
      100% calc(100% + 100px);
  }

  100% {
    background-position:
      -180px 0,
      calc(100% + 200px) 100%,
      0 calc(100% + 100px),
      100% -100px;
  }
}


/* content above animation */

.home-feature-box > *,
.about-strip > * {
  position: relative;
  z-index: 10;
}

/* LIGHT MODE NEON BORDER BOOST */

[data-theme="light"] .home-feature-box,
[data-theme="light"] .about-strip {
  border-color: rgba(0, 170, 110, .35) !important;
  background: #ffffff !important;
}

[data-theme="light"] .home-feature-box::before,
[data-theme="light"] .about-strip::before {
  border-color: rgba(0, 200, 130, .30) !important;

  box-shadow:
    inset 0 0 10px rgba(0, 255, 170, .08),
    0 0 10px rgba(0, 220, 150, .10);
}

[data-theme="light"] .home-feature-box::after,
[data-theme="light"] .about-strip::after {
  opacity: 0;

  filter:
    drop-shadow(0 0 5px rgba(0, 255, 150, .95))
    drop-shadow(0 0 10px rgba(0, 210, 255, .55))
    drop-shadow(0 0 14px rgba(150, 255, 0, .30));
}

[data-theme="light"] .home-feature-box:hover::after,
[data-theme="light"] .about-strip:hover::after {
  opacity: 1;
}

[data-theme="light"] .home-feature-box:hover,
[data-theme="light"] .about-strip:hover {
  border-color: rgba(0, 210, 130, .65) !important;

  box-shadow:
    0 0 0 1px rgba(0, 210, 130, .12),
    0 0 14px rgba(0, 255, 150, .18),
    0 0 30px rgba(0, 200, 255, .10),
    0 14px 32px rgba(0, 0, 0, .10);
}

/* =========================================
   REMOVE OLD CATEGORY HOVER
========================================= */

.home-category-item:hover {
  background: transparent !important;
  color: inherit !important;
  transform: none !important;
}

[data-theme="dark"] .home-category-item:hover,
[data-theme="light"] .home-category-item:hover {
  background: transparent !important;
  color: inherit !important;
}


/* =========================================
   CATEGORY CARD NEON HOVER
========================================= */

.home-category-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  transition:
    transform .25s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}


/* base border */

[data-theme="dark"] .home-category-item {
  background: #151515 !important;
  border-right: 1px solid rgba(255,255,255,.10) !important;
}

[data-theme="light"] .home-category-item {
  background: #ffffff !important;
  border-right: 1px solid rgba(0,0,0,.10) !important;
}


/* moving light ray */

.home-category-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(0,255,160,.15),
      rgba(70,255,180,1),
      rgba(80,230,255,1),
      rgba(180,255,70,.8),
      transparent
    )
    -180px 0 / 180px 2px no-repeat,

    linear-gradient(
      90deg,
      transparent,
      rgba(0,255,160,.10),
      rgba(80,255,180,.9),
      rgba(50,220,255,.9),
      rgba(160,255,70,.7),
      transparent
    )
    calc(100% + 180px) 100% / 180px 2px no-repeat;

  opacity: 0;

  filter:
    drop-shadow(0 0 4px rgba(0,255,160,.85))
    drop-shadow(0 0 8px rgba(0,220,255,.35));
}


/* hover */

.home-category-item:hover {
  transform: translateY(-3px) !important;
}

.home-category-item:hover::before {
  opacity: 1;
  animation: categoryNeonMove 2.2s linear infinite;
}


/* DARK MODE */

[data-theme="dark"] .home-category-item:hover {
  background: #151515 !important;
  color: #ffffff !important;

  box-shadow:
    0 0 10px rgba(0,255,160,.10),
    0 0 22px rgba(0,220,255,.06);
}


/* LIGHT MODE */

[data-theme="light"] .home-category-item:hover {
  background: #ffffff !important;
  color: #111111 !important;

  box-shadow:
    0 0 10px rgba(0,190,110,.12),
    0 0 22px rgba(0,170,220,.08);
}

[data-theme="light"] .home-category-item::before {
  filter:
    drop-shadow(0 0 4px rgba(0,190,110,.70))
    drop-shadow(0 0 8px rgba(0,170,220,.30));
}


/* keep text/icon normal */

.home-category-item:hover,
.home-category-item:hover strong,
.home-category-item:hover small,
.home-category-item:hover .ic {
  color: inherit !important;
}


/* animation */

@keyframes categoryNeonMove {
  0% {
    background-position:
      -180px 0,
      calc(100% + 180px) 100%;
  }

  100% {
    background-position:
      calc(100% + 180px) 0,
      -180px 100%;
  }
}

/* =========================================
   EXPLORE CARD NEON HOVER - SAFE VERSION
   image/background/text unchanged
========================================= */

.home-explore-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  transition:
    box-shadow .3s ease,
    border-color .3s ease;
}

/* IMPORTANT:
   hover এ background touch করবো না */
.home-explore-card:hover {
  transform: none !important;
}


/* moving neon border */
.home-explore-card::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  padding: 2px;

  pointer-events: none;
  z-index: 50;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 30%,
      rgba(0,255,160,0) 36%,
      rgba(0,255,160,.95) 45%,
      rgba(50,230,255,1) 50%,
      rgba(160,255,70,.90) 55%,
      rgba(0,255,160,0) 64%,
      transparent 70%,
      transparent 100%
    );

  background-size: 320% 100%;
  background-position: 200% 0;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0;

  filter:
    drop-shadow(0 0 4px rgba(0,255,160,.9))
    drop-shadow(0 0 8px rgba(0,220,255,.4));

  transition: opacity .2s ease;
}


/* hover animation */
.home-explore-card:hover::after {
  opacity: 1;
  animation: exploreRay 1.8s linear infinite;
}


@keyframes exploreRay {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -120% 0;
  }
}


/* DARK MODE */
[data-theme="dark"] .home-explore-card:hover {
  border-color: rgba(0,255,160,.35) !important;

  box-shadow:
    0 0 8px rgba(0,255,160,.10),
    0 0 18px rgba(0,220,255,.07);
}


/* LIGHT MODE */
[data-theme="light"] .home-explore-card::after {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 30%,
      rgba(0,170,90,0) 36%,
      rgba(0,195,105,.95) 45%,
      rgba(0,155,220,.95) 50%,
      rgba(110,210,50,.85) 55%,
      rgba(0,170,90,0) 64%,
      transparent 70%,
      transparent 100%
    );

  background-size: 320% 100%;

  filter:
    drop-shadow(0 0 4px rgba(0,190,105,.65))
    drop-shadow(0 0 7px rgba(0,155,220,.25));
}

[data-theme="light"] .home-explore-card:hover {
  border-color: rgba(0,185,105,.40) !important;

  box-shadow:
    0 0 8px rgba(0,180,100,.10),
    0 0 18px rgba(0,150,210,.07);
}
/* ===============================
   FEATURE CARD BIG ICON POSITION
================================ */

.home-feature-box {
  position: relative;
}

/* Qur'an + Inspiration big icons */
.home-feature-quran .home-feature-big-icon,
.home-feature-inspiration .home-feature-big-icon {
  position: absolute !important;
  right: 24px !important;
  bottom: 24px !important;

  margin: 0 !important;
  transform: none !important;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  z-index: 5;
}

/* icon size */
.home-feature-quran .home-feature-big-icon svg,
.home-feature-inspiration .home-feature-big-icon svg {
  width: 42px !important;
  height: 42px !important;
}

/* content যেন icon-এর সাথে overlap না করে */
.home-feature-quran > div:first-child,
.home-feature-inspiration > div:first-child {
  padding-right: 90px;
}


/* mobile */
@media (max-width: 640px) {
  .home-feature-quran .home-feature-big-icon,
  .home-feature-inspiration .home-feature-big-icon {
    right: 18px !important;
    bottom: 18px !important;
  }

  .home-feature-quran > div:first-child,
  .home-feature-inspiration > div:first-child {
    padding-right: 70px;
  }
}
  /* =====================================================
   NAVBAR - KEEP EXISTING HOVER
   ADD SAME MOVING NEON BORDER AS CARDS
===================================================== */

.site-nav .nav-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* শুধু neon moving border */
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  pointer-events: none;
  z-index: 20;

  background:

    /* TOP */
    linear-gradient(
      90deg,
      transparent,
      rgba(0,255,160,0),
      rgba(0,255,160,.8),
      rgba(50,235,255,1),
      rgba(150,255,70,.8),
      rgba(0,255,160,0),
      transparent
    )
    -90px 0 / 90px 2px no-repeat,

    /* BOTTOM */
    linear-gradient(
      90deg,
      transparent,
      rgba(0,255,160,0),
      rgba(0,255,160,.75),
      rgba(50,235,255,.95),
      rgba(150,255,70,.75),
      rgba(0,255,160,0),
      transparent
    )
    calc(100% + 90px) 100% / 90px 2px no-repeat,

    /* LEFT */
    linear-gradient(
      180deg,
      transparent,
      rgba(0,255,160,.9),
      rgba(50,235,255,.9),
      transparent
    )
    0 calc(100% + 45px) / 2px 45px no-repeat,

    /* RIGHT */
    linear-gradient(
      180deg,
      transparent,
      rgba(150,255,70,.8),
      rgba(0,255,160,.9),
      transparent
    )
    100% -45px / 2px 45px no-repeat;

  opacity: 0;

  filter:
    drop-shadow(0 0 3px rgba(0,255,160,.9))
    drop-shadow(0 0 6px rgba(0,220,255,.4));
}


/* ===================================
   HOVER
   existing background hover untouched
=================================== */

.site-nav .nav-link:hover::after {
  opacity: 1;
  animation: navbarNeonBorder 1.8s linear infinite;
}


/* ===================================
   MOVEMENT
=================================== */

@keyframes navbarNeonBorder {

  0% {
    background-position:
      -90px 0,
      calc(100% + 90px) 100%,
      0 calc(100% + 45px),
      100% -45px;
  }

  50% {
    background-position:
      calc(100% + 90px) 0,
      -90px 100%,
      0 -45px,
      100% calc(100% + 45px);
  }

  100% {
    background-position:
      -90px 0,
      calc(100% + 90px) 100%,
      0 calc(100% + 45px),
      100% -45px;
  }
}


/* ===================================
   DARK MODE
=================================== */

[data-theme="dark"] .site-nav .nav-link:hover {
  /* background/color intentionally NOT set */
  box-shadow:
    0 0 7px rgba(0,255,160,.08),
    0 0 14px rgba(0,220,255,.05);
}


/* ===================================
   LIGHT MODE
=================================== */

[data-theme="light"] .site-nav .nav-link::after {
  filter:
    drop-shadow(0 0 3px rgba(0,185,100,.65))
    drop-shadow(0 0 5px rgba(0,155,220,.28));
}

[data-theme="light"] .site-nav .nav-link:hover {
  /* existing white/black hover stays */
  box-shadow:
    0 0 7px rgba(0,180,100,.10),
    0 0 14px rgba(0,150,210,.06);
}

html,
body,
button,
input,
textarea,
select,
a,
p,
span,
div,
li,
small,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans Bengali", "Inter", sans-serif !important;
}


/* =========================================================
   ALL SURAHS RESPONSIVE OVERRIDE
========================================================= */

/* 1440+ : 4 columns */
@media (min-width: 1440px) {
  .surah-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}


/* 1024 - 1439 : 3 columns */
@media (min-width: 1024px) and (max-width: 1439px) {
  .surah-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .surah-card {
    min-height: 108px !important;
  }

  .sc-main {
    padding: 13px 12px !important;
    gap: 10px !important;
  }

  .sc-num {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  .sc-names b {
    font-size: .82rem !important;
  }

  .sc-bn {
    font-size: .68rem !important;
  }

  .sc-ar {
    font-size: 1rem !important;
    min-width: 56px !important;
  }

  .sc-tools {
    padding: 4px !important;
  }

  .sc-tools .mini {
    width: 25px !important;
    height: 25px !important;
  }
}


/* 768 - 1023 : 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .surah-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .surah-card {
    min-height: 104px !important;
  }

  .sc-main {
    padding: 12px !important;
  }

  .sc-ar {
    min-width: 60px !important;
  }
}


/* 0 - 767 : 1 column */
@media (max-width: 767px) {
  .surah-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .surah-card {
    min-height: 96px !important;
    border-radius: 12px !important;
  }

  .sc-main {
    padding: 12px !important;
    gap: 10px !important;
  }

  .sc-num {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  .sc-names b {
    font-size: .9rem !important;
  }

  .sc-bn {
    font-size: .72rem !important;
  }

  .sc-ar {
    font-size: 1.05rem !important;
    min-width: 62px !important;
  }

  .sc-tools {
    padding: 4px !important;
  }

  .sc-tools .mini {
    width: 28px !important;
    height: 28px !important;
  }
}

/* =========================================
   NAVBAR 1440PX - SHOW ALL ITEMS, NO SCROLL
========================================= */

@media (min-width: 1366px) and (max-width: 1500px) {

  .site-header-inner {
    width: calc(100% - 12px) !important;
    gap: 6px !important;
  }

  .site-brand {
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  .site-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;

    gap: 2px !important;

    overflow-x: visible !important;
    overflow-y: visible !important;

    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .site-nav .nav-link {
    flex: 0 1 auto !important;

    padding: 8px 5px !important;
    gap: 4px !important;

    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  .site-header-actions {
    flex: 0 0 auto !important;
    margin-left: 2px !important;
    gap: 4px !important;
  }
}

/* =========================================
   ALL SURAHS CARD - 1440PX CLEAN LAYOUT
========================================= */

@media (min-width: 1366px) and (max-width: 1500px) {

  .surah-card {
    min-height: 112px !important;
  }

  .sc-main {
    gap: 10px !important;
    padding: 14px !important;
  }

  .sc-num {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }

  .sc-names {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  .sc-names b {
    font-size: .88rem !important;
    line-height: 1.15 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sc-bn {
    font-size: .70rem !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sc-names small {
    font-size: .63rem !important;
    line-height: 1.15 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sc-ar {
    flex: 0 0 72px !important;
    min-width: 72px !important;

    font-size: 1.05rem !important;
    line-height: 1.35 !important;

    padding-left: 8px !important;
    text-align: right !important;
  }

  .sc-tools {
    flex: 0 0 auto !important;
    padding: 4px !important;
    gap: 1px !important;
  }

  .sc-tools .mini {
    width: 26px !important;
    height: 26px !important;
  }
}

/* =========================================
   SURAH CARD - MOVING BORDER GLOW
========================================= */

.surah-card {
  position: relative;
  isolation: isolate;
}

/* animated outer light */
.surah-card::before {
  content: "";
  position: absolute;
  inset: -2px;

  border-radius: 15px;

  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 235deg,
    rgba(0, 255, 170, 0.15) 260deg,
    rgba(0, 255, 210, 1) 285deg,
    rgba(120, 255, 80, 0.95) 310deg,
    rgba(0, 255, 170, 0.25) 335deg,
    transparent 360deg
  );

  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* keep inside clean */
.surah-card::after {
  content: "";
  position: absolute;
  inset: 1px;

  border-radius: 13px;
  background: var(--surface);

  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* content always above animation */
.surah-card > * {
  position: relative;
  z-index: 2;
}


/* HOVER */
.surah-card:hover::before {
  opacity: 1;
  animation: surahCardGlow 2.2s linear infinite;
}

.surah-card:hover::after {
  opacity: 1;
}


/* keep your existing hover + stronger glow */
.surah-card:hover {
  transform: translateY(-3px);

  border-color: rgba(34, 197, 94, 0.45);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(34, 197, 94, 0.12),
    0 0 26px rgba(0, 255, 200, 0.08);
}


/* moving light */
@keyframes surahCardGlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   QURAN AUDIO CARD - MOVING BORDER GLOW
========================================= */

.audio-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.audio-row::before {
  content: "";
  position: absolute;
  inset: -2px;

  border-radius: inherit;

  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 235deg,
    rgba(0, 255, 170, .15) 260deg,
    rgba(0, 255, 210, 1) 285deg,
    rgba(120, 255, 80, .95) 310deg,
    rgba(0, 255, 170, .25) 335deg,
    transparent 360deg
  );

  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.audio-row::after {
  content: "";
  position: absolute;
  inset: 1px;

  border-radius: inherit;
  background: var(--surface);

  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.audio-row > * {
  position: relative;
  z-index: 2;
}

.audio-row:hover {
  transform: translateY(-3px);

  border-color: rgba(34, 197, 94, .45);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, .22),
    0 0 18px rgba(34, 197, 94, .12),
    0 0 26px rgba(0, 255, 200, .08);
}

.audio-row:hover::before {
  opacity: 1;
  animation: audioCardGlow 2.2s linear infinite;
}

.audio-row:hover::after {
  opacity: 1;
}

@keyframes audioCardGlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   MOBILE FLOATING SCROLLABLE SIDE NAV
========================================= */

@media (max-width: 640px) {

  /* content no longer reserves space for side nav */
  .view {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* FLOATING SIDE NAV */
  .site-nav {
    position: fixed !important;

    top: 72px !important;
    right: 7px !important;
    bottom: 18px !important;

    width: 54px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    gap: 7px !important;

    padding: 7px !important;

    z-index: 9999 !important;

    background: rgba(12, 15, 14, .88) !important;

    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 16px !important;

    box-shadow:
      0 10px 35px rgba(0,0,0,.40),
      0 0 0 1px rgba(60,255,180,.03) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow-y: auto !important;
    overflow-x: hidden !important;

    scrollbar-width: none !important;
    overscroll-behavior: contain;

    max-height: calc(100dvh - 90px) !important;
  }

  .site-nav::-webkit-scrollbar {
    display: none !important;
  }


  /* NAV ITEM */
  .site-nav .nav-link {
    flex: 0 0 auto !important;

    width: 40px !important;
    height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    overflow: hidden !important;

    font-size: 0 !important;
  }


  /* keep icon visible */
  .site-nav .nav-link svg,
  .site-nav .nav-link i,
  .site-nav .nav-link .ic {
    width: 18px !important;
    height: 18px !important;

    flex: 0 0 18px !important;

    font-size: 18px !important;
  }


  /* active menu */
  .site-nav .nav-link.active {
    background: rgba(255,255,255,.96) !important;
    color: #111 !important;

    box-shadow:
      0 0 0 1px rgba(255,255,255,.15),
      0 5px 14px rgba(0,0,0,.18) !important;
  }


  /* hover */
  .site-nav .nav-link:hover {
    background: rgba(40, 210, 145, .14) !important;
    border-color: rgba(70,255,180,.28) !important;
  }


  /* old separate floating action box off */
  .site-header-actions {
    display: none !important;
  }


  /* bottom navigation remains hidden */
  .bottomnav {
    display: none !important;
  }
}

/* ==================================================
   MOBILE SURAH - FLOATING STICKY BREADCRUMB BUTTON
================================================== */

@media (max-width: 640px) {

  .breadcrumb {
    position: fixed !important;

    top: 68px !important;
    left: 10px !important;
    right: auto !important;

    width: max-content !important;
    max-width: calc(100vw - 82px) !important;

    z-index: 9998 !important;

    display: flex !important;
    align-items: center !important;
    gap: 4px !important;

    margin: 0 !important;
    padding: 5px !important;

    background: rgba(12, 14, 14, .90) !important;

    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 13px !important;

    box-shadow:
      0 8px 26px rgba(0,0,0,.42),
      0 0 16px rgba(0,255,170,.08) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    overflow: hidden !important;
    isolation: isolate !important;

    transition:
      transform .22s ease,
      border-color .22s ease,
      box-shadow .22s ease !important;
  }


  /* moving RGBA border */
  .breadcrumb::before {
    content: "";
    position: absolute;
    inset: -2px;

    border-radius: inherit;

    background: conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 230deg,
      rgba(0,255,170,.10) 250deg,
      rgba(0,255,205,.95) 280deg,
      rgba(110,255,90,.90) 310deg,
      rgba(0,255,180,.25) 340deg,
      transparent 360deg
    );

    opacity: .45;
    pointer-events: none;
    z-index: 0;

    animation: floatingCrumbGlow 3s linear infinite;
  }


  /* inner background */
  .breadcrumb::after {
    content: "";
    position: absolute;
    inset: 1px;

    border-radius: 11px;
    background: rgba(12,14,14,.96);

    pointer-events: none;
    z-index: 1;
  }


  .breadcrumb > * {
    position: relative;
    z-index: 2;
  }


  /* Home / Surahs buttons */
  .breadcrumb a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 32px !important;

    padding: 6px 9px !important;

    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,.08) !important;

    background: rgba(255,255,255,.035) !important;

    color: #fff !important;

    font-size: 11px !important;
    font-weight: 600 !important;

    white-space: nowrap !important;

    transition:
      transform .2s ease,
      background .2s ease,
      border-color .2s ease,
      box-shadow .2s ease !important;
  }


  /* current Surah */
  .breadcrumb span,
  .breadcrumb > :last-child {
    white-space: nowrap !important;
  }


  /* hover */
  .breadcrumb:hover {
    transform: translateY(-2px);

    border-color: rgba(50,255,180,.55) !important;

    box-shadow:
      0 10px 30px rgba(0,0,0,.48),
      0 0 18px rgba(34,197,94,.20),
      0 0 28px rgba(0,255,200,.12) !important;
  }


  .breadcrumb a:hover {
    background: rgba(25,210,145,.14) !important;
    border-color: rgba(65,255,185,.42) !important;

    box-shadow:
      0 0 12px rgba(0,255,170,.16) !important;

    transform: translateY(-1px);
  }


  @keyframes floatingCrumbGlow {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }
}
/* =========================================
   MOBILE HOME HERO IMAGE
========================================= */

@media (max-width: 640px) {

  .home-ref-hero {
    background:
      linear-gradient(
        180deg,
        rgba(4, 48, 39, 0.82) 0%,
        rgba(4, 48, 39, 0.64) 38%,
        rgba(4, 48, 39, 0.34) 67%,
        rgba(4, 48, 39, 0.16) 100%
      ),
      url("../../Image/al-aqsa-mobile.png")
      center center / cover no-repeat !important;

    min-height: 560px !important;
    background-position: center center !important;
  }
}
@media (max-width: 640px) {
  .home-ref-hero .home-ref-title,
  .home-ref-hero h1 {
    display: none !important;
  }
}

@media (max-width: 640px) {

  /* Hero-এর extra text কমানো */
  .home-ref-kicker {
    display: none !important;
  }

  /* Popular Searches hide */
  .home-ref-popular {
    display: none !important;
  }

  /* Suggested for you hide */
  .home-ref-suggestions {
    display: none !important;
  }
  @media (max-width: 640px) {
  .about-strip {
    display: none !important;
  }
}
}
@media (max-width: 640px) {
  .home-feature-ayah {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .home-explore-grid > .home-explore-card:nth-child(n+4) {
    display: none !important;
  }
}

/* ==========================================
   MOBILE COLLAPSIBLE SIDE NAV - FINAL
========================================== */

@media (max-width: 640px) {

  /* collapsed */
  .site-nav {
    position: fixed !important;

    top: 72px !important;
    right: 7px !important;
    bottom: auto !important;

    width: 54px !important;
    height: 54px !important;
    max-height: 54px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    padding: 6px !important;
    gap: 7px !important;

    overflow: hidden !important;

    z-index: 9999 !important;

    background: rgba(12, 15, 14, .90) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 16px !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
      0 10px 35px rgba(0,0,0,.40),
      0 0 0 1px rgba(60,255,180,.03) !important;

    transition:
      max-height .35s ease,
      height .35s ease,
      border-color .3s ease,
      box-shadow .3s ease !important;
  }


  /* hide nav options while closed */
  .site-nav:not(.nav-open) .nav-link {
    display: none !important;
  }


  /* main menu button */
  .mobile-nav-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;

    flex: 0 0 40px !important;

    display: grid !important;
    place-items: center !important;

    padding: 0 !important;
    margin: 0 !important;

    color: #fff !important;

    background: rgba(255,255,255,.05) !important;

    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 10px !important;

    cursor: pointer !important;

    position: relative !important;
    z-index: 5 !important;

    transition:
      background .22s ease,
      border-color .22s ease,
      box-shadow .22s ease,
      transform .22s ease !important;
  }


  .mobile-nav-toggle svg {
    width: 19px !important;
    height: 19px !important;
    display: block !important;
  }


  /* OPEN */
  .site-nav.nav-open {
    bottom: 18px !important;

    height: auto !important;
    max-height: calc(100dvh - 90px) !important;

    align-items: center !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    scrollbar-width: none !important;

    border-color: rgba(0,255,185,.34) !important;

    box-shadow:
      0 12px 35px rgba(0,0,0,.46),
      0 0 18px rgba(34,197,94,.12),
      0 0 28px rgba(0,255,200,.06) !important;
  }


  .site-nav.nav-open::-webkit-scrollbar {
    display: none !important;
  }


  /* show all menu options */
  .site-nav.nav-open .nav-link {
    display: flex !important;

    width: 40px !important;
    height: 42px !important;
    min-height: 42px !important;

    flex: 0 0 42px !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    font-size: 0 !important;

    border-radius: 10px !important;
  }


  .site-nav.nav-open .nav-link svg {
    width: 18px !important;
    height: 18px !important;
  }


  /* keep toggle visible while menu scrolls */
  .site-nav.nav-open .mobile-nav-toggle {
    position: sticky !important;
    top: 0 !important;

    flex: 0 0 40px !important;

    background: rgba(18,24,22,.98) !important;

    border-color: rgba(0,255,185,.38) !important;

    box-shadow:
      0 0 12px rgba(34,197,94,.14) !important;
  }


  /* hover */
  .site-nav.nav-open .nav-link:hover,
  .mobile-nav-toggle:hover {
    background: rgba(34,197,94,.13) !important;

    border-color: rgba(0,255,190,.48) !important;

    box-shadow:
      0 0 10px rgba(34,197,94,.18),
      0 0 18px rgba(0,255,210,.08) !important;
  }
}
@media (max-width: 640px) {
  .breadcrumb:empty {
    display: none !important;
  }

  .breadcrumb:empty::before,
  .breadcrumb:empty::after {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 640px) {

  /* active nav item */
  .site-nav .nav-link.active {
    position: relative !important;
    isolation: isolate !important;

    color: #ffffff !important;
    background: rgba(12, 18, 16, .96) !important;

    border-color: rgba(0,255,185,.42) !important;

    box-shadow:
      0 0 10px rgba(34,197,94,.16),
      0 0 18px rgba(0,255,200,.08) !important;

    overflow: hidden !important;
  }

  /* animated rgba glow around active item */
  .site-nav .nav-link.active::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;

    background: conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 210deg,
      rgba(0,255,170,.08) 245deg,
      rgba(0,255,205,.95) 280deg,
      rgba(110,255,190,.90) 315deg,
      transparent 360deg
    );

    animation: activeNavGlow 2.8s linear infinite;

    z-index: -2;
    pointer-events: none;
  }

  /* dark inner layer keeps icon perfectly clear */
  .site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 8px;

    background: rgba(12, 18, 16, .98);

    z-index: -1;
    pointer-events: none;
  }

  /* icon always sharp */
  .site-nav .nav-link.active svg,
  .site-nav .nav-link.active .ic,
  .site-nav .nav-link.active i {
    position: relative !important;
    z-index: 3 !important;

    color: #ffffff !important;
    stroke: #ffffff !important;

    opacity: 1 !important;
    filter: none !important;
  }

  @keyframes activeNavGlow {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }
}
@media (max-width: 640px) {

  .home-ref-hero {
    width: calc(100% + 24px) !important;
    max-width: none !important;

    margin-left: -12px !important;
    margin-right: -12px !important;

    border-radius: 0 !important;
  }
}

@media (max-width: 640px) {

  /* NAV CONTAINER ANIMATION */
  .site-nav {
    transform-origin: top right !important;

    transition:
      max-height .38s cubic-bezier(.22,.8,.22,1),
      transform .32s ease,
      opacity .28s ease,
      border-color .28s ease,
      box-shadow .28s ease !important;
  }

  /* IMPORTANT: never use display:none */
  .site-nav .nav-link,
  .site-nav:not(.nav-open) .nav-link,
  .site-nav.nav-open .nav-link {
    display: flex !important;
  }


  /* CLOSED ITEMS */
  .site-nav:not(.nav-open) .nav-link {
    opacity: 0 !important;
    visibility: hidden !important;

    transform: translateY(-10px) scale(.88) !important;

    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    margin: 0 !important;

    border-width: 0 !important;

    pointer-events: none !important;

    transition:
      opacity .18s ease,
      transform .24s ease,
      height .30s ease,
      max-height .30s ease,
      visibility 0s linear .25s !important;
  }


  /* OPEN ITEMS */
  .site-nav.nav-open .nav-link {
    opacity: 1 !important;
    visibility: visible !important;

    transform: translateY(0) scale(1) !important;

    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    pointer-events: auto !important;

    transition:
      opacity .28s ease,
      transform .32s cubic-bezier(.22,.8,.22,1),
      height .32s ease,
      max-height .32s ease,
      background .22s ease,
      border-color .22s ease,
      box-shadow .22s ease !important;
  }


  /* OPEN */
  .site-nav.nav-open {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
  }


  /* CLOSED */
  .site-nav:not(.nav-open) {
    transform: scale(.96) translateY(-3px) !important;
    opacity: .96 !important;
  }
}

@media (max-width: 640px) {

  .home-category-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;

    background: transparent !important;
    border: 0 !important;
  }

  .home-category-item {
    min-height: 118px !important;

    background: rgba(20, 20, 20, .96) !important;

    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 12px !important;

    box-shadow:
      0 3px 12px rgba(0,0,0,.18) !important;

    overflow: hidden !important;

    transition:
      transform .22s ease,
      border-color .22s ease,
      box-shadow .22s ease !important;
  }

  .home-category-item:hover {
    transform: translateY(-2px);

    border-color: rgba(0,255,185,.40) !important;

    box-shadow:
      0 6px 18px rgba(0,0,0,.28),
      0 0 12px rgba(34,197,94,.10) !important;
  }
}

@media (max-width: 640px) {

  .home-ref-hero {
    margin-bottom: 20px !important;
  }

  .home-category-row {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }
}

@media (max-width: 640px) {

  .surah-hero {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    padding: 8px 0 12px !important;
    margin-bottom: 10px !important;
  }

  .surah-hero .sh-top {
    gap: 10px !important;
    align-items: center !important;
  }

  .surah-hero .sh-num {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    font-size: 1.05rem !important;
  }

  .surah-hero .sh-titles h1 {
    font-size: 1.25rem !important;
    line-height: 1.15 !important;
  }

  .surah-hero .sh-bn,
  .surah-hero .sh-meaning {
    font-size: .78rem !important;
  }

  .surah-hero .sh-ar {
    font-size: 1.55rem !important;
  }

  .surah-hero .sh-info {
    margin: 10px 0 !important;
    padding: 10px 0 !important;

    gap: 8px 16px !important;

    border-top: 1px solid var(--line-2) !important;
    border-bottom: 1px solid var(--line-2) !important;
  }

  .surah-hero .sh-info span {
    min-width: auto !important;
  }

  .surah-hero .sh-info i {
    font-size: .62rem !important;
  }

  .surah-hero .sh-info b {
    font-size: .78rem !important;
  }

  .surah-hero .sh-actions {
    gap: 7px !important;
  }

  .surah-hero .btn {
    padding: 8px 11px !important;
    font-size: .78rem !important;
  }

  .surah-hero .sh-actions .btn:nth-last-child(1) {
    display: none !important;
  }

  .reader-toolbar {
    margin-top: 6px !important;
    margin-bottom: 10px !important;
    gap: 6px !important;
  }

  .reader-toolbar .tchip {
    padding: 5px 9px !important;
    font-size: .72rem !important;
  }

  .bismillah {
    padding-top: 8px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 640px) {
  .surah-hero {
    padding-top: 18px !important;
  }

  .surah-hero .sh-top {
    margin-top: 4px !important;
  }
}

@media (max-width: 640px) {

  .ayah {
    display: block !important;

    padding: 16px !important;
    border-radius: 16px !important;

    background: var(--surface) !important;
    border: 1px solid rgba(255,255,255,.10) !important;

    box-shadow:
      0 8px 22px rgba(0,0,0,.22) !important;
  }

  .ayah-rail {
    margin-bottom: 10px !important;
  }

  .ayah-no {
    width: auto !important;
    min-width: 38px !important;
    height: 28px !important;

    padding: 0 10px !important;

    border-radius: 8px !important;

    font-size: .72rem !important;
  }

  .ayah-body {
    width: 100% !important;
  }

  .ayah .ar {
    font-family: var(--arabic) !important;

    font-size: 1.55rem !important;
    line-height: 1.9 !important;

    text-align: right !important;

    margin: 4px 0 16px !important;
    padding-bottom: 16px !important;

    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }

  .ayah .tr,
  .ayah .bn,
  .ayah .en {
    display: block !important;

    margin: 0 0 12px !important;

    font-size: .88rem !important;
    line-height: 1.65 !important;
  }

  .ayah .lbl {
    display: inline-flex !important;

    margin: 0 6px 5px 0 !important;

    padding: 3px 7px !important;

    border-radius: 999px !important;

    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.08) !important;

    font-size: .58rem !important;
    letter-spacing: .10em !important;
  }

  .ayah-tools {
    margin-top: 14px !important;
    padding-top: 12px !important;

    border-top: 1px solid rgba(255,255,255,.08) !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    gap: 6px !important;
  }

  .ayah-tools button,
  .ayah-tools a {
    width: 34px !important;
    height: 34px !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 9px !important;

    transition:
      transform .22s ease,
      border-color .22s ease,
      box-shadow .22s ease !important;
  }

  .ayah-tools button:hover,
  .ayah-tools a:hover {
    transform: translateY(-2px) !important;

    border-color: rgba(0,255,185,.42) !important;

    box-shadow:
      0 0 12px rgba(34,197,94,.12) !important;
  }
}

@media (max-width: 640px) {
  .ayah .lbl {
    display: none !important;
  }
}

  @media (max-width: 640px) {

  /* Active sidebar item must always stay dark */
  .site-nav .nav-link.active,
  .site-nav.nav-open .nav-link.active,
  .site-nav:not(.nav-open) .nav-link.active {
    background: rgba(12, 18, 16, .98) !important;
    color: #ffffff !important;

    border: 1px solid rgba(0, 255, 185, .48) !important;

    opacity: 1 !important;

    box-shadow:
      0 0 0 1px rgba(0,255,185,.10),
      0 0 13px rgba(0,255,185,.14) !important;
  }

  /* Active icon always visible */
  .site-nav .nav-link.active svg,
  .site-nav .nav-link.active svg *,
  .site-nav.nav-open .nav-link.active svg,
  .site-nav.nav-open .nav-link.active svg * {
    color: #ffffff !important;
    stroke: #ffffff !important;

    opacity: 1 !important;
    visibility: visible !important;

    filter: none !important;

    position: relative !important;
    z-index: 5 !important;
  }

  /* Stop old white overlay covering icon */
  .site-nav .nav-link.active::after {
    background: rgba(12, 18, 16, .98) !important;
    z-index: 0 !important;
  }

  .site-nav .nav-link.active::before {
    z-index: -1 !important;
  }

  .site-nav .nav-link.active > svg,
  .site-nav .nav-link.active > .ic {
    position: relative !important;
    z-index: 10 !important;
  }
}

@media (max-width: 640px) {

  .juz-section {
    margin-top: 18px !important;
  }

  .juz-toggle {
    position: relative;
    width: 100%;
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 14px 16px;

    background:
      linear-gradient(
        135deg,
        rgba(20,20,20,.98),
        rgba(15,19,18,.98)
      );

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;

    color: #fff;
    text-align: left;

    overflow: hidden;
    cursor: pointer;

    box-shadow:
      0 8px 22px rgba(0,0,0,.24),
      inset 0 1px 0 rgba(255,255,255,.025);

    transition:
      transform .22s ease,
      border-color .22s ease,
      box-shadow .22s ease,
      background .22s ease;
  }

  .juz-toggle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;

    width: 3px;
    border-radius: 99px;

    background: rgba(0,255,185,.72);

    box-shadow:
      0 0 10px rgba(0,255,185,.32);
  }

  .juz-toggle:hover,
  .juz-toggle.open {
    transform: translateY(-1px);

    border-color: rgba(0,255,185,.34);

    box-shadow:
      0 10px 26px rgba(0,0,0,.28),
      0 0 16px rgba(0,255,185,.07);
  }

  .juz-toggle strong {
    display: block;

    margin-bottom: 4px;

    font-size: .96rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .juz-toggle small {
    display: block;

    color: rgba(255,255,255,.62);

    font-size: .69rem;
    font-weight: 400;
    line-height: 1.35;
  }

  .juz-toggle-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);

    color: #fff;
    font-size: 1.05rem;

    transition:
      transform .3s ease,
      background .22s ease,
      border-color .22s ease,
      box-shadow .22s ease;
  }

  .juz-toggle.open .juz-toggle-icon {
    transform: rotate(180deg);

    background: rgba(0,255,185,.08);
    border-color: rgba(0,255,185,.28);

    box-shadow:
      0 0 12px rgba(0,255,185,.10);
  }

  .juz-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    margin-top: 0;

    transform: translateY(-8px);

    transition:
      max-height .42s ease,
      opacity .25s ease,
      transform .3s ease,
      margin-top .3s ease;
  }

  .juz-panel.open {
    max-height: 1900px;
    opacity: 1;

    margin-top: 10px;

    transform: translateY(0);
  }

  .juz-panel .juz-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 8px !important;
  }

  .juz-panel .juz-grid a,
  .juz-panel .juz-grid button {
    min-height: 44px;

    border-radius: 10px !important;

    background: rgba(20,20,20,.96) !important;
    border: 1px solid rgba(255,255,255,.08) !important;

    transition:
      transform .2s ease,
      border-color .2s ease,
      background .2s ease,
      box-shadow .2s ease !important;
  }

  .juz-panel .juz-grid a:hover,
  .juz-panel .juz-grid button:hover {
    transform: translateY(-1px);

    background: rgba(18,24,22,.98) !important;
    border-color: rgba(0,255,185,.30) !important;

    box-shadow:
      0 4px 12px rgba(0,0,0,.22),
      0 0 10px rgba(0,255,185,.06) !important;
  }
}
/* =====================================
   PDF CARDS - MATCH SURAH CARD STYLE
===================================== */

.dl-card {
  position: relative !important;
  overflow: hidden !important;

  background: #151515 !important;

  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 14px !important;

  box-shadow:
    0 4px 14px rgba(0,0,0,.18) !important;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease !important;
}


/* subtle green light at bottom */
.dl-card::after {
  content: "";
  position: absolute;

  left: 18%;
  right: 18%;
  bottom: -1px;

  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,255,185,.20),
    rgba(0,255,185,.75),
    rgba(115,255,180,.35),
    transparent
  );

  opacity: 0;

  filter: blur(.3px);

  transform: scaleX(.55);

  pointer-events: none;

  transition:
    opacity .25s ease,
    transform .28s ease !important;
}


/* content always above effect */
.dl-card > * {
  position: relative;
  z-index: 2;
}


/* hover */
.dl-card:hover {
  transform: translateY(-2px) !important;

  border-color: rgba(0,255,185,.26) !important;

  box-shadow:
    0 7px 20px rgba(0,0,0,.25),
    0 4px 14px rgba(0,255,185,.045) !important;
}


.dl-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}


/* icon */
.dl-card svg,
.dl-card .ic {
  color: #ffffff !important;

  transition:
    transform .22s ease,
    color .22s ease !important;
}


.dl-card:hover svg,
.dl-card:hover .ic {
  transform: translateY(-1px);
}


/* download link */
.dl-card a {
  color: #ffffff !important;

  transition:
    transform .2s ease,
    opacity .2s ease !important;
}

.dl-card a:hover {
  transform: translateX(2px);
}


/* MOBILE */
@media (max-width: 640px) {

  .dl-grid {
    gap: 12px !important;
  }

  .dl-card {
    padding: 18px !important;
    min-height: auto !important;
  }
}

/* PDF CARD - STRONGER RGBA HOVER EFFECT */

.dl-card:hover {
  border-color: rgba(0, 255, 185, .45) !important;

  box-shadow:
    0 10px 24px rgba(0,0,0,.28),
    0 0 0 1px rgba(0,255,185,.10),
    0 0 18px rgba(0,255,185,.18),
    0 0 34px rgba(0,255,185,.08) !important;
}

/* moving bottom glow */
.dl-card::after {
  content: "";
  position: absolute;

  left: 8%;
  right: 8%;
  bottom: -2px;

  height: 4px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,255,185,.05) 15%,
    rgba(0,255,185,.55) 38%,
    rgba(90,255,195,.95) 50%,
    rgba(0,255,185,.55) 62%,
    rgba(0,255,185,.05) 85%,
    transparent 100%
  );

  opacity: 0;

  filter: blur(1px);

  transform: translateX(-60%) scaleX(.45);

  pointer-events: none;

  transition:
    opacity .2s ease !important;
}

.dl-card:hover::after {
  opacity: 1;

  animation: pdfGlowMove 1.8s linear infinite;
}

@keyframes pdfGlowMove {
  0% {
    transform: translateX(-65%) scaleX(.45);
  }

  50% {
    transform: translateX(65%) scaleX(.65);
  }

  100% {
    transform: translateX(-65%) scaleX(.45);
  }
}
/* =========================================
   JUZ CARD - REFERENCE HOVER EFFECT
========================================= */

.juz-card {
  position: relative !important;
  overflow: hidden !important;

  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 10px !important;

  background: #151515 !important;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease !important;
}


/* HOVER BASE */
.juz-card:hover {
  transform: translateY(-2px) !important;

  border-color: rgba(0,255,185,.55) !important;

  box-shadow:
    0 0 0 1px rgba(0,255,185,.08),
    0 7px 20px rgba(0,0,0,.28),
    0 0 15px rgba(0,255,185,.08) !important;
}


/* MOVING RGBA LIGHT */
.juz-card::after {
  content: "";
  position: absolute;

  left: -35%;
  bottom: -2px;

  width: 42%;
  height: 4px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,255,185,.10) 15%,
    rgba(0,255,185,.55) 42%,
    rgba(110,255,210,1) 55%,
    rgba(0,255,185,.55) 70%,
    transparent 100%
  );

  filter: blur(.7px);

  opacity: 0;

  pointer-events: none;

  box-shadow:
    0 0 7px rgba(0,255,185,.65),
    0 0 14px rgba(0,255,185,.30);

  transition: opacity .18s ease;
}


/* SHOW + MOVE ON HOVER */
.juz-card:hover::after {
  opacity: 1;

  animation: juzReferenceGlow 1.6s ease-in-out infinite;
}


@keyframes juzReferenceGlow {

  0% {
    left: -35%;
  }

  50% {
    left: 95%;
  }

  100% {
    left: -35%;
  }
}

/* =========================================
   JUZ TOGGLE HEADER - CLEAN FINAL STYLE
========================================= */

.juz-toggle {
  width: 100% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;

  padding: 14px 16px !important;

  background: #151515 !important;

  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 12px !important;

  color: #fff !important;
  text-align: left !important;

  cursor: pointer !important;

  box-shadow:
    0 6px 18px rgba(0,0,0,.18) !important;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease !important;
}


/* LEFT TEXT */
.juz-toggle > span:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}


.juz-toggle strong {
  display: block !important;

  font-size: .92rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  color: #fff !important;
}


.juz-toggle small {
  display: block !important;

  font-size: .70rem !important;
  font-weight: 400 !important;

  color: rgba(255,255,255,.55) !important;
}


/* RIGHT ARROW BOX */
.juz-toggle-icon {
  flex: 0 0 34px !important;

  width: 34px !important;
  height: 34px !important;

  display: grid !important;
  place-items: center !important;

  border-radius: 9px !important;

  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;

  color: #fff !important;

  font-size: 1rem !important;

  transition:
    transform .28s ease,
    border-color .22s ease,
    background .22s ease !important;
}


/* HOVER */
.juz-toggle:hover {
  transform: translateY(-1px) !important;

  border-color: rgba(0,255,185,.32) !important;

  box-shadow:
    0 8px 22px rgba(0,0,0,.24),
    0 0 12px rgba(0,255,185,.07) !important;
}


/* OPEN STATE */
.juz-toggle.open {
  border-color: rgba(0,255,185,.42) !important;
}

.juz-toggle.open .juz-toggle-icon {
  transform: rotate(180deg) !important;

  background: rgba(0,255,185,.07) !important;
  border-color: rgba(0,255,185,.25) !important;
}


/* MOBILE */
@media (max-width: 640px) {

  .juz-toggle {
    padding: 13px 14px !important;
  }

  .juz-toggle strong {
    font-size: .88rem !important;
  }

  .juz-toggle small {
    font-size: .67rem !important;
  }
}
.page-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.page-head h1 {
  margin: 0;
}

.page-head p {
  margin: 0 0 3px;
}

/* =====================================================
   DESKTOP GLOBAL ARABIC FONT — FODA STYLISH ARABIC
   ===================================================== */

@font-face {
  font-family: "Foda Stylish Arabic";
  src: url("../fonts/FodaStylishArabic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* Desktop only */
@media (min-width: 769px) {

  :root {
    --arabic-desktop: "Foda Stylish Arabic", "Noto Naskh Arabic", serif;
  }

  /* Global Arabic / Quran text */
  [lang="ar"],
  .ar,
  .arabic,
  .quran-arabic,
  .ayah-arabic,
  .verse-arabic,
  .ayah .ar,
  .surah-arabic,
  .home-feature-arabic {
    font-family: var(--arabic-desktop) !important;
    font-weight: normal !important;
    font-style: normal !important;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

}
@font-face {
  font-family: "FodaCustom";
  src: url("../fonts/Foda Stylish Arabic Font TTF.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.ayah .ar,
[lang="ar"],
.arabic,
.quran-arabic,
.surah-arabic,
.home-feature-arabic {
  font-family: "FodaCustom" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* =========================================
   SURAH LIVE COUNTER - TOP
   ========================================= */

.surah-progress {
  position: sticky;
  top: 72px;
  z-index: 999;

  width: fit-content;
  margin: 12px auto 18px;
  padding: 8px 14px;

  background: rgba(12, 28, 25, 0.96);
  border: 1px solid rgba(157, 217, 180, 0.35);
  border-radius: 999px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

/* শুধু counter দেখাবে */
#surahProgressText {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================
   BACK TO TOP BUTTON - BOTTOM RIGHT
   ========================================= */

#surahTopBtn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 1px solid rgba(157, 217, 180, 0.5);
  border-radius: 50%;

  background: #9dd9b4;
  color: #06291f;

  font-size: 22px;
  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

#surahTopBtn:hover {
  transform: translateY(-3px);
  background: #b6e5c7;
}

/* =========================================
   SURAH LIVE COUNTER - POLISHED
   ========================================= */

.surah-progress {
  position: sticky;
  top: 78px;
  z-index: 999;

  width: fit-content;
  margin: 12px auto 18px;

  padding: 8px 15px;

  background: rgba(12, 14, 14, .90);

  border: 1px solid rgba(157, 217, 180, 0.32);
  border-radius: 999px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(14px);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

#surahProgressText {
  position: relative;

  display: flex;
  align-items: center;
  gap: 8px;

  color: #f5fff8;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;

  white-space: nowrap;
}

/* Live indicator */
#surahProgressText::before {
  content: "";

  width: 7px;
  height: 7px;

  flex: 0 0 7px;

  border-radius: 50%;

  background: #9dd9b4;

  box-shadow:
    0 0 0 4px rgba(157, 217, 180, 0.10),
    0 0 10px rgba(157, 217, 180, 0.65);

  animation: surahLivePulse 1.7s ease-in-out infinite;
}

@keyframes surahLivePulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}


/* =========================================
   BACK TO TOP BUTTON - POLISHED
   ========================================= */

#surahTopBtn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;

  background: #111111;
  color: #ffffff;

  font-size: 21px;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.05);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

/* Dark theme */
[data-theme="dark"] #surahTopBtn {
  background: #111111;
  color: #ffffff;
}

[data-theme="dark"] #surahTopBtn:hover {
  background: #ffffff;
  color: #111111;
}


/* Light theme */
[data-theme="light"] #surahTopBtn {
  background: #ffffff;
  color: #111111;
  border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] #surahTopBtn:hover {
  background: #111111;
  color: #ffffff;
}

#surahTopBtn:active {
  transform: translateY(-1px) scale(0.97);
}


/* Mobile */
@media (max-width: 640px) {

  .surah-progress {
    top: 120px;
    margin: 8px auto 14px;

    padding: 7px 12px;
  }

  #surahProgressText {
    font-size: 12px;
    gap: 7px;
  }

  #surahProgressText::before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
  }

  #surahTopBtn {
    right: 14px;
    bottom: 16px;

    width: 42px;
    height: 42px;

    font-size: 19px;
  }
}

/* =========================================
   SURAH FULLSCREEN WELCOME INTRO
   ========================================= */

.surah-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Surah নিচে visible থাকবে */
  background: rgba(4, 18, 15, 0.12);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  animation: surahWelcomeOverlayOut 2.8s ease forwards;
}

.surah-welcome-card {
  width: min(520px, calc(100% - 40px));
  padding: 34px 30px;

  text-align: center;

  background: #111111;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 0 5px rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  animation: surahWelcomeCardIn 0.7s cubic-bezier(.2,.8,.2,1);
}

.surah-welcome-kicker {
  display: block;
  margin-bottom: 10px;

  color: #9dd9b4;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.surah-welcome-card h2 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.surah-welcome-card p {
  margin: 10px 0 0;

  color: rgba(255, 255, 255, 0.68);

  font-size: 13px;
}

/* Light theme welcome */
[data-theme="light"] .surah-welcome-card {
  background: #111111;
  border-color: rgba(0, 0, 0, 0.12);

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    0 0 0 5px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .surah-welcome-kicker,
[data-theme="light"] .surah-welcome-card h2,
[data-theme="light"] .surah-welcome-card p {
  color: #ffffff;
}


/* Dark theme welcome */
[data-theme="dark"] .surah-welcome-card {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 0 5px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .surah-welcome-kicker {
  color: rgba(0, 0, 0, 0.58);
}

[data-theme="dark"] .surah-welcome-card h2 {
  color: #111111;
}

[data-theme="dark"] .surah-welcome-card p {
  color: rgba(0, 0, 0, 0.68);
}


/* Small dock after intro */
.surah-welcome-dock {
  width: max-content;
min-height: 42px;

display: flex;
align-items: center;
justify-content: center;

  margin: 2px auto 8px;
  padding: 10px 20px;

  background: rgba(10, 42, 35, 0.94);

  border: 1px solid rgba(157, 217, 180, 0.28);
  border-radius: 999px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);

  opacity: 0;
  transform: translateY(-12px);

  animation: surahWelcomeDockIn 0.45s ease 2.45s forwards;
}

.surah-welcome-dock span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}


/* Existing scroll logic can hide it */
.surah-welcome-dock.is-hidden {
  display: none;
}


/* Animations */

@keyframes surahWelcomeCardIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes surahWelcomeOverlayOut {
  0%,
  70% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes surahWelcomeDockIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Mobile */
@media (max-width: 640px) {
  .surah-welcome-card {
    width: calc(100% - 28px);
    padding: 28px 20px;
    border-radius: 20px;
  }

  .surah-welcome-card h2 {
    font-size: 25px;
  }

  .surah-welcome-card p {
    font-size: 12px;
  }

  .surah-welcome-dock {
    margin: 8px auto 12px;
    padding: 6px 12px;
  }

  .surah-welcome-dock span {
    font-size: 11px;
  }
}

#surahProgress.is-hidden {
  display: none !important;
}

#surahProgress.is-visible {
  display: flex !important;
}

.surah-welcome-slot {
  width: 100%;
  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 8px;
} 



/* =========================================
   AYAH CARD - SAME GLOW AS SURAH CARD
========================================= */

.ayah {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

/* animated outer light */
.ayah::before {
  content: "";
  position: absolute;
  inset: -2px;

  border-radius: inherit;

  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 235deg,
    rgba(0, 255, 170, 0.15) 260deg,
    rgba(0, 255, 210, 1) 285deg,
    rgba(120, 255, 80, 0.95) 310deg,
    rgba(0, 255, 170, 0.25) 335deg,
    transparent 360deg
  );

  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* keep inside clean */
.ayah::after {
  content: "";
  position: absolute;
  inset: 1px;

  border-radius: inherit;
  background: var(--surface);

  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* content stays above animation */
.ayah > * {
  position: relative;
  z-index: 2;
}

/* hover */
.ayah:hover::before,
.ayah.is-reading::before {
  opacity: 1;
  animation: surahCardGlow 2.2s linear infinite;
}

.ayah:hover::after,
.ayah.is-reading::after {
  opacity: 1;
}

/* same hover glow */
.ayah:hover,
.ayah.is-reading {
  transform: translateY(-3px);

  border-color: rgba(34, 197, 94, 0.45);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(34, 197, 94, 0.12),
    0 0 26px rgba(0, 255, 200, 0.08);
}
@media (max-width: 640px) {
  .reader-toolbar {
    display: none !important;
  }
}

/* =========================================
   MOBILE SURAH BREADCRUMB - FINAL FIX
========================================= */
@media (max-width: 640px) {

  /* breadcrumb container */
  #crumb.breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  /* Surahs button */
  #crumb.breadcrumb > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* "/" separator */
  #crumb.breadcrumb > .sep {
    display: inline-block !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    opacity: .55 !important;
  }

  /* Surah 1 / Surah 2 / Surah 4 etc. */
  #crumb.breadcrumb > span:last-of-type {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    visibility: visible !important;
    opacity: 1 !important;

    padding: 7px 10px !important;
    border-radius: 9px !important;

    background: #ffffff !important;
    color: #111111 !important;

    border: 1px solid rgba(0, 0, 0, .14) !important;
    box-shadow: none !important;

    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* DARK MODE */
  [data-theme="dark"] #crumb.breadcrumb > span:last-of-type {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, .18) !important;
  }
}

/* =========================================
   MY ACTIVITY - FINAL LAYOUT FIX
========================================= */

.activity-summary-section {
  margin-top: 22px;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.activity-summary-grid .activity-stat-card {
  min-width: 0;
  padding: 15px;
}

@media (max-width: 900px) {
  .activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .activity-summary-grid .activity-stat-card {
    padding: 12px;
  }
}

/* =========================================
   MY ACTIVITY - RECENT ACTIVITY FIX
========================================= */

.recent-activity-section {
  margin-top: 22px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(15, 45, 62, 0.96),
    rgba(10, 35, 49, 0.98)
  );
  border: 1px solid rgba(53, 199, 158, 0.16);
  border-radius: 14px;
}

.recent-activity-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.recent-activity-list {
  display: grid;
  gap: 10px;
}

@media (max-width: 520px) {
  .recent-activity-section {
    margin-top: 18px;
    padding: 16px;
  }

  .recent-activity-head {
    gap: 12px;
  }
}

/* =========================================
   MY ACTIVITY - HISTORY SECTIONS FIX
========================================= */

.prayer-history-section,
.quran-history-section {
  margin-top: 22px;
  padding: 20px;

  background: linear-gradient(
    135deg,
    rgba(15, 45, 62, 0.96),
    rgba(10, 35, 49, 0.98)
  );

  border: 1px solid rgba(53, 199, 158, 0.16);
  border-radius: 14px;
}

.prayer-history-head,
.quran-history-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.prayer-history-grid,
.quran-history-grid {
  gap: 8px;
}

@media (max-width: 520px) {
  .prayer-history-section,
  .quran-history-section {
    margin-top: 18px;
    padding: 16px;
  }

  .prayer-history-head,
  .quran-history-head {
    gap: 12px;
  }
}

/* =========================================
   NAMAZ SHIKHA - GLOBAL B&W THEME ALIGNMENT
========================================= */

.recent-activity-section,
.prayer-history-section,
.quran-history-section {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

/* Inner cards */
.recent-activity-item,
.prayer-history-item,
.quran-history-item {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.10);
}

/* Summary cards */
.activity-summary-grid .activity-stat-card {
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Count / total boxes */
.recent-activity-count,
.prayer-history-summary,
.prayer-history-count,
.quran-history-total,
.quran-history-stats {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.10);
}

/* Remove colored hover effects */
.activity-stat-card:hover,
.prayer-history-item:hover,
.quran-history-item:hover {
  border-color: rgba(255, 255, 255, 0.20);
  background: #1a1a1a;
}

/* Today's cards - subtle highlight only */
.prayer-history-item:last-child,
.quran-history-item:last-child {
  background: #191919;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Main text */
.recent-activity-section h2,
.prayer-history-section h2,
.quran-history-section h2 {
  color: #ffffff;
}

/* Secondary text */
.recent-activity-section p,
.prayer-history-section p,
.quran-history-section p {
  color: #a8a8a8;
}

/* =========================================
   NAMAZ SHIKHA - PRAYER DASHBOARD B&W
========================================= */

/* Next prayer card */
.prayer-time-card.is-next {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.prayer-time-card.is-next .prayer-card-label {
  color: #ffffff;
}

.prayer-time-card.is-next::after {
  color: #ffffff;
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.18);
}

/* All prayer cards */
.prayer-time-card {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.10);
}

.prayer-time-card:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.20);
}

/* Main live prayer panel */
#livePrayer {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

/* Prayer tracker */
.prayer-tracker-section {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

/* Quick tools */
.dashboard-quick-tools {
  background: transparent;
}

.prayer-reminder-bar,
.qiblah-card {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

/* Tabs */
.salah-mode-tabs {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.salah-mode-tab {
  color: #bdbdbd;
}

.salah-mode-tab.is-active {
  background: #1b1b1b;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

/* =========================================
   NAMAZ SHIKHA - FINAL B&W DASHBOARD CLEANUP
========================================= */

/* Main next-prayer panel */
.next-prayer-info,
.next-prayer-card,
#livePrayerBody {
  background: #111111 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: none !important;
}

/* Inner info boxes */
.next-prayer-info > *,
.next-prayer-card > *,
#livePrayerBody > * {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Reminder + Qiblah */
.prayer-reminder-bar,
.qiblah-card {
  background: #111111 !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

/* Qiblah text */
.qiblah-card,
.qiblah-card strong,
.qiblah-card span {
  color: #ffffff;
}

/* Reminder controls */
.prayer-reminder-toggle,
.test-reminder-btn,
#prayerReminderMinutes {
  background: #171717;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

/* Progress / accent cleanup */
.prayer-tracker-progress,
.prayer-history-item::after {
  background: rgba(255, 255, 255, 0.16);
}

/* Keep only subtle success accent */
.prayer-track-item.is-completed,
.prayer-time-card.is-next {
  border-color: rgba(255, 255, 255, 0.20);
}

/* =========================================
   NAMAZ SHIKHA - NEXT PRAYER FINAL B&W FIX
========================================= */

#livePrayer,
#livePrayerBody,
.next-prayer-info,
.next-prayer-card,
.next-prayer-hero,
.next-prayer-panel {
  background: #111111 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: none !important;
}

#livePrayer::before,
#livePrayer::after,
.next-prayer-info::before,
.next-prayer-info::after,
.next-prayer-card::before,
.next-prayer-card::after {
  background: none !important;
  background-image: none !important;
}

/* inner stat boxes */
#livePrayerBody .next-prayer-info,
#livePrayerBody .next-prayer-stat,
#livePrayerBody .prayer-info-card {
  background: #171717 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* neutral text */
#livePrayer h2,
#livePrayer strong {
  color: #ffffff;
}

#livePrayer p,
#livePrayer span {
  color: #b8b8b8;
}

/* =========================================
   NAMAZ SHIKHA - FINAL BLACK & WHITE ACCENTS
========================================= */

/* Active tabs */
.salah-mode-tab.is-active {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.salah-mode-tab.is-active::after {
  background: #ffffff !important;
}

/* Next / completed prayer states */
.prayer-time-card.is-next,
.prayer-track-item.is-completed {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.prayer-time-card.is-next .prayer-card-label,
.prayer-time-card.is-next::after {
  color: #ffffff !important;
}

.prayer-time-card.is-next::after {
  background: #222222 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Prayer progress */
.prayer-tracker-bar,
.prayer-tracker-progress,
.prayer-track-progress {
  background-color: rgba(255, 255, 255, 0.16) !important;
}

/* Reminder toggle */
.prayer-toggle-ui {
  background: #333333 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

input:checked + .prayer-toggle-ui {
  background: #ffffff !important;
}

input:checked + .prayer-toggle-ui::before {
  background: #111111 !important;
}

/* Reminder test button */
.test-reminder-btn {
  background: #171717 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.test-reminder-btn:hover {
  background: #222222 !important;
}

/* Qiblah */
.qiblah-card,
.qiblah-content,
.qiblah-copy {
  color: #ffffff !important;
}

.qiblah-card strong,
.qiblah-card .eyebrow,
.qiblah-card span {
  color: #ffffff !important;
}

.qiblah-compass {
  background: #171717 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
}

/* Generic teal status text inside Namaz dashboard */
.prayer-tracker-section [style*="color"],
.qiblah-card [style*="color"] {
  color: #ffffff;
}

/* =========================================
   NAMAZ SHIKHA - TAB WIDTH FIX
========================================= */

.salah-mode-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: none !important;
}

.salah-mode-tab {
  width: 100% !important;
  min-width: 0 !important;
}

/* =========================================
   NAMAZ SHIKHA - MOBILE FINAL POLISH
========================================= */

@media (max-width: 520px) {

  /* Page heading */
  #salahPageTitle,
  #salahPageSubtitle {
    display: block;
    width: 100%;
  }

  #salahPageTitle {
  margin-top: 34px;
  margin-bottom: 8px;
  line-height: 1.15;
}

  #salahPageSubtitle {
    line-height: 1.5;
    max-width: 100%;
  }

  /* Remove decorative colored shape */
  #livePrayer::before,
  #livePrayer::after,
  .next-prayer-info::before,
  .next-prayer-info::after {
    display: none !important;
    content: none !important;
  }

  /* Prayer cards */
  .prayer-time-card,
  .prayer-track-item,
  .activity-stat-card,
  .prayer-history-item,
  .quran-history-item {
    background: #171717 !important;
    border-color: rgba(255,255,255,.12) !important;
  }

  /* Remove teal / green state backgrounds */
  .prayer-time-card.is-next,
  .prayer-track-item.is-completed,
  .prayer-track-item.is-current,
  .prayer-history-item:last-child,
  .quran-history-item:last-child {
    background: #1a1a1a !important;
    border-color: rgba(255,255,255,.20) !important;
  }

  /* Progress bars */
  .prayer-tracker-bar,
  .prayer-tracker-progress,
  .prayer-history-item::after,
  .quran-history-item::after {
    background: rgba(255,255,255,.18) !important;
  }

  /* My Activity Quran stat boxes */
  .quran-history-item > div,
  .quran-history-item .quran-history-stat,
  .quran-history-item .quran-history-stats {
    background: #111111 !important;
    border-color: rgba(255,255,255,.08) !important;
  }

  /* Neutralize accent text */
  .prayer-time-card.is-next *,
  .prayer-track-item.is-completed *,
  .prayer-history-item:last-child *,
  .quran-history-item:last-child * {
    color: inherit;
  }

  /* Keep primary text white */
  .prayer-time-card strong,
  .prayer-track-item strong,
  .activity-stat-card strong,
  .prayer-history-item strong,
  .quran-history-item strong {
    color: #ffffff !important;
  }

  /* Slightly cleaner spacing */
  .recent-activity-section,
  .prayer-history-section,
  .quran-history-section,
  .prayer-tracker-section {
    border-radius: 12px;
  }
}

/* =========================================
   NAMAZ SHIKHA - MOBILE B&W FINAL CLEANUP
========================================= */

@media (max-width: 520px) {

  /* Remove remaining decorative shape */
  #livePrayer::before,
  #livePrayer::after,
  #livePrayerBody::before,
  #livePrayerBody::after,
  .next-prayer-info::before,
  .next-prayer-info::after,
  .prayer-time-card::before {
    display: none !important;
    content: none !important;
    background: none !important;
  }

  /* Neutral prayer status */
  .prayer-track-item,
  .prayer-track-item.is-completed,
  .prayer-track-item.is-current,
  .prayer-track-item.is-upcoming,
  .prayer-time-card,
  .prayer-time-card.is-next {
    background: #171717 !important;
    border-color: rgba(255,255,255,.12) !important;
  }

  .prayer-track-item.is-completed,
  .prayer-time-card.is-next {
    border-color: rgba(255,255,255,.22) !important;
  }

  /* Remove green progress */
  .prayer-tracker-bar,
  .prayer-tracker-progress,
  .prayer-history-item::after,
  .prayer-history-bar,
  .prayer-history-progress {
    background: rgba(255,255,255,.18) !important;
  }

  /* Neutral status labels */
  .prayer-time-card.is-next::after,
  .prayer-track-item .status,
  .prayer-track-item [class*="locked"] {
    background: #222222 !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.14) !important;
  }

  /* Quran history stat boxes */
  .quran-history-item > div,
  .quran-history-item [class*="stat"],
  .quran-history-item [class*="metric"] {
    background: #111111 !important;
    border-color: rgba(255,255,255,.08) !important;
    color: #ffffff !important;
  }

  /* Today's card */
  .prayer-history-item:last-child,
  .quran-history-item:last-child {
    background: #191919 !important;
    border-color: rgba(255,255,255,.20) !important;
  }

  /* Accent text */
  .prayer-history-item:last-child *,
  .quran-history-item:last-child *,
  .prayer-track-item.is-completed * {
    color: inherit !important;
  }

  /* Keep numbers strong */
  .prayer-history-item strong,
  .quran-history-item strong,
  .activity-stat-card strong {
    color: #ffffff !important;
  }
}

/* =========================================
   REMOVE NEXT PRAYER DECORATIVE SHAPE
========================================= */

.next-prayer-panel::before {
  display: none !important;
  content: none !important;
}

@media (max-width: 520px) {

  .next-prayer-info {
    gap: 0 !important;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    overflow: hidden;
  }

  .next-prayer-info > * {
    background: #111111 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 12px 14px !important;
  }

  .next-prayer-info > * + * {
    border-top: 1px solid rgba(255,255,255,.08) !important;
  }

  .next-prayer-info span {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
  }

  .next-prayer-info strong {
    font-size: 14px;
    line-height: 1.2;
  }
}

/* =========================================
   BACK TO TOP BUTTON
========================================= */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;

  background: #151515;
  color: #ffffff;

  font-size: 20px;
  line-height: 1;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity .2s ease,
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;

  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #222222;
  border-color: rgba(255,255,255,.28);
}

@media (max-width: 520px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}