:root {
  --bg: #031a2d;
  --bg-deep: #010d1a;
  --bg-soft: #0a2c42;
  --panel: rgba(10, 32, 48, 0.42);
  --panel-strong: rgba(12, 40, 58, 0.7);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #edf9ff;
  --muted: rgba(237, 249, 255, 0.72);
  --muted-strong: rgba(237, 249, 255, 0.58);
  --accent: #8af6f3;
  --accent-strong: #6adce7;
  --neon: #7ef0b3;
  --navy: #071e34;
  --glow: rgba(138, 246, 243, 0.2);
  --highlight: #f5dda0;
  --highlight-soft: rgba(245, 221, 160, 0.18);
  --highlight-ink: #3f341f;
  --shadow: 0 30px 90px rgba(1, 13, 26, 0.6);
  --maxw: 1280px;
  --radius: 26px;
  --font-sans: 'Manrope', 'Segoe UI', sans-serif;
  --font-display: 'Newsreader', Georgia, serif;
  --font-ar: 'Noto Naskh Arabic', serif;
}

html[data-theme="light"] {
  --bg: #f5f4ed;
  --bg-deep: #e8f0eb;
  --bg-soft: #dceae3;
  --panel: rgba(255, 255, 252, 0.78);
  --panel-strong: rgba(255, 254, 247, 0.96);
  --line: rgba(23, 49, 63, 0.16);
  --ink: #17313f;
  --muted: rgba(23, 49, 63, 0.78);
  --muted-strong: rgba(23, 49, 63, 0.62);
  --accent: #167c82;
  --accent-strong: #218f88;
  --neon: #397657;
  --navy: #e8f0eb;
  --glow: rgba(22, 124, 130, 0.14);
  --highlight: #f1d58e;
  --highlight-soft: rgba(190, 143, 51, 0.16);
  --highlight-ink: #493719;
  --shadow: 0 30px 90px rgba(42, 73, 73, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 12% 0%, rgba(79, 170, 190, 0.1), transparent 26%),
    radial-gradient(circle at 88% 40%, rgba(88, 170, 156, 0.07), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--ink);
  overflow-x: hidden;
  transition: background 0.45s ease, color 0.45s ease;
  cursor: default;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.cursor-glow {
  position: fixed;
  left: var(--cursor-x, 50vw);
  top: var(--cursor-y, 30vh);
  z-index: 0;
  width: 26rem;
  height: 26rem;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 246, 243, 0.07), rgba(126, 240, 179, 0.025) 34%, transparent 70%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  transition: left 0.35s ease-out, top 0.35s ease-out;
  mix-blend-mode: screen;
}

html[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(66, 161, 157, 0.12), rgba(192, 163, 94, 0.05) 34%, transparent 70%); mix-blend-mode: multiply; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(103, 177, 171, 0.12), transparent 25%),
    radial-gradient(circle at 88% 40%, rgba(174, 185, 131, 0.09), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { background: none; border: none; cursor: pointer; }
svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--highlight); color: var(--highlight-ink); }

.wrap {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}

.liquid-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: background 0.45s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0.08) 18%,
    rgba(255, 255, 255, 0.02) 44%,
    rgba(255, 255, 255, 0.06) 82%,
    rgba(255, 255, 255, 0.24)
  );
  opacity: 0.8;
  pointer-events: none;
}

html[data-theme="light"] .liquid-glass {
  background: var(--panel);
  border-color: rgba(23, 49, 63, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.88), 0 16px 42px rgba(42, 73, 73, 0.08);
}

html[data-theme="light"] .liquid-glass::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 48%, rgba(255, 255, 255, 0.5));
}

.page-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('../share-thumb.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: blur(32px);
}

