/* «آيات القرآن» — ورقة الأنماط */

:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --card: #fffefb;
  --ink: #1d2130;
  --ink-2: #3b4152;
  --muted: #6b7083;
  --line: #e4ded2;
  --line-2: #d6cfc1;
  --accent: #33378a;
  --accent-ink: #ffffff;
  --accent-soft: #eceefb;
  --warm: #c8582c;
  --warm-soft: #fbeee6;
  --q-allah: #b2412a;
  --q-rabb: #2f5d8c;
  --mark: #fde9a8;
  --shadow: 0 1px 2px rgb(29 33 48 / .05), 0 8px 24px -12px rgb(29 33 48 / .18);
  --r: 18px;
  --r-s: 11px;
  --ui: 'Readex Pro', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --text: 'Noto Naskh Arabic', 'Amiri', serif;
  --qfont: 'MI Hafs', 'Amiri Quran', 'Amiri', serif;
  --qz: 1;
  --shell: 1180px;
  --dock-h: 0px;
  color-scheme: light;
}
:root[data-accent="emerald"] { --accent: #0f6b55; --accent-soft: #e5f3ee; }
:root[data-accent="lapis"] { --accent: #1f4f99; --accent-soft: #e6eef9; }
:root[data-accent="garnet"] { --accent: #85203b; --accent-soft: #f7e8ec; }

@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --paper: #12131c; --paper-2: #181a26; --card: #1b1d2a; --ink: #ecebf3; --ink-2: #cfd0dc; --muted: #9a9db1;
    --line: #2a2d3e; --line-2: #363a4f; --accent: #a5abff; --accent-ink: #12131c; --accent-soft: #23264a;
    --warm: #f08b5f; --warm-soft: #33241f; --q-allah: #ff9c80; --q-rabb: #8cc0f5; --mark: #5a4a12;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6); color-scheme: dark;
  }
}
:root[data-mode="dark"] {
  --paper: #12131c; --paper-2: #181a26; --card: #1b1d2a; --ink: #ecebf3; --ink-2: #cfd0dc; --muted: #9a9db1;
  --line: #2a2d3e; --line-2: #363a4f; --accent: #a5abff; --accent-ink: #12131c; --accent-soft: #23264a;
  --warm: #f08b5f; --warm-soft: #33241f; --q-allah: #ff9c80; --q-rabb: #8cc0f5; --mark: #5a4a12;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.75 var(--ui); padding-bottom: var(--dock-h); }
img, svg { vertical-align: middle; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2.5px solid var(--warm); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--ui); line-height: 1.35; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
[hidden] { display: none !important; }
.i { flex: none; }
.shell { width: min(var(--shell), 100% - 32px); margin-inline: auto; }
.shell.slim { width: min(820px, 100% - 32px); }
.dim { color: var(--muted); }
.small { font-size: .88rem; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip-link:focus { top: 10px; }
.staff-bar { background: var(--ink); color: var(--paper); font-size: .85rem; }
.staff-bar .shell { display: flex; gap: 18px; padding: 6px 0; }
.staff-bar a { color: inherit; text-decoration: underline; }

/* ── الرأس ── */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.logo:hover { text-decoration: none; }
.logo-words { display: flex; flex-direction: column; line-height: 1.15; }
.logo-words b { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.logo-words small { color: var(--muted); font-size: .72rem; }
.finder { position: relative; display: flex; align-items: center; flex: 1; max-width: 380px; }
.finder input { width: 100%; height: 44px; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 0 18px 0 48px; outline: none; transition: border-color .15s, box-shadow .15s; }
.finder input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.finder button { position: absolute; inset-inline-end: 5px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.finder.big { max-width: none; }
.finder.big input { height: 58px; font-size: 1.08rem; padding-inline: 24px 64px; box-shadow: var(--shadow); }
.finder.big button { width: 46px; height: 46px; inset-inline-end: 6px; }
.links { display: flex; gap: 4px; margin-inline-start: auto; }
.links a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; position: relative; }
.links a:hover { text-decoration: none; background: var(--paper-2); }
.links a[aria-current] { color: var(--accent); }
.links a[aria-current]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--warm); }
.mode-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; flex: none; }
.mode-btn .m-light { display: none; }
:root[data-mode="dark"] .mode-btn .m-light { display: inline; }
:root[data-mode="dark"] .mode-btn .m-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .mode-btn .m-light { display: inline; } :root:not([data-mode="light"]) .mode-btn .m-dark { display: none; } }

/* ── شريط الجوال ── */
.dock { display: none; }
@media (max-width: 860px) {
  :root { --dock-h: 66px; }
  .links, .topbar .finder { display: none; }
  .topbar-row { height: 60px; justify-content: space-between; }
  .logo-words small { display: none; }
  .dock { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; height: calc(var(--dock-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgb(0 0 0 / .4); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .72rem; }
  .dock a:hover { text-decoration: none; color: var(--accent); }
}

/* ── العنوان العريض ── */
.mast { padding: 26px 0 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.mast-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mast-text { max-width: 760px; }
.mast h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.015em; margin: 0; }
.mast h1 small { font-weight: 400; color: var(--muted); font-size: .55em; margin-inline-start: 6px; }
.mast-sub { color: var(--ink-2); margin: 10px 0 0; font-size: 1.04rem; }
.mast-aside { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mast-aya h1 { font-family: var(--text); font-weight: 600; line-height: 1.7; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.kicker { margin: 0 0 6px; color: var(--warm); font-weight: 500; font-size: .92rem; }
.kicker a { color: inherit; }
.trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 16px; font-size: .84rem; color: var(--muted); }
.trail li + li::before { content: "/"; margin-inline-end: 4px; color: var(--line-2); }
.trail a { color: var(--muted); }
.trail [aria-current] { color: var(--ink-2); }

/* ── أزرار وشرائح ── */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.pill:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.pill.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill.solid:hover { filter: brightness(1.08); color: var(--accent-ink); }
.pill.done { border-color: var(--warm); color: var(--warm); }
.pick { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 14px; padding-inline: 14px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); }
.pick select { border: 0; background: transparent; height: 38px; max-width: 200px; outline: none; }
.seg { display: inline-flex; padding: 3px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: .88rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tag { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: .93rem; }
.tag:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.tag small { color: var(--muted); }
.tag.q { font-family: var(--text); font-size: 1.02rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; font-size: .9rem; }
.chips > span { color: var(--muted); margin-inline-end: 4px; }
.chips a, .chips b { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 400; }
.chips a:hover { text-decoration: none; border-color: var(--accent); }
.chips [aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips small { color: var(--muted); }
.more { font-weight: 500; font-size: .93rem; }
.more::after { content: " ←"; }
.row-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* ── أقسام ── */
.block { margin: 46px 0; }
.block > h2, .block-h h2 { font-size: 1.35rem; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.block-h h2 { margin: 0; }
.block-h p { margin: 0; color: var(--muted); font-size: .9rem; }
.prose-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; margin: 28px 0; font-family: var(--text); font-size: 1.08rem; line-height: 2; }
.prose-box h2 { font-size: 1.25rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.4em; }

/* ── فهرس السور بالأشرطة ── */
.sx-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.sx-find { position: relative; display: flex; align-items: center; flex: 1; min-width: 220px; max-width: 420px; }
.sx-find.wide { max-width: 560px; margin-bottom: 20px; }
.sx-find .i { position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.sx-find input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); padding-inline: 44px 14px; outline: none; }
.sx-find input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sx-sort { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.sx-sort select { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); padding: 0 10px; }
.sx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; counter-reset: none; }
.sx-list li a { display: grid; grid-template-columns: 38px minmax(90px, 140px) 1fr auto 46px; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px dashed var(--line); color: var(--ink); }
.sx-list li a:hover { text-decoration: none; background: var(--accent-soft); border-radius: 10px; }
.sx-n { font-size: .82rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.sx-name { font-family: var(--text); font-weight: 600; font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-bar { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.sx-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--warm))); }
.sx-c { font-size: .84rem; color: var(--ink-2); white-space: nowrap; }
.sx-t { font-size: .74rem; text-align: center; padding: 2px 0; border-radius: 6px; }
.sx-m { background: var(--warm-soft); color: var(--warm); }
.sx-d { background: var(--accent-soft); color: var(--accent); }
.sx-none { color: var(--muted); padding: 20px 0; }
@media (max-width: 900px) { .sx-list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sx-list li a { grid-template-columns: 30px 1fr 64px auto; } .sx-t { display: none; } .sx-c { font-size: .78rem; } }

/* ── غلاف السورة ── */
.cover { padding: 24px 0 26px; background: radial-gradient(ellipse at 15% 0%, var(--accent-soft), transparent 60%), linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); overflow: hidden; }
.cover-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.cover-title { font-family: var(--text); font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 600; line-height: 1.25; margin: 0 0 14px; }
.cover-title small { font-family: var(--ui); font-size: .32em; font-weight: 500; color: var(--muted); vertical-align: middle; display: inline-block; transform: translateY(-.3em); }
.cover-num { font: 700 clamp(6rem, 18vw, 13rem)/1 var(--ui); color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 30%, transparent); user-select: none; letter-spacing: -.04em; }
.spine { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); width: fit-content; max-width: 100%; }
.spine li { display: flex; flex-direction: column; padding: 8px 16px; border-inline-start: 1px solid var(--line); line-height: 1.35; }
.spine li:first-child { border-inline-start: 0; }
.spine b { font-size: 1.05rem; font-weight: 600; }
.spine b a { color: inherit; }
.spine span { font-size: .74rem; color: var(--muted); }
.cover-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vmap { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 22px; }
.vmap a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: .66rem; color: transparent; background: color-mix(in srgb, var(--accent) 14%, var(--card)); transition: transform .1s; }
.vmap a.l2 { background: color-mix(in srgb, var(--accent) 34%, var(--card)); }
.vmap a.l3 { background: color-mix(in srgb, var(--accent) 60%, var(--card)); }
.vmap a:hover, .vmap a.on { color: var(--accent-ink); background: var(--warm); text-decoration: none; transform: scale(1.12); }
@media (max-width: 700px) { .vmap { display: none; } .t-side { display: none; } .cover-num { display: none; } .cover-grid { grid-template-columns: 1fr; } .vmap a { width: 20px; height: 20px; border-radius: 5px; } .spine li { padding: 6px 11px; } }

