/* ===================== فَجْر | FAJR — التصميم ===================== */

:root {
  --navy-950: #060b1c;
  --navy-900: #0a1128;
  --navy-800: #101a38;
  --navy-700: #182452;
  --navy-600: #23306a;

  --gold-300: #f2e0a8;
  --gold-400: #e5c76b;
  --gold-500: #d4af37;
  --gold-600: #b08f24;

  --ink: #f4f6fd;
  --ink-dim: #aab4d2;
  --ink-faint: #7e8ab0;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-strong: rgba(255, 255, 255, 0.16);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-soft: 0 18px 50px rgba(2, 6, 23, 0.55);
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.18);

  --font-ui: "Tajawal", "Segoe UI", Tahoma, "Noto Kufi Arabic", sans-serif;
  --font-logo: "Amiri", "Tajawal", "Traditional Arabic", serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(35, 48, 106, 0.55), transparent 60%),
    radial-gradient(900px 520px at 5% 25%, rgba(20, 36, 82, 0.5), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(env(safe-area-inset-bottom) + 24px) env(safe-area-inset-left);
}

/* ---------- Decorative sky ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.sky__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.7), transparent 55%),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(1.8px 1.8px at 42% 14%, rgba(255,255,255,.6), transparent 55%),
    radial-gradient(1.1px 1.1px at 55% 42%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(1.7px 1.7px at 66% 78%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(1.3px 1.3px at 80% 24%, rgba(255,255,255,.6), transparent 55%),
    radial-gradient(1.4px 1.4px at 90% 58%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(1.1px 1.1px at 7% 82%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(1.5px 1.5px at 33% 88%, rgba(255,255,255,.45), transparent 55%),
    radial-gradient(1.2px 1.2px at 74% 8%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(1.1px 1.1px at 20% 45%, rgba(255,255,255,.4), transparent 55%),
    radial-gradient(1.6px 1.6px at 95% 90%, rgba(255,255,255,.45), transparent 55%),
    radial-gradient(1.2px 1.2px at 49% 92%, rgba(255,255,255,.5), transparent 55%);
  opacity: .55;
}

.sky__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.sky__glow--1 { width: 45vw; height: 45vw; max-width: 560px; max-height: 560px; left: -160px; top: -140px; background: radial-gradient(circle, rgba(35, 48, 106, .65), transparent 70%); }
.sky__glow--2 { width: 40vw; height: 40vw; max-width: 480px; max-height: 480px; right: -140px; bottom: -120px; background: radial-gradient(circle, rgba(176, 143, 36, .12), transparent 70%); }

.sky__crescent {
  position: absolute; top: 120px; left: clamp(16px, 6vw, 90px);
  width: clamp(120px, 18vw, 210px); opacity: .28;
  filter: drop-shadow(0 0 34px rgba(212, 175, 55, .35));
  animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Layout ---------- */
.app {
  position: relative; z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card--soft { padding: 22px 20px; }
.card:hover { border-color: var(--glass-border-strong); }

/* ---------- Header ---------- */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px 4px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 46px; height: 46px; color: var(--gold-400); filter: drop-shadow(0 0 12px rgba(212,175,55,.35)); }
.brand__text { display: flex; align-items: baseline; gap: 10px; }
.brand__name { font-family: var(--font-logo); font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.brand__latin { font-family: var(--font-logo); font-size: 18px; color: var(--gold-500); letter-spacing: 3px; opacity: .9; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-grid; place-items: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--ink); cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--glass-bg-strong); color: var(--gold-400); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Greeting ---------- */
.greeting { text-align: center; animation: rise .7s var(--ease) both; }
.greeting__salam {
  font-family: var(--font-logo); font-size: clamp(20px, 4.6vw, 26px);
  font-weight: 700; color: var(--gold-400); margin-bottom: 4px;
  text-shadow: 0 0 24px rgba(212,175,55,.25);
}
.greeting__sub { color: var(--ink-dim); font-size: clamp(13.5px, 3.4vw, 15.5px); margin-bottom: 18px; }

