:root {
  --bg: #f7f3ea;
  --surface: rgba(255, 252, 244, 0.88);
  --surface-solid: #fffaf0;
  --ink: #18231f;
  --muted: #68726e;
  --primary: #0f5f4a;
  --primary-soft: #dbeee5;
  --gold: #b88a2a;
  --line: rgba(24, 35, 31, 0.11);
  --shadow: 0 18px 44px rgba(18, 42, 35, 0.14);
  --radius: 8px;
  --bg-home: url("assets/images/bg-home.png");
  --bg-quran: url("assets/images/bg-quran.png");
  --bg-qibla: url("assets/images/bg-qibla.png");
  --bg-night: url("assets/images/bg-night.jpeg");
  --nav-safe: 112px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 243, 234, 0.18), rgba(247, 243, 234, 0.98) 48%),
    var(--bg-home) center top / cover no-repeat;
}

body.dark .app-shell {
  color: #f5efe3;
  background-color: #020304;
  background-image:
    radial-gradient(circle at 72% 10%, rgba(231, 199, 119, 0.12), transparent 24%),
    radial-gradient(circle at 22% 0%, rgba(15, 95, 74, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(3, 7, 10, 0.04) 0%, rgba(3, 7, 10, 0.2) 22%, rgba(3, 7, 10, 0.94) 36%),
    var(--bg-night);
  background-position:
    center top,
    center top,
    center top,
    center top;
  background-size:
    auto,
    auto,
    100% 100%,
    150% auto;
  background-repeat: no-repeat;
}

body.dark {
  --bg: #03070a;
  --surface: rgba(12, 16, 19, 0.82);
  --surface-solid: #0c1013;
  --ink: #fff4dc;
  --muted: #b7afa2;
  --primary: #d8b65f;
  --primary-soft: rgba(216, 182, 95, 0.13);
  --gold: #e7c777;
  --line: rgba(231, 199, 119, 0.18);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 8px 18px 8px;
}

.top-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-self: start;
  padding-top: 0;
  transform: translateY(-4px);
}

.topbar h1 {
  max-width: 275px;
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 3.1vw, 15px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.header-reference {
  margin: 7px 0 0;
  color: rgba(255, 244, 220, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.search-panel {
  position: fixed;
  inset: 72px max(12px, calc((100vw - 520px) / 2 + 12px)) auto;
  z-index: 20;
  max-width: 496px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

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

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

.search-results {
  display: grid;
  max-height: 54vh;
  margin-top: 10px;
  overflow: auto;
  gap: 8px;
}

.search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  background: var(--surface);
}

.search-result small {
  color: var(--gold);
  font-weight: 800;
}

.search-result span,
.empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.icon-button,
.chip,
.primary-button,
.ghost-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(18, 42, 35, 0.08);
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-size: 20px;
}

#searchToggle {
  display: none;
}

body[data-screen="quran"] #searchToggle {
  display: grid;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.quran-home-button {
  display: none;
}

body[data-screen="quran"] .quran-home-button {
  display: none;
}

.header-info-button {
  color: #f2d58b;
  font-size: 18px;
  font-weight: 950;
  font-family: Georgia, "Times New Roman", serif;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.055), rgba(255, 244, 220, 0.018)),
    rgba(8, 12, 15, 0.82);
  border-color: rgba(231, 199, 119, 0.16);
}

.screen {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 76px);
  padding: 14px 16px var(--nav-safe);
}

.screen.hatim-screen {
  min-height: calc(100dvh - 112px);
  padding: 12px 16px var(--nav-safe);
}

.hatim-page {
  width: min(100%, 500px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.hatim-page h2 {
  margin: 4px 0 2px;
  color: #fff5dd;
  font-size: 28px;
}

.hatim-back-button {
  justify-self: start;
}

.hatim-stats-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(246, 202, 112, 0.22);
  border-radius: 20px;
  color: #fff5dd;
  background:
    linear-gradient(145deg, rgba(255, 244, 220, 0.08), rgba(255, 244, 220, 0.02)),
    rgba(8, 11, 15, 0.9);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}

.hatim-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(246, 202, 112, 0.16);
}

.hatim-count-row strong {
  font-size: 18px;
}

.hatim-count-row .ghost-button {
  min-width: 84px;
}

.hatim-stats-card p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  color: rgba(255, 245, 221, 0.8);
  font-size: 16px;
}

.hatim-stats-card b {
  color: #f4d47f;
  font-size: 22px;
}

.hatim-reset-button {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  font-weight: 900;
}

.hatim-dua-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(246, 202, 112, 0.22);
  border-radius: 20px;
  color: rgba(255, 245, 221, 0.84);
  background:
    linear-gradient(145deg, rgba(255, 244, 220, 0.07), rgba(255, 244, 220, 0.018)),
    rgba(8, 11, 15, 0.88);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.hatim-dua-card h3 {
  margin: 0 0 4px;
  color: #f4d47f;
  font-size: 22px;
}

.hatim-dua-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
}