/* ── القارئ ── */
.reader { padding: 22px 0 10px; }
.rbar { position: sticky; top: 78px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px; margin-bottom: 18px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.rbar-z { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.rbar-z button { border: 0; background: var(--card); width: 42px; height: 34px; font-family: var(--text); font-size: 1.05rem; }
.rbar-z button + button { border-inline-start: 1px solid var(--line); }
.rbar-tint { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .86rem; }
.rbar-tint[aria-pressed="true"] { color: var(--q-allah); border-color: currentColor; }
.goto label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.goto input { width: 92px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 10px; text-align: center; }
@media (max-width: 860px) { .rbar { top: 66px; } .goto span { display: none; } }
.basmala { text-align: center; font-family: var(--qfont); font-size: calc(1.9rem * var(--qz)); margin: 6px 0 22px; color: var(--ink); }

.verses { counter-reset: v; }
.verse { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.verse:target, .verse.hl { background: linear-gradient(90deg, transparent, var(--accent-soft) 30%, var(--accent-soft) 70%, transparent); border-radius: 12px; }
.vn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: .95rem; background: var(--card); position: sticky; top: 150px; transition: all .15s; }
.vn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); transform: rotate(-6deg); }
.va { font-family: var(--qfont); font-size: calc(1.85rem * var(--qz)); line-height: 2.25; margin: 0; color: var(--ink); word-spacing: .04em; }
.ve { display: none; }
.vt { font-family: var(--ui); font-size: calc(1rem * (var(--qz) * .5 + .5)); line-height: 1.8; color: var(--ink-2); margin: 8px 0 0; padding-inline-start: 14px; border-inline-start: 3px solid var(--warm-soft); }
.vt[dir="ltr"] { padding-inline-start: 0; border-inline-start: 0; padding-left: 14px; border-left: 3px solid var(--warm-soft); text-align: left; }
.vx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; opacity: .3; transition: opacity .15s; }
.verse:hover .vx, .verse:focus-within .vx, .verse.open .vx { opacity: 1; }
@media (hover: none) { .vx { opacity: 1; } }
.vx button, .vx a { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); font-size: .82rem; padding: 4px 9px; border-radius: 8px; }
.vx button:hover, .vx a:hover { background: var(--paper-2); color: var(--accent); text-decoration: none; }
.vx .i { width: 16px; height: 16px; }
.verse.open [data-taf] { color: var(--accent); background: var(--accent-soft); }
.vtag { color: var(--warm); margin-inline-end: 8px; font-size: .9em; }
.vsj { color: var(--warm); margin-inline-start: 6px; }
.vsep { text-align: center; margin: 4px 0; font-size: .8rem; position: relative; }
.vsep::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 1px dashed var(--line-2); }
.vsep a { position: relative; background: var(--paper); padding: 2px 14px; color: var(--muted); }
.vsep-juz a { color: var(--warm); font-weight: 600; font-size: .9rem; }
.vhead { margin: 30px 0 10px; text-align: center; }
.vhead a { display: inline-flex; flex-direction: column; align-items: center; padding: 14px 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); line-height: 1.4; box-shadow: var(--shadow); }
.vhead a:hover { text-decoration: none; border-color: var(--accent); }
.vhead b { font-family: var(--text); font-size: 1.5rem; }
.vhead small { color: var(--muted); }
/* التفسير داخل السورة */
.vtaf { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.vtaf-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 6px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.vtaf-tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: .85rem; white-space: nowrap; color: var(--muted); }
.vtaf-tabs button[aria-selected="true"] { background: var(--card); color: var(--accent); font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.vtaf-body { padding: 14px 18px; font-family: var(--text); font-size: 1.04rem; line-height: 2; max-height: 420px; overflow: auto; }
.vtaf-body p { margin: 0 0 .7em; }
.vtaf-foot { padding: 8px 14px; border-top: 1px solid var(--line); font-size: .86rem; }
/* النص المتصل */
.verses.flow { text-align: justify; text-align-last: center; }
.verses.flow .verse { display: inline; padding: 0; border: 0; background: none; }
.verses.flow .vn, .verses.flow .vx, .verses.flow .vt, .verses.flow .vtaf { display: none; }
.verses.flow .vb, .verses.flow .va { display: inline; }
.verses.flow .va { line-height: 2.5; }
.verses.flow .ve { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .2em; margin: 0 .15em; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--warm) 60%, transparent); color: var(--warm); font: 600 .5em/1 var(--ui); vertical-align: .25em; }
.verses.flow .ve:hover { background: var(--warm); color: var(--accent-ink); text-decoration: none; }
.verses.flow .verse.hl .va { background: var(--mark); border-radius: 6px; }
.verses.flow .vsep, .verses.flow .vhead, .verses.flow .basmala { display: block; text-align: center; text-align-last: auto; }
.no-tint .w-allah, .no-tint .w-rahman, .no-tint .w-rabb { color: inherit !important; }
.w-allah, .w-rahman { color: var(--q-allah); }
.w-rabb { color: var(--q-rabb); }
.q-alt { font-family: 'Amiri Quran', serif; }

/* ── تعريف السورة والتنقل ── */
.about-sura { margin: 46px 0 30px; }
.about-sura h2 { font-size: 1.4rem; }
.as-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.as-text { font-family: var(--text); font-size: 1.08rem; line-height: 2; }
.as-text h3 { font-family: var(--ui); font-size: 1.05rem; margin-top: 1.2em; }
.as-card, .t-facts, .kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.as-card div, .t-facts div, .kv div { background: var(--card); padding: 12px 16px; }
.as-card dt, .t-facts dt, .kv dt { font-size: .76rem; color: var(--muted); }
.as-card dd, .t-facts dd, .kv dd { margin: 0; font-weight: 500; }
.as-card dd small, .t-facts dd small { color: var(--muted); font-weight: 400; }
.ticks { padding: 0; list-style: none; }
.ticks li { position: relative; padding-inline-start: 22px; margin-bottom: 4px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .9em; width: 9px; height: 9px; border-radius: 3px; background: var(--warm); transform: rotate(45deg); }
@media (max-width: 800px) { .as-grid { grid-template-columns: 1fr; } }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0; }
.pn a { display: flex; flex-direction: column; padding: 18px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s; }
.pn a:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.pn small { color: var(--muted); font-size: .8rem; }
.pn b { font-size: 1.15rem; font-family: var(--text); }
.pn span { font-size: .85rem; color: var(--muted); }
.pn-next { text-align: left; align-items: flex-end; }
.pn-mini { margin: 0; min-width: 300px; }
.pn-mini a { padding: 10px 16px; }