.datebar {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; align-items: stretch;
}
.datebar__item {
  background: rgba(10, 17, 40, .45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.datebar__label { font-size: 11.5px; color: var(--ink-faint); }
.datebar__value { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.datebar__value--gold { color: var(--gold-400); }
.city-chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: rgba(212,175,55,.12); color: var(--gold-300);
  border: 1px solid rgba(212,175,55,.3); border-radius: 999px;
  padding: 4px 12px; font: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: background .3s, transform .3s;
}
.city-chip svg { width: 15px; height: 15px; fill: currentColor; }
.city-chip:hover { background: rgba(212,175,55,.22); transform: translateY(-1px); }

/* ---------- Hero (next prayer) ---------- */
.hero {
  padding: 34px 20px 28px; text-align: center; overflow: hidden;
  background:
    radial-gradient(420px 240px at 50% 0%, rgba(212, 175, 55, .1), transparent 70%),
    var(--glass-bg);
  animation: rise .7s var(--ease) .08s both;
}
.hero__ring {
  position: absolute; left: 50%; top: -90px; transform: translateX(-50%);
  width: 290px; height: 290px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,.2);
  box-shadow: 0 0 0 26px rgba(212,175,55,.04), 0 0 0 52px rgba(212,175,55,.025), inset 0 0 60px rgba(212,175,55,.08);
  pointer-events: none;
  transition: transform 1s var(--ease), box-shadow 1s var(--ease);
}
.hero.is-changing .hero__ring { transform: translateX(-50%) scale(.82) rotate(-10deg); }
.hero__label { color: var(--ink-dim); font-size: 14px; letter-spacing: .5px; }
.hero__name {
  font-family: var(--font-logo); font-size: clamp(34px, 9vw, 48px);
  font-weight: 700; color: var(--gold-400); margin: 2px 0 14px;
  text-shadow: 0 2px 30px rgba(212,175,55,.3);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hero__count-label { color: var(--ink-dim); font-size: 13.5px; margin-bottom: 6px; }
.hero__count {
  font-family: "Tajawal", monospace; font-weight: 800;
  font-size: clamp(40px, 11.5vw, 60px); letter-spacing: 4px;
  color: var(--ink); text-shadow: 0 0 34px rgba(212,175,55,.22);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hero.is-changing .hero__name, .hero.is-changing .hero__count { opacity: 0; transform: translateY(8px); }
.hero__meta {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 22px;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-label { font-size: 12px; color: var(--ink-faint); }
.hero__meta-value { font-size: 17px; font-weight: 800; color: var(--ink); }
.hero__meta-sep { width: 1px; height: 34px; background: var(--glass-border-strong); }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 6px; }
.section-title { font-family: var(--font-logo); font-size: 21px; color: var(--gold-400); }
.section-note { font-size: 12px; color: var(--ink-faint); }

.times__grid { display: grid; gap: 12px; margin-top: 6px; }

.prayer-card {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  animation: rise .6s var(--ease) both;
}
.prayer-card:hover { transform: translateY(-2px); background: var(--glass-bg-strong); }
.prayer-card.is-next {
  background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.05));
  border-color: rgba(212,175,55,.45);
  box-shadow: var(--shadow-gold);
}
.prayer-card.is-current { border-color: rgba(90, 200, 140, .4); }
.prayer-card.is-current .prayer-card__time { color: #7fe0ab; }
.prayer-card.is-past { opacity: .58; }

.prayer-card__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-border);
  color: var(--gold-500);
}
.prayer-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prayer-card__info { display: flex; flex-direction: column; gap: 2px; }
.prayer-card__name { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.prayer-card__state { font-size: 12px; color: var(--ink-faint); }
.prayer-card.is-next .prayer-card__state { color: var(--gold-400); font-weight: 700; }
.prayer-card__time { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .5px; direction: ltr; }
.prayer-card__adhan {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 10px; color: var(--gold-500);
  background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.25);
}
.prayer-card__adhan--off { color: var(--ink-faint); background: transparent; border-color: var(--glass-border); opacity: .8; }
.prayer-card__adhan svg { width: 17px; height: 17px; }
.prayer-card__adhan svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* icons for prayers */
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Status badges ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.tag--next { background: rgba(212,175,55,.16); color: var(--gold-300); border: 1px solid rgba(212,175,55,.35); }
.tag--current { background: rgba(80,200,130,.14); color: #7fe0ab; border: 1px solid rgba(80,200,130,.35); }
.tag--passed { background: rgba(255,255,255,.05); color: var(--ink-faint); border: 1px solid var(--glass-border); }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; margin-top: 12px; line-height: 1.55; }
.alert--error { background: rgba(220, 80, 90, .12); border: 1px solid rgba(220, 80, 90, .35); color: #ffb3ba; }
.alert--warn { background: rgba(226, 178, 60, .12); border: 1px solid rgba(226, 178, 60, .3); color: #f3dc9a; }
.alert--info { background: rgba(80, 150, 220, .12); border: 1px solid rgba(80, 150, 220, .3); color: #a8cdf5; }

/* ---------- Skeleton ---------- */
.skeleton-grid { display: grid; gap: 12px; margin-top: 6px; }
.skeleton { height: 78px; border-radius: var(--radius-md); background: linear-gradient(100deg, rgba(255,255,255,.04) 40%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 14.5px;
  border-radius: var(--radius-sm); padding: 12px 18px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s, opacity .3s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #241a02;
  box-shadow: 0 8px 24px rgba(212,175,55,.25);
}
.btn--gold:hover { box-shadow: 0 10px 30px rgba(212,175,55,.35); filter: brightness(1.05); }
.btn--ghost { background: var(--glass-bg); border-color: var(--glass-border); color: var(--ink); }
.btn--ghost:hover { background: var(--glass-bg-strong); }
.btn--danger { background: transparent; border-color: rgba(220,80,90,.4); color: #ff9aa4; font-size: 13px; }
.btn--danger:hover { background: rgba(220,80,90,.1); }
.btn--full { width: 100%; }
.row-btns { display: flex; gap: 10px; margin-top: 14px; }
.row-btns .btn { flex: 1; }

/* ---------- Drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(4, 8, 22, .6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.overlay.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 50;
  width: min(430px, 100%);
  background: linear-gradient(180deg, #0d1531 0%, #090f24 100%);
  border-left: 1px solid var(--glass-border);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .5);
  transform: translateX(105%);
  transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
}
html[dir="rtl"] .drawer { border-left: none; border-right: 1px solid var(--glass-border); box-shadow: 30px 0 80px rgba(0,0,0,.5); }
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--glass-border);
}
.drawer__title { font-family: var(--font-logo); font-size: 22px; color: var(--gold-400); }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 10px; margin-top: 8px; }

.setting-group { margin-bottom: 26px; }
.setting-group__title {
  font-size: 14.5px; font-weight: 800; color: var(--gold-300);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,175,55,.18);
}
.setting-hint { font-size: 12.5px; color: var(--ink-faint); margin: 6px 0 10px; line-height: 1.6; }

.field { display: block; margin-bottom: 12px; }
.field__label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; font-weight: 600; }
.field__value { color: var(--gold-400); font-weight: 800; }
.field__input {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  background: rgba(10,17,40,.6); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 11px 13px;
  outline: none; transition: border-color .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field__input:focus { border-color: rgba(212,175,55,.5); box-shadow: 0 0 0 3px rgba(212,175,55,.12); }
select.field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; padding-left: 36px;
}
.field__range { accent-color: var(--gold-500); height: 34px; cursor: pointer; }

.city-results {
  margin-top: 4px; max-height: 240px; overflow-y: auto;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  background: rgba(10,17,40,.85);
}
.city-result {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: right; padding: 11px 13px; cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--ink); transition: background .2s;
}
.city-result:hover, .city-result.is-active { background: rgba(212,175,55,.12); }
.city-result__name { font-weight: 700; font-size: 14px; }
.city-result__meta { font-size: 11.5px; color: var(--ink-faint); }
.city-result.is-active .city-result__meta { color: var(--gold-400); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 700; cursor: pointer; }

/* toggle switch */
.switch { position: relative; width: 46px; height: 26px; flex: none; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.12); border-radius: 999px; cursor: pointer; transition: background .3s var(--ease); outline: none; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease), background .3s; }
html[dir="rtl"] .switch::after { right: auto; left: 3px; }
.switch:checked { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
.switch:checked::after { transform: translateX(-20px); }
html[dir="rtl"] .switch:checked::after { transform: translateX(20px); }

.prayer-toggles { display: grid; gap: 8px; }
.prayer-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.prayer-toggle__icon { color: var(--gold-500); display: grid; place-items: center; }
.prayer-toggle__icon svg { width: 20px; height: 20px; }
.prayer-toggle__name { flex: 1; font-weight: 700; font-size: 14.5px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  z-index: 70; max-width: min(92vw, 480px);
  background: rgba(12, 19, 44, .96); color: var(--ink);
  border: 1px solid var(--glass-border-strong); border-radius: var(--radius-md);
  padding: 13px 18px; font-size: 14px; text-align: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 26px rgba(212,175,55,.15); }
  50% { box-shadow: 0 0 42px rgba(212,175,55,.3); }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .datebar { grid-template-columns: repeat(2, 1fr); }
  .times__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
  .prayer-card { grid-template-columns: auto 1fr auto; gap: 11px; }
  .prayer-card__adhan { display: none; }
  .hero__meta { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 18px 0 6px; color: var(--ink-faint); font-size: 13px; }
.footer__note { font-size: 11.5px; margin-top: 4px; opacity: .8; }

/* =====================================================================
   إضافات المرحلة 2 — قسم القرآن الكريم وصفحة "عن التطبيق".
   تستعمل نفس متغيّرات الهوية (الألوان، الخطوط، الحواف، الظلال) دون أي تغيير عليها.
   ===================================================================== */

/* ---------- شريط التنقل بين الأقسام ---------- */
.nav {
  display: flex; gap: 6px; padding: 5px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav__link {
  flex: 1 0 auto; text-align: center; text-decoration: none;
  color: var(--ink-dim); font-size: 13.5px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--glass-bg-strong); }
.nav__link.is-active {
  color: #241a02;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 6px 18px rgba(212, 175, 55, .22);
}

/* إخفاء أقسام الصفحة الرئيسية عند فتح قسم آخر */
.home-only { display: none !important; }

/* الأقسام (تعمل مع [hidden] رغم display:flex) */
.view { display: flex; flex-direction: column; gap: 18px; }
.view[hidden] { display: none !important; }

/* ---------- قسم القرآن ---------- */
/* مشغّل التلاوة (صوتي فقط) */
.quran-player { padding: 16px 18px; display: grid; gap: 14px; }
.quran-player__top { display: flex; align-items: center; gap: 14px; }
.quran-player__mark {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: var(--gold-400);
  background: rgba(212, 175, 55, .10); border: 1px solid rgba(212, 175, 55, .28);
}
.quran-player__mark svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.quran-player__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quran-player__label { font-size: 11.5px; color: var(--ink-faint); }
.quran-player__name { font-family: var(--font-logo); font-size: 22px; color: var(--gold-400); }
.quran-player__meta { font-size: 12px; color: var(--ink-dim); }
.quran-player__select { margin-bottom: 0; }
.quran-progress { display: grid; gap: 4px; }
.quran-progress__times { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-faint); }
.quran-player__controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.quran-player__controls svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.quran-player__play {
  width: 54px; height: 54px; color: #241a02;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-color: transparent; box-shadow: 0 6px 18px rgba(212, 175, 55, .22);
}
.quran-player__play:hover { color: #241a02; }
.quran-player__play svg { width: 26px; height: 26px; }
.quran-player__vol { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-dim); font-weight: 600; }
.quran-player__vol input { flex: 1; }
.quran-player__status { font-size: 12px; color: var(--ink-faint); text-align: center; }

/* (أُزيلت واجهات صفحات المصحف ونصوص الآيات — القسم يعمل بالصوت فقط) */

/* زر صغير (إعادة المحاولة داخل التنبيهات) */
.btn--sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; margin-inline-start: 8px; }

/* ---------- صفحة "عن التطبيق" ---------- */
.about { padding: 24px 20px; }
.about__brand { display: flex; align-items: center; gap: 14px; }
.about__name { font-family: var(--font-logo); font-size: 28px; font-weight: 700; color: var(--ink); }
.about__slogan { font-size: 13px; color: var(--gold-400); }
.about__desc { color: var(--ink-dim); font-size: 14.5px; line-height: 1.85; margin: 16px 0; }
.about__block { margin-top: 20px; }
.about__title {
  font-family: var(--font-logo); font-size: 18px; color: var(--gold-400);
  margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid rgba(212, 175, 55, .18);
}
.about__dev { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.about__list { list-style: none; display: grid; gap: 9px; }
.about__list li { position: relative; padding-right: 18px; font-size: 13.5px; color: var(--ink-dim); line-height: 1.75; }
.about__list li::before { content: ""; position: absolute; right: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.about__note { margin-top: 14px; font-size: 12px; color: var(--ink-faint); line-height: 1.7; }

@media (max-width: 430px) {
  .quran-player { padding: 14px 14px 16px; }
  .quran-player__controls { gap: 6px; }
  .quran-player__play { width: 50px; height: 50px; }
}