/* KFGQPC Hafs — Kompleks Raja Fahd (KFGQPC Uthmanic Script HAFS)
   File asli tanpa perubahan: assets/fonts/hafs.ttf (KFGQPC Hafs V30) — lisensi: KFGQPC-Hafs-V30-license.docx */
@font-face {
  font-family: "KFGQPC Hafs";
  src: local("KFGQPC HAFS Uthmanic Script"), local("KFGQPC Uthmanic Script HAFS"), local("KFGQPCUthmanicScriptHAFS"),
       url("fonts/hafs.ttf") format("truetype");
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC;
}

/* ==========================================================
   quranbahasa.com — gaya Nusantara
   kain mori & sogan (cokelat batik), hijau masjid, emas;
   motif batik parang/lereng, pinggiran tumpal, atap tumpang masjid Jawa
   ========================================================== */
:root {
  --bg: #f8f1e4;
  --bg-2: #f0e5cf;
  --surface: #fffbf3;
  --surface-2: #fbf4e7;
  --ink: #2a1c12;
  --ink-2: #4f3c2d;
  --muted: #7d6754;
  --line: #e7d9bf;
  --line-2: #d8c39c;
  --sogan: #7a4a24;
  --sogan-2: #96612f;
  --sogan-deep: #3f2412;
  --sogan-soft: #f3e4cc;
  --teal: #1d6b5e;
  --teal-2: #2a8a78;
  --teal-deep: #0f3d35;
  --teal-soft: #e2f0eb;
  --gold: #a5752a;
  --gold-2: #c9973f;
  --gold-3: #ecd193;
  --gold-soft: #f8ecd2;
  --mark: #f3dc9b;
  --tf-q: #1d6b5e;
  --tf-p: #7a4a24;
  --tf-b: #8c3b2b;
  --shadow-sm: 0 1px 2px rgba(60, 35, 15, .06);
  --shadow: 0 1px 2px rgba(60, 35, 15, .05), 0 18px 38px -24px rgba(70, 40, 15, .45);
  --radius: 16px;
  --ar-size: 2.1rem;
  --tr-size: 1.06rem;

  --f-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-head: "Lora", Georgia, serif;
  --f-ar-osm: "KFGQPC Hafs", "Amiri Quran", "Amiri", "Scheherazade New", serif;
  --f-ar-simple: "Scheherazade New", "Amiri", "Noto Naskh Arabic", serif;
  --f-ar: var(--f-ar-osm);
  --f-ar-ui: "Amiri", "Noto Naskh Arabic", serif;
  --lh-read: 1.85;

  /* batik parang/lereng: rantai lensa diagonal di antara garis ganda */
  --parang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23c99a45' stroke-width='1.1'%3E%3Cpath d='M0 20 20 0M20 40 40 20M-1 1 1-1M39 41 41 39'/%3E%3Cpath d='M11 29C11 21 21 11 29 11 29 19 19 29 11 29Z'/%3E%3Cpath d='M15.5 24.5c2-3 6-7 9-9' opacity='.6'/%3E%3C/g%3E%3Cg fill='%23c99a45'%3E%3Ccircle cx='0' cy='40' r='2'/%3E%3Ccircle cx='40' cy='0' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --parang-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%237a4a24' stroke-width='1.1'%3E%3Cpath d='M0 20 20 0M20 40 40 20M-1 1 1-1M39 41 41 39'/%3E%3Cpath d='M11 29C11 21 21 11 29 11 29 19 19 29 11 29Z'/%3E%3Cpath d='M15.5 24.5c2-3 6-7 9-9' opacity='.6'/%3E%3C/g%3E%3Cg fill='%237a4a24'%3E%3Ccircle cx='0' cy='40' r='2'/%3E%3Ccircle cx='40' cy='0' r='2'/%3E%3C/g%3E%3C/svg%3E");
  /* tumpal: deret segitiga (gigi) */
  --tumpal-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Cpath d='M0 0h28L14 12z' fill='%23c9973f'/%3E%3Cpath d='M7 0h14l-7 6z' fill='%237a4a24'/%3E%3Ccircle cx='14' cy='8.6' r='1' fill='%23fff3d6'/%3E%3C/svg%3E");
  --tumpal-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Cpath d='M0 12h28L14 0z' fill='%23c9973f'/%3E%3Cpath d='M7 12h14l-7-6z' fill='%237a4a24'/%3E%3Ccircle cx='14' cy='3.4' r='1' fill='%23fff3d6'/%3E%3C/svg%3E");
  /* atap tumpang tiga dengan mustaka */
  --roof-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 92'%3E%3Cg fill='none' stroke='%23e3bd6f' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M120 3c3 3.4 4.4 6 4.4 8.6 0 2.6-2 4.4-4.4 4.4s-4.4-1.8-4.4-4.4c0-2.6 1.4-5.2 4.4-8.6z'/%3E%3Cpath d='M102 37 111 20H129L138 37Z'/%3E%3Cpath d='M80 61 93 41H147L160 61Z'/%3E%3Cpath d='M50 90 70 65H170L190 90Z'/%3E%3Cpath d='M98 57H142M64 86H176' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  --roof-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 92'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232a8a78'/%3E%3Cstop offset='1' stop-color='%23124a40'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23r)' stroke='%23c9973f' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M102 37 111 20H129L138 37Z'/%3E%3Cpath d='M80 61 93 41H147L160 61Z'/%3E%3Cpath d='M50 90 70 65H170L190 90Z'/%3E%3C/g%3E%3Cpath d='M120 3c3 3.4 4.4 6 4.4 8.6 0 2.6-2 4.4-4.4 4.4s-4.4-1.8-4.4-4.4c0-2.6 1.4-5.2 4.4-8.6z' fill='%23c9973f'/%3E%3Cpath d='M98 57H142M64 86H176' stroke='%23ecd193' stroke-width='1' opacity='.55'/%3E%3C/svg%3E");
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #16100b;
  --bg-2: #1d1610;
  --surface: #221912;
  --surface-2: #281e16;
  --ink: #f3e7d3;
  --ink-2: #d9c7ab;
  --muted: #a8927a;
  --line: #3a2c20;
  --line-2: #4d3b2a;
  --sogan: #dba36a;
  --sogan-2: #e8b880;
  --sogan-deep: #0e0905;
  --sogan-soft: #33241a;
  --teal: #5cc2ad;
  --teal-2: #7fd3c1;
  --teal-deep: #0b2b25;
  --teal-soft: #15302a;
  --gold: #e2b866;
  --gold-2: #d9a84f;
  --gold-3: #f2d697;
  --gold-soft: #33281a;
  --mark: #5a4214;
  --tf-q: #7fd3c1;
  --tf-p: #e8b880;
  --tf-b: #f0a58e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 16px 36px -20px rgba(0,0,0,.75);
  --parang-dark: var(--parang);
  color-scheme: dark;
}
[data-yazi="simple"] { --f-ar: var(--f-ar-simple); }
[data-yazi="osm"] { --f-ar: var(--f-ar-osm); }
[data-arfont="hafs"] { --f-ar: "KFGQPC Hafs", "Amiri Quran", serif; }
[data-arfont="amiriquran"] { --f-ar: "Amiri Quran", "Amiri", serif; }
[data-arfont="naskh"] { --f-ar: "Noto Naskh Arabic", "Amiri", serif; }
[data-arfont="scheherazade"] { --f-ar: "Scheherazade New", "Amiri", serif; }
[data-arfont="amiri"] { --f-ar: "Amiri", "Amiri Quran", serif; }
.ar-osm { font-family: var(--f-ar-osm) !important; }
.ar-simple { font-family: var(--f-ar-simple) !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.7 var(--f-ui);
  background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-3); color: #2a1c12; }