body[data-screen="home"] .app-shell {
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

body[data-screen="home"] {
  height: 100dvh;
  overflow: hidden;
}

html[data-screen="home"],
html[data-screen="quran"],
html[data-screen="messages"],
html[data-screen="guide"],
html[data-screen="tajweed"],
html[data-screen="names"],
html[data-screen="qibla"],
html[data-screen="dhikr"] {
  height: 100dvh;
  overflow: hidden;
}

body[data-screen="home"] .topbar {
  flex: 0 0 auto;
  min-height: 136px;
}

.screen.home-screen {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.home-fixed-panel {
  flex: 0 0 auto;
}

.home-scroll-cards {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 -16px var(--nav-safe);
  padding: 0 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-scroll-cards::-webkit-scrollbar {
  display: none;
}

.screen.quran-screen {
  display: flex;
  background: transparent;
  margin: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding: 0 16px 0;
}

body[data-screen="quran"] .app-shell {
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

body[data-screen="quran"] {
  height: 100dvh;
  overflow: hidden;
}

body[data-screen="quran"] .topbar {
  flex: 0 0 auto;
  min-height: 58px;
}

.quran-fixed-panel {
  flex: 0 0 auto;
  display: flex;
  min-height: clamp(72px, calc(42.6vw - 58px), 164px);
  align-items: flex-end;
}

.quran-hatim-card {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 213, 112, 0.2), transparent 34%),
    radial-gradient(circle at 12% 0%, rgba(255, 236, 177, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(255, 239, 190, 0.105), rgba(255, 218, 125, 0.03)),
    rgba(13, 14, 12, 0.46);
  backdrop-filter: blur(7px);
}

body[data-screen="quran"] .quran-hatim-card {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 213, 112, 0.2), transparent 34%),
    radial-gradient(circle at 12% 0%, rgba(255, 236, 177, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(255, 239, 190, 0.105), rgba(255, 218, 125, 0.03)),
    rgba(13, 14, 12, 0.44);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 244, 220, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quran-surah-scroll {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 -16px var(--nav-safe);
  padding: 0 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quran-surah-scroll::-webkit-scrollbar {
  display: none;
}

body[data-screen="messages"] .app-shell {
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

body[data-screen="messages"] {
  height: 100dvh;
  overflow: hidden;
}

body[data-screen="messages"] .topbar {
  flex: 0 0 auto;
}

.screen.messages-screen {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.messages-fixed-panel {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.messages-scroll-panel {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 -16px var(--nav-safe);
  padding: 0 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.messages-scroll-panel::-webkit-scrollbar {
  display: none;
}

body[data-screen="guide"] .app-shell {
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

body[data-screen="guide"] {
  height: 100dvh;
  overflow: hidden;
}

body[data-screen="guide"] .topbar {
  flex: 0 0 auto;
}

.screen.guide-screen {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.guide-fixed-panel {
  flex: 0 0 auto;
}

.guide-scroll-panel {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 -16px var(--nav-safe);
  padding: 0 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.guide-scroll-panel::-webkit-scrollbar {
  display: none;
}

body[data-screen="tajweed"] .app-shell,
body[data-screen="names"] .app-shell {
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

body[data-screen="tajweed"],
body[data-screen="names"],
body[data-screen="qibla"],
body[data-screen="dhikr"] {
  height: 100dvh;
  overflow: hidden;
}

body[data-screen="tajweed"] .topbar,
body[data-screen="names"] .topbar {
  flex: 0 0 auto;
}

.screen.tajweed-screen,
.screen.names-screen {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.hero.fixed-hero-panel {
  flex: 0 0 auto;
  min-height: 122px;
  padding-top: 12px;
  padding-bottom: 6px;
}

.hero.fixed-hero-panel .hero-title {
  margin-bottom: 6px;
}

.fixed-page-scroll {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 -16px var(--nav-safe);
  padding: 0 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fixed-page-scroll::-webkit-scrollbar {
  display: none;
}

.screen.qibla-screen {
  background:
    radial-gradient(circle at 50% 18%, rgba(224, 174, 82, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(4, 8, 12, 0.32), #05070a 52%, #020304 100%),
    var(--bg-night) center top / cover no-repeat;
  margin: -74px -16px 0;
  padding: 84px 16px calc(var(--nav-safe) + 30px);
}

body[data-screen="qibla"] .topbar,
body[data-screen="qibla"] .search-panel {
  display: none;
}

body[data-screen="quran"] .topbar h1,
body[data-screen="quran"] .header-reference {
  display: none;
}

body[data-screen="quran"] .topbar {
  padding-bottom: 10px;
}

body[data-screen="quran"] .app-shell {
  background:
    linear-gradient(180deg, rgba(3, 7, 10, 0.06), rgba(3, 7, 10, 0.05) 36%, #03070a 100%),
    url("assets/images/bg-quran-page.jpeg") center top / 100% auto no-repeat,
    #03070a;
}

.quran-hatim-card {
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  margin-bottom: 12px;
}

.quran-hatim-card .premium-arrow {
  justify-self: end;
}

.quran-continue-card {
  cursor: pointer;
}

.quran-continue-card strong {
  color: #f0cf7e;
}

body[data-screen="qibla"] .screen.qibla-screen {
  min-height: 0;
  height: calc(100dvh - var(--nav-safe));
  margin: 0 -16px;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body[data-screen="qibla"] .screen.qibla-screen::-webkit-scrollbar {
  display: none;
}

.screen.dhikr-screen {
  background: var(--bg);
  margin: 0 -16px 0;
  height: calc(100dvh - var(--nav-safe));
  padding: 18px 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screen.dhikr-screen::-webkit-scrollbar {
  display: none;
}

body.dark .screen.quran-screen {
  background: transparent;
}

.hero {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px 4px 10px;
}

.hero-title {
  max-width: 340px;
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.02;
}

body.dark .hero-title,
body.dark h1,
body.dark h2,
body.dark h3 {
  color: #fff4dc;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

body.dark .eyebrow {
  color: #e7c777;
}

.hero-copy {
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.premium-hero {
  position: relative;
  display: flex;
  min-height: 210px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: -6px -2px 12px;
  padding: 30px 16px 20px;
  overflow: hidden;
  border: 1px solid rgba(231, 199, 119, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.06), transparent 35%),
    linear-gradient(90deg, rgba(3, 7, 10, 0.92) 0 42%, rgba(3, 7, 10, 0.34)),
    radial-gradient(circle at 76% 24%, rgba(231, 199, 119, 0.28), transparent 18%),
    var(--bg-night) center / cover no-repeat;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 244, 220, 0.08);
}

.premium-hero::after {
  content: "☾";
  position: absolute;
  right: 72px;
  top: 34px;
  color: #e7c777;
  font-size: 72px;
  line-height: 1;
  text-shadow: 0 0 34px rgba(231, 199, 119, 0.46);
}

.premium-greeting {
  margin-bottom: 8px;
  color: #e7c777;
  font-weight: 800;
}

.premium-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin-bottom: 10px;
  color: #fff4dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.05;
}

.premium-hero p:not(.premium-greeting) {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin-bottom: 0;
  color: #c8bfae;
  line-height: 1.5;
}

.premium-bell {
  position: relative;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(231, 199, 119, 0.18);
  border-radius: 50%;
  color: #e7c777;
  background: rgba(255, 244, 220, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.08);
}

.premium-prayer-card,
.premium-verse {
  border: 1px solid rgba(231, 199, 119, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 213, 112, 0.22), transparent 34%),
    radial-gradient(circle at 12% 0%, rgba(255, 236, 177, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 239, 190, 0.105), rgba(255, 218, 125, 0.032)),
    rgba(14, 14, 12, 0.84);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 244, 220, 0.06);
  backdrop-filter: blur(18px);
}

.premium-prayer-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 221, 129, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 240, 196, 0.1), rgba(255, 218, 125, 0.035)),
    rgba(12, 13, 12, 0.52);
  backdrop-filter: blur(8px);
}

.nearest-mosque-card {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
  padding: 14px;
  border: 1px solid rgba(231, 199, 119, 0.22);
  border-radius: 22px;
  color: #fff5dd;
  background:
    radial-gradient(circle at 0 0, rgba(255, 215, 116, 0.2), transparent 30%),
    radial-gradient(circle at 96% 0, rgba(255, 236, 177, 0.09), transparent 26%),
    linear-gradient(180deg, rgba(255, 240, 196, 0.09), rgba(255, 218, 125, 0.028)),
    rgba(13, 14, 12, 0.76);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 244, 220, 0.06);
  backdrop-filter: blur(14px);
}

.nearest-mosque-head,
.nearest-mosque-preview,
.mosque-refresh-button {
  display: grid;
  align-items: center;
}

.nearest-mosque-head {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
}

.nearest-pin {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid rgba(242, 213, 139, 0.72);
  border-radius: 50%;
  color: #f4d47f;
  font-size: 25px;
  font-weight: 900;
}

.nearest-mosque-head strong {
  display: block;
  color: #fff5dd;
  font-size: 26px;
  line-height: 1.05;
}

.nearest-mosque-head p,
.nearest-mosque-preview p {
  margin: 4px 0 0;
  color: rgba(255, 245, 221, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.mosque-map-button,
.mosque-refresh-button,
.mosque-arrow {
  border: 1px solid rgba(231, 199, 119, 0.2);
  color: #f4d47f;
  background:
    linear-gradient(145deg, rgba(231, 199, 119, 0.14), rgba(231, 199, 119, 0.045)),
    rgba(255, 244, 220, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.06);
}

.mosque-map-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.nearest-mosque-preview {
  grid-template-columns: 64px minmax(0, 1fr) 44px;
  gap: 12px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(255, 244, 220, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.nearest-mosque-list {
  display: grid;
  gap: 8px;
}

.mosque-result-item {
  width: 100%;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  min-height: 74px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mosque-result-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mosque-distance {
  display: grid;
  justify-items: end;
  min-width: 68px;
  color: #f4d47f;
  font-weight: 900;
}

.mosque-distance small {
  margin-top: 4px;
  color: rgba(255, 245, 221, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.mosque-icon-box {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: #f4d47f;
  background:
    linear-gradient(145deg, rgba(231, 199, 119, 0.18), rgba(231, 199, 119, 0.04)),
    rgba(255, 255, 255, 0.035);
  font-size: 29px;
}

.nearest-mosque-preview strong {
  display: block;
  font-size: 18px;
}

.mosque-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.mosque-refresh-button {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 15px;
  text-align: left;
}

.mosque-refresh-button strong {
  color: #f4d47f;
  font-size: 15px;
}

.mosque-refresh-button small {
  overflow: hidden;
  color: rgba(255, 245, 221, 0.62);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .nearest-mosque-card {
    padding: 12px;
  }

  .nearest-mosque-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .mosque-map-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .nearest-mosque-head strong {
    font-size: 22px;
  }

  .nearest-mosque-preview {
    grid-template-columns: 52px minmax(0, 1fr) 38px;
  }

  .mosque-icon-box {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }
}

body.dark .premium-prayer-card {
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.06), rgba(255, 244, 220, 0.012)),
    rgba(8, 12, 15, 0.28);
}

.prayer-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.74fr);
  gap: 8px;
  align-items: start;
}

.next-prayer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.prayer-card-notify-button {
  position: relative;
  width: 72px;
  height: 72px;
  min-width: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.prayer-card-notify-button.active {
  color: #f2d58b;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.prayer-card-notify-button.muted {
  color: #f2d58b;
}

.prayer-card-notify-button.muted::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  z-index: 3;
  height: 7px;
  border-radius: 999px;
  background: #e23939;
  box-shadow: 0 0 10px rgba(226, 57, 57, 0.55);
  transform: rotate(-38deg);
}

.bell-shape {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  line-height: 1;
  transform: translateY(-1px);
  transform-origin: center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.bell-shape svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: #f5c84f;
  stroke: #ffe7a8;
  stroke-width: 1.2;
}

.bell-shape .bell-highlight {
  fill: rgba(255, 239, 181, 0.56);
  stroke: none;
}

.prayer-location-chip {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid rgba(231, 199, 119, 0.22);
  border-radius: 15px;
  color: #fff4dc;
  text-align: right;
  background: rgba(255, 244, 220, 0.045);
  box-shadow: none;
}

.prayer-location-chip span {
  color: #e7c777;
  font-size: 11px;
  font-weight: 900;
}

.prayer-location-chip strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prayer-location-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(242, 213, 139, 0.2);
  border-radius: 13px;
  background: rgba(7, 9, 13, 0.42);
}

.prayer-location-notice span {
  color: rgba(255, 245, 221, 0.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.prayer-location-notice button {
  min-height: 32px;
  padding: 0 10px;
  color: #07100d;
  border: 1px solid rgba(242, 213, 139, 0.55);
  border-radius: 11px;
  background: linear-gradient(135deg, #8f6926, #e7c777 50%, #9f772e);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.prayer-notify-button {
  display: grid;
  width: 42px;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(231, 199, 119, 0.22);
  border-radius: 15px;
  color: rgba(255, 244, 220, 0.42);
  background: rgba(255, 244, 220, 0.035);
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.06);
}

.prayer-notify-button.active {
  color: #07100d;
  background: linear-gradient(135deg, #8f6926, #e7c777 48%, #9f772e);
  border-color: rgba(231, 199, 119, 0.7);
  box-shadow:
    0 0 22px rgba(231, 199, 119, 0.24),
    inset 0 1px 0 rgba(255, 244, 220, 0.32);
}

.notification-panel {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: end center;
  margin: 0;
  padding: 18px 14px calc(var(--nav-safe) - 18px);
  background:
    radial-gradient(circle at 50% 24%, rgba(231, 199, 119, 0.16), transparent 32%),
    rgba(2, 3, 5, 0.72);
  backdrop-filter: blur(10px);
}

.notification-card {
  display: grid;
  gap: 12px;
  width: min(100%, 472px);
  max-height: calc(100dvh - var(--nav-safe) - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(231, 199, 119, 0.24);
  border-radius: 22px;
  color: #fff5dd;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    #080b0f;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 245, 221, 0.04);
}

.notification-card h3 {
  padding-right: 44px;
}

.notification-panel-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.notify-group strong {
  display: block;
  color: #fff4dc;
  font-size: 14px;
}

.notification-panel-head small {
  display: block;
  margin-top: 3px;
  color: #b7afa2;
  font-size: 11px;
  font-weight: 800;
}

.notify-master,
.notify-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff4dc;
  font-size: 12px;
  font-weight: 900;
}

.notify-master {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(231, 199, 119, 0.16);
  border-radius: 13px;
  background: rgba(255, 244, 220, 0.04);
}

.notify-master span {
  display: grid;
  gap: 2px;
}

.notify-master strong {
  color: #fff4dc;
  font-size: 13px;
  line-height: 1.15;
}

.notify-master small {
  color: #b7afa2;
  font-size: 11px;
  font-weight: 900;
}

.notify-master.active {
  border-color: rgba(231, 199, 119, 0.28);
  background: rgba(231, 199, 119, 0.08);
}

.notify-group {
  display: grid;
  gap: 8px;
}

.notify-options-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.notify-chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.notify-chip {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(231, 199, 119, 0.14);
  border-radius: 12px;
  background: rgba(255, 244, 220, 0.035);
}

.notify-master input,
.notify-chip input {
  accent-color: #e7c777;
}

.manual-location-card {
  gap: 13px;
}

.manual-location-copy {
  margin: 0;
  color: rgba(255, 245, 221, 0.74);
  font-size: 13px;
  line-height: 1.42;
}

.manual-location-selects {
  display: grid;
  gap: 10px;
}

.manual-location-selects label {
  display: grid;
  gap: 6px;
}

.manual-location-selects span {
  color: rgba(255, 245, 221, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.manual-location-selects select {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(246, 202, 112, 0.24);
  border-radius: 14px;
  color: #fff5dd;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-weight: 900;
}

.manual-location-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.prayer-location-selects {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6px;
}

.prayer-location-selects select {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(231, 199, 119, 0.18);
  border-radius: 12px;
  color: #fff4dc;
  background: rgba(255, 244, 220, 0.04);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.premium-round-icon,
.premium-card-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 199, 119, 0.26);
  border-radius: 50%;
  color: #e7c777;
  background:
    radial-gradient(circle at 50% 35%, rgba(231, 199, 119, 0.18), transparent 44%),
    rgba(255, 244, 220, 0.055);
}

.premium-round-icon {
  width: 49px;
  height: 49px;
  font-size: 24px;
}

.next-prayer small,
.premium-section-title span {
  color: #b7afa2;
  font-size: 12px;
}

.next-prayer strong {
  display: block;
  color: #fff4dc;
  font-size: 24px;
  line-height: 1.05;
}

.next-prayer span {
  display: block;
  color: #fff4dc;
  font-size: 11px;
  font-weight: 800;
}

.next-prayer span b {
  color: #b7afa2;
  font-size: 11px;
  font-weight: 900;
}

.next-prayer em {
  display: block;
  color: #c8bfae;
  font-size: 18px;
  font-weight: 900;
  font-style: normal;
}

.prayer-times-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  overflow: hidden;
  padding-bottom: 2px;
}

.prayer-time {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px 3px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #c8bfae;
  background: rgba(255, 244, 220, 0.035);
}

.prayer-time span {
  color: #e7c777;
  font-size: 17px;
}

.prayer-time strong {
  font-size: 9px;
}

.prayer-time small {
  font-size: 12px;
  font-weight: 900;
}

.prayer-time.active {
  border-color: rgba(231, 199, 119, 0.42);
  color: #fff4dc;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 199, 119, 0.22), transparent 45%),
    rgba(231, 199, 119, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.08);
}

.premium-verse {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px;
}

.premium-verse strong {
  display: block;
  margin-bottom: 5px;
  color: #e7c777;
  font-size: 14px;
}

.premium-verse p {
  margin-bottom: 7px;
  color: #eee0c7;
  font-size: 14px;
  line-height: 1.45;
}

.premium-verse small {
  color: #b7afa2;
  font-size: 12px;
}

.premium-arrow {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(231, 199, 119, 0.18);
  border-radius: 50%;
  color: #e7c777;
  font-size: 22px;
}

.premium-section {
  margin-top: 4px;
}

.premium-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.premium-section-title strong {
  color: #fff4dc;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-grid,
.premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.premium-feature-grid {
  margin-top: 0;
}

.feature-card {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
}

body.dark .feature-card {
  border-color: rgba(231, 199, 119, 0.16);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 199, 119, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(255, 244, 220, 0.055), rgba(255, 244, 220, 0.018)),
    rgba(12, 16, 19, 0.88);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 244, 220, 0.06);
}

body.dark .feature-card strong {
  color: #fff4dc;
}

body.dark .feature-card span {
  color: #b7afa2;
}

.premium-feature-card {
  position: relative;
  min-height: 148px;
  place-items: center;
  align-content: center;
  overflow: hidden;
  padding: 16px 10px 14px;
  text-align: center;
  isolation: isolate;
}

.premium-feature-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 199, 119, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(255, 244, 220, 0.07), rgba(255, 244, 220, 0.018)),
    #090d10;
}

.premium-feature-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--radius) - 1px);
  background:
    linear-gradient(145deg, rgba(231, 199, 119, 0.13), transparent 42%),
    rgba(8, 12, 15, 0.72);
}

.premium-card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  font-size: 31px;
  font-weight: 900;
  background:
    radial-gradient(circle at 50% 35%, rgba(231, 199, 119, 0.22), transparent 46%),
    linear-gradient(180deg, rgba(231, 199, 119, 0.12), rgba(255, 244, 220, 0.035));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 244, 220, 0.08);
  text-shadow: 0 0 22px rgba(231, 199, 119, 0.32);
}

.premium-card-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.premium-feature-card strong {
  color: #fff4dc;
  font-size: 16px;
  line-height: 1.18;
}

.premium-feature-card span:not(.premium-card-icon) {
  max-width: 132px;
  color: #bdb4a4;
  font-size: 12px;
  line-height: 1.35;
}

.feature-card strong {
  font-size: 14px;
}

.feature-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

.app-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 4px;
}

.app-footer button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

body.dark .app-footer button {
  color: rgba(255, 244, 220, 0.72);
  background: rgba(255, 244, 220, 0.045);
  border-color: rgba(231, 199, 119, 0.14);
}

.card,
.wide-card,
.lesson-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

body.dark .card,
body.dark .wide-card,
body.dark .lesson-card,
body.dark .inline-reading,
body.dark .counter-card {
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.055), rgba(255, 244, 220, 0.015)),
    rgba(9, 13, 16, 0.84);
  border-color: rgba(231, 199, 119, 0.18);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 244, 220, 0.06);
}

.card {
  min-height: 116px;
  padding: 14px;
}

.card[onclick] {
  cursor: pointer;
}

.wide-card,
.lesson-card {
  margin-top: 12px;
  padding: 16px;
}

.surah-group {
  display: grid;
  gap: 8px;
}

.surah-progress-list {
  display: grid;
  gap: 12px;
}

.surah-progress-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(217, 183, 106, 0.28);
  border-radius: 20px;
  color: #fff5dd;
  text-align: left;
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 213, 112, 0.18), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(255, 236, 177, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(255, 239, 190, 0.105), rgba(255, 218, 125, 0.03)),
    rgba(13, 14, 12, 0.8);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 244, 220, 0.05);
}

.surah-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  align-self: start;
  border: 2px solid rgba(217, 183, 106, 0.48);
  border-radius: 50%;
  color: #f4d47f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 900;
}

.surah-progress-main,
.surah-progress-head,
.surah-progress-bottom {
  min-width: 0;
}

.surah-progress-main {
  display: grid;
  gap: 13px;
}

.surah-progress-head,
.surah-progress-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.surah-progress-head strong {
  display: block;
  color: #fff5dd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.12;
}

.surah-progress-head small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 245, 221, 0.7);
  font-size: 14px;
}

