/* =====================================================================
   نور القرآن — Core design system
   Tokens · Base · Typography · Buttons · Cards · Header · Footer
   Loader · Mini player · Utilities · Dark mode · RTL/LTR (logical props)
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --nq-green-950: #041a14;
  --nq-green-900: #082920;
  --nq-green-850: #0b3127;
  --nq-green-800: #0e3b2e;
  --nq-green-700: #14503f;
  --nq-green-600: #1b6a53;
  --nq-green-500: #2a8467;
  --nq-green-100: #e4efe9;
  --nq-gold-700: #8f6c2c;
  --nq-gold-600: #a8823a;
  --nq-gold-500: #c3a05a;
  --nq-gold-400: #d6b878;
  --nq-gold-300: #e6cf9c;
  --nq-gold-100: #f6edd8;
  --nq-ivory: #fbf8f1;
  --nq-cream: #f4eee1;
  --nq-sand: #ebe2cf;

  /* semantic (light) */
  --bg: #f8f4ea;
  --bg-soft: #f2ecdd;
  --surface: #fffdf8;
  --surface-2: #faf5ea;
  --surface-3: #f1e9d6;
  --text: #17241f;
  --text-2: #3d4c45;
  --muted: #6c7a72;
  --border: rgba(120, 96, 50, .16);
  --border-strong: rgba(120, 96, 50, .28);
  --primary: var(--nq-green-800);
  --primary-hover: var(--nq-green-700);
  --on-primary: #fdf9ef;
  --accent: var(--nq-gold-500);
  --accent-strong: var(--nq-gold-600);
  --accent-soft: var(--nq-gold-100);
  --heading: var(--nq-green-900);
  --link: var(--nq-green-600);
  --quran-ink: #102a21;
  --success: #2d8a5f;
  --danger: #b4483c;
  --shadow-sm: 0 1px 2px rgba(23, 36, 31, .05), 0 2px 8px rgba(23, 36, 31, .04);
  --shadow: 0 6px 24px -6px rgba(16, 44, 34, .12), 0 2px 6px rgba(16, 44, 34, .05);
  --shadow-lg: 0 24px 60px -18px rgba(8, 41, 32, .30), 0 8px 20px -10px rgba(8, 41, 32, .15);
  --glass: rgba(255, 253, 248, .72);
  --glass-border: rgba(255, 255, 255, .5);
  --overlay: linear-gradient(180deg, rgba(4, 26, 20, 0) 30%, rgba(4, 26, 20, .88) 100%);
  --pattern-opacity: .06;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --font-body: 'Tajawal', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-display: 'Amiri', 'Cairo', serif;
  --font-quran: 'Amiri Quran', 'Amiri', serif;

  --header-h: 132px;
  --header-h-compact: 70px;
  --player-h: 0px;
  --container: 1280px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .35s;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #06120e;
  --bg-soft: #0a1a15;
  --surface: #0d1f19;
  --surface-2: #11271f;
  --surface-3: #163126;
  --text: #ece5d5;
  --text-2: #c9c3b3;
  --muted: #93a39a;
  --border: rgba(214, 184, 120, .12);
  --border-strong: rgba(214, 184, 120, .24);
  --primary: #1f7a5e;
  --primary-hover: #26906f;
  --on-primary: #fffaf0;
  --accent: var(--nq-gold-400);
  --accent-strong: var(--nq-gold-300);
  --accent-soft: rgba(214, 184, 120, .12);
  --heading: #f3ead3;
  --link: var(--nq-gold-300);
  --quran-ink: #efe6cf;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 8px 28px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 28px 70px -20px rgba(0, 0, 0, .7);
  --glass: rgba(13, 31, 25, .72);
  --glass-border: rgba(214, 184, 120, .14);
  --pattern-opacity: .045;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-compact) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: var(--player-h);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