[hidden] { display: none !important; }
.ic { flex: none; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 32px); }
.nast { font-family: var(--f-head); font-weight: 700; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

.readbar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-2), var(--gold-2)); }

/* ---------- tumpal ---------- */
.tumpal { height: 12px; background: var(--tumpal-down) repeat-x center top / 28px 12px; }
.tumpal--down { background-image: var(--tumpal-up); }

/* ---------- kepala situs ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { color: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 800 1.28rem/1.1 var(--f-ui); letter-spacing: -.02em; color: var(--teal-deep); }
[data-theme="dark"] .brand-text b { color: var(--ink); }
.brand-text b em { font-style: normal; color: var(--sogan); }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.mainnav a:hover { background: var(--sogan-soft); color: var(--sogan); }
.mainnav a.on { color: var(--teal); background: var(--teal-soft); }
.topsearch { flex: 1; max-width: 340px; margin-inline-start: auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.topsearch:focus-within { border-color: var(--teal-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-2) 18%, transparent); }
.topsearch input { border: 0; background: none; outline: 0; width: 100%; color: var(--ink); font-size: .92rem; }
.topactions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.topsearch + .topactions { margin-inline-start: 0; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--ink-2); text-decoration: none; }
.iconbtn:hover { background: var(--sogan-soft); color: var(--sogan); }
.js-menu { display: none; }
.langsw { position: relative; }
.langsw-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 50; }
.langsw-menu a { display: block; padding: 8px 12px; border-radius: 10px; font-size: .94rem; }
.langsw-menu a:hover { background: var(--sogan-soft); }
.langsw-menu a[aria-current] { color: var(--teal); font-weight: 700; }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; background: var(--teal); color: #fff; font-weight: 700; font-size: .93rem; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--teal-deep); color: #fff; }
[data-theme="dark"] .btn { color: #0b1f1b; }
[data-theme="dark"] .btn:hover { background: var(--teal-2); color: #0b1f1b; }
.btn-soft { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.btn-soft:hover { background: var(--sogan-soft); color: var(--sogan); border-color: var(--line-2); }
[data-theme="dark"] .btn-soft { color: var(--ink-2); }
[data-theme="dark"] .btn-soft:hover { background: var(--sogan-soft); color: var(--sogan); }
.btn-ghost { background: none; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--sogan-soft); color: var(--sogan); }
.btn-gold { background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); color: #3a230f; border-color: #b8842f; }
.btn-gold:hover { background: linear-gradient(180deg, #f6dfa6, #d6a54b); color: #2a1a0b; }
[data-theme="dark"] .btn-gold { color: #2a1a0b; }
.btn-icon { width: 42px; padding: 0; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #f8ecd6;
  background: radial-gradient(900px 420px at 50% 0%, #22806f 0%, transparent 70%), linear-gradient(180deg, #0f3d35, #0b2e28 70%, #0a2924); }
.hero-batik { position: absolute; inset: 0; background: var(--parang) 0 0 / 40px 40px; opacity: .13;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, transparent 22%, #000 72%); mask-image: radial-gradient(ellipse at 50% 40%, transparent 22%, #000 72%); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 12px; background: var(--tumpal-up) repeat-x center bottom / 28px 12px; }
.hero-in { position: relative; padding: 34px 0 54px; display: flex; justify-content: center; }
.hero-panel { position: relative; width: min(760px, 100%); text-align: center; padding-top: 6px; }
.hero-roof { width: min(330px, 80%); aspect-ratio: 240 / 92; margin: 0 auto -6px; background: var(--roof-line) center / contain no-repeat; opacity: .9; }
.hero-bis { font: 400 1.8rem/1.6 var(--f-ar-ui); color: var(--gold-3); margin: 6px 0 0; }
.hero-title { margin: 6px 0 10px; color: #fff8ea; display: flex; flex-direction: column; gap: 6px; }
.ht-main { font: 700 clamp(2.1rem, 5vw, 3.3rem)/1.1 var(--f-head); letter-spacing: -.015em; }
.ht-sub { font: 600 clamp(1rem, 2.4vw, 1.3rem)/1.4 var(--f-ui); color: var(--gold-3); letter-spacing: .01em; }
.hero-lead { color: #d6e6df; max-width: 620px; margin: 0 auto 22px; font-size: 1.02rem; }
.hero-search { display: flex; align-items: center; gap: 10px; background: #fffaf0; color: #7d6754; border-radius: 16px; padding: 7px 7px 7px 16px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(233, 201, 127, .45); max-width: 640px; margin: 0 auto; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #2a1c12; font-size: 1rem; height: 44px; }
.hero-search input::placeholder { color: #8f7a66; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.quick a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #fff3dc;
  background: rgba(10, 41, 36, .75); border: 1px solid rgba(233, 201, 127, .35); }
.quick a:hover { background: #fff3dc; color: #0f3d35; }
.hero-sm .hero-in { padding: 26px 0 44px; }
.hero-ar { font: 400 2rem/1.6 var(--f-ar-osm); color: var(--gold-3); }
.hero-sm .ht-main { font-size: clamp(1.7rem, 4vw, 2.5rem); }

/* ---------- beranda ---------- */
.home-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; margin: 28px 0 10px; }
.daily { position: relative; padding: 24px 26px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.daily::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--teal), var(--gold-2), var(--sogan)); }
.daily-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--sogan); }
.daily-date { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.daily-ar { font: 400 calc(var(--ar-size) * .95)/2.1 var(--f-ar); text-align: center; margin: 10px 0; color: var(--ink); }
.daily-ro { text-align: center; }
.daily-tr { font: 400 1.05rem/1.75 var(--f-read); color: var(--ink-2); margin: 6px 0 12px; }
.daily-ref { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--teal); font-size: .93rem; }
.side-stack { display: flex; flex-direction: column; gap: 12px; }
.card { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.continue-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; margin-top: 6px; color: var(--teal); }
.marks ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.marks li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.marks li a { font-weight: 600; font-size: .93rem; }
.marks li button { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; }
.marks li button:hover { background: var(--sogan-soft); color: var(--sogan); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { padding: 12px 6px; text-align: center; border-radius: 14px; background: var(--sogan-soft); border: 1px solid var(--line); }
.stats b { display: block; font: 700 1.3rem/1.2 var(--f-head); color: var(--sogan); }
.stats span { font-size: .78rem; color: var(--muted); }
.promo { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.promo:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: inherit; border-color: var(--line-2); }
.promo > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.promo b { font-weight: 700; }
.promo small { color: var(--muted); font-size: .82rem; }
.promo-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; }
.promo-ic--t { background: var(--gold-soft); color: var(--gold); }

