:root {
  --background: #f6f1e7;
  --foreground: #17231d;
  --ink: #17231d;
  --emerald: #0f5a46;
  --jade: #2f806c;
  --wine: #6c2437;
  --gold: #b88a36;
  --paper: #fffdf7;
  --line: rgba(23, 35, 29, 0.13);
  --shadow: 0 24px 70px rgba(23, 35, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(15, 90, 70, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(108, 36, 55, 0.06), transparent 28%),
    var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero-shell {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: #111a17;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, transparent 38%, rgba(242, 213, 139, 0.16) 46%, transparent 55%, transparent 100%);
  transform: translateX(-100%);
  animation: heroLightSweep 8s ease-in-out infinite;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("./quran-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: heroBreath 14s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 13, 12, 0.9) 0%, rgba(8, 13, 12, 0.76) 38%, rgba(8, 13, 12, 0.32) 73%, rgba(8, 13, 12, 0.1) 100%),
    linear-gradient(180deg, rgba(8, 13, 12, 0.35) 0%, rgba(8, 13, 12, 0.14) 48%, rgba(246, 241, 231, 0.92) 100%);
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 0;
  color: #fffdf7;
  animation: softReveal 780ms ease both;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 253, 247, 0.28);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.1);
  color: #f2d58b;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 0 rgba(242, 213, 139, 0.28);
  animation: markPulse 3.8s ease-in-out infinite;
}

.hanif-mark {
  direction: rtl;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-kicker,
.eyebrow,
.panel-label {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 30px;
  font-weight: 800;
}

.nav-pills {
  display: flex;
  gap: 18px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 253, 247, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-pills a {
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(255, 253, 247, 0.86);
  font-size: 17px;
  font-weight: 800;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 118px 24px 170px;
  animation: softReveal 900ms ease 120ms both;
}

.hero-content h2 {
  max-width: 760px;
  margin: 14px 0 0;
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.04;
}

.home-mode .reader-stage {
  display: none;
}

.command-center {
  display: grid;
  gap: 28px;
  max-width: 1240px;
  margin: -92px auto 0;
  padding: 0 24px 92px;
  position: relative;
  z-index: 4;
  animation: liftIn 760ms ease 180ms both;
}

.search-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(249, 242, 223, 0.92)),
    radial-gradient(circle at top left, rgba(184, 138, 54, 0.24), transparent 36%);
  box-shadow: 0 28px 90px rgba(23, 35, 29, 0.18), 0 1px 0 rgba(255, 255, 255, 0.74) inset;
  padding: 32px;
}

.search-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(184, 138, 54, 0.26), transparent 22%, transparent 78%, rgba(15, 90, 70, 0.22)),
    repeating-linear-gradient(135deg, rgba(23, 35, 29, 0.032) 0 1px, transparent 1px 18px);
  opacity: 0.72;
}

.search-console::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-120%);
  animation: consoleSheen 6.2s ease-in-out infinite;
}

.console-glow {
  position: absolute;
  inset: -120px auto auto -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(15, 90, 70, 0.16);
  filter: blur(34px);
  animation: glowDrift 7s ease-in-out infinite alternate;
}

.console-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.console-header span {
  color: rgba(23, 35, 29, 0.58);
  font-size: 14px;
  font-weight: 800;
}

.premium-search {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  border: 1px solid rgba(15, 90, 70, 0.2);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 18px 44px rgba(23, 35, 29, 0.1), 0 0 0 5px rgba(255, 255, 255, 0.24);
  padding: 12px 12px 12px 22px;
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.premium-search:focus-within {
  border-color: rgba(184, 138, 54, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 22px 58px rgba(15, 90, 70, 0.18);
  transform: translateY(-2px);
}

.premium-search::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.16), transparent);
  transform: translateX(-100%);
  animation: searchSheen 5.5s ease-in-out infinite;
}

.premium-search > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(184, 138, 54, 0.28);
  border-radius: 50%;
  background: rgba(249, 242, 223, 0.88);
  color: var(--emerald);
  font-size: 25px;
  font-weight: 900;
}

.premium-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
  outline: 0;
}

.premium-search input::placeholder {
  color: rgba(23, 35, 29, 0.5);
}

.premium-search button {
  min-height: 54px;
  border: 0;
  border-radius: 11px;
  background: var(--emerald);
  color: #fffdf7;
  cursor: pointer;
  padding: 0 26px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 90, 70, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.premium-search button:hover {
  background: #123f34;
  box-shadow: 0 12px 24px rgba(15, 90, 70, 0.22);
  transform: translateY(-1px);
}

.search-suggestions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.search-suggestions:empty {
  display: none;
}

.search-suggestions.active-search {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.search-suggestions button {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(15, 90, 70, 0.13);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.74);
  color: var(--ink);
  cursor: pointer;
  padding: 0 18px;
  text-align: left;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(23, 35, 29, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  animation: chipRise 540ms ease both;
}

.search-suggestions button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--gold), var(--emerald));
  transform: scaleY(0.32);
  transform-origin: center;
  transition: transform 220ms ease;
}