.surah-progress-head em {
  flex: 0 0 auto;
  color: rgba(255, 245, 221, 0.62);
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.surah-progress-card.completed .surah-progress-head em {
  color: #58bf68;
}

.surah-progress-card.reading .surah-progress-head em {
  color: #dfa238;
}

.surah-progress-track {
  position: relative;
  height: 11px;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.surah-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: #58bf68;
}

.surah-progress-card.reading .surah-progress-track i {
  background: #d89a2e;
}

.surah-progress-card.not-started .surah-progress-track i {
  background: rgba(255, 255, 255, 0.22);
}

.surah-progress-bottom b {
  flex: 0 0 auto;
  color: rgba(255, 245, 221, 0.78);
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .surah-progress-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    min-height: 116px;
    padding: 12px;
    border-radius: 17px;
  }

  .surah-number {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }

  .surah-progress-head strong {
    font-size: 18px;
  }

  .surah-progress-head small {
    font-size: 12px;
  }

  .surah-progress-head em {
    font-size: 12px;
  }

  .surah-progress-bottom {
    align-items: flex-end;
  }

  .surah-progress-bottom b {
    font-size: 12px;
  }
}

.inline-reading {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compact-button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.audio-dock {
  position: fixed;
  left: 50%;
  bottom: calc(max(4px, env(safe-area-inset-bottom)) + 68px);
  z-index: 6;
  display: grid;
  width: min(calc(100% - 12px), 508px);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(231, 199, 119, 0.24);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.audio-dock > div {
  grid-column: 1;
  min-width: 0;
}

.audio-controls {
  grid-column: 2;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-self: end;
}

.audio-icon-button,
.audio-speed-button {
  display: grid;
  min-width: 44px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(231, 199, 119, 0.32);
  border-radius: 14px;
  color: #10100b;
  background: linear-gradient(135deg, #8f6926, #e7c777 48%, #9f772e);
  font-size: 18px;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(231, 199, 119, 0.14);
}

.audio-speed-button {
  color: #e7c777;
  background: rgba(231, 199, 119, 0.08);
}

.audio-speed-button.active {
  color: #10100b;
  background: linear-gradient(135deg, #8f6926, #e7c777 48%, #9f772e);
}

.audio-dock strong,
.audio-dock small {
  display: block;
}

.audio-dock small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.audio-dock input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 12px;
  accent-color: var(--gold);
}

.reading-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.reading-section > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
}

.audio-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.card strong,
.wide-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.card p,
.wide-card p,
.lesson-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.arabic {
  margin: 14px 0;
  color: var(--primary);
  font-family: "Traditional Arabic", "Amiri", Georgia, serif;
  font-size: 30px;
  line-height: 1.75;
  text-align: right;
}

.quran-page {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(184, 138, 42, 0.2);
  border-radius: var(--radius);
  background: #fff;
}

body.dark .quran-page {
  background: #fff;
}

.ayah-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #111;
  text-align: right;
  background: transparent;
}

.ayah-line .ayah-text {
  grid-column: 1;
  font-family: "Traditional Arabic", "Amiri", Georgia, serif;
  font-size: 27px;
  line-height: 1.65;
}

.ayah-meaning {
  grid-column: 1 / -1;
  color: #32302b;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.ayah-line small {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(184, 138, 42, 0.32);
  border-radius: 50%;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.ayah-line.active {
  border-color: rgba(184, 138, 42, 0.5);
  background: rgba(184, 138, 42, 0.14);
  box-shadow: inset 0 0 0 1px rgba(184, 138, 42, 0.12);
}

.ayah-line.audio-active {
  border-color: rgba(231, 199, 119, 0.8);
  background:
    linear-gradient(90deg, rgba(231, 199, 119, 0.18), rgba(231, 199, 119, 0.04));
  box-shadow:
    0 0 0 2px rgba(231, 199, 119, 0.08),
    inset 0 0 0 1px rgba(255, 244, 220, 0.12);
}

.hatim-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.hatim-box small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.small-arabic {
  font-size: 22px;
  line-height: 1.55;
}

.meta-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qibla-screen .wide-card:last-child,
.dhikr-screen .counter-card {
  margin-bottom: 28px;
}

.qibla-screen .chip-row .primary-button,
.qibla-screen .chip-row .ghost-button {
  flex: 1 1 145px;
}

.qibla-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 8px;
}

.qibla-overline {
  display: block;
  margin-bottom: 5px;
  color: #f1c66d;
  font-size: 13px;
  font-weight: 900;
}

.qibla-title {
  color: #fff5dd;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.62);
}

.qibla-icon-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(242, 198, 109, 0.36);
  border-radius: 50%;
  color: #f9d27a;
  background: rgba(10, 12, 16, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.38);
  font-size: 24px;
  font-weight: 900;
}

