/* ===== Qurani-Kərim ===== */
:root {
  --word-on: #c2410c;
  --word-on-bg: rgba(194, 65, 12, .12);
  --word-done: #0e5b4c;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f0ede5;
  --text: #1d2624;
  --muted: #6a7370;
  --line: #e3ded2;
  --primary: #0e5b4c;
  --primary-ink: #ffffff;
  --primary-soft: #e3efeb;
  --accent: #b5853a;
  --accent-soft: #f6ecd8;
  --mark: #f8e1a0;
  --danger: #b4412f;
  --ar-size: 34px;
  --tr-size: 18px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(25, 35, 30, .05), 0 6px 20px rgba(25, 35, 30, .06);
  --font: "Inter", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Amiri Quran", "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
  color-scheme: light;
}
[data-theme="sepia"] {
  --word-on: #b3261e;
  --word-on-bg: rgba(179, 38, 30, .12);
  --word-done: #6b4a1f;
  --bg: #f3ead7;
  --surface: #fbf5e8;
  --surface-2: #efe4cc;
  --text: #3a2f22;
  --muted: #7d6e5a;
  --line: #e2d4b6;
  --primary: #6b4a1f;
  --primary-soft: #efe2c6;
  --accent: #a0702c;
  --accent-soft: #f1e0bd;
  --mark: #f0cf86;
}
[data-theme="dark"] {
  --word-on: #ffb454;
  --word-on-bg: rgba(255, 180, 84, .16);
  --word-done: #5cbfa5;
  --bg: #0e1412;
  --surface: #151d1a;
  --surface-2: #1c2622;
  --text: #e6e2d8;
  --muted: #95a09b;
  --line: #27322e;
  --primary: #5cbfa5;
  --primary-ink: #0e1412;
  --primary-soft: #183029;
  --accent: #d8ab5b;
  --accent-soft: #2a2619;
  --mark: #6b5420;
  --danger: #e0715f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.has-player { padding-bottom: 88px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .fill, .ic.fill { fill: currentColor; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1100px; margin: 0 auto; height: 64px; padding: 0 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.brand-mark circle { fill: var(--primary); stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: .2px; color: var(--primary); }
.brand-text small { font-size: 11.5px; color: var(--muted); }

.search {
  flex: 1; max-width: 460px; margin-left: auto; position: relative;
  display: flex; align-items: center;
}
.search .ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 40px; padding: 0 40px 0 40px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  position: absolute; right: 12px; font: 12px var(--font); color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; pointer-events: none;
}
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }

.top-nav { display: flex; gap: 4px; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 10px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.on { color: var(--accent); }
.icon-btn .lbl { font-size: 14px; }
.top-nav .icon-btn.active { background: var(--primary-soft); color: var(--primary); }
.nav-drop { position: relative; }
.lang-code { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.lang-menu { min-width: 170px; left: auto; right: 0; }
.lang-menu a.on { background: var(--primary-soft); color: var(--primary); }
.set-sub { margin: 10px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
#tlModeBox.no-mode .seg, #tlModeBox.no-mode .hint, #tlModeBox.no-mode h4 { display: none; }
#tlModeBox.no-mode { display: none; }
.drop-chev { width: 16px; height: 16px; margin-left: -2px; color: var(--muted); transition: transform .2s; }
#bmNavBtn[aria-expanded="true"] .drop-chev { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; z-index: 45;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  animation: dropIn .15s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } }
.drop-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.drop-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.drop-menu b { font-size: 13px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 1px 10px; min-width: 28px; text-align: center; }
@media (max-width: 860px) { .drop-menu { left: auto; right: 0; } }

/* ---------- layout ---------- */
.view { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.narrow { max-width: 860px; margin: 0 auto; }
.site-foot { text-align: center; padding: 10px 20px 40px; font-size: 14px; }
.site-foot a, .about-link { color: var(--primary); font-weight: 600; }
.site-foot a:hover, .about-link:hover { text-decoration: underline; }
body.has-player .site-foot { padding-bottom: 110px; }
.about-list { display: grid; gap: 12px; }
.about-item { padding: 18px 22px; }
.about-item h2 { font-size: 17px; margin: 0 0 6px; color: var(--primary); }
.about-item p { margin: 0; line-height: 1.7; }
.page-title { font-size: 26px; margin: 4px 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 22px; }
.empty {
  text-align: center; color: var(--muted); padding: 60px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
}
.empty .ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  background: var(--primary); color: var(--primary-ink); cursor: pointer; font-weight: 500; font-size: 14.5px;
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn .ic { width: 18px; height: 18px; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); filter: none; }
.chip-btn {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text);
}
.chip-btn:hover { background: var(--surface-2); }

/* ---------- home ---------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.daily { padding: 22px 24px; position: relative; overflow: hidden; }
.daily::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px;
  border: 1.5px solid var(--accent-soft); transform: rotate(45deg); border-radius: 8px; pointer-events: none;
}
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.daily .ar { font-size: calc(var(--ar-size) * .78); margin: 10px 0 8px; }
.daily .tr { font-size: 16px; margin: 0 0 12px; color: var(--text); }
.daily a.ref { color: var(--primary); font-weight: 600; font-size: 14px; }
.side-cards { display: grid; gap: 16px; align-content: start; }
.continue {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--primary); color: var(--primary-ink); border-color: transparent;
}
.continue:hover { filter: brightness(1.06); }
.continue .big { font-size: 18px; font-weight: 600; }
.continue small { opacity: .8; display: block; }
.continue .ic { width: 26px; height: 26px; margin-left: auto; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 16px 18px; display: block; }
.stat:hover { border-color: var(--primary); }
.stat b { font-size: 24px; display: block; color: var(--primary); }
.stat span { color: var(--muted); font-size: 14px; }

.list-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.tabs button {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 9px; cursor: pointer; font-weight: 500; color: var(--muted);
}
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.filter {
  margin-left: auto; height: 38px; width: 260px; max-width: 100%; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); outline: none;
}
.filter:focus { border-color: var(--primary); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.s-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.s-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-1px); }
.s-num {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; position: relative;
  font-weight: 600; font-size: 14px; color: var(--primary);
}
.s-num::before {
  content: ""; position: absolute; inset: 5px; border: 1.5px solid var(--accent); border-radius: 6px; transform: rotate(45deg);
  transition: background .15s;
}
.s-card:hover .s-num::before { background: var(--accent-soft); }
.s-num span { position: relative; }
.s-names { display: flex; flex-direction: column; min-width: 0; }
.s-names b { font-weight: 600; }
.s-names small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.s-ar { margin-left: auto; font-family: var(--font-ar); font-size: 20px; color: var(--primary); direction: rtl; white-space: nowrap; }

/* ---------- surah ---------- */
.surah-head {
  text-align: center; padding: 14px 20px 0; margin-bottom: 20px; position: relative;
}
.sh-kicker { color: var(--accent); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.surah-head h1 { font-size: 30px; margin: 0; letter-spacing: .3px; line-height: 1.2; }
.sh-ar { font-family: var(--font-ar); font-size: 34px; color: var(--primary); line-height: 1.5; }
/* nömrə · ad · ərəbcə ad · məlumat — bir sətirdə yan-yana (dar ekranda alt sətrə keçir) */
.sh-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; }
.sh-line > * { display: inline-flex; align-items: center; }
.sh-line > * + *::before {
  content: ""; flex: none; width: 5px; height: 5px; margin-right: 16px;
  border: 1.2px solid var(--accent); transform: rotate(45deg);
}
.sh-meta { color: var(--muted); font-size: 14.5px; }
.sh-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.sh-actions select {
  height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text); cursor: pointer;
}
.sh-actions select:hover { border-color: var(--primary); }
.bismillah {
  font-family: var(--font-ar); text-align: center; font-size: calc(var(--ar-size) * 1.05);
  color: var(--text); padding: 14px 0 22px; line-height: 1.8;
}
.ornament { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--accent); margin: 18px auto 0; max-width: 320px; }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--accent)); }
.ornament::after { background: linear-gradient(90deg, var(--accent), transparent); }
.ornament i { width: 9px; height: 9px; border: 1.5px solid var(--accent); transform: rotate(45deg); }