html[lang="en"] body { line-height: 1.7; letter-spacing: .005em; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.25; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--nq-gold-300); color: var(--nq-green-950); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button { font-family: inherit; }
.container-nq { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 3vw, 28px); }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 3000; background: var(--accent); color: var(--nq-green-950); padding: 10px 18px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.text-muted-nq { color: var(--muted) !important; }
.text-gold { color: var(--accent) !important; }
.bg-surface { background: var(--surface); }
.quran-text { font-family: var(--font-quran); color: var(--quran-ink); line-height: 2.3; direction: rtl; text-align: right; }
.ar-only { direction: rtl; }
.num { font-feature-settings: "tnum"; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* geometric pattern background (inline SVG, 8-point star) */
.nq-pattern { position: relative; isolation: isolate; }
.nq-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--pattern-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23a8823a' stroke-width='1.1'%3E%3Cpath d='M40 6l9.9 24.1L74 40l-24.1 9.9L40 74l-9.9-24.1L6 40l24.1-9.9z'/%3E%3Cpath d='M16 16h48v48H16z' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.nq-pattern-light::before { opacity: .09; filter: brightness(1.6); }

/* ---------- 3. Section titles & ornaments ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.centered { flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  color: var(--accent-strong); text-transform: uppercase; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
[dir="rtl"] .eyebrow::before { background: linear-gradient(-90deg, var(--accent), transparent); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.35rem); margin-bottom: 10px; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0; font-size: 1.04rem; }
.section-head.centered .section-sub { margin-inline: auto; }
.ornament-title { display: inline-flex; align-items: center; gap: 18px; }
.ornament-title::before, .ornament-title::after {
  content: ""; width: clamp(40px, 8vw, 110px); height: 12px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='12' viewBox='0 0 110 12'%3E%3Cpath d='M0 6h88' stroke='%23c3a05a' stroke-width='1'/%3E%3Cpath d='M96 1l5 5-5 5-5-5z' fill='%23c3a05a'/%3E%3Ccircle cx='106' cy='6' r='2' fill='%23c3a05a'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ornament-title::before { transform: scaleX(1); }
.ornament-title::after { transform: scaleX(-1); }
.divider-orn { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--accent); margin: 18px 0; }
.divider-orn::before, .divider-orn::after { content: ""; height: 1px; flex: 1; max-width: 120px; background: linear-gradient(90deg, transparent, var(--accent)); }
.divider-orn::after { transform: scaleX(-1); }

/* ---------- 4. Buttons ---------- */
.btn-nq {
  --b-bg: var(--primary); --b-fg: var(--on-primary); --b-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.6em; border-radius: var(--radius-pill); border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.3;
  cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn-nq::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-nq:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(8, 41, 32, .5); color: var(--b-fg); background: var(--primary-hover); }
.btn-nq:hover::after { transform: translateX(120%); }
.btn-nq:active { transform: translateY(0) scale(.98); }
.btn-nq i { font-size: 1.1em; }
.btn-gold { --b-bg: linear-gradient(135deg, var(--nq-gold-300), var(--nq-gold-500) 55%, var(--nq-gold-600)); --b-fg: var(--nq-green-950); background: var(--b-bg); }
.btn-gold:hover { background: linear-gradient(135deg, var(--nq-gold-300), var(--nq-gold-400)); color: var(--nq-green-950); box-shadow: 0 12px 30px -12px rgba(195, 160, 90, .8); }
.btn-outline { --b-bg: transparent; --b-fg: var(--heading); --b-bd: var(--border-strong); }
.btn-outline:hover { background: var(--surface); color: var(--heading); border-color: var(--accent); }
.btn-glass { --b-bg: rgba(255, 255, 255, .1); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-soft { --b-bg: var(--accent-soft); --b-fg: var(--heading); }
.btn-soft:hover { background: var(--nq-gold-300); color: var(--nq-green-950); }
.btn-sm-nq { padding: .5em 1.1em; font-size: .88rem; }
.btn-lg-nq { padding: .95em 2em; font-size: 1.05rem; }
.icon-btn {
  width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border-strong); color: var(--heading); cursor: pointer; font-size: 1.1rem;
  transition: all .25s var(--ease);
}
.icon-btn:hover { background: var(--accent); color: var(--nq-green-950); border-color: var(--accent); transform: translateY(-2px); }
.icon-btn.is-active { background: var(--accent); color: var(--nq-green-950); border-color: var(--accent); }
.icon-btn-sm { width: 34px; height: 34px; font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-family: var(--font-head); color: var(--link); font-size: .95rem; }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(-5px); }
[dir="ltr"] .link-arrow:hover i { transform: translateX(5px); }
[dir="ltr"] .flip-ltr { transform: scaleX(-1); display: inline-block; }