.qibla-compass-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 0;
}

.qibla-angle-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(242, 198, 109, 0.34);
  border-radius: 999px;
  color: #f9d27a;
  background:
    linear-gradient(135deg, rgba(242, 198, 109, 0.16), rgba(9, 12, 18, 0.82)),
    rgba(8, 10, 14, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.qibla-angle-pill small {
  color: rgba(255, 245, 221, 0.76);
  font-weight: 800;
}

.chip {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.primary-button,
.ghost-button {
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
}

.primary-button {
  color: #fffaf0;
  background: var(--primary);
}

.ghost-button {
  color: var(--primary);
}

body.dark .primary-button {
  color: #080b0d;
  border-color: rgba(231, 199, 119, 0.74);
  background: linear-gradient(135deg, #8f6926, #e7c777 48%, #9f772e);
  box-shadow: 0 12px 26px rgba(231, 199, 119, 0.14);
}

body.dark .ghost-button,
body.dark .chip {
  color: #e7c777;
  border-color: rgba(231, 199, 119, 0.22);
  background: rgba(231, 199, 119, 0.08);
}

.list {
  display: grid;
  gap: 10px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 900;
}

.category-tabs button.active {
  color: #fffaf0;
  background: var(--primary);
}

body.dark .category-tabs button.active {
  color: #080b0d;
  background: linear-gradient(135deg, #8f6926, #e7c777 48%, #9f772e);
}

.message-grid {
  display: grid;
  gap: 12px;
}

.message-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.message-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #050607;
}

.message-card div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.message-card small {
  color: var(--muted);
  font-weight: 900;
}

.custom-card-list {
  display: grid;
  gap: 8px;
}

.custom-info-card {
  cursor: pointer;
}

.custom-card-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(231, 199, 119, 0.18);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.08);
}

.custom-card-modal {
  max-height: calc(100dvh - var(--nav-safe) - 36px);
  overflow: auto;
}

.custom-modal-image {
  width: 100%;
  max-height: 190px;
  border-radius: 16px;
  object-fit: cover;
}

.custom-modal-copy {
  display: grid;
  gap: 8px;
}

.custom-modal-copy small {
  color: #e7c777;
  font-size: 11px;
  font-weight: 950;
}

.custom-modal-copy p {
  margin: 0;
  color: rgba(255, 245, 221, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  background: var(--surface);
}

.list-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.compass-wrap {
  display: grid;
  place-items: center;
  min-height: 346px;
}

.compass {
  position: relative;
  display: grid;
  width: min(80vw, 342px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(184, 138, 42, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 252, 244, 0.96) 0 30%, rgba(219, 238, 229, 0.86) 31% 49%, rgba(15, 95, 74, 0.12) 50%),
    repeating-conic-gradient(from 0deg, rgba(184, 138, 42, 0.38) 0deg 1deg, transparent 1deg 10deg);
  box-shadow: 0 24px 60px rgba(18, 42, 35, 0.18);
}

.compass::before,
.compass::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.compass::before {
  inset: 18px;
  border: 1px solid rgba(15, 95, 74, 0.22);
}

.compass::after {
  inset: 50px;
  border: 1px dashed rgba(184, 138, 42, 0.32);
}

body.dark .compass {
  background:
    radial-gradient(circle, rgba(8, 11, 13, 0.96) 0 31%, rgba(16, 21, 24, 0.88) 32% 49%, rgba(231, 199, 119, 0.12) 50%),
    repeating-conic-gradient(from 0deg, rgba(231, 199, 119, 0.55) 0deg 1deg, transparent 1deg 10deg);
  border-color: rgba(231, 199, 119, 0.56);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 244, 220, 0.05);
}

.direction {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 252, 244, 0.78);
  font-size: 13px;
  font-weight: 900;
}