.ayahs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ayah {
  padding: 18px 26px 22px; border-top: 1px solid var(--line); scroll-margin-top: 84px;
  transition: background .3s;
}
.ayah:first-child { border-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.ayah:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.ayah.playing { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.ayah.flash { animation: flash 1.8s ease; }
@keyframes flash { 0%, 40% { background: var(--mark); } 100% { background: transparent; } }
.ayah-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.ayah-ref {
  font-size: 13px; font-weight: 600; color: var(--primary); background: var(--primary-soft);
  padding: 2px 10px; border-radius: 999px; margin-right: 6px;
}
.ayahs .ayah-ref, .ayah-page .ayah-ref {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 32px; padding: 0 10px; font-size: 16px; font-weight: 700;
}
.ayah-meta { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.ayah-meta .sajda {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-weight: 600; font-size: 12.5px;
}
.ayah-tools { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.ayah:hover .ayah-tools, .ayah.playing .ayah-tools, .ayah-tools:focus-within { opacity: 1; }
.ayah-tools .icon-btn { height: 34px; min-width: 34px; padding: 0 8px; color: var(--muted); }
.ayah-tools .icon-btn:hover { color: var(--text); }
.ayah-tools .icon-btn.on { color: var(--accent); opacity: 1; }
.ayah-tools .icon-btn.on .ic { fill: currentColor; }

.ar {
  font-family: var(--font-ar); font-size: var(--ar-size); line-height: 2.15;
  direction: rtl; text-align: right; margin: 4px 0 10px; color: var(--text);
  word-spacing: 2px;
}
.ar .w { border-radius: 8px; transition: color .12s, background-color .12s; }
.ar .w.w-done { color: var(--word-done); }
.ar .w.w-on { color: var(--word-on); background: var(--word-on-bg); }
.ar .end { color: var(--accent); font-size: .9em; white-space: nowrap; margin-right: 4px; }
.tr { font-size: var(--tr-size); line-height: 1.7; margin: 0; color: var(--text); }
.tr .n { color: var(--muted); font-size: .8em; margin-right: 6px; font-weight: 600; }
.tl { font-size: calc(var(--tr-size) * .95); line-height: 1.65; margin: 0 0 10px; color: var(--primary); letter-spacing: .1px; }

/* Ayədə 3 qat ayrı-ayrı görünsün: ərəb → oxunuş (transkripsiya) → məna (tərcümə) */
.ayah .ar { margin: 8px 0 18px; }
.ayah .tl {
  margin: 0 0 16px; padding: 4px 0 4px 14px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  font-size: calc(var(--tr-size) * .92); line-height: 1.7;
}
.ayah .tr { padding-top: 14px; border-top: 1px dashed var(--line); }
body.hide-ar.hide-tl .ayah .tr { padding-top: 0; border-top: 0; }
body.hide-tr .ayah .tl { margin-bottom: 4px; }
.daily .tl { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); font-size: 15px; }
.bism { text-align: center; margin: -4px 0 22px; }
.bism .bismillah { padding: 0; line-height: 2; }
.bism .tl { margin: 6px 0 0; font-size: 15px; }
body.hide-ar .ar, body.hide-ar .bismillah { display: none; }
body.hide-tl .tl { display: none; }
/* təcvid rəngləri */
:root { --tj-silent:#9aa0a6; --tj-mn:#537fff; --tj-mp:#4050ff; --tj-mo:#2144c1; --tj-mx:#000ebc; --tj-q:#dd0008; --tj-g:#ff7e1e;
  --tj-ix:#9400a8; --tj-ixs:#d500b7; --tj-ig:#169777; --tj-ing:#169200; --tj-is:#58b800; --tj-iq:#26bffd; --tj-im:#a1a1a1; }
[data-theme="dark"] { --tj-silent:#7d8590; --tj-mn:#7c9dff; --tj-mp:#8a95ff; --tj-mo:#6d8bff; --tj-mx:#9aa3ff; --tj-q:#ff5a5f; --tj-ix:#d36be0; --tj-ig:#3fc79e; --tj-ing:#5fd35f; }
.tj-ham_wasl, .tj-laam_shamsiyah, .tj-slnt { color: var(--tj-silent); }
.tj-madda_normal { color: var(--tj-mn); } .tj-madda_permissible { color: var(--tj-mp); }
.tj-madda_obligatory { color: var(--tj-mo); } .tj-madda_necessary { color: var(--tj-mx); }
.tj-qalaqah { color: var(--tj-q); } .tj-ghunnah { color: var(--tj-g); }
.tj-ikhafa { color: var(--tj-ix); } .tj-ikhafa_shafawi { color: var(--tj-ixs); }
.tj-idgham_ghunnah { color: var(--tj-ig); } .tj-idgham_wo_ghunnah { color: var(--tj-ing); } .tj-idgham_shafawi { color: var(--tj-is); }
.tj-iqlab { color: var(--tj-iq); } .tj-idgham_mutajanisayn, .tj-idgham_mutaqaribayn { color: var(--tj-im); }
.ar .w.w-on .tj { color: inherit; }
.tj-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tj-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.tj-dot { width: 14px; height: 14px; border-radius: 4px; background: currentColor; flex: none; }
.tr-both { display: flex; flex-direction: column; gap: 12px; }
.tr-name { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 2px; }
.tr-alt { padding-top: 12px; border-top: 1px dashed var(--line); }
/* ayə səhifəsində gizlədilə bilən hissələr */
.part { position: relative; padding-right: 34px; }
.part-x {
  position: absolute; top: 2px; right: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: .55; transition: opacity .15s, background .15s, color .15s;
}
.part-x .ic { width: 14px; height: 14px; }
.part:hover > .part-x, .part-x:focus-visible { opacity: 1; }
.part-x:hover { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.part-ar .part-x { top: 18px; }
.tr-both .tr-one.part .part-x { top: 0; }
@media (max-width: 640px) { .part-x { opacity: .8; } }
.add-part { position: relative; margin-top: 14px; }
.add-part-btn { color: var(--primary); border-style: dashed; }
.add-menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: 280px; max-height: 360px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px;
}
.add-grp + .add-grp { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.add-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.add-head b { font-size: 10.5px; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 1px 6px; letter-spacing: .04em; }
.add-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px 8px 14px; border-radius: 9px; cursor: pointer; font-size: 14.5px; color: var(--text); }
.add-item:hover { background: var(--primary-soft); color: var(--primary); }
a.qref { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
a.qref:hover { text-decoration-style: solid; }
.tr-list { display: grid; gap: 8px; }
.tr-grp small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin: 2px 0 2px; }
.tr-fn { display: block; margin-top: 6px; font-size: .78em; color: var(--muted); line-height: 1.5; }
body.hide-tr .tr { display: none; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }

.note-box {
  margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft);
  border-left: 3px solid var(--accent); font-size: 14.5px; white-space: pre-wrap; cursor: pointer;
}
.note-box b { display: block; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

/* ---------- ayə səhifəsi ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; margin: 0 0 14px; }
.crumbs a { color: var(--primary); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--muted); }
.crumbs .crumb-home { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; }
.crumbs .crumb-home:hover { background: var(--primary-soft); text-decoration: none; }
.crumbs .crumb-nav { margin-left: auto; display: flex; gap: 6px; }
.crumbs .crumb-nav .icon-btn { height: 34px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--primary); }
.crumbs .crumb-nav .icon-btn:hover { background: var(--primary-soft); text-decoration: none; }
.crumbs .crumb-nav .ic { width: 17px; height: 17px; }
@media (max-width: 640px) { .crumbs .crumb-nav span { display: none; } }
.crumbs .crumb-cur { background: var(--primary-soft); color: var(--primary); font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.av-head { text-align: center; padding: 14px 0 22px; }
.av-head h1 { font-size: 32px; margin: 4px 0 2px; }
.ayah-page { padding: 26px 34px 30px; border-top: 1px solid var(--line); }
.ayah-page .ayah-tools { opacity: 1; }
.ayah-page .ar { font-size: calc(var(--ar-size) * 1.3); line-height: 2.2; margin: 14px 0 24px; }
.ayah-page .tl { font-size: var(--tr-size); }
.ayah-page .tr { font-size: calc(var(--tr-size) * 1.08); line-height: 1.75; }
.wbw-sec { margin-top: 18px; padding: 22px 26px 18px; }
.sec-title { font-size: 18px; margin: 0 0 14px; }
.sec-note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.wbw { display: flex; flex-wrap: wrap; gap: 10px; }
.wcard {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 104px; max-width: 200px;
  padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .15s;
}
.wcard:hover { border-color: var(--primary); transform: translateY(-1px); }
.wcard .wa { font-family: var(--font-ar); font-size: calc(var(--ar-size) * .9); line-height: 1.9; color: var(--text); }
.wcard .wt { font-size: 13.5px; color: var(--primary); }
.wcard .wm { font-size: 14px; color: var(--text); line-height: 1.35; }
.wcard.w-done { border-color: color-mix(in srgb, var(--word-done) 45%, transparent); }
.wcard.w-done .wa { color: var(--word-done); }
.wcard.w-on, .wcard.w-say { border-color: var(--word-on); background: var(--word-on-bg); }
.wcard.w-on .wa, .wcard.w-say .wa { color: var(--word-on); }
body.hide-tl .wcard .wt { display: none; }
@media (max-width: 640px) { .wbw-sec { padding: 16px 14px; } .wcard { min-width: 88px; } }
.rel-sec { margin-top: 18px; padding: 22px 26px 20px; }
.rel-group + .rel-group { margin-top: 26px; }
.rel-sec .sec-title { font-size: 20px; margin-bottom: 16px; }
.rel-group h3, .rel-group h4 {
  font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 12px;
  padding: 8px 14px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0;
}
.rel-list { display: flex; flex-direction: column; gap: 10px; }
.rel-item {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); transition: border-color .15s, transform .15s;
}
.rel-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.rel-ref { font-weight: 700; color: var(--primary); }
.rel-why { font-size: 13.5px; font-weight: 600; color: var(--text); }
.rel-tr { font-size: 14px; color: var(--muted); line-height: 1.55; }
.rel-item .rel-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .rel-sec { padding: 16px 14px; } }
.is-more { display: none !important; }
/* açılan başlıqlar (Əlaqəli ayələr, Hədislər) */
.acc { margin-top: 14px; padding: 0; overflow: hidden; }
.acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 18px 24px; font-size: 18px; font-weight: 700; user-select: none; transition: background .15s;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--surface-2); }
.acc > summary .cnt { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 10px; }
.acc-chev { margin-left: auto; width: 22px; height: 22px; color: var(--muted); transition: transform .2s; }
.acc[open] > summary .acc-chev { transform: rotate(180deg); }
.acc[open] > summary { border-bottom: 1px solid var(--line); }
.acc-body { padding: 18px 24px 22px; }
@media (max-width: 640px) { .acc > summary { padding: 16px; } .acc-body { padding: 14px; } }
.more-btn { margin-top: 12px; align-self: flex-start; }
.rel-group h3 .cnt, .rel-group h4 .cnt { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--surface); border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: 2px; }
.had-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.had-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.had-src { font-weight: 700; color: var(--primary); }
.had-who { font-size: 13.5px; color: var(--accent); font-weight: 600; }
.had-ar { font-family: var(--font-ar); font-size: calc(var(--ar-size) * .68); line-height: 2; margin: 0; color: var(--text); text-align: right; }
.had-az { margin: 0; font-size: var(--tr-size); line-height: 1.7; padding-top: 10px; border-top: 1px dashed var(--line); }
.had-grade { font-size: 13px; color: var(--muted); }
.had-head .had-bm { margin-left: auto; height: 32px; min-width: 32px; padding: 0 6px; color: var(--muted); }
.had-head .had-bm:hover { color: var(--text); }
.had-head .had-bm.on { color: var(--accent); }
.had-head .had-bm.on .ic { fill: currentColor; }
.had-ayah { font-size: 14px; font-weight: 600; color: var(--primary); align-self: flex-start; }
.had-ayah:hover { text-decoration: underline; }
.bm-tabs { margin: 6px 0 20px; }
.bm-tabs .cnt { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.res-list > .had-item.card { padding: 18px 22px; }
.had-link { font-size: 13.5px; color: var(--primary); font-weight: 600; align-self: flex-start; }
.had-link:hover { text-decoration: underline; }
.taf-item { padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.taf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.taf-who { font-weight: 700; color: var(--primary); font-size: 16px; }
.taf-book { font-size: 13.5px; color: var(--accent); font-weight: 600; font-style: italic; }
.taf-short p, .taf-long p { margin: 0 0 10px; font-size: var(--tr-size); line-height: 1.75; }
.taf-long p { font-size: calc(var(--tr-size) * .97); }
.taf-item.is-long { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.taf-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.taf-toggle { height: 34px; padding: 0 12px; font-size: 14px; }
.taf-toggle .ic { width: 16px; height: 16px; transition: transform .2s; }
.taf-item.is-long .taf-toggle .ic { transform: rotate(180deg); }
.wcard .wroot { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; display: inline-flex; gap: 4px; align-items: baseline; }
.wcard .wroot b { font-family: var(--font-ar); font-size: 15px; font-weight: 400; }
.wcard .wroot small { font-size: 11px; color: var(--muted); }
.wcard .wroot:hover { background: var(--primary); color: var(--primary-ink); }
.wcard .wroot:hover small { color: inherit; }
.root-head { padding: 22px 24px; text-align: center; margin-bottom: 16px; }
.root-letters { font-family: var(--font-ar); font-size: 54px; color: var(--primary); line-height: 2; margin: -6px 0 6px; }
.root-stats { color: var(--muted); margin-bottom: 12px; }
.root-lems { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.root-lems b, .ro-w b { font-family: var(--font-ar); font-weight: 400; font-size: 20px; }
.root-occ { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s; }
.root-occ:hover { border-color: var(--primary); }
.ro-ref { font-weight: 700; color: var(--primary); }
.ro-words { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ro-w { font-size: 14.5px; }
.ro-w b { color: var(--accent); }
.ro-tr { color: var(--muted); font-size: 14px; line-height: 1.55; }
.nz-note { margin: 0 0 12px; color: var(--muted); }
.nz-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.nz-list p { margin: 0; font-size: var(--tr-size); line-height: 1.65; }
.nz-list small { display: block; margin-top: 3px; color: var(--accent); font-size: 13px; }
.nz-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.av-foot { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 640px) { .ayah-page { padding: 18px 16px 22px; } }

.surah-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.surah-nav a {
  flex: 1; max-width: 49%; padding: 14px 18px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.surah-nav a:hover { border-color: var(--primary); }
.surah-nav a small { color: var(--muted); font-size: 12.5px; }
.surah-nav a b { color: var(--primary); }
.surah-nav a.next { text-align: right; margin-left: auto; }

/* ---------- search / lists ---------- */
.res-info { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.res-list { display: grid; gap: 12px; }
.res { padding: 16px 22px 18px; }
.res .ayah-bar { margin-bottom: 2px; }
.res .ar { font-size: calc(var(--ar-size) * .8); margin: 2px 0 14px; }
.res .tr { font-size: calc(var(--tr-size) * .92); }
.more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
}
.player-progress { height: 3px; background: var(--line); }
.player-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.player-in {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.pl-info { display: flex; flex-direction: column; min-width: 0; }
.pl-info a { font-weight: 600; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-info small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ctrl { display: flex; align-items: center; gap: 6px; }
.pl-main { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); }
.pl-main:hover { background: var(--primary); filter: brightness(1.1); }
.pl-main .ic { width: 22px; height: 22px; }
.pl-extra { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
#plRepeat.on { background: var(--accent-soft); }
.loading .pl-main .ic { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw; z-index: 51;
  background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .12); animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 19px; }
.drawer-body { overflow-y: auto; padding: 6px 20px 30px; }
.set-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-group:last-child { border-bottom: 0; }
.set-group h3 { font-size: 14px; margin: 0 0 10px; display: flex; justify-content: space-between; }
.set-group h3 output { color: var(--muted); font-weight: 400; }
.set-group select {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; margin-bottom: 8px;
}
.set-group input[type="range"] { width: 100%; accent-color: var(--primary); }
.ar-preview { font-family: var(--font-ar); font-size: var(--ar-size); text-align: center; margin: 8px 0 0; line-height: 1.9; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 10px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 500; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.sub-set { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.sub-set h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sub-set .seg { background: var(--surface); }
.sub-set .seg button.on { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.sub-set .hint { margin: 8px 0 0; font-size: 12.5px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.hint, .src p { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- dialog ---------- */
.dlg {
  border: 1px solid var(--line); border-radius: 16px; padding: 0; width: 540px; max-width: 94vw;
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.dlg::backdrop { background: rgba(0, 0, 0, .4); }
.dlg form { padding: 20px 22px; }
.dlg h2 { margin: 0 0 6px; font-size: 18px; }
.dlg-ayah { color: var(--muted); font-size: 14px; margin: 0 0 12px; max-height: 6.5em; overflow: auto; }
.dlg textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical;
  background: var(--bg); outline: none; line-height: 1.5;
}
.dlg textarea:focus { border-color: var(--primary); }
.dlg-actions { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.dlg-actions .sp { flex: 1; }

/* ---------- ən yuxarı / ən aşağı ---------- */
.scroll-nav { position: fixed; right: 22px; bottom: 26px; z-index: 35; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-nav .icon-btn {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--primary); box-shadow: var(--shadow);
  transition: opacity .2s, background .15s, transform .15s;
}
.scroll-nav .icon-btn:hover { background: var(--primary); color: var(--primary-ink); transform: translateY(-1px); }
.scroll-nav .icon-btn.dim { opacity: .35; pointer-events: none; }
body.has-player .scroll-nav { bottom: 104px; }
@media (max-width: 640px) {
  .scroll-nav { right: 8px; bottom: 16px; gap: 6px; }
  .scroll-nav .icon-btn { width: 34px; height: 34px; opacity: .72; }
  .scroll-nav .icon-btn:hover, .scroll-nav .icon-btn:active { opacity: 1; }
  .scroll-nav .icon-btn.dim { opacity: .25; }
  .scroll-nav .ic { width: 17px; height: 17px; }
  .root-letters { font-size: 44px; }
  body.has-player .scroll-nav { bottom: 150px; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-player .toast { bottom: 110px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .top-nav .lbl { display: none; }
  .search kbd { display: none; }
}
@media (max-width: 640px) {
  .topbar-in { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .top-nav { margin-left: auto; }
  html { scroll-padding-top: 120px; }
  .ayah { scroll-margin-top: 120px; padding: 14px 16px 18px; }
  .view { padding: 18px 12px 50px; }
  .filter { width: 100%; margin-left: 0; }
  .ayah-tools { opacity: 1; }
  .player-in { grid-template-columns: 1fr auto; padding: 8px 12px; }
  .pl-extra { grid-column: 1 / -1; justify-content: center; }
  body.has-player { padding-bottom: 140px; }
  .surah-head h1 { font-size: 24px; }
  .sh-ar { font-size: 28px; }
  .sh-line { gap: 4px 12px; }
  .sh-line > * + *::before { margin-right: 12px; }
}

/* ---------- geniş axtarış (ana səhifə + #/axtar) ---------- */
.daily.motto { margin-bottom: 18px; }
.daily.motto .tr { font-size: 20px; line-height: 1.6; margin: 0 0 8px; }
.daily.motto .ref { display: block; text-align: right; font-size: 15px; padding-right: 40px; }
.sx { padding: 20px 22px; margin-bottom: 30px; display: grid; gap: 14px; }
.sx-page .sx { margin-bottom: 18px; }
.sx-form { display: flex; align-items: center; gap: 10px; position: relative; }
.sx-box { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.sx-box > .ic { position: absolute; left: 15px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.sx-form input {
  flex: 1; width: 100%; min-width: 0; height: 50px; padding: 0 86px 0 46px; font-size: 17px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.sx-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sx-form input::-webkit-search-cancel-button { display: none; }
.sx-tools { position: absolute; right: 8px; display: flex; align-items: center; gap: 2px; }
.sx-tool {
  width: 34px; height: 34px; border: 0; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.sx-tool:hover { background: var(--surface-2); color: var(--text); }
.sx-tool.on { background: var(--primary-soft); color: var(--primary); }
.sx-tool .ic { width: 20px; height: 20px; }
.sx-tool[hidden] { display: none; }
/* ekran klaviaturası */
.sx-kb { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 10px; display: grid; gap: 6px; user-select: none; -webkit-user-select: none; }
.sx-kb[hidden] { display: none; }
.kb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.kb-langs { background: var(--surface); }
.kb-langs button { padding: 5px 13px; }
.kb-langs button[lang="ar"] { font-family: var(--font-ar); font-size: 16px; padding-top: 2px; padding-bottom: 2px; }
.kb-rows { display: grid; gap: 6px; }
.kb-row { display: flex; justify-content: center; gap: 5px; }
.kb-key {
  flex: 1 1 0; max-width: 50px; min-width: 0; height: 42px; padding: 0;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 17px; cursor: pointer;
}
.kb-key:hover { border-color: var(--primary); }
.kb-key:active { transform: translateY(1px); background: var(--primary-soft); }
.kb-ar .kb-key { font-family: var(--font-ar); font-size: 22px; line-height: 1; }
.kb-key.wide { flex: 1.6 1 0; max-width: 110px; font-size: 15px; }
.kb-key.space { flex: 6 1 0; max-width: 340px; font-size: 14px; color: var(--muted); }
.kb-key.go { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.sx-form .btn { height: 50px; padding: 0 24px; border-radius: 12px; }
.sx-modes { flex-wrap: wrap; }
.sx-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sx-in-btn { height: 38px; border-radius: 10px; font-size: 14.5px; margin-left: auto; }
.sx-in-btn b { color: var(--primary); }
.sx-in { border-top: 1px solid var(--line); padding-top: 12px; }
.sx-in-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 20px; }
.sx-grp small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 2px; }
.sx-grp .check { font-size: 14.5px; padding: 3px 0; }
.sx-in-act { display: flex; gap: 8px; margin-top: 10px; }
.sx-hint { margin: 0; color: var(--muted); font-size: 13.5px; }
.sx-n { color: var(--primary); font-weight: 600; }
.sx-sur { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 18px; }
.sx-sur small { color: var(--muted); margin-right: 4px; font-size: 13.5px; }
.sx-sur .chip { padding: 4px 12px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.sx-sur .chip b { color: var(--primary); font-weight: 600; }
.sx-sur .chip:hover b { color: inherit; }
.sx-sur .chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.sx-x {
  margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--accent-soft);
  background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.65;
}
.daily-low { margin-top: 30px; }
.sx-soft { align-self: center; color: var(--muted); font-size: 14px; font-style: italic; }
body[data-view="home"] #searchForm, body[data-view="search"] #searchForm { visibility: hidden; }
@media (max-width: 640px) {
  body[data-view="home"] #searchForm, body[data-view="search"] #searchForm { display: none; }
  .sx { padding: 14px; gap: 12px; }
  .sx-form .btn { display: none; }
  .sx-kb { padding: 8px 4px; gap: 5px; }
  .kb-row, .kb-rows { gap: 3px; }
  .kb-key { height: 40px; font-size: 15px; border-radius: 6px; }
  .kb-ar .kb-key { font-size: 19px; }
}

/* ---------- kartda əvvəlki/sonrakı ayə oxları (axtarış, seçilmişlər, qeydlər) ---------- */
.ayah.has-nav { position: relative; }
.ay-nav {
  width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--primary); cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.ay-nav:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.ay-nav:disabled { opacity: .3; cursor: default; }
.ay-nav .ic { width: 24px; height: 24px; stroke-width: 2.4; }
.ay-nav:hover:not(:disabled) { background: var(--primary); color: var(--primary-ink); }
.ay-nav.side { position: absolute; top: min(50%, 150px); transform: translateY(-50%); z-index: 2; box-shadow: var(--shadow); }
.ay-nav.side.prev { left: -23px; }
.ay-nav.side.next { right: -23px; }
.ay-nav.inbar { display: none; width: 40px; height: 40px; }
.ay-nav.inbar .ic { width: 22px; height: 22px; }
.ay-back {
  height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--primary); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.ay-back:hover { border-color: var(--primary); }
@media (max-width: 940px) {
  .ay-nav.side { display: none; }
  .ay-nav.inbar { display: inline-flex; }
  .has-nav .ayah-bar { gap: 6px; }
}

/* surədə sağdakı sabit alətlər (dinlə + ayəyə keç), ən yuxarı/aşağı düymələrinin üstündə */
.sur-tools { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sur-tools[hidden] { display: none; }
.sur-tools #surPlay { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.sur-tools #surPlay:hover { filter: brightness(1.08); }
/* nömrə düymələrlə eyni ölçüdə dairə — hamısı bir şaquli xətt üzrə */
#surJump {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; text-align: center; text-align-last: center;
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--primary); box-shadow: var(--shadow);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
#surJump:hover { border-color: var(--primary); }
@media (max-width: 640px) {
  .sur-tools { gap: 6px; }
  #surJump { width: 34px; height: 34px; font-size: 12.5px; }
}

/* sağdakı düymələrin solunda qısa yazı — yalnız siçan üzərinə gələndə */
.sn-item { position: relative; display: flex; }
.sn-lbl {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 4px 10px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity .15s, transform .15s;
}
.sn-item:hover .sn-lbl, .sn-item:focus-within .sn-lbl { opacity: 1; transform: translate(0, -50%); }
.sn-item:has(.dim) .sn-lbl { display: none; }
@media (hover: none) { .sn-lbl { display: none; } }
#toTop, #toBottom { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sn-item[hidden] { display: none; }

/* surə səhifəsinin yuxarısında əvvəlki / sonrakı surə — aşağıdakı düymələrlə eyni */
.surah-nav-top { margin: 0 0 4px; }

/* ---------- istixarə ---------- */
.istx .card + .card, .istx .res-list { margin-top: 12px; }
.istx-warn { padding: 16px 22px; border-left: 4px solid var(--accent); }
.istx-warn h2 { font-size: 15px; margin: 0 0 4px; color: var(--accent); }
.istx-warn p { margin: 0; line-height: 1.7; }
.istx-start { padding: 26px 24px; text-align: center; }
.istx-how { font-size: 17px; margin: 0 0 6px; line-height: 1.6; }
.istx-start .hint { max-width: 560px; margin: 0 auto 18px; line-height: 1.6; }
.istx-go { height: 46px; padding: 0 30px; font-size: 16px; }
.istx-res { padding: 20px 24px; }
.istx-res .istx-verdict { margin-top: 8px; }
.istx-verdict { font-size: 19px; line-height: 1.6; margin: 0; color: var(--text); font-weight: 500; }
.istx-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.istx-h { padding: 14px 18px; }
.istx-h-top { display: flex; align-items: center; gap: 12px; }
.istx-h .istx-date { color: var(--muted); font-size: 13px; margin-left: auto; }
.istx-h .istx-verdict { font-size: 16px; margin-top: 6px; }
.istx-steps { list-style: none; padding: 0; margin: 18px auto 16px; max-width: 640px; text-align: left; display: grid; gap: 12px; }
.istx-step { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.istx-step h3 { font-size: 15px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.istx-step h3 a { color: var(--primary); }
.istx-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 13px; display: inline-grid; place-items: center; }
.istx-step .ar { font-size: calc(var(--ar-size) * .72); margin: 4px 0 6px; line-height: 2; text-align: right; }
.istx-step .tl { margin: 0 0 4px; font-size: 14.5px; padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.istx-mean { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.istx-from { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.istx-clear-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }

/* ---------- aşağıdakı menyu (footer) ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.foot-nav, .foot-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-langs { margin-top: 12px; gap: 6px 16px; font-size: 13px; }
.site-foot .foot-langs a { color: var(--muted); font-weight: 500; }
.site-foot .foot-langs a.on { color: var(--primary); font-weight: 600; }

/* ---------- Qurandakı dualar ---------- */
.dua-filter { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.dua-filter label { color: var(--muted); font-size: 14px; }
.dua-filter select { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; max-width: 100%; }
.dua-card { padding: 16px 20px; }
.dua-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.dua-who { font-size: 12.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.dua-head .ayah-tools { margin-left: auto; }
.dua-ar { line-height: 2.1; margin: 6px 0 10px; }
.dua-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; margin: 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--primary); font: 600 12px/1 Inter, system-ui, sans-serif; vertical-align: middle; cursor: pointer; }
.dua-n:hover { border-color: var(--primary); }
.dua-tr p { margin: 8px 0 0; line-height: 1.7; }
.dua-tr sup { color: var(--primary); font-weight: 600; }
.dua-more { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--primary); font-weight: 500; }
.dua-fz { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.dua-fz .acc-body { display: grid; gap: 10px; }
.dua-fz .had-item.card { box-shadow: none; padding: 14px 16px; }

/* ---------- hesab: giriş / qeydiyyat / Kabinet ---------- */
.ac-nav { position: relative; }
.ac-nav.in::after {
  content: ""; position: absolute; top: 7px; left: 22px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 2px var(--surface);
}
.ac-auth { max-width: 440px; margin: 10px auto 0; padding: 26px 26px 24px; }
.ac-auth .page-sub { margin-bottom: 16px; line-height: 1.6; font-size: 14.5px; }
.ac-mode { display: flex; margin-bottom: 18px; }
.ac-mode button { flex: 1; }
.ac-f { display: block; margin-bottom: 12px; }
.ac-f > span:first-child { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.ac-f input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); outline: none; font-size: 15px;
}
.ac-f input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ac-pw { position: relative; display: block; }
.ac-pw input { padding-right: 46px; }
.ac-pw .icon-btn { position: absolute; right: 3px; top: 2px; color: var(--muted); }
.ac-pw .icon-btn.on { color: var(--primary); }
.ac-pwhint { display: block; margin: -4px 0 12px; color: var(--muted); font-size: 12.5px; }
.ac-err { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); }
.ac-go { width: 100%; height: 44px; font-size: 15.5px; }
.ac-go:disabled { opacity: .6; cursor: default; }
.ac-guest { max-width: 440px; margin: 14px auto 0; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.ac-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; padding: 18px 22px; margin-bottom: 18px; }
.ac-ava {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); font-size: 22px; font-weight: 600;
}
.ac-who { min-width: 0; flex: 1; }
.ac-who b { display: block; font-size: 18px; }
.ac-who small { display: block; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.ac-status { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--primary); }
.ac-status::before { content: "✓ "; }
.ac-status[data-st="saving"] { color: var(--muted); }
.ac-status[data-st="saving"]::before { content: "… "; }
.ac-status[data-st="err"] { color: var(--danger); }
.ac-status[data-st="err"]::before { content: "! "; }
.ac-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-pwform { flex: 0 0 100%; padding-top: 14px; border-top: 1px solid var(--line); }
.ac-pwform > * { max-width: 420px; }
.ac-row { display: flex; gap: 8px; justify-content: flex-end; }
.ac-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ac-tabs button { white-space: nowrap; }
@media (max-width: 640px) {
  .ac-auth { padding: 20px 16px; }
  .ac-head { padding: 16px; }
  .ac-acts { flex-basis: 100%; }
  .ac-acts .btn { flex: 1; }
  .ac-tabs button { padding: 7px 11px; }
}
/* yuxarı menyu sığsın: 1100 px-dən dar — Kabinet yalnız ikon, 960 px-dən dar — bütün yazılar gizli */
@media (max-width: 1100px) { .ac-nav .lbl { display: none; } }
@media (max-width: 960px) { .top-nav .lbl { display: none; } }
/* telefon (≤640 px): yuxarı menyu ikonları sıxlaşır (8 ikon 320 px-ə sığsın);
   axtarış / seçilmişlər / qeydlər kartında ‹ ayə › və alətlər sığmayanda alətlər alt sətrə keçir */
@media (max-width: 640px) {
  .top-nav { gap: 0; }
  .top-nav .icon-btn { min-width: 34px; padding: 0 7px; gap: 4px; }
  .res { padding: 14px 14px 16px; }
  .ayah-bar { flex-wrap: wrap; row-gap: 6px; }
  .ayah-ref { white-space: nowrap; }
  .ayah-tools { margin-left: auto; }
}

/* ---------- xəbərlər (admin paneldən) ---------- */
.news-item { padding: 18px 22px; }
.news-item h2 { font-size: 18px; margin: 2px 0 6px; }
.news-item p { margin: 0; white-space: pre-wrap; line-height: 1.7; }
.news-date { color: var(--muted); font-size: 13px; }

/* «Kabinet ▾» menyusu (seçilmişlər, qeydlər, kabinet) — menyunun sağ ucundadır */
.acc-menu { left: auto; right: 0; min-width: 240px; }
.drop-menu .drop-acc { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 12px; color: var(--primary); font-weight: 600; }