/* chips / tags */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: .38em .95em; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .2s var(--ease); white-space: nowrap; font-family: var(--font-head);
}
.chip:hover { border-color: var(--accent); color: var(--heading); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.badge-nq { display: inline-flex; align-items: center; gap: 5px; padding: .25em .75em; font-size: .76rem; font-weight: 700; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-strong); font-family: var(--font-head); }
.badge-gold { background: linear-gradient(135deg, var(--nq-gold-300), var(--nq-gold-500)); color: var(--nq-green-950); }
.badge-green { background: rgba(27, 106, 83, .12); color: var(--nq-green-600); }
[data-theme="dark"] .badge-green { color: #7fd1ae; background: rgba(127, 209, 174, .1); }
.badge-dark { background: rgba(4, 26, 20, .6); color: #f5e7c4; backdrop-filter: blur(6px); }

/* ---------- 5. Forms ---------- */
.form-nq .form-control, .form-nq .form-select, .input-nq {
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text); border-radius: var(--radius-sm);
  padding: .72em 1em; font-size: 1rem; font-family: var(--font-body); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-nq .form-control:focus, .form-nq .form-select:focus, .input-nq:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(195, 160, 90, .18); outline: none; background: var(--surface); color: var(--text); }
.form-nq .form-label { font-weight: 700; font-family: var(--font-head); font-size: .92rem; color: var(--heading); }
.form-control::placeholder, .input-nq::placeholder { color: var(--muted); opacity: .85; }
.form-select { background-position: left .9rem center; }
[dir="ltr"] .form-select { background-position: right .9rem center; }
select.input-nq { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a8823a' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 38px; }
[dir="ltr"] select.input-nq { background-position: right 14px center; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > i { position: absolute; inset-inline-start: 18px; color: var(--accent-strong); font-size: 1.1rem; pointer-events: none; }
.search-field .input-nq { padding-inline-start: 50px; border-radius: var(--radius-pill); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-range::-webkit-slider-thumb { background: var(--accent); }
.form-range::-moz-range-thumb { background: var(--accent); }

/* ---------- 6. Cards ---------- */
.card-nq {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; height: 100%;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background-color .5s;
}
.card-nq.hoverable:hover, a.card-nq:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-nq .card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-3); }
.card-nq .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card-nq:hover .card-media img { transform: scale(1.06); }
.card-nq .card-body-nq { padding: 20px 22px 22px; }
.card-nq .card-title-nq { font-size: 1.12rem; margin-bottom: 6px; line-height: 1.55; }
.card-nq .card-title-nq a { color: inherit; }
.card-nq .card-title-nq a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-nq .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: .88rem; }
.card-nq .card-meta i { color: var(--accent-strong); margin-inline-end: 4px; }
.card-nq .card-actions { position: relative; z-index: 2; }
.card-nq .play-fab {
  position: absolute; inset-inline-end: 16px; bottom: 16px; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(255, 253, 248, .92); color: var(--nq-green-800); box-shadow: 0 8px 20px -6px rgba(0,0,0,.35);
  transition: transform .3s var(--ease), background .3s; cursor: pointer;
}
.card-nq .play-fab:hover { transform: scale(1.1); background: var(--nq-gold-300); }
.card-nq .play-fab.is-playing { background: var(--nq-gold-400); }
.fav-btn {
  position: relative; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; transition: all .25s var(--ease);
}
.fav-btn:hover { color: var(--danger); border-color: var(--danger); }
.fav-btn.is-fav { color: #fff; background: var(--danger); border-color: var(--danger); animation: nq-pop .45s var(--ease); }
.media-fav { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255,253,248,.9); border-color: transparent; }
.media-badge { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }
.media-duration { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2; }

/* overlay (photo) card — like the reference category cards */
.card-overlay {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.2; color: #fff; isolation: isolate;
  box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card-overlay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.card-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,26,20,.05) 25%, rgba(4,26,20,.92) 100%); transition: opacity .5s; }
.card-overlay::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(230, 207, 156, 0); border-radius: calc(var(--radius) - 6px); transition: border-color .5s var(--ease), inset .5s var(--ease); pointer-events: none; }
.card-overlay:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.card-overlay:hover img { transform: scale(1.08); }
.card-overlay:hover::after { border-color: rgba(230, 207, 156, .55); inset: 10px; }
.card-overlay .co-body { position: absolute; inset-inline: 0; bottom: 0; padding: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.card-overlay .co-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.45; color: #fff; margin: 0; }
.card-overlay .co-sub { color: var(--nq-gold-300); font-size: .85rem; font-weight: 600; }
.card-overlay .co-arrow { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1.5px solid rgba(230,207,156,.7); display: grid; place-items: center; color: var(--nq-gold-300); transition: all .35s var(--ease); }
.card-overlay:hover .co-arrow { background: var(--nq-gold-400); color: var(--nq-green-950); border-color: var(--nq-gold-400); }

/* glass panel */
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid var(--glass-border); }

/* panel (green, like "featured content" in reference) */
.panel-green {
  position: relative; background: radial-gradient(120% 120% at 100% 0%, var(--nq-green-700) 0%, var(--nq-green-900) 55%, var(--nq-green-950) 100%);
  color: #ede4cc; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; border: 1px solid rgba(214, 184, 120, .18);
}
.panel-green h2, .panel-green h3, .panel-green h4 { color: #f6ecd2; }
.panel-green .text-muted-nq { color: rgba(237, 228, 204, .7) !important; }

/* list item row (lessons list) */
.list-row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--border-strong); position: relative; }
.list-row:last-child { border-bottom: 0; }
.list-row .lr-thumb { width: 116px; aspect-ratio: 16/11; border-radius: 12px; overflow: hidden; flex: none; position: relative; }
.list-row .lr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.list-row:hover .lr-thumb img { transform: scale(1.08); }
.list-row .lr-thumb .bi-play-circle-fill { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.8rem; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.list-row .lr-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--heading); margin: 0 0 4px; line-height: 1.5; }
.list-row .lr-title a { color: inherit; }
.list-row .lr-title a::after { content: ""; position: absolute; inset: 0; }