.search-suggestions button:nth-child(2) {
  animation-delay: 70ms;
}

.search-suggestions button:nth-child(3) {
  animation-delay: 140ms;
}

.search-suggestions button:nth-child(4) {
  animation-delay: 210ms;
}

.search-suggestions button:nth-child(5) {
  animation-delay: 280ms;
}

.search-suggestions button:hover {
  border-color: rgba(15, 90, 70, 0.3);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 16px 30px rgba(23, 35, 29, 0.12), 0 0 0 3px rgba(184, 138, 54, 0.08);
  transform: translateY(-4px);
}

.search-suggestions button:hover::before {
  transform: scaleY(1);
}

.search-suggestions strong {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.search-suggestions p {
  margin: 0;
  color: rgba(23, 35, 29, 0.66);
  font-weight: 800;
}

.premium-rail {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  width: max-content;
  margin-top: 18px;
  animation: railMove 28s linear infinite;
}

.premium-rail span {
  border: 1px solid rgba(23, 35, 29, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.64);
  color: rgba(23, 35, 29, 0.62);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1100px;
}

.explore-card {
  --accent: var(--gold);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 178px;
  isolation: isolate;
  border: 1px solid rgba(23, 35, 29, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(248, 242, 227, 0.94));
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.085), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  padding: 0;
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, border-color 260ms ease;
  animation: cardReveal 680ms ease both;
}

.explore-card:nth-child(2) {
  animation-delay: 80ms;
}

.explore-card:nth-child(3) {
  animation-delay: 160ms;
}

.explore-card:nth-child(4) {
  animation-delay: 240ms;
}

.explore-card:nth-child(5) {
  animation-delay: 320ms;
}

.explore-card:nth-child(6) {
  animation-delay: 400ms;
}

.explore-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 15%, transparent));
  opacity: 0.8;
  transition: opacity 240ms ease, width 240ms ease;
}

.explore-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(23, 35, 29, 0.026) 0 1px, transparent 1px 16px),
    linear-gradient(115deg, transparent 0%, color-mix(in srgb, var(--accent) 10%, transparent) 48%, transparent 72%);
  opacity: 0.7;
  transform: translateX(-16px);
  transition: opacity 240ms ease, transform 520ms ease;
}

.explore-card .card-body::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  transition: transform 420ms ease, opacity 260ms ease;
}

.explore-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, rgba(23, 35, 29, 0.16));
  box-shadow: 0 22px 56px rgba(23, 35, 29, 0.15);
  transform: translateY(-7px) rotateX(1deg);
}

.explore-card:hover::after {
  opacity: 1;
  transform: translateX(6px);
}

.explore-card:hover::before {
  opacity: 1;
  width: 7px;
}

.explore-card:hover .card-body::after {
  opacity: 1;
  transform: scale(1.14) translate(-8px, -8px);
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1;
  grid-row: 1 / -1;
  border-right: 1px solid rgba(23, 35, 29, 0.11);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(23, 35, 29, 0.025));
  padding: 14px 10px;
}

.card-index {
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
  justify-self: start;
}

.card-status {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, rgba(23, 35, 29, 0.1));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, #fffdf7);
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 900;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.card-body {
  position: relative;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1;
  padding: 18px 18px 10px;
}

.explore-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.explore-card p {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 6px 0 0;
  color: rgba(23, 35, 29, 0.68);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.card-foot {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 2;
  grid-row: 2;
  margin: 0 18px;
  border-top: 1px solid rgba(23, 35, 29, 0.12);
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  padding: 9px 0 12px;
  font-size: 11px;
  font-weight: 900;
}

.card-foot strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, #fffdf7);
  transition: transform 220ms ease, background 220ms ease;
}

.explore-card:hover .card-foot strong {
  background: color-mix(in srgb, var(--accent) 28%, #fffdf7);
  transform: translateX(4px);
}

.explore-card[data-accent="quran"] {
  --accent: #b88a36;
}

.explore-card[data-accent="tafsir"] {
  --accent: #0f5a46;
}

.explore-card[data-accent="hadith"] {
  --accent: #6c2437;
}

.explore-card[data-accent="topics"] {
  --accent: #7f6a2e;
}

.explore-card[data-accent="bookmarks"] {
  --accent: #2f806c;
}

.explore-card[data-accent="review"] {
  --accent: #3f4f47;
}

@keyframes glowDrift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(70px, 24px) scale(1.12);
  }
}