.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.pane-head h2 { margin: 0; font-size: 1.45rem; }
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pop-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 16px 22px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; transition: border-color .15s, transform .15s; }
.pop-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--parang-dark) 0 0 / 14px 14px, var(--gold-soft); }
.pop-card:hover { border-color: var(--gold-2); transform: translateY(-1px); color: inherit; }
.pop-card b { font-weight: 800; color: var(--teal-deep); }
[data-theme="dark"] .pop-card b { color: var(--teal); }
.pc-roman { font-size: .88rem; font-weight: 600; color: var(--sogan); }
.pop-card small { color: var(--muted); font-size: .84rem; line-height: 1.5; }

.tabs { display: flex; gap: 6px; margin: 34px 0 0; padding: 5px; border-radius: 14px; background: var(--bg-2); width: max-content; max-width: 100%; }
.tab { padding: 8px 20px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.tab.on { background: var(--surface); color: var(--teal); box-shadow: var(--shadow-sm); }
.tabpane { display: none; }
.tabpane.on { display: block; }
.filter { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); min-width: 260px; }
.filter:focus-within { border-color: var(--teal-2); }
.filter input { border: 0; outline: 0; background: none; width: 100%; color: var(--ink); }
.filter.big { max-width: 440px; margin: 16px auto 0; height: 48px; }