.share-fab {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: rgba(7, 30, 52, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.share-fab:hover {
  transform: translateY(-2px);
}

.share-fab.copied {
  background: rgba(126, 240, 179, 0.12);
  border-color: rgba(126, 240, 179, 0.5);
}

.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5.4rem;
  z-index: 49;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  color: var(--ink);
  background: rgba(7, 30, 52, 0.86);
  border-color: rgba(240, 223, 172, 0.22);
  box-shadow: 0 16px 36px rgba(1, 13, 26, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.25s ease, background 0.25s ease;
}

.back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.back-top:hover { color: var(--highlight); background: rgba(7, 30, 52, 0.98); transform: translateY(-0.25rem) scale(1.04); }
html[data-theme="light"] .back-top { background: rgba(255, 254, 247, 0.96); color: var(--ink); border-color: rgba(190, 143, 51, 0.24); }
html[data-theme="light"] .back-top:hover { background: #fff; color: var(--highlight); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(2, 16, 28, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.45s ease, border-color 0.45s ease;
}

html[data-theme="light"] .site-header { background: rgba(245, 244, 237, 0.86); border-bottom-color: rgba(23, 49, 63, 0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.brand-mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  overflow: visible;
  color: var(--accent);
  fill: rgba(138, 246, 243, 0.12);
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s ease, color 0.35s ease, filter 0.35s ease;
}

.brand:hover .brand-mark {
  color: var(--neon);
  transform: translateY(-2px) rotate(-3deg);
  filter: drop-shadow(0 0 10px rgba(138, 246, 243, 0.45));
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.4rem;
  box-shadow: 0 12px 36px rgba(1, 13, 26, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  background: rgba(7, 30, 52, 0.84);
  border-color: rgba(240, 223, 172, 0.2);
}

html[data-theme="light"] .main-nav { background: rgba(255, 254, 247, 0.96); border-color: rgba(190, 143, 51, 0.24); }

.main-nav a {
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.main-nav a:focus-visible,
.quick-dock a:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}

.main-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 0.25rem auto 0;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after { width: 1.2rem; }

.main-nav a { transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0 0.85rem;
  border-radius: 0.9rem;
  color: var(--ink);
  background: rgba(7, 30, 52, 0.84);
  border: 1px solid rgba(240, 223, 172, 0.2);
}

html[data-theme="light"] .menu-toggle { background: rgba(255, 254, 247, 0.96); border-color: rgba(190, 143, 51, 0.24); }

.menu-toggle span { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.menu-toggle:hover { color: var(--accent); transform: translateY(-2px); }


.quick-dock {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  z-index: 50;
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem;
  border-radius: 1.2rem;
  transform: translateY(-50%);
  box-shadow: 0 16px 45px rgba(1, 13, 26, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(7, 30, 52, 0.86);
  border-color: rgba(240, 223, 172, 0.2);
}

html[data-theme="light"] .quick-dock { background: rgba(255, 254, 247, 0.96); border-color: rgba(190, 143, 51, 0.24); }

.quick-dock a {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.quick-dock a span {
  position: absolute;
  right: calc(100% + 0.65rem);
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 0.68rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(0.4rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quick-dock a:hover { color: var(--accent); background: rgba(138, 246, 243, 0.1); transform: translateX(-3px); }
.quick-dock a:hover span { opacity: 1; transform: translateX(0); }

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 8rem 1rem 2rem;
}

.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(1, 13, 26, 0.68); backdrop-filter: blur(8px); }
.search-panel { position: relative; width: min(100%, 820px); max-height: min(78vh, 720px); padding: 1.5rem; border-radius: 1.6rem; overflow: auto; box-shadow: 0 32px 100px rgba(1, 13, 26, 0.55); animation: search-in 0.3s cubic-bezier(.22,.8,.32,1) both; }
@keyframes search-in { from { opacity: 0; transform: translateY(-1rem) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.search-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.search-panel-head h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.4rem); color: var(--ink); }
.global-search-field { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.35rem; padding: 0 1rem; min-height: 3.8rem; border: 1px solid rgba(138, 246, 243, 0.3); border-radius: 1rem; background: rgba(255, 255, 255, 0.06); color: var(--accent); box-shadow: 0 0 0 4px rgba(138, 246, 243, 0.05); }
.global-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(138, 246, 243, 0.12), 0 12px 32px rgba(138, 246, 243, 0.08); }
.global-search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.global-search-field input::placeholder { color: var(--muted-strong); }
.search-scope { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 1rem; }
.search-scope span { padding: 0.4rem 0.65rem; border: 1px solid rgba(240, 223, 172, 0.2); border-radius: 999px; color: var(--muted); font-size: 0.68rem; }
.search-results { display: grid; gap: 0.7rem; }
.search-empty, .search-count { color: var(--muted); line-height: 1.6; }
.search-count { margin: 0; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.search-result { padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1rem; background: rgba(255, 255, 255, 0.035); transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease; }
.search-result:hover { transform: translateX(4px); background: rgba(138, 246, 243, 0.07); border-color: rgba(138, 246, 243, 0.25); }
.search-result h3 { margin: 0.35rem 0 0.5rem; font-size: 1.35rem; color: var(--ink); }
.search-result p { margin: 0.45rem 0 0; color: var(--muted); line-height: 1.6; }
.search-result-arabic { direction: rtl; text-align: right; font-family: var(--font-ar); font-size: 1.45rem; color: var(--ink) !important; line-height: 1.8 !important; }
.search-result-tl { color: var(--accent) !important; font-family: var(--font-display); font-size: 1.05rem; }
.search-result small { display: block; margin-top: 0.65rem; color: var(--muted-strong); font-size: 0.7rem; }
.search-result-type { color: var(--accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  color: var(--ink);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.icon-btn:hover {
  transform: translateY(-3px) rotate(-3deg);
  color: var(--accent);
  border-color: rgba(138, 246, 243, 0.4);
  background: rgba(138, 246, 243, 0.08);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-video,
.cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.78);
  transform: scale(1.08);
  will-change: transform;
  transition: transform 0.2s linear;
}

.hero-depth {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 28%, rgba(138, 246, 243, 0.16), transparent 18%),
    radial-gradient(circle at 24% 74%, rgba(126, 240, 179, 0.12), transparent 22%);
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}

.hero-overlay,
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 13, 26, 0.8) 0%, rgba(3, 13, 26, 0.5) 35%, rgba(3, 13, 26, 0.2) 100%);
}

.hero-inner,
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  gap: 2rem;
  will-change: transform;
}

.hero-inner { transform: translate3d(0, var(--parallax-y, 0px), 0); }

.hero-inner {
  min-height: calc(100vh - 82px);
  grid-template-columns: 1.2fr 0.8fr;
  padding: 4rem 0 3rem;
}

.hero-copy {
  max-width: 728px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.eyebrow.accent {
  color: var(--neon);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 400;
  line-height: 0.96;
}

.hero h1,
.section-head h2,
.practice-card h3,
.feature-panel h3 {
  color: var(--ink);
  background: linear-gradient(115deg, #ffffff 0%, #edf9ff 54%, #c8e8e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(210, 244, 240, 0.08);
}

html[data-theme="light"] .hero h1,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .practice-card h3,
html[data-theme="light"] .feature-panel h3 {
  background: linear-gradient(115deg, #173d4b 0%, #315d69 60%, #58756c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero h1 {
  font-size: clamp(3.1rem, 6vw, 7rem);
  max-width: 540px;
  margin-bottom: 1.25rem;
}

.hero p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(138, 246, 243, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--bg-deep);
  box-shadow: 0 18px 40px rgba(138, 246, 243, 0.28);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel {
  align-self: end;
  justify-self: end;
  width: min(100%, 360px);
  border-radius: 1.5rem;
  padding: 1.2rem 1.2rem 1rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  transform: translateY(var(--parallax-y, 0px));
}

.hero-panel:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 8px)) rotate(0.6deg);
  border-color: rgba(138, 246, 243, 0.34);
  box-shadow: 0 24px 50px rgba(1, 13, 26, 0.45), 0 0 30px rgba(138, 246, 243, 0.1);
}

.panel-topline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(126, 240, 179, 0.7);
}

.panel-verse {
  margin: 1rem 0 1.2rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  color: var(--ink);
  line-height: 1.2;
  opacity: 0.92;
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted-strong);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 30, 52, 0.65);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 0;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
  min-width: max-content;
  will-change: auto;
}