body.dark .direction {
  background: rgba(16, 36, 31, 0.72);
}

.north { top: 20px; left: calc(50% - 15px); }
.east { right: 20px; top: calc(50% - 15px); }
.south { bottom: 20px; left: calc(50% - 15px); }
.west { left: 20px; top: calc(50% - 15px); }

.needle {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 86px;
  height: 48%;
  transform-origin: 50% 92%;
  translate: 0 -39%;
  transition: transform 180ms ease-out;
}

.needle-line {
  position: absolute;
  top: 46px;
  width: 14px;
  height: 124px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--primary));
  filter: drop-shadow(0 12px 18px rgba(15, 95, 74, 0.22));
}

.needle-kaaba {
  position: absolute;
  top: -8px;
  z-index: 2;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 2px solid rgba(184, 138, 42, 0.7);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 14px 28px rgba(18, 42, 35, 0.22);
}

.needle::after {
  content: "";
  position: absolute;
  bottom: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
}

.kaaba-dot {
  position: relative;
  z-index: 3;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf0;
  font-weight: 900;
  background: var(--primary);
  box-shadow: inset 0 0 0 4px rgba(184, 138, 42, 0.38);
}

.premium-compass {
  width: min(74vw, 308px);
  border: 2px solid rgba(246, 202, 112, 0.68);
  background:
    radial-gradient(circle at center, rgba(8, 10, 13, 0.98) 0 20%, rgba(11, 14, 18, 0.98) 21% 38%, rgba(16, 18, 21, 0.94) 39% 62%, rgba(6, 8, 12, 0.98) 63%),
    repeating-conic-gradient(from 0deg, rgba(246, 202, 112, 0.78) 0deg 0.8deg, transparent 0.8deg 3deg, rgba(246, 202, 112, 0.22) 3deg 4deg, transparent 4deg 10deg);
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.62),
    0 0 0 9px rgba(246, 202, 112, 0.05),
    inset 0 0 0 10px rgba(255, 245, 221, 0.02),
    inset 0 0 42px rgba(246, 202, 112, 0.12);
}

.premium-compass::before {
  inset: 18px;
  border: 1px solid rgba(246, 202, 112, 0.34);
  box-shadow: inset 0 0 38px rgba(246, 202, 112, 0.08);
}

.premium-compass::after {
  inset: 62px;
  border: 1px solid rgba(246, 202, 112, 0.46);
  box-shadow: 0 0 28px rgba(246, 202, 112, 0.09);
}

.premium-compass .direction {
  width: 36px;
  height: 36px;
  color: #fff5dd;
  background: transparent;
  font-size: 21px;
  text-shadow: 0 0 14px rgba(246, 202, 112, 0.44);
}

.premium-compass .north {
  top: 26px;
}

.premium-compass .east {
  right: 28px;
}

.premium-compass .south {
  bottom: 26px;
}

.premium-compass .west {
  left: 28px;
}

.mini-direction {
  position: absolute;
  z-index: 1;
  color: rgba(255, 245, 221, 0.66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.mini-direction.nw { left: 72px; top: 82px; rotate: -38deg; }
.mini-direction.ne { right: 72px; top: 82px; rotate: 38deg; }
.mini-direction.se { right: 72px; bottom: 82px; rotate: -38deg; }
.mini-direction.sw { left: 72px; bottom: 82px; rotate: 38deg; }

.premium-compass .needle {
  width: 76px;
  height: 46%;
  transform-origin: 50% 94%;
  transition: transform 1100ms cubic-bezier(0.16, 0.84, 0.2, 1);
}

.premium-compass .needle-line {
  top: 32px;
  width: 0;
  height: 0;
  border-right: 18px solid transparent;
  border-bottom: 112px solid #f6ca70;
  border-left: 18px solid transparent;
  border-radius: 0;
  background: none;
  filter:
    drop-shadow(0 10px 18px rgba(246, 202, 112, 0.28))
    drop-shadow(0 0 9px rgba(246, 202, 112, 0.44));
}

.premium-compass .needle-kaaba {
  top: -10px;
  width: 58px;
  height: 58px;
  border-color: rgba(246, 202, 112, 0.86);
  background: #06080c;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.42),
    0 0 0 7px rgba(246, 202, 112, 0.12);
}

.premium-compass .needle::after {
  bottom: 1px;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 245, 221, 0.58);
  background: #f6ca70;
}

.kaaba-core {
  position: relative;
  z-index: 4;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(246, 202, 112, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(246, 202, 112, 0.18), transparent 52%),
    #05070a;
  box-shadow:
    0 0 0 10px rgba(246, 202, 112, 0.06),
    inset 0 0 22px rgba(246, 202, 112, 0.16);
}

.kaaba-core img {
  width: 84%;
  height: 84%;
  object-fit: cover;
  border-radius: 18px;
}

.compass-center {
  position: relative;
  z-index: 4;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(246, 202, 112, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(246, 202, 112, 0.24) 0 16%, rgba(246, 202, 112, 0.05) 17% 52%, rgba(5, 7, 10, 0.92) 53%),
    #05070a;
  box-shadow:
    0 0 0 10px rgba(246, 202, 112, 0.05),
    inset 0 0 22px rgba(246, 202, 112, 0.14);
}

.qibla-info-card {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 245, 221, 0.08);
  border-radius: 18px;
  color: #fff5dd;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(11, 13, 18, 0.76);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(246, 202, 112, 0.06);
  backdrop-filter: blur(18px);
}