@keyframes heroBreath {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.065) translateX(-8px);
  }
}

@keyframes heroLightSweep {
  0%,
  46% {
    transform: translateX(-100%);
  }
  74%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes markPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 213, 139, 0.2);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(242, 213, 139, 0);
  }
}

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes consoleSheen {
  0%,
  48% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes chipRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes searchSheen {
  0%,
  45% {
    transform: translateX(-100%);
  }
  70%,
  100% {
    transform: translateX(100%);
  }
}

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

.reader-stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  max-width: 1240px;
  margin: -86px auto 0;
  padding: 0 24px 72px;
}

.reader-sidebar,
.verse-card,
.insight-panel {
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.reader-sidebar {
  padding: 16px;
}

.search-box {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  padding: 0 12px;
}

.search-box span {
  color: var(--emerald);
  font-size: 21px;
  font-weight: 800;
}

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

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.language-switch button,
.verse-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: rgba(23, 35, 29, 0.78);
  cursor: pointer;
  font-weight: 800;
}

.language-switch button.active,
.verse-tab.active {
  border-color: rgba(15, 90, 70, 0.35);
  background: var(--emerald);
  color: #fffdf7;
}

.surah-list {
  margin-top: 18px;
}

.surah-list .panel-label {
  margin-bottom: 10px;
}

.verse-tab {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 10px 12px;
  text-align: left;
}

.verse-tab strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.verse-card {
  min-height: 540px;
  padding: 28px;
}

.verse-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.verse-card h3,
.insight-panel h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
}

.ayah-badge {
  display: grid;
  min-width: 58px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: #f4e2b4;
  color: #5c3a0d;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 900;
}

.arabic-text {
  margin: 42px 0 36px;
  color: #121b17;
  font-family: "Traditional Arabic", Georgia, serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.9;
  text-align: right;
}

.translation-panel {
  border-left: 4px solid var(--gold);
  background: #f9f2df;
  padding: 18px 20px;
}

.translation-panel p:last-child {
  margin: 8px 0 0;
  color: rgba(23, 35, 29, 0.86);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.7;
}

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.topic-row span {
  border: 1px solid rgba(108, 36, 55, 0.22);
  border-radius: 999px;
  background: rgba(108, 36, 55, 0.08);
  color: var(--wine);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.insight-stack {
  display: grid;
  gap: 18px;
}

.insight-panel {
  padding: 22px;
}

.insight-panel > p:last-child {
  margin: 14px 0 0;
  color: rgba(23, 35, 29, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.hadith-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hadith-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
}

.hadith-item div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hadith-item strong {
  color: var(--ink);
  font-size: 14px;
}

.hadith-item span {
  color: rgba(23, 35, 29, 0.54);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.hadith-item p {
  margin: 10px 0;
  color: rgba(23, 35, 29, 0.75);
  font-size: 14px;
  line-height: 1.55;
}

.hadith-item em {
  color: var(--jade);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 1050px) {
  .reader-stage {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero-shell {
    min-height: 780px;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .nav-pills {
    grid-column: 1 / -1;
    justify-content: space-between;
    border-radius: 8px;
  }

  .nav-pills a {
    flex: 1;
    text-align: center;
  }

  .hero-content {
    padding-top: 84px;
  }

  .hero-content h2 {
    font-size: 42px;
    line-height: 1.08;
  }

  .reader-stage {
    grid-template-columns: 1fr;
    margin-top: -118px;
  }

  .command-center {
    margin-top: -118px;
  }

  .premium-search,
  .search-suggestions {
    grid-template-columns: 1fr;
  }

  .premium-search {
    padding: 16px;
  }

  .premium-search input {
    font-size: 18px;
  }

  .premium-search button {
    width: 100%;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .explore-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 164px;
  }

  .card-topline {
    padding: 14px 8px;
  }

  .card-body {
    padding: 17px 15px 10px;
  }

  .card-foot {
    margin: 0 15px;
    padding-bottom: 11px;
  }

  .insight-stack {
    grid-template-columns: 1fr;
  }

  .arabic-text {
    font-size: 40px;
    line-height: 1.8;
  }

  .home-empty h3 {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .topbar,
  .hero-content,
  .reader-stage {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content h2 {
    font-size: 34px;
  }

  .verse-card,
  .insight-panel {
    padding: 18px;
  }

  .verse-card-header,
  .hadith-item div {
    display: grid;
  }

  .arabic-text {
    font-size: 34px;
  }

}