/* ── صفحة الآية ── */
.aya-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 34px; align-items: start; padding-top: 28px; }
.tablet { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.t-main { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px 20px; box-shadow: var(--shadow); position: relative; }
.t-main::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 18px; pointer-events: none; }
.t-ar { margin: 0; font-family: var(--qfont); font-size: calc(2rem * var(--qz)); line-height: 2.3; text-align: center; }
.t-ar .ve, .slab .ve { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 50%; border: 1.5px solid var(--warm); color: var(--warm); font: 600 .48em/1 var(--ui); vertical-align: .3em; margin: 0 .2em; }
.t-main figcaption { text-align: center; font-size: .88rem; margin-top: 10px; position: relative; }
.t-side { display: block; font-family: var(--qfont); font-size: 1.15rem; line-height: 2; color: var(--muted); padding: 10px 18px; border-radius: 16px; border: 1px dashed var(--line-2); max-height: 6.2em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.t-side small { display: block; font-family: var(--ui); font-size: .72rem; color: var(--warm); line-height: 1.4; }
.t-side:hover { text-decoration: none; color: var(--ink-2); border-color: var(--accent); }
.t-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.t-acts .pill { height: 36px; font-size: .85rem; padding: 0 12px; }
.t-facts { grid-template-columns: repeat(3, 1fr); }
.t-facts div { padding: 9px 12px; }
.aya-main > * + * { margin-top: 24px; }
@media (max-width: 960px) { .aya-grid { grid-template-columns: 1fr; } .tablet { position: static; } }
.note-link { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--warm-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warm) 25%, transparent); }
.note-link:hover { text-decoration: none; border-color: var(--warm); }
.note-link span { display: flex; flex-direction: column; }
.note-link small { color: var(--warm); font-weight: 500; }
.note-link b { font-family: var(--text); font-weight: 600; }
.phr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.phr-row a { font-family: var(--text); font-size: 1rem; padding: 4px 12px; border-radius: 10px; background: var(--accent-soft); }
.words h2, .tafasir h2 { font-size: 1.25rem; }
.words h2 small { color: var(--muted); font-weight: 400; font-size: .7em; }
.w-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; direction: rtl; }
.w-list li { display: flex; flex-direction: column; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px 4px; min-width: 52px; }
.w-list li.has-m { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.w-list a { font-family: var(--qfont); font-size: 1.45rem; color: var(--ink); line-height: 1.9; }
.w-list a:hover { color: var(--accent); text-decoration: none; }
.w-list small { font-size: .72rem; color: var(--muted); max-width: 150px; text-align: center; line-height: 1.4; padding-bottom: 4px; }
.w-hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.jump a { font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin-bottom: 14px; scroll-margin-top: 90px; }
.sheet h3 { font-size: 1.02rem; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.sheet h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--warm); transform: rotate(45deg); }
.sheet-body { font-family: var(--text); font-size: 1.1rem; line-height: 2.05; }
.sheet-body.clamp { max-height: 30em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.unclamp { margin-top: 10px; }
.tx-q, .tx-q2, .qin { font-family: var(--qfont); color: var(--accent); font-size: 1.08em; }
.tx-h { color: var(--warm); }
.tx-say { font-weight: 600; }
.tx-ref { font-size: .8em; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); white-space: nowrap; }
.tx-fn a { font-size: .75em; }
.tx-notes { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.plain-text { border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; background: var(--card); }
.plain-text summary { cursor: pointer; font-weight: 500; font-size: .92rem; }
.plain-text p { font-family: var(--text); font-size: 1.15rem; margin: 10px 0 0; }
.topic { font-size: .95rem; }
.vstrip { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 40px; font-size: .85rem; color: var(--muted); }
.vstrip > span { flex: none; padding-top: 4px; }
.vstrip div { display: flex; flex-wrap: wrap; gap: 4px; }
.vstrip a, .vstrip b { min-width: 32px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: .8rem; padding: 0 4px; }
.vstrip a:hover { text-decoration: none; border-color: var(--accent); }
.vstrip b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ── التفسير المحرَّر ── */
.exeg { border-radius: 22px; background: linear-gradient(160deg, var(--accent-soft), var(--card) 45%); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); padding: 24px 26px; }
.exeg-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.exeg-h h2, .exeg-h h3 { margin: 0; font-size: 1.3rem; color: var(--accent); }
.exeg-h span { font-size: .82rem; color: var(--muted); }
.exeg h3 { font-size: .95rem; color: var(--warm); margin: 18px 0 6px; }
.exeg-lead { font-family: var(--text); font-size: 1.15rem; line-height: 2.05; }
.exeg-lead h3 { margin-top: 0; }
.exeg-part { font-family: var(--text); font-size: 1.05rem; line-height: 1.95; }
.glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.glossary div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.glossary dt { font-family: var(--qfont); font-size: 1.25rem; color: var(--accent); }
.glossary dd { margin: 0; font-size: .98rem; }
.views, .lessons { padding-inline-start: 1.2em; margin: 0; }
.views li, .lessons li { margin-bottom: 6px; }
.cite { font: 600 .7rem var(--ui); vertical-align: super; padding: 0 5px; border-radius: 5px; background: var(--accent-soft); margin-inline-start: 3px; }
.exeg-src { margin-top: 14px; font-size: .9rem; }
.exeg-src summary { cursor: pointer; color: var(--muted); }

/* ── المقاطع والعبارات ── */
.slab { margin: 28px 0; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 30px 32px 22px; box-shadow: var(--shadow); text-align: center; }
.slab blockquote { margin: 0; font-family: var(--qfont); font-size: calc(1.95rem * var(--qz)); line-height: 2.35; }
.slab mark { background: var(--mark); color: inherit; border-radius: 8px; padding: 0 .15em; }
.slab figcaption { font-size: .9rem; margin-top: 8px; }
.slab .row-acts { justify-content: center; }
.psg { margin: 26px 0; }
.psg h2 a { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.psg h2 a:hover { text-decoration: none; }
.psg h2 .vn { position: static; flex: none; }
.psg h2 [lang] { font-family: var(--qfont); font-weight: 400; font-size: 1.55rem; line-height: 2.1; }
.answer { background: var(--warm-soft); border-radius: var(--r); padding: 18px 22px; margin-top: 26px; font-family: var(--text); font-size: 1.1rem; line-height: 2; }
.answer p { margin: 0 0 .4em; }
.answer b { font-family: var(--ui); color: var(--warm); }
.phr-sura { margin: 28px 0; }
.phr-sura h2 { font-size: 1.1rem; }

/* ── المصحف ── */
.folio-wrap { display: grid; grid-template-columns: 56px 1fr 56px; gap: 16px; align-items: center; padding: 28px 0 10px; }
.folio { background: var(--card); border-radius: 8px 24px 24px 8px; padding: 26px 34px 18px; box-shadow: var(--shadow), inset -14px 0 30px -24px rgb(0 0 0 / .4); border: 1px solid var(--line); max-width: 760px; width: 100%; margin-inline: auto; position: relative; }
.folio::after { content: ""; position: absolute; inset: 10px; border: 2px solid color-mix(in srgb, var(--warm) 30%, transparent); border-radius: 4px 18px 18px 4px; pointer-events: none; }
.folio-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.folio-head h1 { font-size: .95rem; margin: 0; color: var(--warm); }
.folio .verses.flow .va { font-size: calc(1.6rem * var(--qz)); }
.folio .vhead { margin: 12px 0 4px; }
.folio .vhead a { padding: 8px 26px; box-shadow: none; }
.folio .vhead b { font-size: 1.2rem; }
.folio .basmala { font-size: calc(1.5rem * var(--qz)); margin: 4px 0 8px; }
.folio-foot { text-align: center; margin-top: 10px; color: var(--muted); font-weight: 600; }
.folio-go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; color: var(--ink); }
.folio-go:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.folio-go.pv svg { transform: scaleX(-1); }
.folio-go.off { visibility: hidden; }
.folio-jump { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 10px 0 40px; font-size: .92rem; }
.folio-jump input { width: 90px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); text-align: center; margin-inline-start: 6px; }
@media (max-width: 700px) { .folio-wrap { grid-template-columns: 1fr; } .folio-go { display: none; } .folio { padding: 18px 18px 12px; } }