.qibla-info-side,
.qibla-info-main {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.qibla-info-card span,
.qibla-info-card small {
  color: rgba(255, 245, 221, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.qibla-info-side strong {
  color: #fff5dd;
  font-size: 15px;
}

.qibla-info-main strong {
  color: #f6ca70;
  font-size: clamp(44px, 14vw, 64px);
  line-height: 0.95;
  text-shadow: 0 0 24px rgba(246, 202, 112, 0.32);
}

.qibla-status {
  margin: 7px 2px 0;
  color: rgba(255, 245, 221, 0.68);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.qibla-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 0;
}

.qibla-location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: end;
  margin-top: 10px;
}

.qibla-location-picker {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.qibla-location-picker span {
  color: rgba(255, 245, 221, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.qibla-location-picker select,
.qibla-location-picker strong {
  width: 100%;
  min-height: 42px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(246, 202, 112, 0.24);
  border-radius: 14px;
  color: #fff5dd;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-weight: 900;
}

.qibla-location-picker strong {
  display: flex;
  align-items: center;
}

.qibla-location-row .dark-ghost-button {
  white-space: nowrap;
}

.calibration-panel {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: end center;
  padding: 18px 14px calc(var(--nav-safe) - 18px);
  background:
    radial-gradient(circle at 50% 24%, rgba(246, 202, 112, 0.16), transparent 32%),
    rgba(2, 3, 5, 0.72);
  backdrop-filter: blur(10px);
}

.calibration-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 472px);
  padding: 18px;
  border: 1px solid rgba(246, 202, 112, 0.24);
  border-radius: 22px;
  color: #fff5dd;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    #080b0f;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 245, 221, 0.04);
}

.calibration-card h3 {
  max-width: 280px;
  color: #fff5dd;
  font-size: 24px;
  line-height: 1.08;
}

.info-page-card {
  max-height: calc(100dvh - var(--nav-safe) - 34px);
  overflow: auto;
}

.info-page-card > small {
  color: #e7c777;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.info-page-copy {
  display: grid;
  gap: 10px;
}

.info-page-copy p {
  margin: 0;
  color: rgba(255, 245, 221, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.info-menu-list {
  display: grid;
  gap: 10px;
}

.info-menu-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  color: #fff5dd;
  border: 1px solid rgba(246, 202, 112, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.info-menu-list strong {
  font-size: 15px;
}

.info-menu-list span {
  color: rgba(255, 245, 221, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.qaza-card {
  gap: 14px;
  overflow: hidden;
}

.confirm-card {
  gap: 16px;
}

.confirm-card h3 {
  max-width: none;
}

.confirm-card p {
  margin: 0;
  color: rgba(255, 245, 221, 0.78);
  font-size: 15px;
  line-height: 1.45;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-actions .primary-button,
.confirm-actions .dark-ghost-button {
  width: 100%;
  min-height: 48px;
}

.qaza-head {
  display: grid;
  gap: 6px;
  padding-right: 42px;
}

.qaza-head small {
  color: #e7c777;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.qaza-head p {
  margin: 0;
  color: rgba(255, 245, 221, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.qaza-total {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(231, 199, 119, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(231, 199, 119, 0.18), transparent 36%),
    rgba(255, 244, 220, 0.055);
}

.qaza-total span,
.qaza-total small {
  color: rgba(255, 245, 221, 0.68);
  font-weight: 900;
}

.qaza-total strong {
  color: #f6ca70;
  font-size: 32px;
  line-height: 1;
}

.qaza-list {
  display: grid;
  gap: 9px;
}

.qaza-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 78px 48px 48px;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(231, 199, 119, 0.14);
  border-radius: 16px;
  background: rgba(255, 244, 220, 0.035);
}

.qaza-row strong {
  color: #fff5dd;
  font-size: 15px;
}

.qaza-row input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(231, 199, 119, 0.18);
  border-radius: 12px;
  color: #fff5dd;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 18px;
  font-weight: 950;
}

.qaza-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 245, 221, 0.12);
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.qaza-button.plus {
  background: linear-gradient(180deg, #ff3d32, #9a0e0a);
}

.qaza-button.minus {
  background: linear-gradient(180deg, #76e467, #168728);
}

.calibration-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 245, 221, 0.12);
  border-radius: 50%;
  color: #fff5dd;
  background: rgba(255, 255, 255, 0.055);
  font-size: 24px;
  line-height: 1;
}

.calibration-eight {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(246, 202, 112, 0.36);
  border-radius: 50%;
  color: #f6ca70;
  background:
    radial-gradient(circle, rgba(246, 202, 112, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.045);
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 24px rgba(246, 202, 112, 0.38);
}

.calibration-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 245, 221, 0.78);
  font-size: 14px;
  line-height: 1.42;
}

.gold-button {
  border: 1px solid rgba(246, 202, 112, 0.52);
  color: #1b1307;
  background: linear-gradient(135deg, #f4d586, #9d6b22);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.dark-ghost-button {
  border: 1px solid rgba(255, 245, 221, 0.1);
  color: #fff5dd;
  background: rgba(255, 255, 255, 0.045);
}

.times {
  display: grid;
  gap: 8px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.time-row:last-child {
  border-bottom: 0;
}

.counter-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  padding-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.9), rgba(219, 238, 229, 0.78)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface-solid);
  font: inherit;
  font-weight: 800;
}

.counter-button {
  display: grid;
  position: relative;
  width: min(58vw, 232px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  border: 2px solid rgba(184, 138, 42, 0.54);
  border-radius: 50%;
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 240, 0.18), transparent 34%),
    repeating-conic-gradient(from 0deg, rgba(184, 138, 42, 0.28) 0deg 8deg, transparent 8deg 18deg),
    linear-gradient(145deg, #0f5f4a, #083b31);
  box-shadow: 0 22px 52px rgba(15, 95, 74, 0.24);
}

.counter-button::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 20, 19, 0.22), transparent 62%);
}

.counter-button::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-radius: 50%;
  pointer-events: none;
}

.counter-kaaba {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 20, 19, 0.55);
  box-shadow:
    inset 0 0 0 2px rgba(244, 212, 127, 0.42),
    0 12px 26px rgba(6, 20, 19, 0.34);
}

.counter-number {
  position: relative;
  z-index: 3;
  align-self: center;
  justify-self: center;
  padding-top: 0;
  color: #fffaf0;
  font-size: 64px;
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.counter-button small {
  position: relative;
  z-index: 3;
  align-self: end;
  max-width: 76%;
  margin-bottom: 24px;
  color: rgba(255, 250, 240, 0.9);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--primary-soft);
}

.progress-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.counter-meta {
  text-align: center;
}

.counter-actions {
  position: sticky;
  bottom: 112px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  box-shadow: 0 12px 28px rgba(18, 42, 35, 0.14);
  backdrop-filter: blur(14px);
}

.manual-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.manual-target input {
  min-height: 42px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface-solid);
  font: inherit;
  font-weight: 800;
}

@media (max-height: 760px) {
  .screen.qibla-screen {
    padding-top: 76px;
  }

  .qibla-hero {
    margin-bottom: 10px;
  }

  .qibla-title {
    font-size: 28px;
  }

  .premium-compass {
    width: min(78vw, 298px);
  }

  .qibla-info-card {
    grid-template-columns: 1fr;
    margin-top: 16px;
    padding: 9px 10px;
  }

  .qibla-info-side,
  .qibla-status {
    display: none;
  }

  .qibla-info-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .qibla-info-main strong {
    font-size: 32px;
  }

  .counter-card {
    gap: 8px;
    padding: 12px;
    padding-bottom: 16px;
  }

  .counter-button {
    width: min(46vw, 184px);
  }

  .counter-kaaba {
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
  }

  .counter-number {
    font-size: 46px;
    padding-top: 0;
  }

  .counter-button small {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .counter-actions {
    bottom: 108px;
  }
}

@media (max-width: 420px) {
  .premium-hero {
    min-height: 188px;
    padding: 24px 14px 18px;
  }

  .premium-hero h2 {
    font-size: 30px;
  }

  .premium-hero::after {
    right: 58px;
    top: 28px;
    font-size: 58px;
  }

  .premium-round-icon {
    width: 49px;
    height: 49px;
    font-size: 24px;
  }

  .prayer-card-head {
    grid-template-columns: minmax(0, 1fr) minmax(106px, 0.68fr);
    gap: 6px;
  }

  .notify-chip-grid {
    grid-template-columns: 1fr;
  }

  .next-prayer strong {
    font-size: 24px;
  }

  .next-prayer em {
    font-size: 17px;
  }

  .next-prayer span,
  .next-prayer span b {
    font-size: 11px;
  }

  .prayer-times-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    overflow: hidden;
  }

  .prayer-time {
    padding: 6px 2px;
    border-radius: 12px;
  }

  .prayer-time span {
    font-size: 15px;
  }

  .prayer-time strong {
    font-size: 8px;
  }

  .prayer-time small {
    font-size: 11px;
  }

  .premium-feature-card {
    min-height: 136px;
  }

  .qibla-hero {
    align-items: flex-start;
  }

  .premium-compass {
    width: min(88vw, 340px);
  }

  .kaaba-core {
    width: 96px;
    height: 96px;
  }

  .mini-direction.nw { left: 60px; top: 70px; }
  .mini-direction.ne { right: 60px; top: 70px; }
  .mini-direction.se { right: 60px; bottom: 70px; }
  .mini-direction.sw { left: 60px; bottom: 70px; }

  .qibla-info-card {
    grid-template-columns: 1fr 1.18fr 1fr;
    gap: 6px;
    padding: 14px 10px;
  }

  .qibla-info-main strong {
    font-size: 46px;
  }

  .qibla-actions {
    grid-template-columns: 1fr 1fr;
  }

  .qibla-actions .gold-button {
    grid-column: 1 / -1;
  }

  .qibla-location-row {
    grid-template-columns: 1fr 1fr;
  }

  .qibla-location-picker {
    grid-column: 1 / -1;
  }
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 5px 6px max(5px, env(safe-area-inset-bottom));
  border: 1px solid rgba(24, 35, 31, 0.08);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  box-shadow: 0 -10px 34px rgba(18, 42, 35, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 4px 2px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #46524d;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.08;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 95, 74, 0.07);
  color: #48534f;
  transition: inherit;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active {
  color: var(--primary);
  border-color: rgba(15, 95, 74, 0.2);
  background:
    linear-gradient(180deg, rgba(219, 238, 229, 0.82), rgba(255, 252, 244, 0.74));
  box-shadow: 0 12px 28px rgba(15, 95, 74, 0.16);
}

.nav-item.active .nav-icon {
  color: var(--primary);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55), transparent 42%),
    rgba(15, 95, 74, 0.12);
}