/* stat */
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--accent); line-height: 1.1; }

/* ---------- 7. Header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 1040; color: #f4ead2; transition: transform .45s var(--ease), background-color .45s, box-shadow .45s; }
.site-header .hdr-top { transition: height .45s var(--ease), opacity .3s, padding .45s; height: 76px; display: flex; align-items: center; overflow: hidden; }
.site-header .hdr-nav { border-top: 1px solid rgba(214, 184, 120, .14); transition: background .45s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 26, 20, .85), rgba(4, 26, 20, .55)); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); opacity: 0; transition: opacity .45s; }
body:not(.has-hero) .site-header::before, .site-header.is-scrolled::before { opacity: 1; background: linear-gradient(180deg, rgba(6, 34, 26, .96), rgba(8, 41, 32, .94)); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.site-header.is-scrolled .hdr-top { height: 0; opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled .hdr-nav { border-top-color: transparent; }
.site-header .mini-brand { display: none; }
.site-header.is-scrolled .mini-brand { display: flex; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #f6e7c1; text-decoration: none; }
.brand:hover { color: #fff3d6; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; background: linear-gradient(180deg, #f8e6b8, #c9a45c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-size: .72rem; color: rgba(244, 234, 210, .72); letter-spacing: .02em; font-family: var(--font-head); }
html[lang="en"] .brand-name { font-family: "Amiri", serif; font-size: 1.5rem; white-space: nowrap; }
@media (max-width: 575.98px) { html[lang="en"] .brand-name { font-size: 1.2rem; } }
.hdr-search {
  flex: 1; max-width: 460px; margin-inline: auto; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 46px;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); border: 1px solid rgba(214, 184, 120, .25); color: rgba(244, 234, 210, .75);
  cursor: text; transition: all .3s; font-size: .95rem;
}
.hdr-search:hover { background: rgba(255, 255, 255, .13); border-color: rgba(214, 184, 120, .5); }
.hdr-search kbd { margin-inline-start: auto; background: rgba(255,255,255,.1); color: inherit; font-size: .72rem; border-radius: 6px; padding: 2px 7px; font-family: var(--font-body); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.hdr-btn {
  height: 42px; min-width: 42px; padding: 0 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(214, 184, 120, .25); color: #f4ead2; cursor: pointer; font-size: 1.05rem; transition: all .25s var(--ease); font-family: var(--font-head); font-weight: 700;
}
.hdr-btn span { font-size: .82rem; }
.hdr-btn:hover { background: var(--nq-gold-400); border-color: var(--nq-gold-400); color: var(--nq-green-950); }
.hdr-btn .bi-moon-stars { display: inline-block; }
.hdr-btn .bi-sun { display: none; }
[data-theme="dark"] .hdr-btn .bi-moon-stars { display: none; }
[data-theme="dark"] .hdr-btn .bi-sun { display: inline-block; }
.hdr-btn .fav-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 10px; background: var(--nq-gold-400); color: var(--nq-green-950); font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.hdr-btn { position: relative; }

.main-nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; height: 56px; }
.main-nav > li { position: relative; height: 100%; display: flex; align-items: center; }
.main-nav > li > a, .main-nav > li > button {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 10px; background: none; border: 0;
  color: rgba(244, 234, 210, .86); font-family: var(--font-head); font-weight: 600; font-size: .93rem; white-space: nowrap; cursor: pointer; transition: color .2s, background .2s;
}
.main-nav > li > a::after, .main-nav > li > button::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--nq-gold-400); transform: scaleX(0); transition: transform .35s var(--ease); }
.main-nav > li > a:hover, .main-nav > li > button:hover, .main-nav > li:focus-within > button { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav > li > a:hover::after, .main-nav > li > a.is-active::after, .main-nav > li > button.is-active::after { transform: scaleX(1); }
.main-nav > li > a.is-active, .main-nav > li > button.is-active { color: var(--nq-gold-300); }
.main-nav .bi-chevron-down { font-size: .7rem; transition: transform .3s; }
.main-nav > li:hover .bi-chevron-down, .main-nav > li.is-open .bi-chevron-down { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% - 4px); inset-inline-start: -10px; min-width: 300px; padding: 12px; border-radius: 20px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top; transition: all .3s var(--ease);
}
.mega.mega-wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.main-nav > li:hover > .mega, .main-nav > li.is-open > .mega, .main-nav > li:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--text); transition: background .2s; }
.mega a:hover { background: var(--surface-2); color: var(--heading); }
.mega a i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-strong); font-size: 1.1rem; }
.mega a strong { display: block; font-family: var(--font-head); font-size: .93rem; color: var(--heading); }
.mega a small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.nav-toggle { display: none; }

/* offcanvas mobile menu */
.offcanvas-nq { background: var(--surface); color: var(--text); width: min(360px, 88vw) !important; border: 0 !important; }
.offcanvas-nq .offcanvas-header { background: linear-gradient(160deg, var(--nq-green-800), var(--nq-green-950)); color: #f4ead2; padding: 20px; }
.offcanvas-nq .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.m-nav { list-style: none; padding: 0; margin: 0; }
.m-nav > li { border-bottom: 1px solid var(--border); }
.m-nav a, .m-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 6px; color: var(--heading); font-family: var(--font-head); font-weight: 600; background: none; border: 0; text-align: start; }
.m-nav a i:first-child, .m-nav button i:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); }
.m-nav .m-sub { list-style: none; padding: 0 0 10px; margin: 0; padding-inline-start: 46px; display: none; }
.m-nav li.is-open .m-sub { display: block; }
.m-nav .m-sub a { padding: 8px 4px; font-weight: 500; color: var(--text-2); font-size: .95rem; }
.m-nav button .bi-chevron-down { margin-inline-start: auto; transition: transform .3s; }
.m-nav li.is-open button .bi-chevron-down { transform: rotate(180deg); }
.m-nav a.is-active { color: var(--accent-strong); }