/* ── الأجزاء ── */
.juz-list { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.juz-list a { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.juz-list a:hover { text-decoration: none; border-color: var(--accent); }
.jl-n { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 1.25rem; font-weight: 700; }
.jl-b { display: flex; flex-direction: column; min-width: 0; }
.jl-b [lang] { font-family: var(--qfont); color: var(--muted); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-m { font-size: .82rem; color: var(--ink-2); text-align: left; display: flex; flex-direction: column; }
.jl-m small { color: var(--muted); }
@media (max-width: 800px) { .juz-list { grid-template-columns: 1fr; } }
.juz-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; }
.juz-row a { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.juz-row a:hover { text-decoration: none; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 700px) { .juz-row { grid-template-columns: repeat(6, 1fr); } }

/* ── البحث ── */
.hits { list-style: none; padding: 0; margin: 22px 0; }
.hits a { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.hits a:hover { text-decoration: none; background: var(--accent-soft); border-radius: 12px; }
.hit-ref { font-size: .88rem; color: var(--muted); }
.hit-ref b { color: var(--accent); }
.hits p { margin: 0; font-family: var(--text); font-size: 1.15rem; line-height: 2; }
.hits mark, .w-hl { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 2px; }
.hit-suras { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0 0; font-size: .88rem; }
.hit-suras span { color: var(--muted); }
.hit-suras a { padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.tryit { margin: 30px 0; }
.tryit h2 { font-size: 1rem; color: var(--muted); }
.tryit p { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .hits a { grid-template-columns: 1fr; gap: 2px; } }

/* ── الترجمات ── */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 40px; }
.lang-tile { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.lang-tile:hover { text-decoration: none; border-color: var(--accent); }
.lt-code { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); font: 700 .85rem var(--ui); color: var(--warm); letter-spacing: .05em; }
.lang-tile small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi { margin: 10px 0 20px; }
.bi-row { display: grid; grid-template-columns: 48px 1.1fr 1fr; gap: 20px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.bi-row .vn { position: static; }
.bi-ar { margin: 0; font-family: var(--qfont); font-size: calc(1.6rem * var(--qz)); line-height: 2.15; }
.bi-tr { margin: 0; color: var(--ink-2); line-height: 1.85; font-size: 1rem; padding-top: 6px; }
@media (max-width: 760px) { .bi-row { grid-template-columns: 40px 1fr; } .bi-tr { grid-column: 2; padding-top: 0; } }

/* ── التلاوات ── */
.riw { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 12px; scrollbar-width: thin; }
.riw a { flex: none; display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); line-height: 1.4; }
.riw a:hover { text-decoration: none; border-color: var(--accent); }
.riw a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.riw small { opacity: .7; font-size: .76rem; }
.rb { margin-top: 10px; }
.rb.is-loading .rb-out { opacity: .5; }
.rb-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.abc { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 16px; }
.abc a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--ink-2); font-size: .9rem; padding: 0 6px; }
.abc a:hover { background: var(--paper-2); text-decoration: none; }
.abc a[aria-current] { background: var(--ink); color: var(--paper); }
.rc-grid, .rc-row { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rc-row { grid-auto-flow: column; grid-auto-columns: 170px; grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; }
.rc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 12px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--ink); height: 100%; }
.rc:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.rc b { font-weight: 600; font-size: .98rem; line-height: 1.45; margin-top: 8px; }
.rc small { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.rc em { font-style: normal; font-size: .7rem; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.rc-star { position: absolute; top: 10px; inset-inline-end: 12px; font-style: normal; color: var(--warm); }
.ini { --hue: 230; width: 58px; height: 58px; border-radius: 18px; display: inline-grid; place-items: center; font: 700 1.5rem var(--text); color: hsl(var(--hue) 45% 30%); background: linear-gradient(135deg, hsl(var(--hue) 60% 92%), hsl(calc(var(--hue) + 40) 55% 84%)); flex: none; transform: rotate(-4deg); }
:root[data-mode="dark"] .ini { color: hsl(var(--hue) 70% 85%); background: linear-gradient(135deg, hsl(var(--hue) 35% 26%), hsl(calc(var(--hue) + 40) 35% 20%)); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .ini { color: hsl(var(--hue) 70% 85%); background: linear-gradient(135deg, hsl(var(--hue) 35% 26%), hsl(calc(var(--hue) + 40) 35% 20%)); } }
.ini.sm { width: 38px; height: 38px; font-size: 1rem; border-radius: 12px; }
.ini.xl { width: 96px; height: 96px; font-size: 2.6rem; border-radius: 28px; }
.pages { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 20px 0; }
.pages a, .pages b, .pages span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; padding: 0 10px; }
.pages a { background: var(--card); border: 1px solid var(--line); }
.pages b { background: var(--accent); color: var(--accent-ink); }
.tl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.tracks { list-style: none; padding: 0; margin: 0 0 24px; }
.trk { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.trk.is-cur { background: var(--accent-soft); border-radius: 14px; }
.pbtn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.pbtn .ia, .trk.is-playing .pbtn .ip, .deck.is-playing .ip { display: none; }
.trk.is-playing .pbtn .ia, .deck.is-playing .ia { display: inline; }
.deck .ia { display: none; }
.trk-n { width: 30px; text-align: center; color: var(--muted); font-size: .85rem; }
.trk-t { flex: 1; display: flex; flex-direction: column; color: var(--ink); font-weight: 500; min-width: 0; }
.trk-t small { color: var(--muted); font-weight: 400; }
.trk-d { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.dl { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); flex: none; font-size: .7rem; }
.dl:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.tracks.big { margin-top: 26px; }
.tracks.big .trk { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.tracks.big .pbtn { width: 60px; height: 60px; }
.tracks.big .trk-t b { font-size: 1.2rem; }
.kv { margin: 22px 0; }
.faq { margin: 34px 0; }
.faq h2 { font-size: 1.2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }

/* ── الرئيسة ── */
.welcome { padding: 44px 0 10px; background: radial-gradient(ellipse 60% 70% at 85% 0%, var(--accent-soft), transparent), radial-gradient(ellipse 50% 60% at 0% 100%, var(--warm-soft), transparent); }
.welcome-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.w-text h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 6px 0 14px; }
.w-text h1 em { font-style: normal; font-family: var(--text); color: var(--accent); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 540px; }
.starts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; font-size: .92rem; }
.starts span { color: var(--muted); margin-inline-end: 4px; }
.starts a { padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.starts a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.daycard { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px 30px 22px; box-shadow: var(--shadow); position: relative; }
.daycard::before { content: ""; position: absolute; inset-inline-end: 24px; top: -10px; width: 52px; height: 20px; border-radius: 0 0 10px 10px; background: var(--warm); }
.dc-k { font-size: .82rem; font-weight: 600; color: var(--warm); }
.daycard blockquote { margin: 8px 0; font-family: var(--qfont); font-size: 1.75rem; line-height: 2.2; }
.daycard figcaption { font-size: .9rem; }
.dc-ex { font-family: var(--text); color: var(--ink-2); line-height: 1.95; margin: 12px 0 6px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.counts { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.counts li { flex: 1; min-width: 110px; padding: 16px 10px; display: flex; flex-direction: column; color: var(--muted); font-size: .85rem; border-inline-start: 1px solid var(--line); }
.counts li:first-child { border-inline-start: 0; }
.counts b { font-size: 1.7rem; color: var(--ink); font-weight: 700; line-height: 1.2; }
@media (max-width: 860px) { .welcome-grid { grid-template-columns: 1fr; } .welcome { padding-top: 26px; } .daycard blockquote { font-size: 1.45rem; } .counts li { min-width: 33%; border-bottom: 1px solid var(--line); } }

/* ── التذييل ── */
.colophon { margin-top: 70px; background: var(--paper-2); border-top: 1px solid var(--line); padding: 44px 0 18px; font-size: .92rem; }
.colophon-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.co-about p { color: var(--ink-2); margin-top: 14px; font-family: var(--text); line-height: 1.95; }
.co-col { display: flex; flex-direction: column; gap: 6px; }
.co-col h2 { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.co-col a { color: var(--ink-2); }
.co-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 14px; color: var(--muted); font-size: .84rem; }
.co-verse { font-family: var(--text); }
@media (max-width: 860px) { .colophon-grid { grid-template-columns: 1fr 1fr; } .co-about { grid-column: 1 / -1; } }

/* ── المشغّل ── */
.deck { position: fixed; z-index: 50; inset-inline: 12px; bottom: calc(var(--dock-h) + 12px + env(safe-area-inset-bottom)); max-width: 980px; margin-inline: auto; background: var(--ink); color: var(--paper); border-radius: 20px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .6); }
.deck-in { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(160px, 1.2fr) auto; gap: 14px; align-items: center; padding: 10px 14px; }
.deck button { border: 0; background: none; color: inherit; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.deck button:hover { background: rgb(255 255 255 / .1); }
.deck [data-p="toggle"] { width: 46px; height: 46px; background: var(--warm); color: #fff; }
.deck-ctl, .deck-x { display: flex; align-items: center; gap: 2px; }
.deck-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.deck-t { color: inherit; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-s { font-size: .8rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-bar { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-variant-numeric: tabular-nums; opacity: .9; }
.deck-bar input { flex: 1; accent-color: var(--warm); }
.deck [data-p="loop"].on { color: var(--warm); }
.deck [data-p="rate"] b { font: 600 .8rem var(--ui); }
body.has-deck { padding-bottom: calc(var(--dock-h) + 96px); }
@media (max-width: 760px) { .deck-in { grid-template-columns: auto 1fr auto; } .deck-bar { grid-column: 1 / -1; order: 5; } .deck-x [data-p="rate"], .deck-ctl [data-p="prev"], .deck-ctl [data-p="next"] { display: none; } }

/* ── متفرقات ── */
.void { text-align: center; padding: 70px 0 40px; }
.void h1 { font-size: 1.6rem; margin-top: 18px; }
.void p { color: var(--ink-2); }
.void .finder { margin: 26px auto 0; max-width: 520px; }
.notice { border-radius: 14px; padding: 14px 18px; margin: 20px 0; }
.notice.ok { background: var(--accent-soft); }
.notice.bad { background: var(--warm-soft); color: var(--warm); }
.notice p { margin: 0; }
.contact { padding: 28px 0; }
.contact-form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.field input, .field textarea { border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 10px 14px; font-weight: 400; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field small { color: var(--muted); font-weight: 400; }
.hp { position: absolute; inset-inline-start: -9999px; }
.contact-privacy, .contact-mail { font-size: .85rem; color: var(--muted); }
.contact-form .pill { justify-self: start; height: 46px; padding: 0 26px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.toast { position: fixed; z-index: 60; inset-inline-start: 50%; transform: translateX(50%); bottom: calc(var(--dock-h) + 24px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); }
@media print { .topbar, .dock, .deck, .colophon, .rbar, .vx, .cover-acts, .vmap { display: none !important; } body { background: #fff; } }

/* ── الإصدار الثاني: وضوح الخط، والتلاوة آيةً آية، والبحث، والمتشابهات ── */
.va { font-size: calc(2.05rem * var(--qz)); line-height: 2.3; color: var(--ink); }
.t-ar, .slab blockquote { font-size: calc(2.15rem * var(--qz)); }
.bi-ar { font-size: calc(1.75rem * var(--qz)); }
.sheet-body, .vtaf-body, .exeg-lead, .exeg-part, .as-text, .prose-box, .answer { font-family: var(--text); font-weight: 500; color: var(--ink); }
.sheet-body { font-size: 1.2rem; line-height: 2.15; }
.sheet-body p { margin: 0 0 .85em; }
.vtaf-body { font-size: 1.12rem; line-height: 2.1; }
.exeg-lead { font-size: 1.22rem; line-height: 2.15; }
.exeg-part { font-size: 1.12rem; }
.tx-q, .tx-q2, .qin { font-family: var(--qfont); font-weight: 400; color: var(--accent); font-size: 1.12em; }
.tx-h { color: var(--warm); }
.tx-say { font-weight: 700; color: var(--ink); }
.tx-ref { font-family: var(--ui); font-size: .72em; font-weight: 500; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); white-space: nowrap; }
.tx-fn a { font-size: .72em; font-family: var(--ui); }
.tx-notes { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; font-weight: 400; }
.rbar-au { display: inline-flex; gap: 6px; align-items: center; }
.rbar-au .pill { height: 36px; }
.rbar-au .pill.on { background: var(--warm); border-color: var(--warm); }
.arec select { max-width: 150px; }
.t-acts .arec { height: 36px; }
.verse.vplay { background: linear-gradient(90deg, transparent, var(--warm-soft) 25%, var(--warm-soft) 75%, transparent); border-radius: 12px; }
.verse.vplay .vn { border-color: var(--warm); color: var(--warm); }
.verses.flow .verse.vplay .va { background: var(--warm-soft); border-radius: 6px; }
.vx [data-ap].on { color: var(--warm); }
[data-ap].on.pill { background: var(--warm); border-color: var(--warm); }
.similar { margin: 34px 0 10px; }
.similar h2 { font-size: 1.3rem; margin-bottom: 4px; }
.sim-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sim-list a { display: block; height: 100%; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.sim-list a:hover { text-decoration: none; border-color: var(--accent); }
.sim-ref { font-size: .82rem; color: var(--muted); }
.sim-ref b { color: var(--accent); }
.sim-list p { margin: 4px 0 0; font-family: var(--text); font-weight: 500; font-size: 1.12rem; line-height: 2; }
.sim-list mark { background: var(--mark); color: inherit; border-radius: 5px; padding: 0 3px; }
@media (max-width: 760px) { .sim-list { grid-template-columns: 1fr; } }
.seek { margin: 26px 0 10px; display: grid; gap: 14px; }
.seek-in { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seek-in legend { float: right; font-size: .9rem; color: var(--muted); margin-inline-end: 6px; padding: 0; }
.seek-in label { cursor: pointer; }
.seek-in input { position: absolute; opacity: 0; pointer-events: none; }
.seek-in span { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: .92rem; }
.seek-in input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seek-in input:focus-visible + span { outline: 2.5px solid var(--warm); outline-offset: 2px; }
.seek-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; padding: 14px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.seek-opts label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.seek-opts select { height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); padding: 0 10px; font-size: .92rem; color: var(--ink); }
.facets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0 0; font-size: .88rem; }
.facets span { color: var(--muted); }
.facets a { padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.facets a.off { background: var(--accent-soft); }
.hits p { font-weight: 500; }
.hit-x a { grid-template-columns: 120px 1fr; }
.hit-aya { font-family: var(--qfont) !important; font-weight: 400 !important; font-size: 1.2rem !important; color: var(--ink-2); }
.hit-src { font-size: 1.05rem !important; margin-top: 4px !important; }
.hit-src b { font-family: var(--ui); font-size: .85rem; color: var(--accent); }
.void.small { padding: 30px 0; }
.tracks.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tracks.grid .trk { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 12px 14px; gap: 12px; transition: border-color .15s; }
.tracks.grid .trk:hover { border-color: var(--accent); }
.tracks.grid .trk.is-cur { background: var(--accent-soft); border-color: var(--accent); }
.tracks.grid .trk-n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); color: var(--accent); font-weight: 700; font-size: .95rem; flex: none; }
.tracks.grid .trk-t { font-family: var(--text); font-size: 1.12rem; font-weight: 600; line-height: 1.5; }
.tracks.grid .trk-t small { font-family: var(--ui); font-size: .76rem; }
.tracks.grid .pbtn { width: 38px; height: 38px; }
.tracks.grid .dl { width: 34px; height: 34px; border: 0; }
.resume { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 24px 0 0; padding: 12px 18px; border-radius: 16px; background: var(--accent-soft); font-size: .95rem; }
.resume span { color: var(--muted); }
.resume a { font-weight: 600; }
.resume a::after { content: " ←"; }
.as-card, .t-facts, .kv { background: var(--card); gap: 0; }
.as-card div, .t-facts div, .kv div { box-shadow: inset -1px -1px 0 var(--line); }
@media (max-width: 700px) { .t-side { display: none; } .t-facts { grid-template-columns: repeat(2, 1fr); } .rbar-au .pill span { display: none; } }

/* ── الإصدار الثالث: هوية زخرفية، وتفاصيل أنعم ── */
:root {
  --star: polygon(50% 0, 64.7% 14.6%, 85.4% 14.6%, 85.4% 35.3%, 100% 50%, 85.4% 64.7%, 85.4% 85.4%, 64.7% 85.4%, 50% 100%, 35.3% 85.4%, 14.6% 85.4%, 14.6% 64.7%, 0 50%, 14.6% 35.3%, 14.6% 14.6%, 35.3% 14.6%);
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%2333378a' stroke-opacity='.075' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  --lift: 0 2px 4px rgb(29 33 48 / .04), 0 14px 30px -16px rgb(29 33 48 / .28);
}
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23a5abff' stroke-opacity='.07' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); --lift: 0 2px 4px rgb(0 0 0 / .3), 0 16px 34px -16px rgb(0 0 0 / .7); } }
:root[data-mode="dark"] { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23a5abff' stroke-opacity='.07' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); --lift: 0 2px 4px rgb(0 0 0 / .3), 0 16px 34px -16px rgb(0 0 0 / .7); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
* { scrollbar-color: var(--line-2) transparent; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

/* الزخرفة في رؤوس الصفحات والتذييل */
.mast, .cover, .welcome, .colophon { position: relative; isolation: isolate; }
.mast::before, .cover::before, .welcome::before, .colophon::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat); pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000, rgb(0 0 0 / .35) 45%, transparent 75%); mask-image: linear-gradient(to left, #000, rgb(0 0 0 / .35) 45%, transparent 75%); }
.welcome::before { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 100% 0, #000, transparent 70%); }
.colophon::before { -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); }
.colophon { border-top: 0; }
.colophon::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--warm), var(--accent) 50%, var(--warm)); opacity: .85; }
.topbar { transition: box-shadow .2s; }
.is-scrolled .topbar { box-shadow: 0 8px 24px -18px rgb(0 0 0 / .45); }
.logo .mark, .logo svg:first-child { transition: transform .3s; }
.logo:hover svg:first-child { transform: rotate(-8deg) scale(1.05); }

/* رقم الآية نجمةً ثمانية */
.vn { border: 0; border-radius: 0; clip-path: var(--star); background: var(--accent-soft); color: var(--accent); width: 46px; height: 46px; font-size: .92rem; }
.vn:hover { transform: scale(1.08); background: var(--accent); color: var(--accent-ink); }
.vn:focus-visible { outline: 0; background: var(--warm); color: #fff; }
.verse.vplay .vn, .verse:target .vn, .verse.hl .vn { background: var(--warm); color: #fff; }
.verses.flow .ve, .t-ar .ve, .slab .ve { border: 0; border-radius: 0; clip-path: var(--star); background: var(--warm-soft); color: var(--warm); min-width: 1.75em; height: 1.75em; }
.verses.flow .ve:hover { background: var(--warm); color: #fff; }
.tracks.grid .trk-n { border-radius: 0; clip-path: var(--star); background: var(--accent-soft); width: 44px; height: 44px; font-size: .88rem; }
.verse { transition: background-color .25s; }
.verse + .verse { border-top: 0; }
.verse { border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }

/* عناوين الأقسام */
.block-h h2, .block > h2, .similar h2, .tafasir h2, .about-sura h2 { display: flex; align-items: center; gap: 10px; }
.block-h h2::before, .block > h2::before, .similar h2::before, .tafasir h2::before, .about-sura h2::before { content: ""; flex: none; width: 12px; height: 12px; clip-path: var(--star); background: var(--warm); }

/* جداول البيانات: بلا خانات فارغة */
.t-facts, .as-card, .kv { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); }
.t-facts div, .as-card div, .kv div { box-shadow: none; flex: 1 1 30%; min-width: 110px; }
.as-card div, .kv div { flex-basis: 40%; min-width: 140px; }
.t-facts dd, .as-card dd, .kv dd { font-size: 1.02rem; }
.spine { gap: 1px; background: var(--line); overflow: hidden; }
.spine li { border: 0; background: var(--card); flex: 1 1 auto; }

/* خريطة الآيات بأرقامها */
.vmap { gap: 3px; margin-top: 20px; padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); max-height: 132px; overflow-y: auto; }
.vmap a { width: 30px; height: 26px; border-radius: 7px; color: color-mix(in srgb, var(--accent) 75%, var(--ink)); font-size: .7rem; font-weight: 500; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.vmap a.l2 { background: color-mix(in srgb, var(--accent) 15%, var(--card)); }
.vmap a.l3 { background: color-mix(in srgb, var(--accent) 26%, var(--card)); }
.vmap a:hover, .vmap a.on { transform: none; }

/* بطاقات: حركة لطيفة موحّدة */
.rc, .lang-tile, .juz-list a, .sim-list a, .tracks.grid .trk, .pn a, .riw a, .sheet, .feat a, .tag, .juz-row a { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s; }
.rc:hover, .lang-tile:hover, .juz-list a:hover, .sim-list a:hover, .tracks.grid .trk:hover, .pn a:hover, .feat a:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.tag:hover, .juz-row a:hover { transform: translateY(-1px); }
.pill { transition: border-color .15s, color .15s, background-color .15s, filter .15s, transform .15s; }
.pill:active, .pbtn:active, .folio-go:active { transform: scale(.96); }
.pill.solid { box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.rc-row { -webkit-mask-image: linear-gradient(to left, #000 86%, transparent); mask-image: linear-gradient(to left, #000 86%, transparent); padding-inline-end: 40px; }
.rc .ini { transition: transform .25s; }
.rc:hover .ini { transform: rotate(0) scale(1.05); }

/* الرئيسة */
.counts { border-top: 0; gap: 10px; margin-top: 34px; }
.counts li { border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--card) 82%, transparent); padding: 14px 18px; min-width: 120px; backdrop-filter: blur(4px); }
.counts li:first-child { border-inline-start: 1px solid var(--line); }
.counts b { font-size: 1.75rem; color: var(--accent); }
@media (max-width: 860px) { .counts li { min-width: calc(33.333% - 7px); border-bottom: 1px solid var(--line); padding: 10px 12px; } .counts b { font-size: 1.4rem; } }
.daycard { overflow: hidden; }
.daycard::after { content: ""; position: absolute; inset-inline-end: -46px; bottom: -46px; width: 120px; height: 120px; background: var(--accent-soft); clip-path: var(--star); opacity: .55; z-index: 0; pointer-events: none; }
.daycard > * { position: relative; z-index: 1; }
.w-text h1 em { position: relative; }
.w-text h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .22em; background: color-mix(in srgb, var(--warm) 30%, transparent); border-radius: 4px; z-index: -1; }

/* بطاقات الأقسام */
.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.feat a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 20px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--ink); position: relative; overflow: hidden; }
.feat a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.feat-i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.feat:nth-child(3n+2) .feat-i { background: var(--warm-soft); color: var(--warm); }
.feat b { font-size: 1.06rem; font-weight: 600; }
.feat a > span:not(.feat-i), .feat div > span { color: var(--ink-2); font-size: .92rem; line-height: 1.75; }
.feat em { font-style: normal; margin-top: auto; padding-top: 6px; font-size: .86rem; font-weight: 500; color: var(--accent); }
.feat em::after { content: " ←"; transition: margin .15s; }
.feat a:hover em::after { margin-inline-start: 4px; }
.feats.mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feats.mini .feat a { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.feats.mini .feat-i { margin: 0; flex: none; }
.feats.mini .feat div > span { font-size: .82rem; color: var(--muted); display: block; line-height: 1.5; }
.feats.mini .feat div { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 960px) { .feats.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .feats.mini .feat a { flex-direction: column; align-items: flex-start; gap: 8px; } .feats.mini .feat-i { width: 40px; height: 40px; } }

/* صفحة «عن الموقع» */
.ab-hero { padding: 34px 0 40px; }
.ab-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.ab-hero .mast-sub { font-size: 1.15rem; max-width: 640px; line-height: 1.9; }
.ab-verse { margin: 26px 0 0; padding: 16px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: inline-flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.ab-verse q { font-family: var(--qfont); font-size: 1.55rem; line-height: 2; quotes: "﴿" "﴾"; color: var(--ink); }
.ab-verse small { color: var(--muted); }
.ab-nums { list-style: none; padding: 0; margin: -26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 2; }
.ab-nums li { background: var(--card); padding: 18px 16px; text-align: center; display: flex; flex-direction: column; color: var(--muted); font-size: .88rem; }
.ab-nums b { font-size: 2rem; line-height: 1.25; color: var(--accent); font-weight: 700; }
.ab-sec { margin: 56px 0; }
.ab-sec > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.ab-sec > h2::before { content: ""; width: 14px; height: 14px; clip-path: var(--star); background: var(--warm); flex: none; }
.ab-sec > p.dim { margin-top: -4px; }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ab-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.ab-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ab-card h3 .i { color: var(--accent); }
.ab-card p, .ab-card li { color: var(--ink-2); font-size: .97rem; line-height: 1.85; }
.ab-card p:last-child { margin-bottom: 0; }
.ab-card ul { margin: 0; padding-inline-start: 1.1em; }
.ab-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-list li { padding: 6px 14px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); font-family: var(--text); font-weight: 500; font-size: 1rem; }
.ab-tips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; counter-reset: tip; }
.ab-tips li { counter-increment: tip; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; line-height: 1.8; }
.ab-tips li::before { content: counter(tip, arabic-indic); width: 38px; height: 38px; display: grid; place-items: center; clip-path: var(--star); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ab-tips b { color: var(--ink); }
.ab-tips kbd { font: 600 .8rem var(--ui); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--paper); }
.ab-custom { font-family: var(--text); font-size: 1.1rem; line-height: 2; }
.ab-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px 30px; border-radius: 24px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--warm))); color: var(--accent-ink); position: relative; overflow: hidden; isolation: isolate; }
.ab-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); mask-image: linear-gradient(to right, #000, transparent 70%); }
.ab-cta h2 { margin: 0 0 4px; font-size: 1.35rem; }
.ab-cta p { margin: 0; opacity: .9; }
.ab-cta .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ab-cta .pill { background: var(--accent-ink); color: var(--accent); border-color: transparent; }
.ab-cta .pill.ghost { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 50%, transparent); }
@media (max-width: 760px) { .ab-verse q { font-size: 1.25rem; } .ab-verse { padding: 12px 16px; } .ab-two { grid-template-columns: 1fr; } .ab-cta { grid-template-columns: 1fr; padding: 22px; } .ab-nums { margin-top: -18px; grid-template-columns: repeat(3, 1fr); } .ab-nums b { font-size: 1.5rem; } .ab-nums li { padding: 12px 6px; } }

/* شريط التقدّم وزر الصعود */
.readbar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--warm), var(--accent)); transform-origin: right; transform: scaleX(0); pointer-events: none; }
.totop { position: fixed; z-index: 44; inset-inline-end: 18px; bottom: calc(var(--dock-h) + 18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: var(--lift); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { color: var(--accent); border-color: var(--accent); }
.totop svg { transform: rotate(90deg); }
body.has-deck .totop { bottom: calc(var(--dock-h) + 100px + env(safe-area-inset-bottom)); }

/* الجوال */
@media (max-width: 700px) {
  .cover-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .cover-acts > :first-child { grid-column: 1 / -1; justify-content: center; }
  .cover-acts .pill, .cover-acts .pick { justify-content: center; min-width: 0; font-size: .86rem; padding-inline: 10px; }
  .cover-acts .pick select { max-width: 100%; min-width: 0; }
  .cover-title { margin-bottom: 10px; }
  .spine li { padding: 6px 10px; }
  .mast { padding: 18px 0 22px; }
  .vn { width: 40px; height: 40px; font-size: .82rem; }
  .verse { grid-template-columns: 42px 1fr; gap: 10px; }
  .block { margin: 36px 0; }
  .t-main { padding: 24px 18px 16px; }
}
@media print { .readbar, .totop { display: none !important; } .mast::before, .cover::before, .welcome::before, .colophon::before { display: none; } }

/* تصفّح القرّاء بالحرف الأول */
.abc-box { margin: 4px 0 18px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.abc-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.abc-h .i { color: var(--accent); }
.abc-h span { display: flex; flex-direction: column; line-height: 1.4; }
.abc-h small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.abc-box .abc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.abc-box .abc a { min-width: 46px; height: 52px; padding: 0 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); line-height: 1.2; }
.abc-box .abc a b { font-family: var(--text); font-size: 1.2rem; font-weight: 700; }
.abc-box .abc a small { font-size: .68rem; color: var(--muted); }
.abc-box .abc a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.abc-box .abc a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.abc-box .abc a[aria-current] small { color: inherit; opacity: .8; }
.abc-box .abc a.abc-all { padding: 0 16px; font-weight: 600; font-size: .9rem; }
@media (max-width: 700px) { .abc-box .abc { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .abc-box .abc a { flex: none; } }

/* رقم الآية في عرض السورة: نجمة ممتلئة بلون أوضح */
.verse .vn, .bi-row .vn, .psg .vn { background: color-mix(in srgb, var(--accent) 26%, var(--card)); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); font-weight: 700; }
.verse .vn:hover, .bi-row .vn:hover, .psg .vn:hover { background: var(--accent); color: var(--accent-ink); }
.verse.vplay .vn, .verse:target .vn, .verse.hl .vn { background: var(--warm); color: #fff; }

/* أرقام الآيات في النص المتصل والمصحف: نجمة ممتلئة أوضح */
.verses.flow .ve, .t-ar .ve, .slab .ve { background: color-mix(in srgb, var(--warm) 30%, var(--card)); color: color-mix(in srgb, var(--warm) 70%, var(--ink)); font-weight: 700; font-size: .64em; min-width: 2.1em; height: 2.1em; vertical-align: .12em; }
.verses.flow .ve:hover { background: var(--warm); color: #fff; }
.verses.flow .verse.vplay .ve, .verses.flow .verse.hl .ve { background: var(--warm); color: #fff; }

/* ═════ EnQuran: الموقع بالإنجليزية من اليسار إلى اليمين ═════ */
:root { --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --text: 'Source Serif 4', Georgia, 'Times New Roman', serif; --ar: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif; }
body { line-height: 1.65; }
:where([lang="ar"]) { font-family: var(--ar); }
.more::after, .resume a::after, .feat em::after { content: " →"; }
.pn-next { text-align: end; }
.jl-m { text-align: end; }
.folio-go.pv svg { transform: none; }
.folio-go.nx svg { transform: scaleX(-1); }
.vx a .i, .note-link > .i + span::after { transform: scaleX(-1); }
.rc-row { -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); }
/* نصوص إنجليزية: سطور أقصر من العربية */
.prose-box, .as-text, .sheet-body, .exeg-lead, .exeg-part, .vtaf-body, .answer, .dc-ex, .co-about p, .note-link b, .ab-card p, .mast-sub, .lede { line-height: 1.7; }
.sheet[lang="ar"] .sheet-body, .vtaf-body [lang="ar"] { line-height: 2; font-family: var(--ar); }
.mast-aya h1 { font-family: var(--ui); line-height: 1.3; }
.mast-aya h1 small { display: block; font-family: var(--text); font-weight: 400; font-style: italic; font-size: .62em; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.mast-aya h1 small[lang="ar"] { font-style: normal; font-family: var(--qfont); font-size: .8em; line-height: 2; }
.cover-title { font-family: var(--ui); font-weight: 700; letter-spacing: -.02em; }
.cover-num { font: 400 clamp(3.2rem, 9vw, 6.4rem)/1.4 var(--qfont); -webkit-text-stroke: 0; color: color-mix(in srgb, var(--accent) 22%, transparent); letter-spacing: 0; white-space: nowrap; }

/* فهرس السور */
.sx-list li a { grid-template-columns: 34px minmax(0, 1.5fr) auto minmax(36px, 1fr) auto; gap: 10px; }
.sx-name { font-family: var(--ui); font-size: 1rem; display: flex; flex-direction: column; line-height: 1.25; }
.sx-name small { font-weight: 400; font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.sx-ar { font-family: var(--qfont); font-size: 1.15rem; color: var(--ink-2); line-height: 1.6; white-space: nowrap; }
.sx-t { display: none; }
@media (max-width: 480px) { .sx-list li a { grid-template-columns: 28px 1fr auto auto; } .sx-bar { display: none; } }

/* الآيات: رقم السورة والآية، ثم العربية والنطق والترجمة */
.verse { grid-template-columns: 58px 1fr; }
.verse .vn { width: 54px; height: 54px; font-size: .74rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vb { min-width: 0; }
.va { text-align: right; }
.vl { margin: 10px 0 0; font-family: var(--ui); font-style: italic; color: var(--muted); font-size: calc(.95rem * (var(--qz) * .4 + .6)); line-height: 1.6; }
.vt { font-family: var(--text); color: var(--ink); font-size: calc(1.12rem * (var(--qz) * .4 + .6)); line-height: 1.7; margin: 8px 0 0; padding-inline-start: 0; border: 0; }
.hide-tl .vl, .hide-tl .t-tl, .hide-tl .slab-tl { display: none; }
.hide-tr .vt { display: none; }
.verses.flow { direction: rtl; }
.verses.flow .vl { display: none; }
.verses.flow + .tr-credit { display: none; }
.folio .verses { direction: rtl; }
.tr-credit { margin-top: 14px; }
.basmala-wrap { text-align: center; margin: 6px 0 22px; }
.basmala-wrap .basmala { margin: 0; }
.basmala-tr { margin: 4px 0 0; font-family: var(--text); font-style: italic; color: var(--muted); }
.verses.flow .basmala-wrap { display: block; }
.vhead small { font-family: var(--ui); }
@media (max-width: 640px) { .verse { grid-template-columns: 46px 1fr; gap: 10px; } .verse .vn { width: 44px; height: 44px; font-size: .62rem; } }

/* صفحة الآية */
.t-tl { margin: 14px 0 0; text-align: center; font-style: italic; color: var(--muted); font-size: 1rem; line-height: 1.6; position: relative; }
.t-tr { margin: 12px 0 0; text-align: center; font-family: var(--text); font-size: 1.22rem; line-height: 1.65; color: var(--ink); position: relative; }
.t-side small { font-family: var(--ui); }
.trs { margin: 28px 0; }
.trs h2, .wbw h2 { font-size: 1.3rem; }
.tr-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
.tr-item h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--warm); margin: 0 0 6px; }
.tr-item p { margin: 0; font-family: var(--text); font-size: 1.1rem; line-height: 1.7; }
.wbw { margin: 28px 0; }
.wbw-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wbw-list li { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; max-width: 180px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.wbw-list b { font-family: var(--qfont); font-weight: 400; font-size: 1.55rem; line-height: 1.7; color: var(--accent); }
.wbw-list b.wbw-n { font-family: var(--ui); font-size: .78rem; color: var(--muted); line-height: 1.2; }
.wbw-list span { font-size: .86rem; color: var(--ink-2); line-height: 1.4; }
.sim-tr { margin: 6px 0 0 !important; font-family: var(--text) !important; font-size: .98rem !important; line-height: 1.6 !important; color: var(--ink-2); }
.slab-tl { margin: 14px 0 0; font-style: italic; color: var(--muted); line-height: 1.7; }
.slab-tr { margin: 12px 0 0; font-family: var(--text); font-size: 1.15rem; line-height: 1.75; }
.slab-tr sup, .slab-tl sup { color: var(--warm); font-family: var(--ui); font-size: .65em; font-weight: 600; }
.psg-tr { font-family: var(--text); font-size: 1.1rem; line-height: 1.7; margin: 4px 0 14px; }
.psg h2 a { display: flex; gap: 12px; align-items: flex-start; }
.psg h2 [lang="ar"] { flex: 1; text-align: right; }
.psg .vn { width: 54px; height: 54px; font-size: .7rem; }
.hits p.hit-src { font-family: var(--text); font-size: 1.02rem; line-height: 1.65; }
.hits p.hit-aya { font-family: var(--qfont); font-size: 1.3rem; line-height: 2; text-align: right; }
.lt-ex { grid-column: 1 / -1; margin-top: 10px; font-family: var(--text); font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.lt-ex i { font-style: normal; font-family: var(--ui); font-size: .72rem; color: var(--warm); }
.tr-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.folio-tr { margin: 26px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px; }
.folio-tr summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.daycard .dc-ex { font-family: var(--text); font-style: italic; }
.w-text h1 em { font-family: var(--text); font-style: italic; }
.kicker a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); }
.tag.q { font-family: var(--text); }
.answer b { font-family: var(--ui); }
.ab-verse small { display: block; margin-top: 8px; line-height: 1.6; }
.rbar-show button { white-space: nowrap; }
@media (max-width: 640px) { .rbar-show { order: 9; } .seg button { padding: 6px 10px; font-size: .8rem; } }
.slab-tl, .slab-tr, .t-tl, .t-tr, .vl, .vt, .psg-tr { direction: ltr; unicode-bidi: isolate; }

/* مقاطع الآيات: الكتابة الإملائية افتراضاً */
.t-uth { display: none; }
.scr-uth .t-uth { display: inline; }
.scr-uth .t-im { display: none; }
.t-im { font-family: var(--text); font-weight: 500; }
.slab-psg blockquote .t-im { font-size: .82em; line-height: 2.1; }
.psg h2 .t-im { font-size: .86em; line-height: 2; }
.scr-sw { margin-inline-end: auto; }

.wbw-r { font-family: var(--text); font-size: .8rem; color: var(--muted); letter-spacing: .15em; }

/* شريط القراءة في الجوال: في مكانه فوق الآيات لا عائماً فوقها، وفي سطر واحد يُمرَّر أفقياً */
@media (max-width: 860px) {
  .rbar { position: static; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 8px; padding: 6px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card); }
  .rbar::-webkit-scrollbar { display: none; }
  .rbar > * { flex: 0 0 auto; }
  .rbar .goto input { width: 74px; }
}

/* ════ تحسين المظهر (الإصدار ٣) ════ */
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
html { scrollbar-color: color-mix(in srgb, var(--accent) 35%, var(--line)) transparent; }
body { background: radial-gradient(1200px 520px at 85% -120px, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 70%), radial-gradient(900px 420px at -10% 30%, color-mix(in srgb, var(--warm-soft) 70%, transparent), transparent 70%), var(--paper); background-attachment: fixed; }
.topbar { box-shadow: 0 1px 0 color-mix(in srgb, var(--card) 70%, transparent) inset, 0 10px 30px -26px rgb(0 0 0 / .35); }
.topbar::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent) 30%, color-mix(in srgb, var(--warm) 55%, transparent) 70%, transparent); }
.logo-mark { filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--accent) 30%, transparent)); transition: transform .25s; }
.logo:hover .logo-mark { transform: rotate(-5deg) scale(1.04); }
.links a { transition: background-color .15s, color .15s; }
.links a[aria-current] { background: var(--accent-soft); }
.links a[aria-current]::after { inset-inline: 40%; height: 3px; bottom: -1px; }
.finder input { background: color-mix(in srgb, var(--card) 92%, transparent); }
.finder button, .finder.big button { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); box-shadow: 0 6px 14px -8px var(--accent); }