.nav-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.nav-item.active::after {
  background: color-mix(in srgb, var(--primary) 68%, #fff);
}

body.dark .bottom-nav {
  border-color: rgba(245, 239, 227, 0.12);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
}

body.dark .nav-item {
  color: #bdc8bf;
}

body.dark .nav-icon {
  background: rgba(136, 216, 186, 0.1);
  color: #d5ded8;
}

body.dark .nav-item.active {
  background: rgba(136, 216, 186, 0.13);
  border-color: rgba(136, 216, 186, 0.22);
}

/* legacy span reset for older markup */
.nav-item > span:not(.nav-icon) {
  display: none;
}

/* removed old nav styles */
/*
.nav-item {
  display: grid;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.nav-item span {
  font-size: 20px;
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
}
*/

@media (min-width: 720px) {
  body {
    background:
      linear-gradient(120deg, rgba(15, 95, 74, 0.08), rgba(184, 138, 42, 0.08)),
      var(--bg);
  }

  .app-shell {
    min-height: 920px;
    margin-block: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(18, 42, 35, 0.2);
  }
}

.notification-panel.calibration-panel {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: end center;
  padding: 18px 14px calc(var(--nav-safe) - 18px);
  background:
    radial-gradient(circle at 50% 24%, rgba(246, 202, 112, 0.16), transparent 32%),
    rgba(2, 3, 5, 0.72);
  backdrop-filter: blur(10px);
}

.notification-card.calibration-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 472px);
  max-height: calc(100vh - var(--nav-safe) - 36px);
  max-height: calc(100dvh - var(--nav-safe) - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(246, 202, 112, 0.24);
  border-radius: 22px;
  color: #fff5dd;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    #080b0f;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 245, 221, 0.04);
}

.notification-card.calibration-card h3 {
  max-width: 280px;
  padding-right: 44px;
  color: #fff5dd;
  font-size: 24px;
  line-height: 1.08;
}

.surah-reader-panel.calibration-panel {
  place-items: stretch center;
  padding: max(12px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
}

.surah-reader-card.calibration-card {
  width: min(100%, 500px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 12px 12px 96px;
  border-radius: 20px;
}

.surah-reader-card .inline-reading {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.surah-reader-card .audio-row {
  position: sticky;
  top: -12px;
  z-index: 3;
  margin: -12px -12px 10px;
  padding: 12px 54px 10px 12px;
  border-bottom: 1px solid rgba(231, 199, 119, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 11, 15, 0.98), rgba(8, 11, 15, 0.9));
  backdrop-filter: blur(12px);
}

.surah-reader-card .audio-note {
  display: none;
}

.surah-reader-panel .audio-dock {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 10;
  width: min(calc(100% - 20px), 500px);
  transform: translateX(-50%);
}

body:has(.surah-reader-panel) .bottom-nav {
  display: none;
}

.screen.quran-screen.surah-page-screen {
  position: relative;
  min-height: 100dvh;
  height: 100dvh;
  margin: 0 -16px;
  padding: max(8px, env(safe-area-inset-top)) 0 112px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screen.quran-screen.surah-page-screen::-webkit-scrollbar {
  display: none;
}

.surah-back-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(246, 202, 112, 0.28);
  border-radius: 14px;
  color: #f4d47f;
  background: rgba(8, 11, 15, 0.74);
  font-size: 34px;
  line-height: 1;
}

.surah-page-content {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 10px 12px 16px;
}

.surah-page-content .inline-reading {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.surah-page-content .reading-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.surah-page-content .quran-page {
  width: 100%;
  margin-top: 0;
  border-radius: 16px;
}

.surah-page-screen .audio-note {
  display: none;
}

.surah-page-screen .audio-dock {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 10;
  width: min(calc(100% - 20px), 500px);
  transform: translateX(-50%);
}

body:has(.surah-page-screen) .bottom-nav {
  display: none;
}

@media (max-height: 760px) {
  .notification-panel.calibration-panel {
    padding: 12px 14px calc(var(--nav-safe) - 18px);
  }

  .notification-card.calibration-card {
    gap: 9px;
    padding: 14px;
    max-height: calc(100vh - var(--nav-safe) - 24px);
    max-height: calc(100dvh - var(--nav-safe) - 24px);
  }
}

/* Premium Islamic dark-gold refresh */
:root {
  --premium-bg-0: #030407;
  --premium-bg-1: #07111c;
  --premium-gold: #D9B76A;
  --premium-gold-bright: #F2D58B;
  --premium-ink: #fff6df;
  --premium-muted: rgba(255, 246, 223, 0.68);
  --premium-card: rgba(8, 11, 16, 0.54);
  --premium-border: rgba(217, 183, 106, 0.28);
  --premium-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
}

body,
body.dark {
  --bg: var(--premium-bg-0);
  --surface: var(--premium-card);
  --surface-solid: #080b10;
  --ink: var(--premium-ink);
  --muted: var(--premium-muted);
  --primary: var(--premium-gold);
  --primary-soft: rgba(217, 183, 106, 0.12);
  --gold: var(--premium-gold-bright);
  --line: var(--premium-border);
  --shadow: var(--premium-shadow);
  color: var(--premium-ink);
  background: linear-gradient(155deg, #020306 0%, #07111c 42%, #050506 100%);
}

.app-shell,
body.dark .app-shell {
  color: var(--premium-ink);
  background-color: var(--premium-bg-0);
  background-image:
    var(--bg-night);
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

body[data-screen="home"] .app-shell,
body.dark[data-screen="home"] .app-shell {
  background-size: 100% 136px;
}

.app-shell::before {
  display: none;
}

.topbar,
.screen,
.search-panel,
#modalRoot {
  position: relative;
  z-index: 1;
}

.topbar {
  padding: 8px 16px 8px;
}

.topbar h1,
.premium-hero h2,
.hero-title,
body.dark h1,
body.dark h2,
body.dark h3 {
  color: var(--premium-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.58);
}

.topbar h1 {
  font-size: clamp(12px, 3.1vw, 15px);
  line-height: 1.28;
}

.eyebrow,
body.dark .eyebrow,
.premium-greeting,
.search-result small,
.premium-verse strong,
.prayer-time span,
.next-prayer small,
.premium-section-title span {
  color: var(--premium-gold-bright);
}

.header-reference,
.hero-copy,
.premium-hero p:not(.premium-greeting),
.premium-verse small,
.next-prayer span b,
.next-prayer em {
  color: var(--premium-muted);
}

.icon-button,
.chip,
.primary-button,
.ghost-button,
.search-panel,
.search-box,
.search-result,
.premium-prayer-card,
.premium-verse,
.feature-card,
.premium-feature-card,
.card,
.wide-card,
.lesson-card,
.inline-reading,
.counter-card,
.message-card,
.notification-card,
.calibration-card,
.qibla-info-card,
.prayer-location-chip,
.prayer-notify-button,
.prayer-time,
.list-item,
.audio-dock {
  border-color: var(--premium-border);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 213, 112, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 240, 196, 0.105), rgba(255, 218, 125, 0.034)),
    rgba(14, 15, 13, 0.82);
  box-shadow:
    var(--premium-shadow),
    inset 0 1px 0 rgba(255, 246, 223, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.premium-hero {
  min-height: 202px;
  margin: -4px 0 12px;
  padding: 28px 16px 18px;
  border-color: rgba(242, 213, 139, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.52) 56%, rgba(3, 4, 7, 0.9) 100%),
    linear-gradient(90deg, rgba(3, 4, 7, 0.88), rgba(3, 4, 7, 0.22)),
    var(--bg-night) center / cover no-repeat;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 0 36px rgba(217, 183, 106, 0.12),
    inset 0 1px 0 rgba(255, 246, 223, 0.09);
}

.premium-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(3, 4, 7, 0.96));
}

.premium-hero::after {
  color: var(--premium-gold-bright);
  opacity: 0.82;
  text-shadow: 0 0 30px rgba(242, 213, 139, 0.38);
}

.premium-hero h2 {
  font-size: clamp(27px, 8vw, 34px);
  line-height: 1.06;
}

.premium-prayer-card {
  padding: 12px;
  border-color: rgba(242, 213, 139, 0.38);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 218, 118, 0.18), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(255, 242, 196, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(255, 238, 184, 0.13), rgba(218, 169, 74, 0.04)),
    rgba(14, 15, 13, 0.64);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 0 34px rgba(242, 213, 139, 0.13),
    inset 0 1px 0 rgba(255, 246, 223, 0.12);
}