.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track-reverse { animation-direction: reverse; animation-duration: 38s; }
.names-ticker { background: rgba(6, 29, 39, 0.76); }
.names-ticker .ticker-track span { color: rgba(245, 221, 160, 0.84); }
html[data-theme="light"] .names-ticker { background: rgba(222, 232, 222, 0.82); }
html[data-theme="light"] .names-ticker .ticker-track span { color: #876a32; }

.ticker-track span {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(237, 249, 255, 0.78);
  font-size: 0.86rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.content-section {
  padding: 5.5rem 0;
}

.content-section[data-parallax-section] {
  transform: translate3d(0, var(--section-parallax-y, 0px), 0);
  will-change: transform;
}

.section-soft {
  background: rgba(10, 32, 48, 0.24);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  max-width: 720px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.98;
}

.section-intro { max-width: 34ch; margin: 0; color: var(--muted); line-height: 1.7; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: stretch;
}

.feature-panel,
.quote-panel,
.dua-card,
.feature-card {
  border-radius: 1.7rem;
  padding: 1.5rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  transform: translateY(var(--parallax-y, 0px));
}

.feature-panel:hover,
.quote-panel:hover,
.dua-card:hover,
.feature-card:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 7px));
  border-color: rgba(138, 246, 243, 0.25);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 48px rgba(1, 13, 26, 0.32), 0 0 24px rgba(138, 246, 243, 0.07);
}