.mast, .cover { background: radial-gradient(700px 280px at 92% 0%, color-mix(in srgb, var(--accent-soft) 90%, transparent), transparent 70%), radial-gradient(600px 260px at 0% 100%, color-mix(in srgb, var(--warm-soft) 80%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--paper-2) 70%, transparent), transparent); border-bottom: 0; position: relative; }
.mast::after, .cover::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.kicker::before { content: ""; display: inline-block; vertical-align: middle; width: 7px; height: 7px; margin-inline-end: 9px; margin-top: -3px; background: var(--warm); transform: rotate(45deg); border-radius: 1px; }

.pill { transition: border-color .15s, color .15s, background-color .15s, transform .15s, box-shadow .15s; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -14px rgb(0 0 0 / .5); }
.pill.solid { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent) 45%, color-mix(in srgb, var(--accent) 72%, #000)); border-color: transparent; }

.feat a, .lang-tile, .sheet, .tr-item, .ab-card, .wbw-list li, .wm-list > div, .glossary div, .prose-box, .counts li, .daycard, .slab { transition: border-color .2s, box-shadow .2s, transform .2s; }
.feat a:hover, .lang-tile:hover, .ab-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(0 0 0 / .03), 0 22px 40px -26px color-mix(in srgb, var(--accent) 60%, rgb(0 0 0 / .5)); }
.feat-i { background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 60%, var(--card))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); }
.feat:nth-child(3n+2) .feat-i { background: linear-gradient(145deg, var(--warm-soft), color-mix(in srgb, var(--warm-soft) 60%, var(--card))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warm) 16%, transparent); }
.counts li { box-shadow: 0 1px 2px rgb(0 0 0 / .03); }
.counts li:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.counts b { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--warm))); -webkit-background-clip: text; background-clip: text; color: transparent; }