@media (max-width: 1199.98px) {
  :root { --header-h: 72px; }
  .site-header .hdr-nav { display: none; }
  .site-header .hdr-top { height: 72px !important; opacity: 1 !important; }
  .nav-toggle { display: inline-flex; }
  .hdr-search { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.45rem; }
}
@media (max-width: 575.98px) {
  .brand-tag { display: none; }
  .hdr-btn.hide-xs { display: none; }
  .hdr-actions { gap: 6px; }
  .hdr-btn { height: 38px; min-width: 38px; padding: 0 9px; }
}

/* search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 26, 20, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-box { width: min(720px, 100%); background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-16px) scale(.98); transition: transform .4s var(--ease); border: 1px solid var(--border); }
.search-overlay.is-open .search-box { transform: none; }
.search-box .sb-input { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.search-box .sb-input i { color: var(--accent-strong); font-size: 1.3rem; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 1.15rem; color: var(--text); font-family: var(--font-body); }
.search-box .sb-results { max-height: 56vh; overflow-y: auto; padding: 10px; }
.sb-group-title { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: .78rem; padding: 10px 12px 4px; text-transform: uppercase; letter-spacing: .04em; }
.sb-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.sb-item:hover, .sb-item.is-focused { background: var(--surface-2); color: var(--heading); }
.sb-item .sb-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
.sb-item small { color: var(--muted); display: block; font-size: .8rem; }
.sb-item mark { background: var(--nq-gold-300); color: var(--nq-green-950); padding: 0 2px; border-radius: 3px; }
.sb-empty { padding: 30px; text-align: center; color: var(--muted); }
.sb-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 12px 4px; }

/* ---------- 8. Inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #f2e9d2; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(90% 140% at 85% 0%, #1b6a53 0%, var(--nq-green-900) 45%, var(--nq-green-950) 100%); overflow: hidden;
}
.page-hero .ph-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; mix-blend-mode: luminosity; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 60px; z-index: -1; background: var(--bg); clip-path: ellipse(70% 100% at 50% 100%); }
.page-hero h1 { color: #fbf1d8; font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 12px; }
.page-hero .ph-sub { color: rgba(242, 233, 210, .82); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 680px; }
.page-hero .ph-ornament { position: absolute; inset-inline-end: -60px; top: 50%; transform: translateY(-40%); width: 420px; opacity: .1; z-index: -1; pointer-events: none; }
.page-hero.ph-compact { padding-bottom: clamp(44px, 5vw, 64px); }
.breadcrumb-nq { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .88rem; font-family: var(--font-head); }
.breadcrumb-nq li { display: inline-flex; align-items: center; gap: 6px; color: rgba(242, 233, 210, .65); }
.breadcrumb-nq li + li::before { content: "\F284"; font-family: 'bootstrap-icons'; font-size: .7rem; opacity: .7; }
[dir="ltr"] .breadcrumb-nq li + li::before { content: "\F285"; }
.breadcrumb-nq a { color: var(--nq-gold-300); }
.breadcrumb-nq a:hover { color: #fff; }
.breadcrumb-light li { color: var(--muted); }
.breadcrumb-light a { color: var(--link); }

/* ---------- 9. Footer ---------- */
.site-footer { position: relative; isolation: isolate; background: linear-gradient(180deg, var(--nq-green-900), var(--nq-green-950)); color: rgba(237, 228, 204, .78); padding-top: 90px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; background-image: inherit; }
.footer-skyline { position: absolute; inset-inline-start: 0; bottom: 70px; width: min(560px, 60%); opacity: .2; z-index: -1; pointer-events: none; }
.footer-top-wave { position: absolute; top: -1px; inset-inline: 0; height: 50px; background: var(--bg); clip-path: ellipse(65% 100% at 50% 0%); }
.site-footer h3 { color: #f4e6c3; font-size: 1.02rem; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.site-footer h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 30px; height: 2px; background: var(--nq-gold-500); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: rgba(237, 228, 204, .72); font-size: .94rem; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, transform .2s; }
.footer-links a:hover { color: var(--nq-gold-300); transform: translateX(-4px); }
[dir="ltr"] .footer-links a:hover { transform: translateX(4px); }
.footer-about { font-size: .95rem; line-height: 1.9; max-width: 340px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(214, 184, 120, .35); color: #f4e6c3; transition: all .3s var(--ease); }
.social a:hover { background: var(--nq-gold-400); color: var(--nq-green-950); transform: translateY(-3px); border-color: var(--nq-gold-400); }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(214, 184, 120, .14); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom a { color: rgba(237, 228, 204, .72); }
.footer-news { background: rgba(255,255,255,.05); border: 1px solid rgba(214,184,120,.18); border-radius: 18px; padding: 18px; }
.footer-news input { background: rgba(255,255,255,.08); border: 1px solid rgba(214,184,120,.25); color: #fff; border-radius: 999px; padding: 10px 16px; width: 100%; }
.footer-news input::placeholder { color: rgba(237,228,204,.55); }
.to-top { position: fixed; inset-inline-start: 20px; bottom: calc(20px + var(--player-h)); z-index: 1030; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--nq-gold-300), var(--nq-gold-500)); color: var(--nq-green-950); font-size: 1.2rem; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .4s var(--ease); cursor: pointer; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { position: absolute; inset: -3px; width: 54px; height: 54px; transform: rotate(-90deg); }
.to-top svg circle { fill: none; stroke: var(--nq-green-800); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset .1s linear; }

/* ---------- 10. Loader ---------- */
.nq-loader { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #0f3d2e 0%, #062018 60%, #031410 100%); transition: opacity .7s var(--ease), visibility .7s; }
.nq-loader.is-done { opacity: 0; visibility: hidden; }
.nq-loader .ld-inner { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.nq-loader .ld-star { position: absolute; inset: 0; animation: nq-spin 16s linear infinite; }
.nq-loader .ld-star.rev { inset: 22px; animation-direction: reverse; animation-duration: 11s; opacity: .7; }
.nq-loader .ld-logo { width: 84px; height: 84px; animation: nq-breathe 2.4s ease-in-out infinite; }
.nq-loader .ld-name { position: absolute; top: calc(100% + 18px); inset-inline: -80px; text-align: center; font-family: var(--font-display); font-size: 1.7rem; color: #e8cf96; }
.nq-loader .ld-bar { position: absolute; top: calc(100% + 76px); left: 50%; width: 160px; height: 3px; margin-left: -80px; background: rgba(214,184,120,.18); border-radius: 3px; overflow: hidden; }
.nq-loader .ld-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a8823a, #f0d9a2); border-radius: 3px; transition: width .3s var(--ease); }
.nq-loader .ld-pct { position: absolute; top: calc(100% + 88px); inset-inline: 0; text-align: center; color: rgba(232,207,150,.6); font-size: .8rem; font-family: var(--font-head); letter-spacing: .1em; }

/* ---------- 11. Mini player (global) ---------- */
.mini-player {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 1035; border-radius: 22px; color: #f2e9d2;
  background: linear-gradient(120deg, rgba(8, 41, 32, .96), rgba(4, 26, 20, .97)); border: 1px solid rgba(214, 184, 120, .22);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform: translateY(140%); transition: transform .55s var(--ease-out); max-width: 1180px; margin-inline: auto;
}
.mini-player.is-visible { transform: none; }
.mini-player .mp-progress { position: absolute; top: -8px; inset-inline: 22px; height: 18px; cursor: pointer; touch-action: none; z-index: 2; }
.mini-player .mp-progress::before { content: ""; position: absolute; inset-inline: 0; top: 7px; height: 4px; background: rgba(214,184,120,.22); border-radius: 4px; transition: height .2s, top .2s; }
.mini-player .mp-progress span { position: absolute; top: 7px; height: 4px; inset-inline-start: 0; width: 0; background: linear-gradient(90deg, var(--nq-gold-500), var(--nq-gold-300)); border-radius: 4px; transition: height .2s, top .2s; }
.mini-player .mp-progress:hover::before, .mini-player .mp-progress:hover span, .mini-player .mp-progress.is-drag::before, .mini-player .mp-progress.is-drag span { top: 6px; height: 6px; }
.mini-player .mp-thumb { position: absolute; inset-inline-end: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 0 4px rgba(214,184,120,.35); transform: scale(0); transition: transform .2s; }
.mini-player .mp-progress:hover .mp-thumb, .mini-player .mp-progress.is-drag .mp-thumb, .mini-player .mp-progress:focus-visible .mp-thumb { transform: scale(1); }
.mini-player .mp-tip { position: absolute; bottom: 20px; transform: translateX(-50%); padding: 3px 8px; border-radius: 8px; background: #fff3d6; color: #082920; font: 700 .75rem var(--font-head); direction: ltr; pointer-events: none; white-space: nowrap; }
.mp-skip { position: relative; }
.mp-skip small { position: absolute; font-size: .52rem; font-weight: 800; font-family: var(--font-head); top: 50%; left: 50%; transform: translate(-50%, -40%); }
.mp-skip i { font-size: 1.35rem; }
.mp-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.mp-cover { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--nq-gold-400), var(--nq-gold-600)); color: var(--nq-green-950); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; position: relative; }
.mp-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-player.is-playing .mp-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); animation: nq-pulse-ring 1.8s ease-out infinite; }
.mp-info { min-width: 0; flex: 1; }
.mp-title { font-family: var(--font-head); font-weight: 700; color: #fff4d8; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-sub { font-size: .82rem; color: rgba(242,233,210,.68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-time { font-size: .78rem; color: rgba(242,233,210,.6); font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mp-ctrls { display: flex; align-items: center; gap: 6px; }
.mp-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #f2e9d2; display: grid; place-items: center; font-size: 1.15rem; cursor: pointer; transition: all .2s; }
.mp-btn:hover { background: rgba(255,255,255,.1); color: var(--nq-gold-300); }
.mp-btn.is-on { color: var(--nq-gold-300); }
.mp-btn.mp-play { width: 50px; height: 50px; background: linear-gradient(135deg, var(--nq-gold-300), var(--nq-gold-500)); color: var(--nq-green-950); font-size: 1.5rem; }
.mp-btn.mp-play:hover { transform: scale(1.06); color: var(--nq-green-950); }
.mp-extra { display: flex; align-items: center; gap: 4px; }
.mp-vol { width: 90px; accent-color: var(--nq-gold-400); }
.mp-speed { background: rgba(255,255,255,.08); color: #f2e9d2; border: 1px solid rgba(214,184,120,.25); border-radius: 999px; font-size: .78rem; padding: 4px 10px; font-weight: 700; cursor: pointer; font-family: var(--font-head); }
[dir="rtl"] .mp-dir { transform: scaleX(-1); }
@media (max-width: 991.98px) { .mp-extra .mp-vol, .mp-extra .mp-vol-ic, .mp-time-wrap { display: none !important; } }
@media (max-width: 575.98px) { .mini-player .mp-progress { inset-inline: 14px; } .mini-player { inset-inline: 8px; bottom: 8px; border-radius: 18px; } .mp-row { gap: 10px; padding: 10px 12px; } .mp-btn { width: 36px; height: 36px; } .mp-btn.mp-play { width: 44px; height: 44px; } .mp-hide-xs { display: none !important; } }

/* ---------- 12. Toast ---------- */
.toast-stack { position: fixed; z-index: 4000; inset-inline-end: 20px; bottom: calc(24px + var(--player-h)); display: grid; gap: 10px; pointer-events: none; }
.toast-nq { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 380px; padding: 14px 18px; border-radius: 16px; background: var(--nq-green-900); color: #f2e9d2; box-shadow: var(--shadow-lg); border: 1px solid rgba(214,184,120,.25); font-size: .95rem; animation: nq-toast-in .45s var(--ease-out) both; }
.toast-nq i { color: var(--nq-gold-300); font-size: 1.25rem; }
.toast-nq.is-out { animation: nq-toast-out .35s var(--ease) forwards; }

/* ---------- 13. Reveal / animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.from-start { transform: translateX(32px); }
[dir="ltr"] .reveal.from-start { transform: translateX(-32px); }
.reveal.zoom { transform: scale(.94); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes nq-spin { to { transform: rotate(360deg); } }
@keyframes nq-breathe { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(232,207,150,0)); } 50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(232,207,150,.45)); } }
@keyframes nq-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes nq-pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(230,207,156,.55); } 100% { box-shadow: 0 0 0 14px rgba(230,207,156,0); } }
@keyframes nq-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes nq-toast-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes nq-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes nq-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes nq-shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes nq-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.eq { display: inline-flex; align-items: end; gap: 2px; height: 14px; }
.eq span { width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: nq-eq .9s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .2s; } .eq span:nth-child(3) { animation-delay: .4s; } .eq span:nth-child(4) { animation-delay: .1s; }
.is-paused .eq span { animation-play-state: paused; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 800px 100%; animation: nq-shimmer 1.4s linear infinite; border-radius: 10px; min-height: 1em; }

/* theme switch transition */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), fill .5s !important; }

/* page transition */
body.page-leave main, body.page-leave .page-hero { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.reduce-motion .reveal { opacity: 1; transform: none; }

/* ---------- 14. Misc shared components ---------- */
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--accent); display: block; margin-bottom: 12px; }
.tabs-nq { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.tabs-nq button { border: 0; background: none; padding: 8px 18px; border-radius: var(--radius-pill); font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--text-2); cursor: pointer; transition: all .25s var(--ease); }
.tabs-nq button:hover { color: var(--heading); }
.tabs-nq button.is-active, .tabs-nq button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager button { min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer; }
.pager button.is-active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: default; }
.progress-nq { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.progress-nq > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nq-green-600), var(--nq-gold-400)); transition: width .8s var(--ease); }
.avatar-ini { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--nq-green-950); background: linear-gradient(135deg, var(--nq-gold-300), var(--nq-gold-500)); flex: none; font-size: 1.3rem; }
.sticky-side { position: sticky; top: calc(var(--header-h-compact) + 24px); }
.prose { font-size: 1.12rem; line-height: 2.05; color: var(--text); }
html[lang="en"] .prose { line-height: 1.85; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .7em; }
.prose h3 { font-size: 1.28rem; margin: 1.8em 0 .6em; }
.prose p { margin-bottom: 1.25em; }
.prose blockquote, .ayah-box { margin: 1.8em 0; padding: 26px 28px; border-radius: var(--radius); background: var(--surface-2); border-inline-start: 4px solid var(--accent); position: relative; }
.ayah-box .quran-text { font-size: 1.6rem; margin: 0; text-align: center; }
.ayah-box cite, .prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: .9rem; color: var(--accent-strong); font-weight: 700; text-align: center; font-family: var(--font-head); }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.kbd-hint { font-size: .78rem; color: var(--muted); }
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 14px; padding: 12px 16px; }
.demo-note i { color: var(--accent-strong); }
.modal-nq .modal-content { background: var(--surface); color: var(--text); border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.modal-nq .modal-header { border-color: var(--border); }
.modal-nq .modal-footer { border-color: var(--border); }
[data-theme="dark"] .modal-nq .btn-close { filter: invert(1); }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }
hr.nq { border: 0; height: 1px; background: var(--border-strong); opacity: 1; margin: 28px 0; }
.table-nq { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-nq th { font-family: var(--font-head); font-size: .85rem; color: var(--muted); font-weight: 700; padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--border-strong); }
.table-nq td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-nq tr:hover td { background: var(--surface-2); }