/* kartu surat */
.sura-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 10px; }
.sura-grid.compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 20px; }
.sura-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.sura-card:hover { border-color: var(--teal-2); box-shadow: var(--shadow); color: inherit; }
.sc-no { width: 38px; height: 38px; flex: none; display: grid; place-items: center; position: relative; margin: 0 4px; }
.sc-no::before { content: ""; position: absolute; inset: 4px; transform: rotate(45deg); border-radius: 6px; border: 1.5px solid var(--gold-2); background: var(--gold-soft); }
.sc-no span { position: relative; font: 700 .86rem/1 var(--f-ui); color: var(--sogan); }
.sura-card:hover .sc-no::before { background: var(--teal); border-color: var(--teal); }
.sura-card:hover .sc-no span { color: #fff; }
.sc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sc-main b { font-weight: 700; font-size: 1rem; }
.sc-roman { font-size: .82rem; color: var(--sogan); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-main small { font-size: .78rem; color: var(--muted); }
.sc-ar { font: 400 1.35rem/1.4 var(--f-ar-ui); color: var(--teal-deep); flex: none; }
[data-theme="dark"] .sc-ar { color: var(--teal); }
.no-result, .empty { color: var(--muted); text-align: center; padding: 24px 0; }

.juz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.juz-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.juz-card:hover { border-color: var(--teal-2); color: inherit; }
.jc-no { font-weight: 800; color: var(--teal); }
.jc-name { font: 400 1.25rem/1.6 var(--f-ar-ui); }
.jc-roman { font-size: .8rem; color: var(--muted); }
.goto { display: flex; align-items: center; gap: 8px; }
.goto label { font-size: .9rem; color: var(--muted); }
.goto input { width: 100px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.page-juz { display: flex; flex-direction: column; gap: 8px; }
.pj-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pj-label { flex: none; width: 64px; font-weight: 800; color: var(--teal); padding-top: 3px; }
.pj-pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-pages a { min-width: 36px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: .84rem; background: var(--surface-2); border: 1px solid var(--line); }
.pj-pages a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.divider { height: 26px; margin: 40px 0 10px; background: var(--parang-dark) center / 26px 26px repeat-x; opacity: .35;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.divider span { display: none; }
.langs-band h2 { text-align: center; font-size: 1.45rem; }
.lang-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lang-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--teal); }
.lang-card:nth-child(2) { border-top-color: var(--sogan); }
.lang-card:nth-child(3) { border-top-color: var(--gold-2); }
.lang-card:hover { box-shadow: var(--shadow); color: inherit; }
.lang-card b { font-weight: 800; font-size: 1.05rem; }
.lang-card small { color: var(--muted); }
.about { margin: 40px 0 50px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.about h2 { margin-top: 0; font-size: 1.5rem; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-cols p, .about-links { color: var(--ink-2); margin: 0 0 10px; }
.about-links a, .about-en a { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- halaman baca ---------- */
.reading main, main.wrap { padding-bottom: 50px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 14px; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--teal); }

/* kepala surat: atap tumpang */
.sarlowh { position: relative; margin: 6px 0 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.sl-band { height: 14px; background: var(--tumpal-down) repeat-x center top / 28px 12px, var(--teal-deep); }
.sl-band:last-child { background: var(--tumpal-up) repeat-x center bottom / 28px 12px, var(--teal-deep); }
.sl-body { position: relative; padding: 10px 20px 20px; background: radial-gradient(500px 160px at 50% 0, var(--gold-soft), transparent 75%); }
.sl-body::before { content: ""; display: block; width: 150px; aspect-ratio: 240 / 92; margin: 6px auto 4px; background: var(--roof-fill) center / contain no-repeat; }
.passage-head .sl-body::before { width: 120px; }
.sl-cartouche { display: inline-block; padding: 2px 22px; border-radius: 999px; border: 1px solid var(--gold-2); background: var(--surface); }
.sl-ar { font: 400 1.5rem/1.7 var(--f-ar-ui); color: var(--teal-deep); }
[data-theme="dark"] .sl-ar { color: var(--teal); }
.sl-title { margin: 8px 0 0; font-size: clamp(1.7rem, 4.4vw, 2.3rem); line-height: 1.2; }
.sl-title a:hover { color: var(--teal); }
.sl-roman { font-weight: 600; color: var(--sogan); margin-top: 2px; }
.sl-sub { color: var(--ink-2); margin: 6px auto 0; max-width: 560px; font-size: .95rem; }
.sl-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: .86rem; color: var(--muted); }
.sl-meta i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2); display: inline-block; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 16px; }
.jump { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.jump select { border: 0; background: none; outline: 0; height: 100%; max-width: 130px; }
.basmala { text-align: center; font: 400 calc(var(--ar-size) * 1.05)/2 var(--f-ar); color: var(--teal-deep); margin: 10px 0 16px; }
[data-theme="dark"] .basmala { color: var(--teal); }

/* kartu ayat */
.ayah-list { display: flex; flex-direction: column; gap: 12px; }
.ayah { position: relative; padding: 16px 20px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 96px; transition: border-color .2s, box-shadow .2s; }
.ayah:hover { border-color: var(--line-2); }
.ayah.playing { border-color: var(--teal-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-2) 20%, transparent); }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 30% { background: var(--mark); } 100% { background: var(--surface); } }
.ayah-head { display: flex; align-items: center; gap: 10px; }
.ayah-no { width: 36px; height: 36px; display: grid; place-items: center; position: relative; flex: none; }
.ayah-no::before { content: ""; position: absolute; inset: 5px; transform: rotate(45deg); border-radius: 5px; background: var(--teal); }
.ayah-no span { position: relative; color: #fff; font-weight: 800; font-size: .8rem; }
[data-theme="dark"] .ayah-no span { color: #0b1f1b; }
.ayah-ref { font-size: .82rem; color: var(--muted); font-weight: 600; }
.ayah-tools { margin-inline-start: auto; display: flex; gap: 2px; }
.tool { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); }
.tool:hover { background: var(--sogan-soft); color: var(--sogan); }
.tool.on { color: var(--gold); }
.tool.on .ic { fill: currentColor; }
.ar { font: 400 var(--ar-size)/2.15 var(--f-ar); text-align: right; margin: 12px 0 6px; color: var(--ink); word-spacing: .04em; }
.ayah-end { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .2em; margin-inline: .12em; vertical-align: middle;
  font: 700 .5em/1 var(--f-ar-ui); color: var(--sogan); border: 1.5px solid var(--gold-2); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3px var(--gold-3); }
.sajda { color: var(--sogan); font-size: .8em; }
.roman { font: italic 500 .98rem/1.7 var(--f-read); color: var(--teal); margin: 4px 0 10px; }
.meals { display: flex; flex-direction: column; gap: 10px; }
.meal { padding-top: 10px; border-top: 1px dashed var(--line-2); }
.meal:first-child { border-top: 0; padding-top: 2px; }
.meal-src { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .76rem; margin-bottom: 2px; }
.meal-src b { color: var(--sogan); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.meal-src span { color: var(--muted); }
.meal p { margin: 0; font: 400 var(--tr-size)/var(--lh-read) var(--f-read); color: var(--ink); }
.meal:not(.meal--main) p { color: var(--ink-2); font-size: calc(var(--tr-size) * .95); }
.meal-tf { font-size: .95rem; color: var(--ink-2); }
.meal-tf p { margin: 0 0 8px; }
details.tafsir { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.tafsir summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--teal);
  padding: 5px 12px; border-radius: 999px; background: var(--teal-soft); list-style: none; }
details.tafsir summary::-webkit-details-marker { display: none; }
details.tafsir[open] summary { background: var(--teal); color: #fff; }
[data-theme="dark"] details.tafsir[open] summary { color: #0b1f1b; }
.tafsir-text { padding-top: 10px; }
.tafsir-text .loading { color: var(--muted); }
.tf-block { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; }
.tf-block h4 { margin: 0 0 4px; font: 800 .82rem/1.4 var(--f-ui); color: var(--sogan); text-transform: uppercase; letter-spacing: .06em; }
.tf-block p { margin: 0 0 6px; font-size: .96rem; line-height: 1.75; color: var(--ink-2); }
.tf-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; color: var(--teal); }

.single-head { text-align: center; margin: 6px 0 18px; }
.single-head h1 { margin: 6px 0 2px; font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.2; }
.single-head h1 span { display: block; font-size: .62em; color: var(--sogan); font-family: var(--f-ui); font-weight: 700; margin-top: 4px; }
.h-roman { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.page-hero .h-roman { color: var(--sogan); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.chips.start { justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.chip:hover { border-color: var(--teal-2); color: var(--teal); }
.chip-teal { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.chip-gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.chip-select { padding: 0 8px; }
.chip-select select { border: 0; background: none; outline: 0; font-weight: 600; }
.single-list .ayah { padding: 20px 24px 22px; }
.single-list .ar { font-size: calc(var(--ar-size) * 1.12); text-align: center; }
.alt-script { margin: 14px 0; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line-2); }
.alt-script summary { cursor: pointer; font-weight: 600; color: var(--sogan); }
.alt-script .ar { text-align: center; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 28px 0 10px; }
.pg { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.pg:hover { border-color: var(--teal-2); color: inherit; }
.pg span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-weight: 700; }
.pg small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.pg.next { justify-content: flex-end; text-align: end; }
.pg.ghost { background: none; border: 0; }
.pg-center { font-size: .88rem; font-weight: 700; color: var(--teal); text-align: center; }

.anchor { display: block; height: 0; }
.sura-cont { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 18px 0 4px; padding: 10px; border-radius: 14px; background: var(--gold-soft); }
.sura-cont a { font-weight: 800; color: var(--teal); }
.sura-cont span { font: 400 1.2rem/1.5 var(--f-ar-ui); }
.sura-cont small { color: var(--muted); }
.juz-suras { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }

.sura-about { margin-top: 30px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.sura-about h2 { margin: 0 0 12px; font-size: 1.35rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 16px; }
.facts div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.facts dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }
.facts dd a { color: var(--teal); }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary:hover { color: var(--teal); }
.faq p { margin: 6px 0 0; color: var(--ink-2); }
.other-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.other-langs a { color: var(--teal); font-weight: 600; }

/* ---------- mushaf ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head h1 { margin: 2px 0 0; font-size: 1.6rem; }
.mushaf-nav { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; }
.mn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); grid-row: 1; }
.mn:first-child { grid-column: 3; }
.mn:last-child { grid-column: 1; }
.mn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.mushaf { grid-column: 2; grid-row: 1; }
.mushaf-frame { padding: 14px; border-radius: 10px; background: #fffaf0; border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 6px #fffaf0, inset 0 0 0 7px var(--gold-2), inset 0 0 0 10px #fffaf0, inset 0 0 0 11px var(--teal), var(--shadow); color: #2a1c12; }
[data-theme="dark"] .mushaf-frame { background: #241a12; box-shadow: inset 0 0 0 6px #241a12, inset 0 0 0 7px var(--gold-2), inset 0 0 0 10px #241a12, inset 0 0 0 11px var(--teal), var(--shadow); color: var(--ink); }
.mushaf-top { display: flex; justify-content: space-between; padding: 6px 16px 0; font: 400 1rem/1.6 var(--f-ar-ui); color: var(--sogan); }
.mushaf-text { padding: 8px 18px 6px; font: 400 calc(var(--ar-size) * .95)/2.25 var(--f-ar); text-align: justify; text-align-last: center; }
.m-ayah { border-radius: 6px; cursor: pointer; }
.m-ayah:hover { background: var(--teal-soft); }
.m-ayah.playing { background: var(--mark); }
.m-sura { margin: 10px 0 6px; padding: 4px; text-align: center; border-radius: 8px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); border-block: 1px solid var(--gold-2); }
.m-sura span { font: 400 1.25rem/1.6 var(--f-ar-ui); color: var(--teal-deep); }
[data-theme="dark"] .m-sura span { color: var(--teal); }
.m-basmala { text-align: center; }
.mushaf-foot { text-align: center; font-weight: 700; color: var(--sogan); padding-bottom: 6px; }
.page-meal { margin-top: 24px; }
.page-meal.hide { display: none; }
.section-title { font-size: 1.25rem; margin: 22px 0 10px; }
.section-title small { font-size: .7em; color: var(--muted); font-family: var(--f-ui); font-weight: 600; }
.pm-item { padding: 10px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.pm-ref { font-size: .82rem; color: var(--teal); font-weight: 700; }
.pm-text { margin: 2px 0 0; font: 400 var(--tr-size)/var(--lh-read) var(--f-read); }
.pm-alt { color: var(--ink-2); font-size: .95em; }
.pm-text .lang { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- tafsir ---------- */
.page-hero { text-align: center; padding: 10px 0 18px; }
.page-hero h1 { margin: 8px 0 2px; font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.page-hero p { color: var(--ink-2); max-width: 620px; margin: 6px auto 0; }
.ph-ic { width: 60px; height: 60px; margin: 0 auto; display: grid; place-items: center; position: relative; color: #fff; }
.ph-ic::before { content: ""; position: absolute; inset: 8px; transform: rotate(45deg); border-radius: 10px; background: linear-gradient(135deg, var(--teal-2), var(--teal-deep)); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--gold-2); }
.ph-ic svg { position: relative; }
.tf-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0; }
.tf-switch a { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; line-height: 1.3; }
.tf-switch a small { font-weight: 500; font-size: .74rem; color: var(--muted); }
.tf-switch a.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.tf-switch a.on small { color: #d6efe9; }
[data-theme="dark"] .tf-switch a.on { color: #0b1f1b; }
[data-theme="dark"] .tf-switch a.on small { color: #134a41; }
.tf-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tf-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tf-list a:hover { border-color: var(--teal-2); color: inherit; }
.tf-no { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); color: var(--sogan); font-weight: 800; font-size: .84rem; }
.tf-meal { flex: 1; min-width: 0; font-size: .93rem; color: var(--ink-2); }
.tf-card { padding: 22px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tf-ar { font: 400 calc(var(--ar-size) * 1.08)/2.2 var(--f-ar); text-align: center; color: var(--ink); }
.tf-roman { text-align: center; }
.tf-actions { display: flex; justify-content: center; margin: 6px 0 4px; }
.tf-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.tf-sec h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--sogan); }
.tf-sec h2 small { font: 500 .78rem/1.4 var(--f-ui); color: var(--muted); margin-inline-start: 6px; }
.tf-meal-box p { margin: 0; font: 400 1.1rem/1.8 var(--f-read); }
.tf-body { font: 400 1.04rem/1.9 var(--f-read); color: var(--ink); }
.tf-body p { margin: 0 0 12px; }
.tf-q { color: var(--tf-q); font-weight: 600; }
.tf-p { color: var(--tf-p); }
.tf-b { color: var(--tf-b); }
.tf-arab { font-family: var(--f-ar-ui); font-size: 1.3em; line-height: 1.6; color: var(--teal-deep); }
[data-theme="dark"] .tf-arab { color: var(--teal); }
.tf-ref { color: var(--teal); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tf-w-allah { color: var(--teal); font-weight: 700; }
.tf-w-nabi { color: var(--sogan); font-weight: 700; }
.tf-w-rh { color: var(--muted); font-style: italic; }
.tf-w-sahih { color: var(--gold); font-weight: 700; }
.tf-other { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tf-other span { flex: 1; }
.tf-other:hover { border-color: var(--teal-2); color: inherit; }
.tf-lang { margin-top: 14px; }

/* ---------- pencarian ---------- */
.search-head { text-align: center; padding: 6px 0 10px; }
.search-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.4rem); margin: 6px 0 14px; }
.big-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); color: var(--muted); }
.big-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: var(--ink); font-size: 1rem; }
.big-search select { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 0 8px; }
.hint { font-size: .88rem; color: var(--muted); }
.hint a { color: var(--teal); font-weight: 600; }
.results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.result { padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.r-ref { font-size: .86rem; font-weight: 700; color: var(--teal); }
.r-ar { font: 400 calc(var(--ar-size) * .85)/2 var(--f-ar); text-align: right; margin: 6px 0; }
.r-tr { margin: 0; color: var(--ink-2); }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- murottal ---------- */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rc-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rc-card:hover { border-color: var(--teal-2); box-shadow: var(--shadow); color: inherit; }
.rc-name { font-weight: 700; font-size: .93rem; line-height: 1.35; }
.rc-card small { color: var(--muted); font-size: .76rem; }
.rc-av { --s: 56px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-2), var(--teal-deep)); color: #fff; font: 700 calc(var(--s) * .4)/1 var(--f-head); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--gold-2); }
.rc-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listen-quick { margin-top: 30px; }
.listen-quick h2 { font-size: 1.3rem; }
.rc-head { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.rc-head h1 { margin: 2px 0; font-size: 1.7rem; }
.rc-head p { margin: 2px 0 0; color: var(--muted); }
.rc-select { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.rc-select select { border: 0; outline: 0; background: none; max-width: 260px; }
.tracks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.track { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.track.playing { border-color: var(--teal-2); background: var(--teal-soft); }
.tr-play { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--teal); height: 40px; padding: 0 6px; border-radius: 10px; }
.tr-play:hover { background: var(--teal-soft); }
.tr-no { font-weight: 800; font-size: .84rem; color: var(--muted); min-width: 22px; }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tr-main small { color: var(--muted); font-size: .8rem; }
.tr-ar { font: 400 1.15rem/1.4 var(--f-ar-ui); color: var(--teal-deep); }
[data-theme="dark"] .tr-ar { color: var(--teal); }
.tr-dl { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.tr-dl:hover { background: var(--sogan-soft); color: var(--sogan); }
.lp-card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.lp-who { display: flex; align-items: center; gap: 14px; text-align: start; }
.lp-who small { display: block; color: var(--muted); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lp-others h2 { font-size: 1.2rem; margin: 26px 0 10px; }
.rc-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.rc-mini a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.rc-mini a:hover { border-color: var(--teal-2); color: inherit; }

/* ---------- info ---------- */
.prose { padding: 22px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.prose h2 { font-size: 1.2rem; margin: 18px 0 6px; color: var(--sogan); }
.prose section:first-child h2 { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--teal); text-decoration: underline; }
.source-card { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--gold-soft); border: 1px solid var(--line); }
.sc-label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sogan); }
.source-card a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.source-card { flex-wrap: wrap; }
.source-card a small { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { text-align: center; padding: 60px 0; }
.big-num { font: 700 5rem/1 var(--f-head); color: var(--gold-2); }

/* ---------- kaki situs ---------- */
.sitefoot { margin-top: 30px; background: linear-gradient(180deg, #2a1a0e, #1d1209); color: #e9dcc6; }
[data-theme="dark"] .sitefoot { background: linear-gradient(180deg, #0e0905, #0a0603); }
.sitefoot .tumpal { background-color: var(--bg); }
.foot-verse { text-align: center; padding: 34px 0 20px; border-bottom: 1px solid rgba(233, 201, 127, .18); }
.foot-ar { font: 400 1.9rem/1.8 var(--f-ar-osm); color: var(--gold-3); }
.foot-tr { margin: 6px auto 0; max-width: 640px; color: #d7c7ad; font-style: italic; }
.foot-tr span { font-style: normal; color: var(--gold-2); font-weight: 700; font-size: .86rem; margin-inline-start: 4px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 26px; padding: 30px 0 20px; }
.foot-brand .brand-text b { color: #fff6e6; }
.foot-brand .brand-text b em { color: var(--gold-3); }
.foot-brand .brand-text small { color: #bba98e; }
.foot-brand p { color: #c9b89c; font-size: .9rem; margin-top: 12px; }
.foot-cols nav { display: flex; flex-direction: column; gap: 6px; }
.foot-cols h2 { margin: 0 0 6px; font: 800 .78rem/1.4 var(--f-ui); color: var(--gold-3); text-transform: uppercase; letter-spacing: .1em; }
.foot-cols nav a { color: #e2d3bb; font-size: .9rem; }
.foot-cols nav a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 0 26px; border-top: 1px solid rgba(233, 201, 127, .18); font-size: .84rem; color: #b8a68b; }
.copy { margin: 0; }
.foot-legal { display: flex; gap: 14px; }
.foot-legal a:hover { color: #fff; }

/* ---------- pemutar ---------- */
.player, .splayer { position: fixed; inset-inline: 0; bottom: 14px; z-index: 55; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.player-in, .sp-in { pointer-events: auto; display: flex; align-items: center; gap: 8px; width: min(720px, 100%); padding: 8px 12px; border-radius: 18px;
  background: var(--teal-deep); color: #f3ead8; box-shadow: 0 20px 40px -16px rgba(0,0,0,.55); border: 1px solid rgba(233, 201, 127, .3); }
[data-theme="dark"] .player-in, [data-theme="dark"] .sp-in { background: #0b2b25; }
.player .iconbtn, .splayer .iconbtn { color: #f3ead8; }
.player .iconbtn:hover, .splayer .iconbtn:hover { background: rgba(255,255,255,.1); color: #fff; }
.pbtn { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gold-2); color: #2a1a0b; flex: none; }
.player-info, .sp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.player-info b, .sp-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info small, .sp-info small { color: #b9d4cc; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-progress { width: 110px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.player-progress span { display: block; height: 100%; width: 0; background: var(--gold-3); }
.sp-seek { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: #b9d4cc; }
.sp-seek input { width: 140px; accent-color: var(--gold-2); }
.js-sp-repeat[aria-pressed="true"] { color: var(--gold-3) !important; background: rgba(255,255,255,.12) !important; }
body.has-splayer { padding-bottom: 80px; }

/* ---------- pengaturan ---------- */
dialog.settings { border: 0; padding: 0; border-radius: 22px; width: min(520px, 100% - 24px); max-height: calc(100vh - 40px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
dialog.settings::backdrop { background: rgba(30, 18, 8, .55); backdrop-filter: blur(3px); }
.settings-in { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.settings-head h2 { margin: 0; font-size: 1.25rem; }
.settings-body { overflow: auto; padding: 6px 18px 14px; }
.settings-body section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-body section:last-child { border-bottom: 0; }
.settings-body h3 { margin: 0 0 8px; font: 800 .78rem/1.4 var(--f-ui); color: var(--sogan); text-transform: uppercase; letter-spacing: .08em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); font-size: .86rem; font-weight: 600; }
.seg b { font-size: 1.4rem; font-weight: 400; line-height: 1.7; }
.seg input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.seg input:focus-visible + span { outline: 2px solid var(--teal-2); }
.langgroup { margin-bottom: 8px; }
.langname { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 6px 0 2px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--teal-2); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-weight: 600; font-size: .92rem; }
.field select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 10px; }
.field input[type=range] { accent-color: var(--teal); }
.field output { color: var(--muted); font-weight: 500; }
.settings-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70;
  padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .9rem; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- navigasi bawah (ponsel) ---------- */
.bottomnav { display: none; }

/* ---------- responsif ---------- */
@media (max-width: 1080px) {
  .topsearch { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .js-menu { display: grid; }
  .mainnav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; padding: 10px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 10px 12px; }
  .home-top { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar-in { min-height: 60px; gap: 8px; }
  .brand .logo { width: 38px; height: 38px; }
  .brand-text b { font-size: 1.12rem; }
  .brand-text small { display: none; }
  .iconbtn { width: 38px; height: 38px; }
  .hero-in { padding: 22px 0 40px; }
  .hero-bis { font-size: 1.45rem; }
  .hero-lead { font-size: .95rem; }
  .hero-search { padding: 6px 6px 6px 12px; }
  .hero-search .btn { padding: 0 14px; }
  .quick a { font-size: .84rem; padding: 6px 12px; }
  .stats b { font-size: 1.1rem; }
  .daily { padding: 20px 16px 18px; }
  .filter { min-width: 0; width: 100%; }
  .sura-grid { grid-template-columns: 1fr; }
  .ayah { padding: 14px 14px 16px; border-radius: 16px; }
  .single-list .ayah { padding: 16px; }
  .ar { line-height: 2.05; }
  .tool { width: 34px; height: 34px; }
  .ayah-ref { display: none; }
  .tf-card { padding: 18px 16px; }
  .sura-about, .about, .prose { padding: 18px 16px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pg-center { grid-column: 1 / -1; grid-row: 1; }
  .pg.ghost { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .mushaf-nav { grid-template-columns: 1fr; }
  .mn { display: none; }
  .mushaf { grid-column: 1; }
  .mushaf-text { padding: 6px 8px; }
  .player-progress, .sp-seek { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: .72rem; font-weight: 700; color: var(--muted); }
  .bottomnav a.on { color: var(--teal); }
  body:has(.bottomnav) { padding-bottom: 64px; }
  body:has(.bottomnav) .player, body:has(.bottomnav) .splayer { bottom: 74px; }
  .rc-head { flex-direction: column; text-align: center; }
  .big-search { flex-wrap: wrap; }
  .big-search select { flex: 1; }
  .goto label { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .topbar, .sitefoot, .toolbar, .ayah-tools, .bottomnav, .player, .splayer, .tafsir { display: none !important; } .ayah { break-inside: avoid; border: 0; } }