.daycard { border: 1px solid color-mix(in srgb, var(--warm) 22%, var(--line)); box-shadow: 0 2px 6px rgb(0 0 0 / .03), 0 30px 60px -34px color-mix(in srgb, var(--accent) 55%, rgb(0 0 0 / .45)); }
.daycard::before { background: linear-gradient(90deg, var(--warm), color-mix(in srgb, var(--warm) 60%, var(--accent))); }
.slab { position: relative; border-color: color-mix(in srgb, var(--warm) 22%, var(--line)); background: radial-gradient(500px 160px at 50% 0%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 70%), var(--card); }
.slab::before { content: ""; position: absolute; inset: 8px; border: 1px solid color-mix(in srgb, var(--warm) 18%, transparent); border-radius: 20px; pointer-events: none; }
.slab > * { position: relative; }
.sheet { border-inline-start: 3px solid color-mix(in srgb, var(--accent) 55%, var(--line)); }
.sheet:hover, .tr-item:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

.verse { border-radius: 16px; padding-inline: 10px; }
.verse:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.verse .vn { box-shadow: none; }
.basmala { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }

.rbar { border-color: color-mix(in srgb, var(--accent) 14%, var(--line)); }
.seg { background: var(--paper-2); }

.colophon { background: radial-gradient(800px 260px at 100% 0%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%), var(--paper-2); }
.dock { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dock a[aria-current], .dock a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .pill:hover, .feat a:hover, .lang-tile:hover, .ab-card:hover { transform: none; } }