.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.practice-card { position: relative; min-height: 300px; padding: 1.5rem; border-radius: 1.7rem; transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease; }
.practice-card:hover { transform: translateY(-8px); border-color: rgba(138, 246, 243, 0.26); background: rgba(255, 255, 255, 0.045); box-shadow: 0 22px 48px rgba(1, 13, 26, 0.3), 0 0 24px rgba(138, 246, 243, 0.07); }
.practice-time { display: block; color: var(--accent); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.practice-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 2.5rem 0 1.2rem; border-radius: 1rem; color: var(--neon); background: rgba(126, 240, 179, 0.1); border: 1px solid rgba(126, 240, 179, 0.2); transition: transform 0.35s ease, background 0.35s ease; }
.practice-icon svg { width: 1.35rem; height: 1.35rem; }
.practice-card:hover .practice-icon { transform: rotate(8deg) scale(1.08); background: rgba(126, 240, 179, 0.16); }
.practice-card h3 { font-size: 1.8rem; line-height: 1; margin-bottom: 0.7rem; }
.practice-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.4rem; color: var(--accent); font-size: 0.8rem; font-weight: 800; }
.text-link svg { width: 1rem; height: 1rem; transition: transform 0.25s ease; }
.text-link:hover svg { transform: translateX(4px); }

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.faq-item { border-radius: 1.1rem; padding: 1.1rem 1.2rem; }
.faq-item summary { cursor: pointer; list-style: none; color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; padding-right: 1.5rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--accent); font-family: var(--font-sans); font-size: 1.2rem; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0.8rem 0 0; color: var(--muted); line-height: 1.65; }

.feature-panel {
  min-height: 350px;
}

.mini-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
  font-weight: 800;
}