.premium-prayer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(242, 213, 139, 0.16), transparent 34%, rgba(217, 183, 106, 0.08));
  opacity: 0.85;
}

.premium-prayer-card > * {
  position: relative;
  z-index: 1;
}

.premium-prayer-card .premium-round-icon,
.premium-card-icon,
.premium-bell,
.nav-icon {
  color: var(--premium-gold-bright);
  border-color: rgba(242, 213, 139, 0.34);
  background:
    linear-gradient(180deg, rgba(242, 213, 139, 0.18), rgba(217, 183, 106, 0.055)),
    rgba(7, 9, 13, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 223, 0.1),
    0 0 18px rgba(242, 213, 139, 0.1);
}

.next-prayer strong {
  color: var(--premium-ink);
  font-size: clamp(23px, 6vw, 28px);
}

.next-prayer em {
  color: var(--premium-gold-bright);
  font-size: clamp(18px, 5vw, 22px);
}

.prayer-time {
  color: rgba(255, 246, 223, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 246, 223, 0.055), rgba(255, 246, 223, 0.018)),
    rgba(5, 7, 11, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 246, 223, 0.06);
}

.prayer-time.active {
  border-color: rgba(242, 213, 139, 0.62);
  color: var(--premium-ink);
  background:
    linear-gradient(180deg, rgba(242, 213, 139, 0.22), rgba(217, 183, 106, 0.10)),
    rgba(9, 11, 15, 0.72);
  box-shadow:
    0 0 24px rgba(242, 213, 139, 0.16),
    inset 0 1px 0 rgba(255, 246, 223, 0.12);
}

.primary-button,
body.dark .primary-button,
.prayer-notify-button.active,
.category-tabs button.active,
.gold-button {
  color: #14100a;
  border-color: rgba(242, 213, 139, 0.72);
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-bright));
  box-shadow:
    0 14px 30px rgba(217, 183, 106, 0.18),
    inset 0 1px 0 rgba(255, 250, 232, 0.42);
}

body.dark .ghost-button,
body.dark .chip,
.chip,
.ghost-button {
  color: var(--premium-gold-bright);
  border-color: rgba(242, 213, 139, 0.26);
  background: rgba(217, 183, 106, 0.08);
}

body[data-screen="quran"] .app-shell {
  background:
    linear-gradient(180deg, rgba(3, 4, 7, 0.04), rgba(3, 4, 7, 0.18) 38%, #030407 100%),
    url("assets/images/bg-quran-page.jpeg") center top / 100% auto no-repeat,
    #030407;
}

body[data-screen="quran"] .app-shell::before {
  display: none;
}

.screen.quran-screen {
  padding-top: 0;
}

.list-item {
  color: var(--premium-ink);
}

.list-item small {
  color: var(--premium-muted);
}

.quran-page,
body.dark .quran-page {
  border-color: rgba(217, 183, 106, 0.24);
  background: rgba(255, 250, 238, 0.96);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bottom-nav {
  bottom: 0;
  width: min(100%, 520px);
  padding: 6px 6px max(6px, env(safe-area-inset-bottom));
  border: 1px solid rgba(242, 213, 139, 0.28);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 246, 223, 0.10), rgba(255, 246, 223, 0.035)),
    rgba(7, 9, 13, 0.96);
  box-shadow:
    0 16px 46px rgba(0, 0, 0, 0.52),
    0 0 34px rgba(242, 213, 139, 0.12),
    inset 0 1px 0 rgba(255, 246, 223, 0.09);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

body.dark .bottom-nav {
  border-color: rgba(242, 213, 139, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 246, 223, 0.10), rgba(255, 246, 223, 0.035)),
    rgba(7, 9, 13, 0.96);
}

.nav-item,
body.dark .nav-item {
  min-height: 52px;
  color: rgba(255, 246, 223, 0.66);
  border-radius: 18px;
  font-size: 9px;
}

.nav-icon,
body.dark .nav-icon {
  color: rgba(255, 246, 223, 0.78);
  background: rgba(217, 183, 106, 0.07);
}

.nav-item.active,
body.dark .nav-item.active {
  color: var(--premium-gold-bright);
  border-color: rgba(242, 213, 139, 0.30);
  background:
    linear-gradient(180deg, rgba(242, 213, 139, 0.18), rgba(217, 183, 106, 0.07));
  box-shadow:
    0 0 24px rgba(242, 213, 139, 0.12),
    inset 0 1px 0 rgba(255, 246, 223, 0.08);
}

.nav-item.active .nav-icon {
  color: #14100a;
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-bright));
}

.nav-item.active::after {
  background: var(--premium-gold-bright);
  box-shadow: 0 0 12px rgba(242, 213, 139, 0.6);
}

.screen {
  padding-bottom: calc(var(--nav-safe) + 8px);
}

body[data-screen="messages"] .screen {
  padding-top: 6px;
}

body[data-screen="messages"] .category-tabs:first-child {
  margin-top: 0;
}

body[data-screen="messages"] .category-tabs {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0;
}

body[data-screen="messages"] .category-tabs button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.search-panel {
  border-radius: 18px;
  z-index: 40;
  background:
    linear-gradient(180deg, rgba(255, 246, 223, 0.09), rgba(255, 246, 223, 0.03)),
    rgba(7, 9, 13, 0.86);
}

.search-box input::placeholder {
  color: transparent;
}

@media (max-width: 430px) {
  .screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .premium-prayer-card {
    padding: 11px;
  }

  .prayer-card-head {
    grid-template-columns: minmax(0, 1fr) minmax(106px, 0.68fr);
  }

  .prayer-location-chip strong {
    font-size: 10px;
  }

  .prayer-times-strip {
    gap: 4px;
  }

  .prayer-time {
    padding: 6px 2px;
    border-radius: 13px;
  }

  .bottom-nav {
    width: min(100%, 520px);
  }

  .nav-item {
    min-height: 50px;
    padding: 4px 2px;
    font-size: 10px;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 370px) {
  .topbar {
    padding-top: 6px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .premium-round-icon {
    width: 44px;
    height: 44px;
  }

  .prayer-card-notify-button {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bell-shape {
    width: 64px;
    height: 64px;
  }

  .next-prayer {
    gap: 8px;
  }

  .next-prayer strong {
    font-size: 22px;
  }

  .prayer-time span {
    font-size: 15px;
  }

  .nav-item {
    font-size: 9.4px;
  }
}