/* ════ EnQuran: هوية مستقلة (أخضر مزرقّ وذهبي) ════ */
:root {
  --paper: #f5f4ee; --paper-2: #ecebe2; --card: #fffffd; --ink: #142321; --ink-2: #33433f; --muted: #66746f;
  --line: #e2e0d5; --line-2: #d3d1c4; --accent: #0f6a62; --accent-ink: #ffffff; --accent-soft: #e2f1ed;
  --warm: #b8862e; --warm-soft: #f8f0dc; --q-allah: #a6402a; --q-rabb: #22618a; --mark: #fbe7a6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --paper: #0b1514; --paper-2: #101d1c; --card: #132221; --ink: #e9f0ee; --ink-2: #c8d4d1; --muted: #8fa29d;
    --line: #213432; --line-2: #2c4441; --accent: #5ccdbd; --accent-ink: #0b1514; --accent-soft: #163a36;
    --warm: #e6b85c; --warm-soft: #2e2617; --q-allah: #ff9c80; --q-rabb: #8cc0f5; --mark: #5a4a12;
  }
}
:root[data-mode="dark"] {
  --paper: #0b1514; --paper-2: #101d1c; --card: #132221; --ink: #e9f0ee; --ink-2: #c8d4d1; --muted: #8fa29d;
  --line: #213432; --line-2: #2c4441; --accent: #5ccdbd; --accent-ink: #0b1514; --accent-soft: #163a36;
  --warm: #e6b85c; --warm-soft: #2e2617; --q-allah: #ff9c80; --q-rabb: #8cc0f5; --mark: #5a4a12;
}
.vt { font-size: 1.06rem; line-height: 1.8; }
.vl { color: color-mix(in srgb, var(--accent) 55%, var(--muted)); }
:root { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230f6a62' stroke-opacity='.08' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%235ccdbd' stroke-opacity='.07' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); } }
:root[data-mode="dark"] { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%235ccdbd' stroke-opacity='.07' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); }

/* معاني الكلمات: الكلمة ثم معناها تحتها، تحت التفاسير */
.wm { margin: 30px 0; }
.wm h2 { font-size: 1.3rem; }
.wm-list { display: block; margin: 12px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.wm-list > div { display: block; background: none; border: 0; border-radius: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wm-list > div:last-child { border-bottom: 0; }
.wm-list dt { font-family: var(--qfont); font-size: 1.6rem; line-height: 1.8; color: var(--accent); font-weight: 400; }
.wm-list dd { margin: 2px 0 0; color: var(--ink-2); line-height: 1.85; font-size: 1rem; }
.wm-list dt { text-align: right; } .wbw-r { margin-inline-start: 8px; letter-spacing: 0; }

/* رقم الآية في الجوال: صغير في أول السطر بدل عمود كامل */
@media (max-width: 640px) {
  .verse { display: block; padding: 14px 6px; }
  .verse::after { content: ""; display: block; clear: both; }
  .verse .vn { float: left; position: static; width: 34px; height: 34px; font-size: .58rem; margin: 8px 0 0; margin-inline-end: 8px; }
  .verse .vx { clear: both; }
}
/* السورة بلغة أخرى: العربي يميناً والمعنى يساراً */
.bi-row { grid-template-columns: 52px 1fr 1.1fr; }
.bi-row .bi-ar { order: 3; text-align: right; }
.bi-row .vn span { font-size: .72rem; }
.lt-ex { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trs-other { margin-top: 14px; }
.trs-other summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 10px 0; }
.trs-other h3 small { font-weight: 400; color: var(--muted); }
@media (max-width: 760px) { .bi-row { grid-template-columns: 40px 1fr; } .bi-row .bi-ar { order: 0; } .bi-tr { grid-column: 2; } }
.wm-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; }
.wm-list dt { order: 2; flex: none; font-size: 1.5rem; }
.wm-list dd { margin: 0; }