.feature-panel h3 {
  max-width: 18ch;
  font-size: clamp(2rem, 2vw, 3rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.feature-panel p,
.feature-card p,
.dua-card p,
.footer-copy {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.feature-panel ul {
  margin: 1.3rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.quote-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 350px;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw, 6rem);
  color: var(--neon);
  opacity: 0.85;
  line-height: 0.5;
  margin-bottom: 1rem;
}

.quote-panel p {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2.1rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 28ch;
}

.homepage-reader {
  position: relative;
  margin-bottom: 1.4rem;
  padding: 1.5rem;
  border-radius: 1.7rem;
  overflow: hidden;
}

.reader-toolbar,
.preview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.reader-toolbar h3,
.preview-heading h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.reader-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: min(100%, 260px);
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
}

.reader-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.reader-search input::placeholder { color: var(--muted-strong); }

.surah-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.surah-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  color: var(--ink);
  text-align: left;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.surah-item:hover {
  transform: translateY(-3px);
  background: rgba(138, 246, 243, 0.08);
  border-color: rgba(138, 246, 243, 0.3);
}

.surah-item:focus-visible,
.library-tab:focus-visible,
.close-btn:focus-visible,
.reader-search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.surah-number {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: rgba(138, 246, 243, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.surah-name { font-weight: 700; font-size: 0.9rem; }
.surah-meta { display: block; color: var(--muted-strong); font-size: 0.68rem; margin-top: 0.15rem; }
.surah-arabic { font-family: var(--font-ar); direction: rtl; font-size: 1.2rem; color: var(--accent); }
.reader-loading { color: var(--muted); padding: 1.2rem 0; }

.reading-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reading-control,
.translation-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.reading-control:hover,
.reading-control.is-active {
  color: var(--accent);
  background: rgba(138, 246, 243, 0.08);
  border-color: rgba(138, 246, 243, 0.28);
  transform: translateY(-2px);
}

.reading-control svg { width: 1rem; height: 1rem; }
.translation-select { margin-left: auto; }
.translation-select span { color: var(--muted-strong); }
.translation-select select { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 0.75rem; }
.translation-select option { background: var(--bg-deep); color: var(--ink); }

.reader-preview {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--muted);
}

.ayah-list { margin-top: 1rem; display: grid; gap: 0.8rem; }
.ayah-card { padding: 1rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.035); border: 1px solid transparent; transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
.ayah-card:hover, .ayah-card.is-playing { background: rgba(138, 246, 243, 0.07); border-color: rgba(138, 246, 243, 0.22); transform: translateX(4px); }
.ayah-card .arabic { margin: 0; font-family: var(--font-ar); direction: rtl; text-align: right; font-size: 1.65rem; line-height: 1.8; }
.ayah-card .arabic.is-hidden, .ayah-card .transliteration.is-hidden, .ayah-card .translation.is-hidden { display: none; }
.ayah-card .transliteration { margin: 0.6rem 0 0; color: var(--accent); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.45; }
.ayah-card .translation { margin: 0.55rem 0 0; color: var(--muted); line-height: 1.65; }
.ayah-number { color: var(--accent); font-size: 0.74rem; font-weight: 800; }
.ayah-topline { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.35rem; }
.ayah-actions { display: flex; gap: 0.3rem; }
.ayah-action { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.55rem; color: var(--muted); transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
.ayah-action:hover, .ayah-action.is-active { color: var(--accent); background: rgba(138, 246, 243, 0.1); transform: translateY(-2px); }
.ayah-action.is-active svg { fill: currentColor; }
.ayah-action svg { width: 1rem; height: 1rem; }

.library-tabs { display: flex; gap: 0.5rem; margin: -0.6rem 0 1.4rem; }
.library-tab { padding: 0.7rem 1rem; border-radius: 999px; color: var(--muted); border: 1px solid transparent; }
.library-tab.is-active { color: var(--bg-deep); background: var(--accent); }

.library-search-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(240, 223, 172, 0.28);
  border-radius: 999px;
  color: var(--highlight);
  background: linear-gradient(135deg, rgba(240, 223, 172, 0.12), rgba(138, 246, 243, 0.06));
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.library-search-button:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(240, 223, 172, 0.2), rgba(138, 246, 243, 0.1)); border-color: var(--highlight); }
.library-search-button svg { width: 1rem; height: 1rem; }
.library-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.3rem; }
.filter-label { margin-right: 0.25rem; color: var(--muted-strong); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.library-filter { padding: 0.5rem 0.75rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; color: var(--muted); font-size: 0.75rem; transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
.library-filter:hover, .library-filter.is-active { color: var(--ink); background: rgba(138, 246, 243, 0.1); transform: translateY(-2px); }

.quote-source {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--muted-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.dua-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dua-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(138, 246, 243, 0.1);
  border: 1px solid rgba(138, 246, 243, 0.2);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.dua-card h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.05;
}

.dua-card .dua-arabic { margin: 0.7rem 0 0; direction: rtl; text-align: right; font-family: var(--font-ar); font-size: 1.65rem; line-height: 1.8; color: var(--ink); }
.dua-card .dua-tl { margin: 0.45rem 0 0; color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.4; }

.names-section { overflow: hidden; }
.names-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.name-card { min-height: 190px; padding: 1.1rem; border-radius: 1.2rem; transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease; }
.name-card:hover { transform: translateY(-6px) rotate(-0.5deg); border-color: rgba(240, 223, 172, 0.35); background: linear-gradient(145deg, rgba(240, 223, 172, 0.11), rgba(138, 246, 243, 0.05)); box-shadow: 0 18px 40px rgba(1, 13, 26, 0.25); }
.name-number { display: block; color: var(--highlight); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; }
.name-arabic { margin: 1.1rem 0 0.45rem; direction: rtl; font-family: var(--font-ar); font-size: 1.75rem; line-height: 1.4; color: var(--ink); }
.name-card h3 { margin: 0; font-size: 1.25rem; color: var(--ink); }
.name-meaning { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.76rem; }

.dua-card .pill,
.feature-card .feature-icon {
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.dua-card:hover .pill,
.feature-card:hover .feature-icon {
  transform: translateX(4px) scale(1.04);
  background: rgba(126, 240, 179, 0.16);
  color: var(--neon);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 220px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(138, 246, 243, 0.1);
  border: 1px solid rgba(138, 246, 243, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-icon svg { width: 1.35rem; height: 1.35rem; }

.feature-card h3 {
  font-size: 1.6rem;
  line-height: 1.05;
  margin-bottom: 0.7rem;
}

.cta-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.cta-inner {
  grid-template-columns: 1fr auto;
  width: min(100% - 32px, var(--maxw));
  padding: 4rem 0;
  gap: 1.2rem;
}

.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cta-copy .eyebrow {
  font-size: 0.85rem;
}

.cta-copy h2 {
  font-size: clamp(2.5rem, 4.4vw, 5.5rem);
  line-height: 0.92;
  max-width: 600px;
}

.cta-socials {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 220px;
  border-radius: 1rem;
}

.cta-socials a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.8rem 1.1rem;
  min-height: 72px;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  transition: background 0.25s ease;
}

.cta-socials a strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cta-socials a small { color: var(--muted); font-size: 0.68rem; line-height: 1.35; text-align: left; text-transform: none; letter-spacing: 0; }

.cta-socials a:last-child {
  border-bottom: none;
}

.cta-socials a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  position: relative;
  padding: 4rem 0 2.5rem;
  background: rgba(4, 16, 27, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-copy {
  max-width: 36ch;
}

.site-footer h3 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 249, 255, 0.6);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.site-footer li a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.site-footer li a:hover {
  color: var(--accent);
}

.footer-links { display: grid; gap: 0.7rem; }
.footer-link { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.65rem; margin: -0.65rem; border-radius: 0.8rem; transition: background 0.25s ease, transform 0.25s ease; }
.footer-link:hover { background: rgba(138, 246, 243, 0.06); transform: translateX(4px); }
.footer-link-icon { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 0.6rem; color: var(--accent); background: rgba(138, 246, 243, 0.1); }
.footer-link-icon svg { width: 1rem; height: 1rem; }
.footer-link strong, .footer-link small { display: block; }
.footer-link strong { color: var(--ink); font-size: 0.82rem; }
.footer-link small { margin-top: 0.15rem; color: var(--muted-strong); font-size: 0.7rem; line-height: 1.4; }

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.footer-video,
.footer-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.footer-video {
  z-index: -2;
  object-fit: cover;
  object-position: center 72%;
  filter: saturate(0.8) brightness(0.42);
  transform: scale(1.08);
}

.footer-video-overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 16, 27, 0.78), rgba(3, 13, 26, 0.95)), linear-gradient(90deg, rgba(3, 13, 26, 0.55), rgba(3, 13, 26, 0.2));
}

html[data-theme="light"] .footer-video { filter: saturate(0.55) brightness(0.78); }
html[data-theme="light"] .footer-video-overlay { background: linear-gradient(180deg, rgba(232, 240, 235, 0.78), rgba(232, 240, 235, 0.94)), linear-gradient(90deg, rgba(245, 244, 237, 0.58), rgba(245, 244, 237, 0.22)); }
html[data-theme="light"] .site-footer h3 { color: rgba(23, 49, 63, 0.7); }
html[data-theme="light"] .footer-bottom { color: rgba(23, 49, 63, 0.64); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(237, 249, 255, 0.64);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audio-player {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.2rem;
  width: min(calc(100% - 2rem), 720px);
  padding: 1rem 1.15rem 0.95rem;
  border-radius: 1.25rem;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.22,.8,.32,1), opacity 0.35s ease;
}

.audio-player:not([hidden]) { transform: translate(-50%, 0); opacity: 1; }
.player-progress { position: absolute; top: 0; left: 1rem; right: 1rem; height: 2px; background: rgba(255,255,255,0.1); }
.player-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.2s linear; }
.player-info { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.player-info strong, .player-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-info strong { font-family: var(--font-display); font-size: 1.1rem; }
.player-info small { color: var(--muted); font-size: 0.72rem; margin-top: 0.15rem; }
.player-actions { display: flex; align-items: center; gap: 0.25rem; }
.player-actions button { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; color: var(--muted); transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
.player-actions button:hover { color: var(--accent); background: rgba(138, 246, 243, 0.1); transform: translateY(-2px); }
.player-actions .player-main { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--accent); color: var(--bg-deep); }
.player-actions .player-main:hover { background: var(--neon); color: var(--bg-deep); }
.pause-icon { display: none; }
.player-main.is-playing .play-icon { display: none; }
.player-main.is-playing .pause-icon { display: block; }
.player-equalizer { display: inline-flex; align-items: end; gap: 3px; height: 1.3rem; }
.player-equalizer i { display: block; width: 3px; height: 0.45rem; border-radius: 2px; background: var(--accent); animation: equalize 0.9s ease-in-out infinite alternate; }
.player-equalizer i:nth-child(2) { animation-delay: 0.2s; }
.player-equalizer i:nth-child(3) { animation-delay: 0.4s; }
@keyframes equalize { to { height: 1.15rem; } }

@media (min-width: 980px) {
  .main-nav { display: inline-flex; }
}

@media (max-width: 979px) {
  .hero-inner,
  .cta-inner,
  .split-grid,
  .dua-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: center;
    padding-top: 3rem;
  }

  .surah-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-panel { justify-self: start; }
  .cta-inner { align-items: end; }
  .quick-dock { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: calc(100% + 0.6rem); right: 1rem; left: 1rem; display: none; flex-direction: column; align-items: stretch; border-radius: 1.2rem; padding: 0.55rem; }
  .main-nav.is-open { display: flex; animation: menu-in 0.28s ease both; }
  .main-nav a { padding: 0.9rem 1rem; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: translateY(0); } }
  .practice-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .names-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 74px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .nav-actions { gap: 0.35rem; }
  .nav-actions > .icon-btn[aria-label="Open reading settings"] { display: none; }

  .hero {
    min-height: 92vh;
  }

  .hero-inner {
    min-height: 92vh;
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    max-width: 360px;
  }

  .social-access {
    display: none;
  }

  .copy-pod {
    display: none;
  }

  .share-fab {
    right: 14px;
    bottom: 18px;
    padding: 0.7rem 0.9rem;
  }

  .back-top { right: 14px; bottom: 5.1rem; }

  .cta-socials {
    width: 100%;
    max-width: 300px;
  }

  .reader-toolbar,
  .preview-heading { align-items: flex-start; flex-direction: column; }
  .reader-search { width: 100%; }
  .surah-list { grid-template-columns: 1fr; }
  .names-grid { grid-template-columns: 1fr; }
  .library-search-button { margin-left: 0; }
  .filter-label { width: 100%; }
  .translation-select { margin-left: 0; width: 100%; justify-content: space-between; }
  .audio-player { grid-template-columns: 1fr; gap: 0.7rem; }
  .player-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