/* bootstrap overrides to fit theme */
.dropdown-menu { background: var(--surface); border-color: var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.dropdown-item { color: var(--text); border-radius: 10px; padding: 8px 12px; }
.dropdown-item:hover, .dropdown-item.active { background: var(--surface-2); color: var(--heading); }
.accordion-nq .accordion-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px !important; overflow: hidden; margin-bottom: 10px; }
.accordion-nq .accordion-button { background: var(--surface); color: var(--heading); font-family: var(--font-head); font-weight: 700; box-shadow: none; }
.accordion-nq .accordion-button:not(.collapsed) { background: var(--surface-2); color: var(--heading); }
.accordion-nq .accordion-button::after { margin-inline-start: auto; margin-inline-end: 0; }
[data-theme="dark"] .accordion-nq .accordion-button::after { filter: invert(.8) sepia(1) saturate(2); }
.accordion-nq .accordion-body { color: var(--text-2); }

/* mini player — two rows on phones so the title stays readable and seek buttons fit */
@media (max-width: 575.98px) {
  .mini-player .mp-row { flex-wrap: wrap; row-gap: 4px; padding-top: 14px; }
  .mini-player .mp-info { flex: 1 1 calc(100% - 140px); order: 1; }
  .mini-player .mp-cover { order: 0; width: 44px; height: 44px; }
  .mini-player .mp-extra { order: 2; }
  .mini-player .mp-ctrls { order: 3; flex: 1 1 100%; justify-content: center; gap: 10px; }
  .mini-player .mp-ctrls .mp-hide-xs { display: grid !important; }
  .mini-player .mp-title { font-size: .92rem; }
}
.mini-player .mp-progress:focus-visible { outline: 2px solid var(--nq-gold-400); outline-offset: 2px; border-radius: 8px; }

/* ---------- Android app (html.in-app is set by app/web/app.js) ---------- */
html:not(.in-app) .nq-app-only { display: none !important; }
html.in-app .nq-web-only { display: none !important; }
